webflow-api 2.1.1 → 2.1.2
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/api/resources/accessGroups/client/Client.js +1 -1
- package/api/resources/assets/client/Client.js +8 -8
- package/api/resources/collections/client/Client.js +5 -5
- package/api/resources/collections/resources/fields/client/Client.js +2 -2
- package/api/resources/collections/resources/items/client/Client.d.ts +23 -2
- package/api/resources/collections/resources/items/client/Client.js +89 -11
- package/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +34 -0
- package/api/resources/collections/resources/items/client/requests/BulkCollectionItem.js +5 -0
- package/api/resources/collections/resources/items/client/requests/index.d.ts +1 -0
- package/api/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +9 -0
- package/api/resources/collections/resources/items/types/BulkCollectionItemFieldData.js +5 -0
- package/api/resources/collections/resources/items/types/index.d.ts +1 -0
- package/api/resources/collections/resources/items/types/index.js +1 -0
- package/api/resources/ecommerce/client/Client.js +1 -1
- package/api/resources/forms/client/Client.js +5 -5
- package/api/resources/inventory/client/Client.js +2 -2
- package/api/resources/orders/client/Client.js +6 -6
- package/api/resources/pages/client/Client.js +5 -5
- package/api/resources/pages/resources/scripts/client/Client.js +3 -3
- package/api/resources/products/client/Client.js +6 -6
- package/api/resources/scripts/client/Client.js +3 -3
- package/api/resources/sites/client/Client.js +4 -4
- package/api/resources/sites/resources/activityLogs/client/Client.js +1 -1
- package/api/resources/sites/resources/scripts/client/Client.js +4 -4
- package/api/resources/token/client/Client.js +2 -2
- package/api/resources/users/client/Client.js +5 -5
- package/api/resources/webhooks/client/Client.js +4 -4
- package/dist/api/resources/accessGroups/client/Client.js +1 -1
- package/dist/api/resources/assets/client/Client.js +8 -8
- package/dist/api/resources/collections/client/Client.js +5 -5
- package/dist/api/resources/collections/resources/fields/client/Client.js +2 -2
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +23 -2
- package/dist/api/resources/collections/resources/items/client/Client.js +89 -11
- package/dist/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +34 -0
- package/dist/api/resources/collections/resources/items/client/requests/BulkCollectionItem.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/BulkCollectionItemFieldData.js +5 -0
- package/dist/api/resources/collections/resources/items/types/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/items/types/index.js +1 -0
- package/dist/api/resources/ecommerce/client/Client.js +1 -1
- package/dist/api/resources/forms/client/Client.js +5 -5
- package/dist/api/resources/inventory/client/Client.js +2 -2
- package/dist/api/resources/orders/client/Client.js +6 -6
- package/dist/api/resources/pages/client/Client.js +5 -5
- package/dist/api/resources/pages/resources/scripts/client/Client.js +3 -3
- package/dist/api/resources/products/client/Client.js +6 -6
- package/dist/api/resources/scripts/client/Client.js +3 -3
- package/dist/api/resources/sites/client/Client.js +4 -4
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +1 -1
- package/dist/api/resources/sites/resources/scripts/client/Client.js +4 -4
- package/dist/api/resources/token/client/Client.js +2 -2
- package/dist/api/resources/users/client/Client.js +5 -5
- package/dist/api/resources/webhooks/client/Client.js +4 -4
- package/dist/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +19 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.js +51 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/index.js +3 -1
- package/dist/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.js +34 -0
- package/dist/serialization/resources/collections/resources/items/types/index.d.ts +1 -0
- package/dist/serialization/resources/collections/resources/items/types/index.js +1 -0
- package/package.json +1 -1
- package/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +19 -0
- package/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.js +51 -0
- package/serialization/resources/collections/resources/items/client/requests/index.d.ts +1 -0
- package/serialization/resources/collections/resources/items/client/requests/index.js +3 -1
- package/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.js +34 -0
- package/serialization/resources/collections/resources/items/types/index.d.ts +1 -0
- package/serialization/resources/collections/resources/items/types/index.js +1 -0
|
@@ -82,7 +82,7 @@ class AccessGroups {
|
|
|
82
82
|
Authorization: yield this._getAuthorizationHeader(),
|
|
83
83
|
"X-Fern-Language": "JavaScript",
|
|
84
84
|
"X-Fern-SDK-Name": "webflow-api",
|
|
85
|
-
"X-Fern-SDK-Version": "
|
|
85
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
86
86
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
87
87
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
88
88
|
},
|
|
@@ -70,7 +70,7 @@ class Assets {
|
|
|
70
70
|
Authorization: yield this._getAuthorizationHeader(),
|
|
71
71
|
"X-Fern-Language": "JavaScript",
|
|
72
72
|
"X-Fern-SDK-Name": "webflow-api",
|
|
73
|
-
"X-Fern-SDK-Version": "
|
|
73
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
74
74
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
75
75
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
76
76
|
},
|
|
@@ -146,7 +146,7 @@ class Assets {
|
|
|
146
146
|
Authorization: yield this._getAuthorizationHeader(),
|
|
147
147
|
"X-Fern-Language": "JavaScript",
|
|
148
148
|
"X-Fern-SDK-Name": "webflow-api",
|
|
149
|
-
"X-Fern-SDK-Version": "
|
|
149
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
150
150
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
151
151
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
152
152
|
},
|
|
@@ -219,7 +219,7 @@ class Assets {
|
|
|
219
219
|
Authorization: yield this._getAuthorizationHeader(),
|
|
220
220
|
"X-Fern-Language": "JavaScript",
|
|
221
221
|
"X-Fern-SDK-Name": "webflow-api",
|
|
222
|
-
"X-Fern-SDK-Version": "
|
|
222
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
223
223
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
224
224
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
225
225
|
},
|
|
@@ -291,7 +291,7 @@ class Assets {
|
|
|
291
291
|
Authorization: yield this._getAuthorizationHeader(),
|
|
292
292
|
"X-Fern-Language": "JavaScript",
|
|
293
293
|
"X-Fern-SDK-Name": "webflow-api",
|
|
294
|
-
"X-Fern-SDK-Version": "
|
|
294
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
295
295
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
296
296
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
297
297
|
},
|
|
@@ -359,7 +359,7 @@ class Assets {
|
|
|
359
359
|
Authorization: yield this._getAuthorizationHeader(),
|
|
360
360
|
"X-Fern-Language": "JavaScript",
|
|
361
361
|
"X-Fern-SDK-Name": "webflow-api",
|
|
362
|
-
"X-Fern-SDK-Version": "
|
|
362
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
363
363
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
364
364
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
365
365
|
},
|
|
@@ -432,7 +432,7 @@ class Assets {
|
|
|
432
432
|
Authorization: yield this._getAuthorizationHeader(),
|
|
433
433
|
"X-Fern-Language": "JavaScript",
|
|
434
434
|
"X-Fern-SDK-Name": "webflow-api",
|
|
435
|
-
"X-Fern-SDK-Version": "
|
|
435
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
436
436
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
437
437
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
438
438
|
},
|
|
@@ -507,7 +507,7 @@ class Assets {
|
|
|
507
507
|
Authorization: yield this._getAuthorizationHeader(),
|
|
508
508
|
"X-Fern-Language": "JavaScript",
|
|
509
509
|
"X-Fern-SDK-Name": "webflow-api",
|
|
510
|
-
"X-Fern-SDK-Version": "
|
|
510
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
511
511
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
512
512
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
513
513
|
},
|
|
@@ -580,7 +580,7 @@ class Assets {
|
|
|
580
580
|
Authorization: yield this._getAuthorizationHeader(),
|
|
581
581
|
"X-Fern-Language": "JavaScript",
|
|
582
582
|
"X-Fern-SDK-Name": "webflow-api",
|
|
583
|
-
"X-Fern-SDK-Version": "
|
|
583
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
584
584
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
585
585
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
586
586
|
},
|
|
@@ -72,7 +72,7 @@ class Collections {
|
|
|
72
72
|
Authorization: yield this._getAuthorizationHeader(),
|
|
73
73
|
"X-Fern-Language": "JavaScript",
|
|
74
74
|
"X-Fern-SDK-Name": "webflow-api",
|
|
75
|
-
"X-Fern-SDK-Version": "
|
|
75
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
76
76
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
77
77
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
78
78
|
},
|
|
@@ -148,7 +148,7 @@ class Collections {
|
|
|
148
148
|
Authorization: yield this._getAuthorizationHeader(),
|
|
149
149
|
"X-Fern-Language": "JavaScript",
|
|
150
150
|
"X-Fern-SDK-Name": "webflow-api",
|
|
151
|
-
"X-Fern-SDK-Version": "
|
|
151
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
152
152
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
153
153
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
154
154
|
},
|
|
@@ -221,7 +221,7 @@ class Collections {
|
|
|
221
221
|
Authorization: yield this._getAuthorizationHeader(),
|
|
222
222
|
"X-Fern-Language": "JavaScript",
|
|
223
223
|
"X-Fern-SDK-Name": "webflow-api",
|
|
224
|
-
"X-Fern-SDK-Version": "
|
|
224
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
225
225
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
226
226
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
227
227
|
},
|
|
@@ -293,7 +293,7 @@ class Collections {
|
|
|
293
293
|
Authorization: yield this._getAuthorizationHeader(),
|
|
294
294
|
"X-Fern-Language": "JavaScript",
|
|
295
295
|
"X-Fern-SDK-Name": "webflow-api",
|
|
296
|
-
"X-Fern-SDK-Version": "
|
|
296
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
297
297
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
298
298
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
299
299
|
},
|
|
@@ -359,7 +359,7 @@ class Collections {
|
|
|
359
359
|
Authorization: yield this._getAuthorizationHeader(),
|
|
360
360
|
"X-Fern-Language": "JavaScript",
|
|
361
361
|
"X-Fern-SDK-Name": "webflow-api",
|
|
362
|
-
"X-Fern-SDK-Version": "
|
|
362
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
363
363
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
364
364
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
365
365
|
},
|
|
@@ -75,7 +75,7 @@ class Fields {
|
|
|
75
75
|
Authorization: yield this._getAuthorizationHeader(),
|
|
76
76
|
"X-Fern-Language": "JavaScript",
|
|
77
77
|
"X-Fern-SDK-Name": "webflow-api",
|
|
78
|
-
"X-Fern-SDK-Version": "
|
|
78
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
79
79
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
80
80
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
81
81
|
},
|
|
@@ -152,7 +152,7 @@ class Fields {
|
|
|
152
152
|
Authorization: yield this._getAuthorizationHeader(),
|
|
153
153
|
"X-Fern-Language": "JavaScript",
|
|
154
154
|
"X-Fern-SDK-Name": "webflow-api",
|
|
155
|
-
"X-Fern-SDK-Version": "
|
|
155
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
156
156
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
157
157
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
158
158
|
},
|
|
@@ -30,7 +30,7 @@ export declare class Items {
|
|
|
30
30
|
*/
|
|
31
31
|
listItems(collectionId: string, request?: Webflow.collections.ItemsListItemsRequest, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItemList>;
|
|
32
32
|
/**
|
|
33
|
-
* Create Item in a Collection. </br></br> Required scope | `CMS:write`
|
|
33
|
+
* Create Item in a Collection.</br></br> To create items across multiple locales, <a href="https://developers.webflow.com/data/reference/create-item-for-multiple-locales"> please use this endpoint.</a> </br></br> Required scope | `CMS:write`
|
|
34
34
|
* @throws {@link Webflow.BadRequestError}
|
|
35
35
|
* @throws {@link Webflow.UnauthorizedError}
|
|
36
36
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -52,7 +52,7 @@ export declare class Items {
|
|
|
52
52
|
*/
|
|
53
53
|
createItem(collectionId: string, request: Webflow.CollectionItem, requestOptions?: Items.RequestOptions): Promise<void>;
|
|
54
54
|
/**
|
|
55
|
-
* Create live Item in a Collection. This Item will be published to the live site. </br></br> Required scope | `CMS:write`
|
|
55
|
+
* Create live Item in a Collection. This Item will be published to the live site. </br></br> To create items across multiple locales, <a href="https://developers.webflow.com/data/reference/create-item-for-multiple-locales"> please use this endpoint.</a> </br></br> Required scope | `CMS:write`
|
|
56
56
|
* @throws {@link Webflow.BadRequestError}
|
|
57
57
|
* @throws {@link Webflow.UnauthorizedError}
|
|
58
58
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -73,6 +73,27 @@ export declare class Items {
|
|
|
73
73
|
* })
|
|
74
74
|
*/
|
|
75
75
|
createItemLive(collectionId: string, request: Webflow.CollectionItem, requestOptions?: Items.RequestOptions): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Create single Item in a Collection with multiple corresponding locales. </br></br> Required scope | `CMS:write`
|
|
78
|
+
* @throws {@link Webflow.BadRequestError}
|
|
79
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
80
|
+
* @throws {@link Webflow.NotFoundError}
|
|
81
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
82
|
+
* @throws {@link Webflow.InternalServerError}
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* await webflow.collections.items.createItemForMultipleLocales("collection_id", {
|
|
86
|
+
* id: "580e64008c9a982ac9b8b754",
|
|
87
|
+
* lastPublished: "2023-03-17T18:47:35.560Z",
|
|
88
|
+
* lastUpdated: "2023-03-17T18:47:35.560Z",
|
|
89
|
+
* createdOn: "2023-03-17T18:47:35.560Z",
|
|
90
|
+
* fieldData: {
|
|
91
|
+
* name: "My new item",
|
|
92
|
+
* slug: "my-new-item"
|
|
93
|
+
* }
|
|
94
|
+
* })
|
|
95
|
+
*/
|
|
96
|
+
createItemForMultipleLocales(collectionId: string, request: Webflow.collections.BulkCollectionItem, requestOptions?: Items.RequestOptions): Promise<void>;
|
|
76
97
|
/**
|
|
77
98
|
* Get details of a selected Collection Item. </br></br> Required scope | `CMS:read`
|
|
78
99
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -86,7 +86,7 @@ class Items {
|
|
|
86
86
|
Authorization: yield this._getAuthorizationHeader(),
|
|
87
87
|
"X-Fern-Language": "JavaScript",
|
|
88
88
|
"X-Fern-SDK-Name": "webflow-api",
|
|
89
|
-
"X-Fern-SDK-Version": "
|
|
89
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
90
90
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
91
91
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
92
92
|
},
|
|
@@ -139,7 +139,7 @@ class Items {
|
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
141
|
/**
|
|
142
|
-
* Create Item in a Collection. </br></br> Required scope | `CMS:write`
|
|
142
|
+
* Create Item in a Collection.</br></br> To create items across multiple locales, <a href="https://developers.webflow.com/data/reference/create-item-for-multiple-locales"> please use this endpoint.</a> </br></br> Required scope | `CMS:write`
|
|
143
143
|
* @throws {@link Webflow.BadRequestError}
|
|
144
144
|
* @throws {@link Webflow.UnauthorizedError}
|
|
145
145
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -169,7 +169,7 @@ class Items {
|
|
|
169
169
|
Authorization: yield this._getAuthorizationHeader(),
|
|
170
170
|
"X-Fern-Language": "JavaScript",
|
|
171
171
|
"X-Fern-SDK-Name": "webflow-api",
|
|
172
|
-
"X-Fern-SDK-Version": "
|
|
172
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
173
173
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
174
174
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
175
175
|
},
|
|
@@ -216,7 +216,7 @@ class Items {
|
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
218
|
/**
|
|
219
|
-
* Create live Item in a Collection. This Item will be published to the live site. </br></br> Required scope | `CMS:write`
|
|
219
|
+
* Create live Item in a Collection. This Item will be published to the live site. </br></br> To create items across multiple locales, <a href="https://developers.webflow.com/data/reference/create-item-for-multiple-locales"> please use this endpoint.</a> </br></br> Required scope | `CMS:write`
|
|
220
220
|
* @throws {@link Webflow.BadRequestError}
|
|
221
221
|
* @throws {@link Webflow.UnauthorizedError}
|
|
222
222
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -246,7 +246,7 @@ class Items {
|
|
|
246
246
|
Authorization: yield this._getAuthorizationHeader(),
|
|
247
247
|
"X-Fern-Language": "JavaScript",
|
|
248
248
|
"X-Fern-SDK-Name": "webflow-api",
|
|
249
|
-
"X-Fern-SDK-Version": "
|
|
249
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
250
250
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
251
251
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
252
252
|
},
|
|
@@ -292,6 +292,84 @@ class Items {
|
|
|
292
292
|
}
|
|
293
293
|
});
|
|
294
294
|
}
|
|
295
|
+
/**
|
|
296
|
+
* Create single Item in a Collection with multiple corresponding locales. </br></br> Required scope | `CMS:write`
|
|
297
|
+
* @throws {@link Webflow.BadRequestError}
|
|
298
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
299
|
+
* @throws {@link Webflow.NotFoundError}
|
|
300
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
301
|
+
* @throws {@link Webflow.InternalServerError}
|
|
302
|
+
*
|
|
303
|
+
* @example
|
|
304
|
+
* await webflow.collections.items.createItemForMultipleLocales("collection_id", {
|
|
305
|
+
* id: "580e64008c9a982ac9b8b754",
|
|
306
|
+
* lastPublished: "2023-03-17T18:47:35.560Z",
|
|
307
|
+
* lastUpdated: "2023-03-17T18:47:35.560Z",
|
|
308
|
+
* createdOn: "2023-03-17T18:47:35.560Z",
|
|
309
|
+
* fieldData: {
|
|
310
|
+
* name: "My new item",
|
|
311
|
+
* slug: "my-new-item"
|
|
312
|
+
* }
|
|
313
|
+
* })
|
|
314
|
+
*/
|
|
315
|
+
createItemForMultipleLocales(collectionId, request, requestOptions) {
|
|
316
|
+
var _a;
|
|
317
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
318
|
+
const _response = yield core.fetcher({
|
|
319
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/items/bulk`),
|
|
320
|
+
method: "POST",
|
|
321
|
+
headers: {
|
|
322
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
323
|
+
"X-Fern-Language": "JavaScript",
|
|
324
|
+
"X-Fern-SDK-Name": "webflow-api",
|
|
325
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
326
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
327
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
328
|
+
},
|
|
329
|
+
contentType: "application/json",
|
|
330
|
+
body: yield serializers.collections.BulkCollectionItem.jsonOrThrow(request, {
|
|
331
|
+
unrecognizedObjectKeys: "strip",
|
|
332
|
+
}),
|
|
333
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
334
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
335
|
+
});
|
|
336
|
+
if (_response.ok) {
|
|
337
|
+
return;
|
|
338
|
+
}
|
|
339
|
+
if (_response.error.reason === "status-code") {
|
|
340
|
+
switch (_response.error.statusCode) {
|
|
341
|
+
case 400:
|
|
342
|
+
throw new Webflow.BadRequestError(_response.error.body);
|
|
343
|
+
case 401:
|
|
344
|
+
throw new Webflow.UnauthorizedError(_response.error.body);
|
|
345
|
+
case 404:
|
|
346
|
+
throw new Webflow.NotFoundError(_response.error.body);
|
|
347
|
+
case 429:
|
|
348
|
+
throw new Webflow.TooManyRequestsError(_response.error.body);
|
|
349
|
+
case 500:
|
|
350
|
+
throw new Webflow.InternalServerError(_response.error.body);
|
|
351
|
+
default:
|
|
352
|
+
throw new errors.WebflowError({
|
|
353
|
+
statusCode: _response.error.statusCode,
|
|
354
|
+
body: _response.error.body,
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
switch (_response.error.reason) {
|
|
359
|
+
case "non-json":
|
|
360
|
+
throw new errors.WebflowError({
|
|
361
|
+
statusCode: _response.error.statusCode,
|
|
362
|
+
body: _response.error.rawBody,
|
|
363
|
+
});
|
|
364
|
+
case "timeout":
|
|
365
|
+
throw new errors.WebflowTimeoutError();
|
|
366
|
+
case "unknown":
|
|
367
|
+
throw new errors.WebflowError({
|
|
368
|
+
message: _response.error.errorMessage,
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
});
|
|
372
|
+
}
|
|
295
373
|
/**
|
|
296
374
|
* Get details of a selected Collection Item. </br></br> Required scope | `CMS:read`
|
|
297
375
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -318,7 +396,7 @@ class Items {
|
|
|
318
396
|
Authorization: yield this._getAuthorizationHeader(),
|
|
319
397
|
"X-Fern-Language": "JavaScript",
|
|
320
398
|
"X-Fern-SDK-Name": "webflow-api",
|
|
321
|
-
"X-Fern-SDK-Version": "
|
|
399
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
322
400
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
323
401
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
324
402
|
},
|
|
@@ -401,7 +479,7 @@ class Items {
|
|
|
401
479
|
Authorization: yield this._getAuthorizationHeader(),
|
|
402
480
|
"X-Fern-Language": "JavaScript",
|
|
403
481
|
"X-Fern-SDK-Name": "webflow-api",
|
|
404
|
-
"X-Fern-SDK-Version": "
|
|
482
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
405
483
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
406
484
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
407
485
|
},
|
|
@@ -478,7 +556,7 @@ class Items {
|
|
|
478
556
|
Authorization: yield this._getAuthorizationHeader(),
|
|
479
557
|
"X-Fern-Language": "JavaScript",
|
|
480
558
|
"X-Fern-SDK-Name": "webflow-api",
|
|
481
|
-
"X-Fern-SDK-Version": "
|
|
559
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
482
560
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
483
561
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
484
562
|
},
|
|
@@ -551,7 +629,7 @@ class Items {
|
|
|
551
629
|
Authorization: yield this._getAuthorizationHeader(),
|
|
552
630
|
"X-Fern-Language": "JavaScript",
|
|
553
631
|
"X-Fern-SDK-Name": "webflow-api",
|
|
554
|
-
"X-Fern-SDK-Version": "
|
|
632
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
555
633
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
556
634
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
557
635
|
},
|
|
@@ -627,7 +705,7 @@ class Items {
|
|
|
627
705
|
Authorization: yield this._getAuthorizationHeader(),
|
|
628
706
|
"X-Fern-Language": "JavaScript",
|
|
629
707
|
"X-Fern-SDK-Name": "webflow-api",
|
|
630
|
-
"X-Fern-SDK-Version": "
|
|
708
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
631
709
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
632
710
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
633
711
|
},
|
|
@@ -702,7 +780,7 @@ class Items {
|
|
|
702
780
|
Authorization: yield this._getAuthorizationHeader(),
|
|
703
781
|
"X-Fern-Language": "JavaScript",
|
|
704
782
|
"X-Fern-SDK-Name": "webflow-api",
|
|
705
|
-
"X-Fern-SDK-Version": "
|
|
783
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
706
784
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
707
785
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
708
786
|
},
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Webflow from "../../../../../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* id: "580e64008c9a982ac9b8b754",
|
|
9
|
+
* lastPublished: "2023-03-17T18:47:35.560Z",
|
|
10
|
+
* lastUpdated: "2023-03-17T18:47:35.560Z",
|
|
11
|
+
* createdOn: "2023-03-17T18:47:35.560Z",
|
|
12
|
+
* fieldData: {
|
|
13
|
+
* name: "My new item",
|
|
14
|
+
* slug: "my-new-item"
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
*/
|
|
18
|
+
export interface BulkCollectionItem {
|
|
19
|
+
/** Unique identifier for the Item */
|
|
20
|
+
id: string;
|
|
21
|
+
/** Array of identifiers for the locales where the item will be crated */
|
|
22
|
+
cmsLocaleIds?: string[];
|
|
23
|
+
/** The date the item was last published */
|
|
24
|
+
lastPublished?: string;
|
|
25
|
+
/** The date the item was last updated */
|
|
26
|
+
lastUpdated?: string;
|
|
27
|
+
/** The date the item was created */
|
|
28
|
+
createdOn?: string;
|
|
29
|
+
/** Boolean determining if the Item is set to archived */
|
|
30
|
+
isArchived?: boolean;
|
|
31
|
+
/** Boolean determining if the Item is set to draft */
|
|
32
|
+
isDraft?: boolean;
|
|
33
|
+
fieldData?: Webflow.collections.BulkCollectionItemFieldData;
|
|
34
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { ItemsListItemsRequest } from "./ItemsListItemsRequest";
|
|
2
|
+
export { BulkCollectionItem } from "./BulkCollectionItem";
|
|
2
3
|
export { ItemsGetItemRequest } from "./ItemsGetItemRequest";
|
|
3
4
|
export { ItemsDeleteItemRequest } from "./ItemsDeleteItemRequest";
|
|
4
5
|
export { ItemsPublishItemRequest } from "./ItemsPublishItemRequest";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface BulkCollectionItemFieldData {
|
|
5
|
+
/** Name of the Item */
|
|
6
|
+
name?: string;
|
|
7
|
+
/** URL structure of the Item in your site. Note: Updates to an item slug will break all links referencing the old slug. */
|
|
8
|
+
slug?: string;
|
|
9
|
+
}
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./BulkCollectionItemFieldData"), exports);
|
|
17
18
|
__exportStar(require("./ItemsPublishItemResponse"), exports);
|
|
@@ -74,7 +74,7 @@ class Ecommerce {
|
|
|
74
74
|
Authorization: yield this._getAuthorizationHeader(),
|
|
75
75
|
"X-Fern-Language": "JavaScript",
|
|
76
76
|
"X-Fern-SDK-Name": "webflow-api",
|
|
77
|
-
"X-Fern-SDK-Version": "
|
|
77
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
78
78
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
79
79
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
80
80
|
},
|
|
@@ -80,7 +80,7 @@ class Forms {
|
|
|
80
80
|
Authorization: yield this._getAuthorizationHeader(),
|
|
81
81
|
"X-Fern-Language": "JavaScript",
|
|
82
82
|
"X-Fern-SDK-Name": "webflow-api",
|
|
83
|
-
"X-Fern-SDK-Version": "
|
|
83
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
84
84
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
85
85
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
86
86
|
},
|
|
@@ -158,7 +158,7 @@ class Forms {
|
|
|
158
158
|
Authorization: yield this._getAuthorizationHeader(),
|
|
159
159
|
"X-Fern-Language": "JavaScript",
|
|
160
160
|
"X-Fern-SDK-Name": "webflow-api",
|
|
161
|
-
"X-Fern-SDK-Version": "
|
|
161
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
162
162
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
163
163
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
164
164
|
},
|
|
@@ -233,7 +233,7 @@ class Forms {
|
|
|
233
233
|
Authorization: yield this._getAuthorizationHeader(),
|
|
234
234
|
"X-Fern-Language": "JavaScript",
|
|
235
235
|
"X-Fern-SDK-Name": "webflow-api",
|
|
236
|
-
"X-Fern-SDK-Version": "
|
|
236
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
237
237
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
238
238
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
239
239
|
},
|
|
@@ -308,7 +308,7 @@ class Forms {
|
|
|
308
308
|
Authorization: yield this._getAuthorizationHeader(),
|
|
309
309
|
"X-Fern-Language": "JavaScript",
|
|
310
310
|
"X-Fern-SDK-Name": "webflow-api",
|
|
311
|
-
"X-Fern-SDK-Version": "
|
|
311
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
312
312
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
313
313
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
314
314
|
},
|
|
@@ -384,7 +384,7 @@ class Forms {
|
|
|
384
384
|
Authorization: yield this._getAuthorizationHeader(),
|
|
385
385
|
"X-Fern-Language": "JavaScript",
|
|
386
386
|
"X-Fern-SDK-Name": "webflow-api",
|
|
387
|
-
"X-Fern-SDK-Version": "
|
|
387
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
388
388
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
389
389
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
390
390
|
},
|
|
@@ -74,7 +74,7 @@ class Inventory {
|
|
|
74
74
|
Authorization: yield this._getAuthorizationHeader(),
|
|
75
75
|
"X-Fern-Language": "JavaScript",
|
|
76
76
|
"X-Fern-SDK-Name": "webflow-api",
|
|
77
|
-
"X-Fern-SDK-Version": "
|
|
77
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
78
78
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
79
79
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
80
80
|
},
|
|
@@ -158,7 +158,7 @@ class Inventory {
|
|
|
158
158
|
Authorization: yield this._getAuthorizationHeader(),
|
|
159
159
|
"X-Fern-Language": "JavaScript",
|
|
160
160
|
"X-Fern-SDK-Name": "webflow-api",
|
|
161
|
-
"X-Fern-SDK-Version": "
|
|
161
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
162
162
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
163
163
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
164
164
|
},
|
|
@@ -85,7 +85,7 @@ class Orders {
|
|
|
85
85
|
Authorization: yield this._getAuthorizationHeader(),
|
|
86
86
|
"X-Fern-Language": "JavaScript",
|
|
87
87
|
"X-Fern-SDK-Name": "webflow-api",
|
|
88
|
-
"X-Fern-SDK-Version": "
|
|
88
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
89
89
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
90
90
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
91
91
|
},
|
|
@@ -166,7 +166,7 @@ class Orders {
|
|
|
166
166
|
Authorization: yield this._getAuthorizationHeader(),
|
|
167
167
|
"X-Fern-Language": "JavaScript",
|
|
168
168
|
"X-Fern-SDK-Name": "webflow-api",
|
|
169
|
-
"X-Fern-SDK-Version": "
|
|
169
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
170
170
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
171
171
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
172
172
|
},
|
|
@@ -251,7 +251,7 @@ class Orders {
|
|
|
251
251
|
Authorization: yield this._getAuthorizationHeader(),
|
|
252
252
|
"X-Fern-Language": "JavaScript",
|
|
253
253
|
"X-Fern-SDK-Name": "webflow-api",
|
|
254
|
-
"X-Fern-SDK-Version": "
|
|
254
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
255
255
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
256
256
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
257
257
|
},
|
|
@@ -332,7 +332,7 @@ class Orders {
|
|
|
332
332
|
Authorization: yield this._getAuthorizationHeader(),
|
|
333
333
|
"X-Fern-Language": "JavaScript",
|
|
334
334
|
"X-Fern-SDK-Name": "webflow-api",
|
|
335
|
-
"X-Fern-SDK-Version": "
|
|
335
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
336
336
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
337
337
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
338
338
|
},
|
|
@@ -415,7 +415,7 @@ class Orders {
|
|
|
415
415
|
Authorization: yield this._getAuthorizationHeader(),
|
|
416
416
|
"X-Fern-Language": "JavaScript",
|
|
417
417
|
"X-Fern-SDK-Name": "webflow-api",
|
|
418
|
-
"X-Fern-SDK-Version": "
|
|
418
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
419
419
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
420
420
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
421
421
|
},
|
|
@@ -496,7 +496,7 @@ class Orders {
|
|
|
496
496
|
Authorization: yield this._getAuthorizationHeader(),
|
|
497
497
|
"X-Fern-Language": "JavaScript",
|
|
498
498
|
"X-Fern-SDK-Name": "webflow-api",
|
|
499
|
-
"X-Fern-SDK-Version": "
|
|
499
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
500
500
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
501
501
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
502
502
|
},
|
|
@@ -93,7 +93,7 @@ class Pages {
|
|
|
93
93
|
Authorization: yield this._getAuthorizationHeader(),
|
|
94
94
|
"X-Fern-Language": "JavaScript",
|
|
95
95
|
"X-Fern-SDK-Name": "webflow-api",
|
|
96
|
-
"X-Fern-SDK-Version": "
|
|
96
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
97
97
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
98
98
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
99
99
|
},
|
|
@@ -171,7 +171,7 @@ class Pages {
|
|
|
171
171
|
Authorization: yield this._getAuthorizationHeader(),
|
|
172
172
|
"X-Fern-Language": "JavaScript",
|
|
173
173
|
"X-Fern-SDK-Name": "webflow-api",
|
|
174
|
-
"X-Fern-SDK-Version": "
|
|
174
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
175
175
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
176
176
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
177
177
|
},
|
|
@@ -274,7 +274,7 @@ class Pages {
|
|
|
274
274
|
Authorization: yield this._getAuthorizationHeader(),
|
|
275
275
|
"X-Fern-Language": "JavaScript",
|
|
276
276
|
"X-Fern-SDK-Name": "webflow-api",
|
|
277
|
-
"X-Fern-SDK-Version": "
|
|
277
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
278
278
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
279
279
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
280
280
|
},
|
|
@@ -354,7 +354,7 @@ class Pages {
|
|
|
354
354
|
Authorization: yield this._getAuthorizationHeader(),
|
|
355
355
|
"X-Fern-Language": "JavaScript",
|
|
356
356
|
"X-Fern-SDK-Name": "webflow-api",
|
|
357
|
-
"X-Fern-SDK-Version": "
|
|
357
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
358
358
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
359
359
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
360
360
|
},
|
|
@@ -439,7 +439,7 @@ class Pages {
|
|
|
439
439
|
Authorization: yield this._getAuthorizationHeader(),
|
|
440
440
|
"X-Fern-Language": "JavaScript",
|
|
441
441
|
"X-Fern-SDK-Name": "webflow-api",
|
|
442
|
-
"X-Fern-SDK-Version": "
|
|
442
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
443
443
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
444
444
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
445
445
|
},
|