@wix/auto_sdk_benefit-programs_transactions 1.0.21 → 1.0.23

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 (134) hide show
  1. package/build/{internal/cjs/src/benefit-programs-v1-transaction-transactions.universal.d.ts → benefit-programs-v1-transaction-transactions.universal-DVO76Rkw.d.mts} +54 -100
  2. package/build/{cjs/src/benefit-programs-v1-transaction-transactions.universal.d.ts → benefit-programs-v1-transaction-transactions.universal-DVO76Rkw.d.ts} +54 -100
  3. package/build/index.d.mts +35 -0
  4. package/build/index.d.ts +35 -0
  5. package/build/index.js +327 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +297 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{es/src/benefit-programs-v1-transaction-transactions.universal.d.ts → benefit-programs-v1-transaction-transactions.universal-DVO76Rkw.d.mts} +54 -100
  10. package/build/{es/src/benefit-programs-v1-transaction-transactions.universal.d.ts → internal/benefit-programs-v1-transaction-transactions.universal-DVO76Rkw.d.ts} +54 -100
  11. package/build/internal/index.d.mts +35 -0
  12. package/build/internal/index.d.ts +35 -0
  13. package/build/internal/index.js +327 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +297 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +353 -0
  18. package/build/internal/meta.d.ts +353 -0
  19. package/build/internal/meta.js +224 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +196 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +353 -0
  24. package/build/meta.d.ts +353 -0
  25. package/build/meta.js +224 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +196 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/benefit-programs-v1-transaction-transactions.context.d.ts +0 -6
  40. package/build/cjs/src/benefit-programs-v1-transaction-transactions.context.js +0 -14
  41. package/build/cjs/src/benefit-programs-v1-transaction-transactions.context.js.map +0 -1
  42. package/build/cjs/src/benefit-programs-v1-transaction-transactions.http.d.ts +0 -17
  43. package/build/cjs/src/benefit-programs-v1-transaction-transactions.http.js +0 -172
  44. package/build/cjs/src/benefit-programs-v1-transaction-transactions.http.js.map +0 -1
  45. package/build/cjs/src/benefit-programs-v1-transaction-transactions.meta.d.ts +0 -16
  46. package/build/cjs/src/benefit-programs-v1-transaction-transactions.meta.js +0 -66
  47. package/build/cjs/src/benefit-programs-v1-transaction-transactions.meta.js.map +0 -1
  48. package/build/cjs/src/benefit-programs-v1-transaction-transactions.public.d.ts +0 -32
  49. package/build/cjs/src/benefit-programs-v1-transaction-transactions.public.js +0 -24
  50. package/build/cjs/src/benefit-programs-v1-transaction-transactions.public.js.map +0 -1
  51. package/build/cjs/src/benefit-programs-v1-transaction-transactions.types.d.ts +0 -602
  52. package/build/cjs/src/benefit-programs-v1-transaction-transactions.types.js +0 -48
  53. package/build/cjs/src/benefit-programs-v1-transaction-transactions.types.js.map +0 -1
  54. package/build/cjs/src/benefit-programs-v1-transaction-transactions.universal.js +0 -186
  55. package/build/cjs/src/benefit-programs-v1-transaction-transactions.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/benefit-programs-v1-transaction-transactions.context.d.ts +0 -6
  67. package/build/es/src/benefit-programs-v1-transaction-transactions.context.js +0 -6
  68. package/build/es/src/benefit-programs-v1-transaction-transactions.context.js.map +0 -1
  69. package/build/es/src/benefit-programs-v1-transaction-transactions.http.d.ts +0 -17
  70. package/build/es/src/benefit-programs-v1-transaction-transactions.http.js +0 -167
  71. package/build/es/src/benefit-programs-v1-transaction-transactions.http.js.map +0 -1
  72. package/build/es/src/benefit-programs-v1-transaction-transactions.meta.d.ts +0 -16
  73. package/build/es/src/benefit-programs-v1-transaction-transactions.meta.js +0 -38
  74. package/build/es/src/benefit-programs-v1-transaction-transactions.meta.js.map +0 -1
  75. package/build/es/src/benefit-programs-v1-transaction-transactions.public.d.ts +0 -32
  76. package/build/es/src/benefit-programs-v1-transaction-transactions.public.js +0 -14
  77. package/build/es/src/benefit-programs-v1-transaction-transactions.public.js.map +0 -1
  78. package/build/es/src/benefit-programs-v1-transaction-transactions.types.d.ts +0 -602
  79. package/build/es/src/benefit-programs-v1-transaction-transactions.types.js +0 -45
  80. package/build/es/src/benefit-programs-v1-transaction-transactions.types.js.map +0 -1
  81. package/build/es/src/benefit-programs-v1-transaction-transactions.universal.js +0 -158
  82. package/build/es/src/benefit-programs-v1-transaction-transactions.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.context.d.ts +0 -6
  93. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.context.js +0 -14
  94. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.context.js.map +0 -1
  95. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.http.d.ts +0 -17
  96. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.http.js +0 -172
  97. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.http.js.map +0 -1
  98. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.meta.d.ts +0 -16
  99. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.meta.js +0 -66
  100. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.meta.js.map +0 -1
  101. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.public.d.ts +0 -32
  102. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.public.js +0 -24
  103. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.public.js.map +0 -1
  104. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.types.d.ts +0 -602
  105. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.types.js +0 -48
  106. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.types.js.map +0 -1
  107. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.universal.js +0 -186
  108. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.context.d.ts +0 -6
  119. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.context.js +0 -6
  120. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.context.js.map +0 -1
  121. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.http.d.ts +0 -17
  122. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.http.js +0 -167
  123. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.http.js.map +0 -1
  124. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.meta.d.ts +0 -16
  125. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.meta.js +0 -38
  126. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.meta.js.map +0 -1
  127. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.public.d.ts +0 -32
  128. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.public.js +0 -14
  129. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.public.js.map +0 -1
  130. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.types.d.ts +0 -602
  131. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.types.js +0 -45
  132. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.types.js.map +0 -1
  133. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.universal.js +0 -158
  134. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.universal.js.map +0 -1
