@wix/auto_sdk_benefit-programs_pool-items 1.0.0

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 (52) hide show
  1. package/build/cjs/index.d.ts +11 -0
  2. package/build/cjs/index.js +424 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +733 -0
  5. package/build/cjs/index.typings.js +393 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +563 -0
  8. package/build/cjs/meta.js +147 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/schemas.d.ts +79 -0
  11. package/build/cjs/schemas.js +205 -0
  12. package/build/cjs/schemas.js.map +1 -0
  13. package/build/es/index.d.mts +11 -0
  14. package/build/es/index.mjs +385 -0
  15. package/build/es/index.mjs.map +1 -0
  16. package/build/es/index.typings.d.mts +733 -0
  17. package/build/es/index.typings.mjs +353 -0
  18. package/build/es/index.typings.mjs.map +1 -0
  19. package/build/es/meta.d.mts +563 -0
  20. package/build/es/meta.mjs +116 -0
  21. package/build/es/meta.mjs.map +1 -0
  22. package/build/es/package.json +3 -0
  23. package/build/es/schemas.d.mts +79 -0
  24. package/build/es/schemas.mjs +167 -0
  25. package/build/es/schemas.mjs.map +1 -0
  26. package/build/internal/cjs/index.d.ts +11 -0
  27. package/build/internal/cjs/index.js +424 -0
  28. package/build/internal/cjs/index.js.map +1 -0
  29. package/build/internal/cjs/index.typings.d.ts +763 -0
  30. package/build/internal/cjs/index.typings.js +393 -0
  31. package/build/internal/cjs/index.typings.js.map +1 -0
  32. package/build/internal/cjs/meta.d.ts +563 -0
  33. package/build/internal/cjs/meta.js +147 -0
  34. package/build/internal/cjs/meta.js.map +1 -0
  35. package/build/internal/cjs/schemas.d.ts +79 -0
  36. package/build/internal/cjs/schemas.js +205 -0
  37. package/build/internal/cjs/schemas.js.map +1 -0
  38. package/build/internal/es/index.d.mts +11 -0
  39. package/build/internal/es/index.mjs +385 -0
  40. package/build/internal/es/index.mjs.map +1 -0
  41. package/build/internal/es/index.typings.d.mts +763 -0
  42. package/build/internal/es/index.typings.mjs +353 -0
  43. package/build/internal/es/index.typings.mjs.map +1 -0
  44. package/build/internal/es/meta.d.mts +563 -0
  45. package/build/internal/es/meta.mjs +116 -0
  46. package/build/internal/es/meta.mjs.map +1 -0
  47. package/build/internal/es/schemas.d.mts +79 -0
  48. package/build/internal/es/schemas.mjs +167 -0
  49. package/build/internal/es/schemas.mjs.map +1 -0
  50. package/meta/package.json +3 -0
  51. package/package.json +61 -0
  52. package/schemas/package.json +3 -0
@@ -0,0 +1,563 @@
1
+ import { QueryPoolItemsRequest as QueryPoolItemsRequest$1, QueryPoolItemsResponse as QueryPoolItemsResponse$1 } from './index.typings.mjs';
2
+ import '@wix/sdk-types';
3
+
4
+ interface PoolItem {
5
+ /**
6
+ * Benefit item ID.
7
+ * @format GUID
8
+ * @readonly
9
+ */
10
+ id?: string;
11
+ /**
12
+ * Revision number, which increments by 1 each time the benefit item is updated.
13
+ * To prevent conflicting changes, the current revision must be passed when updating the item.
14
+ *
15
+ * Ignored when creating an item.
16
+ * @readonly
17
+ */
18
+ revision?: string | null;
19
+ /**
20
+ * Date and time the item was created.
21
+ * @readonly
22
+ */
23
+ createdDate?: Date | null;
24
+ /**
25
+ * Date and time the item was updated.
26
+ * @readonly
27
+ */
28
+ updatedDate?: Date | null;
29
+ /**
30
+ * External item ID assigned by the provider of the items.
31
+ *
32
+ * For example, if the benefit items are products, this ID corresponds to the specific product ID in the supplier's system.
33
+ * @format GUID
34
+ * @immutable
35
+ * @readonly
36
+ */
37
+ externalId?: string;
38
+ /**
39
+ * Item category. Groups benefit items together for organization and management purposes. For example, classes, posts, groups.
40
+ * @maxLength 20
41
+ * @immutable
42
+ * @readonly
43
+ */
44
+ category?: string;
45
+ /**
46
+ * ID of the application providing the benefit item.
47
+ *
48
+ * ID of the external application supplying the items. Each item's external ID is unique to its respective provider's application.
49
+ * @format GUID
50
+ * @immutable
51
+ * @readonly
52
+ */
53
+ providerAppId?: string;
54
+ /**
55
+ * Module name of the item provider's application that originated the items.
56
+ *
57
+ * For example, `store-inventory` or `fitness-resources`.
58
+ * @minLength 1
59
+ * @maxLength 20
60
+ * @immutable
61
+ * @readonly
62
+ */
63
+ namespace?: string;
64
+ /**
65
+ * Pool id
66
+ * @format GUID
67
+ * @immutable
68
+ * @readonly
69
+ */
70
+ poolId?: string;
71
+ /**
72
+ * Program id
73
+ * @format GUID
74
+ * @immutable
75
+ * @readonly
76
+ */
77
+ programId?: string | null;
78
+ /**
79
+ * Program external id
80
+ * @format GUID
81
+ * @readonly
82
+ */
83
+ externalProgramId?: string | null;
84
+ /**
85
+ * Program definition id
86
+ * @format GUID
87
+ * @immutable
88
+ * @readonly
89
+ */
90
+ programDefinitionId?: string | null;
91
+ /**
92
+ * Program definition external id
93
+ * @format GUID
94
+ * @immutable
95
+ * @readonly
96
+ */
97
+ externalProgramDefinitionId?: string | null;
98
+ /**
99
+ * Pool definition id
100
+ * @format GUID
101
+ * @immutable
102
+ * @readonly
103
+ */
104
+ poolDefinitionId?: string | null;
105
+ /**
106
+ * Item set ID.
107
+ * @format GUID
108
+ * @immutable
109
+ * @readonly
110
+ */
111
+ itemSetId?: string;
112
+ /**
113
+ * Who is getting the benefit
114
+ * @readonly
115
+ * @immutable
116
+ */
117
+ beneficiary?: CommonIdentificationData;
118
+ /**
119
+ * Item set ID.
120
+ * @format GUID
121
+ * @immutable
122
+ * @readonly
123
+ */
124
+ itemId?: string;
125
+ /**
126
+ * Unique identifier for the benefit associated with this item.
127
+ * @maxLength 64
128
+ * @immutable
129
+ * @readonly
130
+ */
131
+ benefitKey?: string;
132
+ /**
133
+ * Search key for the item reference, which is a unique identifier for searching and referencing the item within the provider's system.
134
+ * It's build by concatenating the following fields in this order, separated by a separator (e.g., "/"):
135
+ * - providerAppId
136
+ * - category
137
+ * - externalId
138
+ * @maxLength 94
139
+ * @immutable
140
+ * @readonly
141
+ */
142
+ itemReferenceSearchKey?: string;
143
+ }
144
+ interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
145
+ /**
146
+ * ID of a site visitor that hasn't logged in to the site.
147
+ * @format GUID
148
+ */
149
+ anonymousVisitorId?: string;
150
+ /**
151
+ * ID of a site member.
152
+ * @format GUID
153
+ */
154
+ memberId?: string;
155
+ /**
156
+ * ID of a Wix user.
157
+ * @format GUID
158
+ */
159
+ wixUserId?: string;
160
+ }
161
+ /** @oneof */
162
+ interface CommonIdentificationDataIdOneOf {
163
+ /**
164
+ * ID of a site visitor that hasn't logged in to the site.
165
+ * @format GUID
166
+ */
167
+ anonymousVisitorId?: string;
168
+ /**
169
+ * ID of a site member.
170
+ * @format GUID
171
+ */
172
+ memberId?: string;
173
+ /**
174
+ * ID of a Wix user.
175
+ * @format GUID
176
+ */
177
+ wixUserId?: string;
178
+ }
179
+ declare enum IdentityType {
180
+ /** Unknown type. This value is not used. */
181
+ UNKNOWN = "UNKNOWN",
182
+ /** A site visitor who has not logged in. */
183
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
184
+ /** A logged-in site member. */
185
+ MEMBER = "MEMBER",
186
+ /** A Wix account holder, such as a site owner or contributor. */
187
+ WIX_USER = "WIX_USER"
188
+ }
189
+ /** @enumType */
190
+ type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
191
+ interface PoolInfo {
192
+ /**
193
+ * Pool name.
194
+ *
195
+ * You may want to use the same name that's used in the associated pool definition.
196
+ * @maxLength 64
197
+ */
198
+ displayName?: string;
199
+ /**
200
+ * Pool description.
201
+ * @maxLength 450
202
+ */
203
+ description?: string | null;
204
+ }
205
+ interface ProgramInfo {
206
+ /**
207
+ * Program id
208
+ * @format GUID
209
+ */
210
+ id?: string;
211
+ /**
212
+ * Program external id
213
+ * @format GUID
214
+ */
215
+ externalId?: string | null;
216
+ /**
217
+ * Program name.
218
+ * @maxLength 64
219
+ */
220
+ displayName?: string | null;
221
+ }
222
+ interface ProgramDefinitionInfo {
223
+ /**
224
+ * Program definition id
225
+ * @format GUID
226
+ */
227
+ id?: string;
228
+ /**
229
+ * Program definition external id
230
+ * @format GUID
231
+ */
232
+ externalId?: string | null;
233
+ /**
234
+ * Program definition name
235
+ * @maxLength 64
236
+ */
237
+ displayName?: string | null;
238
+ /**
239
+ * Program definition description.
240
+ * @maxLength 450
241
+ */
242
+ description?: string | null;
243
+ }
244
+ interface ItemInfo {
245
+ /**
246
+ * Item display name.
247
+ * @maxLength 64
248
+ */
249
+ displayName?: string | null;
250
+ }
251
+ interface BenefitInfo {
252
+ /**
253
+ * Price of the benefit in credits. The price is the same for all of this benefit's items.
254
+ * @decimalValue options { gte:0, maxScale:4 }
255
+ */
256
+ price?: string | null;
257
+ /**
258
+ * Unique identifier for this benefit.
259
+ * @maxLength 64
260
+ */
261
+ benefitKey?: string;
262
+ /**
263
+ * Benefit name.
264
+ * @maxLength 40
265
+ */
266
+ displayName?: string | null;
267
+ /**
268
+ * Benefit description.
269
+ * @maxLength 255
270
+ */
271
+ description?: string | null;
272
+ }
273
+ interface PoolItemDeactivated {
274
+ /** The pool item that was deactivated. */
275
+ poolItem?: PoolItem;
276
+ }
277
+ interface QueryPoolItemsRequest {
278
+ /** Query to select benefit items. */
279
+ query?: CursorQuery;
280
+ /**
281
+ * Fields to be included in the response.
282
+ * @maxSize 5
283
+ */
284
+ fields?: RequestedFieldsWithLiterals[];
285
+ }
286
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
287
+ /** 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`. */
288
+ cursorPaging?: CursorPaging;
289
+ /**
290
+ * Filter object in the following format:
291
+ * `"filter" : {
292
+ * "fieldName1": "value1",
293
+ * "fieldName2":{"$operator":"value2"}
294
+ * }`
295
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
296
+ */
297
+ filter?: Record<string, any> | null;
298
+ /**
299
+ * Sort object in the following format:
300
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
301
+ * @maxSize 5
302
+ */
303
+ sort?: Sorting[];
304
+ }
305
+ /** @oneof */
306
+ interface CursorQueryPagingMethodOneOf {
307
+ /** 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`. */
308
+ cursorPaging?: CursorPaging;
309
+ }
310
+ interface Sorting {
311
+ /**
312
+ * Name of the field to sort by.
313
+ * @maxLength 512
314
+ */
315
+ fieldName?: string;
316
+ /** Sort order. */
317
+ order?: SortOrderWithLiterals;
318
+ }
319
+ declare enum SortOrder {
320
+ ASC = "ASC",
321
+ DESC = "DESC"
322
+ }
323
+ /** @enumType */
324
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
325
+ interface CursorPaging {
326
+ /**
327
+ * Maximum number of items to return in the results.
328
+ * @max 1000
329
+ */
330
+ limit?: number | null;
331
+ /**
332
+ * Pointer to the next or previous page in the list of results.
333
+ *
334
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
335
+ * Not relevant for the first request.
336
+ * @maxLength 16000
337
+ */
338
+ cursor?: string | null;
339
+ }
340
+ declare enum RequestedFields {
341
+ POOL = "POOL",
342
+ PROGRAM = "PROGRAM",
343
+ PROGRAM_DEFINITION = "PROGRAM_DEFINITION",
344
+ ITEM = "ITEM",
345
+ BENEFIT = "BENEFIT"
346
+ }
347
+ /** @enumType */
348
+ type RequestedFieldsWithLiterals = RequestedFields | 'POOL' | 'PROGRAM' | 'PROGRAM_DEFINITION' | 'ITEM' | 'BENEFIT';
349
+ interface QueryPoolItemsResponse {
350
+ /** List of items. */
351
+ poolItems?: PoolItem[];
352
+ /** Metadata for paginated results. */
353
+ metadata?: CursorPagingMetadata;
354
+ }
355
+ interface CursorPagingMetadata {
356
+ /** Number of items returned in the response. */
357
+ count?: number | null;
358
+ /** Cursor strings that point to the next page, previous page, or both. */
359
+ cursors?: Cursors;
360
+ /**
361
+ * Whether there are more pages to retrieve following the current page.
362
+ *
363
+ * + `true`: Another page of results can be retrieved.
364
+ * + `false`: This is the last page.
365
+ */
366
+ hasNext?: boolean | null;
367
+ }
368
+ interface Cursors {
369
+ /**
370
+ * Cursor string pointing to the next page in the list of results.
371
+ * @maxLength 16000
372
+ */
373
+ next?: string | null;
374
+ /**
375
+ * Cursor pointing to the previous page in the list of results.
376
+ * @maxLength 16000
377
+ */
378
+ prev?: string | null;
379
+ }
380
+ interface InvalidatePoolItemsRequest {
381
+ /**
382
+ * The pool ID whose items are to be invalidated
383
+ * @format GUID
384
+ */
385
+ poolId?: string;
386
+ /**
387
+ * List of item set ids whose items are to be invalidated
388
+ * @maxSize 10
389
+ * @format GUID
390
+ */
391
+ itemSetIds?: string[];
392
+ }
393
+ interface InvalidatePoolItemsResponse {
394
+ }
395
+ interface DomainEvent extends DomainEventBodyOneOf {
396
+ createdEvent?: EntityCreatedEvent;
397
+ updatedEvent?: EntityUpdatedEvent;
398
+ deletedEvent?: EntityDeletedEvent;
399
+ actionEvent?: ActionEvent;
400
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
401
+ id?: string;
402
+ /**
403
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
404
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
405
+ */
406
+ entityFqdn?: string;
407
+ /**
408
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
409
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
410
+ */
411
+ slug?: string;
412
+ /** ID of the entity associated with the event. */
413
+ entityId?: string;
414
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
415
+ eventTime?: Date | null;
416
+ /**
417
+ * Whether the event was triggered as a result of a privacy regulation application
418
+ * (for example, GDPR).
419
+ */
420
+ triggeredByAnonymizeRequest?: boolean | null;
421
+ /** If present, indicates the action that triggered the event. */
422
+ originatedFrom?: string | null;
423
+ /**
424
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
425
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
426
+ */
427
+ entityEventSequence?: string | null;
428
+ }
429
+ /** @oneof */
430
+ interface DomainEventBodyOneOf {
431
+ createdEvent?: EntityCreatedEvent;
432
+ updatedEvent?: EntityUpdatedEvent;
433
+ deletedEvent?: EntityDeletedEvent;
434
+ actionEvent?: ActionEvent;
435
+ }
436
+ interface EntityCreatedEvent {
437
+ entityAsJson?: string;
438
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
439
+ restoreInfo?: RestoreInfo;
440
+ }
441
+ interface RestoreInfo {
442
+ deletedDate?: Date | null;
443
+ }
444
+ interface EntityUpdatedEvent {
445
+ /**
446
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
447
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
448
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
449
+ */
450
+ currentEntityAsJson?: string;
451
+ }
452
+ interface EntityDeletedEvent {
453
+ /** Entity that was deleted. */
454
+ deletedEntityAsJson?: string | null;
455
+ }
456
+ interface ActionEvent {
457
+ bodyAsJson?: string;
458
+ }
459
+ interface MessageEnvelope {
460
+ /**
461
+ * App instance ID.
462
+ * @format GUID
463
+ */
464
+ instanceId?: string | null;
465
+ /**
466
+ * Event type.
467
+ * @maxLength 150
468
+ */
469
+ eventType?: string;
470
+ /** The identification type and identity data. */
471
+ identity?: IdentificationData;
472
+ /** Stringify payload. */
473
+ data?: string;
474
+ /** Details related to the account */
475
+ accountInfo?: AccountInfo;
476
+ }
477
+ interface IdentificationData extends IdentificationDataIdOneOf {
478
+ /**
479
+ * ID of a site visitor that has not logged in to the site.
480
+ * @format GUID
481
+ */
482
+ anonymousVisitorId?: string;
483
+ /**
484
+ * ID of a site visitor that has logged in to the site.
485
+ * @format GUID
486
+ */
487
+ memberId?: string;
488
+ /**
489
+ * ID of a Wix user (site owner, contributor, etc.).
490
+ * @format GUID
491
+ */
492
+ wixUserId?: string;
493
+ /**
494
+ * ID of an app.
495
+ * @format GUID
496
+ */
497
+ appId?: string;
498
+ /** @readonly */
499
+ identityType?: WebhookIdentityTypeWithLiterals;
500
+ }
501
+ /** @oneof */
502
+ interface IdentificationDataIdOneOf {
503
+ /**
504
+ * ID of a site visitor that has not logged in to the site.
505
+ * @format GUID
506
+ */
507
+ anonymousVisitorId?: string;
508
+ /**
509
+ * ID of a site visitor that has logged in to the site.
510
+ * @format GUID
511
+ */
512
+ memberId?: string;
513
+ /**
514
+ * ID of a Wix user (site owner, contributor, etc.).
515
+ * @format GUID
516
+ */
517
+ wixUserId?: string;
518
+ /**
519
+ * ID of an app.
520
+ * @format GUID
521
+ */
522
+ appId?: string;
523
+ }
524
+ declare enum WebhookIdentityType {
525
+ UNKNOWN = "UNKNOWN",
526
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
527
+ MEMBER = "MEMBER",
528
+ WIX_USER = "WIX_USER",
529
+ APP = "APP"
530
+ }
531
+ /** @enumType */
532
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
533
+ interface AccountInfo {
534
+ /**
535
+ * ID of the Wix account associated with the event.
536
+ * @format GUID
537
+ */
538
+ accountId?: string | null;
539
+ /**
540
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
541
+ * @format GUID
542
+ */
543
+ parentAccountId?: string | null;
544
+ /**
545
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
546
+ * @format GUID
547
+ */
548
+ siteId?: string | null;
549
+ }
550
+
551
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
552
+ getUrl: (context: any) => string;
553
+ httpMethod: K;
554
+ path: string;
555
+ pathParams: M;
556
+ __requestType: T;
557
+ __originalRequestType: S;
558
+ __responseType: Q;
559
+ __originalResponseType: R;
560
+ };
561
+ declare function queryPoolItems(): __PublicMethodMetaInfo<'POST', {}, QueryPoolItemsRequest$1, QueryPoolItemsRequest, QueryPoolItemsResponse$1, QueryPoolItemsResponse>;
562
+
563
+ export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type BenefitInfo as BenefitInfoOriginal, type CommonIdentificationDataIdOneOf as CommonIdentificationDataIdOneOfOriginal, type CommonIdentificationData as CommonIdentificationDataOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, IdentityType as IdentityTypeOriginal, type IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal, type InvalidatePoolItemsRequest as InvalidatePoolItemsRequestOriginal, type InvalidatePoolItemsResponse as InvalidatePoolItemsResponseOriginal, type ItemInfo as ItemInfoOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type PoolInfo as PoolInfoOriginal, type PoolItemDeactivated as PoolItemDeactivatedOriginal, type PoolItem as PoolItemOriginal, type ProgramDefinitionInfo as ProgramDefinitionInfoOriginal, type ProgramInfo as ProgramInfoOriginal, type QueryPoolItemsRequest as QueryPoolItemsRequestOriginal, type QueryPoolItemsResponse as QueryPoolItemsResponseOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, queryPoolItems };
@@ -0,0 +1,116 @@
1
+ // src/benefit-programs-v1-pool-item-pool-items.http.ts
2
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
3
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
4
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
5
+ function resolveWixBenefitProgramsV1PoolItemPoolItemServiceUrl(opts) {
6
+ const domainToMappings = {
7
+ _: [
8
+ {
9
+ srcPath: "/_api/benefit-programs/v1/pool-items",
10
+ destPath: "/v1/pool-items"
11
+ }
12
+ ],
13
+ "www.wixapis.com": [
14
+ {
15
+ srcPath: "/benefit-programs/v1/pool-items",
16
+ destPath: "/v1/pool-items"
17
+ }
18
+ ],
19
+ "*.dev.wix-code.com": [
20
+ {
21
+ srcPath: "/_api/benefit-programs/v1/pool-items",
22
+ destPath: "/v1/pool-items"
23
+ }
24
+ ]
25
+ };
26
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
27
+ }
28
+ var PACKAGE_NAME = "@wix/auto_sdk_benefit-programs_pool-items";
29
+ function queryPoolItems(payload) {
30
+ function __queryPoolItems({ host }) {
31
+ const metadata = {
32
+ entityFqdn: "wix.benefit_programs.v1.pool_item",
33
+ method: "POST",
34
+ methodFqn: "wix.benefit_programs.v1.pool_item.PoolItemService.QueryPoolItems",
35
+ packageName: PACKAGE_NAME,
36
+ migrationOptions: {
37
+ optInTransformResponse: true
38
+ },
39
+ url: resolveWixBenefitProgramsV1PoolItemPoolItemServiceUrl({
40
+ protoPath: "/v1/pool-items/query",
41
+ data: payload,
42
+ host
43
+ }),
44
+ data: payload,
45
+ transformResponse: (payload2) => transformPaths(payload2, [
46
+ {
47
+ transformFn: transformRESTTimestampToSDKTimestamp,
48
+ paths: [
49
+ { path: "poolItems.createdDate" },
50
+ { path: "poolItems.updatedDate" }
51
+ ]
52
+ }
53
+ ])
54
+ };
55
+ return metadata;
56
+ }
57
+ return __queryPoolItems;
58
+ }
59
+
60
+ // src/benefit-programs-v1-pool-item-pool-items.types.ts
61
+ var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
62
+ IdentityType2["UNKNOWN"] = "UNKNOWN";
63
+ IdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
64
+ IdentityType2["MEMBER"] = "MEMBER";
65
+ IdentityType2["WIX_USER"] = "WIX_USER";
66
+ return IdentityType2;
67
+ })(IdentityType || {});
68
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
69
+ SortOrder2["ASC"] = "ASC";
70
+ SortOrder2["DESC"] = "DESC";
71
+ return SortOrder2;
72
+ })(SortOrder || {});
73
+ var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
74
+ RequestedFields2["POOL"] = "POOL";
75
+ RequestedFields2["PROGRAM"] = "PROGRAM";
76
+ RequestedFields2["PROGRAM_DEFINITION"] = "PROGRAM_DEFINITION";
77
+ RequestedFields2["ITEM"] = "ITEM";
78
+ RequestedFields2["BENEFIT"] = "BENEFIT";
79
+ return RequestedFields2;
80
+ })(RequestedFields || {});
81
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
82
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
83
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
84
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
85
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
86
+ WebhookIdentityType2["APP"] = "APP";
87
+ return WebhookIdentityType2;
88
+ })(WebhookIdentityType || {});
89
+
90
+ // src/benefit-programs-v1-pool-item-pool-items.meta.ts
91
+ function queryPoolItems2() {
92
+ const payload = {};
93
+ const getRequestOptions = queryPoolItems(payload);
94
+ const getUrl = (context) => {
95
+ const { url } = getRequestOptions(context);
96
+ return url;
97
+ };
98
+ return {
99
+ getUrl,
100
+ httpMethod: "POST",
101
+ path: "/v1/pool-items/query",
102
+ pathParams: {},
103
+ __requestType: null,
104
+ __originalRequestType: null,
105
+ __responseType: null,
106
+ __originalResponseType: null
107
+ };
108
+ }
109
+ export {
110
+ IdentityType as IdentityTypeOriginal,
111
+ RequestedFields as RequestedFieldsOriginal,
112
+ SortOrder as SortOrderOriginal,
113
+ WebhookIdentityType as WebhookIdentityTypeOriginal,
114
+ queryPoolItems2 as queryPoolItems
115
+ };
116
+ //# sourceMappingURL=meta.mjs.map