@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.
@@ -43,7 +43,7 @@ interface ItemGroup {
43
43
  */
44
44
  items?: Item[];
45
45
  /**
46
- * Feature that uses the group, set by the server. Empty if no feature has used it. Only `type` is set while `reservationEndDate` is set.
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 unclaimed item group.
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, set by the server. Empty if no feature has used it. Only `type` is set while `reservationEndDate` is set.
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, set by the server. Empty if no feature has used it. Only `type` is set while `reservationEndDate` is set.
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",
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": "3b9c504df54c871c8132d2441cef1e9917de27047a0b688f5b2e06cf"
53
+ "falconPackageHash": "474445fb65f7cae42e64ec82d76191bd24d712f0bd7ebffab200b5fb"
54
54
  }