@@ -1,5 +1,4 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
2
- export interface Transaction {
1
+ interface Transaction {
3
2
  /**
4
3
  * Transaction ID.
5
4
  * @format GUID
@@ -74,7 +73,7 @@ export interface Transaction {
74
73
  */
75
74
  extendedFields?: ExtendedFields;
76
75
  }
77
- export interface PoolInfo {
76
+ interface PoolInfo {
78
77
  /**
79
78
  * Pool ID.
80
79
  * @format GUID
@@ -113,7 +112,7 @@ export interface PoolInfo {
113
112
  */
114
113
  namespace?: string | null;
115
114
  }
116
- export declare enum BalanceType {
115
+ declare enum BalanceType {
117
116
  UNDEFINED = "UNDEFINED",
118
117
  /** In a pool's balance. */
119
118
  AVAILABLE = "AVAILABLE",
@@ -121,8 +120,8 @@ export declare enum BalanceType {
121
120
  EXTERNAL = "EXTERNAL"
122
121
  }
123
122
  /** @enumType */
124
- export type BalanceTypeWithLiterals = BalanceType | 'UNDEFINED' | 'AVAILABLE' | 'EXTERNAL';
125
- export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
123
+ type BalanceTypeWithLiterals = BalanceType | 'UNDEFINED' | 'AVAILABLE' | 'EXTERNAL';
124
+ interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
126
125
  /**
127
126
  * ID of a site visitor that hasn't logged in to the site.
128
127
  * @format GUID
@@ -140,7 +139,7 @@ export interface CommonIdentificationData extends CommonIdentificationDataIdOneO
140
139
  wixUserId?: string;
141
140
  }
142
141
  /** @oneof */
143
- export interface CommonIdentificationDataIdOneOf {
142
+ interface CommonIdentificationDataIdOneOf {
144
143
  /**
145
144
  * ID of a site visitor that hasn't logged in to the site.
146
145
  * @format GUID
@@ -157,7 +156,7 @@ export interface CommonIdentificationDataIdOneOf {
157
156
  */
158
157
  wixUserId?: string;
159
158
  }
160
- export declare enum IdentityType {
159
+ declare enum IdentityType {
161
160
  /** Unknown type. This value is not used. */
162
161
  UNKNOWN = "UNKNOWN",
163
162
  /** A site visitor who has not logged in. */
@@ -167,9 +166,7 @@ export declare enum IdentityType {
167
166
  /** A Wix account holder, such as a site owner or contributor. */
168
167
  WIX_USER = "WIX_USER"
169
168
  }
170
- /** @enumType */
171
- export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
172
- export declare enum TransactionStatus {
169
+ declare enum TransactionStatus {
173
170
  UNDEFINED = "UNDEFINED",
174
171
  /** Transaction is pending. This is the initial transaction status. */
175
172
  PENDING = "PENDING",
@@ -179,8 +176,8 @@ export declare enum TransactionStatus {
179
176
  FAILED = "FAILED"
180
177
  }
181
178
  /** @enumType */
182
- export type TransactionStatusWithLiterals = TransactionStatus | 'UNDEFINED' | 'PENDING' | 'COMPLETED' | 'FAILED';
183
- export interface TransactionDetails {
179
+ type TransactionStatusWithLiterals = TransactionStatus | 'UNDEFINED' | 'PENDING' | 'COMPLETED' | 'FAILED';
180
+ interface TransactionDetails {
184
181
  /**
185
182
  * Item associated with the transaction.
186
183
  * @readonly
@@ -200,7 +197,7 @@ export interface TransactionDetails {
200
197
  */
201
198
  reason?: string | null;
202
199
  }
203
- export interface Item {
200
+ interface Item {
204
201
  /**
205
202
  * Item ID.
206
203
  * @format GUID
@@ -232,7 +229,7 @@ export interface Item {
232
229
  */
233
230
  displayName?: string | null;
234
231
  }
235
- export interface ExtendedFields {
232
+ interface ExtendedFields {
236
233
  /**
237
234
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
238
235
  * The value of each key is structured according to the schema defined when the extended fields were configured.
@@ -243,7 +240,7 @@ export interface ExtendedFields {
243
240
  */
244
241
  namespaces?: Record<string, Record<string, any>>;
245
242
  }
246
- export interface RequestedValues {
243
+ interface RequestedValues {
247
244
  /**
248
245
  * Amount the balance was adjusted in this transaction.
249
246
  * @decimalValue options { gte:0, maxScale:4 }
@@ -254,15 +251,15 @@ export interface RequestedValues {
254
251
  /** Where the credits went to. */
255
252
  target?: BalanceTypeWithLiterals;
256
253
  }
257
- export interface CreateTransactionRequest {
254
+ interface CreateTransactionRequest {
258
255
  /** Transaction to create. */
259
256
  transaction?: Transaction;
260
257
  }
261
- export interface CreateTransactionResponse {
258
+ interface CreateTransactionResponse {
262
259
  /** Created transaction. */
263
260
  transaction?: Transaction;
264
261
  }
265
- export interface BulkCreateTransactionsRequest {
262
+ interface BulkCreateTransactionsRequest {
266
263
  /**
267
264
  * Transactions to be created.
268
265
  * @minSize 1
@@ -276,7 +273,7 @@ export interface BulkCreateTransactionsRequest {
276
273
  */
277
274
  returnEntity?: boolean;
278
275
  }
279
- export interface BulkCreateTransactionsResponse {
276
+ interface BulkCreateTransactionsResponse {
280
277
  /**
281
278
  * List of results for each transaction.
282
279
  *
@@ -288,13 +285,13 @@ export interface BulkCreateTransactionsResponse {
288
285
  /** Bulk action metadata. */
289
286
  bulkActionMetadata?: BulkActionMetadata;
290
287
  }
291
- export interface BulkTransactionResult {
288
+ interface BulkTransactionResult {
292
289
  /** Metadata for the item. */
293
290
  itemMetadata?: ItemMetadata;
294
291
  /** Created transaction. */
295
292
  transaction?: Transaction;
296
293
  }
297
- export interface ItemMetadata {
294
+ interface ItemMetadata {
298
295
  /**
299
296
  * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
300
297
  * @format GUID
@@ -307,7 +304,7 @@ export interface ItemMetadata {
307
304
  /** Details about the error in case of failure. */
308
305
  error?: ApplicationError;
309
306
  }
310
- export interface ApplicationError {
307
+ interface ApplicationError {
311
308
  /** Error code. */
312
309
  code?: string;
313
310
  /** Description of the error. */
@@ -315,7 +312,7 @@ export interface ApplicationError {
315
312
  /** Data related to the error. */
316
313
  data?: Record<string, any> | null;
317
314
  }
318
- export interface BulkActionMetadata {
315
+ interface BulkActionMetadata {
319
316
  /** Number of items that were successfully processed. */
320
317
  totalSuccesses?: number;
321
318
  /** Number of items that couldn't be processed. */
@@ -323,15 +320,15 @@ export interface BulkActionMetadata {
323
320
  /** Number of failures without details because detailed failure threshold was exceeded. */
324
321
  undetailedFailures?: number;
325
322
  }
326
- export interface UpdateTransactionRequest {
323
+ interface UpdateTransactionRequest {
327
324
  /** Transaction to update. */
328
325
  transaction?: Transaction;
329
326
  }
330
- export interface UpdateTransactionResponse {
327
+ interface UpdateTransactionResponse {
331
328
  /** Updated transaction. */
332
329
  transaction?: Transaction;
333
330
  }
334
- export interface BulkUpdateTransactionsRequest {
331
+ interface BulkUpdateTransactionsRequest {
335
332
  /**
336
333
  * Transactions to update.
337
334
  * @minSize 1
@@ -345,13 +342,13 @@ export interface BulkUpdateTransactionsRequest {
345
342
  */
346
343
  returnEntity?: boolean;
347
344
  }
348
- export interface MaskedTransaction {
345
+ interface MaskedTransaction {
349
346
  /** Transaction to be updated. */
350
347
  transaction?: Transaction;
351
348
  /** Explicit list of fields to update. */
352
349
  fieldMask?: string[];
353
350
  }
354
- export interface BulkUpdateTransactionsResponse {
351
+ interface BulkUpdateTransactionsResponse {
355
352
  /**
356
353
  * List of results for each Transaction.
357
354
  *
@@ -363,22 +360,22 @@ export interface BulkUpdateTransactionsResponse {
363
360
  /** Bulk action metadata. */
364
361
  bulkActionMetadata?: BulkActionMetadata;
365
362
  }
366
- export interface GetTransactionRequest {
363
+ interface GetTransactionRequest {
367
364
  /**
368
365
  * ID of the transaction to retrieve.
369
366
  * @format GUID
370
367
  */
371
368
  transactionId: string;
372
369
  }
373
- export interface GetTransactionResponse {
370
+ interface GetTransactionResponse {
374
371
  /** Retrieved transaction. */
375
372
  transaction?: Transaction;
376
373
  }
377
- export interface QueryTransactionsRequest {
374
+ interface QueryTransactionsRequest {
378
375
  /** Filter, sort, and paging to apply to the query. */
379
376
  query: CursorQuery;
380
377
  }
381
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
378
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
382
379
  /** 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`. */
383
380
  cursorPaging?: CursorPaging;
384
381
  /**
@@ -394,11 +391,11 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
394
391
  sort?: Sorting[];
395
392
  }
396
393
  /** @oneof */
397
- export interface CursorQueryPagingMethodOneOf {
394
+ interface CursorQueryPagingMethodOneOf {
398
395
  /** 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`. */
399
396
  cursorPaging?: CursorPaging;
400
397
  }
401
- export interface Sorting {
398
+ interface Sorting {
402
399
  /**
403
400
  * Field to sort by.
404
401
  * @maxLength 512
@@ -411,15 +408,15 @@ export interface Sorting {
411
408
  */
412
409
  order?: SortOrderWithLiterals;
413
410
  }
414
- export declare enum SortOrder {
411
+ declare enum SortOrder {
415
412
  /** Ascending sort order. */
416
413
  ASC = "ASC",
417
414
  /** Descending sort order. */
418
415
  DESC = "DESC"
419
416
  }
420
417
  /** @enumType */
421
- export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
422
- export interface CursorPaging {
418
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
419
+ interface CursorPaging {
423
420
  /**
424
421
  * Maximum number of items to return.
425
422
  * @max 100
@@ -434,13 +431,13 @@ export interface CursorPaging {
434
431
  */
435
432
  cursor?: string | null;
436
433
  }
437
- export interface QueryTransactionsResponse {
434
+ interface QueryTransactionsResponse {
438
435
  /** List of retrieved transactions. */
439
436
  transactions?: Transaction[];
440
437
  /** Metadata for paginated results. */
441
438
  metadata?: CursorPagingMetadata;
442
439
  }
443
- export interface CursorPagingMetadata {
440
+ interface CursorPagingMetadata {
444
441
  /** Number of items returned in the response. */
445
442
  count?: number | null;
446
443
  /** Cursor strings that point to the next page, previous page, or both. */
@@ -453,7 +450,7 @@ export interface CursorPagingMetadata {
453
450
  */
454
451
  hasNext?: boolean | null;
455
452
  }
456
- export interface Cursors {
453
+ interface Cursors {
457
454
  /**
458
455
  * Cursor string pointing to the next page in the list of results.
459
456
  * @maxLength 16000
@@ -465,7 +462,7 @@ export interface Cursors {
465
462
  */
466
463
  prev?: string | null;
467
464
  }
468
- export interface DomainEvent extends DomainEventBodyOneOf {
465
+ interface DomainEvent extends DomainEventBodyOneOf {
469
466
  createdEvent?: EntityCreatedEvent;
470
467
  updatedEvent?: EntityUpdatedEvent;
471
468
  deletedEvent?: EntityDeletedEvent;
@@ -500,19 +497,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
500
497
  entityEventSequence?: string | null;
501
498
  }
502
499
  /** @oneof */
503
- export interface DomainEventBodyOneOf {
500
+ interface DomainEventBodyOneOf {
504
501
  createdEvent?: EntityCreatedEvent;
505
502
  updatedEvent?: EntityUpdatedEvent;
506
503
  deletedEvent?: EntityDeletedEvent;
507
504
  actionEvent?: ActionEvent;
508
505
  }
509
- export interface EntityCreatedEvent {
506
+ interface EntityCreatedEvent {
510
507
  entity?: string;
511
508
  }
512
- export interface RestoreInfo {
509
+ interface RestoreInfo {
513
510
  deletedDate?: Date | null;
514
511
  }
515
- export interface EntityUpdatedEvent {
512
+ interface EntityUpdatedEvent {
516
513
  /**
517
514
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
518
515
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
@@ -520,14 +517,14 @@ export interface EntityUpdatedEvent {
520
517
  */
521
518
  currentEntity?: string;
522
519
  }
523
- export interface EntityDeletedEvent {
520
+ interface EntityDeletedEvent {
524
521
  /** Entity that was deleted. */
525
522
  deletedEntity?: string | null;
526
523
  }
527
- export interface ActionEvent {
524
+ interface ActionEvent {
528
525
  body?: string;
529
526
  }
530
- export interface MessageEnvelope {
527
+ interface MessageEnvelope {
531
528
  /**
532
529
  * App instance ID.
533
530
  * @format GUID
@@ -543,7 +540,7 @@ export interface MessageEnvelope {
543
540
  /** Stringify payload. */
544
541
  data?: string;
545
542
  }
546
- export interface IdentificationData extends IdentificationDataIdOneOf {
543
+ interface IdentificationData extends IdentificationDataIdOneOf {
547
544
  /**
548
545
  * ID of a site visitor that has not logged in to the site.
549
546
  * @format GUID
@@ -568,7 +565,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
568
565
  identityType?: WebhookIdentityTypeWithLiterals;
569
566
  }
570
567
  /** @oneof */
571
- export interface IdentificationDataIdOneOf {
568
+ interface IdentificationDataIdOneOf {
572
569
  /**
573
570
  * ID of a site visitor that has not logged in to the site.
574
571
  * @format GUID
@@ -590,7 +587,7 @@ export interface IdentificationDataIdOneOf {
590
587
  */
591
588
  appId?: string;
592
589
  }
593
- export declare enum WebhookIdentityType {
590
+ declare enum WebhookIdentityType {
594
591
  UNKNOWN = "UNKNOWN",
595
592
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
596
593
  MEMBER = "MEMBER",
@@ -598,51 +595,7 @@ export declare enum WebhookIdentityType {
598
595
  APP = "APP"
599
596
  }
600
597
  /** @enumType */
601
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
602
- type TransactionNonNullablePaths = `pool._id` | `amount` | `source` | `target` | `idempotencyKey` | `beneficiary.anonymousVisitorId` | `beneficiary.memberId` | `beneficiary.wixUserId` | `instructingParty.anonymousVisitorId` | `instructingParty.memberId` | `instructingParty.wixUserId` | `status`;
603
- /**
604
- * Retrieves a transaction.
605
- * @param transactionId - ID of the transaction to retrieve.
606
- * @public
607
- * @documentationMaturity preview
608
- * @requiredField transactionId
609
- * @permissionId BENEFIT_PROGRAMS.TRANSACTION_READ
610
- * @permissionScope SCOPE.BENEFIT_PROGRAMS.MANAGE
611
- * @permissionScopeId SCOPE.BENEFIT_PROGRAMS.MANAGE
612
- * @permissionScope SCOPE.BENEFIT_PROGRAMS.READ
613
- * @permissionScopeId SCOPE.BENEFIT_PROGRAMS.READ
614
- * @permissionScope Manage Events
615
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
616
- * @applicableIdentity APP
617
- * @returns Retrieved transaction.
618
- * @fqn wix.benefit_programs.v1.transaction.TransactionService.GetTransaction
619
- */
620
- export declare function getTransaction(transactionId: string): Promise<NonNullablePaths<Transaction, TransactionNonNullablePaths>>;
621
- /**
622
- * Creates a query to retrieve a list of transactions.
623
- *
624
- * The Query Transactions method builds a query to retrieve a list of transactions and returns a `TransactionsQueryBuilder` object.
625
- *
626
- * The returned object contains the query definition, which is used to run the query using the `find()` method.
627
- *
628
- * You can refine the query by chaining `TransactionsQueryBuilder` methods onto the query. `TransactionsQueryBuilder` methods enable you to filter, sort, and control the results that Query Transactions returns.
629
- *
630
- * Query Transactions has a default paging limit of 50, which you can override.
631
- *
632
- * For a full description of the item object, see the object returned for the `items` property in `TransactionsQueryResult`.
633
- * @public
634
- * @documentationMaturity preview
635
- * @permissionScope SCOPE.BENEFIT_PROGRAMS.MANAGE
636
- * @permissionScopeId SCOPE.BENEFIT_PROGRAMS.MANAGE
637
- * @permissionScope SCOPE.BENEFIT_PROGRAMS.READ
638
- * @permissionScopeId SCOPE.BENEFIT_PROGRAMS.READ
639
- * @permissionScope Manage Events
640
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
641
- * @permissionId BENEFIT_PROGRAMS.TRANSACTION_READ
642
- * @applicableIdentity APP
643
- * @fqn wix.benefit_programs.v1.transaction.TransactionService.QueryTransactions
644
- */
645
- export declare function queryTransactions(): TransactionsQueryBuilder;
598
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
646
599
  interface QueryCursorResult {
647
600
  cursors: Cursors;
648
601
  hasNext: () => boolean;
@@ -650,13 +603,13 @@ interface QueryCursorResult {
650
603
  length: number;
651
604
  pageSize: number;
652
605
  }
653
- export interface TransactionsQueryResult extends QueryCursorResult {
606
+ interface TransactionsQueryResult extends QueryCursorResult {
654
607
  items: Transaction[];
655
608
  query: TransactionsQueryBuilder;
656
609
  next: () => Promise<TransactionsQueryResult>;
657
610
  prev: () => Promise<TransactionsQueryResult>;
658
611
  }
659
- export interface TransactionsQueryBuilder {
612
+ interface TransactionsQueryBuilder {
660
613
  /** @param propertyName - Property whose value is compared with `value`.
661
614
  * @param value - Value to compare against.
662
615
  * @documentationMaturity preview
@@ -720,4 +673,5 @@ export interface TransactionsQueryBuilder {
720
673
  /** @documentationMaturity preview */
721
674
  find: () => Promise<TransactionsQueryResult>;
722
675
  }
723
- export {};
676
+
677
+ export { type ApplicationError as A, BalanceType as B, type CommonIdentificationData as C, type DomainEvent as D, type ExtendedFields as E, type EntityUpdatedEvent as F, type GetTransactionRequest as G, type EntityDeletedEvent as H, IdentityType as I, type ActionEvent as J, type MessageEnvelope as K, type IdentificationData as L, type MaskedTransaction as M, type IdentificationDataIdOneOf as N, type TransactionsQueryResult as O, type PoolInfo as P, type QueryTransactionsRequest as Q, type RequestedValues as R, SortOrder as S, type Transaction as T, type UpdateTransactionRequest as U, WebhookIdentityType as W, type TransactionsQueryBuilder as a, TransactionStatus as b, type CommonIdentificationDataIdOneOf as c, type TransactionDetails as d, type Item as e, type CreateTransactionRequest as f, type CreateTransactionResponse as g, type BulkCreateTransactionsRequest as h, type BulkCreateTransactionsResponse as i, type BulkTransactionResult as j, type ItemMetadata as k, type BulkActionMetadata as l, type UpdateTransactionResponse as m, type BulkUpdateTransactionsRequest as n, type BulkUpdateTransactionsResponse as o, type GetTransactionResponse as p, type CursorQuery as q, type CursorQueryPagingMethodOneOf as r, type Sorting as s, type CursorPaging as t, type QueryTransactionsResponse as u, type CursorPagingMetadata as v, type Cursors as w, type DomainEventBodyOneOf as x, type EntityCreatedEvent as y, type RestoreInfo as z };