@appwrite.io/console 18.3.0-rc.2 → 18.4.0-rc.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/README.md CHANGED
@@ -33,7 +33,7 @@ import { Client, Account } from '@appwrite.io/console';
33
33
  To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:
34
34
 
35
35
  ```html
36
- <script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@18.3.0-rc.2"></script>
36
+ <script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@18.4.0-rc.1"></script>
37
37
  ```
38
38
 
39
39
  ## Getting Started
package/dist/cjs/sdk.js CHANGED
@@ -669,7 +669,7 @@ class Client {
669
669
  'x-sdk-name': 'Console',
670
670
  'x-sdk-platform': 'console',
671
671
  'x-sdk-language': 'web',
672
- 'x-sdk-version': '18.3.0-rc.2',
672
+ 'x-sdk-version': '18.4.0-rc.1',
673
673
  'X-Appwrite-Response-Format': '2.3.0',
674
674
  };
675
675
  this.realtime = {
@@ -15428,6 +15428,7 @@ class Functions {
15428
15428
  buildSpecification: rest[18],
15429
15429
  runtimeSpecification: rest[19],
15430
15430
  deploymentRetention: rest[20],
15431
+ interval: rest[21],
15431
15432
  };
15432
15433
  }
15433
15434
  const functionId = params.functionId;
@@ -15452,6 +15453,7 @@ class Functions {
15452
15453
  const buildSpecification = params.buildSpecification;
15453
15454
  const runtimeSpecification = params.runtimeSpecification;
15454
15455
  const deploymentRetention = params.deploymentRetention;
15456
+ const interval = params.interval;
15455
15457
  if (typeof functionId === 'undefined') {
15456
15458
  throw new AppwriteException('Missing required parameter: "functionId"');
15457
15459
  }
@@ -15529,6 +15531,9 @@ class Functions {
15529
15531
  if (typeof deploymentRetention !== 'undefined') {
15530
15532
  apiPayload['deploymentRetention'] = deploymentRetention;
15531
15533
  }
15534
+ if (typeof interval !== 'undefined') {
15535
+ apiPayload['interval'] = interval;
15536
+ }
15532
15537
  const uri = new URL(this.client.config.endpoint + apiPath);
15533
15538
  const apiHeaders = {
15534
15539
  'X-Appwrite-Project': this.client.config.project,
@@ -15726,6 +15731,7 @@ class Functions {
15726
15731
  buildSpecification: rest[18],
15727
15732
  runtimeSpecification: rest[19],
15728
15733
  deploymentRetention: rest[20],
15734
+ interval: rest[21],
15729
15735
  };
15730
15736
  }
15731
15737
  const functionId = params.functionId;
@@ -15750,6 +15756,7 @@ class Functions {
15750
15756
  const buildSpecification = params.buildSpecification;
15751
15757
  const runtimeSpecification = params.runtimeSpecification;
15752
15758
  const deploymentRetention = params.deploymentRetention;
15759
+ const interval = params.interval;
15753
15760
  if (typeof functionId === 'undefined' || functionId === '') {
15754
15761
  throw new AppwriteException('Missing required parameter: "functionId"');
15755
15762
  }
@@ -15821,6 +15828,9 @@ class Functions {
15821
15828
  if (typeof deploymentRetention !== 'undefined') {
15822
15829
  apiPayload['deploymentRetention'] = deploymentRetention;
15823
15830
  }
15831
+ if (typeof interval !== 'undefined') {
15832
+ apiPayload['interval'] = interval;
15833
+ }
15824
15834
  const uri = new URL(this.client.config.endpoint + apiPath);
15825
15835
  const apiHeaders = {
15826
15836
  'X-Appwrite-Project': this.client.config.project,
@@ -33601,6 +33611,7 @@ class Projects {
33601
33611
  schedule: rest[2],
33602
33612
  active: rest[3],
33603
33613
  data: rest[4],
33614
+ interval: rest[5],
33604
33615
  };
33605
33616
  }
33606
33617
  const projectId = params.projectId;
@@ -33609,6 +33620,7 @@ class Projects {
33609
33620
  const schedule = params.schedule;
33610
33621
  const active = params.active;
33611
33622
  const data = params.data;
33623
+ const interval = params.interval;
33612
33624
  if (typeof projectId === 'undefined' || projectId === '') {
33613
33625
  throw new AppwriteException('Missing required parameter: "projectId"');
33614
33626
  }
@@ -33618,9 +33630,6 @@ class Projects {
33618
33630
  if (typeof resourceId === 'undefined') {
33619
33631
  throw new AppwriteException('Missing required parameter: "resourceId"');
33620
33632
  }
33621
- if (typeof schedule === 'undefined') {
33622
- throw new AppwriteException('Missing required parameter: "schedule"');
33623
- }
33624
33633
  const apiPath = '/projects/{projectId}/schedules'.replace('{projectId}', encodeURIComponent(String(projectId)));
33625
33634
  const apiPayload = {};
33626
33635
  if (typeof resourceType !== 'undefined') {
@@ -33638,6 +33647,9 @@ class Projects {
33638
33647
  if (typeof data !== 'undefined') {
33639
33648
  apiPayload['data'] = data;
33640
33649
  }
33650
+ if (typeof interval !== 'undefined') {
33651
+ apiPayload['interval'] = interval;
33652
+ }
33641
33653
  const uri = new URL(this.client.config.endpoint + apiPath);
33642
33654
  const apiHeaders = {
33643
33655
  'X-Appwrite-Project': this.client.config.project,