Merge pull request #5173 from appwrite/chore-release-1-3-console-sdk
chore: 1.3.x console sdk
This commit is contained in:
commit
861e980420
223 changed files with 318 additions and 222 deletions
4
.github/workflows/codeql-analysis.yml
vendored
4
.github/workflows/codeql-analysis.yml
vendored
|
@ -1,5 +1,9 @@
|
|||
name: "CodeQL"
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
|
|
4
.github/workflows/linter.yml
vendored
4
.github/workflows/linter.yml
vendored
|
@ -1,5 +1,9 @@
|
|||
name: "Linter"
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
on: [pull_request]
|
||||
jobs:
|
||||
lint:
|
||||
|
|
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
|
@ -1,5 +1,9 @@
|
|||
name: "Tests"
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
on: [pull_request]
|
||||
jobs:
|
||||
tests:
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
## Bugs
|
||||
|
||||
- Fix expire to formatTz in create account session [#4985](https://github.com/appwrite/appwrite/pull/4985)
|
||||
- Fix not storing function's response on response codes 5xx [#4610](https://github.com/appwrite/appwrite/pull/4610)
|
||||
|
||||
# Version 1.2.1
|
||||
|
|
|
@ -11,7 +11,7 @@ return [
|
|||
'description' => 'Client libraries for integrating with Appwrite to build client-based applications and websites. Read the [getting started for web](/docs/getting-started-for-web) or [getting started for Flutter](/docs/getting-started-for-flutter) tutorials to start building your first application.',
|
||||
'enabled' => true,
|
||||
'beta' => false,
|
||||
'languages' => [ // TODO change key to 'sdks'
|
||||
'sdks' => [
|
||||
[
|
||||
'key' => 'web',
|
||||
'name' => 'Web',
|
||||
|
@ -181,11 +181,11 @@ return [
|
|||
'name' => 'Console',
|
||||
'enabled' => false,
|
||||
'beta' => false,
|
||||
'languages' => [
|
||||
'sdks' => [
|
||||
[
|
||||
'key' => 'web',
|
||||
'name' => 'Console',
|
||||
'version' => '7.2.0',
|
||||
'version' => '0.0.2-preview-0.0',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-console',
|
||||
'package' => '',
|
||||
'enabled' => true,
|
||||
|
@ -193,10 +193,10 @@ return [
|
|||
'dev' => false,
|
||||
'hidden' => true,
|
||||
'family' => APP_PLATFORM_CONSOLE,
|
||||
'prism' => 'console',
|
||||
'prism' => 'javascript',
|
||||
'source' => \realpath(__DIR__ . '/../sdks/console-web'),
|
||||
'gitUrl' => '',
|
||||
'gitBranch' => '',
|
||||
'gitUrl' => 'git@github.com:appwrite/sdk-for-console.git',
|
||||
'gitBranch' => 'main',
|
||||
'gitRepoName' => 'sdk-for-console',
|
||||
'gitUserName' => 'appwrite',
|
||||
],
|
||||
|
@ -227,7 +227,7 @@ return [
|
|||
'description' => 'Libraries for integrating with Appwrite to build server side integrations. Read the [getting started for server](/docs/getting-started-for-server) tutorial to start building your first server integration.',
|
||||
'enabled' => true,
|
||||
'beta' => false,
|
||||
'languages' => [
|
||||
'sdks' => [
|
||||
[
|
||||
'key' => 'nodejs',
|
||||
'name' => 'Node.js',
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -192,7 +192,7 @@ App::post('/v1/account/sessions/email')
|
|||
|
||||
$detector = new Detector($request->getUserAgent('UNKNOWN'));
|
||||
$record = $geodb->get($request->getIP());
|
||||
$expire = DateTime::addSeconds(new \DateTime(), $duration);
|
||||
$expire = DateTime::formatTz(DateTime::addSeconds(new \DateTime(), $duration));
|
||||
$secret = Auth::tokenGenerator();
|
||||
$session = new Document(array_merge(
|
||||
[
|
||||
|
@ -381,6 +381,7 @@ App::get('/v1/account/sessions/oauth2/:provider/redirect')
|
|||
->label('scope', 'public')
|
||||
->label('audits.event', 'session.create')
|
||||
->label('audits.resource', 'user/{user.$id}')
|
||||
->label('audits.userId', '{user.$id}')
|
||||
->label('abuse-limit', 50)
|
||||
->label('abuse-key', 'ip:{ip}')
|
||||
->label('docs', false)
|
||||
|
@ -1328,6 +1329,8 @@ App::get('/v1/account')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_ACCOUNT)
|
||||
->label('sdk.offline.model', '/account')
|
||||
->label('sdk.offline.key', 'current')
|
||||
->inject('response')
|
||||
->inject('user')
|
||||
->action(function (Response $response, Document $user) {
|
||||
|
@ -1347,6 +1350,8 @@ App::get('/v1/account/prefs')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_PREFERENCES)
|
||||
->label('sdk.offline.model', '/account/prefs')
|
||||
->label('sdk.offline.key', 'current')
|
||||
->inject('response')
|
||||
->inject('user')
|
||||
->action(function (Response $response, Document $user) {
|
||||
|
@ -1368,6 +1373,7 @@ App::get('/v1/account/sessions')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_SESSION_LIST)
|
||||
->label('sdk.offline.model', '/account/sessions')
|
||||
->inject('response')
|
||||
->inject('user')
|
||||
->inject('locale')
|
||||
|
@ -1466,6 +1472,8 @@ App::get('/v1/account/sessions/:sessionId')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_SESSION)
|
||||
->label('sdk.offline.model', '/account/sessions')
|
||||
->label('sdk.offline.key', '{sessionId}')
|
||||
->param('sessionId', '', new UID(), 'Session ID. Use the string \'current\' to get the current device session.')
|
||||
->inject('response')
|
||||
->inject('user')
|
||||
|
@ -1504,6 +1512,7 @@ App::patch('/v1/account/name')
|
|||
->label('scope', 'account')
|
||||
->label('audits.event', 'user.update')
|
||||
->label('audits.resource', 'user/{response.$id}')
|
||||
->label('audits.userId', '{response.$id}')
|
||||
->label('usage.metric', 'users.{scope}.requests.update')
|
||||
->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT])
|
||||
->label('sdk.namespace', 'account')
|
||||
|
@ -1512,6 +1521,8 @@ App::patch('/v1/account/name')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_ACCOUNT)
|
||||
->label('sdk.offline.model', '/account')
|
||||
->label('sdk.offline.key', 'current')
|
||||
->param('name', '', new Text(128), 'User name. Max length: 128 chars.')
|
||||
->inject('response')
|
||||
->inject('user')
|
||||
|
@ -1545,6 +1556,8 @@ App::patch('/v1/account/password')
|
|||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_ACCOUNT)
|
||||
->param('password', '', fn ($project, $passwordsDictionary) => new PasswordDictionary($passwordsDictionary, $project->getAttribute('auths', [])['passwordDictionary'] ?? false), 'New user password. Must be at least 8 chars.', false, ['project', 'passwordsDictionary'])
|
||||
->label('sdk.offline.model', '/account')
|
||||
->label('sdk.offline.key', 'current')
|
||||
->param('oldPassword', '', new Password(), 'Current user password. Must be at least 8 chars.', true)
|
||||
->inject('response')
|
||||
->inject('user')
|
||||
|
@ -1591,6 +1604,7 @@ App::patch('/v1/account/email')
|
|||
->label('scope', 'account')
|
||||
->label('audits.event', 'user.update')
|
||||
->label('audits.resource', 'user/{response.$id}')
|
||||
->label('audits.userId', '{response.$id}')
|
||||
->label('usage.metric', 'users.{scope}.requests.update')
|
||||
->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT])
|
||||
->label('sdk.namespace', 'account')
|
||||
|
@ -1599,6 +1613,8 @@ App::patch('/v1/account/email')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_ACCOUNT)
|
||||
->label('sdk.offline.model', '/account')
|
||||
->label('sdk.offline.key', 'current')
|
||||
->param('email', '', new Email(), 'User email.')
|
||||
->param('password', '', new Password(), 'User password. Must be at least 8 chars.')
|
||||
->inject('response')
|
||||
|
@ -1643,6 +1659,7 @@ App::patch('/v1/account/phone')
|
|||
->label('scope', 'account')
|
||||
->label('audits.event', 'user.update')
|
||||
->label('audits.resource', 'user/{response.$id}')
|
||||
->label('audits.userId', '{response.$id}')
|
||||
->label('usage.metric', 'users.{scope}.requests.update')
|
||||
->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT])
|
||||
->label('sdk.namespace', 'account')
|
||||
|
@ -1651,6 +1668,8 @@ App::patch('/v1/account/phone')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_ACCOUNT)
|
||||
->label('sdk.offline.model', '/account')
|
||||
->label('sdk.offline.key', 'current')
|
||||
->param('phone', '', new Phone(), 'Phone number. Format this number with a leading \'+\' and a country code, e.g., +16175551212.')
|
||||
->param('password', '', new Password(), 'User password. Must be at least 8 chars.')
|
||||
->inject('response')
|
||||
|
@ -1691,6 +1710,7 @@ App::patch('/v1/account/prefs')
|
|||
->label('scope', 'account')
|
||||
->label('audits.event', 'user.update')
|
||||
->label('audits.resource', 'user/{response.$id}')
|
||||
->label('audits.userId', '{response.$id}')
|
||||
->label('usage.metric', 'users.{scope}.requests.update')
|
||||
->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT])
|
||||
->label('sdk.namespace', 'account')
|
||||
|
@ -1699,6 +1719,8 @@ App::patch('/v1/account/prefs')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_ACCOUNT)
|
||||
->label('sdk.offline.model', '/account/prefs')
|
||||
->label('sdk.offline.key', 'current')
|
||||
->param('prefs', [], new Assoc(), 'Prefs key-value JSON object.')
|
||||
->inject('response')
|
||||
->inject('user')
|
||||
|
@ -1720,6 +1742,7 @@ App::patch('/v1/account/status')
|
|||
->label('scope', 'account')
|
||||
->label('audits.event', 'user.update')
|
||||
->label('audits.resource', 'user/{response.$id}')
|
||||
->label('audits.userId', '{response.$id}')
|
||||
->label('usage.metric', 'users.{scope}.requests.delete')
|
||||
->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT])
|
||||
->label('sdk.namespace', 'account')
|
||||
|
@ -1755,6 +1778,7 @@ App::delete('/v1/account/sessions/:sessionId')
|
|||
->label('event', 'users.[userId].sessions.[sessionId].delete')
|
||||
->label('audits.event', 'session.delete')
|
||||
->label('audits.resource', 'user/{user.$id}')
|
||||
->label('audits.userId', '{user.$id}')
|
||||
->label('usage.metric', 'sessions.{scope}.requests.delete')
|
||||
->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT])
|
||||
->label('sdk.namespace', 'account')
|
||||
|
@ -1914,6 +1938,7 @@ App::delete('/v1/account/sessions')
|
|||
->label('event', 'users.[userId].sessions.[sessionId].delete')
|
||||
->label('audits.event', 'session.delete')
|
||||
->label('audits.resource', 'user/{user.$id}')
|
||||
->label('audits.userId', '{user.$id}')
|
||||
->label('usage.metric', 'sessions.{scope}.requests.delete')
|
||||
->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT])
|
||||
->label('sdk.namespace', 'account')
|
||||
|
@ -2174,6 +2199,7 @@ App::post('/v1/account/verification')
|
|||
->label('event', 'users.[userId].verification.[tokenId].create')
|
||||
->label('audits.event', 'verification.create')
|
||||
->label('audits.resource', 'user/{response.userId}')
|
||||
->label('audits.userId', '{response.userId}')
|
||||
->label('usage.metric', 'users.{scope}.requests.update')
|
||||
->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT])
|
||||
->label('sdk.namespace', 'account')
|
||||
|
@ -2285,6 +2311,7 @@ App::put('/v1/account/verification')
|
|||
->label('event', 'users.[userId].verification.[tokenId].update')
|
||||
->label('audits.event', 'verification.update')
|
||||
->label('audits.resource', 'user/{response.userId}')
|
||||
->label('audits.userId', '{response.userId}')
|
||||
->label('usage.metric', 'users.{scope}.requests.update')
|
||||
->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT])
|
||||
->label('sdk.namespace', 'account')
|
||||
|
@ -2344,6 +2371,7 @@ App::post('/v1/account/verification/phone')
|
|||
->label('event', 'users.[userId].verification.[tokenId].create')
|
||||
->label('audits.event', 'verification.create')
|
||||
->label('audits.resource', 'user/{response.userId}')
|
||||
->label('audits.userId', '{response.userId}')
|
||||
->label('usage.metric', 'users.{scope}.requests.update')
|
||||
->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT])
|
||||
->label('sdk.namespace', 'account')
|
||||
|
@ -2429,6 +2457,7 @@ App::put('/v1/account/verification/phone')
|
|||
->label('event', 'users.[userId].verification.[tokenId].update')
|
||||
->label('audits.event', 'verification.update')
|
||||
->label('audits.resource', 'user/{response.userId}')
|
||||
->label('audits.userId', '{response.userId}')
|
||||
->label('usage.metric', 'users.{scope}.requests.update')
|
||||
->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT])
|
||||
->label('sdk.namespace', 'account')
|
||||
|
|
|
@ -1852,6 +1852,8 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/documents')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_CREATED)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_DOCUMENT)
|
||||
->label('sdk.offline.model', '/databases/{databaseId}/collections/{collectionId}/documents')
|
||||
->label('sdk.offline.key', '{documentId}')
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('documentId', '', new CustomId(), 'Document ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can\'t start with a special char. Max length is 36 chars.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). Make sure to define attributes before creating documents.')
|
||||
|
@ -1974,6 +1976,7 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/documents')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_DOCUMENT_LIST)
|
||||
->label('sdk.offline.model', '/databases/{databaseId}/collections/{collectionId}/documents')
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
|
||||
->param('queries', [], new ArrayList(new Text(APP_LIMIT_ARRAY_ELEMENT_SIZE), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long.', true)
|
||||
|
@ -2071,6 +2074,8 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/documents/:documen
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_DOCUMENT)
|
||||
->label('sdk.offline.model', '/databases/{databaseId}/collections/{collectionId}/documents')
|
||||
->label('sdk.offline.key', '{documentId}')
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
|
||||
->param('documentId', '', new UID(), 'Document ID.')
|
||||
|
@ -2240,6 +2245,8 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/documents/:docum
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_DOCUMENT)
|
||||
->label('sdk.offline.model', '/databases/{databaseId}/collections/{collectionId}/documents')
|
||||
->label('sdk.offline.key', '{documentId}')
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID.')
|
||||
->param('documentId', '', new UID(), 'Document ID.')
|
||||
|
@ -2373,6 +2380,8 @@ App::delete('/v1/databases/:databaseId/collections/:collectionId/documents/:docu
|
|||
->label('sdk.description', '/docs/references/databases/delete-document.md')
|
||||
->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT)
|
||||
->label('sdk.response.model', Response::MODEL_NONE)
|
||||
->label('sdk.offline.model', '/databases/{databaseId}/collections/{collectionId}/documents')
|
||||
->label('sdk.offline.key', '{documentId}')
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
|
||||
->param('documentId', '', new UID(), 'Document ID.')
|
||||
|
|
|
@ -19,6 +19,8 @@ App::get('/v1/locale')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_LOCALE)
|
||||
->label('sdk.offline.model', '/locale')
|
||||
->label('sdk.offline.key', 'current')
|
||||
->inject('request')
|
||||
->inject('response')
|
||||
->inject('locale')
|
||||
|
@ -77,6 +79,8 @@ App::get('/v1/locale/countries')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_COUNTRY_LIST)
|
||||
->label('sdk.offline.model', '/locale/countries')
|
||||
->label('sdk.offline.response.key', 'code')
|
||||
->inject('response')
|
||||
->inject('locale')
|
||||
->action(function (Response $response, Locale $locale) {
|
||||
|
@ -108,6 +112,8 @@ App::get('/v1/locale/countries/eu')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_COUNTRY_LIST)
|
||||
->label('sdk.offline.model', '/locale/countries/eu')
|
||||
->label('sdk.offline.response.key', 'code')
|
||||
->inject('response')
|
||||
->inject('locale')
|
||||
->action(function (Response $response, Locale $locale) {
|
||||
|
@ -141,6 +147,8 @@ App::get('/v1/locale/countries/phones')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_PHONE_LIST)
|
||||
->label('sdk.offline.model', '/locale/countries/phones')
|
||||
->label('sdk.offline.response.key', 'countryCode')
|
||||
->inject('response')
|
||||
->inject('locale')
|
||||
->action(function (Response $response, Locale $locale) {
|
||||
|
@ -173,6 +181,8 @@ App::get('/v1/locale/continents')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_CONTINENT_LIST)
|
||||
->label('sdk.offline.model', '/locale/continents')
|
||||
->label('sdk.offline.response.key', 'code')
|
||||
->inject('response')
|
||||
->inject('locale')
|
||||
->action(function (Response $response, Locale $locale) {
|
||||
|
@ -203,6 +213,8 @@ App::get('/v1/locale/currencies')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_CURRENCY_LIST)
|
||||
->label('sdk.offline.model', '/locale/currencies')
|
||||
->label('sdk.offline.response.key', 'code')
|
||||
->inject('response')
|
||||
->action(function (Response $response) {
|
||||
$list = Config::getParam('locale-currencies');
|
||||
|
@ -224,6 +236,8 @@ App::get('/v1/locale/languages')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_LANGUAGE_LIST)
|
||||
->label('sdk.offline.model', '/locale/languages')
|
||||
->label('sdk.offline.response.key', 'code')
|
||||
->inject('response')
|
||||
->action(function (Response $response) {
|
||||
$list = Config::getParam('locale-languages');
|
||||
|
|
|
@ -135,6 +135,7 @@ App::get('/v1/teams')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_TEAM_LIST)
|
||||
->label('sdk.offline.model', '/teams')
|
||||
->param('queries', [], new Teams(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Teams::ALLOWED_ATTRIBUTES), true)
|
||||
->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true)
|
||||
->inject('response')
|
||||
|
@ -184,6 +185,8 @@ App::get('/v1/teams/:teamId')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_TEAM)
|
||||
->label('sdk.offline.model', '/teams')
|
||||
->label('sdk.offline.key', '{teamId}')
|
||||
->param('teamId', '', new UID(), 'Team ID.')
|
||||
->inject('response')
|
||||
->inject('dbForProject')
|
||||
|
@ -212,6 +215,8 @@ App::put('/v1/teams/:teamId')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_TEAM)
|
||||
->label('sdk.offline.model', '/teams')
|
||||
->label('sdk.offline.key', '{teamId}')
|
||||
->param('teamId', '', new UID(), 'Team ID.')
|
||||
->param('name', null, new Text(128), 'New team name. Max length: 128 chars.')
|
||||
->inject('response')
|
||||
|
@ -532,6 +537,7 @@ App::get('/v1/teams/:teamId/memberships')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_MEMBERSHIP_LIST)
|
||||
->label('sdk.offline.model', '/teams/{teamId}/memberships')
|
||||
->param('teamId', '', new UID(), 'Team ID.')
|
||||
->param('queries', [], new Memberships(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Memberships::ALLOWED_ATTRIBUTES), true)
|
||||
->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true)
|
||||
|
@ -613,6 +619,8 @@ App::get('/v1/teams/:teamId/memberships/:membershipId')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_MEMBERSHIP)
|
||||
->label('sdk.offline.model', '/teams/{teamId}/memberships')
|
||||
->label('sdk.offline.key', '{membershipId}')
|
||||
->param('teamId', '', new UID(), 'Team ID.')
|
||||
->param('membershipId', '', new UID(), 'Membership ID.')
|
||||
->inject('response')
|
||||
|
|
|
@ -135,6 +135,8 @@ App::post('/v1/mock/tests/bar')
|
|||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_MOCK)
|
||||
->label('sdk.offline.model', '/mock/tests/bar')
|
||||
->label('sdk.offline.key', '{required}')
|
||||
->label('sdk.mock', true)
|
||||
->param('required', '', new Text(100), 'Sample string param')
|
||||
->param('default', '', new Integer(true), 'Sample numeric param')
|
||||
|
|
|
@ -17,7 +17,7 @@ App::get('/versions')
|
|||
];
|
||||
|
||||
foreach ($platforms as $platform) {
|
||||
$languages = $platform['languages'] ?? [];
|
||||
$languages = $platform['sdks'] ?? [];
|
||||
|
||||
foreach ($languages as $key => $language) {
|
||||
if (isset($language['dev']) && $language['dev']) {
|
||||
|
|
|
@ -1061,7 +1061,7 @@ App::setResource('servers', function () {
|
|||
|
||||
$languages = array_map(function ($language) {
|
||||
return strtolower($language['name']);
|
||||
}, $server['languages']);
|
||||
}, $server['sdks']);
|
||||
|
||||
return $languages;
|
||||
});
|
||||
|
|
|
@ -26,7 +26,8 @@ $cli
|
|||
->task('sdks')
|
||||
->action(function () {
|
||||
$platforms = Config::getParam('platforms');
|
||||
$selected = \strtolower(Console::confirm('Choose SDK ("*" for all):'));
|
||||
$selectedPlatform = Console::confirm('Choose Platform ("' . APP_PLATFORM_CLIENT . '", "' . APP_PLATFORM_SERVER . '", "' . APP_PLATFORM_CONSOLE . '" or "*" for all):');
|
||||
$selectedSDK = \strtolower(Console::confirm('Choose SDK ("*" for all):'));
|
||||
$version = Console::confirm('Choose an Appwrite version');
|
||||
$git = (Console::confirm('Should we use git push? (yes/no)') == 'yes');
|
||||
$production = ($git) ? (Console::confirm('Type "Appwrite" to push code to production git repos') == 'Appwrite') : false;
|
||||
|
@ -37,8 +38,12 @@ $cli
|
|||
}
|
||||
|
||||
foreach ($platforms as $key => $platform) {
|
||||
foreach ($platform['languages'] as $language) {
|
||||
if ($selected !== $language['key'] && $selected !== '*') {
|
||||
if ($selectedPlatform !== $key && $selectedPlatform !== '*') {
|
||||
continue;
|
||||
}
|
||||
|
||||
foreach ($platform['sdks'] as $language) {
|
||||
if ($selectedSDK !== $language['key'] && $selectedSDK !== '*') {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -81,8 +86,13 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|||
switch ($language['key']) {
|
||||
case 'web':
|
||||
$config = new Web();
|
||||
$config->setNPMPackage('appwrite');
|
||||
$config->setBowerPackage('appwrite');
|
||||
if ($platform['key'] === APP_PLATFORM_CONSOLE) {
|
||||
$config->setNPMPackage('@appwrite.io/console');
|
||||
$config->setBowerPackage('@appwrite.io/console');
|
||||
} else {
|
||||
$config->setNPMPackage('appwrite');
|
||||
$config->setBowerPackage('appwrite');
|
||||
}
|
||||
break;
|
||||
case 'cli':
|
||||
$config = new CLI();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Account } from "appwrite";
|
||||
import { Client, Account } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Avatars } from "appwrite";
|
||||
import { Client, Avatars } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Avatars } from "appwrite";
|
||||
import { Client, Avatars } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Avatars } from "appwrite";
|
||||
import { Client, Avatars } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Avatars } from "appwrite";
|
||||
import { Client, Avatars } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Avatars } from "appwrite";
|
||||
import { Client, Avatars } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Avatars } from "appwrite";
|
||||
import { Client, Avatars } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Avatars } from "appwrite";
|
||||
import { Client, Avatars } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Databases } from "appwrite";
|
||||
import { Client, Databases } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Functions } from "appwrite";
|
||||
import { Client, Functions } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Functions } from "appwrite";
|
||||
import { Client, Functions } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Functions } from "appwrite";
|
||||
import { Client, Functions } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Functions } from "appwrite";
|
||||
import { Client, Functions } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Functions } from "appwrite";
|
||||
import { Client, Functions } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Functions } from "appwrite";
|
||||
import { Client, Functions } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Functions } from "appwrite";
|
||||
import { Client, Functions } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Client, Functions } from "appwrite";
|
||||
import { Client, Functions } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue