@wix/auto_sdk_benefit-programs_transactions 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.types.d.ts +133 -28
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.types.js.map +1 -1
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.universal.d.ts +137 -28
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.universal.js +4 -0
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.universal.js.map +1 -1
- package/build/es/src/benefit-programs-v1-transaction-transactions.types.d.ts +133 -28
- package/build/es/src/benefit-programs-v1-transaction-transactions.types.js.map +1 -1
- package/build/es/src/benefit-programs-v1-transaction-transactions.universal.d.ts +137 -28
- package/build/es/src/benefit-programs-v1-transaction-transactions.universal.js +4 -0
- package/build/es/src/benefit-programs-v1-transaction-transactions.universal.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.types.d.ts +133 -28
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.types.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.universal.d.ts +137 -28
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.universal.js +4 -0
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.universal.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.types.d.ts +133 -28
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.types.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.universal.d.ts +137 -28
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.universal.js +4 -0
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export interface Transaction {
|
|
2
2
|
/**
|
|
3
3
|
* Transaction ID.
|
|
4
|
+
* @format GUID
|
|
4
5
|
* @readonly
|
|
5
6
|
*/
|
|
6
7
|
id?: string | null;
|
|
@@ -24,7 +25,10 @@ export interface Transaction {
|
|
|
24
25
|
* @readonly
|
|
25
26
|
*/
|
|
26
27
|
pool?: PoolInfo;
|
|
27
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Absolute amount to adjust the balance with. This field is determined by the source and target balances.
|
|
30
|
+
* @decimalValue options { gte:0, maxScale:4 }
|
|
31
|
+
*/
|
|
28
32
|
amount?: string;
|
|
29
33
|
/** Source balance. */
|
|
30
34
|
source?: BalanceType;
|
|
@@ -33,11 +37,13 @@ export interface Transaction {
|
|
|
33
37
|
/**
|
|
34
38
|
* Unique identifier, generated by the client.
|
|
35
39
|
* Used to recognize repeated attempts to make the same request.
|
|
40
|
+
* @maxLength 200
|
|
36
41
|
* @readonly
|
|
37
42
|
*/
|
|
38
43
|
idempotencyKey?: string;
|
|
39
44
|
/**
|
|
40
45
|
* Related transaction ID. For example, in the case of a cancelled reservation, the related transaction is the benefit redemption.
|
|
46
|
+
* @format GUID
|
|
41
47
|
* @readonly
|
|
42
48
|
*/
|
|
43
49
|
relatedTransactionId?: string | null;
|
|
@@ -72,27 +78,38 @@ export interface Transaction {
|
|
|
72
78
|
export interface PoolInfo {
|
|
73
79
|
/**
|
|
74
80
|
* Benefit pool ID.
|
|
81
|
+
* @format GUID
|
|
75
82
|
* @readonly
|
|
76
83
|
*/
|
|
77
84
|
id?: string;
|
|
78
85
|
/**
|
|
79
86
|
* Pool definition ID from which this benefit pool was instantiated.
|
|
87
|
+
* @format GUID
|
|
80
88
|
* @readonly
|
|
81
89
|
*/
|
|
82
90
|
poolDefinitionId?: string | null;
|
|
83
91
|
/**
|
|
84
92
|
* ID for the program definition from which this benefit pool was provisioned.
|
|
93
|
+
* @format GUID
|
|
85
94
|
* @readonly
|
|
86
95
|
*/
|
|
87
96
|
programDefinitionId?: string | null;
|
|
88
97
|
/**
|
|
89
98
|
* ID of the program to which this benefit pool belongs.
|
|
99
|
+
* @format GUID
|
|
90
100
|
* @readonly
|
|
91
101
|
*/
|
|
92
102
|
programId?: string | null;
|
|
93
|
-
/**
|
|
103
|
+
/**
|
|
104
|
+
* Total amount of credits available for this benefit pool.
|
|
105
|
+
* @decimalValue options { gte:0, maxScale:4 }
|
|
106
|
+
*/
|
|
94
107
|
creditAmount?: string | null;
|
|
95
|
-
/**
|
|
108
|
+
/**
|
|
109
|
+
* The external system that is the source of the pool creation. For example, `wix-pricing-plans`, `wix-loyalty`.
|
|
110
|
+
* @minLength 1
|
|
111
|
+
* @maxLength 50
|
|
112
|
+
*/
|
|
96
113
|
namespace?: string | null;
|
|
97
114
|
}
|
|
98
115
|
export declare enum BalanceType {
|
|
@@ -105,20 +122,38 @@ export declare enum BalanceType {
|
|
|
105
122
|
EXTERNAL = "EXTERNAL"
|
|
106
123
|
}
|
|
107
124
|
export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
108
|
-
/**
|
|
125
|
+
/**
|
|
126
|
+
* ID of a site visitor that has not logged in to the site.
|
|
127
|
+
* @format GUID
|
|
128
|
+
*/
|
|
109
129
|
anonymousVisitorId?: string;
|
|
110
|
-
/**
|
|
130
|
+
/**
|
|
131
|
+
* ID of a site visitor that has logged in to the site.
|
|
132
|
+
* @format GUID
|
|
133
|
+
*/
|
|
111
134
|
memberId?: string;
|
|
112
|
-
/**
|
|
135
|
+
/**
|
|
136
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
137
|
+
* @format GUID
|
|
138
|
+
*/
|
|
113
139
|
wixUserId?: string;
|
|
114
140
|
}
|
|
115
141
|
/** @oneof */
|
|
116
142
|
export interface CommonIdentificationDataIdOneOf {
|
|
117
|
-
/**
|
|
143
|
+
/**
|
|
144
|
+
* ID of a site visitor that has not logged in to the site.
|
|
145
|
+
* @format GUID
|
|
146
|
+
*/
|
|
118
147
|
anonymousVisitorId?: string;
|
|
119
|
-
/**
|
|
148
|
+
/**
|
|
149
|
+
* ID of a site visitor that has logged in to the site.
|
|
150
|
+
* @format GUID
|
|
151
|
+
*/
|
|
120
152
|
memberId?: string;
|
|
121
|
-
/**
|
|
153
|
+
/**
|
|
154
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
155
|
+
* @format GUID
|
|
156
|
+
*/
|
|
122
157
|
wixUserId?: string;
|
|
123
158
|
}
|
|
124
159
|
export declare enum IdentityType {
|
|
@@ -157,29 +192,37 @@ export interface TransactionDetails {
|
|
|
157
192
|
/**
|
|
158
193
|
* Reason for the transaction. For example, `Redemption` or `Manual adjustment`.
|
|
159
194
|
* @readonly
|
|
195
|
+
* @maxLength 256
|
|
160
196
|
*/
|
|
161
197
|
reason?: string | null;
|
|
162
198
|
}
|
|
163
199
|
export interface Item {
|
|
164
200
|
/**
|
|
165
201
|
* Item ID.
|
|
202
|
+
* @format GUID
|
|
166
203
|
* @readonly
|
|
167
204
|
*/
|
|
168
205
|
id?: string | null;
|
|
169
206
|
/**
|
|
170
207
|
* External item ID.
|
|
208
|
+
* @format GUID
|
|
171
209
|
* @readonly
|
|
172
210
|
*/
|
|
173
211
|
externalId?: string | null;
|
|
174
212
|
/**
|
|
175
213
|
* Item category. Distinguishes between different types of items. For example, `posts`, `groups`, `events`.
|
|
214
|
+
* @maxLength 20
|
|
176
215
|
* @readonly
|
|
177
216
|
*/
|
|
178
217
|
category?: string | null;
|
|
179
|
-
/**
|
|
218
|
+
/**
|
|
219
|
+
* @format GUID
|
|
220
|
+
* @readonly
|
|
221
|
+
*/
|
|
180
222
|
itemSetId?: string | null;
|
|
181
223
|
/**
|
|
182
224
|
* Item display name.
|
|
225
|
+
* @maxLength 64
|
|
183
226
|
* @readonly
|
|
184
227
|
*/
|
|
185
228
|
displayName?: string | null;
|
|
@@ -204,7 +247,11 @@ export interface CreateTransactionResponse {
|
|
|
204
247
|
transaction?: Transaction;
|
|
205
248
|
}
|
|
206
249
|
export interface BulkCreateTransactionsRequest {
|
|
207
|
-
/**
|
|
250
|
+
/**
|
|
251
|
+
* Transactions to be created.
|
|
252
|
+
* @minSize 1
|
|
253
|
+
* @maxSize 100
|
|
254
|
+
*/
|
|
208
255
|
transactions?: Transaction[];
|
|
209
256
|
/**
|
|
210
257
|
* Whether to return the full item entities.
|
|
@@ -218,6 +265,8 @@ export interface BulkCreateTransactionsResponse {
|
|
|
218
265
|
* List of results for each transaction.
|
|
219
266
|
*
|
|
220
267
|
* Includes the transaction and whether the operation was successful.
|
|
268
|
+
* @minSize 1
|
|
269
|
+
* @maxSize 100
|
|
221
270
|
*/
|
|
222
271
|
results?: BulkTransactionResult[];
|
|
223
272
|
/** Bulk action metadata. */
|
|
@@ -230,7 +279,10 @@ export interface BulkTransactionResult {
|
|
|
230
279
|
transaction?: Transaction;
|
|
231
280
|
}
|
|
232
281
|
export interface ItemMetadata {
|
|
233
|
-
/**
|
|
282
|
+
/**
|
|
283
|
+
* Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
|
|
284
|
+
* @format GUID
|
|
285
|
+
*/
|
|
234
286
|
id?: string | null;
|
|
235
287
|
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
236
288
|
originalIndex?: number;
|
|
@@ -264,7 +316,11 @@ export interface UpdateTransactionResponse {
|
|
|
264
316
|
transaction?: Transaction;
|
|
265
317
|
}
|
|
266
318
|
export interface BulkUpdateTransactionsRequest {
|
|
267
|
-
/**
|
|
319
|
+
/**
|
|
320
|
+
* Transactions to update.
|
|
321
|
+
* @minSize 1
|
|
322
|
+
* @maxSize 100
|
|
323
|
+
*/
|
|
268
324
|
transactions?: MaskedTransaction[];
|
|
269
325
|
/**
|
|
270
326
|
* Whether to return full transaction entities.
|
|
@@ -284,13 +340,18 @@ export interface BulkUpdateTransactionsResponse {
|
|
|
284
340
|
* List of results for each Transaction.
|
|
285
341
|
*
|
|
286
342
|
* Includes the Transaction and whether the update was successful.
|
|
343
|
+
* @minSize 1
|
|
344
|
+
* @maxSize 100
|
|
287
345
|
*/
|
|
288
346
|
results?: BulkTransactionResult[];
|
|
289
347
|
/** Bulk action metadata. */
|
|
290
348
|
bulkActionMetadata?: BulkActionMetadata;
|
|
291
349
|
}
|
|
292
350
|
export interface GetTransactionRequest {
|
|
293
|
-
/**
|
|
351
|
+
/**
|
|
352
|
+
* Id of the transaction to retrieve.
|
|
353
|
+
* @format GUID
|
|
354
|
+
*/
|
|
294
355
|
transactionId: string;
|
|
295
356
|
}
|
|
296
357
|
export interface GetTransactionResponse {
|
|
@@ -316,6 +377,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
316
377
|
/**
|
|
317
378
|
* Sort object in the following format:
|
|
318
379
|
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
380
|
+
* @maxSize 5
|
|
319
381
|
*/
|
|
320
382
|
sort?: Sorting[];
|
|
321
383
|
}
|
|
@@ -325,7 +387,10 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
325
387
|
cursorPaging?: CursorPaging;
|
|
326
388
|
}
|
|
327
389
|
export interface Sorting {
|
|
328
|
-
/**
|
|
390
|
+
/**
|
|
391
|
+
* Name of the field to sort by.
|
|
392
|
+
* @maxLength 512
|
|
393
|
+
*/
|
|
329
394
|
fieldName?: string;
|
|
330
395
|
/** Sort order. */
|
|
331
396
|
order?: SortOrder;
|
|
@@ -337,13 +402,17 @@ export declare enum SortOrder {
|
|
|
337
402
|
DESC = "DESC"
|
|
338
403
|
}
|
|
339
404
|
export interface CursorPaging {
|
|
340
|
-
/**
|
|
405
|
+
/**
|
|
406
|
+
* Maximum number of items to return in the results.
|
|
407
|
+
* @max 100
|
|
408
|
+
*/
|
|
341
409
|
limit?: number | null;
|
|
342
410
|
/**
|
|
343
411
|
* Pointer to the next or previous page in the list of results.
|
|
344
412
|
*
|
|
345
413
|
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
346
414
|
* Not relevant for the first request.
|
|
415
|
+
* @maxLength 16000
|
|
347
416
|
*/
|
|
348
417
|
cursor?: string | null;
|
|
349
418
|
}
|
|
@@ -367,9 +436,15 @@ export interface CursorPagingMetadata {
|
|
|
367
436
|
hasNext?: boolean | null;
|
|
368
437
|
}
|
|
369
438
|
export interface Cursors {
|
|
370
|
-
/**
|
|
439
|
+
/**
|
|
440
|
+
* Cursor string pointing to the next page in the list of results.
|
|
441
|
+
* @maxLength 16000
|
|
442
|
+
*/
|
|
371
443
|
next?: string | null;
|
|
372
|
-
/**
|
|
444
|
+
/**
|
|
445
|
+
* Cursor pointing to the previous page in the list of results.
|
|
446
|
+
* @maxLength 16000
|
|
447
|
+
*/
|
|
373
448
|
prev?: string | null;
|
|
374
449
|
}
|
|
375
450
|
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
@@ -445,9 +520,15 @@ export interface ActionEvent {
|
|
|
445
520
|
bodyAsJson?: string;
|
|
446
521
|
}
|
|
447
522
|
export interface MessageEnvelope {
|
|
448
|
-
/**
|
|
523
|
+
/**
|
|
524
|
+
* App instance ID.
|
|
525
|
+
* @format GUID
|
|
526
|
+
*/
|
|
449
527
|
instanceId?: string | null;
|
|
450
|
-
/**
|
|
528
|
+
/**
|
|
529
|
+
* Event type.
|
|
530
|
+
* @maxLength 150
|
|
531
|
+
*/
|
|
451
532
|
eventType?: string;
|
|
452
533
|
/** The identification type and identity data. */
|
|
453
534
|
identity?: IdentificationData;
|
|
@@ -455,26 +536,50 @@ export interface MessageEnvelope {
|
|
|
455
536
|
data?: string;
|
|
456
537
|
}
|
|
457
538
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
458
|
-
/**
|
|
539
|
+
/**
|
|
540
|
+
* ID of a site visitor that has not logged in to the site.
|
|
541
|
+
* @format GUID
|
|
542
|
+
*/
|
|
459
543
|
anonymousVisitorId?: string;
|
|
460
|
-
/**
|
|
544
|
+
/**
|
|
545
|
+
* ID of a site visitor that has logged in to the site.
|
|
546
|
+
* @format GUID
|
|
547
|
+
*/
|
|
461
548
|
memberId?: string;
|
|
462
|
-
/**
|
|
549
|
+
/**
|
|
550
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
551
|
+
* @format GUID
|
|
552
|
+
*/
|
|
463
553
|
wixUserId?: string;
|
|
464
|
-
/**
|
|
554
|
+
/**
|
|
555
|
+
* ID of an app.
|
|
556
|
+
* @format GUID
|
|
557
|
+
*/
|
|
465
558
|
appId?: string;
|
|
466
559
|
/** @readonly */
|
|
467
560
|
identityType?: WebhookIdentityType;
|
|
468
561
|
}
|
|
469
562
|
/** @oneof */
|
|
470
563
|
export interface IdentificationDataIdOneOf {
|
|
471
|
-
/**
|
|
564
|
+
/**
|
|
565
|
+
* ID of a site visitor that has not logged in to the site.
|
|
566
|
+
* @format GUID
|
|
567
|
+
*/
|
|
472
568
|
anonymousVisitorId?: string;
|
|
473
|
-
/**
|
|
569
|
+
/**
|
|
570
|
+
* ID of a site visitor that has logged in to the site.
|
|
571
|
+
* @format GUID
|
|
572
|
+
*/
|
|
474
573
|
memberId?: string;
|
|
475
|
-
/**
|
|
574
|
+
/**
|
|
575
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
576
|
+
* @format GUID
|
|
577
|
+
*/
|
|
476
578
|
wixUserId?: string;
|
|
477
|
-
/**
|
|
579
|
+
/**
|
|
580
|
+
* ID of an app.
|
|
581
|
+
* @format GUID
|
|
582
|
+
*/
|
|
478
583
|
appId?: string;
|
|
479
584
|
}
|
|
480
585
|
export declare enum WebhookIdentityType {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-transaction-transactions.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-transaction-transactions.types.ts"],"names":[],"mappings":";;;
|
|
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,WAQX;AARD,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,yBAAyB;IACzB,sCAAuB,CAAA;IACvB,wBAAwB;IACxB,oCAAqB,CAAA;IACrB,wBAAwB;IACxB,oCAAqB,CAAA;AACvB,CAAC,EARW,WAAW,2BAAX,WAAW,QAQtB;AAwCD,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;AAED,IAAY,iBAQX;AARD,WAAY,iBAAiB;IAC3B,4CAAuB,CAAA;IACvB,8BAA8B;IAC9B,wCAAmB,CAAA;IACnB,6BAA6B;IAC7B,4CAAuB,CAAA;IACvB,0BAA0B;IAC1B,sCAAiB,CAAA;AACnB,CAAC,EARW,iBAAiB,iCAAjB,iBAAiB,QAQ5B;AAoPD,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAqMD,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"}
|