node-appwrite 22.0.0 → 22.1.1
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 +6 -5
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +6 -1477
- package/dist/client.mjs.map +1 -1
- package/dist/enums/backup-services.d.mts +7 -0
- package/dist/enums/backup-services.d.ts +7 -0
- package/dist/enums/backup-services.js +12 -0
- package/dist/enums/backup-services.js.map +1 -0
- package/dist/enums/backup-services.mjs +11 -0
- package/dist/enums/backup-services.mjs.map +1 -0
- package/dist/enums/build-runtime.d.mts +23 -4
- package/dist/enums/build-runtime.d.ts +23 -4
- package/dist/enums/build-runtime.js +22 -3
- package/dist/enums/build-runtime.js.map +1 -1
- package/dist/enums/build-runtime.mjs +22 -3
- package/dist/enums/build-runtime.mjs.map +1 -1
- package/dist/enums/runtime.d.mts +23 -4
- package/dist/enums/runtime.d.ts +23 -4
- package/dist/enums/runtime.js +22 -3
- package/dist/enums/runtime.js.map +1 -1
- package/dist/enums/runtime.mjs +22 -3
- package/dist/enums/runtime.mjs.map +1 -1
- package/dist/enums/scopes.d.mts +12 -1
- package/dist/enums/scopes.d.ts +12 -1
- package/dist/enums/scopes.js +11 -0
- package/dist/enums/scopes.js.map +1 -1
- package/dist/enums/scopes.mjs +11 -0
- package/dist/enums/scopes.mjs.map +1 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +15 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/models.d.mts +396 -4
- package/dist/models.d.ts +396 -4
- package/dist/query.d.mts +22 -0
- package/dist/query.d.ts +22 -0
- package/dist/query.js +22 -0
- package/dist/query.js.map +1 -1
- package/dist/query.mjs +22 -0
- package/dist/query.mjs.map +1 -1
- package/dist/services/account.js +3 -3
- package/dist/services/account.js.map +1 -1
- package/dist/services/account.mjs +3 -3
- package/dist/services/account.mjs.map +1 -1
- package/dist/services/activities.d.mts +60 -0
- package/dist/services/activities.d.ts +60 -0
- package/dist/services/activities.js +61 -0
- package/dist/services/activities.js.map +1 -0
- package/dist/services/activities.mjs +60 -0
- package/dist/services/activities.mjs.map +1 -0
- package/dist/services/avatars.js +3 -3
- package/dist/services/avatars.js.map +1 -1
- package/dist/services/avatars.mjs +3 -3
- package/dist/services/avatars.mjs.map +1 -1
- package/dist/services/backups.d.mts +291 -0
- package/dist/services/backups.d.ts +291 -0
- package/dist/services/backups.js +404 -0
- package/dist/services/backups.js.map +1 -0
- package/dist/services/backups.mjs +403 -0
- package/dist/services/backups.mjs.map +1 -0
- package/dist/services/databases.d.mts +16 -4
- package/dist/services/databases.d.ts +16 -4
- package/dist/services/databases.js +24 -4
- package/dist/services/databases.js.map +1 -1
- package/dist/services/databases.mjs +24 -4
- package/dist/services/databases.mjs.map +1 -1
- package/dist/services/graphql.js.map +1 -1
- package/dist/services/graphql.mjs.map +1 -1
- package/dist/services/health.d.mts +95 -0
- package/dist/services/health.d.ts +95 -0
- package/dist/services/health.js +121 -1
- package/dist/services/health.js.map +1 -1
- package/dist/services/health.mjs +121 -1
- package/dist/services/health.mjs.map +1 -1
- package/dist/services/storage.d.mts +4 -4
- package/dist/services/storage.d.ts +4 -4
- package/dist/services/storage.js.map +1 -1
- package/dist/services/storage.mjs.map +1 -1
- package/dist/services/tables-db.d.mts +16 -4
- package/dist/services/tables-db.d.ts +16 -4
- package/dist/services/tables-db.js +24 -4
- package/dist/services/tables-db.js.map +1 -1
- package/dist/services/tables-db.mjs +24 -4
- package/dist/services/tables-db.mjs.map +1 -1
- package/dist/services/teams.d.mts +8 -9
- package/dist/services/teams.d.ts +8 -9
- package/dist/services/teams.js.map +1 -1
- package/dist/services/teams.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/enums/roles.d.mts +0 -7
- package/dist/enums/roles.d.ts +0 -7
- package/dist/enums/roles.js +0 -12
- package/dist/enums/roles.js.map +0 -1
- package/dist/enums/roles.mjs +0 -11
- package/dist/enums/roles.mjs.map +0 -1
package/dist/models.d.ts
CHANGED
|
@@ -523,6 +523,14 @@ declare namespace Models {
|
|
|
523
523
|
* Database type.
|
|
524
524
|
*/
|
|
525
525
|
type: DatabaseType;
|
|
526
|
+
/**
|
|
527
|
+
* Database backup policies.
|
|
528
|
+
*/
|
|
529
|
+
policies: Index[];
|
|
530
|
+
/**
|
|
531
|
+
* Database backup archives.
|
|
532
|
+
*/
|
|
533
|
+
archives: Collection[];
|
|
526
534
|
};
|
|
527
535
|
/**
|
|
528
536
|
* Collection
|
|
@@ -563,11 +571,19 @@ declare namespace Models {
|
|
|
563
571
|
/**
|
|
564
572
|
* Collection attributes.
|
|
565
573
|
*/
|
|
566
|
-
attributes: (Models.AttributeBoolean | Models.AttributeInteger | Models.AttributeFloat | Models.AttributeEmail | Models.AttributeEnum | Models.AttributeUrl | Models.AttributeIp | Models.AttributeDatetime | Models.AttributeRelationship | Models.AttributePoint | Models.AttributeLine | Models.AttributePolygon | Models.AttributeString)[];
|
|
574
|
+
attributes: (Models.AttributeBoolean | Models.AttributeInteger | Models.AttributeFloat | Models.AttributeEmail | Models.AttributeEnum | Models.AttributeUrl | Models.AttributeIp | Models.AttributeDatetime | Models.AttributeRelationship | Models.AttributePoint | Models.AttributeLine | Models.AttributePolygon | Models.AttributeVarchar | Models.AttributeText | Models.AttributeMediumtext | Models.AttributeLongtext | Models.AttributeString)[];
|
|
567
575
|
/**
|
|
568
576
|
* Collection indexes.
|
|
569
577
|
*/
|
|
570
578
|
indexes: Index[];
|
|
579
|
+
/**
|
|
580
|
+
* Maximum document size in bytes. Returns 0 when no limit applies.
|
|
581
|
+
*/
|
|
582
|
+
bytesMax: number;
|
|
583
|
+
/**
|
|
584
|
+
* Currently used document size in bytes based on defined attributes.
|
|
585
|
+
*/
|
|
586
|
+
bytesUsed: number;
|
|
571
587
|
};
|
|
572
588
|
/**
|
|
573
589
|
* Attributes List
|
|
@@ -580,7 +596,7 @@ declare namespace Models {
|
|
|
580
596
|
/**
|
|
581
597
|
* List of attributes.
|
|
582
598
|
*/
|
|
583
|
-
attributes: (Models.AttributeBoolean | Models.AttributeInteger | Models.AttributeFloat | Models.AttributeEmail | Models.AttributeEnum | Models.AttributeUrl | Models.AttributeIp | Models.AttributeDatetime | Models.AttributeRelationship | Models.AttributePoint | Models.AttributeLine | Models.AttributePolygon | Models.AttributeString)[];
|
|
599
|
+
attributes: (Models.AttributeBoolean | Models.AttributeInteger | Models.AttributeFloat | Models.AttributeEmail | Models.AttributeEnum | Models.AttributeUrl | Models.AttributeIp | Models.AttributeDatetime | Models.AttributeRelationship | Models.AttributePoint | Models.AttributeLine | Models.AttributePolygon | Models.AttributeVarchar | Models.AttributeText | Models.AttributeMediumtext | Models.AttributeLongtext | Models.AttributeString)[];
|
|
584
600
|
};
|
|
585
601
|
/**
|
|
586
602
|
* AttributeString
|
|
@@ -1227,6 +1243,10 @@ declare namespace Models {
|
|
|
1227
1243
|
* Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1228
1244
|
*/
|
|
1229
1245
|
default?: string;
|
|
1246
|
+
/**
|
|
1247
|
+
* Defines whether this attribute is encrypted or not.
|
|
1248
|
+
*/
|
|
1249
|
+
encrypt?: boolean;
|
|
1230
1250
|
};
|
|
1231
1251
|
/**
|
|
1232
1252
|
* AttributeText
|
|
@@ -1268,6 +1288,10 @@ declare namespace Models {
|
|
|
1268
1288
|
* Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1269
1289
|
*/
|
|
1270
1290
|
default?: string;
|
|
1291
|
+
/**
|
|
1292
|
+
* Defines whether this attribute is encrypted or not.
|
|
1293
|
+
*/
|
|
1294
|
+
encrypt?: boolean;
|
|
1271
1295
|
};
|
|
1272
1296
|
/**
|
|
1273
1297
|
* AttributeMediumtext
|
|
@@ -1309,6 +1333,10 @@ declare namespace Models {
|
|
|
1309
1333
|
* Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1310
1334
|
*/
|
|
1311
1335
|
default?: string;
|
|
1336
|
+
/**
|
|
1337
|
+
* Defines whether this attribute is encrypted or not.
|
|
1338
|
+
*/
|
|
1339
|
+
encrypt?: boolean;
|
|
1312
1340
|
};
|
|
1313
1341
|
/**
|
|
1314
1342
|
* AttributeLongtext
|
|
@@ -1350,6 +1378,10 @@ declare namespace Models {
|
|
|
1350
1378
|
* Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1351
1379
|
*/
|
|
1352
1380
|
default?: string;
|
|
1381
|
+
/**
|
|
1382
|
+
* Defines whether this attribute is encrypted or not.
|
|
1383
|
+
*/
|
|
1384
|
+
encrypt?: boolean;
|
|
1353
1385
|
};
|
|
1354
1386
|
/**
|
|
1355
1387
|
* Table
|
|
@@ -1390,11 +1422,19 @@ declare namespace Models {
|
|
|
1390
1422
|
/**
|
|
1391
1423
|
* Table columns.
|
|
1392
1424
|
*/
|
|
1393
|
-
columns: (Models.ColumnBoolean | Models.ColumnInteger | Models.ColumnFloat | Models.ColumnEmail | Models.ColumnEnum | Models.ColumnUrl | Models.ColumnIp | Models.ColumnDatetime | Models.ColumnRelationship | Models.ColumnPoint | Models.ColumnLine | Models.ColumnPolygon | Models.ColumnString)[];
|
|
1425
|
+
columns: (Models.ColumnBoolean | Models.ColumnInteger | Models.ColumnFloat | Models.ColumnEmail | Models.ColumnEnum | Models.ColumnUrl | Models.ColumnIp | Models.ColumnDatetime | Models.ColumnRelationship | Models.ColumnPoint | Models.ColumnLine | Models.ColumnPolygon | Models.ColumnVarchar | Models.ColumnText | Models.ColumnMediumtext | Models.ColumnLongtext | Models.ColumnString)[];
|
|
1394
1426
|
/**
|
|
1395
1427
|
* Table indexes.
|
|
1396
1428
|
*/
|
|
1397
1429
|
indexes: ColumnIndex[];
|
|
1430
|
+
/**
|
|
1431
|
+
* Maximum row size in bytes. Returns 0 when no limit applies.
|
|
1432
|
+
*/
|
|
1433
|
+
bytesMax: number;
|
|
1434
|
+
/**
|
|
1435
|
+
* Currently used row size in bytes based on defined columns.
|
|
1436
|
+
*/
|
|
1437
|
+
bytesUsed: number;
|
|
1398
1438
|
};
|
|
1399
1439
|
/**
|
|
1400
1440
|
* Columns List
|
|
@@ -1407,7 +1447,7 @@ declare namespace Models {
|
|
|
1407
1447
|
/**
|
|
1408
1448
|
* List of columns.
|
|
1409
1449
|
*/
|
|
1410
|
-
columns: (Models.ColumnBoolean | Models.ColumnInteger | Models.ColumnFloat | Models.ColumnEmail | Models.ColumnEnum | Models.ColumnUrl | Models.ColumnIp | Models.ColumnDatetime | Models.ColumnRelationship | Models.ColumnPoint | Models.ColumnLine | Models.ColumnPolygon | Models.ColumnString)[];
|
|
1450
|
+
columns: (Models.ColumnBoolean | Models.ColumnInteger | Models.ColumnFloat | Models.ColumnEmail | Models.ColumnEnum | Models.ColumnUrl | Models.ColumnIp | Models.ColumnDatetime | Models.ColumnRelationship | Models.ColumnPoint | Models.ColumnLine | Models.ColumnPolygon | Models.ColumnVarchar | Models.ColumnText | Models.ColumnMediumtext | Models.ColumnLongtext | Models.ColumnString)[];
|
|
1411
1451
|
};
|
|
1412
1452
|
/**
|
|
1413
1453
|
* ColumnString
|
|
@@ -2054,6 +2094,10 @@ declare namespace Models {
|
|
|
2054
2094
|
* Default value for column when not provided. Cannot be set when column is required.
|
|
2055
2095
|
*/
|
|
2056
2096
|
default?: string;
|
|
2097
|
+
/**
|
|
2098
|
+
* Defines whether this column is encrypted or not.
|
|
2099
|
+
*/
|
|
2100
|
+
encrypt?: boolean;
|
|
2057
2101
|
};
|
|
2058
2102
|
/**
|
|
2059
2103
|
* ColumnText
|
|
@@ -2095,6 +2139,10 @@ declare namespace Models {
|
|
|
2095
2139
|
* Default value for column when not provided. Cannot be set when column is required.
|
|
2096
2140
|
*/
|
|
2097
2141
|
default?: string;
|
|
2142
|
+
/**
|
|
2143
|
+
* Defines whether this column is encrypted or not.
|
|
2144
|
+
*/
|
|
2145
|
+
encrypt?: boolean;
|
|
2098
2146
|
};
|
|
2099
2147
|
/**
|
|
2100
2148
|
* ColumnMediumtext
|
|
@@ -2136,6 +2184,10 @@ declare namespace Models {
|
|
|
2136
2184
|
* Default value for column when not provided. Cannot be set when column is required.
|
|
2137
2185
|
*/
|
|
2138
2186
|
default?: string;
|
|
2187
|
+
/**
|
|
2188
|
+
* Defines whether this column is encrypted or not.
|
|
2189
|
+
*/
|
|
2190
|
+
encrypt?: boolean;
|
|
2139
2191
|
};
|
|
2140
2192
|
/**
|
|
2141
2193
|
* ColumnLongtext
|
|
@@ -2177,6 +2229,10 @@ declare namespace Models {
|
|
|
2177
2229
|
* Default value for column when not provided. Cannot be set when column is required.
|
|
2178
2230
|
*/
|
|
2179
2231
|
default?: string;
|
|
2232
|
+
/**
|
|
2233
|
+
* Defines whether this column is encrypted or not.
|
|
2234
|
+
*/
|
|
2235
|
+
encrypt?: boolean;
|
|
2180
2236
|
};
|
|
2181
2237
|
/**
|
|
2182
2238
|
* Index
|
|
@@ -4184,6 +4240,342 @@ declare namespace Models {
|
|
|
4184
4240
|
*/
|
|
4185
4241
|
expired: boolean;
|
|
4186
4242
|
};
|
|
4243
|
+
/**
|
|
4244
|
+
* ActivityEvent
|
|
4245
|
+
*/
|
|
4246
|
+
export type ActivityEvent = {
|
|
4247
|
+
/**
|
|
4248
|
+
* Event ID.
|
|
4249
|
+
*/
|
|
4250
|
+
$id: string;
|
|
4251
|
+
/**
|
|
4252
|
+
* User type.
|
|
4253
|
+
*/
|
|
4254
|
+
userType: string;
|
|
4255
|
+
/**
|
|
4256
|
+
* User ID.
|
|
4257
|
+
*/
|
|
4258
|
+
userId: string;
|
|
4259
|
+
/**
|
|
4260
|
+
* User Email.
|
|
4261
|
+
*/
|
|
4262
|
+
userEmail: string;
|
|
4263
|
+
/**
|
|
4264
|
+
* User Name.
|
|
4265
|
+
*/
|
|
4266
|
+
userName: string;
|
|
4267
|
+
/**
|
|
4268
|
+
* Resource parent.
|
|
4269
|
+
*/
|
|
4270
|
+
resourceParent: string;
|
|
4271
|
+
/**
|
|
4272
|
+
* Resource type.
|
|
4273
|
+
*/
|
|
4274
|
+
resourceType: string;
|
|
4275
|
+
/**
|
|
4276
|
+
* Resource ID.
|
|
4277
|
+
*/
|
|
4278
|
+
resourceId: string;
|
|
4279
|
+
/**
|
|
4280
|
+
* Resource.
|
|
4281
|
+
*/
|
|
4282
|
+
resource: string;
|
|
4283
|
+
/**
|
|
4284
|
+
* Event name.
|
|
4285
|
+
*/
|
|
4286
|
+
event: string;
|
|
4287
|
+
/**
|
|
4288
|
+
* User agent.
|
|
4289
|
+
*/
|
|
4290
|
+
userAgent: string;
|
|
4291
|
+
/**
|
|
4292
|
+
* IP address.
|
|
4293
|
+
*/
|
|
4294
|
+
ip: string;
|
|
4295
|
+
/**
|
|
4296
|
+
* API mode when event triggered.
|
|
4297
|
+
*/
|
|
4298
|
+
mode: string;
|
|
4299
|
+
/**
|
|
4300
|
+
* Location.
|
|
4301
|
+
*/
|
|
4302
|
+
country: string;
|
|
4303
|
+
/**
|
|
4304
|
+
* Log creation date in ISO 8601 format.
|
|
4305
|
+
*/
|
|
4306
|
+
time: string;
|
|
4307
|
+
/**
|
|
4308
|
+
* Project ID.
|
|
4309
|
+
*/
|
|
4310
|
+
projectId: string;
|
|
4311
|
+
/**
|
|
4312
|
+
* Team ID.
|
|
4313
|
+
*/
|
|
4314
|
+
teamId: string;
|
|
4315
|
+
/**
|
|
4316
|
+
* Hostname.
|
|
4317
|
+
*/
|
|
4318
|
+
hostname: string;
|
|
4319
|
+
/**
|
|
4320
|
+
* Operating system code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/os.json).
|
|
4321
|
+
*/
|
|
4322
|
+
osCode: string;
|
|
4323
|
+
/**
|
|
4324
|
+
* Operating system name.
|
|
4325
|
+
*/
|
|
4326
|
+
osName: string;
|
|
4327
|
+
/**
|
|
4328
|
+
* Operating system version.
|
|
4329
|
+
*/
|
|
4330
|
+
osVersion: string;
|
|
4331
|
+
/**
|
|
4332
|
+
* Client type.
|
|
4333
|
+
*/
|
|
4334
|
+
clientType: string;
|
|
4335
|
+
/**
|
|
4336
|
+
* Client code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/clients.json).
|
|
4337
|
+
*/
|
|
4338
|
+
clientCode: string;
|
|
4339
|
+
/**
|
|
4340
|
+
* Client name.
|
|
4341
|
+
*/
|
|
4342
|
+
clientName: string;
|
|
4343
|
+
/**
|
|
4344
|
+
* Client version.
|
|
4345
|
+
*/
|
|
4346
|
+
clientVersion: string;
|
|
4347
|
+
/**
|
|
4348
|
+
* Client engine name.
|
|
4349
|
+
*/
|
|
4350
|
+
clientEngine: string;
|
|
4351
|
+
/**
|
|
4352
|
+
* Client engine name.
|
|
4353
|
+
*/
|
|
4354
|
+
clientEngineVersion: string;
|
|
4355
|
+
/**
|
|
4356
|
+
* Device name.
|
|
4357
|
+
*/
|
|
4358
|
+
deviceName: string;
|
|
4359
|
+
/**
|
|
4360
|
+
* Device brand name.
|
|
4361
|
+
*/
|
|
4362
|
+
deviceBrand: string;
|
|
4363
|
+
/**
|
|
4364
|
+
* Device model name.
|
|
4365
|
+
*/
|
|
4366
|
+
deviceModel: string;
|
|
4367
|
+
/**
|
|
4368
|
+
* Country two-character ISO 3166-1 alpha code.
|
|
4369
|
+
*/
|
|
4370
|
+
countryCode: string;
|
|
4371
|
+
/**
|
|
4372
|
+
* Country name.
|
|
4373
|
+
*/
|
|
4374
|
+
countryName: string;
|
|
4375
|
+
};
|
|
4376
|
+
/**
|
|
4377
|
+
* Archive
|
|
4378
|
+
*/
|
|
4379
|
+
export type BackupArchive = {
|
|
4380
|
+
/**
|
|
4381
|
+
* Archive ID.
|
|
4382
|
+
*/
|
|
4383
|
+
$id: string;
|
|
4384
|
+
/**
|
|
4385
|
+
* Archive creation time in ISO 8601 format.
|
|
4386
|
+
*/
|
|
4387
|
+
$createdAt: string;
|
|
4388
|
+
/**
|
|
4389
|
+
* Archive update date in ISO 8601 format.
|
|
4390
|
+
*/
|
|
4391
|
+
$updatedAt: string;
|
|
4392
|
+
/**
|
|
4393
|
+
* Archive policy ID.
|
|
4394
|
+
*/
|
|
4395
|
+
policyId: string;
|
|
4396
|
+
/**
|
|
4397
|
+
* Archive size in bytes.
|
|
4398
|
+
*/
|
|
4399
|
+
size: number;
|
|
4400
|
+
/**
|
|
4401
|
+
* The status of the archive creation. Possible values: pending, processing, uploading, completed, failed.
|
|
4402
|
+
*/
|
|
4403
|
+
status: string;
|
|
4404
|
+
/**
|
|
4405
|
+
* The backup start time.
|
|
4406
|
+
*/
|
|
4407
|
+
startedAt: string;
|
|
4408
|
+
/**
|
|
4409
|
+
* Migration ID.
|
|
4410
|
+
*/
|
|
4411
|
+
migrationId: string;
|
|
4412
|
+
/**
|
|
4413
|
+
* The services that are backed up by this archive.
|
|
4414
|
+
*/
|
|
4415
|
+
services: string[];
|
|
4416
|
+
/**
|
|
4417
|
+
* The resources that are backed up by this archive.
|
|
4418
|
+
*/
|
|
4419
|
+
resources: string[];
|
|
4420
|
+
/**
|
|
4421
|
+
* The resource ID to backup. Set only if this archive should backup a single resource.
|
|
4422
|
+
*/
|
|
4423
|
+
resourceId?: string;
|
|
4424
|
+
/**
|
|
4425
|
+
* The resource type to backup. Set only if this archive should backup a single resource.
|
|
4426
|
+
*/
|
|
4427
|
+
resourceType?: string;
|
|
4428
|
+
};
|
|
4429
|
+
/**
|
|
4430
|
+
* backup
|
|
4431
|
+
*/
|
|
4432
|
+
export type BackupPolicy = {
|
|
4433
|
+
/**
|
|
4434
|
+
* Backup policy ID.
|
|
4435
|
+
*/
|
|
4436
|
+
$id: string;
|
|
4437
|
+
/**
|
|
4438
|
+
* Backup policy name.
|
|
4439
|
+
*/
|
|
4440
|
+
name: string;
|
|
4441
|
+
/**
|
|
4442
|
+
* Policy creation date in ISO 8601 format.
|
|
4443
|
+
*/
|
|
4444
|
+
$createdAt: string;
|
|
4445
|
+
/**
|
|
4446
|
+
* Policy update date in ISO 8601 format.
|
|
4447
|
+
*/
|
|
4448
|
+
$updatedAt: string;
|
|
4449
|
+
/**
|
|
4450
|
+
* The services that are backed up by this policy.
|
|
4451
|
+
*/
|
|
4452
|
+
services: string[];
|
|
4453
|
+
/**
|
|
4454
|
+
* The resources that are backed up by this policy.
|
|
4455
|
+
*/
|
|
4456
|
+
resources: string[];
|
|
4457
|
+
/**
|
|
4458
|
+
* The resource ID to backup. Set only if this policy should backup a single resource.
|
|
4459
|
+
*/
|
|
4460
|
+
resourceId?: string;
|
|
4461
|
+
/**
|
|
4462
|
+
* The resource type to backup. Set only if this policy should backup a single resource.
|
|
4463
|
+
*/
|
|
4464
|
+
resourceType?: string;
|
|
4465
|
+
/**
|
|
4466
|
+
* How many days to keep the backup before it will be automatically deleted.
|
|
4467
|
+
*/
|
|
4468
|
+
retention: number;
|
|
4469
|
+
/**
|
|
4470
|
+
* Policy backup schedule in CRON format.
|
|
4471
|
+
*/
|
|
4472
|
+
schedule: string;
|
|
4473
|
+
/**
|
|
4474
|
+
* Is this policy enabled.
|
|
4475
|
+
*/
|
|
4476
|
+
enabled: boolean;
|
|
4477
|
+
};
|
|
4478
|
+
/**
|
|
4479
|
+
* Restoration
|
|
4480
|
+
*/
|
|
4481
|
+
export type BackupRestoration = {
|
|
4482
|
+
/**
|
|
4483
|
+
* Restoration ID.
|
|
4484
|
+
*/
|
|
4485
|
+
$id: string;
|
|
4486
|
+
/**
|
|
4487
|
+
* Restoration creation time in ISO 8601 format.
|
|
4488
|
+
*/
|
|
4489
|
+
$createdAt: string;
|
|
4490
|
+
/**
|
|
4491
|
+
* Restoration update date in ISO 8601 format.
|
|
4492
|
+
*/
|
|
4493
|
+
$updatedAt: string;
|
|
4494
|
+
/**
|
|
4495
|
+
* Backup archive ID.
|
|
4496
|
+
*/
|
|
4497
|
+
archiveId: string;
|
|
4498
|
+
/**
|
|
4499
|
+
* Backup policy ID.
|
|
4500
|
+
*/
|
|
4501
|
+
policyId: string;
|
|
4502
|
+
/**
|
|
4503
|
+
* The status of the restoration. Possible values: pending, downloading, processing, completed, failed.
|
|
4504
|
+
*/
|
|
4505
|
+
status: string;
|
|
4506
|
+
/**
|
|
4507
|
+
* The backup start time.
|
|
4508
|
+
*/
|
|
4509
|
+
startedAt: string;
|
|
4510
|
+
/**
|
|
4511
|
+
* Migration ID.
|
|
4512
|
+
*/
|
|
4513
|
+
migrationId: string;
|
|
4514
|
+
/**
|
|
4515
|
+
* The services that are backed up by this policy.
|
|
4516
|
+
*/
|
|
4517
|
+
services: string[];
|
|
4518
|
+
/**
|
|
4519
|
+
* The resources that are backed up by this policy.
|
|
4520
|
+
*/
|
|
4521
|
+
resources: string[];
|
|
4522
|
+
/**
|
|
4523
|
+
* Optional data in key-value object.
|
|
4524
|
+
*/
|
|
4525
|
+
options: string;
|
|
4526
|
+
};
|
|
4527
|
+
/**
|
|
4528
|
+
* Activity event list
|
|
4529
|
+
*/
|
|
4530
|
+
export type ActivityEventList = {
|
|
4531
|
+
/**
|
|
4532
|
+
* Total number of events that matched your query.
|
|
4533
|
+
*/
|
|
4534
|
+
total: number;
|
|
4535
|
+
/**
|
|
4536
|
+
* List of events.
|
|
4537
|
+
*/
|
|
4538
|
+
events: ActivityEvent[];
|
|
4539
|
+
};
|
|
4540
|
+
/**
|
|
4541
|
+
* Backup archive list
|
|
4542
|
+
*/
|
|
4543
|
+
export type BackupArchiveList = {
|
|
4544
|
+
/**
|
|
4545
|
+
* Total number of archives that matched your query.
|
|
4546
|
+
*/
|
|
4547
|
+
total: number;
|
|
4548
|
+
/**
|
|
4549
|
+
* List of archives.
|
|
4550
|
+
*/
|
|
4551
|
+
archives: BackupArchive[];
|
|
4552
|
+
};
|
|
4553
|
+
/**
|
|
4554
|
+
* Backup policy list
|
|
4555
|
+
*/
|
|
4556
|
+
export type BackupPolicyList = {
|
|
4557
|
+
/**
|
|
4558
|
+
* Total number of policies that matched your query.
|
|
4559
|
+
*/
|
|
4560
|
+
total: number;
|
|
4561
|
+
/**
|
|
4562
|
+
* List of policies.
|
|
4563
|
+
*/
|
|
4564
|
+
policies: BackupPolicy[];
|
|
4565
|
+
};
|
|
4566
|
+
/**
|
|
4567
|
+
* Backup restoration list
|
|
4568
|
+
*/
|
|
4569
|
+
export type BackupRestorationList = {
|
|
4570
|
+
/**
|
|
4571
|
+
* Total number of restorations that matched your query.
|
|
4572
|
+
*/
|
|
4573
|
+
total: number;
|
|
4574
|
+
/**
|
|
4575
|
+
* List of restorations.
|
|
4576
|
+
*/
|
|
4577
|
+
restorations: BackupRestoration[];
|
|
4578
|
+
};
|
|
4187
4579
|
export {};
|
|
4188
4580
|
}
|
|
4189
4581
|
|
package/dist/query.d.mts
CHANGED
|
@@ -198,12 +198,34 @@ declare class Query {
|
|
|
198
198
|
static offset: (offset: number) => string;
|
|
199
199
|
/**
|
|
200
200
|
* Filter resources where attribute contains the specified value.
|
|
201
|
+
* For string attributes, checks if the string contains the substring.
|
|
201
202
|
*
|
|
203
|
+
* Note: For array attributes, use {@link containsAny} or {@link containsAll} instead.
|
|
202
204
|
* @param {string} attribute
|
|
203
205
|
* @param {string | string[]} value
|
|
204
206
|
* @returns {string}
|
|
205
207
|
*/
|
|
206
208
|
static contains: (attribute: string, value: string | any[]) => string;
|
|
209
|
+
/**
|
|
210
|
+
* Filter resources where attribute contains ANY of the specified values.
|
|
211
|
+
* For array and relationship attributes, matches documents where the attribute
|
|
212
|
+
* contains at least one of the given values.
|
|
213
|
+
*
|
|
214
|
+
* @param {string} attribute
|
|
215
|
+
* @param {any[]} value
|
|
216
|
+
* @returns {string}
|
|
217
|
+
*/
|
|
218
|
+
static containsAny: (attribute: string, value: any[]) => string;
|
|
219
|
+
/**
|
|
220
|
+
* Filter resources where attribute contains ALL of the specified values.
|
|
221
|
+
* For array and relationship attributes, matches documents where the attribute
|
|
222
|
+
* contains every one of the given values.
|
|
223
|
+
*
|
|
224
|
+
* @param {string} attribute
|
|
225
|
+
* @param {any[]} value
|
|
226
|
+
* @returns {string}
|
|
227
|
+
*/
|
|
228
|
+
static containsAll: (attribute: string, value: any[]) => string;
|
|
207
229
|
/**
|
|
208
230
|
* Filter resources where attribute does not contain the specified value.
|
|
209
231
|
*
|
package/dist/query.d.ts
CHANGED
|
@@ -198,12 +198,34 @@ declare class Query {
|
|
|
198
198
|
static offset: (offset: number) => string;
|
|
199
199
|
/**
|
|
200
200
|
* Filter resources where attribute contains the specified value.
|
|
201
|
+
* For string attributes, checks if the string contains the substring.
|
|
201
202
|
*
|
|
203
|
+
* Note: For array attributes, use {@link containsAny} or {@link containsAll} instead.
|
|
202
204
|
* @param {string} attribute
|
|
203
205
|
* @param {string | string[]} value
|
|
204
206
|
* @returns {string}
|
|
205
207
|
*/
|
|
206
208
|
static contains: (attribute: string, value: string | any[]) => string;
|
|
209
|
+
/**
|
|
210
|
+
* Filter resources where attribute contains ANY of the specified values.
|
|
211
|
+
* For array and relationship attributes, matches documents where the attribute
|
|
212
|
+
* contains at least one of the given values.
|
|
213
|
+
*
|
|
214
|
+
* @param {string} attribute
|
|
215
|
+
* @param {any[]} value
|
|
216
|
+
* @returns {string}
|
|
217
|
+
*/
|
|
218
|
+
static containsAny: (attribute: string, value: any[]) => string;
|
|
219
|
+
/**
|
|
220
|
+
* Filter resources where attribute contains ALL of the specified values.
|
|
221
|
+
* For array and relationship attributes, matches documents where the attribute
|
|
222
|
+
* contains every one of the given values.
|
|
223
|
+
*
|
|
224
|
+
* @param {string} attribute
|
|
225
|
+
* @param {any[]} value
|
|
226
|
+
* @returns {string}
|
|
227
|
+
*/
|
|
228
|
+
static containsAll: (attribute: string, value: any[]) => string;
|
|
207
229
|
/**
|
|
208
230
|
* Filter resources where attribute does not contain the specified value.
|
|
209
231
|
*
|
package/dist/query.js
CHANGED
|
@@ -214,12 +214,34 @@ _Query.limit = (limit) => new _Query("limit", void 0, limit).toString();
|
|
|
214
214
|
_Query.offset = (offset) => new _Query("offset", void 0, offset).toString();
|
|
215
215
|
/**
|
|
216
216
|
* Filter resources where attribute contains the specified value.
|
|
217
|
+
* For string attributes, checks if the string contains the substring.
|
|
217
218
|
*
|
|
219
|
+
* Note: For array attributes, use {@link containsAny} or {@link containsAll} instead.
|
|
218
220
|
* @param {string} attribute
|
|
219
221
|
* @param {string | string[]} value
|
|
220
222
|
* @returns {string}
|
|
221
223
|
*/
|
|
222
224
|
_Query.contains = (attribute, value) => new _Query("contains", attribute, value).toString();
|
|
225
|
+
/**
|
|
226
|
+
* Filter resources where attribute contains ANY of the specified values.
|
|
227
|
+
* For array and relationship attributes, matches documents where the attribute
|
|
228
|
+
* contains at least one of the given values.
|
|
229
|
+
*
|
|
230
|
+
* @param {string} attribute
|
|
231
|
+
* @param {any[]} value
|
|
232
|
+
* @returns {string}
|
|
233
|
+
*/
|
|
234
|
+
_Query.containsAny = (attribute, value) => new _Query("containsAny", attribute, value).toString();
|
|
235
|
+
/**
|
|
236
|
+
* Filter resources where attribute contains ALL of the specified values.
|
|
237
|
+
* For array and relationship attributes, matches documents where the attribute
|
|
238
|
+
* contains every one of the given values.
|
|
239
|
+
*
|
|
240
|
+
* @param {string} attribute
|
|
241
|
+
* @param {any[]} value
|
|
242
|
+
* @returns {string}
|
|
243
|
+
*/
|
|
244
|
+
_Query.containsAll = (attribute, value) => new _Query("containsAll", attribute, value).toString();
|
|
223
245
|
/**
|
|
224
246
|
* Filter resources where attribute does not contain the specified value.
|
|
225
247
|
*
|