@wix/auto_sdk_events_item-groups 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +6 -4
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +6 -4
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.typings.d.ts +6 -4
- package/build/internal/cjs/meta.d.ts +2 -1
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.typings.d.mts +6 -4
- package/build/internal/es/meta.d.mts +2 -1
- package/package.json +2 -2
|
@@ -43,7 +43,7 @@ interface ItemGroup {
|
|
|
43
43
|
*/
|
|
44
44
|
items?: Item[];
|
|
45
45
|
/**
|
|
46
|
-
* Feature that uses the group
|
|
46
|
+
* Feature that uses the group. Empty if none does. Only `type` is set while `reservationEndDate` is set. On create, set `type` to reserve the group for that feature.
|
|
47
47
|
* @readonly
|
|
48
48
|
*/
|
|
49
49
|
owner?: Owner;
|
|
@@ -84,6 +84,7 @@ interface Owner {
|
|
|
84
84
|
/**
|
|
85
85
|
* Owner ID, for example the coupon ID. Free-form, because some legacy coupon IDs aren't GUIDs.
|
|
86
86
|
* @maxLength 100
|
|
87
|
+
* @readonly
|
|
87
88
|
*/
|
|
88
89
|
_id?: string;
|
|
89
90
|
}
|
|
@@ -538,19 +539,20 @@ type DeleteItemGroupApplicationErrors = {
|
|
|
538
539
|
data?: Record<string, any>;
|
|
539
540
|
};
|
|
540
541
|
/**
|
|
541
|
-
* Creates an
|
|
542
|
+
* Creates an item group. Set `owner.type` to reserve it for a feature.
|
|
542
543
|
* @param itemGroup - Item group to create.
|
|
543
544
|
* @public
|
|
544
545
|
* @documentationMaturity preview
|
|
545
546
|
* @requiredField itemGroup
|
|
546
547
|
* @requiredField itemGroup.itemType
|
|
547
548
|
* @requiredField itemGroup.items._id
|
|
549
|
+
* @requiredField itemGroup.owner.type
|
|
548
550
|
* @permissionId events:itemgroups:v1:item_group:create_item_group
|
|
549
551
|
* @applicableIdentity APP
|
|
550
552
|
* @returns Created item group.
|
|
551
553
|
* @fqn wix.events.itemgroups.v1.ItemGroupService.CreateItemGroup
|
|
552
554
|
*/
|
|
553
|
-
declare function createItemGroup(itemGroup: NonNullablePaths<ItemGroup, `itemType` | `items.${number}._id`, 2>): Promise<NonNullablePaths<ItemGroup, `itemType` | `items` | `items.${number}._id` | `owner.type` | `owner._id` | `tags.privateTags.tagIds`, 2> & {
|
|
555
|
+
declare function createItemGroup(itemGroup: NonNullablePaths<ItemGroup, `itemType` | `items.${number}._id` | `owner.type`, 2>): Promise<NonNullablePaths<ItemGroup, `itemType` | `items` | `items.${number}._id` | `owner.type` | `owner._id` | `tags.privateTags.tagIds`, 2> & {
|
|
554
556
|
__applicationErrorsType?: CreateItemGroupApplicationErrors;
|
|
555
557
|
}>;
|
|
556
558
|
/**
|
|
@@ -620,7 +622,7 @@ interface UpdateItemGroup {
|
|
|
620
622
|
*/
|
|
621
623
|
items?: Item[];
|
|
622
624
|
/**
|
|
623
|
-
* Feature that uses the group
|
|
625
|
+
* Feature that uses the group. Empty if none does. Only `type` is set while `reservationEndDate` is set. On create, set `type` to reserve the group for that feature.
|
|
624
626
|
* @readonly
|
|
625
627
|
*/
|
|
626
628
|
owner?: Owner;
|
|
@@ -43,7 +43,7 @@ interface ItemGroup {
|
|
|
43
43
|
*/
|
|
44
44
|
items?: Item[];
|
|
45
45
|
/**
|
|
46
|
-
* Feature that uses the group
|
|
46
|
+
* Feature that uses the group. Empty if none does. Only `type` is set while `reservationEndDate` is set. On create, set `type` to reserve the group for that feature.
|
|
47
47
|
* @readonly
|
|
48
48
|
*/
|
|
49
49
|
owner?: Owner;
|
|
@@ -84,6 +84,7 @@ interface Owner {
|
|
|
84
84
|
/**
|
|
85
85
|
* Owner ID, for example the coupon ID. Free-form, because some legacy coupon IDs aren't GUIDs.
|
|
86
86
|
* @maxLength 100
|
|
87
|
+
* @readonly
|
|
87
88
|
*/
|
|
88
89
|
id?: string;
|
|
89
90
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_events_item-groups",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"fqdn": "wix.events.itemgroups.v1.item_group"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "474445fb65f7cae42e64ec82d76191bd24d712f0bd7ebffab200b5fb"
|
|
54
54
|
}
|