node-appwrite 20.2.1 → 21.0.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/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +2 -2
- package/dist/client.mjs.map +1 -1
- package/dist/enums/build-runtime.d.mts +3 -1
- package/dist/enums/build-runtime.d.ts +3 -1
- package/dist/enums/build-runtime.js +2 -0
- package/dist/enums/build-runtime.js.map +1 -1
- package/dist/enums/build-runtime.mjs +2 -0
- package/dist/enums/build-runtime.mjs.map +1 -1
- package/dist/enums/execution-status.d.mts +2 -1
- package/dist/enums/execution-status.d.ts +2 -1
- package/dist/enums/execution-status.js +1 -0
- package/dist/enums/execution-status.js.map +1 -1
- package/dist/enums/execution-status.mjs +1 -0
- package/dist/enums/execution-status.mjs.map +1 -1
- package/dist/enums/framework.d.mts +1 -0
- package/dist/enums/framework.d.ts +1 -0
- package/dist/enums/framework.js +1 -0
- package/dist/enums/framework.js.map +1 -1
- package/dist/enums/framework.mjs +1 -0
- package/dist/enums/framework.mjs.map +1 -1
- package/dist/enums/output.d.mts +11 -0
- package/dist/enums/output.d.ts +11 -0
- package/dist/enums/output.js +16 -0
- package/dist/enums/output.js.map +1 -0
- package/dist/enums/output.mjs +15 -0
- package/dist/enums/output.mjs.map +1 -0
- package/dist/enums/runtime.d.mts +3 -1
- package/dist/enums/runtime.d.ts +3 -1
- package/dist/enums/runtime.js +2 -0
- package/dist/enums/runtime.js.map +1 -1
- package/dist/enums/runtime.mjs +2 -0
- package/dist/enums/runtime.mjs.map +1 -1
- package/dist/enums/template-reference-type.d.mts +7 -0
- package/dist/enums/template-reference-type.d.ts +7 -0
- package/dist/enums/template-reference-type.js +12 -0
- package/dist/enums/template-reference-type.js.map +1 -0
- package/dist/enums/template-reference-type.mjs +11 -0
- package/dist/enums/template-reference-type.mjs.map +1 -0
- package/dist/enums/theme.d.mts +6 -0
- package/dist/enums/theme.d.ts +6 -0
- package/dist/enums/theme.js +11 -0
- package/dist/enums/theme.js.map +1 -0
- package/dist/enums/theme.mjs +10 -0
- package/dist/enums/theme.mjs.map +1 -0
- package/dist/enums/timezone.d.mts +423 -0
- package/dist/enums/timezone.d.ts +423 -0
- package/dist/enums/timezone.js +428 -0
- package/dist/enums/timezone.js.map +1 -0
- package/dist/enums/timezone.mjs +427 -0
- package/dist/enums/timezone.mjs.map +1 -0
- package/dist/enums/{vcs-deployment-type.d.mts → vcs-reference-type.d.mts} +2 -2
- package/dist/enums/{vcs-deployment-type.d.ts → vcs-reference-type.d.ts} +2 -2
- package/dist/enums/vcs-reference-type.js +12 -0
- package/dist/enums/vcs-reference-type.js.map +1 -0
- package/dist/enums/vcs-reference-type.mjs +11 -0
- package/dist/enums/vcs-reference-type.mjs.map +1 -0
- package/dist/index.d.mts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +32 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -1
- package/dist/index.mjs.map +1 -1
- package/dist/models.d.mts +5 -1
- package/dist/models.d.ts +5 -1
- package/dist/operator.d.mts +181 -0
- package/dist/operator.d.ts +181 -0
- package/dist/operator.js +268 -0
- package/dist/operator.js.map +1 -0
- package/dist/operator.mjs +266 -0
- package/dist/operator.mjs.map +1 -0
- package/dist/query.js +6 -6
- package/dist/query.js.map +1 -1
- package/dist/query.mjs +6 -6
- package/dist/query.mjs.map +1 -1
- package/dist/services/account.d.mts +8 -2
- package/dist/services/account.d.ts +8 -2
- package/dist/services/account.js +18 -8
- package/dist/services/account.js.map +1 -1
- package/dist/services/account.mjs +18 -8
- package/dist/services/account.mjs.map +1 -1
- package/dist/services/avatars.d.mts +87 -0
- package/dist/services/avatars.d.ts +87 -0
- package/dist/services/avatars.js +123 -0
- package/dist/services/avatars.js.map +1 -1
- package/dist/services/avatars.mjs +123 -0
- package/dist/services/avatars.mjs.map +1 -1
- package/dist/services/databases.d.mts +20 -5
- package/dist/services/databases.d.ts +20 -5
- package/dist/services/databases.js +30 -5
- package/dist/services/databases.js.map +1 -1
- package/dist/services/databases.mjs +30 -5
- package/dist/services/databases.mjs.map +1 -1
- package/dist/services/functions.d.mts +25 -12
- package/dist/services/functions.d.ts +25 -12
- package/dist/services/functions.js +33 -10
- package/dist/services/functions.js.map +1 -1
- package/dist/services/functions.mjs +33 -10
- package/dist/services/functions.mjs.map +1 -1
- package/dist/services/messaging.d.mts +116 -9
- package/dist/services/messaging.d.ts +116 -9
- package/dist/services/messaging.js +182 -9
- package/dist/services/messaging.js.map +1 -1
- package/dist/services/messaging.mjs +182 -9
- package/dist/services/messaging.mjs.map +1 -1
- package/dist/services/sites.d.mts +27 -14
- package/dist/services/sites.d.ts +27 -14
- package/dist/services/sites.js +33 -10
- package/dist/services/sites.js.map +1 -1
- package/dist/services/sites.mjs +33 -10
- package/dist/services/sites.mjs.map +1 -1
- package/dist/services/storage.d.mts +18 -6
- package/dist/services/storage.d.ts +18 -6
- package/dist/services/storage.js +24 -4
- package/dist/services/storage.js.map +1 -1
- package/dist/services/storage.mjs +24 -4
- package/dist/services/storage.mjs.map +1 -1
- package/dist/services/tables-db.d.mts +22 -7
- package/dist/services/tables-db.d.ts +22 -7
- package/dist/services/tables-db.js +30 -5
- package/dist/services/tables-db.js.map +1 -1
- package/dist/services/tables-db.mjs +30 -5
- package/dist/services/tables-db.mjs.map +1 -1
- package/dist/services/teams.d.mts +8 -2
- package/dist/services/teams.d.ts +8 -2
- package/dist/services/teams.js +12 -2
- package/dist/services/teams.js.map +1 -1
- package/dist/services/teams.mjs +12 -2
- package/dist/services/teams.mjs.map +1 -1
- package/dist/services/tokens.d.mts +4 -1
- package/dist/services/tokens.d.ts +4 -1
- package/dist/services/tokens.js +6 -1
- package/dist/services/tokens.js.map +1 -1
- package/dist/services/tokens.mjs +6 -1
- package/dist/services/tokens.mjs.map +1 -1
- package/dist/services/users.d.mts +24 -6
- package/dist/services/users.d.ts +24 -6
- package/dist/services/users.js +37 -7
- package/dist/services/users.js.map +1 -1
- package/dist/services/users.mjs +37 -7
- package/dist/services/users.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/enums/vcs-deployment-type.js +0 -12
- package/dist/enums/vcs-deployment-type.js.map +0 -1
- package/dist/enums/vcs-deployment-type.mjs +0 -11
- package/dist/enums/vcs-deployment-type.mjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -18,17 +18,22 @@ var users = require('./services/users');
|
|
|
18
18
|
var permission = require('./permission');
|
|
19
19
|
var role = require('./role');
|
|
20
20
|
var id = require('./id');
|
|
21
|
+
var operator = require('./operator');
|
|
21
22
|
var authenticatorType = require('./enums/authenticator-type');
|
|
22
23
|
var authenticationFactor = require('./enums/authentication-factor');
|
|
23
24
|
var oAuthProvider = require('./enums/o-auth-provider');
|
|
24
25
|
var browser = require('./enums/browser');
|
|
25
26
|
var creditCard = require('./enums/credit-card');
|
|
26
27
|
var flag = require('./enums/flag');
|
|
28
|
+
var theme = require('./enums/theme');
|
|
29
|
+
var timezone = require('./enums/timezone');
|
|
30
|
+
var output = require('./enums/output');
|
|
27
31
|
var relationshipType = require('./enums/relationship-type');
|
|
28
32
|
var relationMutate = require('./enums/relation-mutate');
|
|
29
33
|
var indexType = require('./enums/index-type');
|
|
30
34
|
var runtime = require('./enums/runtime');
|
|
31
|
-
var
|
|
35
|
+
var templateReferenceType = require('./enums/template-reference-type');
|
|
36
|
+
var vcsReferenceType = require('./enums/vcs-reference-type');
|
|
32
37
|
var deploymentDownloadType = require('./enums/deployment-download-type');
|
|
33
38
|
var executionMethod = require('./enums/execution-method');
|
|
34
39
|
var name = require('./enums/name');
|
|
@@ -135,6 +140,14 @@ Object.defineProperty(exports, 'ID', {
|
|
|
135
140
|
enumerable: true,
|
|
136
141
|
get: function () { return id.ID; }
|
|
137
142
|
});
|
|
143
|
+
Object.defineProperty(exports, 'Condition', {
|
|
144
|
+
enumerable: true,
|
|
145
|
+
get: function () { return operator.Condition; }
|
|
146
|
+
});
|
|
147
|
+
Object.defineProperty(exports, 'Operator', {
|
|
148
|
+
enumerable: true,
|
|
149
|
+
get: function () { return operator.Operator; }
|
|
150
|
+
});
|
|
138
151
|
Object.defineProperty(exports, 'AuthenticatorType', {
|
|
139
152
|
enumerable: true,
|
|
140
153
|
get: function () { return authenticatorType.AuthenticatorType; }
|
|
@@ -159,6 +172,18 @@ Object.defineProperty(exports, 'Flag', {
|
|
|
159
172
|
enumerable: true,
|
|
160
173
|
get: function () { return flag.Flag; }
|
|
161
174
|
});
|
|
175
|
+
Object.defineProperty(exports, 'Theme', {
|
|
176
|
+
enumerable: true,
|
|
177
|
+
get: function () { return theme.Theme; }
|
|
178
|
+
});
|
|
179
|
+
Object.defineProperty(exports, 'Timezone', {
|
|
180
|
+
enumerable: true,
|
|
181
|
+
get: function () { return timezone.Timezone; }
|
|
182
|
+
});
|
|
183
|
+
Object.defineProperty(exports, 'Output', {
|
|
184
|
+
enumerable: true,
|
|
185
|
+
get: function () { return output.Output; }
|
|
186
|
+
});
|
|
162
187
|
Object.defineProperty(exports, 'RelationshipType', {
|
|
163
188
|
enumerable: true,
|
|
164
189
|
get: function () { return relationshipType.RelationshipType; }
|
|
@@ -175,9 +200,13 @@ Object.defineProperty(exports, 'Runtime', {
|
|
|
175
200
|
enumerable: true,
|
|
176
201
|
get: function () { return runtime.Runtime; }
|
|
177
202
|
});
|
|
178
|
-
Object.defineProperty(exports, '
|
|
203
|
+
Object.defineProperty(exports, 'TemplateReferenceType', {
|
|
204
|
+
enumerable: true,
|
|
205
|
+
get: function () { return templateReferenceType.TemplateReferenceType; }
|
|
206
|
+
});
|
|
207
|
+
Object.defineProperty(exports, 'VCSReferenceType', {
|
|
179
208
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
209
|
+
get: function () { return vcsReferenceType.VCSReferenceType; }
|
|
181
210
|
});
|
|
182
211
|
Object.defineProperty(exports, 'DeploymentDownloadType', {
|
|
183
212
|
enumerable: true,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AAAA,SAAS,QAAQ,OAAO,yBAAyB;AACjD,SAAS,eAAe;AACxB,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,cAAc;AACvB,SAAS,cAAc;AACvB,SAAS,iBAAiB;AAC1B,SAAS,aAAa;AACtB,SAAS,eAAe;AACxB,SAAS,gBAAgB;AACzB,SAAS,aAAa;AACtB,SAAS,cAAc;AACvB,SAAS,aAAa;AAGtB,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,UAAU;AACnB,SAAS,yBAAyB;AAClC,SAAS,4BAA4B;AACrC,SAAS,qBAAqB;AAC9B,SAAS,eAAe;AACxB,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,wBAAwB;AACjC,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AAAA,SAAS,QAAQ,OAAO,yBAAyB;AACjD,SAAS,eAAe;AACxB,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,cAAc;AACvB,SAAS,cAAc;AACvB,SAAS,iBAAiB;AAC1B,SAAS,aAAa;AACtB,SAAS,eAAe;AACxB,SAAS,gBAAgB;AACzB,SAAS,aAAa;AACtB,SAAS,cAAc;AACvB,SAAS,aAAa;AAGtB,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,UAAU;AACnB,SAAS,UAAU,iBAAiB;AACpC,SAAS,yBAAyB;AAClC,SAAS,4BAA4B;AACrC,SAAS,qBAAqB;AAC9B,SAAS,eAAe;AACxB,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,aAAa;AACtB,SAAS,gBAAgB;AACzB,SAAS,cAAc;AACvB,SAAS,wBAAwB;AACjC,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,6BAA6B;AACtC,SAAS,wBAAwB;AACjC,SAAS,8BAA8B;AACvC,SAAS,uBAAuB;AAChC,SAAS,YAAY;AACrB,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAC7B,SAAS,eAAe;AACxB,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,6BAA6B;AACtC,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,oBAAoB;AAC7B,SAAS,mBAAmB;AAC5B,SAAS,wBAAwB;AACjC,SAAS,wBAAwB;AACjC,SAAS,uBAAuB;AAChC,SAAS,6BAA6B;AACtC,SAAS,yBAAyB;AAClC,SAAS,qBAAqB","sourcesContent":["export { Client, Query, AppwriteException } from './client';\nexport { Account } from './services/account';\nexport { Avatars } from './services/avatars';\nexport { Databases } from './services/databases';\nexport { Functions } from './services/functions';\nexport { Graphql } from './services/graphql';\nexport { Health } from './services/health';\nexport { Locale } from './services/locale';\nexport { Messaging } from './services/messaging';\nexport { Sites } from './services/sites';\nexport { Storage } from './services/storage';\nexport { TablesDB } from './services/tables-db';\nexport { Teams } from './services/teams';\nexport { Tokens } from './services/tokens';\nexport { Users } from './services/users';\nexport type { Models, Payload, UploadProgress } from './client';\nexport type { QueryTypes, QueryTypesList } from './query';\nexport { Permission } from './permission';\nexport { Role } from './role';\nexport { ID } from './id';\nexport { Operator, Condition } from './operator';\nexport { AuthenticatorType } from './enums/authenticator-type';\nexport { AuthenticationFactor } from './enums/authentication-factor';\nexport { OAuthProvider } from './enums/o-auth-provider';\nexport { Browser } from './enums/browser';\nexport { CreditCard } from './enums/credit-card';\nexport { Flag } from './enums/flag';\nexport { Theme } from './enums/theme';\nexport { Timezone } from './enums/timezone';\nexport { Output } from './enums/output';\nexport { RelationshipType } from './enums/relationship-type';\nexport { RelationMutate } from './enums/relation-mutate';\nexport { IndexType } from './enums/index-type';\nexport { Runtime } from './enums/runtime';\nexport { TemplateReferenceType } from './enums/template-reference-type';\nexport { VCSReferenceType } from './enums/vcs-reference-type';\nexport { DeploymentDownloadType } from './enums/deployment-download-type';\nexport { ExecutionMethod } from './enums/execution-method';\nexport { Name } from './enums/name';\nexport { MessagePriority } from './enums/message-priority';\nexport { SmtpEncryption } from './enums/smtp-encryption';\nexport { Framework } from './enums/framework';\nexport { BuildRuntime } from './enums/build-runtime';\nexport { Adapter } from './enums/adapter';\nexport { Compression } from './enums/compression';\nexport { ImageGravity } from './enums/image-gravity';\nexport { ImageFormat } from './enums/image-format';\nexport { PasswordHash } from './enums/password-hash';\nexport { MessagingProviderType } from './enums/messaging-provider-type';\nexport { DatabaseType } from './enums/database-type';\nexport { AttributeStatus } from './enums/attribute-status';\nexport { ColumnStatus } from './enums/column-status';\nexport { IndexStatus } from './enums/index-status';\nexport { DeploymentStatus } from './enums/deployment-status';\nexport { ExecutionTrigger } from './enums/execution-trigger';\nexport { ExecutionStatus } from './enums/execution-status';\nexport { HealthAntivirusStatus } from './enums/health-antivirus-status';\nexport { HealthCheckStatus } from './enums/health-check-status';\nexport { MessageStatus } from './enums/message-status';\n"]}
|
package/dist/index.mjs
CHANGED
|
@@ -16,17 +16,22 @@ export { Users } from './services/users.mjs';
|
|
|
16
16
|
export { Permission } from './permission.mjs';
|
|
17
17
|
export { Role } from './role.mjs';
|
|
18
18
|
export { ID } from './id.mjs';
|
|
19
|
+
export { Condition, Operator } from './operator.mjs';
|
|
19
20
|
export { AuthenticatorType } from './enums/authenticator-type.mjs';
|
|
20
21
|
export { AuthenticationFactor } from './enums/authentication-factor.mjs';
|
|
21
22
|
export { OAuthProvider } from './enums/o-auth-provider.mjs';
|
|
22
23
|
export { Browser } from './enums/browser.mjs';
|
|
23
24
|
export { CreditCard } from './enums/credit-card.mjs';
|
|
24
25
|
export { Flag } from './enums/flag.mjs';
|
|
26
|
+
export { Theme } from './enums/theme.mjs';
|
|
27
|
+
export { Timezone } from './enums/timezone.mjs';
|
|
28
|
+
export { Output } from './enums/output.mjs';
|
|
25
29
|
export { RelationshipType } from './enums/relationship-type.mjs';
|
|
26
30
|
export { RelationMutate } from './enums/relation-mutate.mjs';
|
|
27
31
|
export { IndexType } from './enums/index-type.mjs';
|
|
28
32
|
export { Runtime } from './enums/runtime.mjs';
|
|
29
|
-
export {
|
|
33
|
+
export { TemplateReferenceType } from './enums/template-reference-type.mjs';
|
|
34
|
+
export { VCSReferenceType } from './enums/vcs-reference-type.mjs';
|
|
30
35
|
export { DeploymentDownloadType } from './enums/deployment-download-type.mjs';
|
|
31
36
|
export { ExecutionMethod } from './enums/execution-method.mjs';
|
|
32
37
|
export { Name } from './enums/name.mjs';
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";AAAA,SAAS,QAAQ,OAAO,yBAAyB;AACjD,SAAS,eAAe;AACxB,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,cAAc;AACvB,SAAS,cAAc;AACvB,SAAS,iBAAiB;AAC1B,SAAS,aAAa;AACtB,SAAS,eAAe;AACxB,SAAS,gBAAgB;AACzB,SAAS,aAAa;AACtB,SAAS,cAAc;AACvB,SAAS,aAAa;AAGtB,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,UAAU;AACnB,SAAS,yBAAyB;AAClC,SAAS,4BAA4B;AACrC,SAAS,qBAAqB;AAC9B,SAAS,eAAe;AACxB,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,wBAAwB;AACjC,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";AAAA,SAAS,QAAQ,OAAO,yBAAyB;AACjD,SAAS,eAAe;AACxB,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,cAAc;AACvB,SAAS,cAAc;AACvB,SAAS,iBAAiB;AAC1B,SAAS,aAAa;AACtB,SAAS,eAAe;AACxB,SAAS,gBAAgB;AACzB,SAAS,aAAa;AACtB,SAAS,cAAc;AACvB,SAAS,aAAa;AAGtB,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,UAAU;AACnB,SAAS,UAAU,iBAAiB;AACpC,SAAS,yBAAyB;AAClC,SAAS,4BAA4B;AACrC,SAAS,qBAAqB;AAC9B,SAAS,eAAe;AACxB,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,aAAa;AACtB,SAAS,gBAAgB;AACzB,SAAS,cAAc;AACvB,SAAS,wBAAwB;AACjC,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,6BAA6B;AACtC,SAAS,wBAAwB;AACjC,SAAS,8BAA8B;AACvC,SAAS,uBAAuB;AAChC,SAAS,YAAY;AACrB,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAC7B,SAAS,eAAe;AACxB,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,6BAA6B;AACtC,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,oBAAoB;AAC7B,SAAS,mBAAmB;AAC5B,SAAS,wBAAwB;AACjC,SAAS,wBAAwB;AACjC,SAAS,uBAAuB;AAChC,SAAS,6BAA6B;AACtC,SAAS,yBAAyB;AAClC,SAAS,qBAAqB","sourcesContent":["export { Client, Query, AppwriteException } from './client';\nexport { Account } from './services/account';\nexport { Avatars } from './services/avatars';\nexport { Databases } from './services/databases';\nexport { Functions } from './services/functions';\nexport { Graphql } from './services/graphql';\nexport { Health } from './services/health';\nexport { Locale } from './services/locale';\nexport { Messaging } from './services/messaging';\nexport { Sites } from './services/sites';\nexport { Storage } from './services/storage';\nexport { TablesDB } from './services/tables-db';\nexport { Teams } from './services/teams';\nexport { Tokens } from './services/tokens';\nexport { Users } from './services/users';\nexport type { Models, Payload, UploadProgress } from './client';\nexport type { QueryTypes, QueryTypesList } from './query';\nexport { Permission } from './permission';\nexport { Role } from './role';\nexport { ID } from './id';\nexport { Operator, Condition } from './operator';\nexport { AuthenticatorType } from './enums/authenticator-type';\nexport { AuthenticationFactor } from './enums/authentication-factor';\nexport { OAuthProvider } from './enums/o-auth-provider';\nexport { Browser } from './enums/browser';\nexport { CreditCard } from './enums/credit-card';\nexport { Flag } from './enums/flag';\nexport { Theme } from './enums/theme';\nexport { Timezone } from './enums/timezone';\nexport { Output } from './enums/output';\nexport { RelationshipType } from './enums/relationship-type';\nexport { RelationMutate } from './enums/relation-mutate';\nexport { IndexType } from './enums/index-type';\nexport { Runtime } from './enums/runtime';\nexport { TemplateReferenceType } from './enums/template-reference-type';\nexport { VCSReferenceType } from './enums/vcs-reference-type';\nexport { DeploymentDownloadType } from './enums/deployment-download-type';\nexport { ExecutionMethod } from './enums/execution-method';\nexport { Name } from './enums/name';\nexport { MessagePriority } from './enums/message-priority';\nexport { SmtpEncryption } from './enums/smtp-encryption';\nexport { Framework } from './enums/framework';\nexport { BuildRuntime } from './enums/build-runtime';\nexport { Adapter } from './enums/adapter';\nexport { Compression } from './enums/compression';\nexport { ImageGravity } from './enums/image-gravity';\nexport { ImageFormat } from './enums/image-format';\nexport { PasswordHash } from './enums/password-hash';\nexport { MessagingProviderType } from './enums/messaging-provider-type';\nexport { DatabaseType } from './enums/database-type';\nexport { AttributeStatus } from './enums/attribute-status';\nexport { ColumnStatus } from './enums/column-status';\nexport { IndexStatus } from './enums/index-status';\nexport { DeploymentStatus } from './enums/deployment-status';\nexport { ExecutionTrigger } from './enums/execution-trigger';\nexport { ExecutionStatus } from './enums/execution-status';\nexport { HealthAntivirusStatus } from './enums/health-antivirus-status';\nexport { HealthCheckStatus } from './enums/health-check-status';\nexport { MessageStatus } from './enums/message-status';\n"]}
|
package/dist/models.d.mts
CHANGED
|
@@ -2625,6 +2625,10 @@ declare namespace Models {
|
|
|
2625
2625
|
* Virus scanning is enabled.
|
|
2626
2626
|
*/
|
|
2627
2627
|
antivirus: boolean;
|
|
2628
|
+
/**
|
|
2629
|
+
* Image transformations are enabled.
|
|
2630
|
+
*/
|
|
2631
|
+
transformations: boolean;
|
|
2628
2632
|
};
|
|
2629
2633
|
/**
|
|
2630
2634
|
* ResourceToken
|
|
@@ -3216,7 +3220,7 @@ declare namespace Models {
|
|
|
3216
3220
|
*/
|
|
3217
3221
|
trigger: ExecutionTrigger;
|
|
3218
3222
|
/**
|
|
3219
|
-
* The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `
|
|
3223
|
+
* The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, `failed`, or `scheduled`.
|
|
3220
3224
|
*/
|
|
3221
3225
|
status: ExecutionStatus;
|
|
3222
3226
|
/**
|
package/dist/models.d.ts
CHANGED
|
@@ -2625,6 +2625,10 @@ declare namespace Models {
|
|
|
2625
2625
|
* Virus scanning is enabled.
|
|
2626
2626
|
*/
|
|
2627
2627
|
antivirus: boolean;
|
|
2628
|
+
/**
|
|
2629
|
+
* Image transformations are enabled.
|
|
2630
|
+
*/
|
|
2631
|
+
transformations: boolean;
|
|
2628
2632
|
};
|
|
2629
2633
|
/**
|
|
2630
2634
|
* ResourceToken
|
|
@@ -3216,7 +3220,7 @@ declare namespace Models {
|
|
|
3216
3220
|
*/
|
|
3217
3221
|
trigger: ExecutionTrigger;
|
|
3218
3222
|
/**
|
|
3219
|
-
* The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `
|
|
3223
|
+
* The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, `failed`, or `scheduled`.
|
|
3220
3224
|
*/
|
|
3221
3225
|
status: ExecutionStatus;
|
|
3222
3226
|
/**
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
type OperatorValuesSingle = string | number | boolean;
|
|
2
|
+
type OperatorValuesList = string[] | number[] | boolean[] | any[];
|
|
3
|
+
type OperatorValues = OperatorValuesSingle | OperatorValuesList;
|
|
4
|
+
declare enum Condition {
|
|
5
|
+
Equal = "equal",
|
|
6
|
+
NotEqual = "notEqual",
|
|
7
|
+
GreaterThan = "greaterThan",
|
|
8
|
+
GreaterThanEqual = "greaterThanEqual",
|
|
9
|
+
LessThan = "lessThan",
|
|
10
|
+
LessThanEqual = "lessThanEqual",
|
|
11
|
+
Contains = "contains",
|
|
12
|
+
IsNull = "isNull",
|
|
13
|
+
IsNotNull = "isNotNull"
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Helper class to generate operator strings for atomic operations.
|
|
17
|
+
*/
|
|
18
|
+
declare class Operator {
|
|
19
|
+
method: string;
|
|
20
|
+
values: OperatorValuesList | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Constructor for Operator class.
|
|
23
|
+
*
|
|
24
|
+
* @param {string} method
|
|
25
|
+
* @param {OperatorValues} values
|
|
26
|
+
*/
|
|
27
|
+
constructor(method: string, values?: OperatorValues);
|
|
28
|
+
/**
|
|
29
|
+
* Convert the operator object to a JSON string.
|
|
30
|
+
*
|
|
31
|
+
* @returns {string}
|
|
32
|
+
*/
|
|
33
|
+
toString(): string;
|
|
34
|
+
/**
|
|
35
|
+
* Increment a numeric attribute by a specified value.
|
|
36
|
+
*
|
|
37
|
+
* @param {number} value
|
|
38
|
+
* @param {number} max
|
|
39
|
+
* @returns {string}
|
|
40
|
+
*/
|
|
41
|
+
static increment: (value?: number, max?: number) => string;
|
|
42
|
+
/**
|
|
43
|
+
* Decrement a numeric attribute by a specified value.
|
|
44
|
+
*
|
|
45
|
+
* @param {number} value
|
|
46
|
+
* @param {number} min
|
|
47
|
+
* @returns {string}
|
|
48
|
+
*/
|
|
49
|
+
static decrement: (value?: number, min?: number) => string;
|
|
50
|
+
/**
|
|
51
|
+
* Multiply a numeric attribute by a specified factor.
|
|
52
|
+
*
|
|
53
|
+
* @param {number} factor
|
|
54
|
+
* @param {number} max
|
|
55
|
+
* @returns {string}
|
|
56
|
+
*/
|
|
57
|
+
static multiply: (factor: number, max?: number) => string;
|
|
58
|
+
/**
|
|
59
|
+
* Divide a numeric attribute by a specified divisor.
|
|
60
|
+
*
|
|
61
|
+
* @param {number} divisor
|
|
62
|
+
* @param {number} min
|
|
63
|
+
* @returns {string}
|
|
64
|
+
*/
|
|
65
|
+
static divide: (divisor: number, min?: number) => string;
|
|
66
|
+
/**
|
|
67
|
+
* Apply modulo operation on a numeric attribute.
|
|
68
|
+
*
|
|
69
|
+
* @param {number} divisor
|
|
70
|
+
* @returns {string}
|
|
71
|
+
*/
|
|
72
|
+
static modulo: (divisor: number) => string;
|
|
73
|
+
/**
|
|
74
|
+
* Raise a numeric attribute to a specified power.
|
|
75
|
+
*
|
|
76
|
+
* @param {number} exponent
|
|
77
|
+
* @param {number} max
|
|
78
|
+
* @returns {string}
|
|
79
|
+
*/
|
|
80
|
+
static power: (exponent: number, max?: number) => string;
|
|
81
|
+
/**
|
|
82
|
+
* Append values to an array attribute.
|
|
83
|
+
*
|
|
84
|
+
* @param {any[]} values
|
|
85
|
+
* @returns {string}
|
|
86
|
+
*/
|
|
87
|
+
static arrayAppend: (values: any[]) => string;
|
|
88
|
+
/**
|
|
89
|
+
* Prepend values to an array attribute.
|
|
90
|
+
*
|
|
91
|
+
* @param {any[]} values
|
|
92
|
+
* @returns {string}
|
|
93
|
+
*/
|
|
94
|
+
static arrayPrepend: (values: any[]) => string;
|
|
95
|
+
/**
|
|
96
|
+
* Insert a value at a specific index in an array attribute.
|
|
97
|
+
*
|
|
98
|
+
* @param {number} index
|
|
99
|
+
* @param {any} value
|
|
100
|
+
* @returns {string}
|
|
101
|
+
*/
|
|
102
|
+
static arrayInsert: (index: number, value: any) => string;
|
|
103
|
+
/**
|
|
104
|
+
* Remove a value from an array attribute.
|
|
105
|
+
*
|
|
106
|
+
* @param {any} value
|
|
107
|
+
* @returns {string}
|
|
108
|
+
*/
|
|
109
|
+
static arrayRemove: (value: any) => string;
|
|
110
|
+
/**
|
|
111
|
+
* Remove duplicate values from an array attribute.
|
|
112
|
+
*
|
|
113
|
+
* @returns {string}
|
|
114
|
+
*/
|
|
115
|
+
static arrayUnique: () => string;
|
|
116
|
+
/**
|
|
117
|
+
* Keep only values that exist in both the current array and the provided array.
|
|
118
|
+
*
|
|
119
|
+
* @param {any[]} values
|
|
120
|
+
* @returns {string}
|
|
121
|
+
*/
|
|
122
|
+
static arrayIntersect: (values: any[]) => string;
|
|
123
|
+
/**
|
|
124
|
+
* Remove values from the array that exist in the provided array.
|
|
125
|
+
*
|
|
126
|
+
* @param {any[]} values
|
|
127
|
+
* @returns {string}
|
|
128
|
+
*/
|
|
129
|
+
static arrayDiff: (values: any[]) => string;
|
|
130
|
+
/**
|
|
131
|
+
* Filter array values based on a condition.
|
|
132
|
+
*
|
|
133
|
+
* @param {Condition} condition
|
|
134
|
+
* @param {any} value
|
|
135
|
+
* @returns {string}
|
|
136
|
+
*/
|
|
137
|
+
static arrayFilter: (condition: Condition, value?: any) => string;
|
|
138
|
+
/**
|
|
139
|
+
* Concatenate a value to a string or array attribute.
|
|
140
|
+
*
|
|
141
|
+
* @param {any} value
|
|
142
|
+
* @returns {string}
|
|
143
|
+
*/
|
|
144
|
+
static stringConcat: (value: any) => string;
|
|
145
|
+
/**
|
|
146
|
+
* Replace occurrences of a search string with a replacement string.
|
|
147
|
+
*
|
|
148
|
+
* @param {string} search
|
|
149
|
+
* @param {string} replace
|
|
150
|
+
* @returns {string}
|
|
151
|
+
*/
|
|
152
|
+
static stringReplace: (search: string, replace: string) => string;
|
|
153
|
+
/**
|
|
154
|
+
* Toggle a boolean attribute.
|
|
155
|
+
*
|
|
156
|
+
* @returns {string}
|
|
157
|
+
*/
|
|
158
|
+
static toggle: () => string;
|
|
159
|
+
/**
|
|
160
|
+
* Add days to a date attribute.
|
|
161
|
+
*
|
|
162
|
+
* @param {number} days
|
|
163
|
+
* @returns {string}
|
|
164
|
+
*/
|
|
165
|
+
static dateAddDays: (days: number) => string;
|
|
166
|
+
/**
|
|
167
|
+
* Subtract days from a date attribute.
|
|
168
|
+
*
|
|
169
|
+
* @param {number} days
|
|
170
|
+
* @returns {string}
|
|
171
|
+
*/
|
|
172
|
+
static dateSubDays: (days: number) => string;
|
|
173
|
+
/**
|
|
174
|
+
* Set a date attribute to the current date and time.
|
|
175
|
+
*
|
|
176
|
+
* @returns {string}
|
|
177
|
+
*/
|
|
178
|
+
static dateSetNow: () => string;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export { Condition, Operator, OperatorValues, OperatorValuesList };
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
type OperatorValuesSingle = string | number | boolean;
|
|
2
|
+
type OperatorValuesList = string[] | number[] | boolean[] | any[];
|
|
3
|
+
type OperatorValues = OperatorValuesSingle | OperatorValuesList;
|
|
4
|
+
declare enum Condition {
|
|
5
|
+
Equal = "equal",
|
|
6
|
+
NotEqual = "notEqual",
|
|
7
|
+
GreaterThan = "greaterThan",
|
|
8
|
+
GreaterThanEqual = "greaterThanEqual",
|
|
9
|
+
LessThan = "lessThan",
|
|
10
|
+
LessThanEqual = "lessThanEqual",
|
|
11
|
+
Contains = "contains",
|
|
12
|
+
IsNull = "isNull",
|
|
13
|
+
IsNotNull = "isNotNull"
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Helper class to generate operator strings for atomic operations.
|
|
17
|
+
*/
|
|
18
|
+
declare class Operator {
|
|
19
|
+
method: string;
|
|
20
|
+
values: OperatorValuesList | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Constructor for Operator class.
|
|
23
|
+
*
|
|
24
|
+
* @param {string} method
|
|
25
|
+
* @param {OperatorValues} values
|
|
26
|
+
*/
|
|
27
|
+
constructor(method: string, values?: OperatorValues);
|
|
28
|
+
/**
|
|
29
|
+
* Convert the operator object to a JSON string.
|
|
30
|
+
*
|
|
31
|
+
* @returns {string}
|
|
32
|
+
*/
|
|
33
|
+
toString(): string;
|
|
34
|
+
/**
|
|
35
|
+
* Increment a numeric attribute by a specified value.
|
|
36
|
+
*
|
|
37
|
+
* @param {number} value
|
|
38
|
+
* @param {number} max
|
|
39
|
+
* @returns {string}
|
|
40
|
+
*/
|
|
41
|
+
static increment: (value?: number, max?: number) => string;
|
|
42
|
+
/**
|
|
43
|
+
* Decrement a numeric attribute by a specified value.
|
|
44
|
+
*
|
|
45
|
+
* @param {number} value
|
|
46
|
+
* @param {number} min
|
|
47
|
+
* @returns {string}
|
|
48
|
+
*/
|
|
49
|
+
static decrement: (value?: number, min?: number) => string;
|
|
50
|
+
/**
|
|
51
|
+
* Multiply a numeric attribute by a specified factor.
|
|
52
|
+
*
|
|
53
|
+
* @param {number} factor
|
|
54
|
+
* @param {number} max
|
|
55
|
+
* @returns {string}
|
|
56
|
+
*/
|
|
57
|
+
static multiply: (factor: number, max?: number) => string;
|
|
58
|
+
/**
|
|
59
|
+
* Divide a numeric attribute by a specified divisor.
|
|
60
|
+
*
|
|
61
|
+
* @param {number} divisor
|
|
62
|
+
* @param {number} min
|
|
63
|
+
* @returns {string}
|
|
64
|
+
*/
|
|
65
|
+
static divide: (divisor: number, min?: number) => string;
|
|
66
|
+
/**
|
|
67
|
+
* Apply modulo operation on a numeric attribute.
|
|
68
|
+
*
|
|
69
|
+
* @param {number} divisor
|
|
70
|
+
* @returns {string}
|
|
71
|
+
*/
|
|
72
|
+
static modulo: (divisor: number) => string;
|
|
73
|
+
/**
|
|
74
|
+
* Raise a numeric attribute to a specified power.
|
|
75
|
+
*
|
|
76
|
+
* @param {number} exponent
|
|
77
|
+
* @param {number} max
|
|
78
|
+
* @returns {string}
|
|
79
|
+
*/
|
|
80
|
+
static power: (exponent: number, max?: number) => string;
|
|
81
|
+
/**
|
|
82
|
+
* Append values to an array attribute.
|
|
83
|
+
*
|
|
84
|
+
* @param {any[]} values
|
|
85
|
+
* @returns {string}
|
|
86
|
+
*/
|
|
87
|
+
static arrayAppend: (values: any[]) => string;
|
|
88
|
+
/**
|
|
89
|
+
* Prepend values to an array attribute.
|
|
90
|
+
*
|
|
91
|
+
* @param {any[]} values
|
|
92
|
+
* @returns {string}
|
|
93
|
+
*/
|
|
94
|
+
static arrayPrepend: (values: any[]) => string;
|
|
95
|
+
/**
|
|
96
|
+
* Insert a value at a specific index in an array attribute.
|
|
97
|
+
*
|
|
98
|
+
* @param {number} index
|
|
99
|
+
* @param {any} value
|
|
100
|
+
* @returns {string}
|
|
101
|
+
*/
|
|
102
|
+
static arrayInsert: (index: number, value: any) => string;
|
|
103
|
+
/**
|
|
104
|
+
* Remove a value from an array attribute.
|
|
105
|
+
*
|
|
106
|
+
* @param {any} value
|
|
107
|
+
* @returns {string}
|
|
108
|
+
*/
|
|
109
|
+
static arrayRemove: (value: any) => string;
|
|
110
|
+
/**
|
|
111
|
+
* Remove duplicate values from an array attribute.
|
|
112
|
+
*
|
|
113
|
+
* @returns {string}
|
|
114
|
+
*/
|
|
115
|
+
static arrayUnique: () => string;
|
|
116
|
+
/**
|
|
117
|
+
* Keep only values that exist in both the current array and the provided array.
|
|
118
|
+
*
|
|
119
|
+
* @param {any[]} values
|
|
120
|
+
* @returns {string}
|
|
121
|
+
*/
|
|
122
|
+
static arrayIntersect: (values: any[]) => string;
|
|
123
|
+
/**
|
|
124
|
+
* Remove values from the array that exist in the provided array.
|
|
125
|
+
*
|
|
126
|
+
* @param {any[]} values
|
|
127
|
+
* @returns {string}
|
|
128
|
+
*/
|
|
129
|
+
static arrayDiff: (values: any[]) => string;
|
|
130
|
+
/**
|
|
131
|
+
* Filter array values based on a condition.
|
|
132
|
+
*
|
|
133
|
+
* @param {Condition} condition
|
|
134
|
+
* @param {any} value
|
|
135
|
+
* @returns {string}
|
|
136
|
+
*/
|
|
137
|
+
static arrayFilter: (condition: Condition, value?: any) => string;
|
|
138
|
+
/**
|
|
139
|
+
* Concatenate a value to a string or array attribute.
|
|
140
|
+
*
|
|
141
|
+
* @param {any} value
|
|
142
|
+
* @returns {string}
|
|
143
|
+
*/
|
|
144
|
+
static stringConcat: (value: any) => string;
|
|
145
|
+
/**
|
|
146
|
+
* Replace occurrences of a search string with a replacement string.
|
|
147
|
+
*
|
|
148
|
+
* @param {string} search
|
|
149
|
+
* @param {string} replace
|
|
150
|
+
* @returns {string}
|
|
151
|
+
*/
|
|
152
|
+
static stringReplace: (search: string, replace: string) => string;
|
|
153
|
+
/**
|
|
154
|
+
* Toggle a boolean attribute.
|
|
155
|
+
*
|
|
156
|
+
* @returns {string}
|
|
157
|
+
*/
|
|
158
|
+
static toggle: () => string;
|
|
159
|
+
/**
|
|
160
|
+
* Add days to a date attribute.
|
|
161
|
+
*
|
|
162
|
+
* @param {number} days
|
|
163
|
+
* @returns {string}
|
|
164
|
+
*/
|
|
165
|
+
static dateAddDays: (days: number) => string;
|
|
166
|
+
/**
|
|
167
|
+
* Subtract days from a date attribute.
|
|
168
|
+
*
|
|
169
|
+
* @param {number} days
|
|
170
|
+
* @returns {string}
|
|
171
|
+
*/
|
|
172
|
+
static dateSubDays: (days: number) => string;
|
|
173
|
+
/**
|
|
174
|
+
* Set a date attribute to the current date and time.
|
|
175
|
+
*
|
|
176
|
+
* @returns {string}
|
|
177
|
+
*/
|
|
178
|
+
static dateSetNow: () => string;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export { Condition, Operator, OperatorValues, OperatorValuesList };
|