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.
Files changed (156) hide show
  1. package/.mock/definition/__package__.yml +99 -5
  2. package/.mock/definition/collections/items.yml +21 -37
  3. package/.mock/definition/inventory.yml +2 -2
  4. package/MIGRATION.md +32 -15
  5. package/api/resources/accessGroups/client/Client.js +1 -1
  6. package/api/resources/assets/client/Client.js +8 -8
  7. package/api/resources/collections/client/Client.js +4 -4
  8. package/api/resources/collections/resources/fields/client/Client.js +3 -3
  9. package/api/resources/collections/resources/items/client/Client.d.ts +5 -15
  10. package/api/resources/collections/resources/items/client/Client.js +21 -31
  11. package/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +1 -1
  12. package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +4 -1
  13. package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts +3 -0
  14. package/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +1 -1
  15. package/api/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +1 -1
  16. package/{dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts → api/resources/collections/resources/items/types/MultipleItems.d.ts} +1 -1
  17. package/api/resources/collections/resources/items/types/{CreateBulkCollectionItemRequestBodyFieldDataName.d.ts → SingleCmsItem.d.ts} +1 -1
  18. package/api/resources/collections/resources/items/types/index.d.ts +2 -3
  19. package/api/resources/collections/resources/items/types/index.js +2 -3
  20. package/api/resources/ecommerce/client/Client.js +1 -1
  21. package/api/resources/forms/client/Client.js +5 -5
  22. package/api/resources/inventory/client/Client.js +2 -2
  23. package/api/resources/orders/client/Client.js +6 -6
  24. package/api/resources/pages/client/Client.js +5 -5
  25. package/api/resources/pages/resources/scripts/client/Client.js +3 -3
  26. package/api/resources/products/client/Client.js +6 -6
  27. package/api/resources/scripts/client/Client.js +3 -3
  28. package/api/resources/sites/client/Client.js +4 -4
  29. package/api/resources/sites/resources/activityLogs/client/Client.js +1 -1
  30. package/api/resources/sites/resources/scripts/client/Client.js +4 -4
  31. package/api/resources/token/client/Client.js +2 -2
  32. package/api/resources/users/client/Client.js +5 -5
  33. package/api/resources/webhooks/client/Client.js +4 -4
  34. package/api/types/CollectionItem.d.ts +1 -1
  35. package/api/types/CollectionItemFieldData.d.ts +2 -2
  36. package/api/types/CollectionItemPatchSingle.d.ts +24 -0
  37. package/api/types/CollectionItemPatchSingleFieldData.d.ts +11 -0
  38. package/api/types/CollectionItemPostSingle.d.ts +24 -0
  39. package/api/types/CollectionItemPostSingleFieldData.d.ts +11 -0
  40. package/api/types/index.d.ts +4 -0
  41. package/api/types/index.js +4 -0
  42. package/dist/api/resources/accessGroups/client/Client.js +1 -1
  43. package/dist/api/resources/assets/client/Client.js +8 -8
  44. package/dist/api/resources/collections/client/Client.js +4 -4
  45. package/dist/api/resources/collections/resources/fields/client/Client.js +3 -3
  46. package/dist/api/resources/collections/resources/items/client/Client.d.ts +5 -15
  47. package/dist/api/resources/collections/resources/items/client/Client.js +21 -31
  48. package/dist/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +1 -1
  49. package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +4 -1
  50. package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts +3 -0
  51. package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +1 -1
  52. package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +1 -1
  53. package/{api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts → dist/api/resources/collections/resources/items/types/MultipleItems.d.ts} +1 -1
  54. package/dist/api/resources/collections/resources/items/types/MultipleItems.js +5 -0
  55. package/dist/api/resources/collections/resources/items/types/{CreateBulkCollectionItemRequestBodyFieldDataName.d.ts → SingleCmsItem.d.ts} +1 -1
  56. package/dist/api/resources/collections/resources/items/types/SingleCmsItem.js +5 -0
  57. package/dist/api/resources/collections/resources/items/types/index.d.ts +2 -3
  58. package/dist/api/resources/collections/resources/items/types/index.js +2 -3
  59. package/dist/api/resources/ecommerce/client/Client.js +1 -1
  60. package/dist/api/resources/forms/client/Client.js +5 -5
  61. package/dist/api/resources/inventory/client/Client.js +2 -2
  62. package/dist/api/resources/orders/client/Client.js +6 -6
  63. package/dist/api/resources/pages/client/Client.js +5 -5
  64. package/dist/api/resources/pages/resources/scripts/client/Client.js +3 -3
  65. package/dist/api/resources/products/client/Client.js +6 -6
  66. package/dist/api/resources/scripts/client/Client.js +3 -3
  67. package/dist/api/resources/sites/client/Client.js +4 -4
  68. package/dist/api/resources/sites/resources/activityLogs/client/Client.js +1 -1
  69. package/dist/api/resources/sites/resources/scripts/client/Client.js +4 -4
  70. package/dist/api/resources/token/client/Client.js +2 -2
  71. package/dist/api/resources/users/client/Client.js +5 -5
  72. package/dist/api/resources/webhooks/client/Client.js +4 -4
  73. package/dist/api/types/CollectionItem.d.ts +1 -1
  74. package/dist/api/types/CollectionItemFieldData.d.ts +2 -2
  75. package/dist/api/types/CollectionItemPatchSingle.d.ts +24 -0
  76. package/dist/api/types/CollectionItemPatchSingle.js +5 -0
  77. package/dist/api/types/CollectionItemPatchSingleFieldData.d.ts +11 -0
  78. package/dist/api/types/CollectionItemPatchSingleFieldData.js +5 -0
  79. package/dist/api/types/CollectionItemPostSingle.d.ts +24 -0
  80. package/dist/api/types/CollectionItemPostSingle.js +5 -0
  81. package/dist/api/types/CollectionItemPostSingleFieldData.d.ts +11 -0
  82. package/dist/api/types/CollectionItemPostSingleFieldData.js +5 -0
  83. package/dist/api/types/index.d.ts +4 -0
  84. package/dist/api/types/index.js +4 -0
  85. package/dist/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +1 -1
  86. package/dist/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +1 -1
  87. package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +2 -2
  88. package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +2 -2
  89. package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +2 -2
  90. package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +2 -2
  91. package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +3 -3
  92. package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.js +3 -3
  93. package/dist/serialization/resources/collections/resources/items/types/{ItemsCreateItemRequestItems.d.ts → MultipleItems.d.ts} +2 -2
  94. package/dist/serialization/resources/collections/resources/items/types/{ItemsCreateItemRequestItems.js → MultipleItems.js} +2 -2
  95. package/dist/serialization/resources/collections/resources/items/types/{CreateBulkCollectionItemRequestBodyFieldDataName.d.ts → SingleCmsItem.d.ts} +2 -2
  96. package/dist/serialization/resources/collections/resources/items/types/{CreateBulkCollectionItemRequestBodyFieldDataName.js → SingleCmsItem.js} +2 -2
  97. package/dist/serialization/resources/collections/resources/items/types/index.d.ts +2 -3
  98. package/dist/serialization/resources/collections/resources/items/types/index.js +2 -3
  99. package/dist/serialization/types/CollectionItem.d.ts +1 -1
  100. package/dist/serialization/types/CollectionItem.js +1 -1
  101. package/dist/serialization/types/CollectionItemFieldData.d.ts +2 -2
  102. package/dist/serialization/types/CollectionItemFieldData.js +2 -2
  103. package/dist/serialization/types/CollectionItemPatchSingle.d.ts +20 -0
  104. package/dist/serialization/types/CollectionItemPatchSingle.js +41 -0
  105. package/dist/serialization/types/CollectionItemPatchSingleFieldData.d.ts +14 -0
  106. package/dist/serialization/types/CollectionItemPatchSingleFieldData.js +36 -0
  107. package/dist/serialization/types/CollectionItemPostSingle.d.ts +20 -0
  108. package/{serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js → dist/serialization/types/CollectionItemPostSingle.js} +12 -5
  109. package/dist/serialization/types/CollectionItemPostSingleFieldData.d.ts +14 -0
  110. package/dist/serialization/types/CollectionItemPostSingleFieldData.js +36 -0
  111. package/dist/serialization/types/index.d.ts +4 -0
  112. package/dist/serialization/types/index.js +4 -0
  113. package/dist/version.d.ts +1 -1
  114. package/dist/version.js +1 -1
  115. package/package.json +1 -1
  116. package/reference.md +2 -12
  117. package/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +1 -1
  118. package/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +1 -1
  119. package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +2 -2
  120. package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +2 -2
  121. package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +2 -2
  122. package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +2 -2
  123. package/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +3 -3
  124. package/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.js +3 -3
  125. package/serialization/resources/collections/resources/items/types/{ItemsCreateItemRequestItems.d.ts → MultipleItems.d.ts} +2 -2
  126. package/serialization/resources/collections/resources/items/types/{ItemsCreateItemRequestItems.js → MultipleItems.js} +2 -2
  127. package/serialization/resources/collections/resources/items/types/{CreateBulkCollectionItemRequestBodyFieldDataName.d.ts → SingleCmsItem.d.ts} +2 -2
  128. package/serialization/resources/collections/resources/items/types/{CreateBulkCollectionItemRequestBodyFieldDataName.js → SingleCmsItem.js} +2 -2
  129. package/serialization/resources/collections/resources/items/types/index.d.ts +2 -3
  130. package/serialization/resources/collections/resources/items/types/index.js +2 -3
  131. package/serialization/types/CollectionItem.d.ts +1 -1
  132. package/serialization/types/CollectionItem.js +1 -1
  133. package/serialization/types/CollectionItemFieldData.d.ts +2 -2
  134. package/serialization/types/CollectionItemFieldData.js +2 -2
  135. package/serialization/types/CollectionItemPatchSingle.d.ts +20 -0
  136. package/serialization/types/CollectionItemPatchSingle.js +41 -0
  137. package/serialization/types/CollectionItemPatchSingleFieldData.d.ts +14 -0
  138. package/serialization/types/CollectionItemPatchSingleFieldData.js +36 -0
  139. package/serialization/types/CollectionItemPostSingle.d.ts +20 -0
  140. package/{dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js → serialization/types/CollectionItemPostSingle.js} +12 -5
  141. package/serialization/types/CollectionItemPostSingleFieldData.d.ts +14 -0
  142. package/serialization/types/CollectionItemPostSingleFieldData.js +36 -0
  143. package/serialization/types/index.d.ts +4 -0
  144. package/serialization/types/index.js +4 -0
  145. package/version.d.ts +1 -1
  146. package/version.js +1 -1
  147. package/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.d.ts +0 -8
  148. package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.d.ts +0 -8
  149. package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts +0 -13
  150. package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts +0 -13
  151. /package/api/resources/collections/resources/items/types/{CreateBulkCollectionItemRequestBodyFieldDataName.js → MultipleItems.js} +0 -0
  152. /package/api/resources/collections/resources/items/types/{ItemsCreateItemLiveRequestItems.js → SingleCmsItem.js} +0 -0
  153. /package/api/{resources/collections/resources/items/types/ItemsCreateItemRequestItems.js → types/CollectionItemPatchSingle.js} +0 -0
  154. /package/{dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.js → api/types/CollectionItemPatchSingleFieldData.js} +0 -0
  155. /package/{dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js → api/types/CollectionItemPostSingle.js} +0 -0
  156. /package/{dist/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.js → api/types/CollectionItemPostSingleFieldData.js} +0 -0
