webflow-api 3.0.0 → 3.0.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/.mock/definition/__package__.yml +99 -5
- package/.mock/definition/collections/items.yml +21 -37
- package/.mock/definition/inventory.yml +2 -2
- package/MIGRATION.md +32 -15
- 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 +4 -4
- package/api/resources/collections/resources/fields/client/Client.js +3 -3
- package/api/resources/collections/resources/items/client/Client.d.ts +5 -15
- package/api/resources/collections/resources/items/client/Client.js +21 -31
- package/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +1 -1
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +4 -1
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts +3 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +1 -1
- package/api/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +1 -1
- package/{dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts → api/resources/collections/resources/items/types/MultipleItems.d.ts} +1 -1
- package/api/resources/collections/resources/items/types/{CreateBulkCollectionItemRequestBodyFieldDataName.d.ts → SingleCmsItem.d.ts} +1 -1
- package/api/resources/collections/resources/items/types/index.d.ts +2 -3
- package/api/resources/collections/resources/items/types/index.js +2 -3
- 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/CollectionItem.d.ts +1 -1
- package/api/types/CollectionItemFieldData.d.ts +2 -2
- package/api/types/CollectionItemPatchSingle.d.ts +24 -0
- package/api/types/CollectionItemPatchSingleFieldData.d.ts +11 -0
- package/api/types/CollectionItemPostSingle.d.ts +24 -0
- package/api/types/CollectionItemPostSingleFieldData.d.ts +11 -0
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -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 +4 -4
- package/dist/api/resources/collections/resources/fields/client/Client.js +3 -3
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +5 -15
- package/dist/api/resources/collections/resources/items/client/Client.js +21 -31
- package/dist/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +4 -1
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts +3 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +1 -1
- package/{api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts → dist/api/resources/collections/resources/items/types/MultipleItems.d.ts} +1 -1
- package/dist/api/resources/collections/resources/items/types/MultipleItems.js +5 -0
- package/dist/api/resources/collections/resources/items/types/{CreateBulkCollectionItemRequestBodyFieldDataName.d.ts → SingleCmsItem.d.ts} +1 -1
- package/dist/api/resources/collections/resources/items/types/SingleCmsItem.js +5 -0
- package/dist/api/resources/collections/resources/items/types/index.d.ts +2 -3
- package/dist/api/resources/collections/resources/items/types/index.js +2 -3
- 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/CollectionItem.d.ts +1 -1
- package/dist/api/types/CollectionItemFieldData.d.ts +2 -2
- package/dist/api/types/CollectionItemPatchSingle.d.ts +24 -0
- package/dist/api/types/CollectionItemPatchSingle.js +5 -0
- package/dist/api/types/CollectionItemPatchSingleFieldData.d.ts +11 -0
- package/dist/api/types/CollectionItemPatchSingleFieldData.js +5 -0
- package/dist/api/types/CollectionItemPostSingle.d.ts +24 -0
- package/dist/api/types/CollectionItemPostSingle.js +5 -0
- package/dist/api/types/CollectionItemPostSingleFieldData.d.ts +11 -0
- package/dist/api/types/CollectionItemPostSingleFieldData.js +5 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +1 -1
- package/dist/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +1 -1
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +2 -2
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +2 -2
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +2 -2
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +2 -2
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +3 -3
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.js +3 -3
- package/dist/serialization/resources/collections/resources/items/types/{ItemsCreateItemRequestItems.d.ts → MultipleItems.d.ts} +2 -2
- package/dist/serialization/resources/collections/resources/items/types/{ItemsCreateItemRequestItems.js → MultipleItems.js} +2 -2
- package/dist/serialization/resources/collections/resources/items/types/{CreateBulkCollectionItemRequestBodyFieldDataName.d.ts → SingleCmsItem.d.ts} +2 -2
- package/dist/serialization/resources/collections/resources/items/types/{CreateBulkCollectionItemRequestBodyFieldDataName.js → SingleCmsItem.js} +2 -2
- package/dist/serialization/resources/collections/resources/items/types/index.d.ts +2 -3
- package/dist/serialization/resources/collections/resources/items/types/index.js +2 -3
- package/dist/serialization/types/CollectionItem.d.ts +1 -1
- package/dist/serialization/types/CollectionItem.js +1 -1
- package/dist/serialization/types/CollectionItemFieldData.d.ts +2 -2
- package/dist/serialization/types/CollectionItemFieldData.js +2 -2
- package/dist/serialization/types/CollectionItemPatchSingle.d.ts +20 -0
- package/dist/serialization/types/CollectionItemPatchSingle.js +41 -0
- package/dist/serialization/types/CollectionItemPatchSingleFieldData.d.ts +14 -0
- package/dist/serialization/types/CollectionItemPatchSingleFieldData.js +36 -0
- package/dist/serialization/types/CollectionItemPostSingle.d.ts +20 -0
- package/{serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js → dist/serialization/types/CollectionItemPostSingle.js} +12 -5
- package/dist/serialization/types/CollectionItemPostSingleFieldData.d.ts +14 -0
- package/dist/serialization/types/CollectionItemPostSingleFieldData.js +36 -0
- package/dist/serialization/types/index.d.ts +4 -0
- package/dist/serialization/types/index.js +4 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +2 -12
- package/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +1 -1
- package/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +1 -1
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +2 -2
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +2 -2
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +2 -2
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +2 -2
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +3 -3
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.js +3 -3
- package/serialization/resources/collections/resources/items/types/{ItemsCreateItemRequestItems.d.ts → MultipleItems.d.ts} +2 -2
- package/serialization/resources/collections/resources/items/types/{ItemsCreateItemRequestItems.js → MultipleItems.js} +2 -2
- package/serialization/resources/collections/resources/items/types/{CreateBulkCollectionItemRequestBodyFieldDataName.d.ts → SingleCmsItem.d.ts} +2 -2
- package/serialization/resources/collections/resources/items/types/{CreateBulkCollectionItemRequestBodyFieldDataName.js → SingleCmsItem.js} +2 -2
- package/serialization/resources/collections/resources/items/types/index.d.ts +2 -3
- package/serialization/resources/collections/resources/items/types/index.js +2 -3
- package/serialization/types/CollectionItem.d.ts +1 -1
- package/serialization/types/CollectionItem.js +1 -1
- package/serialization/types/CollectionItemFieldData.d.ts +2 -2
- package/serialization/types/CollectionItemFieldData.js +2 -2
- package/serialization/types/CollectionItemPatchSingle.d.ts +20 -0
- package/serialization/types/CollectionItemPatchSingle.js +41 -0
- package/serialization/types/CollectionItemPatchSingleFieldData.d.ts +14 -0
- package/serialization/types/CollectionItemPatchSingleFieldData.js +36 -0
- package/serialization/types/CollectionItemPostSingle.d.ts +20 -0
- package/{dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js → serialization/types/CollectionItemPostSingle.js} +12 -5
- package/serialization/types/CollectionItemPostSingleFieldData.d.ts +14 -0
- package/serialization/types/CollectionItemPostSingleFieldData.js +36 -0
- package/serialization/types/index.d.ts +4 -0
- package/serialization/types/index.js +4 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.d.ts +0 -8
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.d.ts +0 -8
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts +0 -13
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts +0 -13
- /package/api/resources/collections/resources/items/types/{CreateBulkCollectionItemRequestBodyFieldDataName.js → MultipleItems.js} +0 -0
- /package/api/resources/collections/resources/items/types/{ItemsCreateItemLiveRequestItems.js → SingleCmsItem.js} +0 -0
- /package/api/{resources/collections/resources/items/types/ItemsCreateItemRequestItems.js → types/CollectionItemPatchSingle.js} +0 -0
- /package/{dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.js → api/types/CollectionItemPatchSingleFieldData.js} +0 -0
- /package/{dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js → api/types/CollectionItemPostSingle.js} +0 -0
- /package/{dist/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.js → api/types/CollectionItemPostSingleFieldData.js} +0 -0
|
@@ -96,7 +96,7 @@ class Items {
|
|
|
96
96
|
const _response = yield core.fetcher({
|
|
97
97
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items`),
|
|
98
98
|
method: "GET",
|
|
99
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
99
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
100
100
|
contentType: "application/json",
|
|
101
101
|
queryParameters: _queryParams,
|
|
102
102
|
requestType: "json",
|
|
@@ -223,7 +223,7 @@ class Items {
|
|
|
223
223
|
const _response = yield core.fetcher({
|
|
224
224
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items`),
|
|
225
225
|
method: "POST",
|
|
226
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
226
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
227
227
|
contentType: "application/json",
|
|
228
228
|
requestType: "json",
|
|
229
229
|
body: serializers.collections.ItemsCreateItemRequest.jsonOrThrow(request, {
|
|
@@ -328,7 +328,7 @@ class Items {
|
|
|
328
328
|
const _response = yield core.fetcher({
|
|
329
329
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items`),
|
|
330
330
|
method: "DELETE",
|
|
331
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
331
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
332
332
|
contentType: "application/json",
|
|
333
333
|
requestType: "json",
|
|
334
334
|
body: serializers.collections.ItemsDeleteItemsRequest.jsonOrThrow(request, {
|
|
@@ -478,7 +478,7 @@ class Items {
|
|
|
478
478
|
const _response = yield core.fetcher({
|
|
479
479
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items`),
|
|
480
480
|
method: "PATCH",
|
|
481
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
481
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
482
482
|
contentType: "application/json",
|
|
483
483
|
requestType: "json",
|
|
484
484
|
body: serializers.collections.ItemsUpdateItemsRequest.jsonOrThrow(request, {
|
|
@@ -604,7 +604,7 @@ class Items {
|
|
|
604
604
|
const _response = yield core.fetcher({
|
|
605
605
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/live`),
|
|
606
606
|
method: "GET",
|
|
607
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
607
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
608
608
|
contentType: "application/json",
|
|
609
609
|
queryParameters: _queryParams,
|
|
610
610
|
requestType: "json",
|
|
@@ -731,7 +731,7 @@ class Items {
|
|
|
731
731
|
const _response = yield core.fetcher({
|
|
732
732
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/live`),
|
|
733
733
|
method: "POST",
|
|
734
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
734
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
735
735
|
contentType: "application/json",
|
|
736
736
|
requestType: "json",
|
|
737
737
|
body: serializers.collections.ItemsCreateItemLiveRequest.jsonOrThrow(request, {
|
|
@@ -836,7 +836,7 @@ class Items {
|
|
|
836
836
|
const _response = yield core.fetcher({
|
|
837
837
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/live`),
|
|
838
838
|
method: "DELETE",
|
|
839
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
839
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
840
840
|
contentType: "application/json",
|
|
841
841
|
requestType: "json",
|
|
842
842
|
body: serializers.collections.ItemsDeleteItemsLiveRequest.jsonOrThrow(request, {
|
|
@@ -986,7 +986,7 @@ class Items {
|
|
|
986
986
|
const _response = yield core.fetcher({
|
|
987
987
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/live`),
|
|
988
988
|
method: "PATCH",
|
|
989
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
989
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
990
990
|
contentType: "application/json",
|
|
991
991
|
requestType: "json",
|
|
992
992
|
body: serializers.collections.ItemsUpdateItemsLiveRequest.jsonOrThrow(request, {
|
|
@@ -1110,13 +1110,13 @@ class Items {
|
|
|
1110
1110
|
* }]
|
|
1111
1111
|
* })
|
|
1112
1112
|
*/
|
|
1113
|
-
createItems(collectionId, request
|
|
1113
|
+
createItems(collectionId, request, requestOptions) {
|
|
1114
1114
|
var _a;
|
|
1115
1115
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1116
1116
|
const _response = yield core.fetcher({
|
|
1117
1117
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/bulk`),
|
|
1118
1118
|
method: "POST",
|
|
1119
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
1119
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1120
1120
|
contentType: "application/json",
|
|
1121
1121
|
requestType: "json",
|
|
1122
1122
|
body: serializers.collections.CreateBulkCollectionItemRequestBody.jsonOrThrow(request, {
|
|
@@ -1225,7 +1225,7 @@ class Items {
|
|
|
1225
1225
|
const _response = yield core.fetcher({
|
|
1226
1226
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}`),
|
|
1227
1227
|
method: "GET",
|
|
1228
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
1228
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1229
1229
|
contentType: "application/json",
|
|
1230
1230
|
queryParameters: _queryParams,
|
|
1231
1231
|
requestType: "json",
|
|
@@ -1330,7 +1330,7 @@ class Items {
|
|
|
1330
1330
|
const _response = yield core.fetcher({
|
|
1331
1331
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}`),
|
|
1332
1332
|
method: "DELETE",
|
|
1333
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
1333
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1334
1334
|
contentType: "application/json",
|
|
1335
1335
|
queryParameters: _queryParams,
|
|
1336
1336
|
requestType: "json",
|
|
@@ -1406,7 +1406,7 @@ class Items {
|
|
|
1406
1406
|
*
|
|
1407
1407
|
* @param {string} collectionId - Unique identifier for a Collection
|
|
1408
1408
|
* @param {string} itemId - Unique identifier for an Item
|
|
1409
|
-
* @param {Webflow.
|
|
1409
|
+
* @param {Webflow.CollectionItemPatchSingle} request
|
|
1410
1410
|
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
1411
1411
|
*
|
|
1412
1412
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -1417,11 +1417,6 @@ class Items {
|
|
|
1417
1417
|
*
|
|
1418
1418
|
* @example
|
|
1419
1419
|
* await client.collections.items.updateItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
|
|
1420
|
-
* id: "42b720ef280c7a7a3be8cabe",
|
|
1421
|
-
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
1422
|
-
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
1423
|
-
* lastUpdated: "2022-11-17T17:19:43.282Z",
|
|
1424
|
-
* createdOn: "2022-11-17T17:11:57.148Z",
|
|
1425
1420
|
* isArchived: false,
|
|
1426
1421
|
* isDraft: false,
|
|
1427
1422
|
* fieldData: {
|
|
@@ -1436,10 +1431,10 @@ class Items {
|
|
|
1436
1431
|
const _response = yield core.fetcher({
|
|
1437
1432
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}`),
|
|
1438
1433
|
method: "PATCH",
|
|
1439
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
1434
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1440
1435
|
contentType: "application/json",
|
|
1441
1436
|
requestType: "json",
|
|
1442
|
-
body: serializers.
|
|
1437
|
+
body: serializers.CollectionItemPatchSingle.jsonOrThrow(request, {
|
|
1443
1438
|
unrecognizedObjectKeys: "passthrough",
|
|
1444
1439
|
allowUnrecognizedUnionMembers: true,
|
|
1445
1440
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1545,7 +1540,7 @@ class Items {
|
|
|
1545
1540
|
const _response = yield core.fetcher({
|
|
1546
1541
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/live`),
|
|
1547
1542
|
method: "GET",
|
|
1548
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
1543
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1549
1544
|
contentType: "application/json",
|
|
1550
1545
|
queryParameters: _queryParams,
|
|
1551
1546
|
requestType: "json",
|
|
@@ -1652,7 +1647,7 @@ class Items {
|
|
|
1652
1647
|
const _response = yield core.fetcher({
|
|
1653
1648
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/live`),
|
|
1654
1649
|
method: "DELETE",
|
|
1655
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
1650
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1656
1651
|
contentType: "application/json",
|
|
1657
1652
|
queryParameters: _queryParams,
|
|
1658
1653
|
requestType: "json",
|
|
@@ -1728,7 +1723,7 @@ class Items {
|
|
|
1728
1723
|
*
|
|
1729
1724
|
* @param {string} collectionId - Unique identifier for a Collection
|
|
1730
1725
|
* @param {string} itemId - Unique identifier for an Item
|
|
1731
|
-
* @param {Webflow.
|
|
1726
|
+
* @param {Webflow.CollectionItemPatchSingle} request
|
|
1732
1727
|
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
1733
1728
|
*
|
|
1734
1729
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -1739,11 +1734,6 @@ class Items {
|
|
|
1739
1734
|
*
|
|
1740
1735
|
* @example
|
|
1741
1736
|
* await client.collections.items.updateItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
|
|
1742
|
-
* id: "42b720ef280c7a7a3be8cabe",
|
|
1743
|
-
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
1744
|
-
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
1745
|
-
* lastUpdated: "2022-11-17T17:19:43.282Z",
|
|
1746
|
-
* createdOn: "2022-11-17T17:11:57.148Z",
|
|
1747
1737
|
* isArchived: false,
|
|
1748
1738
|
* isDraft: false,
|
|
1749
1739
|
* fieldData: {
|
|
@@ -1758,10 +1748,10 @@ class Items {
|
|
|
1758
1748
|
const _response = yield core.fetcher({
|
|
1759
1749
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/live`),
|
|
1760
1750
|
method: "PATCH",
|
|
1761
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
1751
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1762
1752
|
contentType: "application/json",
|
|
1763
1753
|
requestType: "json",
|
|
1764
|
-
body: serializers.
|
|
1754
|
+
body: serializers.CollectionItemPatchSingle.jsonOrThrow(request, {
|
|
1765
1755
|
unrecognizedObjectKeys: "passthrough",
|
|
1766
1756
|
allowUnrecognizedUnionMembers: true,
|
|
1767
1757
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1864,7 +1854,7 @@ class Items {
|
|
|
1864
1854
|
const _response = yield core.fetcher({
|
|
1865
1855
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/publish`),
|
|
1866
1856
|
method: "POST",
|
|
1867
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
1857
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1868
1858
|
contentType: "application/json",
|
|
1869
1859
|
requestType: "json",
|
|
1870
1860
|
body: serializers.collections.ItemsPublishItemRequest.jsonOrThrow(request, {
|
|
@@ -57,5 +57,5 @@ export interface CreateBulkCollectionItemRequestBody {
|
|
|
57
57
|
isArchived?: boolean;
|
|
58
58
|
/** Indicates whether the item is in draft state. */
|
|
59
59
|
isDraft?: boolean;
|
|
60
|
-
fieldData
|
|
60
|
+
fieldData: Webflow.collections.CreateBulkCollectionItemRequestBodyFieldData;
|
|
61
61
|
}
|
|
@@ -2,4 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Webflow from "../../../../../index";
|
|
5
|
-
export declare type CreateBulkCollectionItemRequestBodyFieldData = Webflow.collections.
|
|
5
|
+
export declare type CreateBulkCollectionItemRequestBodyFieldData = Webflow.collections.SingleCmsItem
|
|
6
|
+
/**
|
|
7
|
+
* A list of CMS items to create */
|
|
8
|
+
| Webflow.collections.CreateBulkCollectionItemRequestBodyFieldDataItem[];
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Webflow from "../../../../../index";
|
|
5
|
-
export declare type ItemsCreateItemLiveRequest = Webflow.CollectionItem | Webflow.collections.
|
|
5
|
+
export declare type ItemsCreateItemLiveRequest = Webflow.CollectionItem | Webflow.collections.MultipleItems;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Webflow from "../../../../../index";
|
|
5
|
-
export declare type ItemsCreateItemRequest = Webflow.
|
|
5
|
+
export declare type ItemsCreateItemRequest = Webflow.CollectionItemPostSingle | Webflow.collections.MultipleItems;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Webflow from "../../../../../index";
|
|
5
|
-
export interface
|
|
5
|
+
export interface MultipleItems {
|
|
6
6
|
/** List of collection items to create */
|
|
7
7
|
items?: Webflow.CollectionItem[];
|
|
8
8
|
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
export * from "./ItemsListItemsRequestSortBy";
|
|
2
2
|
export * from "./ItemsListItemsRequestSortOrder";
|
|
3
|
-
export * from "./
|
|
3
|
+
export * from "./MultipleItems";
|
|
4
4
|
export * from "./ItemsCreateItemRequest";
|
|
5
5
|
export * from "./ItemsDeleteItemsRequestItemsItem";
|
|
6
6
|
export * from "./ItemsListItemsLiveRequestSortBy";
|
|
7
7
|
export * from "./ItemsListItemsLiveRequestSortOrder";
|
|
8
|
-
export * from "./ItemsCreateItemLiveRequestItems";
|
|
9
8
|
export * from "./ItemsCreateItemLiveRequest";
|
|
10
9
|
export * from "./ItemsDeleteItemsLiveRequestItemsItem";
|
|
11
|
-
export * from "./
|
|
10
|
+
export * from "./SingleCmsItem";
|
|
12
11
|
export * from "./CreateBulkCollectionItemRequestBodyFieldDataItem";
|
|
13
12
|
export * from "./CreateBulkCollectionItemRequestBodyFieldData";
|
|
14
13
|
export * from "./ItemsPublishItemResponse";
|
|
@@ -16,15 +16,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ItemsListItemsRequestSortBy"), exports);
|
|
18
18
|
__exportStar(require("./ItemsListItemsRequestSortOrder"), exports);
|
|
19
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./MultipleItems"), exports);
|
|
20
20
|
__exportStar(require("./ItemsCreateItemRequest"), exports);
|
|
21
21
|
__exportStar(require("./ItemsDeleteItemsRequestItemsItem"), exports);
|
|
22
22
|
__exportStar(require("./ItemsListItemsLiveRequestSortBy"), exports);
|
|
23
23
|
__exportStar(require("./ItemsListItemsLiveRequestSortOrder"), exports);
|
|
24
|
-
__exportStar(require("./ItemsCreateItemLiveRequestItems"), exports);
|
|
25
24
|
__exportStar(require("./ItemsCreateItemLiveRequest"), exports);
|
|
26
25
|
__exportStar(require("./ItemsDeleteItemsLiveRequestItemsItem"), exports);
|
|
27
|
-
__exportStar(require("./
|
|
26
|
+
__exportStar(require("./SingleCmsItem"), exports);
|
|
28
27
|
__exportStar(require("./CreateBulkCollectionItemRequestBodyFieldDataItem"), exports);
|
|
29
28
|
__exportStar(require("./CreateBulkCollectionItemRequestBodyFieldData"), exports);
|
|
30
29
|
__exportStar(require("./ItemsPublishItemResponse"), exports);
|
|
@@ -74,7 +74,7 @@ class Ecommerce {
|
|
|
74
74
|
const _response = yield core.fetcher({
|
|
75
75
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/ecommerce/settings`),
|
|
76
76
|
method: "GET",
|
|
77
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
77
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
requestType: "json",
|
|
80
80
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -83,7 +83,7 @@ class Forms {
|
|
|
83
83
|
const _response = yield core.fetcher({
|
|
84
84
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/forms`),
|
|
85
85
|
method: "GET",
|
|
86
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
86
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
87
87
|
contentType: "application/json",
|
|
88
88
|
queryParameters: _queryParams,
|
|
89
89
|
requestType: "json",
|
|
@@ -186,7 +186,7 @@ class Forms {
|
|
|
186
186
|
const _response = yield core.fetcher({
|
|
187
187
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `forms/${encodeURIComponent(formId)}`),
|
|
188
188
|
method: "GET",
|
|
189
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
189
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
190
190
|
contentType: "application/json",
|
|
191
191
|
requestType: "json",
|
|
192
192
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -295,7 +295,7 @@ class Forms {
|
|
|
295
295
|
const _response = yield core.fetcher({
|
|
296
296
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `forms/${encodeURIComponent(formId)}/submissions`),
|
|
297
297
|
method: "GET",
|
|
298
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
298
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
299
299
|
contentType: "application/json",
|
|
300
300
|
queryParameters: _queryParams,
|
|
301
301
|
requestType: "json",
|
|
@@ -396,7 +396,7 @@ class Forms {
|
|
|
396
396
|
const _response = yield core.fetcher({
|
|
397
397
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `form_submissions/${encodeURIComponent(formSubmissionId)}`),
|
|
398
398
|
method: "GET",
|
|
399
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
399
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
400
400
|
contentType: "application/json",
|
|
401
401
|
requestType: "json",
|
|
402
402
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -498,7 +498,7 @@ class Forms {
|
|
|
498
498
|
const _response = yield core.fetcher({
|
|
499
499
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `form_submissions/${encodeURIComponent(formSubmissionId)}`),
|
|
500
500
|
method: "PATCH",
|
|
501
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
501
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
502
502
|
contentType: "application/json",
|
|
503
503
|
requestType: "json",
|
|
504
504
|
body: serializers.FormsUpdateSubmissionRequest.jsonOrThrow(request, {
|
|
@@ -75,7 +75,7 @@ class Inventory {
|
|
|
75
75
|
const _response = yield core.fetcher({
|
|
76
76
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/inventory`),
|
|
77
77
|
method: "GET",
|
|
78
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
78
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
requestType: "json",
|
|
81
81
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -187,7 +187,7 @@ class Inventory {
|
|
|
187
187
|
const _response = yield core.fetcher({
|
|
188
188
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/inventory`),
|
|
189
189
|
method: "PATCH",
|
|
190
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
190
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
191
191
|
contentType: "application/json",
|
|
192
192
|
requestType: "json",
|
|
193
193
|
body: serializers.InventoryUpdateRequest.jsonOrThrow(request, {
|
|
@@ -86,7 +86,7 @@ class Orders {
|
|
|
86
86
|
const _response = yield core.fetcher({
|
|
87
87
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/orders`),
|
|
88
88
|
method: "GET",
|
|
89
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
89
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
90
90
|
contentType: "application/json",
|
|
91
91
|
queryParameters: _queryParams,
|
|
92
92
|
requestType: "json",
|
|
@@ -192,7 +192,7 @@ class Orders {
|
|
|
192
192
|
const _response = yield core.fetcher({
|
|
193
193
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/orders/${encodeURIComponent(orderId)}`),
|
|
194
194
|
method: "GET",
|
|
195
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
195
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
196
196
|
contentType: "application/json",
|
|
197
197
|
requestType: "json",
|
|
198
198
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -299,7 +299,7 @@ class Orders {
|
|
|
299
299
|
const _response = yield core.fetcher({
|
|
300
300
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/orders/${encodeURIComponent(orderId)}`),
|
|
301
301
|
method: "PATCH",
|
|
302
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
302
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
303
303
|
contentType: "application/json",
|
|
304
304
|
requestType: "json",
|
|
305
305
|
body: serializers.OrdersUpdateRequest.jsonOrThrow(request, {
|
|
@@ -409,7 +409,7 @@ class Orders {
|
|
|
409
409
|
const _response = yield core.fetcher({
|
|
410
410
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/orders/${encodeURIComponent(orderId)}/fulfill`),
|
|
411
411
|
method: "POST",
|
|
412
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
412
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
413
413
|
contentType: "application/json",
|
|
414
414
|
requestType: "json",
|
|
415
415
|
body: serializers.OrdersUpdateFulfillRequest.jsonOrThrow(request, {
|
|
@@ -518,7 +518,7 @@ class Orders {
|
|
|
518
518
|
const _response = yield core.fetcher({
|
|
519
519
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/orders/${encodeURIComponent(orderId)}/unfulfill`),
|
|
520
520
|
method: "POST",
|
|
521
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
521
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
522
522
|
contentType: "application/json",
|
|
523
523
|
requestType: "json",
|
|
524
524
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -624,7 +624,7 @@ class Orders {
|
|
|
624
624
|
const _response = yield core.fetcher({
|
|
625
625
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/orders/${encodeURIComponent(orderId)}/refund`),
|
|
626
626
|
method: "POST",
|
|
627
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
627
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
628
628
|
contentType: "application/json",
|
|
629
629
|
requestType: "json",
|
|
630
630
|
body: serializers.OrdersRefundRequest.jsonOrThrow(request, {
|
|
@@ -98,7 +98,7 @@ class Pages {
|
|
|
98
98
|
const _response = yield core.fetcher({
|
|
99
99
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/pages`),
|
|
100
100
|
method: "GET",
|
|
101
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
101
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
102
102
|
contentType: "application/json",
|
|
103
103
|
queryParameters: _queryParams,
|
|
104
104
|
requestType: "json",
|
|
@@ -204,7 +204,7 @@ class Pages {
|
|
|
204
204
|
const _response = yield core.fetcher({
|
|
205
205
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `pages/${encodeURIComponent(pageId)}`),
|
|
206
206
|
method: "GET",
|
|
207
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
207
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
208
208
|
contentType: "application/json",
|
|
209
209
|
queryParameters: _queryParams,
|
|
210
210
|
requestType: "json",
|
|
@@ -334,7 +334,7 @@ class Pages {
|
|
|
334
334
|
const _response = yield core.fetcher({
|
|
335
335
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `pages/${encodeURIComponent(pageId)}`),
|
|
336
336
|
method: "PUT",
|
|
337
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
337
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
338
338
|
contentType: "application/json",
|
|
339
339
|
queryParameters: _queryParams,
|
|
340
340
|
requestType: "json",
|
|
@@ -454,7 +454,7 @@ class Pages {
|
|
|
454
454
|
const _response = yield core.fetcher({
|
|
455
455
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `pages/${encodeURIComponent(pageId)}/dom`),
|
|
456
456
|
method: "GET",
|
|
457
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
457
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
458
458
|
contentType: "application/json",
|
|
459
459
|
queryParameters: _queryParams,
|
|
460
460
|
requestType: "json",
|
|
@@ -575,7 +575,7 @@ class Pages {
|
|
|
575
575
|
const _response = yield core.fetcher({
|
|
576
576
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `pages/${encodeURIComponent(pageId)}/dom`),
|
|
577
577
|
method: "POST",
|
|
578
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
578
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
579
579
|
contentType: "application/json",
|
|
580
580
|
queryParameters: _queryParams,
|
|
581
581
|
requestType: "json",
|
|
@@ -78,7 +78,7 @@ class Scripts {
|
|
|
78
78
|
const _response = yield core.fetcher({
|
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `pages/${encodeURIComponent(pageId)}/custom_code`),
|
|
80
80
|
method: "GET",
|
|
81
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
81
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
requestType: "json",
|
|
84
84
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -195,7 +195,7 @@ class Scripts {
|
|
|
195
195
|
const _response = yield core.fetcher({
|
|
196
196
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `pages/${encodeURIComponent(pageId)}/custom_code`),
|
|
197
197
|
method: "PUT",
|
|
198
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
198
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
199
199
|
contentType: "application/json",
|
|
200
200
|
requestType: "json",
|
|
201
201
|
body: serializers.ScriptApplyList.jsonOrThrow(request, {
|
|
@@ -303,7 +303,7 @@ class Scripts {
|
|
|
303
303
|
const _response = yield core.fetcher({
|
|
304
304
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `pages/${encodeURIComponent(pageId)}/custom_code`),
|
|
305
305
|
method: "DELETE",
|
|
306
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.
|
|
306
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.1", "User-Agent": "webflow-api/3.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
307
307
|
contentType: "application/json",
|
|
308
308
|
requestType: "json",
|
|
309
309
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|