@wix/auto_sdk_benefit-programs_items 1.0.60 → 1.0.62

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.
Files changed (42) hide show
  1. package/build/cjs/index.js +2 -4
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +1 -9
  4. package/build/cjs/index.typings.js +1 -3
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/es/index.mjs +2 -4
  8. package/build/es/index.mjs.map +1 -1
  9. package/build/es/index.typings.d.mts +1 -9
  10. package/build/es/index.typings.mjs +1 -3
  11. package/build/es/index.typings.mjs.map +1 -1
  12. package/build/es/meta.mjs.map +1 -1
  13. package/build/internal/cjs/index.typings.d.ts +56 -9
  14. package/build/internal/cjs/meta.d.ts +72 -0
  15. package/build/internal/es/index.typings.d.mts +56 -9
  16. package/build/internal/es/meta.d.mts +72 -0
  17. package/package.json +5 -12
  18. package/build/cjs/schemas.d.ts +0 -362
  19. package/build/cjs/schemas.js +0 -876
  20. package/build/cjs/schemas.js.map +0 -1
  21. package/build/es/schemas.d.mts +0 -362
  22. package/build/es/schemas.mjs +0 -818
  23. package/build/es/schemas.mjs.map +0 -1
  24. package/build/internal/cjs/index.js +0 -999
  25. package/build/internal/cjs/index.js.map +0 -1
  26. package/build/internal/cjs/index.typings.js +0 -885
  27. package/build/internal/cjs/index.typings.js.map +0 -1
  28. package/build/internal/cjs/meta.js +0 -743
  29. package/build/internal/cjs/meta.js.map +0 -1
  30. package/build/internal/cjs/schemas.d.ts +0 -362
  31. package/build/internal/cjs/schemas.js +0 -876
  32. package/build/internal/cjs/schemas.js.map +0 -1
  33. package/build/internal/es/index.mjs +0 -961
  34. package/build/internal/es/index.mjs.map +0 -1
  35. package/build/internal/es/index.typings.mjs +0 -846
  36. package/build/internal/es/index.typings.mjs.map +0 -1
  37. package/build/internal/es/meta.mjs +0 -703
  38. package/build/internal/es/meta.mjs.map +0 -1
  39. package/build/internal/es/schemas.d.mts +0 -362
  40. package/build/internal/es/schemas.mjs +0 -818
  41. package/build/internal/es/schemas.mjs.map +0 -1
  42. package/schemas/package.json +0 -3
@@ -75,6 +75,12 @@ interface Item {
75
75
  * @readonly
76
76
  */
77
77
  namespace?: string | null;
78
+ /**
79
+ * Monotonic counter incremented on every change, including system/materialization updates that do not bump revision.
80
+ * @internal
81
+ * @readonly
82
+ */
83
+ changesCounter?: string | null;
78
84
  }
79
85
  interface ExtendedFields {
80
86
  /**
@@ -209,6 +215,11 @@ interface BulkDeleteItemsByFilterResponse {
209
215
  interface UpdateItemRequest {
210
216
  /** Item to update. */
211
217
  item: Item;
218
+ /**
219
+ * Explicit list of fields to update.
220
+ * @internal
221
+ */
222
+ fieldMask?: string[];
212
223
  }
