@wix/auto_sdk_benefit-programs_transactions 1.0.22 → 1.0.24
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/{internal/cjs/src/benefit-programs-v1-transaction-transactions.universal.d.ts → benefit-programs-v1-transaction-transactions.universal-CC4UPjY4.d.mts} +55 -101
- package/build/{cjs/src/benefit-programs-v1-transaction-transactions.universal.d.ts → benefit-programs-v1-transaction-transactions.universal-CC4UPjY4.d.ts} +55 -101
- package/build/index.d.mts +35 -0
- package/build/index.d.ts +35 -0
- package/build/index.js +327 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +297 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{es/src/benefit-programs-v1-transaction-transactions.universal.d.ts → benefit-programs-v1-transaction-transactions.universal-CC4UPjY4.d.mts} +55 -101
- package/build/{es/src/benefit-programs-v1-transaction-transactions.universal.d.ts → internal/benefit-programs-v1-transaction-transactions.universal-CC4UPjY4.d.ts} +55 -101
- package/build/internal/index.d.mts +35 -0
- package/build/internal/index.d.ts +35 -0
- package/build/internal/index.js +327 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +297 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +353 -0
- package/build/internal/meta.d.ts +353 -0
- package/build/internal/meta.js +224 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +196 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +353 -0
- package/build/meta.d.ts +353 -0
- package/build/meta.js +224 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +196 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.context.d.ts +0 -6
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.context.js +0 -14
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.context.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.http.d.ts +0 -17
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.http.js +0 -172
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.http.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.meta.d.ts +0 -16
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.meta.js +0 -66
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.meta.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.public.d.ts +0 -32
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.public.js +0 -24
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.public.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.types.d.ts +0 -602
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.types.js +0 -48
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.types.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.universal.js +0 -186
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/benefit-programs-v1-transaction-transactions.context.d.ts +0 -6
- package/build/es/src/benefit-programs-v1-transaction-transactions.context.js +0 -6
- package/build/es/src/benefit-programs-v1-transaction-transactions.context.js.map +0 -1
- package/build/es/src/benefit-programs-v1-transaction-transactions.http.d.ts +0 -17
- package/build/es/src/benefit-programs-v1-transaction-transactions.http.js +0 -167
- package/build/es/src/benefit-programs-v1-transaction-transactions.http.js.map +0 -1
- package/build/es/src/benefit-programs-v1-transaction-transactions.meta.d.ts +0 -16
- package/build/es/src/benefit-programs-v1-transaction-transactions.meta.js +0 -38
- package/build/es/src/benefit-programs-v1-transaction-transactions.meta.js.map +0 -1
- package/build/es/src/benefit-programs-v1-transaction-transactions.public.d.ts +0 -32
- package/build/es/src/benefit-programs-v1-transaction-transactions.public.js +0 -14
- package/build/es/src/benefit-programs-v1-transaction-transactions.public.js.map +0 -1
- package/build/es/src/benefit-programs-v1-transaction-transactions.types.d.ts +0 -602
- package/build/es/src/benefit-programs-v1-transaction-transactions.types.js +0 -45
- package/build/es/src/benefit-programs-v1-transaction-transactions.types.js.map +0 -1
- package/build/es/src/benefit-programs-v1-transaction-transactions.universal.js +0 -158
- package/build/es/src/benefit-programs-v1-transaction-transactions.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.context.d.ts +0 -6
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.context.js +0 -14
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.context.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.http.d.ts +0 -17
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.http.js +0 -172
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.http.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.meta.d.ts +0 -16
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.meta.js +0 -66
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.meta.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.public.d.ts +0 -32
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.public.js +0 -24
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.public.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.types.d.ts +0 -602
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.types.js +0 -48
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.types.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.universal.js +0 -186
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.context.d.ts +0 -6
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.context.js +0 -6
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.context.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.http.d.ts +0 -17
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.http.js +0 -167
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.http.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.meta.d.ts +0 -16
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.meta.js +0 -38
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.meta.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.public.d.ts +0 -32
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.public.js +0 -14
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.public.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.types.d.ts +0 -602
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.types.js +0 -45
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.types.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.universal.js +0 -158
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.universal.js.map +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
76
|
+
interface PoolInfo {
|
|
78
77
|
/**
|
|
79
78
|
* Pool ID.
|
|
80
79
|
* @format GUID
|
|
@@ -108,12 +107,12 @@ export interface PoolInfo {
|
|
|
108
107
|
/**
|
|
109
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.
|
|
110
109
|
* @minLength 1
|
|
111
|
-
* @maxLength
|
|
110
|
+
* @maxLength 20
|
|
112
111
|
* @readonly
|
|
113
112
|
*/
|
|
114
113
|
namespace?: string | null;
|
|
115
114
|
}
|
|
116
|
-
|
|
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
|
-
|
|
125
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
183
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
254
|
+
interface CreateTransactionRequest {
|
|
258
255
|
/** Transaction to create. */
|
|
259
256
|
transaction?: Transaction;
|
|
260
257
|
}
|
|
261
|
-
|
|
258
|
+
interface CreateTransactionResponse {
|
|
262
259
|
/** Created transaction. */
|
|
263
260
|
transaction?: Transaction;
|
|
264
261
|
}
|
|
265
|
-
|
|
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
|
-
|
|
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
|
-
|
|
288
|
+
interface BulkTransactionResult {
|
|
292
289
|
/** Metadata for the item. */
|
|
293
290
|
itemMetadata?: ItemMetadata;
|
|
294
291
|
/** Created transaction. */
|
|
295
292
|
transaction?: Transaction;
|
|
296
293
|
}
|
|
297
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
323
|
+
interface UpdateTransactionRequest {
|
|
327
324
|
/** Transaction to update. */
|
|
328
325
|
transaction?: Transaction;
|
|
329
326
|
}
|
|
330
|
-
|
|
327
|
+
interface UpdateTransactionResponse {
|
|
331
328
|
/** Updated transaction. */
|
|
332
329
|
transaction?: Transaction;
|
|
333
330
|
}
|
|
334
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
370
|
+
interface GetTransactionResponse {
|
|
374
371
|
/** Retrieved transaction. */
|
|
375
372
|
transaction?: Transaction;
|
|
376
373
|
}
|
|
377
|
-
|
|
374
|
+
interface QueryTransactionsRequest {
|
|
378
375
|
/** Filter, sort, and paging to apply to the query. */
|
|
379
376
|
query: CursorQuery;
|
|
380
377
|
}
|
|
381
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
422
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
500
|
+
interface DomainEventBodyOneOf {
|
|
504
501
|
createdEvent?: EntityCreatedEvent;
|
|
505
502
|
updatedEvent?: EntityUpdatedEvent;
|
|
506
503
|
deletedEvent?: EntityDeletedEvent;
|
|
507
504
|
actionEvent?: ActionEvent;
|
|
508
505
|
}
|
|
509
|
-
|
|
506
|
+
interface EntityCreatedEvent {
|
|
510
507
|
entity?: string;
|
|
511
508
|
}
|
|
512
|
-
|
|
509
|
+
interface RestoreInfo {
|
|
513
510
|
deletedDate?: Date | null;
|
|
514
511
|
}
|
|
515
|
-
|
|
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
|
-
|
|
520
|
+
interface EntityDeletedEvent {
|
|
524
521
|
/** Entity that was deleted. */
|
|
525
522
|
deletedEntity?: string | null;
|
|
526
523
|
}
|
|
527
|
-
|
|
524
|
+
interface ActionEvent {
|
|
528
525
|
body?: string;
|
|
529
526
|
}
|
|
530
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 };
|