Skip to content

Commit cfc65b0

Browse files
committed
SDK regeneration
1 parent 6f68142 commit cfc65b0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+387
-761
lines changed

.mock/definition/__package__.yml

Lines changed: 39 additions & 194 deletions
Original file line numberDiff line numberDiff line change
@@ -2590,6 +2590,7 @@ types:
25902590
- collection_item_created
25912591
- collection_item_changed
25922592
- collection_item_deleted
2593+
- collection_item_published
25932594
- collection_item_unpublished
25942595
- comment_created
25952596
docs: >
@@ -3252,15 +3253,6 @@ types:
32523253
[Subscription
32533254
plan](https://help.webflow.com/hc/en-us/articles/33961432087955-Add-and-manage-products-and-categories#subscription)
32543255
for the SKU
3255-
track-inventory:
3256-
type: optional<boolean>
3257-
docs: >-
3258-
A boolean indicating whether inventory for this product should be
3259-
tracked.
3260-
default: false
3261-
quantity:
3262-
type: optional<double>
3263-
docs: Quantity of SKU that will be tracked as items are ordered.
32643256
main-image:
32653257
type: optional<string>
32663258
docs: The URL for the main image of the SKU
@@ -4152,231 +4144,87 @@ types:
41524144
fieldData: SingleLocaleCreatedPayloadFieldData
41534145
source:
41544146
openapi: ../../../openapi/referenced-specs/v2.yml
4155-
LocalizedItem:
4156-
properties:
4157-
_cid:
4158-
type: string
4159-
docs: Collection ID the item belongs to
4160-
validation:
4161-
format: uuid
4162-
_id:
4163-
type: string
4164-
docs: Unique identifier for the item
4165-
validation:
4166-
format: uuid
4167-
_locale:
4168-
type: string
4169-
docs: Locale identifier for this version of the item
4170-
validation:
4171-
format: uuid
4172-
_draft:
4173-
type: boolean
4174-
docs: Whether the item is in draft state
4175-
_archived:
4176-
type: boolean
4177-
docs: Whether the item is archived
4178-
name:
4179-
type: string
4180-
docs: Name of the item
4181-
slug:
4182-
type: string
4183-
docs: URL-friendly version of the name
4184-
updated-on:
4185-
type: datetime
4186-
docs: Timestamp of last update
4187-
updated-by:
4188-
type: string
4189-
docs: Identifier of user who last updated the item
4190-
created-on:
4191-
type: datetime
4192-
docs: Timestamp of creation
4193-
created-by:
4194-
type: string
4195-
docs: Identifier of user who created the item
4196-
published-on:
4197-
type: optional<datetime>
4198-
docs: Timestamp of last publish, if published
4199-
published-by:
4200-
type: optional<string>
4201-
docs: Identifier of user who last published the item
4202-
source:
4203-
openapi: ../../../openapi/referenced-specs/v2.yml
4204-
MultiLocaleCreatedPayload:
4205-
properties:
4206-
siteId:
4207-
type: string
4208-
docs: Unique identifier of the site
4209-
validation:
4210-
format: uuid
4211-
workspaceId:
4212-
type: string
4213-
docs: Unique identifier of the workspace
4214-
validation:
4215-
format: uuid
4216-
collectionId:
4217-
type: string
4218-
docs: Unique identifier of the collection
4219-
validation:
4220-
format: uuid
4221-
cmsLocaleId:
4222-
type: optional<string>
4223-
docs: Unique identifier of the CMS locale for this item
4224-
validation:
4225-
format: uuid
4226-
fieldData:
4227-
type: map<string, LocalizedItem>
4228-
docs: Collection of localized items, keyed by locale index (0-n)
4229-
source:
4230-
openapi: ../../../openapi/referenced-specs/v2.yml
4231-
CollectionItemCreatedPayload:
4232-
discriminated: false
4233-
union:
4234-
- type: SingleLocaleCreatedPayload
4235-
- type: MultiLocaleCreatedPayload
4236-
source:
4237-
openapi: ../../../openapi/referenced-specs/v2.yml
4238-
inline: true
42394147
CollectionItemCreated:
42404148
docs: The Webhook payload for when a Collection Item is created
42414149
properties:
42424150
triggerType:
42434151
type: literal<"collection_item_created">
42444152
docs: The type of event that triggered the request
4245-
payload: CollectionItemCreatedPayload
4246-
source:
4247-
openapi: ../../../openapi/referenced-specs/v2.yml
4248-
SingleLocaleChangedPayloadFieldData:
4249-
properties:
4250-
name: string
4251-
slug: string
4252-
extra-properties: true
4153+
payload:
4154+
type: SingleLocaleCreatedPayload
42534155
source:
42544156
openapi: ../../../openapi/referenced-specs/v2.yml
4255-
inline: true
4256-
SingleLocaleChangedPayload:
4157+
CollectionItemChanged:
4158+
docs: The Webhook payload for when a Collection Item is changed
42574159
properties:
4258-
id:
4259-
type: string
4260-
docs: Unique identifier for the Item
4261-
validation:
4262-
format: uuid
4263-
workspaceId:
4264-
type: string
4265-
docs: Unique identifier of the workspace
4266-
validation:
4267-
format: uuid
4268-
siteId:
4269-
type: string
4270-
docs: Unique identifier of the site
4271-
validation:
4272-
format: uuid
4273-
collectionId:
4274-
type: string
4275-
docs: Unique identifier of the collection
4276-
validation:
4277-
format: uuid
4278-
cmsLocaleId:
4279-
type: optional<string>
4280-
docs: Unique identifier of the CMS locale for this item
4281-
validation:
4282-
format: uuid
4283-
lastPublished:
4284-
type: optional<datetime>
4285-
lastUpdated:
4286-
type: optional<datetime>
4287-
createdOn:
4288-
type: optional<datetime>
4289-
isArchived:
4290-
type: optional<boolean>
4291-
isDraft:
4292-
type: optional<boolean>
4293-
fieldData: SingleLocaleChangedPayloadFieldData
4160+
triggerType:
4161+
type: literal<"collection_item_changed">
4162+
docs: The type of event that triggered the request
4163+
payload:
4164+
type: SingleLocaleCreatedPayload
42944165
source:
42954166
openapi: ../../../openapi/referenced-specs/v2.yml
4296-
MultiLocaleChangedPayloadFieldData:
4167+
CollectionItemRemovedPayloadFieldData:
42974168
properties:
42984169
name: string
42994170
slug: string
4300-
_locale:
4301-
type: string
4302-
docs: Locale identifier for this version of the item
4303-
validation:
4304-
format: uuid
43054171
extra-properties: true
43064172
source:
43074173
openapi: ../../../openapi/referenced-specs/v2.yml
43084174
inline: true
4309-
MultiLocaleChangedPayload:
4175+
CollectionItemRemovedPayload:
4176+
docs: The payload of data sent from Webflow
43104177
properties:
43114178
id:
4312-
type: string
4313-
docs: Unique identifier for the Item
4314-
validation:
4315-
format: uuid
4316-
workspaceId:
4317-
type: string
4318-
docs: Unique identifier of the workspace
4319-
validation:
4320-
format: uuid
4179+
type: optional<string>
4180+
docs: The ID of the collection item that was deleted
43214181
siteId:
4322-
type: string
4323-
docs: Unique identifier of the site
4324-
validation:
4325-
format: uuid
4182+
type: optional<string>
4183+
docs: The ID of the site
4184+
workspaceId:
4185+
type: optional<string>
4186+
docs: The ID of the workspace
43264187
collectionId:
4327-
type: string
4328-
docs: Unique identifier of the collection
4329-
validation:
4330-
format: uuid
4188+
type: optional<string>
4189+
docs: The ID of the collection
43314190
cmsLocaleId:
43324191
type: optional<string>
43334192
docs: Unique identifier of the CMS locale for this item
43344193
validation:
43354194
format: uuid
4336-
lastPublished:
4337-
type: optional<datetime>
4338-
lastUpdated:
4339-
type: optional<datetime>
4340-
createdOn:
4341-
type: optional<datetime>
4342-
isArchived:
4343-
type: optional<boolean>
4344-
isDraft:
4345-
type: optional<boolean>
4346-
fieldData: MultiLocaleChangedPayloadFieldData
4347-
source:
4348-
openapi: ../../../openapi/referenced-specs/v2.yml
4349-
CollectionItemChangedPayload:
4350-
discriminated: false
4351-
union:
4352-
- type: SingleLocaleChangedPayload
4353-
- type: MultiLocaleChangedPayload
4195+
lastPublished: optional<datetime>
4196+
lastUpdated: optional<datetime>
4197+
createdOn: optional<datetime>
4198+
isArchived: optional<boolean>
4199+
isDraft: optional<boolean>
4200+
fieldData: optional<CollectionItemRemovedPayloadFieldData>
43544201
source:
43554202
openapi: ../../../openapi/referenced-specs/v2.yml
43564203
inline: true
4357-
CollectionItemChanged:
4358-
docs: The Webhook payload for when a Collection Item is changed
4204+
CollectionItemRemoved:
43594205
properties:
43604206
triggerType:
4361-
type: literal<"collection_item_changed">
4207+
type: optional<string>
43624208
docs: The type of event that triggered the request
4363-
payload: CollectionItemChangedPayload
4209+
payload:
4210+
type: optional<CollectionItemRemovedPayload>
4211+
docs: The payload of data sent from Webflow
43644212
source:
43654213
openapi: ../../../openapi/referenced-specs/v2.yml
4366-
CollectionItemRemovedPayloadFieldData:
4214+
PayloadFieldData:
43674215
properties:
43684216
name: string
43694217
slug: string
43704218
extra-properties: true
43714219
source:
43724220
openapi: ../../../openapi/referenced-specs/v2.yml
43734221
inline: true
4374-
CollectionItemRemovedPayload:
4222+
Payload:
43754223
docs: The payload of data sent from Webflow
43764224
properties:
43774225
id:
43784226
type: optional<string>
4379-
docs: The ID of the collection item that was deleted
4227+
docs: The ID of the collection item that was unpublished
43804228
siteId:
43814229
type: optional<string>
43824230
docs: The ID of the site
@@ -4396,18 +4244,15 @@ types:
43964244
createdOn: optional<datetime>
43974245
isArchived: optional<boolean>
43984246
isDraft: optional<boolean>
4399-
fieldData: optional<CollectionItemRemovedPayloadFieldData>
4247+
fieldData: optional<PayloadFieldData>
44004248
source:
44014249
openapi: ../../../openapi/referenced-specs/v2.yml
4402-
inline: true
4403-
CollectionItemRemoved:
4250+
CollectionItemPublished:
44044251
properties:
44054252
triggerType:
44064253
type: optional<string>
44074254
docs: The type of event that triggered the request
4408-
payload:
4409-
type: optional<CollectionItemRemovedPayload>
4410-
docs: The payload of data sent from Webflow
4255+
payload: optional<Payload>
44114256
source:
44124257
openapi: ../../../openapi/referenced-specs/v2.yml
44134258
CollectionItemUnpublishedPayloadFieldData:

.mock/definition/inventory.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ service:
55
base-path: ''
66
endpoints:
77
list:
8-
path: /collections/{collection_id}/items/{item_id}/inventory
8+
path: /collections/{sku_collection_id}/items/{sku_id}/inventory
99
method: GET
1010
auth: true
1111
docs: |
@@ -15,12 +15,14 @@ service:
1515
source:
1616
openapi: ../../../openapi/referenced-specs/v2.yml
1717
path-parameters:
18-
collection_id:
18+
sku_collection_id:
1919
type: string
20-
docs: Unique identifier for a Collection
21-
item_id:
20+
docs: >-
21+
Unique identifier for a SKU collection. Use the List Collections API
22+
to find this ID.
23+
sku_id:
2224
type: string
23-
docs: Unique identifier for an Item
25+
docs: Unique identifier for a SKU
2426
display-name: List Inventory
2527
response:
2628
docs: Request was successful
@@ -36,15 +38,15 @@ service:
3638
- root.InternalServerError
3739
examples:
3840
- path-parameters:
39-
collection_id: 580e63fc8c9a982ac9b8b745
40-
item_id: 580e64008c9a982ac9b8b754
41+
sku_collection_id: 6377a7c4b7a79608c34a46f7
42+
sku_id: 5e8518516e147040726cc415
4143
response:
4244
body:
4345
id: 5bfedb42bab0ad90fa7dad39
4446
quantity: 100
4547
inventoryType: finite
4648
update:
47-
path: /collections/{collection_id}/items/{item_id}/inventory
49+
path: /collections/{sku_collection_id}/items/{sku_id}/inventory
4850
method: PATCH
4951
auth: true
5052
docs: >
@@ -65,12 +67,14 @@ service:
6567
source:
6668
openapi: ../../../openapi/referenced-specs/v2.yml
6769
path-parameters:
68-
collection_id:
70+
sku_collection_id:
6971
type: string
70-
docs: Unique identifier for a Collection
71-
item_id:
72+
docs: >-
73+
Unique identifier for a SKU collection. Use the List Collections API
74+
to find this ID.
75+
sku_id:
7276
type: string
73-
docs: Unique identifier for an Item
77+
docs: Unique identifier for a SKU
7478
display-name: Update Item Inventory
7579
request:
7680
name: InventoryUpdateRequest
@@ -100,8 +104,8 @@ service:
100104
- root.InternalServerError
101105
examples:
102106
- path-parameters:
103-
collection_id: 580e63fc8c9a982ac9b8b745
104-
item_id: 580e64008c9a982ac9b8b754
107+
sku_collection_id: 6377a7c4b7a79608c34a46f7
108+
sku_id: 5e8518516e147040726cc415
105109
request:
106110
inventoryType: infinite
107111
response:

0 commit comments

Comments
 (0)