213
224
  interface UpdateItemResponse {
214
225
  /** Updated item. */
@@ -394,6 +405,11 @@ interface Cursors {
394
405
  interface QueryItemsRequest {
395
406
  /** Filter, sort, and paging to apply to the query. */
396
407
  query?: CursorQuery;
408
+ /**
409
+ * If true, the response will reflect a consistent snapshot of the data as of the time the request was received.
410
+ * @internal
411
+ */
412
+ consistent?: boolean | null;
397
413
  }
398
414
  interface CursorQuery extends CursorQueryPagingMethodOneOf {
399
415
  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
@@ -427,6 +443,20 @@ interface Sorting {
427
443
  fieldName?: string;
428
444
  /** Sort order. */
429
445
  order?: SortOrderWithLiterals;
446
+ /**
447
+ * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
448
+ * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
449
+ *
450
+ * If multiple filters are provided, they are combined with AND operator.
451
+ *
452
+ * Example:
453
+ * Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
454
+ * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
455
+ * { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
456
+ * @internal
457
+ * @maxSize 10
458
+ */
459
+ selectItemsBy?: Record<string, any>[] | null;
430
460
  }
431
461
  declare enum SortOrder {
432
462
  ASC = "ASC",
@@ -878,6 +908,12 @@ interface UpdateItem {
878
908
  * @readonly
879
909
  */
880
910
  namespace?: string | null;
911
+ /**
912
+ * Monotonic counter incremented on every change, including system/materialization updates that do not bump revision.
913
+ * @internal
914
+ * @readonly
915
+ */
916
+ changesCounter?: string | null;
881
917
  }
882
918
  /**
883
919
  * Updates benefit items.
@@ -954,6 +990,11 @@ interface ListItemsOptions {
954
990
  */
955
991
  declare function queryItems(options?: QueryItemsOptions): ItemsQueryBuilder;
956
992
  interface QueryItemsOptions {
993
+ /**
994
+ * If true, the response will reflect a consistent snapshot of the data as of the time the request was received.
995
+ * @internal
996
+ */
997
+ consistent?: boolean | null | undefined;
957
998
  }
958
999
  interface QueryCursorResult {
959
1000
  cursors: Cursors;
@@ -997,10 +1038,6 @@ interface ItemsQueryBuilder {
997
1038
  * @param string - String to compare against. Case-insensitive.
998
1039
  */
999
1040
  startsWith: (propertyName: '_id' | 'externalId' | 'category' | 'itemSetId' | 'providerAppId' | 'namespace', value: string) => ItemsQueryBuilder;
1000
- /** @param propertyName - Property whose value is compared with `values`.
1001
- * @param values - List of values to compare against.
1002
- */
1003
- hasSome: (propertyName: '_id' | '_createdDate' | 'externalId' | 'category' | 'itemSetId' | 'providerAppId' | 'namespace', value: any[]) => ItemsQueryBuilder;
1004
1041
  in: (propertyName: '_id' | '_createdDate' | 'externalId' | 'category' | 'itemSetId' | 'providerAppId' | 'namespace', value: any) => ItemsQueryBuilder;
1005
1042
  exists: (propertyName: '_id' | '_createdDate' | 'externalId' | 'category' | 'itemSetId' | 'providerAppId' | 'namespace', value: boolean) => ItemsQueryBuilder;
1006
1043
  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
@@ -1081,14 +1118,24 @@ type ItemQuery = {
1081
1118
  Sort order.
1082
1119
  */
1083
1120
  order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
1121
+ /**
1122
+ When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
1123
+ a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
1124
+
1125
+ If multiple filters are provided, they are combined with AND operator.
1126
+
1127
+ Example:
1128
+ Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
1129
+ and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
1130
+ { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
1131
+ @internal: undefined,
1132
+ @maxSize: 10
1133
+ */
1134
+ selectItemsBy?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['selectItemsBy'] | null;
1084
1135
  }[];
1085
1136
  };
1086
1137
  declare const utils: {
1087
- query: {
1088
- QueryBuilder: () => _wix_sdk_types.QueryBuilder<Item, ItemQuerySpec, ItemQuery>;
1089
- Filter: _wix_sdk_types.FilterFactory<Item, ItemQuerySpec>;
1090
- Sort: _wix_sdk_types.SortFactory<ItemQuerySpec>;
1091
- };
1138
+ query: _wix_sdk_types.QueryHelpers<Item, ItemQuerySpec, ItemQuery>;
1092
1139
  };
1093
1140
  /**
1094
1141
  * Counts how many benefit items exist that fulfill the specified filtering conditions.
@@ -75,6 +75,12 @@ interface Item {
75
75
  * @readonly
76
76
  */
77
77
  namespace?: string | null;
78
+ /**
79
+ * Monotonic counter incremented on every change, including system/materialization updates that do not bump revision.
80
+ * @internal
81
+ * @readonly
82
+ */
83
+ changesCounter?: string | null;
78
84
  }
79
85
  interface ExtendedFields {
80
86
  /**
@@ -209,6 +215,11 @@ interface BulkDeleteItemsByFilterResponse {
209
215
  interface UpdateItemRequest {
210
216
  /** Item to update. */
211
217
  item: Item;
218
+ /**
219
+ * Explicit list of fields to update.
220
+ * @internal
221
+ */
222
+ fieldMask?: string[];
212
223
  }
213
224
  interface UpdateItemResponse {
214
225
  /** Updated item. */
@@ -394,6 +405,11 @@ interface Cursors {
394
405
  interface QueryItemsRequest {
395
406
  /** Filter, sort, and paging to apply to the query. */
396
407
  query?: CursorQuery;
408
+ /**
409
+ * If true, the response will reflect a consistent snapshot of the data as of the time the request was received.
410
+ * @internal
411
+ */
412
+ consistent?: boolean | null;
397
413
  }
398
414
  interface CursorQuery extends CursorQueryPagingMethodOneOf {
399
415
  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
@@ -427,6 +443,20 @@ interface Sorting {
427
443
  fieldName?: string;
428
444
  /** Sort order. */
429
445
  order?: SortOrderWithLiterals;
446
+ /**
447
+ * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
448
+ * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
449
+ *
450
+ * If multiple filters are provided, they are combined with AND operator.
451
+ *
452
+ * Example:
453
+ * Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
454
+ * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
455
+ * { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
456
+ * @internal
457
+ * @maxSize 10
458
+ */
459
+ selectItemsBy?: Record<string, any>[] | null;
430
460
  }
431
461
  declare enum SortOrder {
432
462
  ASC = "ASC",
@@ -578,8 +608,18 @@ interface DomainEventBodyOneOf {
578
608
  }
579
609
  interface EntityCreatedEvent {
580
610
  entityAsJson?: string;
611
+ /**
612
+ * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
613
+ * @internal
614
+ */
615
+ triggeredByUndelete?: boolean | null;
581
616
  /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
582
617
  restoreInfo?: RestoreInfo;
618
+ /**
619
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
620
+ * @internal
621
+ */
622
+ additionalMetadataAsJson?: string | null;
583
623
  }
584
624
  interface RestoreInfo {
585
625
  deletedDate?: Date | null;
@@ -591,10 +631,42 @@ interface EntityUpdatedEvent {
591
631
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
592
632
  */
593
633
  currentEntityAsJson?: string;
634
+ /**
635
+ * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
636
+ * wont populate it / have any reference to it in the API.
637
+ * 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,
638
+ * the developer should send only the new (current) entity.
639
+ * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
640
+ * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
641
+ * @internal
642
+ * @deprecated
643
+ */
644
+ previousEntityAsJson?: string | null;
645
+ /**
646
+ * Map of fully qualified field paths to their previous values for fields that changed.
647
+ * 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)
648
+ * @internal
649
+ */
650
+ modifiedFields?: Record<string, any>;
651
+ /**
652
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
653
+ * @internal
654
+ */
655
+ additionalMetadataAsJson?: string | null;
594
656
  }
595
657
  interface EntityDeletedEvent {
658
+ /**
659
+ * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
660
+ * @internal
661
+ */
662
+ movedToTrash?: boolean | null;
596
663
  /** Entity that was deleted. */
597
664
  deletedEntityAsJson?: string | null;
665
+ /**
666
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
667
+ * @internal
668
+ */
669
+ additionalMetadataAsJson?: string | null;
598
670
  }
599
671
  interface ActionEvent {
600
672
  bodyAsJson?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_benefit-programs_items",
3
- "version": "1.0.60",
3
+ "version": "1.0.62",
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.12",
39
- "@wix/sdk-types": "^1.17.7",
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.item"
58
51
  }
59
52
  },
60
- "falconPackageHash": "99891188a554ea98be7d1a03eb33c03195b3d42b66e35a48c70e29bc"
53
+ "falconPackageHash": "8dfeaaf1c6a11a3f75c9011dc1840244fa5337dda316bf999f1e9910"
61
54
  }
@@ -1,362 +0,0 @@
1
- import * as z from 'zod';
2
-
3
- declare const CreateItemRequest: z.ZodObject<{
4
- item: z.ZodObject<{
5
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
8
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
9
- externalId: z.ZodString;
10
- category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
11
- itemSetId: z.ZodString;
12
- displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
13
- providerAppId: z.ZodString;
14
- extendedFields: z.ZodOptional<z.ZodObject<{
15
- namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
16
- }, z.core.$strip>>;
17
- namespace: z.ZodString;
18
- }, z.core.$strip>;
19
- }, z.core.$strip>;
20
- declare const CreateItemResponse: z.ZodObject<{
21
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
22
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
23
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
24
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
25
- externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
26
- category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
27
- itemSetId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
28
- displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
29
- providerAppId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
30
- extendedFields: z.ZodOptional<z.ZodObject<{
31
- namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
32
- }, z.core.$strip>>;
33
- namespace: z.ZodNullable<z.ZodOptional<z.ZodString>>;
34
- }, z.core.$strip>;
35
- declare const BulkCreateItemsRequest: z.ZodObject<{
36
- items: z.ZodArray<z.ZodObject<{
37
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
38
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
39
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
40
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
41
- externalId: z.ZodString;
42
- category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
43
- itemSetId: z.ZodString;
44
- displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
45
- providerAppId: z.ZodString;
46
- extendedFields: z.ZodOptional<z.ZodObject<{
47
- namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
48
- }, z.core.$strip>>;
49
- namespace: z.ZodString;
50
- }, z.core.$strip>>;
51
- options: z.ZodOptional<z.ZodObject<{
52
- returnEntity: z.ZodOptional<z.ZodBoolean>;
53
- }, z.core.$strip>>;
54
- }, z.core.$strip>;
55
- declare const BulkCreateItemsResponse: z.ZodObject<{
56
- results: z.ZodOptional<z.ZodArray<z.ZodObject<{
57
- itemMetadata: z.ZodOptional<z.ZodObject<{
58
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
59
- originalIndex: z.ZodOptional<z.ZodNumber>;
60
- success: z.ZodOptional<z.ZodBoolean>;
61
- error: z.ZodOptional<z.ZodObject<{
62
- code: z.ZodOptional<z.ZodString>;
63
- description: z.ZodOptional<z.ZodString>;
64
- data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
65
- }, z.core.$strip>>;
66
- }, z.core.$strip>>;
67
- item: z.ZodOptional<z.ZodObject<{
68
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
69
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
70
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
71
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
72
- externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
73
- category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
74
- itemSetId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
75
- displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
76
- providerAppId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
77
- extendedFields: z.ZodOptional<z.ZodObject<{
78
- namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
79
- }, z.core.$strip>>;
80
- namespace: z.ZodNullable<z.ZodOptional<z.ZodString>>;
81
- }, z.core.$strip>>;
82
- }, z.core.$strip>>>;
83
- bulkActionMetadata: z.ZodOptional<z.ZodObject<{
84
- totalSuccesses: z.ZodOptional<z.ZodNumber>;
85
- totalFailures: z.ZodOptional<z.ZodNumber>;
86
- undetailedFailures: z.ZodOptional<z.ZodNumber>;
87
- }, z.core.$strip>>;
88
- }, z.core.$strip>;
89
- declare const DeleteItemRequest: z.ZodObject<{
90
- itemId: z.ZodString;
91
- }, z.core.$strip>;
92
- declare const DeleteItemResponse: z.ZodObject<{}, z.core.$strip>;
93
- declare const BulkDeleteItemsRequest: z.ZodObject<{
94
- itemIds: z.ZodArray<z.ZodString>;
95
- }, z.core.$strip>;
96
- declare const BulkDeleteItemsResponse: z.ZodObject<{
97
- results: z.ZodOptional<z.ZodArray<z.ZodObject<{
98
- itemMetadata: z.ZodOptional<z.ZodObject<{
99
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
100
- originalIndex: z.ZodOptional<z.ZodNumber>;
101
- success: z.ZodOptional<z.ZodBoolean>;
102
- error: z.ZodOptional<z.ZodObject<{
103
- code: z.ZodOptional<z.ZodString>;
104
- description: z.ZodOptional<z.ZodString>;
105
- data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
106
- }, z.core.$strip>>;
107
- }, z.core.$strip>>;
108
- item: z.ZodOptional<z.ZodObject<{
109
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
110
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
111
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
112
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
113
- externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
114
- category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
115
- itemSetId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
116
- displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
117
- providerAppId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
118
- extendedFields: z.ZodOptional<z.ZodObject<{
119
- namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
120
- }, z.core.$strip>>;
121
- namespace: z.ZodNullable<z.ZodOptional<z.ZodString>>;
122
- }, z.core.$strip>>;
123
- }, z.core.$strip>>>;
124
- bulkActionMetadata: z.ZodOptional<z.ZodObject<{
125
- totalSuccesses: z.ZodOptional<z.ZodNumber>;
126
- totalFailures: z.ZodOptional<z.ZodNumber>;
127
- undetailedFailures: z.ZodOptional<z.ZodNumber>;
128
- }, z.core.$strip>>;
129
- }, z.core.$strip>;
130
- declare const BulkDeleteItemsByFilterRequest: z.ZodObject<{
131
- namespace: z.ZodString;
132
- options: z.ZodOptional<z.ZodObject<{
133
- filter: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
134
- }, z.core.$strip>>;
135
- }, z.core.$strip>;
136
- declare const BulkDeleteItemsByFilterResponse: z.ZodObject<{
137
- jobId: z.ZodOptional<z.ZodString>;
138
- }, z.core.$strip>;
139
- declare const UpdateItemRequest: z.ZodObject<{
140
- _id: z.ZodString;
141
- item: z.ZodObject<{
142
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
143
- revision: z.ZodString;
144
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
145
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
146
- externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
147
- category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
148
- itemSetId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
149
- displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
150
- providerAppId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
151
- extendedFields: z.ZodOptional<z.ZodObject<{
152
- namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
153
- }, z.core.$strip>>;
154
- namespace: z.ZodNullable<z.ZodOptional<z.ZodString>>;
155
- }, z.core.$strip>;
156
- }, z.core.$strip>;
157
- declare const UpdateItemResponse: z.ZodObject<{
158
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
159
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
160
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
161
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
162
- externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
163
- category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
164
- itemSetId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
165
- displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
166
- providerAppId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
167
- extendedFields: z.ZodOptional<z.ZodObject<{
168
- namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
169
- }, z.core.$strip>>;
170
- namespace: z.ZodNullable<z.ZodOptional<z.ZodString>>;
171
- }, z.core.$strip>;
172
- declare const BulkUpdateItemsRequest: z.ZodObject<{
173
- options: z.ZodOptional<z.ZodObject<{
174
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
175
- item: z.ZodObject<{
176
- _id: z.ZodString;
177
- revision: z.ZodString;
178
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
179
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
180
- externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
181
- category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
182
- itemSetId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
183
- displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
184
- providerAppId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
185
- extendedFields: z.ZodOptional<z.ZodObject<{
186
- namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
187
- }, z.core.$strip>>;
188
- namespace: z.ZodNullable<z.ZodOptional<z.ZodString>>;
189
- }, z.core.$strip>;
190
- fieldMask: z.ZodOptional<z.ZodArray<z.ZodString>>;
191
- }, z.core.$strip>>>;
192
- returnEntity: z.ZodOptional<z.ZodBoolean>;
193
- }, z.core.$strip>>;
194
- }, z.core.$strip>;
195
- declare const BulkUpdateItemsResponse: z.ZodObject<{
196
- results: z.ZodOptional<z.ZodArray<z.ZodObject<{
197
- itemMetadata: z.ZodOptional<z.ZodObject<{
198
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
199
- originalIndex: z.ZodOptional<z.ZodNumber>;
200
- success: z.ZodOptional<z.ZodBoolean>;
201
- error: z.ZodOptional<z.ZodObject<{
202
- code: z.ZodOptional<z.ZodString>;
203
- description: z.ZodOptional<z.ZodString>;
204
- data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
205
- }, z.core.$strip>>;
206
- }, z.core.$strip>>;
207
- item: z.ZodOptional<z.ZodObject<{
208
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
209
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
210
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
211
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
212
- externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
213
- category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
214
- itemSetId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
215
- displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
216
- providerAppId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
217
- extendedFields: z.ZodOptional<z.ZodObject<{
218
- namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
219
- }, z.core.$strip>>;
220
- namespace: z.ZodNullable<z.ZodOptional<z.ZodString>>;
221
- }, z.core.$strip>>;
222
- }, z.core.$strip>>>;
223
- bulkActionMetadata: z.ZodOptional<z.ZodObject<{
224
- totalSuccesses: z.ZodOptional<z.ZodNumber>;
225
- totalFailures: z.ZodOptional<z.ZodNumber>;
226
- undetailedFailures: z.ZodOptional<z.ZodNumber>;
227
- }, z.core.$strip>>;
228
- }, z.core.$strip>;
229
- declare const GetItemRequest: z.ZodObject<{
230
- itemId: z.ZodString;
231
- }, z.core.$strip>;
232
- declare const GetItemResponse: z.ZodObject<{
233
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
234
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
235
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
236
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
237
- externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
238
- category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
239
- itemSetId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
240
- displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
241
- providerAppId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
242
- extendedFields: z.ZodOptional<z.ZodObject<{
243
- namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
244
- }, z.core.$strip>>;
245
- namespace: z.ZodNullable<z.ZodOptional<z.ZodString>>;
246
- }, z.core.$strip>;
247
- declare const ListItemsRequest: z.ZodObject<{
248
- options: z.ZodOptional<z.ZodObject<{
249
- filter: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
250
- type: z.ZodOptional<z.ZodEnum<{
251
- BY_ITEM_SET_ID_AND_REFERENCE: "BY_ITEM_SET_ID_AND_REFERENCE";
252
- BY_REFERENCE: "BY_REFERENCE";
253
- }>>;
254
- namespace: z.ZodOptional<z.ZodString>;
255
- }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
256
- byItemSetIdAndReferenceOptions: z.ZodOptional<z.ZodNever>;
257
- byReferenceOptions: z.ZodOptional<z.ZodNever>;
258
- }, z.core.$strip>, z.ZodObject<{
259
- byReferenceOptions: z.ZodOptional<z.ZodNever>;
260
- byItemSetIdAndReferenceOptions: z.ZodObject<{
261
- filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
262
- itemSetId: z.ZodOptional<z.ZodString>;
263
- externalId: z.ZodOptional<z.ZodString>;
264
- category: z.ZodOptional<z.ZodString>;
265
- providerAppId: z.ZodOptional<z.ZodString>;
266
- }, z.core.$strip>>>;
267
- }, z.core.$strip>;
268
- }, z.core.$strip>, z.ZodObject<{
269
- byItemSetIdAndReferenceOptions: z.ZodOptional<z.ZodNever>;
270
- byReferenceOptions: z.ZodObject<{
271
- filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
272
- externalId: z.ZodOptional<z.ZodString>;
273
- category: z.ZodOptional<z.ZodString>;
274
- providerAppId: z.ZodOptional<z.ZodString>;
275
- }, z.core.$strip>>>;
276
- }, z.core.$strip>;
277
- }, z.core.$strip>]>>>;
278
- cursorPaging: z.ZodOptional<z.ZodObject<{
279
- limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
280
- cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
281
- }, z.core.$strip>>;
282
- }, z.core.$strip>>;
283
- }, z.core.$strip>;
284
- declare const ListItemsResponse: z.ZodObject<{
285
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
286
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
287
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
288
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
289
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
290
- externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
291
- category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
292
- itemSetId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
293
- displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
294
- providerAppId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
295
- extendedFields: z.ZodOptional<z.ZodObject<{
296
- namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
297
- }, z.core.$strip>>;
298
- namespace: z.ZodNullable<z.ZodOptional<z.ZodString>>;
299
- }, z.core.$strip>>>;
300
- metadata: z.ZodOptional<z.ZodObject<{
301
- count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
302
- cursors: z.ZodOptional<z.ZodObject<{
303
- next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
304
- prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
305
- }, z.core.$strip>>;
306
- hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
307
- }, z.core.$strip>>;
308
- }, z.core.$strip>;
309
- declare const QueryItemsRequest: z.ZodObject<{
310
- query: z.ZodIntersection<z.ZodObject<{
311
- filter: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
312
- sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
313
- fieldName: z.ZodOptional<z.ZodString>;
314
- order: z.ZodOptional<z.ZodEnum<{
315
- ASC: "ASC";
316
- DESC: "DESC";
317
- }>>;
318
- }, z.core.$strip>>>;
319
- }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
320
- cursorPaging: z.ZodOptional<z.ZodNever>;
321
- }, z.core.$strip>, z.ZodObject<{
322
- cursorPaging: z.ZodObject<{
323
- limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
324
- cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
325
- }, z.core.$strip>;
326
- }, z.core.$strip>]>>;
327
- }, z.core.$strip>;
328
- declare const QueryItemsResponse: z.ZodObject<{
329
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
330
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
331
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
332
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
333
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
334
- externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
335
- category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
336
- itemSetId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
337
- displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
338
- providerAppId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
339
- extendedFields: z.ZodOptional<z.ZodObject<{
340
- namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
341
- }, z.core.$strip>>;
342
- namespace: z.ZodNullable<z.ZodOptional<z.ZodString>>;
343
- }, z.core.$strip>>>;
344
- metadata: z.ZodOptional<z.ZodObject<{
345
- count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
346
- cursors: z.ZodOptional<z.ZodObject<{
347
- next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
348
- prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
349
- }, z.core.$strip>>;
350
- hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
351
- }, z.core.$strip>>;
352
- }, z.core.$strip>;
353
- declare const CountItemsRequest: z.ZodObject<{
354
- options: z.ZodOptional<z.ZodObject<{
355
- filter: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
356
- }, z.core.$strip>>;
357
- }, z.core.$strip>;
358
- declare const CountItemsResponse: z.ZodObject<{
359
- count: z.ZodOptional<z.ZodNumber>;
360
- }, z.core.$strip>;
361
-
362
- export { BulkCreateItemsRequest, BulkCreateItemsResponse, BulkDeleteItemsByFilterRequest, BulkDeleteItemsByFilterResponse, BulkDeleteItemsRequest, BulkDeleteItemsResponse, BulkUpdateItemsRequest, BulkUpdateItemsResponse, CountItemsRequest, CountItemsResponse, CreateItemRequest, CreateItemResponse, DeleteItemRequest, DeleteItemResponse, GetItemRequest, GetItemResponse, ListItemsRequest, ListItemsResponse, QueryItemsRequest, QueryItemsResponse, UpdateItemRequest, UpdateItemResponse };