@@ -85,7 +85,7 @@ class Fields {
85
85
  const _response = yield core.fetcher({
86
86
  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)}/fields`),
87
87
  method: "POST",
88
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
+ 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),
89
89
  contentType: "application/json",
90
90
  requestType: "json",
91
91
  body: serializers.collections.FieldCreate.jsonOrThrow(request, {
@@ -188,7 +188,7 @@ class Fields {
188
188
  const _response = yield core.fetcher({
189
189
  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)}/fields/${encodeURIComponent(fieldId)}`),
190
190
  method: "DELETE",
191
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
191
+ 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),
192
192
  contentType: "application/json",
193
193
  requestType: "json",
194
194
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -285,7 +285,7 @@ class Fields {
285
285
  const _response = yield core.fetcher({
286
286
  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)}/fields/${encodeURIComponent(fieldId)}`),
287
287
  method: "PATCH",
288
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
288
+ 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),
289
289
  contentType: "application/json",
290
290
  requestType: "json",
291
291
  body: serializers.collections.FieldUpdate.jsonOrThrow(request, {
@@ -386,7 +386,7 @@ export declare class Items {
386
386
  * }]
387
387
  * })
388
388
  */
389
- createItems(collectionId: string, request?: Webflow.collections.CreateBulkCollectionItemRequestBody, requestOptions?: Items.RequestOptions): Promise<Webflow.BulkCollectionItem>;
389
+ createItems(collectionId: string, request: Webflow.collections.CreateBulkCollectionItemRequestBody, requestOptions?: Items.RequestOptions): Promise<Webflow.BulkCollectionItem>;
390
390
  /**
391
391
  * Get details of a selected Collection Item.
392
392
  *
@@ -434,7 +434,7 @@ export declare class Items {
434
434
  *
435
435
  * @param {string} collectionId - Unique identifier for a Collection
436
436
  * @param {string} itemId - Unique identifier for an Item
437
- * @param {Webflow.CollectionItem} request
437
+ * @param {Webflow.CollectionItemPatchSingle} request
438
438
  * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
439
439
  *
440
440
  * @throws {@link Webflow.BadRequestError}
@@ -445,11 +445,6 @@ export declare class Items {
445
445
  *
446
446
  * @example
447
447
  * await client.collections.items.updateItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
448
- * id: "42b720ef280c7a7a3be8cabe",
449
- * cmsLocaleId: "653ad57de882f528b32e810e",
450
- * lastPublished: "2022-11-29T16:22:43.159Z",
451
- * lastUpdated: "2022-11-17T17:19:43.282Z",
452
- * createdOn: "2022-11-17T17:11:57.148Z",
453
448
  * isArchived: false,
454
449
  * isDraft: false,
455
450
  * fieldData: {
@@ -458,7 +453,7 @@ export declare class Items {
458
453
  * }
459
454
  * })
460
455
  */
461
- updateItem(collectionId: string, itemId: string, request: Webflow.CollectionItem, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
456
+ updateItem(collectionId: string, itemId: string, request: Webflow.CollectionItemPatchSingle, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
462
457
  /**
463
458
  * Get details of a selected Collection live Item.
464
459
  *
@@ -508,7 +503,7 @@ export declare class Items {
508
503
  *
509
504
  * @param {string} collectionId - Unique identifier for a Collection
510
505
  * @param {string} itemId - Unique identifier for an Item
511
- * @param {Webflow.CollectionItem} request
506
+ * @param {Webflow.CollectionItemPatchSingle} request
512
507
  * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
513
508
  *
514
509
  * @throws {@link Webflow.BadRequestError}
@@ -519,11 +514,6 @@ export declare class Items {
519
514
  *
520
515
  * @example
521
516
  * await client.collections.items.updateItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
522
- * id: "42b720ef280c7a7a3be8cabe",
523
- * cmsLocaleId: "653ad57de882f528b32e810e",
524
- * lastPublished: "2022-11-29T16:22:43.159Z",
525
- * lastUpdated: "2022-11-17T17:19:43.282Z",
526
- * createdOn: "2022-11-17T17:11:57.148Z",
527
517
  * isArchived: false,
528
518
  * isDraft: false,
529
519
  * fieldData: {
@@ -532,7 +522,7 @@ export declare class Items {
532
522
  * }
533
523
  * })
534
524
  */
535
- updateItemLive(collectionId: string, itemId: string, request: Webflow.CollectionItem, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
525
+ updateItemLive(collectionId: string, itemId: string, request: Webflow.CollectionItemPatchSingle, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
536
526
  /**
537
527
  * Publish an item or multiple items.
538
528
  *
@@ -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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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 = {}, requestOptions) {
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.CollectionItem} request
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.CollectionItem.jsonOrThrow(request, {
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.CollectionItem} request
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.CollectionItem.jsonOrThrow(request, {
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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?: Webflow.collections.CreateBulkCollectionItemRequestBodyFieldData;
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.CreateBulkCollectionItemRequestBodyFieldDataName | Webflow.collections.CreateBulkCollectionItemRequestBodyFieldDataItem[];
5
+ export declare type CreateBulkCollectionItemRequestBodyFieldData = Webflow.collections.SingleCmsItem
6
+ /**
7
+ * A list of CMS items to create */
8
+ | Webflow.collections.CreateBulkCollectionItemRequestBodyFieldDataItem[];
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * A single CMS item to create
6
+ */
4
7
  export interface CreateBulkCollectionItemRequestBodyFieldDataItem {
5
8
  /** The name of the item. */
6
9
  name: string;
@@ -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.ItemsCreateItemLiveRequestItems;
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.CollectionItem | Webflow.collections.ItemsCreateItemRequestItems;
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 ItemsCreateItemLiveRequestItems {
5
+ export interface MultipleItems {
6
6
  /** List of collection items to create */
7
7
  items?: Webflow.CollectionItem[];
8
8
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface CreateBulkCollectionItemRequestBodyFieldDataName {
4
+ export interface SingleCmsItem {
5
5
  /** The name of the item. */
6
6
  name: string;
7
7
  /**
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +1,13 @@
1
1
  export * from "./ItemsListItemsRequestSortBy";
2
2
  export * from "./ItemsListItemsRequestSortOrder";
3
- export * from "./ItemsCreateItemRequestItems";
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 "./CreateBulkCollectionItemRequestBodyFieldDataName";
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("./ItemsCreateItemRequestItems"), exports);
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("./CreateBulkCollectionItemRequestBodyFieldDataName"), exports);
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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, {