@owbase/node 1.0.1 → 2.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/README.md +1 -1
- package/dist/client.js +3 -3
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +3 -3
- package/dist/client.mjs.map +1 -1
- package/dist/enums/databases-index-type.d.mts +2 -1
- package/dist/enums/databases-index-type.d.ts +2 -1
- package/dist/enums/databases-index-type.js +1 -0
- package/dist/enums/databases-index-type.js.map +1 -1
- package/dist/enums/databases-index-type.mjs +1 -0
- package/dist/enums/databases-index-type.mjs.map +1 -1
- package/dist/enums/project-policy-id.d.mts +1 -0
- package/dist/enums/project-policy-id.d.ts +1 -0
- package/dist/enums/project-policy-id.js +1 -0
- package/dist/enums/project-policy-id.js.map +1 -1
- package/dist/enums/project-policy-id.mjs +1 -0
- package/dist/enums/project-policy-id.mjs.map +1 -1
- package/dist/enums/tables-db-index-type.d.mts +2 -1
- package/dist/enums/tables-db-index-type.d.ts +2 -1
- package/dist/enums/tables-db-index-type.js +1 -0
- package/dist/enums/tables-db-index-type.js.map +1 -1
- package/dist/enums/tables-db-index-type.mjs +1 -0
- package/dist/enums/tables-db-index-type.mjs.map +1 -1
- package/dist/models.d.mts +236 -3
- package/dist/models.d.ts +236 -3
- package/dist/services/account.d.mts +32 -0
- package/dist/services/account.d.ts +32 -0
- package/dist/services/account.js +27 -0
- package/dist/services/account.js.map +1 -1
- package/dist/services/account.mjs +27 -0
- package/dist/services/account.mjs.map +1 -1
- package/dist/services/databases.d.mts +211 -47
- package/dist/services/databases.d.ts +211 -47
- package/dist/services/databases.js +301 -41
- package/dist/services/databases.js.map +1 -1
- package/dist/services/databases.mjs +301 -41
- package/dist/services/databases.mjs.map +1 -1
- package/dist/services/functions.d.mts +30 -12
- package/dist/services/functions.d.ts +30 -12
- package/dist/services/functions.js +34 -4
- package/dist/services/functions.js.map +1 -1
- package/dist/services/functions.mjs +34 -4
- package/dist/services/functions.mjs.map +1 -1
- package/dist/services/messaging.d.mts +56 -44
- package/dist/services/messaging.d.ts +56 -44
- package/dist/services/messaging.js +96 -76
- package/dist/services/messaging.js.map +1 -1
- package/dist/services/messaging.mjs +96 -76
- package/dist/services/messaging.mjs.map +1 -1
- package/dist/services/organization.d.mts +4 -1
- package/dist/services/organization.d.ts +4 -1
- package/dist/services/organization.js +6 -1
- package/dist/services/organization.js.map +1 -1
- package/dist/services/organization.mjs +6 -1
- package/dist/services/organization.mjs.map +1 -1
- package/dist/services/project.d.mts +115 -65
- package/dist/services/project.d.ts +115 -65
- package/dist/services/project.js +138 -77
- package/dist/services/project.js.map +1 -1
- package/dist/services/project.mjs +138 -77
- package/dist/services/project.mjs.map +1 -1
- package/dist/services/sites.d.mts +20 -8
- package/dist/services/sites.d.ts +20 -8
- package/dist/services/sites.js +24 -4
- package/dist/services/sites.js.map +1 -1
- package/dist/services/sites.mjs +24 -4
- package/dist/services/sites.mjs.map +1 -1
- package/dist/services/storage.d.mts +16 -4
- package/dist/services/storage.d.ts +16 -4
- package/dist/services/storage.js +22 -2
- package/dist/services/storage.js.map +1 -1
- package/dist/services/storage.mjs +22 -2
- package/dist/services/storage.mjs.map +1 -1
- package/dist/services/tables-db.d.mts +210 -47
- package/dist/services/tables-db.d.ts +210 -47
- package/dist/services/tables-db.js +296 -41
- package/dist/services/tables-db.js.map +1 -1
- package/dist/services/tables-db.mjs +296 -41
- package/dist/services/tables-db.mjs.map +1 -1
- package/dist/services/teams.d.mts +4 -1
- package/dist/services/teams.d.ts +4 -1
- package/dist/services/teams.js +6 -1
- package/dist/services/teams.js.map +1 -1
- package/dist/services/teams.mjs +6 -1
- package/dist/services/teams.mjs.map +1 -1
- package/dist/services/webhooks.d.mts +16 -10
- package/dist/services/webhooks.d.ts +16 -10
- package/dist/services/webhooks.js +12 -2
- package/dist/services/webhooks.js.map +1 -1
- package/dist/services/webhooks.mjs +12 -2
- package/dist/services/webhooks.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -39,7 +39,7 @@ declare class Storage {
|
|
|
39
39
|
/**
|
|
40
40
|
* Get a list of all the storage buckets. You can use the query params to filter your results.
|
|
41
41
|
*
|
|
42
|
-
* @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://docs.owbase.dev/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: enabled, name, fileSecurity, maximumFileSize, encryption, antivirus, transformations
|
|
42
|
+
* @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://docs.owbase.dev/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: enabled, name, fileSecurity, maximumFileSize, encryption, antivirus, transformations, stripMetadata
|
|
43
43
|
* @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
|
|
44
44
|
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
45
45
|
* @throws {OwbaseException}
|
|
@@ -53,7 +53,7 @@ declare class Storage {
|
|
|
53
53
|
/**
|
|
54
54
|
* Get a list of all the storage buckets. You can use the query params to filter your results.
|
|
55
55
|
*
|
|
56
|
-
* @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://docs.owbase.dev/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: enabled, name, fileSecurity, maximumFileSize, encryption, antivirus, transformations
|
|
56
|
+
* @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://docs.owbase.dev/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: enabled, name, fileSecurity, maximumFileSize, encryption, antivirus, transformations, stripMetadata
|
|
57
57
|
* @param {string} search - Search term to filter your list results. Max length: 256 chars.
|
|
58
58
|
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
59
59
|
* @throws {OwbaseException}
|
|
@@ -75,6 +75,8 @@ declare class Storage {
|
|
|
75
75
|
* @param {boolean} params.encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
|
|
76
76
|
* @param {boolean} params.antivirus - Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled
|
|
77
77
|
* @param {boolean} params.transformations - Are image transformations enabled?
|
|
78
|
+
* @param {string} params.description - Optional description for the bucket.
|
|
79
|
+
* @param {boolean} params.stripMetadata - Remove metadata such as location, device and capture time from uploaded images. The color profile and orientation are kept. For file size above 20MB metadata is not removed even if it's enabled.
|
|
78
80
|
* @throws {OwbaseException}
|
|
79
81
|
* @returns {Promise<Models.Bucket>}
|
|
80
82
|
*/
|
|
@@ -90,6 +92,8 @@ declare class Storage {
|
|
|
90
92
|
encryption?: boolean;
|
|
91
93
|
antivirus?: boolean;
|
|
92
94
|
transformations?: boolean;
|
|
95
|
+
description?: string;
|
|
96
|
+
stripMetadata?: boolean;
|
|
93
97
|
}): Promise<Models.Bucket>;
|
|
94
98
|
/**
|
|
95
99
|
* Create a new storage bucket.
|
|
@@ -105,11 +109,13 @@ declare class Storage {
|
|
|
105
109
|
* @param {boolean} encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
|
|
106
110
|
* @param {boolean} antivirus - Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled
|
|
107
111
|
* @param {boolean} transformations - Are image transformations enabled?
|
|
112
|
+
* @param {string} description - Optional description for the bucket.
|
|
113
|
+
* @param {boolean} stripMetadata - Remove metadata such as location, device and capture time from uploaded images. The color profile and orientation are kept. For file size above 20MB metadata is not removed even if it's enabled.
|
|
108
114
|
* @throws {OwbaseException}
|
|
109
115
|
* @returns {Promise<Models.Bucket>}
|
|
110
116
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
111
117
|
*/
|
|
112
|
-
createBucket(bucketId: string, name: string, permissions?: string[], fileSecurity?: boolean, enabled?: boolean, maximumFileSize?: number, allowedFileExtensions?: string[], compression?: Compression, encryption?: boolean, antivirus?: boolean, transformations?: boolean): Promise<Models.Bucket>;
|
|
118
|
+
createBucket(bucketId: string, name: string, permissions?: string[], fileSecurity?: boolean, enabled?: boolean, maximumFileSize?: number, allowedFileExtensions?: string[], compression?: Compression, encryption?: boolean, antivirus?: boolean, transformations?: boolean, description?: string, stripMetadata?: boolean): Promise<Models.Bucket>;
|
|
113
119
|
/**
|
|
114
120
|
* Get a storage bucket by its unique ID. This endpoint response returns a JSON object with the storage bucket metadata.
|
|
115
121
|
*
|
|
@@ -143,6 +149,8 @@ declare class Storage {
|
|
|
143
149
|
* @param {boolean} params.encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
|
|
144
150
|
* @param {boolean} params.antivirus - Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled
|
|
145
151
|
* @param {boolean} params.transformations - Are image transformations enabled?
|
|
152
|
+
* @param {string} params.description - Optional description for the bucket.
|
|
153
|
+
* @param {boolean} params.stripMetadata - Remove metadata such as location, device and capture time from uploaded images. The color profile and orientation are kept. For file size above 20MB metadata is not removed even if it's enabled. By default, the current setting is kept.
|
|
146
154
|
* @throws {OwbaseException}
|
|
147
155
|
* @returns {Promise<Models.Bucket>}
|
|
148
156
|
*/
|
|
@@ -158,6 +166,8 @@ declare class Storage {
|
|
|
158
166
|
encryption?: boolean;
|
|
159
167
|
antivirus?: boolean;
|
|
160
168
|
transformations?: boolean;
|
|
169
|
+
description?: string;
|
|
170
|
+
stripMetadata?: boolean;
|
|
161
171
|
}): Promise<Models.Bucket>;
|
|
162
172
|
/**
|
|
163
173
|
* Update a storage bucket by its unique ID.
|
|
@@ -173,11 +183,13 @@ declare class Storage {
|
|
|
173
183
|
* @param {boolean} encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
|
|
174
184
|
* @param {boolean} antivirus - Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled
|
|
175
185
|
* @param {boolean} transformations - Are image transformations enabled?
|
|
186
|
+
* @param {string} description - Optional description for the bucket.
|
|
187
|
+
* @param {boolean} stripMetadata - Remove metadata such as location, device and capture time from uploaded images. The color profile and orientation are kept. For file size above 20MB metadata is not removed even if it's enabled. By default, the current setting is kept.
|
|
176
188
|
* @throws {OwbaseException}
|
|
177
189
|
* @returns {Promise<Models.Bucket>}
|
|
178
190
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
179
191
|
*/
|
|
180
|
-
updateBucket(bucketId: string, name: string, permissions?: string[], fileSecurity?: boolean, enabled?: boolean, maximumFileSize?: number, allowedFileExtensions?: string[], compression?: Compression, encryption?: boolean, antivirus?: boolean, transformations?: boolean): Promise<Models.Bucket>;
|
|
192
|
+
updateBucket(bucketId: string, name: string, permissions?: string[], fileSecurity?: boolean, enabled?: boolean, maximumFileSize?: number, allowedFileExtensions?: string[], compression?: Compression, encryption?: boolean, antivirus?: boolean, transformations?: boolean, description?: string, stripMetadata?: boolean): Promise<Models.Bucket>;
|
|
181
193
|
/**
|
|
182
194
|
* Delete a storage bucket by its unique ID.
|
|
183
195
|
*
|
|
@@ -39,7 +39,7 @@ declare class Storage {
|
|
|
39
39
|
/**
|
|
40
40
|
* Get a list of all the storage buckets. You can use the query params to filter your results.
|
|
41
41
|
*
|
|
42
|
-
* @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://docs.owbase.dev/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: enabled, name, fileSecurity, maximumFileSize, encryption, antivirus, transformations
|
|
42
|
+
* @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://docs.owbase.dev/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: enabled, name, fileSecurity, maximumFileSize, encryption, antivirus, transformations, stripMetadata
|
|
43
43
|
* @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
|
|
44
44
|
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
45
45
|
* @throws {OwbaseException}
|
|
@@ -53,7 +53,7 @@ declare class Storage {
|
|
|
53
53
|
/**
|
|
54
54
|
* Get a list of all the storage buckets. You can use the query params to filter your results.
|
|
55
55
|
*
|
|
56
|
-
* @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://docs.owbase.dev/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: enabled, name, fileSecurity, maximumFileSize, encryption, antivirus, transformations
|
|
56
|
+
* @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://docs.owbase.dev/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: enabled, name, fileSecurity, maximumFileSize, encryption, antivirus, transformations, stripMetadata
|
|
57
57
|
* @param {string} search - Search term to filter your list results. Max length: 256 chars.
|
|
58
58
|
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
59
59
|
* @throws {OwbaseException}
|
|
@@ -75,6 +75,8 @@ declare class Storage {
|
|
|
75
75
|
* @param {boolean} params.encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
|
|
76
76
|
* @param {boolean} params.antivirus - Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled
|
|
77
77
|
* @param {boolean} params.transformations - Are image transformations enabled?
|
|
78
|
+
* @param {string} params.description - Optional description for the bucket.
|
|
79
|
+
* @param {boolean} params.stripMetadata - Remove metadata such as location, device and capture time from uploaded images. The color profile and orientation are kept. For file size above 20MB metadata is not removed even if it's enabled.
|
|
78
80
|
* @throws {OwbaseException}
|
|
79
81
|
* @returns {Promise<Models.Bucket>}
|
|
80
82
|
*/
|
|
@@ -90,6 +92,8 @@ declare class Storage {
|
|
|
90
92
|
encryption?: boolean;
|
|
91
93
|
antivirus?: boolean;
|
|
92
94
|
transformations?: boolean;
|
|
95
|
+
description?: string;
|
|
96
|
+
stripMetadata?: boolean;
|
|
93
97
|
}): Promise<Models.Bucket>;
|
|
94
98
|
/**
|
|
95
99
|
* Create a new storage bucket.
|
|
@@ -105,11 +109,13 @@ declare class Storage {
|
|
|
105
109
|
* @param {boolean} encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
|
|
106
110
|
* @param {boolean} antivirus - Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled
|
|
107
111
|
* @param {boolean} transformations - Are image transformations enabled?
|
|
112
|
+
* @param {string} description - Optional description for the bucket.
|
|
113
|
+
* @param {boolean} stripMetadata - Remove metadata such as location, device and capture time from uploaded images. The color profile and orientation are kept. For file size above 20MB metadata is not removed even if it's enabled.
|
|
108
114
|
* @throws {OwbaseException}
|
|
109
115
|
* @returns {Promise<Models.Bucket>}
|
|
110
116
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
111
117
|
*/
|
|
112
|
-
createBucket(bucketId: string, name: string, permissions?: string[], fileSecurity?: boolean, enabled?: boolean, maximumFileSize?: number, allowedFileExtensions?: string[], compression?: Compression, encryption?: boolean, antivirus?: boolean, transformations?: boolean): Promise<Models.Bucket>;
|
|
118
|
+
createBucket(bucketId: string, name: string, permissions?: string[], fileSecurity?: boolean, enabled?: boolean, maximumFileSize?: number, allowedFileExtensions?: string[], compression?: Compression, encryption?: boolean, antivirus?: boolean, transformations?: boolean, description?: string, stripMetadata?: boolean): Promise<Models.Bucket>;
|
|
113
119
|
/**
|
|
114
120
|
* Get a storage bucket by its unique ID. This endpoint response returns a JSON object with the storage bucket metadata.
|
|
115
121
|
*
|
|
@@ -143,6 +149,8 @@ declare class Storage {
|
|
|
143
149
|
* @param {boolean} params.encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
|
|
144
150
|
* @param {boolean} params.antivirus - Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled
|
|
145
151
|
* @param {boolean} params.transformations - Are image transformations enabled?
|
|
152
|
+
* @param {string} params.description - Optional description for the bucket.
|
|
153
|
+
* @param {boolean} params.stripMetadata - Remove metadata such as location, device and capture time from uploaded images. The color profile and orientation are kept. For file size above 20MB metadata is not removed even if it's enabled. By default, the current setting is kept.
|
|
146
154
|
* @throws {OwbaseException}
|
|
147
155
|
* @returns {Promise<Models.Bucket>}
|
|
148
156
|
*/
|
|
@@ -158,6 +166,8 @@ declare class Storage {
|
|
|
158
166
|
encryption?: boolean;
|
|
159
167
|
antivirus?: boolean;
|
|
160
168
|
transformations?: boolean;
|
|
169
|
+
description?: string;
|
|
170
|
+
stripMetadata?: boolean;
|
|
161
171
|
}): Promise<Models.Bucket>;
|
|
162
172
|
/**
|
|
163
173
|
* Update a storage bucket by its unique ID.
|
|
@@ -173,11 +183,13 @@ declare class Storage {
|
|
|
173
183
|
* @param {boolean} encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
|
|
174
184
|
* @param {boolean} antivirus - Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled
|
|
175
185
|
* @param {boolean} transformations - Are image transformations enabled?
|
|
186
|
+
* @param {string} description - Optional description for the bucket.
|
|
187
|
+
* @param {boolean} stripMetadata - Remove metadata such as location, device and capture time from uploaded images. The color profile and orientation are kept. For file size above 20MB metadata is not removed even if it's enabled. By default, the current setting is kept.
|
|
176
188
|
* @throws {OwbaseException}
|
|
177
189
|
* @returns {Promise<Models.Bucket>}
|
|
178
190
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
179
191
|
*/
|
|
180
|
-
updateBucket(bucketId: string, name: string, permissions?: string[], fileSecurity?: boolean, enabled?: boolean, maximumFileSize?: number, allowedFileExtensions?: string[], compression?: Compression, encryption?: boolean, antivirus?: boolean, transformations?: boolean): Promise<Models.Bucket>;
|
|
192
|
+
updateBucket(bucketId: string, name: string, permissions?: string[], fileSecurity?: boolean, enabled?: boolean, maximumFileSize?: number, allowedFileExtensions?: string[], compression?: Compression, encryption?: boolean, antivirus?: boolean, transformations?: boolean, description?: string, stripMetadata?: boolean): Promise<Models.Bucket>;
|
|
181
193
|
/**
|
|
182
194
|
* Delete a storage bucket by its unique ID.
|
|
183
195
|
*
|
package/dist/services/storage.js
CHANGED
|
@@ -54,7 +54,9 @@ class Storage {
|
|
|
54
54
|
compression: rest[6],
|
|
55
55
|
encryption: rest[7],
|
|
56
56
|
antivirus: rest[8],
|
|
57
|
-
transformations: rest[9]
|
|
57
|
+
transformations: rest[9],
|
|
58
|
+
description: rest[10],
|
|
59
|
+
stripMetadata: rest[11]
|
|
58
60
|
};
|
|
59
61
|
}
|
|
60
62
|
const bucketId = params.bucketId;
|
|
@@ -68,6 +70,8 @@ class Storage {
|
|
|
68
70
|
const encryption = params.encryption;
|
|
69
71
|
const antivirus = params.antivirus;
|
|
70
72
|
const transformations = params.transformations;
|
|
73
|
+
const description = params.description;
|
|
74
|
+
const stripMetadata = params.stripMetadata;
|
|
71
75
|
if (typeof bucketId === "undefined") {
|
|
72
76
|
throw new client.OwbaseException('Missing required parameter: "bucketId"');
|
|
73
77
|
}
|
|
@@ -109,6 +113,12 @@ class Storage {
|
|
|
109
113
|
if (typeof transformations !== "undefined") {
|
|
110
114
|
apiPayload["transformations"] = transformations;
|
|
111
115
|
}
|
|
116
|
+
if (typeof description !== "undefined") {
|
|
117
|
+
apiPayload["description"] = description;
|
|
118
|
+
}
|
|
119
|
+
if (typeof stripMetadata !== "undefined") {
|
|
120
|
+
apiPayload["stripMetadata"] = stripMetadata;
|
|
121
|
+
}
|
|
112
122
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
113
123
|
const apiHeaders = {
|
|
114
124
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -158,7 +168,9 @@ class Storage {
|
|
|
158
168
|
compression: rest[6],
|
|
159
169
|
encryption: rest[7],
|
|
160
170
|
antivirus: rest[8],
|
|
161
|
-
transformations: rest[9]
|
|
171
|
+
transformations: rest[9],
|
|
172
|
+
description: rest[10],
|
|
173
|
+
stripMetadata: rest[11]
|
|
162
174
|
};
|
|
163
175
|
}
|
|
164
176
|
const bucketId = params.bucketId;
|
|
@@ -172,6 +184,8 @@ class Storage {
|
|
|
172
184
|
const encryption = params.encryption;
|
|
173
185
|
const antivirus = params.antivirus;
|
|
174
186
|
const transformations = params.transformations;
|
|
187
|
+
const description = params.description;
|
|
188
|
+
const stripMetadata = params.stripMetadata;
|
|
175
189
|
if (typeof bucketId === "undefined" || bucketId === "") {
|
|
176
190
|
throw new client.OwbaseException('Missing required parameter: "bucketId"');
|
|
177
191
|
}
|
|
@@ -213,6 +227,12 @@ class Storage {
|
|
|
213
227
|
if (typeof transformations !== "undefined") {
|
|
214
228
|
apiPayload["transformations"] = transformations;
|
|
215
229
|
}
|
|
230
|
+
if (typeof description !== "undefined") {
|
|
231
|
+
apiPayload["description"] = description;
|
|
232
|
+
}
|
|
233
|
+
if (typeof stripMetadata !== "undefined") {
|
|
234
|
+
apiPayload["stripMetadata"] = stripMetadata;
|
|
235
|
+
}
|
|
216
236
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
217
237
|
const apiHeaders = {
|
|
218
238
|
"X-Owbase-Project": this.client.config.project,
|