@wix/auto_sdk_benefit-programs_pool-definition-items 1.0.24 → 1.0.26
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.js +2 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -9
- package/build/cjs/index.typings.js +1 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +2 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -9
- package/build/es/index.typings.mjs +1 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +53 -9
- package/build/internal/cjs/meta.d.ts +80 -0
- package/build/internal/es/index.typings.d.mts +53 -9
- package/build/internal/es/meta.d.mts +80 -0
- package/package.json +5 -12
- package/build/cjs/schemas.d.ts +0 -138
- package/build/cjs/schemas.js +0 -313
- package/build/cjs/schemas.js.map +0 -1
- package/build/es/schemas.d.mts +0 -138
- package/build/es/schemas.mjs +0 -271
- package/build/es/schemas.mjs.map +0 -1
- package/build/internal/cjs/index.js +0 -369
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -320
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -225
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.d.ts +0 -138
- package/build/internal/cjs/schemas.js +0 -313
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -339
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -289
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -193
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.d.mts +0 -138
- package/build/internal/es/schemas.mjs +0 -271
- package/build/internal/es/schemas.mjs.map +0 -1
- package/schemas/package.json +0 -3
|
@@ -121,6 +121,30 @@ interface PoolDefinitionItem {
|
|
|
121
121
|
* @readonly
|
|
122
122
|
*/
|
|
123
123
|
removed?: boolean | null;
|
|
124
|
+
/**
|
|
125
|
+
* Monotonic counter incremented on every change, including system/materialization updates that do not bump revision.
|
|
126
|
+
* @internal
|
|
127
|
+
* @readonly
|
|
128
|
+
*/
|
|
129
|
+
poolDefinitionChangesCounter?: string | null;
|
|
130
|
+
/**
|
|
131
|
+
* Last revision number of the corresponding pool definition that this entity was created from
|
|
132
|
+
* @internal
|
|
133
|
+
* @readonly
|
|
134
|
+
*/
|
|
135
|
+
poolDefinitionRevision?: string | null;
|
|
136
|
+
/**
|
|
137
|
+
* Monotonic counter incremented on every change, including system/materialization updates that do not bump revision.
|
|
138
|
+
* @internal
|
|
139
|
+
* @readonly
|
|
140
|
+
*/
|
|
141
|
+
itemChangesCounter?: string | null;
|
|
142
|
+
/**
|
|
143
|
+
* Last revision number of the corresponding item that this entity was created from
|
|
144
|
+
* @internal
|
|
145
|
+
* @readonly
|
|
146
|
+
*/
|
|
147
|
+
itemRevision?: string | null;
|
|
124
148
|
}
|
|
125
149
|
interface PoolDefinitionInfo {
|
|
126
150
|
/**
|
|
@@ -244,6 +268,20 @@ interface Sorting {
|
|
|
244
268
|
fieldName?: string;
|
|
245
269
|
/** Sort order. */
|
|
246
270
|
order?: SortOrderWithLiterals;
|
|
271
|
+
/**
|
|
272
|
+
* When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
273
|
+
* a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
274
|
+
*
|
|
275
|
+
* If multiple filters are provided, they are combined with AND operator.
|
|
276
|
+
*
|
|
277
|
+
* Example:
|
|
278
|
+
* Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
279
|
+
* and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
280
|
+
* { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
281
|
+
* @internal
|
|
282
|
+
* @maxSize 10
|
|
283
|
+
*/
|
|
284
|
+
selectItemsBy?: Record<string, any>[] | null;
|
|
247
285
|
}
|
|
248
286
|
declare enum SortOrder {
|
|
249
287
|
ASC = "ASC",
|
|
@@ -500,8 +538,18 @@ interface DomainEventBodyOneOf {
|
|
|
500
538
|
}
|
|
501
539
|
interface EntityCreatedEvent {
|
|
502
540
|
entityAsJson?: string;
|
|
541
|
+
/**
|
|
542
|
+
* Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
|
|
543
|
+
* @internal
|
|
544
|
+
*/
|
|
545
|
+
triggeredByUndelete?: boolean | null;
|
|
503
546
|
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
504
547
|
restoreInfo?: RestoreInfo;
|
|
548
|
+
/**
|
|
549
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
550
|
+
* @internal
|
|
551
|
+
*/
|
|
552
|
+
additionalMetadataAsJson?: string | null;
|
|
505
553
|
}
|
|
506
554
|
interface RestoreInfo {
|
|
507
555
|
deletedDate?: Date | null;
|
|
@@ -513,10 +561,42 @@ interface EntityUpdatedEvent {
|
|
|
513
561
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
514
562
|
*/
|
|
515
563
|
currentEntityAsJson?: string;
|
|
564
|
+
/**
|
|
565
|
+
* This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
|
|
566
|
+
* wont populate it / have any reference to it in the API.
|
|
567
|
+
* The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
|
|
568
|
+
* the developer should send only the new (current) entity.
|
|
569
|
+
* An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
|
|
570
|
+
* Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
|
|
571
|
+
* @internal
|
|
572
|
+
* @deprecated
|
|
573
|
+
*/
|
|
574
|
+
previousEntityAsJson?: string | null;
|
|
575
|
+
/**
|
|
576
|
+
* Map of fully qualified field paths to their previous values for fields that changed.
|
|
577
|
+
* For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
|
|
578
|
+
* @internal
|
|
579
|
+
*/
|
|
580
|
+
modifiedFields?: Record<string, any>;
|
|
581
|
+
/**
|
|
582
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
583
|
+
* @internal
|
|
584
|
+
*/
|
|
585
|
+
additionalMetadataAsJson?: string | null;
|
|
516
586
|
}
|
|
517
587
|
interface EntityDeletedEvent {
|
|
588
|
+
/**
|
|
589
|
+
* Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
|
|
590
|
+
* @internal
|
|
591
|
+
*/
|
|
592
|
+
movedToTrash?: boolean | null;
|
|
518
593
|
/** Entity that was deleted. */
|
|
519
594
|
deletedEntityAsJson?: string | null;
|
|
595
|
+
/**
|
|
596
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
597
|
+
* @internal
|
|
598
|
+
*/
|
|
599
|
+
additionalMetadataAsJson?: string | null;
|
|
520
600
|
}
|
|
521
601
|
interface ActionEvent {
|
|
522
602
|
bodyAsJson?: string;
|
|
@@ -121,6 +121,30 @@ interface PoolDefinitionItem {
|
|
|
121
121
|
* @readonly
|
|
122
122
|
*/
|
|
123
123
|
removed?: boolean | null;
|
|
124
|
+
/**
|
|
125
|
+
* Monotonic counter incremented on every change, including system/materialization updates that do not bump revision.
|
|
126
|
+
* @internal
|
|
127
|
+
* @readonly
|
|
128
|
+
*/
|
|
129
|
+
poolDefinitionChangesCounter?: string | null;
|
|
130
|
+
/**
|
|
131
|
+
* Last revision number of the corresponding pool definition that this entity was created from
|
|
132
|
+
* @internal
|
|
133
|
+
* @readonly
|
|
134
|
+
*/
|
|
135
|
+
poolDefinitionRevision?: string | null;
|
|
136
|
+
/**
|
|
137
|
+
* Monotonic counter incremented on every change, including system/materialization updates that do not bump revision.
|
|
138
|
+
* @internal
|
|
139
|
+
* @readonly
|
|
140
|
+
*/
|
|
141
|
+
itemChangesCounter?: string | null;
|
|
142
|
+
/**
|
|
143
|
+
* Last revision number of the corresponding item that this entity was created from
|
|
144
|
+
* @internal
|
|
145
|
+
* @readonly
|
|
146
|
+
*/
|
|
147
|
+
itemRevision?: string | null;
|
|
124
148
|
}
|
|
125
149
|
interface PoolDefinitionInfo {
|
|
126
150
|
/**
|
|
@@ -244,6 +268,20 @@ interface Sorting {
|
|
|
244
268
|
fieldName?: string;
|
|
245
269
|
/** Sort order. */
|
|
246
270
|
order?: SortOrderWithLiterals;
|
|
271
|
+
/**
|
|
272
|
+
* When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
273
|
+
* a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
274
|
+
*
|
|
275
|
+
* If multiple filters are provided, they are combined with AND operator.
|
|
276
|
+
*
|
|
277
|
+
* Example:
|
|
278
|
+
* Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
279
|
+
* and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
280
|
+
* { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
281
|
+
* @internal
|
|
282
|
+
* @maxSize 10
|
|
283
|
+
*/
|
|
284
|
+
selectItemsBy?: Record<string, any>[] | null;
|
|
247
285
|
}
|
|
248
286
|
declare enum SortOrder {
|
|
249
287
|
ASC = "ASC",
|
|
@@ -687,10 +725,6 @@ interface PoolDefinitionItemsQueryBuilder {
|
|
|
687
725
|
* @param string - String to compare against. Case-insensitive.
|
|
688
726
|
*/
|
|
689
727
|
startsWith: (propertyName: '_id' | 'externalId' | 'category' | 'providerAppId' | 'namespace' | 'poolDefinitionId' | 'itemSetId' | 'programDefinitions.id' | 'programDefinitions.externalId' | 'benefitKey' | 'itemSearchKey', value: string) => PoolDefinitionItemsQueryBuilder;
|
|
690
|
-
/** @param propertyName - Property whose value is compared with `values`.
|
|
691
|
-
* @param values - List of values to compare against.
|
|
692
|
-
*/
|
|
693
|
-
hasSome: (propertyName: '_id' | '_createdDate' | 'externalId' | 'category' | 'providerAppId' | 'namespace' | 'poolDefinitionId' | 'itemSetId' | 'programDefinitions.id' | 'programDefinitions.externalId' | 'benefitKey' | 'itemSearchKey', value: any[]) => PoolDefinitionItemsQueryBuilder;
|
|
694
728
|
in: (propertyName: '_id' | '_createdDate' | 'externalId' | 'category' | 'providerAppId' | 'namespace' | 'poolDefinitionId' | 'itemSetId' | 'programDefinitions.id' | 'programDefinitions.externalId' | 'benefitKey' | 'itemSearchKey', value: any) => PoolDefinitionItemsQueryBuilder;
|
|
695
729
|
exists: (propertyName: '_id' | '_createdDate' | 'externalId' | 'category' | 'providerAppId' | 'namespace' | 'poolDefinitionId' | 'itemSetId' | 'programDefinitions.id' | 'programDefinitions.externalId' | 'benefitKey' | 'itemSearchKey', value: boolean) => PoolDefinitionItemsQueryBuilder;
|
|
696
730
|
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
@@ -779,14 +813,24 @@ type PoolDefinitionItemQuery = {
|
|
|
779
813
|
Sort order.
|
|
780
814
|
*/
|
|
781
815
|
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
816
|
+
/**
|
|
817
|
+
When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
818
|
+
a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
819
|
+
|
|
820
|
+
If multiple filters are provided, they are combined with AND operator.
|
|
821
|
+
|
|
822
|
+
Example:
|
|
823
|
+
Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
824
|
+
and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
825
|
+
{ fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
826
|
+
@internal: undefined,
|
|
827
|
+
@maxSize: 10
|
|
828
|
+
*/
|
|
829
|
+
selectItemsBy?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['selectItemsBy'] | null;
|
|
782
830
|
}[];
|
|
783
831
|
};
|
|
784
832
|
declare const utils: {
|
|
785
|
-
query:
|
|
786
|
-
QueryBuilder: () => _wix_sdk_types.QueryBuilder<PoolDefinitionItem, PoolDefinitionItemQuerySpec, PoolDefinitionItemQuery>;
|
|
787
|
-
Filter: _wix_sdk_types.FilterFactory<PoolDefinitionItem, PoolDefinitionItemQuerySpec>;
|
|
788
|
-
Sort: _wix_sdk_types.SortFactory<PoolDefinitionItemQuerySpec>;
|
|
789
|
-
};
|
|
833
|
+
query: _wix_sdk_types.QueryHelpers<PoolDefinitionItem, PoolDefinitionItemQuerySpec, PoolDefinitionItemQuery>;
|
|
790
834
|
};
|
|
791
835
|
/**
|
|
792
836
|
* Removes items from a benefit. The service removes items asynchronously. They may briefly still appear in
|
|
@@ -121,6 +121,30 @@ interface PoolDefinitionItem {
|
|
|
121
121
|
* @readonly
|
|
122
122
|
*/
|
|
123
123
|
removed?: boolean | null;
|
|
124
|
+
/**
|
|
125
|
+
* Monotonic counter incremented on every change, including system/materialization updates that do not bump revision.
|
|
126
|
+
* @internal
|
|
127
|
+
* @readonly
|
|
128
|
+
*/
|
|
129
|
+
poolDefinitionChangesCounter?: string | null;
|
|
130
|
+
/**
|
|
131
|
+
* Last revision number of the corresponding pool definition that this entity was created from
|
|
132
|
+
* @internal
|
|
133
|
+
* @readonly
|
|
134
|
+
*/
|
|
135
|
+
poolDefinitionRevision?: string | null;
|
|
136
|
+
/**
|
|
137
|
+
* Monotonic counter incremented on every change, including system/materialization updates that do not bump revision.
|
|
138
|
+
* @internal
|
|
139
|
+
* @readonly
|
|
140
|
+
*/
|
|
141
|
+
itemChangesCounter?: string | null;
|
|
142
|
+
/**
|
|
143
|
+
* Last revision number of the corresponding item that this entity was created from
|
|
144
|
+
* @internal
|
|
145
|
+
* @readonly
|
|
146
|
+
*/
|
|
147
|
+
itemRevision?: string | null;
|
|
124
148
|
}
|
|
125
149
|
interface PoolDefinitionInfo {
|
|
126
150
|
/**
|
|
@@ -244,6 +268,20 @@ interface Sorting {
|
|
|
244
268
|
fieldName?: string;
|
|
245
269
|
/** Sort order. */
|
|
246
270
|
order?: SortOrderWithLiterals;
|
|
271
|
+
/**
|
|
272
|
+
* When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
273
|
+
* a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
274
|
+
*
|
|
275
|
+
* If multiple filters are provided, they are combined with AND operator.
|
|
276
|
+
*
|
|
277
|
+
* Example:
|
|
278
|
+
* Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
279
|
+
* and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
280
|
+
* { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
281
|
+
* @internal
|
|
282
|
+
* @maxSize 10
|
|
283
|
+
*/
|
|
284
|
+
selectItemsBy?: Record<string, any>[] | null;
|
|
247
285
|
}
|
|
248
286
|
declare enum SortOrder {
|
|
249
287
|
ASC = "ASC",
|
|
@@ -500,8 +538,18 @@ interface DomainEventBodyOneOf {
|
|
|
500
538
|
}
|
|
501
539
|
interface EntityCreatedEvent {
|
|
502
540
|
entityAsJson?: string;
|
|
541
|
+
/**
|
|
542
|
+
* Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
|
|
543
|
+
* @internal
|
|
544
|
+
*/
|
|
545
|
+
triggeredByUndelete?: boolean | null;
|
|
503
546
|
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
504
547
|
restoreInfo?: RestoreInfo;
|
|
548
|
+
/**
|
|
549
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
550
|
+
* @internal
|
|
551
|
+
*/
|
|
552
|
+
additionalMetadataAsJson?: string | null;
|
|
505
553
|
}
|
|
506
554
|
interface RestoreInfo {
|
|
507
555
|
deletedDate?: Date | null;
|
|
@@ -513,10 +561,42 @@ interface EntityUpdatedEvent {
|
|
|
513
561
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
514
562
|
*/
|
|
515
563
|
currentEntityAsJson?: string;
|
|
564
|
+
/**
|
|
565
|
+
* This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
|
|
566
|
+
* wont populate it / have any reference to it in the API.
|
|
567
|
+
* The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
|
|
568
|
+
* the developer should send only the new (current) entity.
|
|
569
|
+
* An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
|
|
570
|
+
* Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
|
|
571
|
+
* @internal
|
|
572
|
+
* @deprecated
|
|
573
|
+
*/
|
|
574
|
+
previousEntityAsJson?: string | null;
|
|
575
|
+
/**
|
|
576
|
+
* Map of fully qualified field paths to their previous values for fields that changed.
|
|
577
|
+
* For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
|
|
578
|
+
* @internal
|
|
579
|
+
*/
|
|
580
|
+
modifiedFields?: Record<string, any>;
|
|
581
|
+
/**
|
|
582
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
583
|
+
* @internal
|
|
584
|
+
*/
|
|
585
|
+
additionalMetadataAsJson?: string | null;
|
|
516
586
|
}
|
|
517
587
|
interface EntityDeletedEvent {
|
|
588
|
+
/**
|
|
589
|
+
* Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
|
|
590
|
+
* @internal
|
|
591
|
+
*/
|
|
592
|
+
movedToTrash?: boolean | null;
|
|
518
593
|
/** Entity that was deleted. */
|
|
519
594
|
deletedEntityAsJson?: string | null;
|
|
595
|
+
/**
|
|
596
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
597
|
+
* @internal
|
|
598
|
+
*/
|
|
599
|
+
additionalMetadataAsJson?: string | null;
|
|
520
600
|
}
|
|
521
601
|
interface ActionEvent {
|
|
522
602
|
bodyAsJson?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_benefit-programs_pool-definition-items",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.26",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -21,23 +21,16 @@
|
|
|
21
21
|
"import": "./build/es/meta.mjs",
|
|
22
22
|
"require": "./build/cjs/meta.js",
|
|
23
23
|
"types": "./build/es/meta.d.mts"
|
|
24
|
-
},
|
|
25
|
-
"./schemas": {
|
|
26
|
-
"import": "./build/es/schemas.mjs",
|
|
27
|
-
"require": "./build/cjs/schemas.js",
|
|
28
|
-
"types": "./build/es/schemas.d.mts"
|
|
29
24
|
}
|
|
30
25
|
},
|
|
31
26
|
"files": [
|
|
32
27
|
"build",
|
|
33
28
|
"meta",
|
|
34
|
-
"service-plugins"
|
|
35
|
-
"schemas"
|
|
29
|
+
"service-plugins"
|
|
36
30
|
],
|
|
37
31
|
"dependencies": {
|
|
38
|
-
"@wix/sdk-runtime": "^1.0.
|
|
39
|
-
"@wix/sdk-types": "^1.17.
|
|
40
|
-
"zod": "^4.3.6"
|
|
32
|
+
"@wix/sdk-runtime": "^1.0.24",
|
|
33
|
+
"@wix/sdk-types": "^1.17.11"
|
|
41
34
|
},
|
|
42
35
|
"devDependencies": {
|
|
43
36
|
"tsup": "^8.4.0",
|
|
@@ -57,5 +50,5 @@
|
|
|
57
50
|
"fqdn": "wix.benefit_programs.v1.pool_definition_item"
|
|
58
51
|
}
|
|
59
52
|
},
|
|
60
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "06912b09d817f54bfce3904c8d18b98b7205b7258561c7bb21abd407"
|
|
61
54
|
}
|
package/build/cjs/schemas.d.ts
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const QueryPoolDefinitionItemsRequest: z.ZodObject<{
|
|
4
|
-
query: z.ZodIntersection<z.ZodObject<{
|
|
5
|
-
filter: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
6
|
-
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7
|
-
fieldName: z.ZodOptional<z.ZodString>;
|
|
8
|
-
order: z.ZodOptional<z.ZodEnum<{
|
|
9
|
-
ASC: "ASC";
|
|
10
|
-
DESC: "DESC";
|
|
11
|
-
}>>;
|
|
12
|
-
}, z.core.$strip>>>;
|
|
13
|
-
}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
|
|
14
|
-
cursorPaging: z.ZodOptional<z.ZodNever>;
|
|
15
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
-
cursorPaging: z.ZodObject<{
|
|
17
|
-
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
18
|
-
cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
19
|
-
}, z.core.$strip>;
|
|
20
|
-
}, z.core.$strip>]>>;
|
|
21
|
-
options: z.ZodOptional<z.ZodObject<{
|
|
22
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
23
|
-
POOL_DEFINITION: "POOL_DEFINITION";
|
|
24
|
-
PROGRAM_DEFINITION: "PROGRAM_DEFINITION";
|
|
25
|
-
BENEFIT: "BENEFIT";
|
|
26
|
-
ITEM: "ITEM";
|
|
27
|
-
}>>>;
|
|
28
|
-
}, z.core.$strip>>;
|
|
29
|
-
}, z.core.$strip>;
|
|
30
|
-
declare const QueryPoolDefinitionItemsResponse: z.ZodObject<{
|
|
31
|
-
poolDefinitionItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32
|
-
_id: z.ZodOptional<z.ZodString>;
|
|
33
|
-
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
34
|
-
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
35
|
-
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
36
|
-
externalId: z.ZodOptional<z.ZodString>;
|
|
37
|
-
category: z.ZodOptional<z.ZodString>;
|
|
38
|
-
providerAppId: z.ZodOptional<z.ZodString>;
|
|
39
|
-
namespace: z.ZodOptional<z.ZodString>;
|
|
40
|
-
poolDefinitionId: z.ZodOptional<z.ZodString>;
|
|
41
|
-
itemSetId: z.ZodOptional<z.ZodString>;
|
|
42
|
-
poolDefinition: z.ZodOptional<z.ZodObject<{
|
|
43
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
44
|
-
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
45
|
-
creditConfiguration: z.ZodOptional<z.ZodObject<{
|
|
46
|
-
amount: z.ZodOptional<z.ZodString>;
|
|
47
|
-
unitDisplayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
48
|
-
unitType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
49
|
-
}, z.core.$strip>>;
|
|
50
|
-
}, z.core.$strip>>;
|
|
51
|
-
programDefinitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
52
|
-
_id: z.ZodOptional<z.ZodString>;
|
|
53
|
-
externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
54
|
-
displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
55
|
-
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
56
|
-
}, z.core.$strip>>>;
|
|
57
|
-
itemId: z.ZodOptional<z.ZodString>;
|
|
58
|
-
benefitInfo: z.ZodOptional<z.ZodObject<{
|
|
59
|
-
price: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
60
|
-
displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
61
|
-
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
62
|
-
}, z.core.$strip>>;
|
|
63
|
-
itemInfo: z.ZodOptional<z.ZodObject<{
|
|
64
|
-
displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
65
|
-
}, z.core.$strip>>;
|
|
66
|
-
benefitKey: z.ZodOptional<z.ZodString>;
|
|
67
|
-
itemSearchKey: z.ZodOptional<z.ZodString>;
|
|
68
|
-
removed: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
69
|
-
}, z.core.$strip>>>;
|
|
70
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
|
71
|
-
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
72
|
-
cursors: z.ZodOptional<z.ZodObject<{
|
|
73
|
-
next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
74
|
-
prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
75
|
-
}, z.core.$strip>>;
|
|
76
|
-
hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
77
|
-
}, z.core.$strip>>;
|
|
78
|
-
}, z.core.$strip>;
|
|
79
|
-
declare const RemoveItemsFromBenefitRequest: z.ZodObject<{
|
|
80
|
-
itemReferences: z.ZodArray<z.ZodObject<{
|
|
81
|
-
externalId: z.ZodString;
|
|
82
|
-
category: z.ZodOptional<z.ZodString>;
|
|
83
|
-
}, z.core.$strip>>;
|
|
84
|
-
options: z.ZodObject<{
|
|
85
|
-
poolDefinitionId: z.ZodString;
|
|
86
|
-
benefitKey: z.ZodString;
|
|
87
|
-
}, z.core.$strip>;
|
|
88
|
-
}, z.core.$strip>;
|
|
89
|
-
declare const RemoveItemsFromBenefitResponse: z.ZodObject<{
|
|
90
|
-
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
91
|
-
itemMetadata: z.ZodOptional<z.ZodObject<{
|
|
92
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
93
|
-
originalIndex: z.ZodOptional<z.ZodNumber>;
|
|
94
|
-
success: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
96
|
-
code: z.ZodOptional<z.ZodString>;
|
|
97
|
-
description: z.ZodOptional<z.ZodString>;
|
|
98
|
-
data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
99
|
-
}, z.core.$strip>>;
|
|
100
|
-
}, z.core.$strip>>;
|
|
101
|
-
}, z.core.$strip>>>;
|
|
102
|
-
bulkActionMetadata: z.ZodOptional<z.ZodObject<{
|
|
103
|
-
totalSuccesses: z.ZodOptional<z.ZodNumber>;
|
|
104
|
-
totalFailures: z.ZodOptional<z.ZodNumber>;
|
|
105
|
-
undetailedFailures: z.ZodOptional<z.ZodNumber>;
|
|
106
|
-
}, z.core.$strip>>;
|
|
107
|
-
}, z.core.$strip>;
|
|
108
|
-
declare const AddItemsToBenefitRequest: z.ZodObject<{
|
|
109
|
-
itemReferences: z.ZodArray<z.ZodObject<{
|
|
110
|
-
externalId: z.ZodString;
|
|
111
|
-
category: z.ZodOptional<z.ZodString>;
|
|
112
|
-
}, z.core.$strip>>;
|
|
113
|
-
options: z.ZodObject<{
|
|
114
|
-
poolDefinitionId: z.ZodString;
|
|
115
|
-
benefitKey: z.ZodString;
|
|
116
|
-
}, z.core.$strip>;
|
|
117
|
-
}, z.core.$strip>;
|
|
118
|
-
declare const AddItemsToBenefitResponse: z.ZodObject<{
|
|
119
|
-
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
120
|
-
itemMetadata: z.ZodOptional<z.ZodObject<{
|
|
121
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
122
|
-
originalIndex: z.ZodOptional<z.ZodNumber>;
|
|
123
|
-
success: z.ZodOptional<z.ZodBoolean>;
|
|
124
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
125
|
-
code: z.ZodOptional<z.ZodString>;
|
|
126
|
-
description: z.ZodOptional<z.ZodString>;
|
|
127
|
-
data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
128
|
-
}, z.core.$strip>>;
|
|
129
|
-
}, z.core.$strip>>;
|
|
130
|
-
}, z.core.$strip>>>;
|
|
131
|
-
bulkActionMetadata: z.ZodOptional<z.ZodObject<{
|
|
132
|
-
totalSuccesses: z.ZodOptional<z.ZodNumber>;
|
|
133
|
-
totalFailures: z.ZodOptional<z.ZodNumber>;
|
|
134
|
-
undetailedFailures: z.ZodOptional<z.ZodNumber>;
|
|
135
|
-
}, z.core.$strip>>;
|
|
136
|
-
}, z.core.$strip>;
|
|
137
|
-
|
|
138
|
-
export { AddItemsToBenefitRequest, AddItemsToBenefitResponse, QueryPoolDefinitionItemsRequest, QueryPoolDefinitionItemsResponse, RemoveItemsFromBenefitRequest, RemoveItemsFromBenefitResponse };
|