node-appwrite 22.1.2 → 22.1.3

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.
Files changed (39) hide show
  1. package/dist/client.js +2 -2
  2. package/dist/client.js.map +1 -1
  3. package/dist/client.mjs +2 -2
  4. package/dist/client.mjs.map +1 -1
  5. package/dist/models.d.mts +2 -2
  6. package/dist/models.d.ts +2 -2
  7. package/dist/services/databases.d.mts +40 -37
  8. package/dist/services/databases.d.ts +40 -37
  9. package/dist/services/databases.js +52 -47
  10. package/dist/services/databases.js.map +1 -1
  11. package/dist/services/databases.mjs +52 -47
  12. package/dist/services/databases.mjs.map +1 -1
  13. package/dist/services/health.d.mts +24 -0
  14. package/dist/services/health.d.ts +24 -0
  15. package/dist/services/health.js +29 -0
  16. package/dist/services/health.js.map +1 -1
  17. package/dist/services/health.mjs +29 -0
  18. package/dist/services/health.mjs.map +1 -1
  19. package/dist/services/messaging.d.mts +2 -2
  20. package/dist/services/messaging.d.ts +2 -2
  21. package/dist/services/messaging.js.map +1 -1
  22. package/dist/services/messaging.mjs.map +1 -1
  23. package/dist/services/sites.d.mts +4 -4
  24. package/dist/services/sites.d.ts +4 -4
  25. package/dist/services/sites.js +5 -8
  26. package/dist/services/sites.js.map +1 -1
  27. package/dist/services/sites.mjs +5 -8
  28. package/dist/services/sites.mjs.map +1 -1
  29. package/dist/services/tables-db.d.mts +4 -1
  30. package/dist/services/tables-db.d.ts +4 -1
  31. package/dist/services/tables-db.js +6 -1
  32. package/dist/services/tables-db.js.map +1 -1
  33. package/dist/services/tables-db.mjs +6 -1
  34. package/dist/services/tables-db.mjs.map +1 -1
  35. package/dist/services/teams.d.mts +4 -4
  36. package/dist/services/teams.d.ts +4 -4
  37. package/dist/services/teams.js.map +1 -1
  38. package/dist/services/teams.mjs.map +1 -1
  39. package/package.json +1 -1
