webflow-api 2.3.1 → 2.3.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 +12 -0
- package/api/resources/collections/resources/items/client/Client.js +99 -10
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +21 -0
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.js +5 -0
- package/api/resources/collections/resources/items/client/requests/index.d.ts +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/api/types/OauthScope.d.ts +9 -1
- package/api/types/OauthScope.js +2 -0
- 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 +12 -0
- package/dist/api/resources/collections/resources/items/client/Client.js +99 -10
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +21 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +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/api/types/OauthScope.d.ts +9 -1
- package/dist/api/types/OauthScope.js +2 -0
- package/dist/serialization/types/OauthScope.d.ts +1 -1
- package/dist/serialization/types/OauthScope.js +2 -0
- package/package.json +1 -1
- package/serialization/types/OauthScope.d.ts +1 -1
- package/serialization/types/OauthScope.js +2 -0
|
@@ -70,7 +70,7 @@ class Scripts {
|
|
|
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": "2.3.
|
|
73
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
74
74
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
75
75
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
76
76
|
},
|
|
@@ -147,7 +147,7 @@ class Scripts {
|
|
|
147
147
|
Authorization: yield this._getAuthorizationHeader(),
|
|
148
148
|
"X-Fern-Language": "JavaScript",
|
|
149
149
|
"X-Fern-SDK-Name": "webflow-api",
|
|
150
|
-
"X-Fern-SDK-Version": "2.3.
|
|
150
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
151
151
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
152
152
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
153
153
|
},
|
|
@@ -224,7 +224,7 @@ class Scripts {
|
|
|
224
224
|
Authorization: yield this._getAuthorizationHeader(),
|
|
225
225
|
"X-Fern-Language": "JavaScript",
|
|
226
226
|
"X-Fern-SDK-Name": "webflow-api",
|
|
227
|
-
"X-Fern-SDK-Version": "2.3.
|
|
227
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
228
228
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
229
229
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
230
230
|
},
|
|
@@ -72,7 +72,7 @@ class Sites {
|
|
|
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": "2.3.
|
|
75
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
76
76
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
77
77
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
78
78
|
},
|
|
@@ -144,7 +144,7 @@ class Sites {
|
|
|
144
144
|
Authorization: yield this._getAuthorizationHeader(),
|
|
145
145
|
"X-Fern-Language": "JavaScript",
|
|
146
146
|
"X-Fern-SDK-Name": "webflow-api",
|
|
147
|
-
"X-Fern-SDK-Version": "2.3.
|
|
147
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
148
148
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
149
149
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
150
150
|
},
|
|
@@ -216,7 +216,7 @@ class Sites {
|
|
|
216
216
|
Authorization: yield this._getAuthorizationHeader(),
|
|
217
217
|
"X-Fern-Language": "JavaScript",
|
|
218
218
|
"X-Fern-SDK-Name": "webflow-api",
|
|
219
|
-
"X-Fern-SDK-Version": "2.3.
|
|
219
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
220
220
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
221
221
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
222
222
|
},
|
|
@@ -291,7 +291,7 @@ class Sites {
|
|
|
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": "2.3.
|
|
294
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
295
295
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
296
296
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
297
297
|
},
|
|
@@ -77,7 +77,7 @@ class ActivityLogs {
|
|
|
77
77
|
Authorization: yield this._getAuthorizationHeader(),
|
|
78
78
|
"X-Fern-Language": "JavaScript",
|
|
79
79
|
"X-Fern-SDK-Name": "webflow-api",
|
|
80
|
-
"X-Fern-SDK-Version": "2.3.
|
|
80
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
81
81
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
82
82
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
83
83
|
},
|
|
@@ -70,7 +70,7 @@ class Scripts {
|
|
|
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": "2.3.
|
|
73
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
74
74
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
75
75
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
76
76
|
},
|
|
@@ -159,7 +159,7 @@ class Scripts {
|
|
|
159
159
|
Authorization: yield this._getAuthorizationHeader(),
|
|
160
160
|
"X-Fern-Language": "JavaScript",
|
|
161
161
|
"X-Fern-SDK-Name": "webflow-api",
|
|
162
|
-
"X-Fern-SDK-Version": "2.3.
|
|
162
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
163
163
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
164
164
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
165
165
|
},
|
|
@@ -232,7 +232,7 @@ class Scripts {
|
|
|
232
232
|
Authorization: yield this._getAuthorizationHeader(),
|
|
233
233
|
"X-Fern-Language": "JavaScript",
|
|
234
234
|
"X-Fern-SDK-Name": "webflow-api",
|
|
235
|
-
"X-Fern-SDK-Version": "2.3.
|
|
235
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
236
236
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
237
237
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
238
238
|
},
|
|
@@ -306,7 +306,7 @@ class Scripts {
|
|
|
306
306
|
Authorization: yield this._getAuthorizationHeader(),
|
|
307
307
|
"X-Fern-Language": "JavaScript",
|
|
308
308
|
"X-Fern-SDK-Name": "webflow-api",
|
|
309
|
-
"X-Fern-SDK-Version": "2.3.
|
|
309
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
310
310
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
311
311
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
312
312
|
},
|
|
@@ -67,7 +67,7 @@ class Token {
|
|
|
67
67
|
Authorization: yield this._getAuthorizationHeader(),
|
|
68
68
|
"X-Fern-Language": "JavaScript",
|
|
69
69
|
"X-Fern-SDK-Name": "webflow-api",
|
|
70
|
-
"X-Fern-SDK-Version": "2.3.
|
|
70
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
71
71
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
72
72
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
73
73
|
},
|
|
@@ -129,7 +129,7 @@ class Token {
|
|
|
129
129
|
Authorization: yield this._getAuthorizationHeader(),
|
|
130
130
|
"X-Fern-Language": "JavaScript",
|
|
131
131
|
"X-Fern-SDK-Name": "webflow-api",
|
|
132
|
-
"X-Fern-SDK-Version": "2.3.
|
|
132
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
133
133
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
134
134
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
135
135
|
},
|
|
@@ -82,7 +82,7 @@ class Users {
|
|
|
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": "2.3.
|
|
85
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
86
86
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
87
87
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
88
88
|
},
|
|
@@ -158,7 +158,7 @@ class Users {
|
|
|
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": "2.3.
|
|
161
|
+
"X-Fern-SDK-Version": "2.3.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 Users {
|
|
|
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": "2.3.
|
|
236
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
237
237
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
238
238
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
239
239
|
},
|
|
@@ -311,7 +311,7 @@ class Users {
|
|
|
311
311
|
Authorization: yield this._getAuthorizationHeader(),
|
|
312
312
|
"X-Fern-Language": "JavaScript",
|
|
313
313
|
"X-Fern-SDK-Name": "webflow-api",
|
|
314
|
-
"X-Fern-SDK-Version": "2.3.
|
|
314
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
315
315
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
316
316
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
317
317
|
},
|
|
@@ -391,7 +391,7 @@ class Users {
|
|
|
391
391
|
Authorization: yield this._getAuthorizationHeader(),
|
|
392
392
|
"X-Fern-Language": "JavaScript",
|
|
393
393
|
"X-Fern-SDK-Name": "webflow-api",
|
|
394
|
-
"X-Fern-SDK-Version": "2.3.
|
|
394
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
395
395
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
396
396
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
397
397
|
},
|
|
@@ -70,7 +70,7 @@ class Webhooks {
|
|
|
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": "2.3.
|
|
73
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
74
74
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
75
75
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
76
76
|
},
|
|
@@ -145,7 +145,7 @@ class Webhooks {
|
|
|
145
145
|
Authorization: yield this._getAuthorizationHeader(),
|
|
146
146
|
"X-Fern-Language": "JavaScript",
|
|
147
147
|
"X-Fern-SDK-Name": "webflow-api",
|
|
148
|
-
"X-Fern-SDK-Version": "2.3.
|
|
148
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
149
149
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
150
150
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
151
151
|
},
|
|
@@ -218,7 +218,7 @@ class Webhooks {
|
|
|
218
218
|
Authorization: yield this._getAuthorizationHeader(),
|
|
219
219
|
"X-Fern-Language": "JavaScript",
|
|
220
220
|
"X-Fern-SDK-Name": "webflow-api",
|
|
221
|
-
"X-Fern-SDK-Version": "2.3.
|
|
221
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
222
222
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
223
223
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
224
224
|
},
|
|
@@ -290,7 +290,7 @@ class Webhooks {
|
|
|
290
290
|
Authorization: yield this._getAuthorizationHeader(),
|
|
291
291
|
"X-Fern-Language": "JavaScript",
|
|
292
292
|
"X-Fern-SDK-Name": "webflow-api",
|
|
293
|
-
"X-Fern-SDK-Version": "2.3.
|
|
293
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
294
294
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
295
295
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
296
296
|
},
|
|
@@ -55,7 +55,13 @@ export declare type OauthScope =
|
|
|
55
55
|
| "site_activity:read"
|
|
56
56
|
/**
|
|
57
57
|
* modify users on the site */
|
|
58
|
-
| "users:write"
|
|
58
|
+
| "users:write"
|
|
59
|
+
/**
|
|
60
|
+
* read workspace resource data */
|
|
61
|
+
| "workspace:read"
|
|
62
|
+
/**
|
|
63
|
+
* write workspace resource data */
|
|
64
|
+
| "workspace:write";
|
|
59
65
|
export declare const OauthScope: {
|
|
60
66
|
readonly AuthorizedUserRead: "authorized_user:read";
|
|
61
67
|
readonly AssetsRead: "assets:read";
|
|
@@ -75,4 +81,6 @@ export declare const OauthScope: {
|
|
|
75
81
|
readonly UsersRead: "users:read";
|
|
76
82
|
readonly SiteActivityRead: "site_activity:read";
|
|
77
83
|
readonly UsersWrite: "users:write";
|
|
84
|
+
readonly WorkspaceRead: "workspace:read";
|
|
85
|
+
readonly WorkspaceWrite: "workspace:write";
|
|
78
86
|
};
|
package/api/types/OauthScope.js
CHANGED
|
@@ -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": "2.3.
|
|
85
|
+
"X-Fern-SDK-Version": "2.3.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": "2.3.
|
|
73
|
+
"X-Fern-SDK-Version": "2.3.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": "2.3.
|
|
149
|
+
"X-Fern-SDK-Version": "2.3.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": "2.3.
|
|
222
|
+
"X-Fern-SDK-Version": "2.3.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": "2.3.
|
|
294
|
+
"X-Fern-SDK-Version": "2.3.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": "2.3.
|
|
362
|
+
"X-Fern-SDK-Version": "2.3.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": "2.3.
|
|
435
|
+
"X-Fern-SDK-Version": "2.3.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": "2.3.
|
|
510
|
+
"X-Fern-SDK-Version": "2.3.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": "2.3.
|
|
583
|
+
"X-Fern-SDK-Version": "2.3.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": "2.3.
|
|
75
|
+
"X-Fern-SDK-Version": "2.3.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": "2.3.
|
|
151
|
+
"X-Fern-SDK-Version": "2.3.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": "2.3.
|
|
224
|
+
"X-Fern-SDK-Version": "2.3.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": "2.3.
|
|
296
|
+
"X-Fern-SDK-Version": "2.3.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": "2.3.
|
|
362
|
+
"X-Fern-SDK-Version": "2.3.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": "2.3.
|
|
78
|
+
"X-Fern-SDK-Version": "2.3.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": "2.3.
|
|
155
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
156
156
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
157
157
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
158
158
|
},
|
|
@@ -53,6 +53,18 @@ export declare class Items {
|
|
|
53
53
|
* })
|
|
54
54
|
*/
|
|
55
55
|
createItem(collectionId: string, request: Webflow.CollectionItem, requestOptions?: Items.RequestOptions): Promise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* List of all live Items within a Collection. </br></br> Required scope | `CMS:read`
|
|
58
|
+
* @throws {@link Webflow.BadRequestError}
|
|
59
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
60
|
+
* @throws {@link Webflow.NotFoundError}
|
|
61
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
62
|
+
* @throws {@link Webflow.InternalServerError}
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* await webflow.collections.items.listItemsLive("collection_id", {})
|
|
66
|
+
*/
|
|
67
|
+
listItemsLive(collectionId: string, request?: Webflow.collections.ItemsListItemsLiveRequest, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItemList>;
|
|
56
68
|
/**
|
|
57
69
|
* 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`
|
|
58
70
|
* @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": "2.3.
|
|
89
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
90
90
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
91
91
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
92
92
|
},
|
|
@@ -171,7 +171,7 @@ class Items {
|
|
|
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": "2.3.
|
|
174
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
175
175
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
176
176
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
177
177
|
},
|
|
@@ -217,6 +217,95 @@ class Items {
|
|
|
217
217
|
}
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
+
/**
|
|
221
|
+
* List of all live Items within a Collection. </br></br> Required scope | `CMS:read`
|
|
222
|
+
* @throws {@link Webflow.BadRequestError}
|
|
223
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
224
|
+
* @throws {@link Webflow.NotFoundError}
|
|
225
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
226
|
+
* @throws {@link Webflow.InternalServerError}
|
|
227
|
+
*
|
|
228
|
+
* @example
|
|
229
|
+
* await webflow.collections.items.listItemsLive("collection_id", {})
|
|
230
|
+
*/
|
|
231
|
+
listItemsLive(collectionId, request = {}, requestOptions) {
|
|
232
|
+
var _a;
|
|
233
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
234
|
+
const { cmsLocaleIds, offset, limit } = request;
|
|
235
|
+
const _queryParams = {};
|
|
236
|
+
if (cmsLocaleIds != null) {
|
|
237
|
+
if (Array.isArray(cmsLocaleIds)) {
|
|
238
|
+
_queryParams["cmsLocaleIds"] = cmsLocaleIds.map((item) => item);
|
|
239
|
+
}
|
|
240
|
+
else {
|
|
241
|
+
_queryParams["cmsLocaleIds"] = cmsLocaleIds;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
if (offset != null) {
|
|
245
|
+
_queryParams["offset"] = offset.toString();
|
|
246
|
+
}
|
|
247
|
+
if (limit != null) {
|
|
248
|
+
_queryParams["limit"] = limit.toString();
|
|
249
|
+
}
|
|
250
|
+
const _response = yield core.fetcher({
|
|
251
|
+
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/live`),
|
|
252
|
+
method: "GET",
|
|
253
|
+
headers: {
|
|
254
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
255
|
+
"X-Fern-Language": "JavaScript",
|
|
256
|
+
"X-Fern-SDK-Name": "webflow-api",
|
|
257
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
258
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
259
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
260
|
+
},
|
|
261
|
+
contentType: "application/json",
|
|
262
|
+
queryParameters: _queryParams,
|
|
263
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
264
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
265
|
+
});
|
|
266
|
+
if (_response.ok) {
|
|
267
|
+
return yield serializers.CollectionItemList.parseOrThrow(_response.body, {
|
|
268
|
+
unrecognizedObjectKeys: "passthrough",
|
|
269
|
+
allowUnrecognizedUnionMembers: true,
|
|
270
|
+
allowUnrecognizedEnumValues: true,
|
|
271
|
+
skipValidation: true,
|
|
272
|
+
breadcrumbsPrefix: ["response"],
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
if (_response.error.reason === "status-code") {
|
|
276
|
+
switch (_response.error.statusCode) {
|
|
277
|
+
case 400:
|
|
278
|
+
throw new Webflow.BadRequestError(_response.error.body);
|
|
279
|
+
case 401:
|
|
280
|
+
throw new Webflow.UnauthorizedError(_response.error.body);
|
|
281
|
+
case 404:
|
|
282
|
+
throw new Webflow.NotFoundError(_response.error.body);
|
|
283
|
+
case 429:
|
|
284
|
+
throw new Webflow.TooManyRequestsError(_response.error.body);
|
|
285
|
+
case 500:
|
|
286
|
+
throw new Webflow.InternalServerError(_response.error.body);
|
|
287
|
+
default:
|
|
288
|
+
throw new errors.WebflowError({
|
|
289
|
+
statusCode: _response.error.statusCode,
|
|
290
|
+
body: _response.error.body,
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
switch (_response.error.reason) {
|
|
295
|
+
case "non-json":
|
|
296
|
+
throw new errors.WebflowError({
|
|
297
|
+
statusCode: _response.error.statusCode,
|
|
298
|
+
body: _response.error.rawBody,
|
|
299
|
+
});
|
|
300
|
+
case "timeout":
|
|
301
|
+
throw new errors.WebflowTimeoutError();
|
|
302
|
+
case "unknown":
|
|
303
|
+
throw new errors.WebflowError({
|
|
304
|
+
message: _response.error.errorMessage,
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
}
|
|
220
309
|
/**
|
|
221
310
|
* 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`
|
|
222
311
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -250,7 +339,7 @@ class Items {
|
|
|
250
339
|
Authorization: yield this._getAuthorizationHeader(),
|
|
251
340
|
"X-Fern-Language": "JavaScript",
|
|
252
341
|
"X-Fern-SDK-Name": "webflow-api",
|
|
253
|
-
"X-Fern-SDK-Version": "2.3.
|
|
342
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
254
343
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
255
344
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
256
345
|
},
|
|
@@ -325,7 +414,7 @@ class Items {
|
|
|
325
414
|
Authorization: yield this._getAuthorizationHeader(),
|
|
326
415
|
"X-Fern-Language": "JavaScript",
|
|
327
416
|
"X-Fern-SDK-Name": "webflow-api",
|
|
328
|
-
"X-Fern-SDK-Version": "2.3.
|
|
417
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
329
418
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
330
419
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
331
420
|
},
|
|
@@ -399,7 +488,7 @@ class Items {
|
|
|
399
488
|
Authorization: yield this._getAuthorizationHeader(),
|
|
400
489
|
"X-Fern-Language": "JavaScript",
|
|
401
490
|
"X-Fern-SDK-Name": "webflow-api",
|
|
402
|
-
"X-Fern-SDK-Version": "2.3.
|
|
491
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
403
492
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
404
493
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
405
494
|
},
|
|
@@ -482,7 +571,7 @@ class Items {
|
|
|
482
571
|
Authorization: yield this._getAuthorizationHeader(),
|
|
483
572
|
"X-Fern-Language": "JavaScript",
|
|
484
573
|
"X-Fern-SDK-Name": "webflow-api",
|
|
485
|
-
"X-Fern-SDK-Version": "2.3.
|
|
574
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
486
575
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
487
576
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
488
577
|
},
|
|
@@ -561,7 +650,7 @@ class Items {
|
|
|
561
650
|
Authorization: yield this._getAuthorizationHeader(),
|
|
562
651
|
"X-Fern-Language": "JavaScript",
|
|
563
652
|
"X-Fern-SDK-Name": "webflow-api",
|
|
564
|
-
"X-Fern-SDK-Version": "2.3.
|
|
653
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
565
654
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
566
655
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
567
656
|
},
|
|
@@ -634,7 +723,7 @@ class Items {
|
|
|
634
723
|
Authorization: yield this._getAuthorizationHeader(),
|
|
635
724
|
"X-Fern-Language": "JavaScript",
|
|
636
725
|
"X-Fern-SDK-Name": "webflow-api",
|
|
637
|
-
"X-Fern-SDK-Version": "2.3.
|
|
726
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
638
727
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
639
728
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
640
729
|
},
|
|
@@ -712,7 +801,7 @@ class Items {
|
|
|
712
801
|
Authorization: yield this._getAuthorizationHeader(),
|
|
713
802
|
"X-Fern-Language": "JavaScript",
|
|
714
803
|
"X-Fern-SDK-Name": "webflow-api",
|
|
715
|
-
"X-Fern-SDK-Version": "2.3.
|
|
804
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
716
805
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
717
806
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
718
807
|
},
|
|
@@ -787,7 +876,7 @@ class Items {
|
|
|
787
876
|
Authorization: yield this._getAuthorizationHeader(),
|
|
788
877
|
"X-Fern-Language": "JavaScript",
|
|
789
878
|
"X-Fern-SDK-Name": "webflow-api",
|
|
790
|
-
"X-Fern-SDK-Version": "2.3.
|
|
879
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
791
880
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
792
881
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
793
882
|
},
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface ItemsListItemsLiveRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Unique identifiers for CMS Locales. These UIDs are different from the Site locale identifier and are listed as `cmsLocaleId` in the Sites response. Applicable when using localization.
|
|
11
|
+
*/
|
|
12
|
+
cmsLocaleIds?: string | string[];
|
|
13
|
+
/**
|
|
14
|
+
* Offset used for pagination if the results have more than limit records
|
|
15
|
+
*/
|
|
16
|
+
offset?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Maximum number of records to be returned (max limit: 100)
|
|
19
|
+
*/
|
|
20
|
+
limit?: number;
|
|
21
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { ItemsListItemsRequest } from "./ItemsListItemsRequest";
|
|
2
|
+
export { ItemsListItemsLiveRequest } from "./ItemsListItemsLiveRequest";
|
|
2
3
|
export { BulkCollectionItem } from "./BulkCollectionItem";
|
|
3
4
|
export { ItemsGetItemRequest } from "./ItemsGetItemRequest";
|
|
4
5
|
export { ItemsDeleteItemRequest } from "./ItemsDeleteItemRequest";
|
|
@@ -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": "2.3.
|
|
77
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
78
78
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
79
79
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
80
80
|
},
|