@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 +1 -1
- package/dist/cjs/sdk.js +16 -4
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +16 -4
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +16 -4
- package/package.json +1 -1
- package/types/models.d.ts +12 -0
- package/types/services/functions.d.ts +12 -6
- package/types/services/projects.d.ts +7 -4
package/dist/esm/sdk.js
CHANGED
|
@@ -667,7 +667,7 @@ class Client {
|
|
|
667
667
|
'x-sdk-name': 'Console',
|
|
668
668
|
'x-sdk-platform': 'console',
|
|
669
669
|
'x-sdk-language': 'web',
|
|
670
|
-
'x-sdk-version': '18.
|
|
670
|
+
'x-sdk-version': '18.4.0-rc.1',
|
|
671
671
|
'X-Appwrite-Response-Format': '2.3.0',
|
|
672
672
|
};
|
|
673
673
|
this.realtime = {
|
|
@@ -15426,6 +15426,7 @@ class Functions {
|
|
|
15426
15426
|
buildSpecification: rest[18],
|
|
15427
15427
|
runtimeSpecification: rest[19],
|
|
15428
15428
|
deploymentRetention: rest[20],
|
|
15429
|
+
interval: rest[21],
|
|
15429
15430
|
};
|
|
15430
15431
|
}
|
|
15431
15432
|
const functionId = params.functionId;
|
|
@@ -15450,6 +15451,7 @@ class Functions {
|
|
|
15450
15451
|
const buildSpecification = params.buildSpecification;
|
|
15451
15452
|
const runtimeSpecification = params.runtimeSpecification;
|
|
15452
15453
|
const deploymentRetention = params.deploymentRetention;
|
|
15454
|
+
const interval = params.interval;
|
|
15453
15455
|
if (typeof functionId === 'undefined') {
|
|
15454
15456
|
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
15455
15457
|
}
|
|
@@ -15527,6 +15529,9 @@ class Functions {
|
|
|
15527
15529
|
if (typeof deploymentRetention !== 'undefined') {
|
|
15528
15530
|
apiPayload['deploymentRetention'] = deploymentRetention;
|
|
15529
15531
|
}
|
|
15532
|
+
if (typeof interval !== 'undefined') {
|
|
15533
|
+
apiPayload['interval'] = interval;
|
|
15534
|
+
}
|
|
15530
15535
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
15531
15536
|
const apiHeaders = {
|
|
15532
15537
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -15724,6 +15729,7 @@ class Functions {
|
|
|
15724
15729
|
buildSpecification: rest[18],
|
|
15725
15730
|
runtimeSpecification: rest[19],
|
|
15726
15731
|
deploymentRetention: rest[20],
|
|
15732
|
+
interval: rest[21],
|
|
15727
15733
|
};
|
|
15728
15734
|
}
|
|
15729
15735
|
const functionId = params.functionId;
|
|
@@ -15748,6 +15754,7 @@ class Functions {
|
|
|
15748
15754
|
const buildSpecification = params.buildSpecification;
|
|
15749
15755
|
const runtimeSpecification = params.runtimeSpecification;
|
|
15750
15756
|
const deploymentRetention = params.deploymentRetention;
|
|
15757
|
+
const interval = params.interval;
|
|
15751
15758
|
if (typeof functionId === 'undefined' || functionId === '') {
|
|
15752
15759
|
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
15753
15760
|
}
|
|
@@ -15819,6 +15826,9 @@ class Functions {
|
|
|
15819
15826
|
if (typeof deploymentRetention !== 'undefined') {
|
|
15820
15827
|
apiPayload['deploymentRetention'] = deploymentRetention;
|
|
15821
15828
|
}
|
|
15829
|
+
if (typeof interval !== 'undefined') {
|
|
15830
|
+
apiPayload['interval'] = interval;
|
|
15831
|
+
}
|
|
15822
15832
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
15823
15833
|
const apiHeaders = {
|
|
15824
15834
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -33599,6 +33609,7 @@ class Projects {
|
|
|
33599
33609
|
schedule: rest[2],
|
|
33600
33610
|
active: rest[3],
|
|
33601
33611
|
data: rest[4],
|
|
33612
|
+
interval: rest[5],
|
|
33602
33613
|
};
|
|
33603
33614
|
}
|
|
33604
33615
|
const projectId = params.projectId;
|
|
@@ -33607,6 +33618,7 @@ class Projects {
|
|
|
33607
33618
|
const schedule = params.schedule;
|
|
33608
33619
|
const active = params.active;
|
|
33609
33620
|
const data = params.data;
|
|
33621
|
+
const interval = params.interval;
|
|
33610
33622
|
if (typeof projectId === 'undefined' || projectId === '') {
|
|
33611
33623
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
33612
33624
|
}
|
|
@@ -33616,9 +33628,6 @@ class Projects {
|
|
|
33616
33628
|
if (typeof resourceId === 'undefined') {
|
|
33617
33629
|
throw new AppwriteException('Missing required parameter: "resourceId"');
|
|
33618
33630
|
}
|
|
33619
|
-
if (typeof schedule === 'undefined') {
|
|
33620
|
-
throw new AppwriteException('Missing required parameter: "schedule"');
|
|
33621
|
-
}
|
|
33622
33631
|
const apiPath = '/projects/{projectId}/schedules'.replace('{projectId}', encodeURIComponent(String(projectId)));
|
|
33623
33632
|
const apiPayload = {};
|
|
33624
33633
|
if (typeof resourceType !== 'undefined') {
|
|
@@ -33636,6 +33645,9 @@ class Projects {
|
|
|
33636
33645
|
if (typeof data !== 'undefined') {
|
|
33637
33646
|
apiPayload['data'] = data;
|
|
33638
33647
|
}
|
|
33648
|
+
if (typeof interval !== 'undefined') {
|
|
33649
|
+
apiPayload['interval'] = interval;
|
|
33650
|
+
}
|
|
33639
33651
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
33640
33652
|
const apiHeaders = {
|
|
33641
33653
|
'X-Appwrite-Project': this.client.config.project,
|