@@ -293,20 +293,20 @@ declare class Sites {
293
293
  *
294
294
  * @param {string} params.siteId - Site ID.
295
295
  * @param {File} params.code - Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.
296
- * @param {boolean} params.activate - Automatically activate the deployment when it is finished building.
297
296
  * @param {string} params.installCommand - Install Commands.
298
297
  * @param {string} params.buildCommand - Build Commands.
299
298
  * @param {string} params.outputDirectory - Output Directory.
299
+ * @param {boolean} params.activate - Automatically activate the deployment when it is finished building.
300
300
  * @throws {AppwriteException}
301
301
  * @returns {Promise<Models.Deployment>}
302
302
  */
303
303
  createDeployment(params: {
304
304
  siteId: string;
305
305
  code: File;
306
- activate: boolean;
307
306
  installCommand?: string;
308
307
  buildCommand?: string;
309
308
  outputDirectory?: string;
309
+ activate?: boolean;
310
310
  onProgress?: (progress: UploadProgress) => void;
311
311
  }): Promise<Models.Deployment>;
312
312
  /**
@@ -314,15 +314,15 @@ declare class Sites {
314
314
  *
315
315
  * @param {string} siteId - Site ID.
316
316
  * @param {File} code - Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.
317
- * @param {boolean} activate - Automatically activate the deployment when it is finished building.
318
317
  * @param {string} installCommand - Install Commands.
319
318
  * @param {string} buildCommand - Build Commands.
320
319
  * @param {string} outputDirectory - Output Directory.
320
+ * @param {boolean} activate - Automatically activate the deployment when it is finished building.
321
321
  * @throws {AppwriteException}
322
322
  * @returns {Promise<Models.Deployment>}
323
323
  * @deprecated Use the object parameter style method for a better developer experience.
324
324
  */
325
- createDeployment(siteId: string, code: File, activate: boolean, installCommand?: string, buildCommand?: string, outputDirectory?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
325
+ createDeployment(siteId: string, code: File, installCommand?: string, buildCommand?: string, outputDirectory?: string, activate?: boolean, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
326
326
  /**
327
327
  * Create a new build for an existing site deployment. This endpoint allows you to rebuild a deployment with the updated site configuration, including its commands and output directory if they have been modified. The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.
328
328
  *
@@ -293,20 +293,20 @@ declare class Sites {
293
293
  *
294
294
  * @param {string} params.siteId - Site ID.
295
295
  * @param {File} params.code - Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.
296
- * @param {boolean} params.activate - Automatically activate the deployment when it is finished building.
297
296
  * @param {string} params.installCommand - Install Commands.
298
297
  * @param {string} params.buildCommand - Build Commands.
299
298
  * @param {string} params.outputDirectory - Output Directory.
299
+ * @param {boolean} params.activate - Automatically activate the deployment when it is finished building.
300
300
  * @throws {AppwriteException}
301
301
  * @returns {Promise<Models.Deployment>}
302
302
  */
303
303
  createDeployment(params: {
304
304
  siteId: string;
305
305
  code: File;
306
- activate: boolean;
307
306
  installCommand?: string;
308
307
  buildCommand?: string;
309
308
  outputDirectory?: string;
309
+ activate?: boolean;
310
310
  onProgress?: (progress: UploadProgress) => void;
311
311
  }): Promise<Models.Deployment>;
312
312
  /**
@@ -314,15 +314,15 @@ declare class Sites {
314
314
  *
315
315
  * @param {string} siteId - Site ID.
316
316
  * @param {File} code - Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.
317
- * @param {boolean} activate - Automatically activate the deployment when it is finished building.
318
317
  * @param {string} installCommand - Install Commands.
319
318
  * @param {string} buildCommand - Build Commands.
320
319
  * @param {string} outputDirectory - Output Directory.
320
+ * @param {boolean} activate - Automatically activate the deployment when it is finished building.
321
321
  * @throws {AppwriteException}
322
322
  * @returns {Promise<Models.Deployment>}
323
323
  * @deprecated Use the object parameter style method for a better developer experience.
324
324
  */
325
- createDeployment(siteId: string, code: File, activate: boolean, installCommand?: string, buildCommand?: string, outputDirectory?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
325
+ createDeployment(siteId: string, code: File, installCommand?: string, buildCommand?: string, outputDirectory?: string, activate?: boolean, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
326
326
  /**
327
327
  * Create a new build for an existing site deployment. This endpoint allows you to rebuild a deployment with the updated site configuration, including its commands and output directory if they have been modified. The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.
328
328
  *
@@ -449,28 +449,25 @@ class Sites {
449
449
  params = {
450
450
  siteId: paramsOrFirst,
451
451
  code: rest[0],
452
- activate: rest[1],
453
- installCommand: rest[2],
454
- buildCommand: rest[3],
455
- outputDirectory: rest[4]
452
+ installCommand: rest[1],
453
+ buildCommand: rest[2],
454
+ outputDirectory: rest[3],
455
+ activate: rest[4]
456
456
  };
457
457
  onProgress = rest[5];
458
458
  }
459
459
  const siteId = params.siteId;
460
460
  const code = params.code;
461
- const activate = params.activate;
462
461
  const installCommand = params.installCommand;
463
462
  const buildCommand = params.buildCommand;
464
463
  const outputDirectory = params.outputDirectory;
464
+ const activate = params.activate;
465
465
  if (typeof siteId === "undefined") {
466
466
  throw new client.AppwriteException('Missing required parameter: "siteId"');
467
467
  }
468
468
  if (typeof code === "undefined") {
469
469
  throw new client.AppwriteException('Missing required parameter: "code"');
470
470
  }
471
- if (typeof activate === "undefined") {
472
- throw new client.AppwriteException('Missing required parameter: "activate"');
473
- }
474
471
  const apiPath = "/sites/{siteId}/deployments".replace("{siteId}", siteId);
475
472
  const payload = {};
476
473
  if (typeof installCommand !== "undefined") {