@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,602 +0,0 @@
1
- export interface Transaction {
2
- /**
3
- * Transaction ID.
4
- * @format GUID
5
- * @readonly
6
- */
7
- id?: string | null;
8
- /**
9
- * Revision number, which increments by 1 each time the transaction is updated.
10
- * @readonly
11
- */
12
- revision?: string | null;
13
- /**
14
- * Date and time the transaction was created.
15
- * @readonly
16
- */
17
- createdDate?: Date | null;
18
- /**
19
- * Date and time the transaction was updated.
20
- * @readonly
21
- */
22
- updatedDate?: Date | null;
23
- /**
24
- * Pool associated with this transaction.
25
- * @readonly
26
- */
27
- pool?: PoolInfo;
28
- /**
29
- * Amount the balance was adjusted in this transaction.
30
- * @decimalValue options { gte:0, maxScale:4 }
31
- */
32
- amount?: string;
33
- /** Where the credits came from. */
34
- source?: BalanceTypeWithLiterals;
35
- /** Where the credits went to. */
36
- target?: BalanceTypeWithLiterals;
37
- /**
38
- * Unique identifier, generated by the client.
39
- * Used to recognize repeated attempts to make the same request.
40
- * @maxLength 200
41
- * @readonly
42
- */
43
- idempotencyKey?: string;
44
- /**
45
- * ID of the related transaction. For example, if this transaction is a refund for a benefit redemption, the related transaction is the benefit redemption transaction.
46
- * @format GUID
47
- * @readonly
48
- */
49
- relatedTransactionId?: string | null;
50
- /**
51
- * Beneficiary of the pool associated with this transaction.
52
- * @readonly
53
- * @immutable
54
- */
55
- beneficiary?: CommonIdentificationData;
56
- /**
57
- * Identity that created the transaction.
58
- * @readonly
59
- * @immutable
60
- */
61
- instructingParty?: CommonIdentificationData;
62
- /** Transaction status. */
63
- status?: TransactionStatusWithLiterals;
64
- /**
65
- * Additional transaction details.
66
- * @readonly
67
- */
68
- details?: TransactionDetails;
69
- /**
70
- * Custom field data for the transaction object.
71
- *
72
- * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.
73
- */
74
- extendedFields?: ExtendedFields;
75
- }
76
- export interface PoolInfo {
77
- /**
78
- * Pool ID.
79
- * @format GUID
80
- * @readonly
81
- */
82
- id?: string;
83
- /**
84
- * ID of the pool definition the pool was created from.
85
- * @format GUID
86
- * @readonly
87
- */
88
- poolDefinitionId?: string | null;
89
- /**
90
- * ID of the program definition containing the pool definition the pool was created from.
91
- * @format GUID
92
- * @readonly
93
- */
94
- programDefinitionId?: string | null;
95
- /**
96
- * ID of the program that contains the pool.
97
- * @format GUID
98
- * @readonly
99
- */
100
- programId?: string | null;
101
- /**
102
- * Available credits.
103
- * @decimalValue options { gte:0, maxScale:4 }
104
- * @readonly
105
- */
106
- creditAmount?: string | null;
107
- /**
108
- * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
109
- * @minLength 1
110
- * @maxLength 50
111
- * @readonly
112
- */
113
- namespace?: string | null;
114
- }
115
- export declare enum BalanceType {
116
- UNDEFINED = "UNDEFINED",
117
- /** In a pool's balance. */
118
- AVAILABLE = "AVAILABLE",
119
- /** Outside a pool's balance. */
120
- EXTERNAL = "EXTERNAL"
121
- }
122
- /** @enumType */
123
- export type BalanceTypeWithLiterals = BalanceType | 'UNDEFINED' | 'AVAILABLE' | 'EXTERNAL';
124
- export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
125
- /**
126
- * ID of a site visitor that hasn't logged in to the site.
127
- * @format GUID
128
- */
129
- anonymousVisitorId?: string;
130
- /**
131
- * ID of a site member.
132
- * @format GUID
133
- */
134
- memberId?: string;
135
- /**
136
- * ID of a Wix user.
137
- * @format GUID
138
- */
139
- wixUserId?: string;
140
- }
141
- /** @oneof */
142
- export interface CommonIdentificationDataIdOneOf {
143
- /**
144
- * ID of a site visitor that hasn't logged in to the site.
145
- * @format GUID
146
- */
147
- anonymousVisitorId?: string;
148
- /**
149
- * ID of a site member.
150
- * @format GUID
151
- */
152
- memberId?: string;
153
- /**
154
- * ID of a Wix user.
155
- * @format GUID
156
- */
157
- wixUserId?: string;
158
- }
159
- export declare enum IdentityType {
160
- /** Unknown type. This value is not used. */
161
- UNKNOWN = "UNKNOWN",
162
- /** A site visitor who has not logged in. */
163
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
164
- /** A logged-in site member. */
165
- MEMBER = "MEMBER",
166
- /** A Wix account holder, such as a site owner or contributor. */
167
- WIX_USER = "WIX_USER"
168
- }
169
- /** @enumType */
170
- export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
171
- export declare enum TransactionStatus {
172
- UNDEFINED = "UNDEFINED",
173
- /** Transaction is pending. This is the initial transaction status. */
174
- PENDING = "PENDING",
175
- /** Transaction completed successfully. */
176
- COMPLETED = "COMPLETED",
177
- /** Transaction failed. */
178
- FAILED = "FAILED"
179
- }
180
- /** @enumType */
181
- export type TransactionStatusWithLiterals = TransactionStatus | 'UNDEFINED' | 'PENDING' | 'COMPLETED' | 'FAILED';
182
- export interface TransactionDetails {
183
- /**
184
- * Item associated with the transaction.
185
- * @readonly
186
- */
187
- item?: Item;
188
- /** Amount of items associated with the transaction. */
189
- itemCount?: number | null;
190
- /**
191
- * Date and time the transaction was created.
192
- * @readonly
193
- */
194
- effectiveDate?: Date | null;
195
- /**
196
- * Reason for the transaction. For example, `Redemption`.
197
- * @readonly
198
- * @maxLength 256
199
- */
200
- reason?: string | null;
201
- }
202
- export interface Item {
203
- /**
204
- * Item ID.
205
- * @format GUID
206
- * @readonly
207
- */
208
- id?: string | null;
209
- /**
210
- * Item external ID.
211
- * @format GUID
212
- * @readonly
213
- */
214
- externalId?: string | null;
215
- /**
216
- * Item category.
217
- * @maxLength 20
218
- * @readonly
219
- */
220
- category?: string | null;
221
- /**
222
- * Item set ID.
223
- * @format GUID
224
- * @readonly
225
- */
226
- itemSetId?: string | null;
227
- /**
228
- * Item name.
229
- * @maxLength 64
230
- * @readonly
231
- */
232
- displayName?: string | null;
233
- }
234
- export interface ExtendedFields {
235
- /**
236
- * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
237
- * The value of each key is structured according to the schema defined when the extended fields were configured.
238
- *
239
- * You can only access fields for which you have the appropriate permissions.
240
- *
241
- * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
242
- */
243
- namespaces?: Record<string, Record<string, any>>;
244
- }
245
- export interface RequestedValues {
246
- /**
247
- * Amount the balance was adjusted in this transaction.
248
- * @decimalValue options { gte:0, maxScale:4 }
249
- */
250
- amount?: string;
251
- /** Where the credits came from. */
252
- source?: BalanceTypeWithLiterals;
253
- /** Where the credits went to. */
254
- target?: BalanceTypeWithLiterals;
255
- }
256
- export interface CreateTransactionRequest {
257
- /** Transaction to create. */
258
- transaction?: Transaction;
259
- }
260
- export interface CreateTransactionResponse {
261
- /** Created transaction. */
262
- transaction?: Transaction;
263
- }
264
- export interface BulkCreateTransactionsRequest {
265
- /**
266
- * Transactions to be created.
267
- * @minSize 1
268
- * @maxSize 100
269
- */
270
- transactions?: Transaction[];
271
- /**
272
- * Whether to return the full item entities.
273
- *
274
- * Default: `false`
275
- */
276
- returnEntity?: boolean;
277
- }
278
- export interface BulkCreateTransactionsResponse {
279
- /**
280
- * List of results for each transaction.
281
- *
282
- * Includes the transaction and whether the operation was successful.
283
- * @minSize 1
284
- * @maxSize 100
285
- */
286
- results?: BulkTransactionResult[];
287
- /** Bulk action metadata. */
288
- bulkActionMetadata?: BulkActionMetadata;
289
- }
290
- export interface BulkTransactionResult {
291
- /** Metadata for the item. */
292
- itemMetadata?: ItemMetadata;
293
- /** Created transaction. */
294
- transaction?: Transaction;
295
- }
296
- export interface ItemMetadata {
297
- /**
298
- * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
299
- * @format GUID
300
- */
301
- id?: string | null;
302
- /** Index of the item within the request array. Allows for correlation between request and response items. */
303
- originalIndex?: number;
304
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
305
- success?: boolean;
306
- /** Details about the error in case of failure. */
307
- error?: ApplicationError;
308
- }
309
- export interface ApplicationError {
310
- /** Error code. */
311
- code?: string;
312
- /** Description of the error. */
313
- description?: string;
314
- /** Data related to the error. */
315
- data?: Record<string, any> | null;
316
- }
317
- export interface BulkActionMetadata {
318
- /** Number of items that were successfully processed. */
319
- totalSuccesses?: number;
320
- /** Number of items that couldn't be processed. */
321
- totalFailures?: number;
322
- /** Number of failures without details because detailed failure threshold was exceeded. */
323
- undetailedFailures?: number;
324
- }
325
- export interface UpdateTransactionRequest {
326
- /** Transaction to update. */
327
- transaction?: Transaction;
328
- }
329
- export interface UpdateTransactionResponse {
330
- /** Updated transaction. */
331
- transaction?: Transaction;
332
- }
333
- export interface BulkUpdateTransactionsRequest {
334
- /**
335
- * Transactions to update.
336
- * @minSize 1
337
- * @maxSize 100
338
- */
339
- transactions?: MaskedTransaction[];
340
- /**
341
- * Whether to return full transaction entities.
342
- *
343
- * Default: `false`
344
- */
345
- returnEntity?: boolean;
346
- }
347
- export interface MaskedTransaction {
348
- /** Transaction to be updated. */
349
- transaction?: Transaction;
350
- /** Explicit list of fields to update. */
351
- fieldMask?: string[];
352
- }
353
- export interface BulkUpdateTransactionsResponse {
354
- /**
355
- * List of results for each Transaction.
356
- *
357
- * Includes the Transaction and whether the update was successful.
358
- * @minSize 1
359
- * @maxSize 100
360
- */
361
- results?: BulkTransactionResult[];
362
- /** Bulk action metadata. */
363
- bulkActionMetadata?: BulkActionMetadata;
364
- }
365
- export interface GetTransactionRequest {
366
- /**
367
- * ID of the transaction to retrieve.
368
- * @format GUID
369
- */
370
- transactionId: string;
371
- }
372
- export interface GetTransactionResponse {
373
- /** Retrieved transaction. */
374
- transaction?: Transaction;
375
- }
376
- export interface QueryTransactionsRequest {
377
- /** Filter, sort, and paging to apply to the query. */
378
- query: CursorQuery;
379
- }
380
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
381
- /** 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`. */
382
- cursorPaging?: CursorPaging;
383
- /**
384
- * Filter object.
385
- * See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
386
- * for more information.
387
- */
388
- filter?: Record<string, any> | null;
389
- /**
390
- * List of sort objects.
391
- * @maxSize 5
392
- */
393
- sort?: Sorting[];
394
- }
395
- /** @oneof */
396
- export interface CursorQueryPagingMethodOneOf {
397
- /** 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`. */
398
- cursorPaging?: CursorPaging;
399
- }
400
- export interface Sorting {
401
- /**
402
- * Field to sort by.
403
- * @maxLength 512
404
- */
405
- fieldName?: string;
406
- /**
407
- * Sort order. Use `ASC` for ascending order or `DESC` for descending order.
408
- *
409
- * Default: `ASC`
410
- */
411
- order?: SortOrderWithLiterals;
412
- }
413
- export declare enum SortOrder {
414
- /** Ascending sort order. */
415
- ASC = "ASC",
416
- /** Descending sort order. */
417
- DESC = "DESC"
418
- }
419
- /** @enumType */
420
- export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
421
- export interface CursorPaging {
422
- /**
423
- * Maximum number of items to return.
424
- * @max 100
425
- */
426
- limit?: number | null;
427
- /**
428
- * Pointer to the next or previous page in the list of results.
429
- *
430
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
431
- * Not relevant for the first request.
432
- * @maxLength 16000
433
- */
434
- cursor?: string | null;
435
- }
436
- export interface QueryTransactionsResponse {
437
- /** List of retrieved transactions. */
438
- transactions?: Transaction[];
439
- /** Metadata for paginated results. */
440
- metadata?: CursorPagingMetadata;
441
- }
442
- export interface CursorPagingMetadata {
443
- /** Number of items returned in the response. */
444
- count?: number | null;
445
- /** Cursor strings that point to the next page, previous page, or both. */
446
- cursors?: Cursors;
447
- /**
448
- * Whether there are more pages to retrieve following the current page.
449
- *
450
- * + `true`: Another page of results can be retrieved.
451
- * + `false`: This is the last page.
452
- */
453
- hasNext?: boolean | null;
454
- }
455
- export interface Cursors {
456
- /**
457
- * Cursor string pointing to the next page in the list of results.
458
- * @maxLength 16000
459
- */
460
- next?: string | null;
461
- /**
462
- * Cursor pointing to the previous page in the list of results.
463
- * @maxLength 16000
464
- */
465
- prev?: string | null;
466
- }
467
- export interface DomainEvent extends DomainEventBodyOneOf {
468
- createdEvent?: EntityCreatedEvent;
469
- updatedEvent?: EntityUpdatedEvent;
470
- deletedEvent?: EntityDeletedEvent;
471
- actionEvent?: ActionEvent;
472
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
473
- id?: string;
474
- /**
475
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
476
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
477
- */
478
- entityFqdn?: string;
479
- /**
480
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
481
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
482
- */
483
- slug?: string;
484
- /** ID of the entity associated with the event. */
485
- entityId?: string;
486
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
487
- eventTime?: Date | null;
488
- /**
489
- * Whether the event was triggered as a result of a privacy regulation application
490
- * (for example, GDPR).
491
- */
492
- triggeredByAnonymizeRequest?: boolean | null;
493
- /** If present, indicates the action that triggered the event. */
494
- originatedFrom?: string | null;
495
- /**
496
- * 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.
497
- * 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.
498
- */
499
- entityEventSequence?: string | null;
500
- }
501
- /** @oneof */
502
- export interface DomainEventBodyOneOf {
503
- createdEvent?: EntityCreatedEvent;
504
- updatedEvent?: EntityUpdatedEvent;
505
- deletedEvent?: EntityDeletedEvent;
506
- actionEvent?: ActionEvent;
507
- }
508
- export interface EntityCreatedEvent {
509
- entityAsJson?: string;
510
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
511
- restoreInfo?: RestoreInfo;
512
- }
513
- export interface RestoreInfo {
514
- deletedDate?: Date | null;
515
- }
516
- export interface EntityUpdatedEvent {
517
- /**
518
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
519
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
520
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
521
- */
522
- currentEntityAsJson?: string;
523
- }
524
- export interface EntityDeletedEvent {
525
- /** Entity that was deleted. */
526
- deletedEntityAsJson?: string | null;
527
- }
528
- export interface ActionEvent {
529
- bodyAsJson?: string;
530
- }
531
- export interface MessageEnvelope {
532
- /**
533
- * App instance ID.
534
- * @format GUID
535
- */
536
- instanceId?: string | null;
537
- /**
538
- * Event type.
539
- * @maxLength 150
540
- */
541
- eventType?: string;
542
- /** The identification type and identity data. */
543
- identity?: IdentificationData;
544
- /** Stringify payload. */
545
- data?: string;
546
- }
547
- export interface IdentificationData extends IdentificationDataIdOneOf {
548
- /**
549
- * ID of a site visitor that has not logged in to the site.
550
- * @format GUID
551
- */
552
- anonymousVisitorId?: string;
553
- /**
554
- * ID of a site visitor that has logged in to the site.
555
- * @format GUID
556
- */
557
- memberId?: string;
558
- /**
559
- * ID of a Wix user (site owner, contributor, etc.).
560
- * @format GUID
561
- */
562
- wixUserId?: string;
563
- /**
564
- * ID of an app.
565
- * @format GUID
566
- */
567
- appId?: string;
568
- /** @readonly */
569
- identityType?: WebhookIdentityTypeWithLiterals;
570
- }
571
- /** @oneof */
572
- export interface IdentificationDataIdOneOf {
573
- /**
574
- * ID of a site visitor that has not logged in to the site.
575
- * @format GUID
576
- */
577
- anonymousVisitorId?: string;
578
- /**
579
- * ID of a site visitor that has logged in to the site.
580
- * @format GUID
581
- */
582
- memberId?: string;
583
- /**
584
- * ID of a Wix user (site owner, contributor, etc.).
585
- * @format GUID
586
- */
587
- wixUserId?: string;
588
- /**
589
- * ID of an app.
590
- * @format GUID
591
- */
592
- appId?: string;
593
- }
594
- export declare enum WebhookIdentityType {
595
- UNKNOWN = "UNKNOWN",
596
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
597
- MEMBER = "MEMBER",
598
- WIX_USER = "WIX_USER",
599
- APP = "APP"
600
- }
601
- /** @enumType */
602
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
@@ -1,48 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebhookIdentityType = exports.SortOrder = exports.TransactionStatus = exports.IdentityType = exports.BalanceType = void 0;
4
- var BalanceType;
5
- (function (BalanceType) {
6
- BalanceType["UNDEFINED"] = "UNDEFINED";
7
- /** In a pool's balance. */
8
- BalanceType["AVAILABLE"] = "AVAILABLE";
9
- /** Outside a pool's balance. */
10
- BalanceType["EXTERNAL"] = "EXTERNAL";
11
- })(BalanceType || (exports.BalanceType = BalanceType = {}));
12
- var IdentityType;
13
- (function (IdentityType) {
14
- /** Unknown type. This value is not used. */
15
- IdentityType["UNKNOWN"] = "UNKNOWN";
16
- /** A site visitor who has not logged in. */
17
- IdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
18
- /** A logged-in site member. */
19
- IdentityType["MEMBER"] = "MEMBER";
20
- /** A Wix account holder, such as a site owner or contributor. */
21
- IdentityType["WIX_USER"] = "WIX_USER";
22
- })(IdentityType || (exports.IdentityType = IdentityType = {}));
23
- var TransactionStatus;
24
- (function (TransactionStatus) {
25
- TransactionStatus["UNDEFINED"] = "UNDEFINED";
26
- /** Transaction is pending. This is the initial transaction status. */
27
- TransactionStatus["PENDING"] = "PENDING";
28
- /** Transaction completed successfully. */
29
- TransactionStatus["COMPLETED"] = "COMPLETED";
30
- /** Transaction failed. */
31
- TransactionStatus["FAILED"] = "FAILED";
32
- })(TransactionStatus || (exports.TransactionStatus = TransactionStatus = {}));
33
- var SortOrder;
34
- (function (SortOrder) {
35
- /** Ascending sort order. */
36
- SortOrder["ASC"] = "ASC";
37
- /** Descending sort order. */
38
- SortOrder["DESC"] = "DESC";
39
- })(SortOrder || (exports.SortOrder = SortOrder = {}));
40
- var WebhookIdentityType;
41
- (function (WebhookIdentityType) {
42
- WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
43
- WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
44
- WebhookIdentityType["MEMBER"] = "MEMBER";
45
- WebhookIdentityType["WIX_USER"] = "WIX_USER";
46
- WebhookIdentityType["APP"] = "APP";
47
- })(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
48
- //# sourceMappingURL=benefit-programs-v1-transaction-transactions.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"benefit-programs-v1-transaction-transactions.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-transaction-transactions.types.ts"],"names":[],"mappings":";;;AAoHA,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,2BAA2B;IAC3B,sCAAuB,CAAA;IACvB,gCAAgC;IAChC,oCAAqB,CAAA;AACvB,CAAC,EANW,WAAW,2BAAX,WAAW,QAMtB;AA+CD,IAAY,YASX;AATD,WAAY,YAAY;IACtB,4CAA4C;IAC5C,mCAAmB,CAAA;IACnB,4CAA4C;IAC5C,uDAAuC,CAAA;IACvC,+BAA+B;IAC/B,iCAAiB,CAAA;IACjB,iEAAiE;IACjE,qCAAqB,CAAA;AACvB,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;AAUD,IAAY,iBAQX;AARD,WAAY,iBAAiB;IAC3B,4CAAuB,CAAA;IACvB,sEAAsE;IACtE,wCAAmB,CAAA;IACnB,0CAA0C;IAC1C,4CAAuB,CAAA;IACvB,0BAA0B;IAC1B,sCAAiB,CAAA;AACnB,CAAC,EARW,iBAAiB,iCAAjB,iBAAiB,QAQ5B;AAwQD,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAgMD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}