From e9fdcb4661915146c33aa76e86beab142062766f Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 3 Dec 2024 23:45:59 +0000 Subject: [PATCH] SDK regeneration --- .mock/definition/__package__.yml | 2 +- .mock/definition/assets.yml | 2 + .mock/definition/collections.yml | 2 + .mock/definition/collections/items.yml | 34 ++++++---- .mock/definition/forms.yml | 2 + .mock/definition/orders.yml | 68 +++++++++++++++++++ .mock/definition/pages.yml | 8 +++ .mock/definition/scripts.yml | 3 + .mock/definition/sites.yml | 2 + .mock/definition/sites/activityLogs.yml | 4 ++ .mock/definition/sites/scripts.yml | 1 + .mock/definition/webhooks.yml | 4 ++ reference.md | 2 - .../resources/items/client/Client.ts | 6 -- src/api/types/CollectionItem.ts | 2 +- src/serialization/types/CollectionItem.ts | 4 +- 16 files changed, 120 insertions(+), 26 deletions(-) diff --git a/.mock/definition/__package__.yml b/.mock/definition/__package__.yml index 8568cdf2..640e6348 100644 --- a/.mock/definition/__package__.yml +++ b/.mock/definition/__package__.yml @@ -570,7 +570,7 @@ types: items properties: id: - type: string + type: optional docs: Unique identifier for the Item cmsLocaleId: type: optional diff --git a/.mock/definition/assets.yml b/.mock/definition/assets.yml index 432eb7f0..5614b78b 100644 --- a/.mock/definition/assets.yml +++ b/.mock/definition/assets.yml @@ -53,6 +53,7 @@ service: 660d83ce30f3a599ddb0bdb3_Screenshot%202024-03-20%20at%209.03.24%E2%80%AFPM-p-500.png format: png width: 500 + height: 900 quality: 100 altText: A red chair create: @@ -306,6 +307,7 @@ service: assetFolders: - id: 6390c49774a71f0e3c1a08ee displayName: emoji icons + parentFolder: 6390c49774a71f99f21a08eb assets: - 63e5889e7fe4eafa7384cea4 - 659595234426a9fcbad57043 diff --git a/.mock/definition/collections.yml b/.mock/definition/collections.yml index b1abc2e3..a43baffd 100644 --- a/.mock/definition/collections.yml +++ b/.mock/definition/collections.yml @@ -112,6 +112,7 @@ service: type: PlainText slug: name displayName: Name + helpText: helpText get: path: /collections/{collection_id} method: GET @@ -154,6 +155,7 @@ service: type: PlainText slug: name displayName: Name + helpText: helpText delete: path: /collections/{collection_id} method: DELETE diff --git a/.mock/definition/collections/items.yml b/.mock/definition/collections/items.yml index 2db7fdaf..a21b85fd 100644 --- a/.mock/definition/collections/items.yml +++ b/.mock/definition/collections/items.yml @@ -251,7 +251,6 @@ service: path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 request: - id: 580e64008c9a982ac9b8b754 isArchived: false isDraft: false fieldData: @@ -274,14 +273,12 @@ service: collection_id: 580e63fc8c9a982ac9b8b745 request: items: - - id: 580e64008c9a982ac9b8b754 - isArchived: false + - isArchived: false isDraft: false fieldData: name: Senior Data Analyst slug: senior-data-analyst - - id: 580e64008c9a982ac9b8b754 - isArchived: false + - isArchived: false isDraft: false fieldData: name: Product Manager @@ -397,7 +394,7 @@ service: slug: hasta-luego-y-gracias response: body: - id: 580e64008c9a982ac9b8b754 + id: id cmsLocaleId: 653ad57de882f528b32e810e lastPublished: '2023-03-17T18:47:35.560Z' lastUpdated: '2023-03-17T18:47:35.560Z' @@ -426,7 +423,7 @@ service: slug: product-manager response: body: - id: 580e64008c9a982ac9b8b754 + id: id cmsLocaleId: 653ad57de882f528b32e810e lastPublished: '2023-03-17T18:47:35.560Z' lastUpdated: '2023-03-17T18:47:35.560Z' @@ -463,7 +460,7 @@ service: slug: hasta-luego-y-gracias response: body: - id: 580e64008c9a982ac9b8b754 + id: id cmsLocaleId: 653ad57de882f528b32e810e lastPublished: '2023-03-17T18:47:35.560Z' lastUpdated: '2023-03-17T18:47:35.560Z' @@ -500,7 +497,7 @@ service: slug: hasta-luego-y-gracias response: body: - id: 580e64008c9a982ac9b8b754 + id: id cmsLocaleId: 653ad57de882f528b32e810e lastPublished: '2023-03-17T18:47:35.560Z' lastUpdated: '2023-03-17T18:47:35.560Z' @@ -634,7 +631,6 @@ service: path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 request: - id: 580e64008c9a982ac9b8b754 isArchived: false isDraft: false fieldData: @@ -657,14 +653,12 @@ service: collection_id: 580e63fc8c9a982ac9b8b745 request: items: - - id: 580e64008c9a982ac9b8b754 - isArchived: false + - isArchived: false isDraft: false fieldData: name: Senior Data Analyst slug: senior-data-analyst - - id: 580e64008c9a982ac9b8b754 - isArchived: false + - isArchived: false isDraft: false fieldData: name: Product Manager @@ -787,6 +781,7 @@ service: items: - id: 66f6ed9576ddacf3149d5ea6 cmsLocaleId: 66f6e966c9e1dc700a857ca5 + lastPublished: '2023-03-17T18:47:35.560Z' lastUpdated: '2024-09-27T17:38:29.066Z' createdOn: '2024-09-27T17:38:29.066Z' isArchived: true @@ -796,6 +791,7 @@ service: slug: ne-paniquez-pas - id: 66f6ed9576ddacf3149d5ea6 cmsLocaleId: 66f6e966c9e1dc700a857ca4 + lastPublished: '2023-03-17T18:47:35.560Z' lastUpdated: '2024-09-27T17:38:29.066Z' createdOn: '2024-09-27T17:38:29.066Z' isArchived: true @@ -805,6 +801,7 @@ service: slug: no-entrar-en-panico - id: 66f6ed9576ddacf3149d5eaa cmsLocaleId: 66f6e966c9e1dc700a857ca5 + lastPublished: '2023-03-17T18:47:35.560Z' lastUpdated: '2024-09-27T17:38:29.066Z' createdOn: '2024-09-27T17:38:29.066Z' isArchived: true @@ -814,6 +811,7 @@ service: slug: au-revoir-et-merci - id: 66f6ed9576ddacf3149d5eaa cmsLocaleId: 66f6e966c9e1dc700a857ca4 + lastPublished: '2023-03-17T18:47:35.560Z' lastUpdated: '2024-09-27T17:38:29.066Z' createdOn: '2024-09-27T17:38:29.066Z' isArchived: true @@ -843,6 +841,7 @@ service: items: - id: 66f6ed9576ddacf3149d5ea6 cmsLocaleId: 66f6e966c9e1dc700a857ca5 + lastPublished: '2023-03-17T18:47:35.560Z' lastUpdated: '2024-09-27T17:38:29.066Z' createdOn: '2024-09-27T17:38:29.066Z' isArchived: true @@ -852,6 +851,7 @@ service: slug: ne-paniquez-pas - id: 66f6ed9576ddacf3149d5ea6 cmsLocaleId: 66f6e966c9e1dc700a857ca4 + lastPublished: '2023-03-17T18:47:35.560Z' lastUpdated: '2024-09-27T17:38:29.066Z' createdOn: '2024-09-27T17:38:29.066Z' isArchived: true @@ -861,6 +861,7 @@ service: slug: no-entrar-en-panico - id: 66f6ed9576ddacf3149d5eaa cmsLocaleId: 66f6e966c9e1dc700a857ca5 + lastPublished: '2023-03-17T18:47:35.560Z' lastUpdated: '2024-09-27T17:38:29.066Z' createdOn: '2024-09-27T17:38:29.066Z' isArchived: true @@ -870,6 +871,7 @@ service: slug: au-revoir-et-merci - id: 66f6ed9576ddacf3149d5eaa cmsLocaleId: 66f6e966c9e1dc700a857ca4 + lastPublished: '2023-03-17T18:47:35.560Z' lastUpdated: '2024-09-27T17:38:29.066Z' createdOn: '2024-09-27T17:38:29.066Z' isArchived: true @@ -907,6 +909,7 @@ service: items: - id: 66f6ed9576ddacf3149d5ea6 cmsLocaleId: 66f6e966c9e1dc700a857ca5 + lastPublished: '2023-03-17T18:47:35.560Z' lastUpdated: '2024-09-27T17:38:29.066Z' createdOn: '2024-09-27T17:38:29.066Z' isArchived: true @@ -916,6 +919,7 @@ service: slug: ne-paniquez-pas - id: 66f6ed9576ddacf3149d5ea6 cmsLocaleId: 66f6e966c9e1dc700a857ca4 + lastPublished: '2023-03-17T18:47:35.560Z' lastUpdated: '2024-09-27T17:38:29.066Z' createdOn: '2024-09-27T17:38:29.066Z' isArchived: true @@ -925,6 +929,7 @@ service: slug: no-entrar-en-panico - id: 66f6ed9576ddacf3149d5eaa cmsLocaleId: 66f6e966c9e1dc700a857ca5 + lastPublished: '2023-03-17T18:47:35.560Z' lastUpdated: '2024-09-27T17:38:29.066Z' createdOn: '2024-09-27T17:38:29.066Z' isArchived: true @@ -934,6 +939,7 @@ service: slug: au-revoir-et-merci - id: 66f6ed9576ddacf3149d5eaa cmsLocaleId: 66f6e966c9e1dc700a857ca4 + lastPublished: '2023-03-17T18:47:35.560Z' lastUpdated: '2024-09-27T17:38:29.066Z' createdOn: '2024-09-27T17:38:29.066Z' isArchived: true diff --git a/.mock/definition/forms.yml b/.mock/definition/forms.yml index 9ff8f53f..fad8637b 100644 --- a/.mock/definition/forms.yml +++ b/.mock/definition/forms.yml @@ -127,6 +127,7 @@ service: 660d5bcc9c0772150459dfb1: displayName: Name type: Plain + placeholder: Enter your email userVisible: true 589a331aa51e760df7ccb89d: displayName: Email @@ -136,6 +137,7 @@ service: responseSettings: redirectUrl: https://example.com redirectMethod: GET + redirectAction: POST https://example.com sendEmailConfirmation: true id: 589a331aa51e760df7ccb89e siteId: 580e63e98c9a982ac9b8b741 diff --git a/.mock/definition/orders.yml b/.mock/definition/orders.yml index ac0ce37b..75be2224 100644 --- a/.mock/definition/orders.yml +++ b/.mock/definition/orders.yml @@ -80,6 +80,11 @@ service: Please gift wrap with a personal note saying "Happy Birthday, Ford! 🎉 acceptedOn: '2024-04-10T13:16:21Z' + fulfilledOn: '2018-12-03T22:06:15Z' + refundedOn: '2018-12-03T22:06:15Z' + disputedOn: '2018-12-03T22:06:15Z' + disputeUpdatedOn: '2018-12-03T22:06:15Z' + disputeLastStatus: warning_needs_response customerPaid: unit: USD value: '5892' @@ -195,6 +200,13 @@ service: expires: year: 2025 month: 4 + paypalDetails: + orderId: 1a2b3c4d5e6f7g8h9i0j + payerId: 9k8j7i6h5g4f3e2d1c0b + captureId: qwe123rty456uio789p + refundId: abcde12345fghij67890 + refundReason: Customer requested refund + disputeId: zxcvbnm987poiuytrewq customData: - key: value metadata: @@ -222,7 +234,11 @@ service: comment: Example comment to myself orderComment: '' acceptedOn: '2024-03-29T21:29:21Z' + fulfilledOn: '2018-12-03T22:06:15Z' refundedOn: '2024-04-08T18:25:04Z' + disputedOn: '2018-12-03T22:06:15Z' + disputeUpdatedOn: '2018-12-03T22:06:15Z' + disputeLastStatus: warning_needs_response customerPaid: unit: USD value: '5892' @@ -342,6 +358,13 @@ service: expires: year: 2024 month: 4 + paypalDetails: + orderId: 1a2b3c4d5e6f7g8h9i0j + payerId: 9k8j7i6h5g4f3e2d1c0b + captureId: qwe123rty456uio789p + refundId: abcde12345fghij67890 + refundReason: Customer requested refund + disputeId: zxcvbnm987poiuytrewq customData: - key: value metadata: @@ -547,10 +570,12 @@ service: length: 40 purchasedItemsCount: 2 stripeDetails: + subscriptionId: sub_1J6xwG2eZvKYlo2CXu9Zt0Tn paymentMethod: pm_1OzmzBJYFi4lcbXWHKNdXU7j paymentIntentId: pi_3OzmzDJYFi4lcbXW1hTBW6ft customerId: cus_PpRsNHwWdUoRKR chargeId: ch_3OzmzDJYFi4lcbXW1ndkkrH2 + disputeId: disputeId refundId: re_3OzmzDJYFi4lcbXW1kFAmlBk refundReason: fraudulent stripeCard: @@ -560,6 +585,13 @@ service: expires: year: 2024 month: 4 + paypalDetails: + orderId: 1a2b3c4d5e6f7g8h9i0j + payerId: 9k8j7i6h5g4f3e2d1c0b + captureId: qwe123rty456uio789p + refundId: abcde12345fghij67890 + refundReason: Customer requested refund + disputeId: zxcvbnm987poiuytrewq customData: - key: value metadata: @@ -780,10 +812,12 @@ service: length: 40 purchasedItemsCount: 2 stripeDetails: + subscriptionId: sub_1J6xwG2eZvKYlo2CXu9Zt0Tn paymentMethod: pm_1OzmzBJYFi4lcbXWHKNdXU7j paymentIntentId: pi_3OzmzDJYFi4lcbXW1hTBW6ft customerId: cus_PpRsNHwWdUoRKR chargeId: ch_3OzmzDJYFi4lcbXW1ndkkrH2 + disputeId: disputeId refundId: re_3OzmzDJYFi4lcbXW1kFAmlBk refundReason: fraudulent stripeCard: @@ -793,6 +827,13 @@ service: expires: year: 2024 month: 4 + paypalDetails: + orderId: 1a2b3c4d5e6f7g8h9i0j + payerId: 9k8j7i6h5g4f3e2d1c0b + captureId: qwe123rty456uio789p + refundId: abcde12345fghij67890 + refundReason: Customer requested refund + disputeId: zxcvbnm987poiuytrewq customData: - key: value metadata: @@ -1003,10 +1044,12 @@ service: length: 40 purchasedItemsCount: 2 stripeDetails: + subscriptionId: sub_1J6xwG2eZvKYlo2CXu9Zt0Tn paymentMethod: pm_1OzmzBJYFi4lcbXWHKNdXU7j paymentIntentId: pi_3OzmzDJYFi4lcbXW1hTBW6ft customerId: cus_PpRsNHwWdUoRKR chargeId: ch_3OzmzDJYFi4lcbXW1ndkkrH2 + disputeId: disputeId refundId: re_3OzmzDJYFi4lcbXW1kFAmlBk refundReason: fraudulent stripeCard: @@ -1016,6 +1059,13 @@ service: expires: year: 2024 month: 4 + paypalDetails: + orderId: 1a2b3c4d5e6f7g8h9i0j + payerId: 9k8j7i6h5g4f3e2d1c0b + captureId: qwe123rty456uio789p + refundId: abcde12345fghij67890 + refundReason: Customer requested refund + disputeId: zxcvbnm987poiuytrewq customData: - key: value metadata: @@ -1216,10 +1266,12 @@ service: length: 40 purchasedItemsCount: 2 stripeDetails: + subscriptionId: sub_1J6xwG2eZvKYlo2CXu9Zt0Tn paymentMethod: pm_1OzmzBJYFi4lcbXWHKNdXU7j paymentIntentId: pi_3OzmzDJYFi4lcbXW1hTBW6ft customerId: cus_PpRsNHwWdUoRKR chargeId: ch_3OzmzDJYFi4lcbXW1ndkkrH2 + disputeId: disputeId refundId: re_3OzmzDJYFi4lcbXW1kFAmlBk refundReason: fraudulent stripeCard: @@ -1229,6 +1281,13 @@ service: expires: year: 2024 month: 4 + paypalDetails: + orderId: 1a2b3c4d5e6f7g8h9i0j + payerId: 9k8j7i6h5g4f3e2d1c0b + captureId: qwe123rty456uio789p + refundId: abcde12345fghij67890 + refundReason: Customer requested refund + disputeId: zxcvbnm987poiuytrewq customData: - key: value metadata: @@ -1439,10 +1498,12 @@ service: length: 40 purchasedItemsCount: 2 stripeDetails: + subscriptionId: sub_1J6xwG2eZvKYlo2CXu9Zt0Tn paymentMethod: pm_1OzmzBJYFi4lcbXWHKNdXU7j paymentIntentId: pi_3OzmzDJYFi4lcbXW1hTBW6ft customerId: cus_PpRsNHwWdUoRKR chargeId: ch_3OzmzDJYFi4lcbXW1ndkkrH2 + disputeId: disputeId refundId: re_3OzmzDJYFi4lcbXW1kFAmlBk refundReason: fraudulent stripeCard: @@ -1452,6 +1513,13 @@ service: expires: year: 2024 month: 4 + paypalDetails: + orderId: 1a2b3c4d5e6f7g8h9i0j + payerId: 9k8j7i6h5g4f3e2d1c0b + captureId: qwe123rty456uio789p + refundId: abcde12345fghij67890 + refundReason: Customer requested refund + disputeId: zxcvbnm987poiuytrewq customData: - key: value metadata: diff --git a/.mock/definition/pages.yml b/.mock/definition/pages.yml index 94a952bb..b3fdcd1b 100644 --- a/.mock/definition/pages.yml +++ b/.mock/definition/pages.yml @@ -56,6 +56,8 @@ service: siteId: 6258612d1ee792848f805dcf title: Guide to the Galaxy slug: guide-to-the-galaxy + parentId: 6419db964a9c435aa3af6251 + collectionId: 6390c49774a71f12831a08e3 createdOn: '2024-03-11T10:42:00Z' lastUpdated: '2024-03-11T10:42:42Z' archived: false @@ -81,6 +83,8 @@ service: siteId: 6258612d1ee792848f805dcf title: Towel Day Celebrations slug: towel-day + parentId: 6419db964a9c435aa3af6251 + collectionId: 6390c49774a71f12831a08e3 createdOn: '2024-05-25T09:00:00Z' lastUpdated: '2024-05-25T09:42:00Z' archived: false @@ -151,6 +155,8 @@ service: siteId: 6258612d1ee792848f805dcf title: Guide to the Galaxy slug: guide-to-the-galaxy + parentId: 6419db964a9c435aa3af6251 + collectionId: 6390c49774a71f12831a08e3 createdOn: '2024-03-11T10:42:00Z' lastUpdated: '2024-03-11T10:42:42Z' archived: false @@ -242,6 +248,8 @@ service: siteId: 6258612d1ee792848f805dcf title: Guide to the Galaxy slug: guide-to-the-galaxy + parentId: 6419db964a9c435aa3af6251 + collectionId: 6390c49774a71f12831a08e3 createdOn: '2024-03-11T10:42:00Z' lastUpdated: '2024-03-11T10:42:42Z' archived: false diff --git a/.mock/definition/scripts.yml b/.mock/definition/scripts.yml index 1bd50bb8..7fde1147 100644 --- a/.mock/definition/scripts.yml +++ b/.mock/definition/scripts.yml @@ -56,6 +56,7 @@ service: canCopy: false displayName: Alert hostedLocation: https://cdn.webflow.io/.../alert-0.0.1.js + integrityHash: integrityHash createdOn: '2022-10-26T00:28:54.191Z' lastUpdated: lastUpdated version: 0.0.1 @@ -63,6 +64,7 @@ service: canCopy: false displayName: Alert hostedLocation: https://cdn.webflow.io/.../alert-0.0.2.js + integrityHash: integrityHash createdOn: '2022-10-26T00:28:54.191Z' lastUpdated: lastUpdated version: 0.0.2 @@ -247,6 +249,7 @@ service: displayName: Alert hostedLocation: >- https://uploads-ssl.webflow.com/6258612d1ee792848f805dcf%2F64b6c769ff52ba6c3d904a91%2F660d6e15b3d1696f2d2b1447%2Falert-0.0.1.js + integrityHash: integrityHash createdOn: '2022-10-26T00:28:54.191Z' lastUpdated: lastUpdated version: 0.0.1 diff --git a/.mock/definition/sites.yml b/.mock/definition/sites.yml index 590df510..31a7f313 100644 --- a/.mock/definition/sites.yml +++ b/.mock/definition/sites.yml @@ -76,6 +76,7 @@ service: previewUrl: >- https://d1otoma47x30pg.cloudfront.net/42e63e98c9a982ac9b8b742/198110121200.png timeZone: DeepSpace/Depression + parentFolderId: 1as2d3f4g5h6j7k8l9z0x1c2v3b4n5m6 customDomains: - id: 589a331aa51e760df7ccb89f url: marvin.blog @@ -108,6 +109,7 @@ service: previewUrl: >- https://d1otoma47x30pg.cloudfront.net/42e63e98c9a982ac9b8b743/198210121200.png timeZone: Vogsphere/PoetryHall + parentFolderId: 1as2d3f4g5h6j7k8l9z0x1c2v3b4n5m6 customDomains: - id: 589a331aa51e760df7ccb8a0 url: vogonpoetry.galaxy diff --git a/.mock/definition/sites/activityLogs.yml b/.mock/definition/sites/activityLogs.yml index 6f6b9114..1e264119 100644 --- a/.mock/definition/sites/activityLogs.yml +++ b/.mock/definition/sites/activityLogs.yml @@ -53,6 +53,10 @@ service: displayName: John Doe resourceId: 654c16c7b229e56bcf26870c resourceName: foo-bar + newValue: newValue + previousValue: previousValue + payload: + key: value pagination: limit: 25 offset: 0 diff --git a/.mock/definition/sites/scripts.yml b/.mock/definition/sites/scripts.yml index c56c6c86..eef5e634 100644 --- a/.mock/definition/sites/scripts.yml +++ b/.mock/definition/sites/scripts.yml @@ -201,6 +201,7 @@ service: body: blocks: - siteId: 6258612d1ee792848f805dcf + pageId: pageId type: site scripts: - id: chartjs diff --git a/.mock/definition/webhooks.yml b/.mock/definition/webhooks.yml index e72b6cce..e32db3df 100644 --- a/.mock/definition/webhooks.yml +++ b/.mock/definition/webhooks.yml @@ -118,6 +118,8 @@ service: url: https://webhook.site/7f7f7f7f-7f7f-7f7f-7f7f-7f7f7f7f7f7f workspaceId: 4f4e46fd476ea8c507000001 siteId: 562ac0395358780a1f5e6fbd + filter: + name: My Form lastTriggered: '2023-02-08T23:59:28Z' createdOn: '2022-11-08T23:59:28Z' get: @@ -154,6 +156,8 @@ service: url: https://webhook.site/7f7f7f7f-7f7f-7f7f-7f7f-7f7f7f7f7f7f workspaceId: 4f4e46fd476ea8c507000001 siteId: 562ac0395358780a1f5e6fbd + filter: + name: My Form lastTriggered: '2023-02-08T23:59:28Z' createdOn: '2022-11-08T23:59:28Z' delete: diff --git a/reference.md b/reference.md index ed0a88f1..5633c5e1 100644 --- a/reference.md +++ b/reference.md @@ -4515,7 +4515,6 @@ Required scope | `CMS:write` ```typescript await client.collections.items.createItem("580e63fc8c9a982ac9b8b745", { - id: "580e64008c9a982ac9b8b754", isArchived: false, isDraft: false, fieldData: { @@ -4856,7 +4855,6 @@ Required scope | `CMS:write` ```typescript await client.collections.items.createItemLive("580e63fc8c9a982ac9b8b745", { - id: "580e64008c9a982ac9b8b754", isArchived: false, isDraft: false, fieldData: { diff --git a/src/api/resources/collections/resources/items/client/Client.ts b/src/api/resources/collections/resources/items/client/Client.ts index 2839e57c..3b8006e3 100644 --- a/src/api/resources/collections/resources/items/client/Client.ts +++ b/src/api/resources/collections/resources/items/client/Client.ts @@ -204,7 +204,6 @@ export class Items { * * @example * await client.collections.items.createItem("580e63fc8c9a982ac9b8b745", { - * id: "580e64008c9a982ac9b8b754", * isArchived: false, * isDraft: false, * fieldData: { @@ -216,7 +215,6 @@ export class Items { * @example * await client.collections.items.createItem("580e63fc8c9a982ac9b8b745", { * items: [{ - * id: "580e64008c9a982ac9b8b754", * isArchived: false, * isDraft: false, * fieldData: { @@ -224,7 +222,6 @@ export class Items { * slug: "senior-data-analyst" * } * }, { - * id: "580e64008c9a982ac9b8b754", * isArchived: false, * isDraft: false, * fieldData: { @@ -826,7 +823,6 @@ export class Items { * * @example * await client.collections.items.createItemLive("580e63fc8c9a982ac9b8b745", { - * id: "580e64008c9a982ac9b8b754", * isArchived: false, * isDraft: false, * fieldData: { @@ -838,7 +834,6 @@ export class Items { * @example * await client.collections.items.createItemLive("580e63fc8c9a982ac9b8b745", { * items: [{ - * id: "580e64008c9a982ac9b8b754", * isArchived: false, * isDraft: false, * fieldData: { @@ -846,7 +841,6 @@ export class Items { * slug: "senior-data-analyst" * } * }, { - * id: "580e64008c9a982ac9b8b754", * isArchived: false, * isDraft: false, * fieldData: { diff --git a/src/api/types/CollectionItem.ts b/src/api/types/CollectionItem.ts index b604d972..d97781bf 100644 --- a/src/api/types/CollectionItem.ts +++ b/src/api/types/CollectionItem.ts @@ -9,7 +9,7 @@ import * as Webflow from "../index"; */ export interface CollectionItem { /** Unique identifier for the Item */ - id: string; + id?: string; /** Identifier for the locale of the CMS item */ cmsLocaleId?: string; /** The date the item was last published */ diff --git a/src/serialization/types/CollectionItem.ts b/src/serialization/types/CollectionItem.ts index 23cf3695..2cd08980 100644 --- a/src/serialization/types/CollectionItem.ts +++ b/src/serialization/types/CollectionItem.ts @@ -9,7 +9,7 @@ import { CollectionItemFieldData } from "./CollectionItemFieldData"; export const CollectionItem: core.serialization.ObjectSchema = core.serialization.object({ - id: core.serialization.string(), + id: core.serialization.string().optional(), cmsLocaleId: core.serialization.string().optional(), lastPublished: core.serialization.string().optional(), lastUpdated: core.serialization.string().optional(), @@ -21,7 +21,7 @@ export const CollectionItem: core.serialization.ObjectSchema