appwrite-cli 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/npm-publish.yml +41 -0
- package/Formula/appwrite.rb +19 -0
- package/LICENSE.md +12 -0
- package/README.md +102 -0
- package/docs/examples/account/create-anonymous-session.md +1 -0
- package/docs/examples/account/create-j-w-t.md +1 -0
- package/docs/examples/account/create-magic-u-r-l-session.md +4 -0
- package/docs/examples/account/create-o-auth2session.md +5 -0
- package/docs/examples/account/create-recovery.md +3 -0
- package/docs/examples/account/create-session.md +3 -0
- package/docs/examples/account/create-verification.md +2 -0
- package/docs/examples/account/create.md +5 -0
- package/docs/examples/account/delete-session.md +2 -0
- package/docs/examples/account/delete-sessions.md +1 -0
- package/docs/examples/account/delete.md +1 -0
- package/docs/examples/account/get-logs.md +3 -0
- package/docs/examples/account/get-prefs.md +1 -0
- package/docs/examples/account/get-session.md +2 -0
- package/docs/examples/account/get-sessions.md +1 -0
- package/docs/examples/account/get.md +1 -0
- package/docs/examples/account/update-email.md +3 -0
- package/docs/examples/account/update-magic-u-r-l-session.md +3 -0
- package/docs/examples/account/update-name.md +2 -0
- package/docs/examples/account/update-password.md +3 -0
- package/docs/examples/account/update-prefs.md +2 -0
- package/docs/examples/account/update-recovery.md +5 -0
- package/docs/examples/account/update-session.md +2 -0
- package/docs/examples/account/update-verification.md +3 -0
- package/docs/examples/avatars/get-browser.md +5 -0
- package/docs/examples/avatars/get-credit-card.md +5 -0
- package/docs/examples/avatars/get-favicon.md +2 -0
- package/docs/examples/avatars/get-flag.md +5 -0
- package/docs/examples/avatars/get-image.md +4 -0
- package/docs/examples/avatars/get-initials.md +6 -0
- package/docs/examples/avatars/get-q-r.md +5 -0
- package/docs/examples/database/create-boolean-attribute.md +6 -0
- package/docs/examples/database/create-collection.md +6 -0
- package/docs/examples/database/create-document.md +6 -0
- package/docs/examples/database/create-email-attribute.md +6 -0
- package/docs/examples/database/create-enum-attribute.md +7 -0
- package/docs/examples/database/create-float-attribute.md +8 -0
- package/docs/examples/database/create-index.md +6 -0
- package/docs/examples/database/create-integer-attribute.md +8 -0
- package/docs/examples/database/create-ip-attribute.md +6 -0
- package/docs/examples/database/create-string-attribute.md +7 -0
- package/docs/examples/database/create-url-attribute.md +6 -0
- package/docs/examples/database/delete-attribute.md +3 -0
- package/docs/examples/database/delete-collection.md +2 -0
- package/docs/examples/database/delete-document.md +3 -0
- package/docs/examples/database/delete-index.md +3 -0
- package/docs/examples/database/get-attribute.md +3 -0
- package/docs/examples/database/get-collection-usage.md +3 -0
- package/docs/examples/database/get-collection.md +2 -0
- package/docs/examples/database/get-document.md +3 -0
- package/docs/examples/database/get-index.md +3 -0
- package/docs/examples/database/get-usage.md +2 -0
- package/docs/examples/database/list-attributes.md +2 -0
- package/docs/examples/database/list-collection-logs.md +4 -0
- package/docs/examples/database/list-collections.md +7 -0
- package/docs/examples/database/list-document-logs.md +5 -0
- package/docs/examples/database/list-documents.md +9 -0
- package/docs/examples/database/list-indexes.md +2 -0
- package/docs/examples/database/update-collection.md +7 -0
- package/docs/examples/database/update-document.md +6 -0
- package/docs/examples/functions/create-deployment.md +5 -0
- package/docs/examples/functions/create-execution.md +4 -0
- package/docs/examples/functions/create.md +9 -0
- package/docs/examples/functions/delete-deployment.md +3 -0
- package/docs/examples/functions/delete.md +2 -0
- package/docs/examples/functions/get-deployment.md +3 -0
- package/docs/examples/functions/get-execution.md +3 -0
- package/docs/examples/functions/get-usage.md +3 -0
- package/docs/examples/functions/get.md +2 -0
- package/docs/examples/functions/list-deployments.md +8 -0
- package/docs/examples/functions/list-executions.md +7 -0
- package/docs/examples/functions/list-runtimes.md +1 -0
- package/docs/examples/functions/list.md +7 -0
- package/docs/examples/functions/retry-build.md +4 -0
- package/docs/examples/functions/update-deployment.md +3 -0
- package/docs/examples/functions/update.md +8 -0
- package/docs/examples/health/get-antivirus.md +1 -0
- package/docs/examples/health/get-cache.md +1 -0
- package/docs/examples/health/get-d-b.md +1 -0
- package/docs/examples/health/get-queue-certificates.md +1 -0
- package/docs/examples/health/get-queue-functions.md +1 -0
- package/docs/examples/health/get-queue-logs.md +1 -0
- package/docs/examples/health/get-queue-usage.md +1 -0
- package/docs/examples/health/get-queue-webhooks.md +1 -0
- package/docs/examples/health/get-storage-local.md +1 -0
- package/docs/examples/health/get-time.md +1 -0
- package/docs/examples/health/get.md +1 -0
- package/docs/examples/locale/get-continents.md +1 -0
- package/docs/examples/locale/get-countries-e-u.md +1 -0
- package/docs/examples/locale/get-countries-phones.md +1 -0
- package/docs/examples/locale/get-countries.md +1 -0
- package/docs/examples/locale/get-currencies.md +1 -0
- package/docs/examples/locale/get-languages.md +1 -0
- package/docs/examples/locale/get.md +1 -0
- package/docs/examples/projects/create-domain.md +3 -0
- package/docs/examples/projects/create-key.md +4 -0
- package/docs/examples/projects/create-platform.md +7 -0
- package/docs/examples/projects/create-webhook.md +8 -0
- package/docs/examples/projects/create.md +13 -0
- package/docs/examples/projects/delete-domain.md +3 -0
- package/docs/examples/projects/delete-key.md +3 -0
- package/docs/examples/projects/delete-platform.md +3 -0
- package/docs/examples/projects/delete-webhook.md +3 -0
- package/docs/examples/projects/delete.md +3 -0
- package/docs/examples/projects/get-domain.md +3 -0
- package/docs/examples/projects/get-key.md +3 -0
- package/docs/examples/projects/get-platform.md +3 -0
- package/docs/examples/projects/get-usage.md +3 -0
- package/docs/examples/projects/get-webhook.md +3 -0
- package/docs/examples/projects/get.md +2 -0
- package/docs/examples/projects/list-domains.md +2 -0
- package/docs/examples/projects/list-keys.md +2 -0
- package/docs/examples/projects/list-platforms.md +2 -0
- package/docs/examples/projects/list-webhooks.md +2 -0
- package/docs/examples/projects/list.md +7 -0
- package/docs/examples/projects/update-auth-limit.md +3 -0
- package/docs/examples/projects/update-auth-status.md +4 -0
- package/docs/examples/projects/update-domain-verification.md +3 -0
- package/docs/examples/projects/update-key.md +5 -0
- package/docs/examples/projects/update-o-auth2.md +5 -0
- package/docs/examples/projects/update-platform.md +7 -0
- package/docs/examples/projects/update-service-status.md +4 -0
- package/docs/examples/projects/update-webhook.md +9 -0
- package/docs/examples/projects/update.md +12 -0
- package/docs/examples/storage/create-bucket.md +11 -0
- package/docs/examples/storage/create-file.md +6 -0
- package/docs/examples/storage/delete-bucket.md +2 -0
- package/docs/examples/storage/delete-file.md +3 -0
- package/docs/examples/storage/get-bucket-usage.md +3 -0
- package/docs/examples/storage/get-bucket.md +2 -0
- package/docs/examples/storage/get-file-download.md +3 -0
- package/docs/examples/storage/get-file-preview.md +14 -0
- package/docs/examples/storage/get-file-view.md +3 -0
- package/docs/examples/storage/get-file.md +3 -0
- package/docs/examples/storage/get-usage.md +2 -0
- package/docs/examples/storage/list-buckets.md +7 -0
- package/docs/examples/storage/list-files.md +8 -0
- package/docs/examples/storage/update-bucket.md +11 -0
- package/docs/examples/storage/update-file.md +5 -0
- package/docs/examples/teams/create-membership.md +6 -0
- package/docs/examples/teams/create.md +4 -0
- package/docs/examples/teams/delete-membership.md +3 -0
- package/docs/examples/teams/delete.md +2 -0
- package/docs/examples/teams/get-membership.md +3 -0
- package/docs/examples/teams/get-memberships.md +8 -0
- package/docs/examples/teams/get.md +2 -0
- package/docs/examples/teams/list.md +7 -0
- package/docs/examples/teams/update-membership-roles.md +4 -0
- package/docs/examples/teams/update-membership-status.md +5 -0
- package/docs/examples/teams/update.md +3 -0
- package/docs/examples/users/create.md +5 -0
- package/docs/examples/users/delete-session.md +3 -0
- package/docs/examples/users/delete-sessions.md +2 -0
- package/docs/examples/users/delete.md +2 -0
- package/docs/examples/users/get-logs.md +4 -0
- package/docs/examples/users/get-prefs.md +2 -0
- package/docs/examples/users/get-sessions.md +2 -0
- package/docs/examples/users/get-usage.md +3 -0
- package/docs/examples/users/get.md +2 -0
- package/docs/examples/users/list.md +7 -0
- package/docs/examples/users/update-email.md +3 -0
- package/docs/examples/users/update-name.md +3 -0
- package/docs/examples/users/update-password.md +3 -0
- package/docs/examples/users/update-prefs.md +3 -0
- package/docs/examples/users/update-status.md +3 -0
- package/docs/examples/users/update-verification.md +3 -0
- package/index.js +49 -0
- package/install.sh +165 -0
- package/ldid/COPYING +661 -0
- package/ldid/Makefile +51 -0
- package/ldid/control +12 -0
- package/ldid/control.sh +5 -0
- package/ldid/deb.sh +10 -0
- package/ldid/ios.sh +2 -0
- package/ldid/ldid.cpp +3253 -0
- package/ldid/ldid.hpp +164 -0
- package/ldid/libplist/.github/workflows/build.yml +62 -0
- package/ldid/libplist/.github/workflows/codeql-analysis.yml +71 -0
- package/ldid/libplist/AUTHORS +28 -0
- package/ldid/libplist/COPYING +340 -0
- package/ldid/libplist/COPYING.LESSER +502 -0
- package/ldid/libplist/Makefile.am +20 -0
- package/ldid/libplist/NEWS +252 -0
- package/ldid/libplist/README.md +114 -0
- package/ldid/libplist/aclocal.m4 +1729 -0
- package/ldid/libplist/autogen.sh +26 -0
- package/ldid/libplist/configure.ac +292 -0
- package/ldid/libplist/cython/Makefile.am +53 -0
- package/ldid/libplist/cython/plist.pxd +78 -0
- package/ldid/libplist/cython/plist.pyx +947 -0
- package/ldid/libplist/cython/plist_util.c +40 -0
- package/ldid/libplist/cython/plist_util.h +5 -0
- package/ldid/libplist/docs/Makefile.am +3 -0
- package/ldid/libplist/docs/plistutil.1 +62 -0
- package/ldid/libplist/fuzz/Makefile.am +43 -0
- package/ldid/libplist/fuzz/bplist-crashes/clusterfuzz-testcase-4766291097288704 +0 -0
- package/ldid/libplist/fuzz/bplist-crashes/clusterfuzz-testcase-4930725262393344 +0 -0
- package/ldid/libplist/fuzz/bplist-crashes/clusterfuzz-testcase-5421965105954816 +0 -0
- package/ldid/libplist/fuzz/bplist-crashes/clusterfuzz-testcase-5556177727389696 +0 -0
- package/ldid/libplist/fuzz/bplist-crashes/clusterfuzz-testcase-6557963011489792 +0 -0
- package/ldid/libplist/fuzz/bplist-crashes/clusterfuzz-testcase-6605859144597504 +0 -0
- package/ldid/libplist/fuzz/bplist-crashes/crash-0ce4dd483b645bc05ec45a97d285dcf1933ee840 +0 -0
- package/ldid/libplist/fuzz/bplist-crashes/crash-0d59cdcb5c3416c2790612b78a631ce9f5622800 +0 -0
- package/ldid/libplist/fuzz/bplist-crashes/crash-17d635ab460fef74df1ac7561f1253533a6359c5 +0 -0
- package/ldid/libplist/fuzz/bplist-crashes/crash-33a67313fa7864cd627ef92d12017a127d342f28 +0 -0
- package/ldid/libplist/fuzz/bplist-crashes/crash-39f1347115f8fe9ac25cdc9332e3fc5cd32c7f7b +0 -0
- package/ldid/libplist/fuzz/bplist-crashes/crash-4bd78175fe01d07c5ee90104fbc68d95dd092210 +0 -0
- package/ldid/libplist/fuzz/bplist-crashes/crash-4c5404453bb7425aef9b953a5f6f3f0afcc48392 +0 -0
- package/ldid/libplist/fuzz/bplist-crashes/crash-52775e25f6af20af351cd616834e602fc988a032 +0 -0
- package/ldid/libplist/fuzz/bplist-crashes/crash-6d1399685b745d3d49fadc91072fabcdde8d16fa +0 -0
- package/ldid/libplist/fuzz/bplist-crashes/crash-94b3725900d63c6258448fd757559c81002de9c9 +0 -0
- package/ldid/libplist/fuzz/bplist-crashes/crash-a47195acbabc3f5b2cda9c6ebda42f2afc1cc5af +0 -0
- package/ldid/libplist/fuzz/bplist-crashes/crash-ce852bae6aeeffc4698a93660236f1b995ce966e +0 -0
- package/ldid/libplist/fuzz/bplist-crashes/crash-daddb6e82e3d1ed76e20e4131462f5247a6fb131 +0 -0
- package/ldid/libplist/fuzz/bplist-crashes/crash-f21be4ebce7f9c337bf96b93cec7e252f5c75a21 +0 -0
- package/ldid/libplist/fuzz/bplist-crashes/crash-f779dafccc0164684d1a264976e56037188b40e2 +0 -0
- package/ldid/libplist/fuzz/bplist-leaks/leak-96fb453b3ba18d31e164831795a708183b5a0dac +0 -0
- package/ldid/libplist/fuzz/bplist-leaks/leak-acb3c00a83d7635638a476a4e70fc1f1caa1a5b1 +0 -0
- package/ldid/libplist/fuzz/bplist-leaks/leak-fe2cd4b1f67e0c9b21e6225a4fb4ca19eab80074 +0 -0
- package/ldid/libplist/fuzz/bplist.dict +1 -0
- package/ldid/libplist/fuzz/bplist_fuzzer.cc +32 -0
- package/ldid/libplist/fuzz/bplist_fuzzer.options +3 -0
- package/ldid/libplist/fuzz/fuzzers.test +8 -0
- package/ldid/libplist/fuzz/init-fuzzers.sh +23 -0
- package/ldid/libplist/fuzz/test-fuzzers.sh +33 -0
- package/ldid/libplist/fuzz/xplist-crashes/clusterfuzz-testcase-4516959125241856 +0 -0
- package/ldid/libplist/fuzz/xplist-crashes/clusterfuzz-testcase-4663876528373760 +5 -0
- package/ldid/libplist/fuzz/xplist-crashes/clusterfuzz-testcase-5799076113154048 +45 -0
- package/ldid/libplist/fuzz/xplist-crashes/clusterfuzz-testcase-5922404220010496 +0 -0
- package/ldid/libplist/fuzz/xplist-crashes/clusterfuzz-testcase-6015098361479168 +0 -0
- package/ldid/libplist/fuzz/xplist-crashes/clusterfuzz-testcase-6043836860071936 +0 -0
- package/ldid/libplist/fuzz/xplist-crashes/clusterfuzz-testcase-6047509906456576 +10050 -0
- package/ldid/libplist/fuzz/xplist-crashes/clusterfuzz-testcase-6482601374121984 +0 -0
- package/ldid/libplist/fuzz/xplist-crashes/crash-09788d7acb46b4b177422f9c4ee54556a3ad1f17 +53 -0
- package/ldid/libplist/fuzz/xplist-crashes/crash-155c60d5c4b2778110fb4a633caa7d64eb9b99c1 +9 -0
- package/ldid/libplist/fuzz/xplist-crashes/crash-348c909a0b3532977185f551eb5d2ed04e694883 +11 -0
- package/ldid/libplist/fuzz/xplist-crashes/crash-7bc172e27a2b1d4fcaf031f59d1f08fb83081e4a +8 -0
- package/ldid/libplist/fuzz/xplist-crashes/crash-80c28b0e2a446665e68927dd4441c10c9a68e64e +0 -0
- package/ldid/libplist/fuzz/xplist-crashes/crash-8acf177da60ecf13c36d0da1b8e25de891980ea6 +5 -0
- package/ldid/libplist/fuzz/xplist-crashes/crash-94276cf69a50e78dd6cdf079c208cb80f357cd33 +0 -0
- package/ldid/libplist/fuzz/xplist-crashes/crash-9ddb891a0ec42401eb4629e6b99e01aef7909eb9 +0 -0
- package/ldid/libplist/fuzz/xplist-crashes/crash-a8b44e1f5be4f75f00a937016ec5405bce77a0f9 +0 -0
- package/ldid/libplist/fuzz/xplist-crashes/crash-da39a3ee5e6b4b0d3255bfef95601890afd80709 +0 -0
- package/ldid/libplist/fuzz/xplist-crashes/crash-f03c680ee1c4d84c28e731752df77a61e213a24d +72 -0
- package/ldid/libplist/fuzz/xplist-leaks/clusterfuzz-testcase-4634751103139840 +187 -0
- package/ldid/libplist/fuzz/xplist-leaks/clusterfuzz-testcase-6056412121661440 +12 -0
- package/ldid/libplist/fuzz/xplist-leaks/leak-47b0a9f21d3affab6cfc898e5140bb53265ada07 +0 -0
- package/ldid/libplist/fuzz/xplist-leaks/leak-4c81aae70b20d9b9408b78d40999a54205bdcfb7 +0 -0
- package/ldid/libplist/fuzz/xplist-leaks/leak-53bc466851eda790bd891733da5db0a7482886bf +6 -0
- package/ldid/libplist/fuzz/xplist.dict +51 -0
- package/ldid/libplist/fuzz/xplist_fuzzer.cc +32 -0
- package/ldid/libplist/fuzz/xplist_fuzzer.options +3 -0
- package/ldid/libplist/include/Makefile.am +15 -0
- package/ldid/libplist/include/plist/Array.h +55 -0
- package/ldid/libplist/include/plist/Boolean.h +48 -0
- package/ldid/libplist/include/plist/Data.h +49 -0
- package/ldid/libplist/include/plist/Date.h +50 -0
- package/ldid/libplist/include/plist/Dictionary.h +68 -0
- package/ldid/libplist/include/plist/Integer.h +48 -0
- package/ldid/libplist/include/plist/Key.h +49 -0
- package/ldid/libplist/include/plist/Node.h +57 -0
- package/ldid/libplist/include/plist/Real.h +48 -0
- package/ldid/libplist/include/plist/String.h +49 -0
- package/ldid/libplist/include/plist/Structure.h +59 -0
- package/ldid/libplist/include/plist/Uid.h +48 -0
- package/ldid/libplist/include/plist/plist++.h +39 -0
- package/ldid/libplist/include/plist/plist.h +953 -0
- package/ldid/libplist/libcnary/COPYING +502 -0
- package/ldid/libplist/libcnary/Makefile.am +15 -0
- package/ldid/libplist/libcnary/README +5 -0
- package/ldid/libplist/libcnary/cnary.c +46 -0
- package/ldid/libplist/libcnary/include/node.h +65 -0
- package/ldid/libplist/libcnary/include/node_list.h +47 -0
- package/ldid/libplist/libcnary/include/object.h +41 -0
- package/ldid/libplist/libcnary/node.c +216 -0
- package/ldid/libplist/libcnary/node_list.c +157 -0
- package/ldid/libplist/m4/ac_pkg_cython.m4 +67 -0
- package/ldid/libplist/m4/as-compiler-flag.m4 +62 -0
- package/ldid/libplist/m4/ax_pthread.m4 +485 -0
- package/ldid/libplist/m4/ax_python_devel.m4 +327 -0
- package/ldid/libplist/m4/cython_python.m4 +7 -0
- package/ldid/libplist/src/Array.cpp +148 -0
- package/ldid/libplist/src/Boolean.cpp +73 -0
- package/ldid/libplist/src/Data.cpp +79 -0
- package/ldid/libplist/src/Date.cpp +76 -0
- package/ldid/libplist/src/Dictionary.cpp +182 -0
- package/ldid/libplist/src/Integer.cpp +73 -0
- package/ldid/libplist/src/Key.cpp +80 -0
- package/ldid/libplist/src/Makefile.am +63 -0
- package/ldid/libplist/src/Node.cpp +166 -0
- package/ldid/libplist/src/Real.cpp +73 -0
- package/ldid/libplist/src/String.cpp +80 -0
- package/ldid/libplist/src/Structure.cpp +123 -0
- package/ldid/libplist/src/Uid.cpp +73 -0
- package/ldid/libplist/src/base64.c +119 -0
- package/ldid/libplist/src/base64.h +28 -0
- package/ldid/libplist/src/bplist.c +1381 -0
- package/ldid/libplist/src/bytearray.c +61 -0
- package/ldid/libplist/src/bytearray.h +36 -0
- package/ldid/libplist/src/hashtable.c +140 -0
- package/ldid/libplist/src/hashtable.h +50 -0
- package/ldid/libplist/src/plist.c +1356 -0
- package/ldid/libplist/src/plist.h +74 -0
- package/ldid/libplist/src/ptrarray.c +96 -0
- package/ldid/libplist/src/ptrarray.h +40 -0
- package/ldid/libplist/src/strbuf.h +34 -0
- package/ldid/libplist/src/time64.c +814 -0
- package/ldid/libplist/src/time64.h +81 -0
- package/ldid/libplist/src/time64_limits.h +97 -0
- package/ldid/libplist/src/xplist.c +1435 -0
- package/ldid/libplist/test/Makefile.am +93 -0
- package/ldid/libplist/test/amp.test +14 -0
- package/ldid/libplist/test/bigarray.test +15 -0
- package/ldid/libplist/test/cdata.test +12 -0
- package/ldid/libplist/test/data/1.plist +35 -0
- package/ldid/libplist/test/data/2.plist +100 -0
- package/ldid/libplist/test/data/3.plist +420 -0
- package/ldid/libplist/test/data/4.plist +5037 -0
- package/ldid/libplist/test/data/5.plist +55053 -0
- package/ldid/libplist/test/data/6.plist +4006 -0
- package/ldid/libplist/test/data/7.plist +14 -0
- package/ldid/libplist/test/data/amp.plist +6 -0
- package/ldid/libplist/test/data/cdata.plist +6 -0
- package/ldid/libplist/test/data/dictref1byte.bplist +0 -0
- package/ldid/libplist/test/data/dictref2bytes.bplist +0 -0
- package/ldid/libplist/test/data/dictref3bytes.bplist +0 -0
- package/ldid/libplist/test/data/dictref4bytes.bplist +0 -0
- package/ldid/libplist/test/data/dictref5bytes.bplist +0 -0
- package/ldid/libplist/test/data/dictref6bytes.bplist +0 -0
- package/ldid/libplist/test/data/dictref7bytes.bplist +0 -0
- package/ldid/libplist/test/data/dictref8bytes.bplist +0 -0
- package/ldid/libplist/test/data/empty_keys.plist +8 -0
- package/ldid/libplist/test/data/entities.plist +57 -0
- package/ldid/libplist/test/data/hex.plist +5 -0
- package/ldid/libplist/test/data/invalid_tag.plist +6 -0
- package/ldid/libplist/test/data/malformed_dict.bplist +0 -0
- package/ldid/libplist/test/data/off1byte.bplist +0 -0
- package/ldid/libplist/test/data/off2bytes.bplist +0 -0
- package/ldid/libplist/test/data/off3bytes.bplist +0 -0
- package/ldid/libplist/test/data/off4bytes.bplist +0 -0
- package/ldid/libplist/test/data/off5bytes.bplist +0 -0
- package/ldid/libplist/test/data/off6bytes.bplist +0 -0
- package/ldid/libplist/test/data/off7bytes.bplist +0 -0
- package/ldid/libplist/test/data/off8bytes.bplist +0 -0
- package/ldid/libplist/test/data/offxml.plist +8 -0
- package/ldid/libplist/test/data/order.bplist +0 -0
- package/ldid/libplist/test/data/order.plist +27 -0
- package/ldid/libplist/test/data/recursion.bplist +0 -0
- package/ldid/libplist/test/data/signed.bplist +0 -0
- package/ldid/libplist/test/data/signed.plist +5 -0
- package/ldid/libplist/test/data/signedunsigned.bplist +0 -0
- package/ldid/libplist/test/data/signedunsigned.plist +11 -0
- package/ldid/libplist/test/data/unsigned.bplist +0 -0
- package/ldid/libplist/test/data/unsigned.plist +5 -0
- package/ldid/libplist/test/dates.test +15 -0
- package/ldid/libplist/test/empty.test +15 -0
- package/ldid/libplist/test/empty_keys.test +12 -0
- package/ldid/libplist/test/entities.test +12 -0
- package/ldid/libplist/test/hex.test +12 -0
- package/ldid/libplist/test/huge.test +15 -0
- package/ldid/libplist/test/invalid_tag.test +14 -0
- package/ldid/libplist/test/large.test +15 -0
- package/ldid/libplist/test/malformed_dict.test +11 -0
- package/ldid/libplist/test/medium.test +15 -0
- package/ldid/libplist/test/offsetsize.test +12 -0
- package/ldid/libplist/test/order.test +13 -0
- package/ldid/libplist/test/plist_cmp.c +158 -0
- package/ldid/libplist/test/plist_test.c +135 -0
- package/ldid/libplist/test/recursion.test +11 -0
- package/ldid/libplist/test/refsize.test +12 -0
- package/ldid/libplist/test/signedunsigned1.test +23 -0
- package/ldid/libplist/test/signedunsigned2.test +23 -0
- package/ldid/libplist/test/signedunsigned3.test +23 -0
- package/ldid/libplist/test/small.test +15 -0
- package/ldid/libplist/test/timezone1.test +17 -0
- package/ldid/libplist/test/timezone2.test +21 -0
- package/ldid/libplist/tools/Makefile.am +10 -0
- package/ldid/libplist/tools/plistutil.c +299 -0
- package/ldid/lookup2.c +416 -0
- package/ldid/make.sh +90 -0
- package/ldid/minimal/hexdump.h +76 -0
- package/ldid/minimal/mapping.h +72 -0
- package/ldid/minimal/sqlite3.h +71 -0
- package/ldid/minimal/stdlib.h +129 -0
- package/ldid/minimal/string.h +51 -0
- package/ldid/plist.sh +2 -0
- package/ldid/sha1.h +64 -0
- package/ldid/sysroot.sh +31 -0
- package/ldid/version.sh +2 -0
- package/lib/client.js +243 -0
- package/lib/commands/account.js +785 -0
- package/lib/commands/avatars.js +349 -0
- package/lib/commands/database.js +1238 -0
- package/lib/commands/deploy.js +477 -0
- package/lib/commands/functions.js +689 -0
- package/lib/commands/generic.js +106 -0
- package/lib/commands/health.js +269 -0
- package/lib/commands/init.js +148 -0
- package/lib/commands/locale.js +177 -0
- package/lib/commands/projects.js +1191 -0
- package/lib/commands/storage.js +743 -0
- package/lib/commands/teams.js +435 -0
- package/lib/commands/users.js +542 -0
- package/lib/config.js +264 -0
- package/lib/exception.js +9 -0
- package/lib/parser.js +179 -0
- package/lib/questions.js +223 -0
- package/lib/sdks.js +82 -0
- package/package.json +41 -0
|
@@ -0,0 +1,1238 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const { promisify } = require('util');
|
|
3
|
+
const libClient = require('../client.js');
|
|
4
|
+
const childProcess = require('child_process');
|
|
5
|
+
const { Command } = require('commander');
|
|
6
|
+
const { sdkForProject, sdkForConsole } = require('../sdks')
|
|
7
|
+
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log } = require('../parser')
|
|
8
|
+
const { localConfig, globalConfig } = require("../config");
|
|
9
|
+
|
|
10
|
+
const database = new Command("database").description(commandDescriptions['database'])
|
|
11
|
+
|
|
12
|
+
const databaseListCollections = async ({ search, limit, offset, cursor, cursorDirection, orderType, parseOutput = true, sdk = undefined}) => {
|
|
13
|
+
/* @param {string} search */
|
|
14
|
+
/* @param {number} limit */
|
|
15
|
+
/* @param {number} offset */
|
|
16
|
+
/* @param {string} cursor */
|
|
17
|
+
/* @param {string} cursorDirection */
|
|
18
|
+
/* @param {string} orderType */
|
|
19
|
+
|
|
20
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
21
|
+
let path = '/database/collections';
|
|
22
|
+
let payload = {};
|
|
23
|
+
|
|
24
|
+
/** Query Params */
|
|
25
|
+
if (typeof search !== 'undefined') {
|
|
26
|
+
payload['search'] = search;
|
|
27
|
+
}
|
|
28
|
+
if (typeof limit !== 'undefined') {
|
|
29
|
+
payload['limit'] = limit;
|
|
30
|
+
}
|
|
31
|
+
if (typeof offset !== 'undefined') {
|
|
32
|
+
payload['offset'] = offset;
|
|
33
|
+
}
|
|
34
|
+
if (typeof cursor !== 'undefined') {
|
|
35
|
+
payload['cursor'] = cursor;
|
|
36
|
+
}
|
|
37
|
+
if (typeof cursorDirection !== 'undefined') {
|
|
38
|
+
payload['cursorDirection'] = cursorDirection;
|
|
39
|
+
}
|
|
40
|
+
if (typeof orderType !== 'undefined') {
|
|
41
|
+
payload['orderType'] = orderType;
|
|
42
|
+
}
|
|
43
|
+
let response = undefined;
|
|
44
|
+
response = await client.call('get', path, {
|
|
45
|
+
'content-type': 'application/json',
|
|
46
|
+
}, payload);
|
|
47
|
+
|
|
48
|
+
if (parseOutput) {
|
|
49
|
+
parse(response)
|
|
50
|
+
success()
|
|
51
|
+
}
|
|
52
|
+
return response;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const databaseCreateCollection = async ({ collectionId, name, permission, read, write, parseOutput = true, sdk = undefined}) => {
|
|
56
|
+
/* @param {string} collectionId */
|
|
57
|
+
/* @param {string} name */
|
|
58
|
+
/* @param {string} permission */
|
|
59
|
+
/* @param {string[]} read */
|
|
60
|
+
/* @param {string[]} write */
|
|
61
|
+
|
|
62
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
63
|
+
let path = '/database/collections';
|
|
64
|
+
let payload = {};
|
|
65
|
+
|
|
66
|
+
/** Body Params */
|
|
67
|
+
if (typeof collectionId !== 'undefined') {
|
|
68
|
+
payload['collectionId'] = collectionId;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (typeof name !== 'undefined') {
|
|
72
|
+
payload['name'] = name;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (typeof permission !== 'undefined') {
|
|
76
|
+
payload['permission'] = permission;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (typeof read !== 'undefined') {
|
|
80
|
+
payload['read'] = read;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if (typeof write !== 'undefined') {
|
|
84
|
+
payload['write'] = write;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
let response = undefined;
|
|
88
|
+
response = await client.call('post', path, {
|
|
89
|
+
'content-type': 'application/json',
|
|
90
|
+
}, payload);
|
|
91
|
+
|
|
92
|
+
if (parseOutput) {
|
|
93
|
+
parse(response)
|
|
94
|
+
success()
|
|
95
|
+
}
|
|
96
|
+
return response;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
const databaseGetCollection = async ({ collectionId, parseOutput = true, sdk = undefined}) => {
|
|
100
|
+
/* @param {string} collectionId */
|
|
101
|
+
|
|
102
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
103
|
+
let path = '/database/collections/{collectionId}'.replace('{collectionId}', collectionId);
|
|
104
|
+
let payload = {};
|
|
105
|
+
let response = undefined;
|
|
106
|
+
response = await client.call('get', path, {
|
|
107
|
+
'content-type': 'application/json',
|
|
108
|
+
}, payload);
|
|
109
|
+
|
|
110
|
+
if (parseOutput) {
|
|
111
|
+
parse(response)
|
|
112
|
+
success()
|
|
113
|
+
}
|
|
114
|
+
return response;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const databaseUpdateCollection = async ({ collectionId, name, permission, read, write, enabled, parseOutput = true, sdk = undefined}) => {
|
|
118
|
+
/* @param {string} collectionId */
|
|
119
|
+
/* @param {string} name */
|
|
120
|
+
/* @param {string} permission */
|
|
121
|
+
/* @param {string[]} read */
|
|
122
|
+
/* @param {string[]} write */
|
|
123
|
+
/* @param {boolean} enabled */
|
|
124
|
+
|
|
125
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
126
|
+
let path = '/database/collections/{collectionId}'.replace('{collectionId}', collectionId);
|
|
127
|
+
let payload = {};
|
|
128
|
+
|
|
129
|
+
/** Body Params */
|
|
130
|
+
if (typeof name !== 'undefined') {
|
|
131
|
+
payload['name'] = name;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
if (typeof permission !== 'undefined') {
|
|
135
|
+
payload['permission'] = permission;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if (typeof read !== 'undefined') {
|
|
139
|
+
payload['read'] = read;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
if (typeof write !== 'undefined') {
|
|
143
|
+
payload['write'] = write;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
if (typeof enabled !== 'undefined') {
|
|
147
|
+
payload['enabled'] = enabled;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
let response = undefined;
|
|
151
|
+
response = await client.call('put', path, {
|
|
152
|
+
'content-type': 'application/json',
|
|
153
|
+
}, payload);
|
|
154
|
+
|
|
155
|
+
if (parseOutput) {
|
|
156
|
+
parse(response)
|
|
157
|
+
success()
|
|
158
|
+
}
|
|
159
|
+
return response;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
const databaseDeleteCollection = async ({ collectionId, parseOutput = true, sdk = undefined}) => {
|
|
163
|
+
/* @param {string} collectionId */
|
|
164
|
+
|
|
165
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
166
|
+
let path = '/database/collections/{collectionId}'.replace('{collectionId}', collectionId);
|
|
167
|
+
let payload = {};
|
|
168
|
+
let response = undefined;
|
|
169
|
+
response = await client.call('delete', path, {
|
|
170
|
+
'content-type': 'application/json',
|
|
171
|
+
}, payload);
|
|
172
|
+
|
|
173
|
+
if (parseOutput) {
|
|
174
|
+
parse(response)
|
|
175
|
+
success()
|
|
176
|
+
}
|
|
177
|
+
return response;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
const databaseListAttributes = async ({ collectionId, parseOutput = true, sdk = undefined}) => {
|
|
181
|
+
/* @param {string} collectionId */
|
|
182
|
+
|
|
183
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
184
|
+
let path = '/database/collections/{collectionId}/attributes'.replace('{collectionId}', collectionId);
|
|
185
|
+
let payload = {};
|
|
186
|
+
let response = undefined;
|
|
187
|
+
response = await client.call('get', path, {
|
|
188
|
+
'content-type': 'application/json',
|
|
189
|
+
}, payload);
|
|
190
|
+
|
|
191
|
+
if (parseOutput) {
|
|
192
|
+
parse(response)
|
|
193
|
+
success()
|
|
194
|
+
}
|
|
195
|
+
return response;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
const databaseCreateBooleanAttribute = async ({ collectionId, key, required, xdefault, array, parseOutput = true, sdk = undefined}) => {
|
|
199
|
+
/* @param {string} collectionId */
|
|
200
|
+
/* @param {string} key */
|
|
201
|
+
/* @param {boolean} required */
|
|
202
|
+
/* @param {boolean} xdefault */
|
|
203
|
+
/* @param {boolean} array */
|
|
204
|
+
|
|
205
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
206
|
+
let path = '/database/collections/{collectionId}/attributes/boolean'.replace('{collectionId}', collectionId);
|
|
207
|
+
let payload = {};
|
|
208
|
+
|
|
209
|
+
/** Body Params */
|
|
210
|
+
if (typeof key !== 'undefined') {
|
|
211
|
+
payload['key'] = key;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
if (typeof required !== 'undefined') {
|
|
215
|
+
payload['required'] = required;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
if (typeof xdefault !== 'undefined') {
|
|
219
|
+
payload['default'] = xdefault;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
if (typeof array !== 'undefined') {
|
|
223
|
+
payload['array'] = array;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
let response = undefined;
|
|
227
|
+
response = await client.call('post', path, {
|
|
228
|
+
'content-type': 'application/json',
|
|
229
|
+
}, payload);
|
|
230
|
+
|
|
231
|
+
if (parseOutput) {
|
|
232
|
+
parse(response)
|
|
233
|
+
success()
|
|
234
|
+
}
|
|
235
|
+
return response;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
const databaseCreateEmailAttribute = async ({ collectionId, key, required, xdefault, array, parseOutput = true, sdk = undefined}) => {
|
|
239
|
+
/* @param {string} collectionId */
|
|
240
|
+
/* @param {string} key */
|
|
241
|
+
/* @param {boolean} required */
|
|
242
|
+
/* @param {string} xdefault */
|
|
243
|
+
/* @param {boolean} array */
|
|
244
|
+
|
|
245
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
246
|
+
let path = '/database/collections/{collectionId}/attributes/email'.replace('{collectionId}', collectionId);
|
|
247
|
+
let payload = {};
|
|
248
|
+
|
|
249
|
+
/** Body Params */
|
|
250
|
+
if (typeof key !== 'undefined') {
|
|
251
|
+
payload['key'] = key;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
if (typeof required !== 'undefined') {
|
|
255
|
+
payload['required'] = required;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
if (typeof xdefault !== 'undefined') {
|
|
259
|
+
payload['default'] = xdefault;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
if (typeof array !== 'undefined') {
|
|
263
|
+
payload['array'] = array;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
let response = undefined;
|
|
267
|
+
response = await client.call('post', path, {
|
|
268
|
+
'content-type': 'application/json',
|
|
269
|
+
}, payload);
|
|
270
|
+
|
|
271
|
+
if (parseOutput) {
|
|
272
|
+
parse(response)
|
|
273
|
+
success()
|
|
274
|
+
}
|
|
275
|
+
return response;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
const databaseCreateEnumAttribute = async ({ collectionId, key, elements, required, xdefault, array, parseOutput = true, sdk = undefined}) => {
|
|
279
|
+
/* @param {string} collectionId */
|
|
280
|
+
/* @param {string} key */
|
|
281
|
+
/* @param {string[]} elements */
|
|
282
|
+
/* @param {boolean} required */
|
|
283
|
+
/* @param {string} xdefault */
|
|
284
|
+
/* @param {boolean} array */
|
|
285
|
+
|
|
286
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
287
|
+
let path = '/database/collections/{collectionId}/attributes/enum'.replace('{collectionId}', collectionId);
|
|
288
|
+
let payload = {};
|
|
289
|
+
|
|
290
|
+
/** Body Params */
|
|
291
|
+
if (typeof key !== 'undefined') {
|
|
292
|
+
payload['key'] = key;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
if (typeof elements !== 'undefined') {
|
|
296
|
+
payload['elements'] = elements;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
if (typeof required !== 'undefined') {
|
|
300
|
+
payload['required'] = required;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
if (typeof xdefault !== 'undefined') {
|
|
304
|
+
payload['default'] = xdefault;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
if (typeof array !== 'undefined') {
|
|
308
|
+
payload['array'] = array;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
let response = undefined;
|
|
312
|
+
response = await client.call('post', path, {
|
|
313
|
+
'content-type': 'application/json',
|
|
314
|
+
}, payload);
|
|
315
|
+
|
|
316
|
+
if (parseOutput) {
|
|
317
|
+
parse(response)
|
|
318
|
+
success()
|
|
319
|
+
}
|
|
320
|
+
return response;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
const databaseCreateFloatAttribute = async ({ collectionId, key, required, min, max, xdefault, array, parseOutput = true, sdk = undefined}) => {
|
|
324
|
+
/* @param {string} collectionId */
|
|
325
|
+
/* @param {string} key */
|
|
326
|
+
/* @param {boolean} required */
|
|
327
|
+
/* @param {number} min */
|
|
328
|
+
/* @param {number} max */
|
|
329
|
+
/* @param {number} xdefault */
|
|
330
|
+
/* @param {boolean} array */
|
|
331
|
+
|
|
332
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
333
|
+
let path = '/database/collections/{collectionId}/attributes/float'.replace('{collectionId}', collectionId);
|
|
334
|
+
let payload = {};
|
|
335
|
+
|
|
336
|
+
/** Body Params */
|
|
337
|
+
if (typeof key !== 'undefined') {
|
|
338
|
+
payload['key'] = key;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
if (typeof required !== 'undefined') {
|
|
342
|
+
payload['required'] = required;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
if (typeof min !== 'undefined') {
|
|
346
|
+
payload['min'] = min;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
if (typeof max !== 'undefined') {
|
|
350
|
+
payload['max'] = max;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
if (typeof xdefault !== 'undefined') {
|
|
354
|
+
payload['default'] = xdefault;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
if (typeof array !== 'undefined') {
|
|
358
|
+
payload['array'] = array;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
let response = undefined;
|
|
362
|
+
response = await client.call('post', path, {
|
|
363
|
+
'content-type': 'application/json',
|
|
364
|
+
}, payload);
|
|
365
|
+
|
|
366
|
+
if (parseOutput) {
|
|
367
|
+
parse(response)
|
|
368
|
+
success()
|
|
369
|
+
}
|
|
370
|
+
return response;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
const databaseCreateIntegerAttribute = async ({ collectionId, key, required, min, max, xdefault, array, parseOutput = true, sdk = undefined}) => {
|
|
374
|
+
/* @param {string} collectionId */
|
|
375
|
+
/* @param {string} key */
|
|
376
|
+
/* @param {boolean} required */
|
|
377
|
+
/* @param {number} min */
|
|
378
|
+
/* @param {number} max */
|
|
379
|
+
/* @param {number} xdefault */
|
|
380
|
+
/* @param {boolean} array */
|
|
381
|
+
|
|
382
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
383
|
+
let path = '/database/collections/{collectionId}/attributes/integer'.replace('{collectionId}', collectionId);
|
|
384
|
+
let payload = {};
|
|
385
|
+
|
|
386
|
+
/** Body Params */
|
|
387
|
+
if (typeof key !== 'undefined') {
|
|
388
|
+
payload['key'] = key;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
if (typeof required !== 'undefined') {
|
|
392
|
+
payload['required'] = required;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
if (typeof min !== 'undefined') {
|
|
396
|
+
payload['min'] = min;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
if (typeof max !== 'undefined') {
|
|
400
|
+
payload['max'] = max;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
if (typeof xdefault !== 'undefined') {
|
|
404
|
+
payload['default'] = xdefault;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
if (typeof array !== 'undefined') {
|
|
408
|
+
payload['array'] = array;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
let response = undefined;
|
|
412
|
+
response = await client.call('post', path, {
|
|
413
|
+
'content-type': 'application/json',
|
|
414
|
+
}, payload);
|
|
415
|
+
|
|
416
|
+
if (parseOutput) {
|
|
417
|
+
parse(response)
|
|
418
|
+
success()
|
|
419
|
+
}
|
|
420
|
+
return response;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
const databaseCreateIpAttribute = async ({ collectionId, key, required, xdefault, array, parseOutput = true, sdk = undefined}) => {
|
|
424
|
+
/* @param {string} collectionId */
|
|
425
|
+
/* @param {string} key */
|
|
426
|
+
/* @param {boolean} required */
|
|
427
|
+
/* @param {string} xdefault */
|
|
428
|
+
/* @param {boolean} array */
|
|
429
|
+
|
|
430
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
431
|
+
let path = '/database/collections/{collectionId}/attributes/ip'.replace('{collectionId}', collectionId);
|
|
432
|
+
let payload = {};
|
|
433
|
+
|
|
434
|
+
/** Body Params */
|
|
435
|
+
if (typeof key !== 'undefined') {
|
|
436
|
+
payload['key'] = key;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
if (typeof required !== 'undefined') {
|
|
440
|
+
payload['required'] = required;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
if (typeof xdefault !== 'undefined') {
|
|
444
|
+
payload['default'] = xdefault;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
if (typeof array !== 'undefined') {
|
|
448
|
+
payload['array'] = array;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
let response = undefined;
|
|
452
|
+
response = await client.call('post', path, {
|
|
453
|
+
'content-type': 'application/json',
|
|
454
|
+
}, payload);
|
|
455
|
+
|
|
456
|
+
if (parseOutput) {
|
|
457
|
+
parse(response)
|
|
458
|
+
success()
|
|
459
|
+
}
|
|
460
|
+
return response;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
const databaseCreateStringAttribute = async ({ collectionId, key, size, required, xdefault, array, parseOutput = true, sdk = undefined}) => {
|
|
464
|
+
/* @param {string} collectionId */
|
|
465
|
+
/* @param {string} key */
|
|
466
|
+
/* @param {number} size */
|
|
467
|
+
/* @param {boolean} required */
|
|
468
|
+
/* @param {string} xdefault */
|
|
469
|
+
/* @param {boolean} array */
|
|
470
|
+
|
|
471
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
472
|
+
let path = '/database/collections/{collectionId}/attributes/string'.replace('{collectionId}', collectionId);
|
|
473
|
+
let payload = {};
|
|
474
|
+
|
|
475
|
+
/** Body Params */
|
|
476
|
+
if (typeof key !== 'undefined') {
|
|
477
|
+
payload['key'] = key;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
if (typeof size !== 'undefined') {
|
|
481
|
+
payload['size'] = size;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
if (typeof required !== 'undefined') {
|
|
485
|
+
payload['required'] = required;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
if (typeof xdefault !== 'undefined') {
|
|
489
|
+
payload['default'] = xdefault;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
if (typeof array !== 'undefined') {
|
|
493
|
+
payload['array'] = array;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
let response = undefined;
|
|
497
|
+
response = await client.call('post', path, {
|
|
498
|
+
'content-type': 'application/json',
|
|
499
|
+
}, payload);
|
|
500
|
+
|
|
501
|
+
if (parseOutput) {
|
|
502
|
+
parse(response)
|
|
503
|
+
success()
|
|
504
|
+
}
|
|
505
|
+
return response;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
const databaseCreateUrlAttribute = async ({ collectionId, key, required, xdefault, array, parseOutput = true, sdk = undefined}) => {
|
|
509
|
+
/* @param {string} collectionId */
|
|
510
|
+
/* @param {string} key */
|
|
511
|
+
/* @param {boolean} required */
|
|
512
|
+
/* @param {string} xdefault */
|
|
513
|
+
/* @param {boolean} array */
|
|
514
|
+
|
|
515
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
516
|
+
let path = '/database/collections/{collectionId}/attributes/url'.replace('{collectionId}', collectionId);
|
|
517
|
+
let payload = {};
|
|
518
|
+
|
|
519
|
+
/** Body Params */
|
|
520
|
+
if (typeof key !== 'undefined') {
|
|
521
|
+
payload['key'] = key;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
if (typeof required !== 'undefined') {
|
|
525
|
+
payload['required'] = required;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
if (typeof xdefault !== 'undefined') {
|
|
529
|
+
payload['default'] = xdefault;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
if (typeof array !== 'undefined') {
|
|
533
|
+
payload['array'] = array;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
let response = undefined;
|
|
537
|
+
response = await client.call('post', path, {
|
|
538
|
+
'content-type': 'application/json',
|
|
539
|
+
}, payload);
|
|
540
|
+
|
|
541
|
+
if (parseOutput) {
|
|
542
|
+
parse(response)
|
|
543
|
+
success()
|
|
544
|
+
}
|
|
545
|
+
return response;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
const databaseGetAttribute = async ({ collectionId, key, parseOutput = true, sdk = undefined}) => {
|
|
549
|
+
/* @param {string} collectionId */
|
|
550
|
+
/* @param {string} key */
|
|
551
|
+
|
|
552
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
553
|
+
let path = '/database/collections/{collectionId}/attributes/{key}'.replace('{collectionId}', collectionId).replace('{key}', key);
|
|
554
|
+
let payload = {};
|
|
555
|
+
let response = undefined;
|
|
556
|
+
response = await client.call('get', path, {
|
|
557
|
+
'content-type': 'application/json',
|
|
558
|
+
}, payload);
|
|
559
|
+
|
|
560
|
+
if (parseOutput) {
|
|
561
|
+
parse(response)
|
|
562
|
+
success()
|
|
563
|
+
}
|
|
564
|
+
return response;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
const databaseDeleteAttribute = async ({ collectionId, key, parseOutput = true, sdk = undefined}) => {
|
|
568
|
+
/* @param {string} collectionId */
|
|
569
|
+
/* @param {string} key */
|
|
570
|
+
|
|
571
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
572
|
+
let path = '/database/collections/{collectionId}/attributes/{key}'.replace('{collectionId}', collectionId).replace('{key}', key);
|
|
573
|
+
let payload = {};
|
|
574
|
+
let response = undefined;
|
|
575
|
+
response = await client.call('delete', path, {
|
|
576
|
+
'content-type': 'application/json',
|
|
577
|
+
}, payload);
|
|
578
|
+
|
|
579
|
+
if (parseOutput) {
|
|
580
|
+
parse(response)
|
|
581
|
+
success()
|
|
582
|
+
}
|
|
583
|
+
return response;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
const databaseListDocuments = async ({ collectionId, queries, limit, offset, cursor, cursorDirection, orderAttributes, orderTypes, parseOutput = true, sdk = undefined}) => {
|
|
587
|
+
/* @param {string} collectionId */
|
|
588
|
+
/* @param {string[]} queries */
|
|
589
|
+
/* @param {number} limit */
|
|
590
|
+
/* @param {number} offset */
|
|
591
|
+
/* @param {string} cursor */
|
|
592
|
+
/* @param {string} cursorDirection */
|
|
593
|
+
/* @param {string[]} orderAttributes */
|
|
594
|
+
/* @param {string[]} orderTypes */
|
|
595
|
+
|
|
596
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
597
|
+
let path = '/database/collections/{collectionId}/documents'.replace('{collectionId}', collectionId);
|
|
598
|
+
let payload = {};
|
|
599
|
+
|
|
600
|
+
/** Query Params */
|
|
601
|
+
if (typeof queries !== 'undefined') {
|
|
602
|
+
payload['queries'] = queries;
|
|
603
|
+
}
|
|
604
|
+
if (typeof limit !== 'undefined') {
|
|
605
|
+
payload['limit'] = limit;
|
|
606
|
+
}
|
|
607
|
+
if (typeof offset !== 'undefined') {
|
|
608
|
+
payload['offset'] = offset;
|
|
609
|
+
}
|
|
610
|
+
if (typeof cursor !== 'undefined') {
|
|
611
|
+
payload['cursor'] = cursor;
|
|
612
|
+
}
|
|
613
|
+
if (typeof cursorDirection !== 'undefined') {
|
|
614
|
+
payload['cursorDirection'] = cursorDirection;
|
|
615
|
+
}
|
|
616
|
+
if (typeof orderAttributes !== 'undefined') {
|
|
617
|
+
payload['orderAttributes'] = orderAttributes;
|
|
618
|
+
}
|
|
619
|
+
if (typeof orderTypes !== 'undefined') {
|
|
620
|
+
payload['orderTypes'] = orderTypes;
|
|
621
|
+
}
|
|
622
|
+
let response = undefined;
|
|
623
|
+
response = await client.call('get', path, {
|
|
624
|
+
'content-type': 'application/json',
|
|
625
|
+
}, payload);
|
|
626
|
+
|
|
627
|
+
if (parseOutput) {
|
|
628
|
+
parse(response)
|
|
629
|
+
success()
|
|
630
|
+
}
|
|
631
|
+
return response;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
const databaseCreateDocument = async ({ collectionId, documentId, data, read, write, parseOutput = true, sdk = undefined}) => {
|
|
635
|
+
/* @param {string} collectionId */
|
|
636
|
+
/* @param {string} documentId */
|
|
637
|
+
/* @param {object} data */
|
|
638
|
+
/* @param {string[]} read */
|
|
639
|
+
/* @param {string[]} write */
|
|
640
|
+
|
|
641
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
642
|
+
let path = '/database/collections/{collectionId}/documents'.replace('{collectionId}', collectionId);
|
|
643
|
+
let payload = {};
|
|
644
|
+
|
|
645
|
+
/** Body Params */
|
|
646
|
+
if (typeof documentId !== 'undefined') {
|
|
647
|
+
payload['documentId'] = documentId;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
if (typeof data !== 'undefined') {
|
|
651
|
+
payload['data'] = data;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
if (typeof read !== 'undefined') {
|
|
655
|
+
payload['read'] = read;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
if (typeof write !== 'undefined') {
|
|
659
|
+
payload['write'] = write;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
let response = undefined;
|
|
663
|
+
response = await client.call('post', path, {
|
|
664
|
+
'content-type': 'application/json',
|
|
665
|
+
}, payload);
|
|
666
|
+
|
|
667
|
+
if (parseOutput) {
|
|
668
|
+
parse(response)
|
|
669
|
+
success()
|
|
670
|
+
}
|
|
671
|
+
return response;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
const databaseGetDocument = async ({ collectionId, documentId, parseOutput = true, sdk = undefined}) => {
|
|
675
|
+
/* @param {string} collectionId */
|
|
676
|
+
/* @param {string} documentId */
|
|
677
|
+
|
|
678
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
679
|
+
let path = '/database/collections/{collectionId}/documents/{documentId}'.replace('{collectionId}', collectionId).replace('{documentId}', documentId);
|
|
680
|
+
let payload = {};
|
|
681
|
+
let response = undefined;
|
|
682
|
+
response = await client.call('get', path, {
|
|
683
|
+
'content-type': 'application/json',
|
|
684
|
+
}, payload);
|
|
685
|
+
|
|
686
|
+
if (parseOutput) {
|
|
687
|
+
parse(response)
|
|
688
|
+
success()
|
|
689
|
+
}
|
|
690
|
+
return response;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
const databaseUpdateDocument = async ({ collectionId, documentId, data, read, write, parseOutput = true, sdk = undefined}) => {
|
|
694
|
+
/* @param {string} collectionId */
|
|
695
|
+
/* @param {string} documentId */
|
|
696
|
+
/* @param {object} data */
|
|
697
|
+
/* @param {string[]} read */
|
|
698
|
+
/* @param {string[]} write */
|
|
699
|
+
|
|
700
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
701
|
+
let path = '/database/collections/{collectionId}/documents/{documentId}'.replace('{collectionId}', collectionId).replace('{documentId}', documentId);
|
|
702
|
+
let payload = {};
|
|
703
|
+
|
|
704
|
+
/** Body Params */
|
|
705
|
+
if (typeof data !== 'undefined') {
|
|
706
|
+
payload['data'] = data;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
if (typeof read !== 'undefined') {
|
|
710
|
+
payload['read'] = read;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
if (typeof write !== 'undefined') {
|
|
714
|
+
payload['write'] = write;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
let response = undefined;
|
|
718
|
+
response = await client.call('patch', path, {
|
|
719
|
+
'content-type': 'application/json',
|
|
720
|
+
}, payload);
|
|
721
|
+
|
|
722
|
+
if (parseOutput) {
|
|
723
|
+
parse(response)
|
|
724
|
+
success()
|
|
725
|
+
}
|
|
726
|
+
return response;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
const databaseDeleteDocument = async ({ collectionId, documentId, parseOutput = true, sdk = undefined}) => {
|
|
730
|
+
/* @param {string} collectionId */
|
|
731
|
+
/* @param {string} documentId */
|
|
732
|
+
|
|
733
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
734
|
+
let path = '/database/collections/{collectionId}/documents/{documentId}'.replace('{collectionId}', collectionId).replace('{documentId}', documentId);
|
|
735
|
+
let payload = {};
|
|
736
|
+
let response = undefined;
|
|
737
|
+
response = await client.call('delete', path, {
|
|
738
|
+
'content-type': 'application/json',
|
|
739
|
+
}, payload);
|
|
740
|
+
|
|
741
|
+
if (parseOutput) {
|
|
742
|
+
parse(response)
|
|
743
|
+
success()
|
|
744
|
+
}
|
|
745
|
+
return response;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
const databaseListDocumentLogs = async ({ collectionId, documentId, limit, offset, parseOutput = true, sdk = undefined}) => {
|
|
749
|
+
/* @param {string} collectionId */
|
|
750
|
+
/* @param {string} documentId */
|
|
751
|
+
/* @param {number} limit */
|
|
752
|
+
/* @param {number} offset */
|
|
753
|
+
|
|
754
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
755
|
+
let path = '/database/collections/{collectionId}/documents/{documentId}/logs'.replace('{collectionId}', collectionId).replace('{documentId}', documentId);
|
|
756
|
+
let payload = {};
|
|
757
|
+
|
|
758
|
+
/** Query Params */
|
|
759
|
+
if (typeof limit !== 'undefined') {
|
|
760
|
+
payload['limit'] = limit;
|
|
761
|
+
}
|
|
762
|
+
if (typeof offset !== 'undefined') {
|
|
763
|
+
payload['offset'] = offset;
|
|
764
|
+
}
|
|
765
|
+
let response = undefined;
|
|
766
|
+
response = await client.call('get', path, {
|
|
767
|
+
'content-type': 'application/json',
|
|
768
|
+
}, payload);
|
|
769
|
+
|
|
770
|
+
if (parseOutput) {
|
|
771
|
+
parse(response)
|
|
772
|
+
success()
|
|
773
|
+
}
|
|
774
|
+
return response;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
const databaseListIndexes = async ({ collectionId, parseOutput = true, sdk = undefined}) => {
|
|
778
|
+
/* @param {string} collectionId */
|
|
779
|
+
|
|
780
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
781
|
+
let path = '/database/collections/{collectionId}/indexes'.replace('{collectionId}', collectionId);
|
|
782
|
+
let payload = {};
|
|
783
|
+
let response = undefined;
|
|
784
|
+
response = await client.call('get', path, {
|
|
785
|
+
'content-type': 'application/json',
|
|
786
|
+
}, payload);
|
|
787
|
+
|
|
788
|
+
if (parseOutput) {
|
|
789
|
+
parse(response)
|
|
790
|
+
success()
|
|
791
|
+
}
|
|
792
|
+
return response;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
const databaseCreateIndex = async ({ collectionId, key, type, attributes, orders, parseOutput = true, sdk = undefined}) => {
|
|
796
|
+
/* @param {string} collectionId */
|
|
797
|
+
/* @param {string} key */
|
|
798
|
+
/* @param {string} type */
|
|
799
|
+
/* @param {string[]} attributes */
|
|
800
|
+
/* @param {string[]} orders */
|
|
801
|
+
|
|
802
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
803
|
+
let path = '/database/collections/{collectionId}/indexes'.replace('{collectionId}', collectionId);
|
|
804
|
+
let payload = {};
|
|
805
|
+
|
|
806
|
+
/** Body Params */
|
|
807
|
+
if (typeof key !== 'undefined') {
|
|
808
|
+
payload['key'] = key;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
if (typeof type !== 'undefined') {
|
|
812
|
+
payload['type'] = type;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
if (typeof attributes !== 'undefined') {
|
|
816
|
+
payload['attributes'] = attributes;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
if (typeof orders !== 'undefined') {
|
|
820
|
+
payload['orders'] = orders;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
let response = undefined;
|
|
824
|
+
response = await client.call('post', path, {
|
|
825
|
+
'content-type': 'application/json',
|
|
826
|
+
}, payload);
|
|
827
|
+
|
|
828
|
+
if (parseOutput) {
|
|
829
|
+
parse(response)
|
|
830
|
+
success()
|
|
831
|
+
}
|
|
832
|
+
return response;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
const databaseGetIndex = async ({ collectionId, key, parseOutput = true, sdk = undefined}) => {
|
|
836
|
+
/* @param {string} collectionId */
|
|
837
|
+
/* @param {string} key */
|
|
838
|
+
|
|
839
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
840
|
+
let path = '/database/collections/{collectionId}/indexes/{key}'.replace('{collectionId}', collectionId).replace('{key}', key);
|
|
841
|
+
let payload = {};
|
|
842
|
+
let response = undefined;
|
|
843
|
+
response = await client.call('get', path, {
|
|
844
|
+
'content-type': 'application/json',
|
|
845
|
+
}, payload);
|
|
846
|
+
|
|
847
|
+
if (parseOutput) {
|
|
848
|
+
parse(response)
|
|
849
|
+
success()
|
|
850
|
+
}
|
|
851
|
+
return response;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
const databaseDeleteIndex = async ({ collectionId, key, parseOutput = true, sdk = undefined}) => {
|
|
855
|
+
/* @param {string} collectionId */
|
|
856
|
+
/* @param {string} key */
|
|
857
|
+
|
|
858
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
859
|
+
let path = '/database/collections/{collectionId}/indexes/{key}'.replace('{collectionId}', collectionId).replace('{key}', key);
|
|
860
|
+
let payload = {};
|
|
861
|
+
let response = undefined;
|
|
862
|
+
response = await client.call('delete', path, {
|
|
863
|
+
'content-type': 'application/json',
|
|
864
|
+
}, payload);
|
|
865
|
+
|
|
866
|
+
if (parseOutput) {
|
|
867
|
+
parse(response)
|
|
868
|
+
success()
|
|
869
|
+
}
|
|
870
|
+
return response;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
const databaseListCollectionLogs = async ({ collectionId, limit, offset, parseOutput = true, sdk = undefined}) => {
|
|
874
|
+
/* @param {string} collectionId */
|
|
875
|
+
/* @param {number} limit */
|
|
876
|
+
/* @param {number} offset */
|
|
877
|
+
|
|
878
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
879
|
+
let path = '/database/collections/{collectionId}/logs'.replace('{collectionId}', collectionId);
|
|
880
|
+
let payload = {};
|
|
881
|
+
|
|
882
|
+
/** Query Params */
|
|
883
|
+
if (typeof limit !== 'undefined') {
|
|
884
|
+
payload['limit'] = limit;
|
|
885
|
+
}
|
|
886
|
+
if (typeof offset !== 'undefined') {
|
|
887
|
+
payload['offset'] = offset;
|
|
888
|
+
}
|
|
889
|
+
let response = undefined;
|
|
890
|
+
response = await client.call('get', path, {
|
|
891
|
+
'content-type': 'application/json',
|
|
892
|
+
}, payload);
|
|
893
|
+
|
|
894
|
+
if (parseOutput) {
|
|
895
|
+
parse(response)
|
|
896
|
+
success()
|
|
897
|
+
}
|
|
898
|
+
return response;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
const databaseGetUsage = async ({ range, parseOutput = true, sdk = undefined}) => {
|
|
902
|
+
/* @param {string} range */
|
|
903
|
+
|
|
904
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
905
|
+
let path = '/database/usage';
|
|
906
|
+
let payload = {};
|
|
907
|
+
|
|
908
|
+
/** Query Params */
|
|
909
|
+
if (typeof range !== 'undefined') {
|
|
910
|
+
payload['range'] = range;
|
|
911
|
+
}
|
|
912
|
+
let response = undefined;
|
|
913
|
+
response = await client.call('get', path, {
|
|
914
|
+
'content-type': 'application/json',
|
|
915
|
+
}, payload);
|
|
916
|
+
|
|
917
|
+
if (parseOutput) {
|
|
918
|
+
parse(response)
|
|
919
|
+
success()
|
|
920
|
+
}
|
|
921
|
+
return response;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
const databaseGetCollectionUsage = async ({ collectionId, range, parseOutput = true, sdk = undefined}) => {
|
|
925
|
+
/* @param {string} collectionId */
|
|
926
|
+
/* @param {string} range */
|
|
927
|
+
|
|
928
|
+
let client = !sdk ? await sdkForProject() : sdk;
|
|
929
|
+
let path = '/database/{collectionId}/usage'.replace('{collectionId}', collectionId);
|
|
930
|
+
let payload = {};
|
|
931
|
+
|
|
932
|
+
/** Query Params */
|
|
933
|
+
if (typeof range !== 'undefined') {
|
|
934
|
+
payload['range'] = range;
|
|
935
|
+
}
|
|
936
|
+
let response = undefined;
|
|
937
|
+
response = await client.call('get', path, {
|
|
938
|
+
'content-type': 'application/json',
|
|
939
|
+
}, payload);
|
|
940
|
+
|
|
941
|
+
if (parseOutput) {
|
|
942
|
+
parse(response)
|
|
943
|
+
success()
|
|
944
|
+
}
|
|
945
|
+
return response;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
|
|
949
|
+
database
|
|
950
|
+
.command(`listCollections`)
|
|
951
|
+
.description(`Get a list of all the user collections. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's collections. [Learn more about different API modes](/docs/admin).`)
|
|
952
|
+
.option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
|
|
953
|
+
.option(`--limit <limit>`, `Maximum number of collection to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.`, parseInteger)
|
|
954
|
+
.option(`--offset <offset>`, `Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)`, parseInteger)
|
|
955
|
+
.option(`--cursor <cursor>`, `ID of the collection used as the starting point for the query, excluding the collection itself. Should be used for efficient pagination when working with large sets of data.`)
|
|
956
|
+
.option(`--cursorDirection <cursorDirection>`, `Direction of the cursor.`)
|
|
957
|
+
.option(`--orderType <orderType>`, `Order result by ASC or DESC order.`)
|
|
958
|
+
.action(actionRunner(databaseListCollections))
|
|
959
|
+
|
|
960
|
+
database
|
|
961
|
+
.command(`createCollection`)
|
|
962
|
+
.description(`Create a new Collection.`)
|
|
963
|
+
.requiredOption(`--collectionId <collectionId>`, `Unique Id. Choose your own unique ID or pass the string "unique()" to auto generate it. 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.`)
|
|
964
|
+
.requiredOption(`--name <name>`, `Collection name. Max length: 128 chars.`)
|
|
965
|
+
.requiredOption(`--permission <permission>`, `Permissions type model to use for reading documents in this collection. You can use collection-level permission set once on the collection using the 'read' and 'write' params, or you can set document-level permission where each document read and write params will decide who has access to read and write to each document individually. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of available permissions.`)
|
|
966
|
+
.requiredOption(`--read <read...>`, `An array of strings with read permissions. By default no user is granted with any read permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of available permissions.`)
|
|
967
|
+
.requiredOption(`--write <write...>`, `An array of strings with write permissions. By default no user is granted with any write permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of available permissions.`)
|
|
968
|
+
.action(actionRunner(databaseCreateCollection))
|
|
969
|
+
|
|
970
|
+
database
|
|
971
|
+
.command(`getCollection`)
|
|
972
|
+
.description(`Get a collection by its unique ID. This endpoint response returns a JSON object with the collection metadata.`)
|
|
973
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID.`)
|
|
974
|
+
.action(actionRunner(databaseGetCollection))
|
|
975
|
+
|
|
976
|
+
database
|
|
977
|
+
.command(`updateCollection`)
|
|
978
|
+
.description(`Update a collection by its unique ID.`)
|
|
979
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID.`)
|
|
980
|
+
.requiredOption(`--name <name>`, `Collection name. Max length: 128 chars.`)
|
|
981
|
+
.requiredOption(`--permission <permission>`, `Permissions type model to use for reading documents in this collection. You can use collection-level permission set once on the collection using the 'read' and 'write' params, or you can set document-level permission where each document read and write params will decide who has access to read and write to each document individually. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of available permissions.`)
|
|
982
|
+
.option(`--read <read...>`, `An array of strings with read permissions. By default inherits the existing read permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of available permissions.`)
|
|
983
|
+
.option(`--write <write...>`, `An array of strings with write permissions. By default inherits the existing write permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of available permissions.`)
|
|
984
|
+
.option(`--enabled <enabled>`, `Is collection enabled?`, parseBool)
|
|
985
|
+
.action(actionRunner(databaseUpdateCollection))
|
|
986
|
+
|
|
987
|
+
database
|
|
988
|
+
.command(`deleteCollection`)
|
|
989
|
+
.description(`Delete a collection by its unique ID. Only users with write permissions have access to delete this resource.`)
|
|
990
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID.`)
|
|
991
|
+
.action(actionRunner(databaseDeleteCollection))
|
|
992
|
+
|
|
993
|
+
database
|
|
994
|
+
.command(`listAttributes`)
|
|
995
|
+
.description(``)
|
|
996
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection).`)
|
|
997
|
+
.action(actionRunner(databaseListAttributes))
|
|
998
|
+
|
|
999
|
+
database
|
|
1000
|
+
.command(`createBooleanAttribute`)
|
|
1001
|
+
.description(`Create a boolean attribute. `)
|
|
1002
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection).`)
|
|
1003
|
+
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1004
|
+
.requiredOption(`--required <required>`, `Is attribute required?`, parseBool)
|
|
1005
|
+
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided. Cannot be set when attribute is required.`, parseBool)
|
|
1006
|
+
.option(`--array <array>`, `Is attribute an array?`, parseBool)
|
|
1007
|
+
.action(actionRunner(databaseCreateBooleanAttribute))
|
|
1008
|
+
|
|
1009
|
+
database
|
|
1010
|
+
.command(`createEmailAttribute`)
|
|
1011
|
+
.description(`Create an email attribute. `)
|
|
1012
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection).`)
|
|
1013
|
+
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1014
|
+
.requiredOption(`--required <required>`, `Is attribute required?`, parseBool)
|
|
1015
|
+
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided. Cannot be set when attribute is required.`)
|
|
1016
|
+
.option(`--array <array>`, `Is attribute an array?`, parseBool)
|
|
1017
|
+
.action(actionRunner(databaseCreateEmailAttribute))
|
|
1018
|
+
|
|
1019
|
+
database
|
|
1020
|
+
.command(`createEnumAttribute`)
|
|
1021
|
+
.description(``)
|
|
1022
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection).`)
|
|
1023
|
+
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1024
|
+
.requiredOption(`--elements <elements...>`, `Array of elements in enumerated type. Uses length of longest element to determine size.`)
|
|
1025
|
+
.requiredOption(`--required <required>`, `Is attribute required?`, parseBool)
|
|
1026
|
+
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided. Cannot be set when attribute is required.`)
|
|
1027
|
+
.option(`--array <array>`, `Is attribute an array?`, parseBool)
|
|
1028
|
+
.action(actionRunner(databaseCreateEnumAttribute))
|
|
1029
|
+
|
|
1030
|
+
database
|
|
1031
|
+
.command(`createFloatAttribute`)
|
|
1032
|
+
.description(`Create a float attribute. Optionally, minimum and maximum values can be provided. `)
|
|
1033
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection).`)
|
|
1034
|
+
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1035
|
+
.requiredOption(`--required <required>`, `Is attribute required?`, parseBool)
|
|
1036
|
+
.option(`--min <min>`, `Minimum value to enforce on new documents`, parseInteger)
|
|
1037
|
+
.option(`--max <max>`, `Maximum value to enforce on new documents`, parseInteger)
|
|
1038
|
+
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided. Cannot be set when attribute is required.`, parseInteger)
|
|
1039
|
+
.option(`--array <array>`, `Is attribute an array?`, parseBool)
|
|
1040
|
+
.action(actionRunner(databaseCreateFloatAttribute))
|
|
1041
|
+
|
|
1042
|
+
database
|
|
1043
|
+
.command(`createIntegerAttribute`)
|
|
1044
|
+
.description(`Create an integer attribute. Optionally, minimum and maximum values can be provided. `)
|
|
1045
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection).`)
|
|
1046
|
+
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1047
|
+
.requiredOption(`--required <required>`, `Is attribute required?`, parseBool)
|
|
1048
|
+
.option(`--min <min>`, `Minimum value to enforce on new documents`, parseInteger)
|
|
1049
|
+
.option(`--max <max>`, `Maximum value to enforce on new documents`, parseInteger)
|
|
1050
|
+
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided. Cannot be set when attribute is required.`, parseInteger)
|
|
1051
|
+
.option(`--array <array>`, `Is attribute an array?`, parseBool)
|
|
1052
|
+
.action(actionRunner(databaseCreateIntegerAttribute))
|
|
1053
|
+
|
|
1054
|
+
database
|
|
1055
|
+
.command(`createIpAttribute`)
|
|
1056
|
+
.description(`Create IP address attribute. `)
|
|
1057
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection).`)
|
|
1058
|
+
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1059
|
+
.requiredOption(`--required <required>`, `Is attribute required?`, parseBool)
|
|
1060
|
+
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided. Cannot be set when attribute is required.`)
|
|
1061
|
+
.option(`--array <array>`, `Is attribute an array?`, parseBool)
|
|
1062
|
+
.action(actionRunner(databaseCreateIpAttribute))
|
|
1063
|
+
|
|
1064
|
+
database
|
|
1065
|
+
.command(`createStringAttribute`)
|
|
1066
|
+
.description(`Create a string attribute. `)
|
|
1067
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection).`)
|
|
1068
|
+
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1069
|
+
.requiredOption(`--size <size>`, `Attribute size for text attributes, in number of characters.`, parseInteger)
|
|
1070
|
+
.requiredOption(`--required <required>`, `Is attribute required?`, parseBool)
|
|
1071
|
+
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided. Cannot be set when attribute is required.`)
|
|
1072
|
+
.option(`--array <array>`, `Is attribute an array?`, parseBool)
|
|
1073
|
+
.action(actionRunner(databaseCreateStringAttribute))
|
|
1074
|
+
|
|
1075
|
+
database
|
|
1076
|
+
.command(`createUrlAttribute`)
|
|
1077
|
+
.description(`Create a URL attribute. `)
|
|
1078
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection).`)
|
|
1079
|
+
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1080
|
+
.requiredOption(`--required <required>`, `Is attribute required?`, parseBool)
|
|
1081
|
+
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided. Cannot be set when attribute is required.`)
|
|
1082
|
+
.option(`--array <array>`, `Is attribute an array?`, parseBool)
|
|
1083
|
+
.action(actionRunner(databaseCreateUrlAttribute))
|
|
1084
|
+
|
|
1085
|
+
database
|
|
1086
|
+
.command(`getAttribute`)
|
|
1087
|
+
.description(``)
|
|
1088
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection).`)
|
|
1089
|
+
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1090
|
+
.action(actionRunner(databaseGetAttribute))
|
|
1091
|
+
|
|
1092
|
+
database
|
|
1093
|
+
.command(`deleteAttribute`)
|
|
1094
|
+
.description(``)
|
|
1095
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection).`)
|
|
1096
|
+
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1097
|
+
.action(actionRunner(databaseDeleteAttribute))
|
|
1098
|
+
|
|
1099
|
+
database
|
|
1100
|
+
.command(`listDocuments`)
|
|
1101
|
+
.description(`Get a list of all the user documents. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's documents. [Learn more about different API modes](/docs/admin).`)
|
|
1102
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection).`)
|
|
1103
|
+
.option(`--queries <queries...>`, `Array of query strings.`)
|
|
1104
|
+
.option(`--limit <limit>`, `Maximum number of documents to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.`, parseInteger)
|
|
1105
|
+
.option(`--offset <offset>`, `Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)`, parseInteger)
|
|
1106
|
+
.option(`--cursor <cursor>`, `ID of the document used as the starting point for the query, excluding the document itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https://appwrite.io/docs/pagination)`)
|
|
1107
|
+
.option(`--cursorDirection <cursorDirection>`, `Direction of the cursor.`)
|
|
1108
|
+
.option(`--orderAttributes <orderAttributes...>`, `Array of attributes used to sort results.`)
|
|
1109
|
+
.option(`--orderTypes <orderTypes...>`, `Array of order directions for sorting attribtues. Possible values are DESC for descending order, or ASC for ascending order.`)
|
|
1110
|
+
.action(actionRunner(databaseListDocuments))
|
|
1111
|
+
|
|
1112
|
+
database
|
|
1113
|
+
.command(`createDocument`)
|
|
1114
|
+
.description(`Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](/docs/server/database#databaseCreateCollection) API or directly from your database console.`)
|
|
1115
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection). Make sure to define attributes before creating documents.`)
|
|
1116
|
+
.requiredOption(`--documentId <documentId>`, `Document ID. Choose your own unique ID or pass the string "unique()" to auto generate it. 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.`)
|
|
1117
|
+
.requiredOption(`--data <data>`, `Document data as JSON object.`)
|
|
1118
|
+
.option(`--read <read...>`, `An array of strings with read permissions. By default only the current user is granted with read permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of available permissions.`)
|
|
1119
|
+
.option(`--write <write...>`, `An array of strings with write permissions. By default only the current user is granted with write permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of available permissions.`)
|
|
1120
|
+
.action(actionRunner(databaseCreateDocument))
|
|
1121
|
+
|
|
1122
|
+
database
|
|
1123
|
+
.command(`getDocument`)
|
|
1124
|
+
.description(`Get a document by its unique ID. This endpoint response returns a JSON object with the document data.`)
|
|
1125
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection).`)
|
|
1126
|
+
.requiredOption(`--documentId <documentId>`, `Document ID.`)
|
|
1127
|
+
.action(actionRunner(databaseGetDocument))
|
|
1128
|
+
|
|
1129
|
+
database
|
|
1130
|
+
.command(`updateDocument`)
|
|
1131
|
+
.description(`Update a document by its unique ID. Using the patch method you can pass only specific fields that will get updated.`)
|
|
1132
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID.`)
|
|
1133
|
+
.requiredOption(`--documentId <documentId>`, `Document ID.`)
|
|
1134
|
+
.requiredOption(`--data <data>`, `Document data as JSON object.`)
|
|
1135
|
+
.option(`--read <read...>`, `An array of strings with read permissions. By default inherits the existing read permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of available permissions.`)
|
|
1136
|
+
.option(`--write <write...>`, `An array of strings with write permissions. By default inherits the existing write permissions. [learn more about permissions](https://appwrite.io/docs/permissions) and get a full list of available permissions.`)
|
|
1137
|
+
.action(actionRunner(databaseUpdateDocument))
|
|
1138
|
+
|
|
1139
|
+
database
|
|
1140
|
+
.command(`deleteDocument`)
|
|
1141
|
+
.description(`Delete a document by its unique ID. This endpoint deletes only the parent documents, its attributes and relations to other documents. Child documents **will not** be deleted.`)
|
|
1142
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection).`)
|
|
1143
|
+
.requiredOption(`--documentId <documentId>`, `Document ID.`)
|
|
1144
|
+
.action(actionRunner(databaseDeleteDocument))
|
|
1145
|
+
|
|
1146
|
+
database
|
|
1147
|
+
.command(`listDocumentLogs`)
|
|
1148
|
+
.description(`Get the document activity logs list by its unique ID.`)
|
|
1149
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID.`)
|
|
1150
|
+
.requiredOption(`--documentId <documentId>`, `Document ID.`)
|
|
1151
|
+
.option(`--limit <limit>`, `Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.`, parseInteger)
|
|
1152
|
+
.option(`--offset <offset>`, `Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)`, parseInteger)
|
|
1153
|
+
.action(actionRunner(databaseListDocumentLogs))
|
|
1154
|
+
|
|
1155
|
+
database
|
|
1156
|
+
.command(`listIndexes`)
|
|
1157
|
+
.description(``)
|
|
1158
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection).`)
|
|
1159
|
+
.action(actionRunner(databaseListIndexes))
|
|
1160
|
+
|
|
1161
|
+
database
|
|
1162
|
+
.command(`createIndex`)
|
|
1163
|
+
.description(``)
|
|
1164
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection).`)
|
|
1165
|
+
.requiredOption(`--key <key>`, `Index Key.`)
|
|
1166
|
+
.requiredOption(`--type <type>`, `Index type.`)
|
|
1167
|
+
.requiredOption(`--attributes <attributes...>`, `Array of attributes to index.`)
|
|
1168
|
+
.option(`--orders <orders...>`, `Array of index orders.`)
|
|
1169
|
+
.action(actionRunner(databaseCreateIndex))
|
|
1170
|
+
|
|
1171
|
+
database
|
|
1172
|
+
.command(`getIndex`)
|
|
1173
|
+
.description(``)
|
|
1174
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection).`)
|
|
1175
|
+
.requiredOption(`--key <key>`, `Index Key.`)
|
|
1176
|
+
.action(actionRunner(databaseGetIndex))
|
|
1177
|
+
|
|
1178
|
+
database
|
|
1179
|
+
.command(`deleteIndex`)
|
|
1180
|
+
.description(``)
|
|
1181
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection).`)
|
|
1182
|
+
.requiredOption(`--key <key>`, `Index Key.`)
|
|
1183
|
+
.action(actionRunner(databaseDeleteIndex))
|
|
1184
|
+
|
|
1185
|
+
database
|
|
1186
|
+
.command(`listCollectionLogs`)
|
|
1187
|
+
.description(`Get the collection activity logs list by its unique ID.`)
|
|
1188
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID.`)
|
|
1189
|
+
.option(`--limit <limit>`, `Maximum number of logs to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.`, parseInteger)
|
|
1190
|
+
.option(`--offset <offset>`, `Offset value. The default value is 0. Use this value to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)`, parseInteger)
|
|
1191
|
+
.action(actionRunner(databaseListCollectionLogs))
|
|
1192
|
+
|
|
1193
|
+
database
|
|
1194
|
+
.command(`getUsage`)
|
|
1195
|
+
.description(``)
|
|
1196
|
+
.option(`--range <range>`, `Date range.`)
|
|
1197
|
+
.action(actionRunner(databaseGetUsage))
|
|
1198
|
+
|
|
1199
|
+
database
|
|
1200
|
+
.command(`getCollectionUsage`)
|
|
1201
|
+
.description(``)
|
|
1202
|
+
.requiredOption(`--collectionId <collectionId>`, `Collection ID.`)
|
|
1203
|
+
.option(`--range <range>`, `Date range.`)
|
|
1204
|
+
.action(actionRunner(databaseGetCollectionUsage))
|
|
1205
|
+
|
|
1206
|
+
|
|
1207
|
+
module.exports = {
|
|
1208
|
+
database,
|
|
1209
|
+
databaseListCollections,
|
|
1210
|
+
databaseCreateCollection,
|
|
1211
|
+
databaseGetCollection,
|
|
1212
|
+
databaseUpdateCollection,
|
|
1213
|
+
databaseDeleteCollection,
|
|
1214
|
+
databaseListAttributes,
|
|
1215
|
+
databaseCreateBooleanAttribute,
|
|
1216
|
+
databaseCreateEmailAttribute,
|
|
1217
|
+
databaseCreateEnumAttribute,
|
|
1218
|
+
databaseCreateFloatAttribute,
|
|
1219
|
+
databaseCreateIntegerAttribute,
|
|
1220
|
+
databaseCreateIpAttribute,
|
|
1221
|
+
databaseCreateStringAttribute,
|
|
1222
|
+
databaseCreateUrlAttribute,
|
|
1223
|
+
databaseGetAttribute,
|
|
1224
|
+
databaseDeleteAttribute,
|
|
1225
|
+
databaseListDocuments,
|
|
1226
|
+
databaseCreateDocument,
|
|
1227
|
+
databaseGetDocument,
|
|
1228
|
+
databaseUpdateDocument,
|
|
1229
|
+
databaseDeleteDocument,
|
|
1230
|
+
databaseListDocumentLogs,
|
|
1231
|
+
databaseListIndexes,
|
|
1232
|
+
databaseCreateIndex,
|
|
1233
|
+
databaseGetIndex,
|
|
1234
|
+
databaseDeleteIndex,
|
|
1235
|
+
databaseListCollectionLogs,
|
|
1236
|
+
databaseGetUsage,
|
|
1237
|
+
databaseGetCollectionUsage
|
|
1238
|
+
};
|