@wix/auto_sdk_benefit-programs_transactions 1.0.8 → 1.0.10
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-DjQc6kgD.d.mts} +50 -117
- package/build/{cjs/src/benefit-programs-v1-transaction-transactions.universal.d.ts → benefit-programs-v1-transaction-transactions.universal-DjQc6kgD.d.ts} +50 -117
- package/build/index.d.mts +35 -0
- package/build/index.d.ts +35 -0
- package/build/index.js +324 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +294 -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-DjQc6kgD.d.mts} +50 -117
- package/build/{es/src/benefit-programs-v1-transaction-transactions.universal.d.ts → internal/benefit-programs-v1-transaction-transactions.universal-DjQc6kgD.d.ts} +50 -117
- package/build/internal/index.d.mts +35 -0
- package/build/internal/index.d.ts +35 -0
- package/build/internal/index.js +324 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +294 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +345 -0
- package/build/internal/meta.d.ts +345 -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 +345 -0
- package/build/meta.d.ts +345 -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 +13 -12
- 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 -613
- 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 -184
- 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 -613
- 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 -156
- 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 -613
- 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 -184
- 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 -613
- 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 -156
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.universal.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
interface Transaction {
|
|
2
2
|
/**
|
|
3
3
|
* Transaction ID.
|
|
4
4
|
* @format GUID
|
|
@@ -73,7 +73,7 @@ export interface Transaction {
|
|
|
73
73
|
*/
|
|
74
74
|
extendedFields?: ExtendedFields;
|
|
75
75
|
}
|
|
76
|
-
|
|
76
|
+
interface PoolInfo {
|
|
77
77
|
/**
|
|
78
78
|
* Pool ID.
|
|
79
79
|
* @format GUID
|
|
@@ -104,20 +104,20 @@ export interface PoolInfo {
|
|
|
104
104
|
*/
|
|
105
105
|
creditAmount?: string | null;
|
|
106
106
|
/**
|
|
107
|
-
* Namespace for your app or site's benefit programs.
|
|
107
|
+
* 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.
|
|
108
108
|
* @minLength 1
|
|
109
109
|
* @maxLength 50
|
|
110
110
|
*/
|
|
111
111
|
namespace?: string | null;
|
|
112
112
|
}
|
|
113
|
-
|
|
113
|
+
declare enum BalanceType {
|
|
114
114
|
UNDEFINED = "UNDEFINED",
|
|
115
115
|
/** In a pool's balance. */
|
|
116
116
|
AVAILABLE = "AVAILABLE",
|
|
117
117
|
/** Outside a pool's balance. */
|
|
118
118
|
EXTERNAL = "EXTERNAL"
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
121
121
|
/**
|
|
122
122
|
* ID of a site visitor that hasn't logged in to the site.
|
|
123
123
|
* @format GUID
|
|
@@ -135,7 +135,7 @@ export interface CommonIdentificationData extends CommonIdentificationDataIdOneO
|
|
|
135
135
|
wixUserId?: string;
|
|
136
136
|
}
|
|
137
137
|
/** @oneof */
|
|
138
|
-
|
|
138
|
+
interface CommonIdentificationDataIdOneOf {
|
|
139
139
|
/**
|
|
140
140
|
* ID of a site visitor that hasn't logged in to the site.
|
|
141
141
|
* @format GUID
|
|
@@ -152,7 +152,7 @@ export interface CommonIdentificationDataIdOneOf {
|
|
|
152
152
|
*/
|
|
153
153
|
wixUserId?: string;
|
|
154
154
|
}
|
|
155
|
-
|
|
155
|
+
declare enum IdentityType {
|
|
156
156
|
/** Unknown type. This value is not used. */
|
|
157
157
|
UNKNOWN = "UNKNOWN",
|
|
158
158
|
/** A site visitor who has not logged in. */
|
|
@@ -162,7 +162,7 @@ export declare enum IdentityType {
|
|
|
162
162
|
/** A Wix account holder, such as a site owner or contributor. */
|
|
163
163
|
WIX_USER = "WIX_USER"
|
|
164
164
|
}
|
|
165
|
-
|
|
165
|
+
declare enum TransactionStatus {
|
|
166
166
|
UNDEFINED = "UNDEFINED",
|
|
167
167
|
/** Transaction is pending. This is the initial transaction status. */
|
|
168
168
|
PENDING = "PENDING",
|
|
@@ -171,7 +171,7 @@ export declare enum TransactionStatus {
|
|
|
171
171
|
/** Transaction failed. */
|
|
172
172
|
FAILED = "FAILED"
|
|
173
173
|
}
|
|
174
|
-
|
|
174
|
+
interface TransactionDetails {
|
|
175
175
|
/**
|
|
176
176
|
* Item associated with the transaction.
|
|
177
177
|
* @readonly
|
|
@@ -191,7 +191,7 @@ export interface TransactionDetails {
|
|
|
191
191
|
*/
|
|
192
192
|
reason?: string | null;
|
|
193
193
|
}
|
|
194
|
-
|
|
194
|
+
interface Item {
|
|
195
195
|
/**
|
|
196
196
|
* Item ID.
|
|
197
197
|
* @format GUID
|
|
@@ -223,7 +223,7 @@ export interface Item {
|
|
|
223
223
|
*/
|
|
224
224
|
displayName?: string | null;
|
|
225
225
|
}
|
|
226
|
-
|
|
226
|
+
interface ExtendedFields {
|
|
227
227
|
/**
|
|
228
228
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
229
229
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -234,15 +234,15 @@ export interface ExtendedFields {
|
|
|
234
234
|
*/
|
|
235
235
|
namespaces?: Record<string, Record<string, any>>;
|
|
236
236
|
}
|
|
237
|
-
|
|
237
|
+
interface CreateTransactionRequest {
|
|
238
238
|
/** Transaction to create. */
|
|
239
239
|
transaction?: Transaction;
|
|
240
240
|
}
|
|
241
|
-
|
|
241
|
+
interface CreateTransactionResponse {
|
|
242
242
|
/** Created transaction. */
|
|
243
243
|
transaction?: Transaction;
|
|
244
244
|
}
|
|
245
|
-
|
|
245
|
+
interface BulkCreateTransactionsRequest {
|
|
246
246
|
/**
|
|
247
247
|
* Transactions to be created.
|
|
248
248
|
* @minSize 1
|
|
@@ -256,7 +256,7 @@ export interface BulkCreateTransactionsRequest {
|
|
|
256
256
|
*/
|
|
257
257
|
returnEntity?: boolean;
|
|
258
258
|
}
|
|
259
|
-
|
|
259
|
+
interface BulkCreateTransactionsResponse {
|
|
260
260
|
/**
|
|
261
261
|
* List of results for each transaction.
|
|
262
262
|
*
|
|
@@ -268,13 +268,13 @@ export interface BulkCreateTransactionsResponse {
|
|
|
268
268
|
/** Bulk action metadata. */
|
|
269
269
|
bulkActionMetadata?: BulkActionMetadata;
|
|
270
270
|
}
|
|
271
|
-
|
|
271
|
+
interface BulkTransactionResult {
|
|
272
272
|
/** Metadata for the item. */
|
|
273
273
|
itemMetadata?: ItemMetadata;
|
|
274
274
|
/** Created transaction. */
|
|
275
275
|
transaction?: Transaction;
|
|
276
276
|
}
|
|
277
|
-
|
|
277
|
+
interface ItemMetadata {
|
|
278
278
|
/**
|
|
279
279
|
* Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
|
|
280
280
|
* @format GUID
|
|
@@ -287,7 +287,7 @@ export interface ItemMetadata {
|
|
|
287
287
|
/** Details about the error in case of failure. */
|
|
288
288
|
error?: ApplicationError;
|
|
289
289
|
}
|
|
290
|
-
|
|
290
|
+
interface ApplicationError {
|
|
291
291
|
/** Error code. */
|
|
292
292
|
code?: string;
|
|
293
293
|
/** Description of the error. */
|
|
@@ -295,7 +295,7 @@ export interface ApplicationError {
|
|
|
295
295
|
/** Data related to the error. */
|
|
296
296
|
data?: Record<string, any> | null;
|
|
297
297
|
}
|
|
298
|
-
|
|
298
|
+
interface BulkActionMetadata {
|
|
299
299
|
/** Number of items that were successfully processed. */
|
|
300
300
|
totalSuccesses?: number;
|
|
301
301
|
/** Number of items that couldn't be processed. */
|
|
@@ -303,15 +303,15 @@ export interface BulkActionMetadata {
|
|
|
303
303
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
304
304
|
undetailedFailures?: number;
|
|
305
305
|
}
|
|
306
|
-
|
|
306
|
+
interface UpdateTransactionRequest {
|
|
307
307
|
/** Transaction to update. */
|
|
308
308
|
transaction?: Transaction;
|
|
309
309
|
}
|
|
310
|
-
|
|
310
|
+
interface UpdateTransactionResponse {
|
|
311
311
|
/** Updated transaction. */
|
|
312
312
|
transaction?: Transaction;
|
|
313
313
|
}
|
|
314
|
-
|
|
314
|
+
interface BulkUpdateTransactionsRequest {
|
|
315
315
|
/**
|
|
316
316
|
* Transactions to update.
|
|
317
317
|
* @minSize 1
|
|
@@ -325,13 +325,13 @@ export interface BulkUpdateTransactionsRequest {
|
|
|
325
325
|
*/
|
|
326
326
|
returnEntity?: boolean;
|
|
327
327
|
}
|
|
328
|
-
|
|
328
|
+
interface MaskedTransaction {
|
|
329
329
|
/** Transaction to be updated. */
|
|
330
330
|
transaction?: Transaction;
|
|
331
331
|
/** Explicit list of fields to update. */
|
|
332
332
|
fieldMask?: string[];
|
|
333
333
|
}
|
|
334
|
-
|
|
334
|
+
interface BulkUpdateTransactionsResponse {
|
|
335
335
|
/**
|
|
336
336
|
* List of results for each Transaction.
|
|
337
337
|
*
|
|
@@ -343,22 +343,22 @@ export interface BulkUpdateTransactionsResponse {
|
|
|
343
343
|
/** Bulk action metadata. */
|
|
344
344
|
bulkActionMetadata?: BulkActionMetadata;
|
|
345
345
|
}
|
|
346
|
-
|
|
346
|
+
interface GetTransactionRequest {
|
|
347
347
|
/**
|
|
348
348
|
* ID of the transaction to retrieve.
|
|
349
349
|
* @format GUID
|
|
350
350
|
*/
|
|
351
351
|
transactionId: string;
|
|
352
352
|
}
|
|
353
|
-
|
|
353
|
+
interface GetTransactionResponse {
|
|
354
354
|
/** Retrieved transaction. */
|
|
355
355
|
transaction?: Transaction;
|
|
356
356
|
}
|
|
357
|
-
|
|
357
|
+
interface QueryTransactionsRequest {
|
|
358
358
|
/** Filter, sort, and paging to apply to the query. */
|
|
359
359
|
query: CursorQuery;
|
|
360
360
|
}
|
|
361
|
-
|
|
361
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
362
362
|
/** 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`. */
|
|
363
363
|
cursorPaging?: CursorPaging;
|
|
364
364
|
/**
|
|
@@ -374,11 +374,11 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
374
374
|
sort?: Sorting[];
|
|
375
375
|
}
|
|
376
376
|
/** @oneof */
|
|
377
|
-
|
|
377
|
+
interface CursorQueryPagingMethodOneOf {
|
|
378
378
|
/** 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`. */
|
|
379
379
|
cursorPaging?: CursorPaging;
|
|
380
380
|
}
|
|
381
|
-
|
|
381
|
+
interface Sorting {
|
|
382
382
|
/**
|
|
383
383
|
* Field to sort by.
|
|
384
384
|
* @maxLength 512
|
|
@@ -391,13 +391,13 @@ export interface Sorting {
|
|
|
391
391
|
*/
|
|
392
392
|
order?: SortOrder;
|
|
393
393
|
}
|
|
394
|
-
|
|
394
|
+
declare enum SortOrder {
|
|
395
395
|
/** Ascending sort order. */
|
|
396
396
|
ASC = "ASC",
|
|
397
397
|
/** Descending sort order. */
|
|
398
398
|
DESC = "DESC"
|
|
399
399
|
}
|
|
400
|
-
|
|
400
|
+
interface CursorPaging {
|
|
401
401
|
/**
|
|
402
402
|
* Maximum number of items to return.
|
|
403
403
|
* @max 100
|
|
@@ -412,13 +412,13 @@ export interface CursorPaging {
|
|
|
412
412
|
*/
|
|
413
413
|
cursor?: string | null;
|
|
414
414
|
}
|
|
415
|
-
|
|
415
|
+
interface QueryTransactionsResponse {
|
|
416
416
|
/** List of retrieved transactions. */
|
|
417
417
|
transactions?: Transaction[];
|
|
418
418
|
/** Metadata for paginated results. */
|
|
419
419
|
metadata?: CursorPagingMetadata;
|
|
420
420
|
}
|
|
421
|
-
|
|
421
|
+
interface CursorPagingMetadata {
|
|
422
422
|
/** Number of items returned in the response. */
|
|
423
423
|
count?: number | null;
|
|
424
424
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
@@ -431,7 +431,7 @@ export interface CursorPagingMetadata {
|
|
|
431
431
|
*/
|
|
432
432
|
hasNext?: boolean | null;
|
|
433
433
|
}
|
|
434
|
-
|
|
434
|
+
interface Cursors {
|
|
435
435
|
/**
|
|
436
436
|
* Cursor string pointing to the next page in the list of results.
|
|
437
437
|
* @maxLength 16000
|
|
@@ -443,7 +443,7 @@ export interface Cursors {
|
|
|
443
443
|
*/
|
|
444
444
|
prev?: string | null;
|
|
445
445
|
}
|
|
446
|
-
|
|
446
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
447
447
|
createdEvent?: EntityCreatedEvent;
|
|
448
448
|
updatedEvent?: EntityUpdatedEvent;
|
|
449
449
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -486,19 +486,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
486
486
|
entityEventSequence?: string | null;
|
|
487
487
|
}
|
|
488
488
|
/** @oneof */
|
|
489
|
-
|
|
489
|
+
interface DomainEventBodyOneOf {
|
|
490
490
|
createdEvent?: EntityCreatedEvent;
|
|
491
491
|
updatedEvent?: EntityUpdatedEvent;
|
|
492
492
|
deletedEvent?: EntityDeletedEvent;
|
|
493
493
|
actionEvent?: ActionEvent;
|
|
494
494
|
}
|
|
495
|
-
|
|
495
|
+
interface EntityCreatedEvent {
|
|
496
496
|
entity?: string;
|
|
497
497
|
}
|
|
498
|
-
|
|
498
|
+
interface RestoreInfo {
|
|
499
499
|
deletedDate?: Date | null;
|
|
500
500
|
}
|
|
501
|
-
|
|
501
|
+
interface EntityUpdatedEvent {
|
|
502
502
|
/**
|
|
503
503
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
504
504
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -506,14 +506,14 @@ export interface EntityUpdatedEvent {
|
|
|
506
506
|
*/
|
|
507
507
|
currentEntity?: string;
|
|
508
508
|
}
|
|
509
|
-
|
|
509
|
+
interface EntityDeletedEvent {
|
|
510
510
|
/** Entity that was deleted */
|
|
511
511
|
deletedEntity?: string | null;
|
|
512
512
|
}
|
|
513
|
-
|
|
513
|
+
interface ActionEvent {
|
|
514
514
|
body?: string;
|
|
515
515
|
}
|
|
516
|
-
|
|
516
|
+
interface MessageEnvelope {
|
|
517
517
|
/**
|
|
518
518
|
* App instance ID.
|
|
519
519
|
* @format GUID
|
|
@@ -529,7 +529,7 @@ export interface MessageEnvelope {
|
|
|
529
529
|
/** Stringify payload. */
|
|
530
530
|
data?: string;
|
|
531
531
|
}
|
|
532
|
-
|
|
532
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
533
533
|
/**
|
|
534
534
|
* ID of a site visitor that has not logged in to the site.
|
|
535
535
|
* @format GUID
|
|
@@ -554,7 +554,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
554
554
|
identityType?: WebhookIdentityType;
|
|
555
555
|
}
|
|
556
556
|
/** @oneof */
|
|
557
|
-
|
|
557
|
+
interface IdentificationDataIdOneOf {
|
|
558
558
|
/**
|
|
559
559
|
* ID of a site visitor that has not logged in to the site.
|
|
560
560
|
* @format GUID
|
|
@@ -576,81 +576,13 @@ export interface IdentificationDataIdOneOf {
|
|
|
576
576
|
*/
|
|
577
577
|
appId?: string;
|
|
578
578
|
}
|
|
579
|
-
|
|
579
|
+
declare enum WebhookIdentityType {
|
|
580
580
|
UNKNOWN = "UNKNOWN",
|
|
581
581
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
582
582
|
MEMBER = "MEMBER",
|
|
583
583
|
WIX_USER = "WIX_USER",
|
|
584
584
|
APP = "APP"
|
|
585
585
|
}
|
|
586
|
-
interface PoolInfoNonNullableFields {
|
|
587
|
-
_id: string;
|
|
588
|
-
}
|
|
589
|
-
interface CommonIdentificationDataNonNullableFields {
|
|
590
|
-
anonymousVisitorId: string;
|
|
591
|
-
memberId: string;
|
|
592
|
-
wixUserId: string;
|
|
593
|
-
identityType: IdentityType;
|
|
594
|
-
}
|
|
595
|
-
export interface TransactionNonNullableFields {
|
|
596
|
-
pool?: PoolInfoNonNullableFields;
|
|
597
|
-
amount: string;
|
|
598
|
-
source: BalanceType;
|
|
599
|
-
target: BalanceType;
|
|
600
|
-
idempotencyKey: string;
|
|
601
|
-
beneficiary?: CommonIdentificationDataNonNullableFields;
|
|
602
|
-
instructingParty?: CommonIdentificationDataNonNullableFields;
|
|
603
|
-
status: TransactionStatus;
|
|
604
|
-
}
|
|
605
|
-
export interface GetTransactionResponseNonNullableFields {
|
|
606
|
-
transaction?: TransactionNonNullableFields;
|
|
607
|
-
}
|
|
608
|
-
export interface QueryTransactionsResponseNonNullableFields {
|
|
609
|
-
transactions: TransactionNonNullableFields[];
|
|
610
|
-
}
|
|
611
|
-
/**
|
|
612
|
-
* Retrieves a transaction.
|
|
613
|
-
* @param transactionId - ID of the transaction to retrieve.
|
|
614
|
-
* @public
|
|
615
|
-
* @documentationMaturity preview
|
|
616
|
-
* @requiredField transactionId
|
|
617
|
-
* @permissionId BENEFIT_PROGRAMS.TRANSACTION_READ
|
|
618
|
-
* @permissionScope SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
619
|
-
* @permissionScopeId SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
620
|
-
* @permissionScope SCOPE.BENEFIT_PROGRAMS.READ
|
|
621
|
-
* @permissionScopeId SCOPE.BENEFIT_PROGRAMS.READ
|
|
622
|
-
* @permissionScope Manage Events
|
|
623
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
624
|
-
* @applicableIdentity APP
|
|
625
|
-
* @returns Retrieved transaction.
|
|
626
|
-
* @fqn wix.benefit_programs.v1.transaction.TransactionService.GetTransaction
|
|
627
|
-
*/
|
|
628
|
-
export declare function getTransaction(transactionId: string): Promise<Transaction & TransactionNonNullableFields>;
|
|
629
|
-
/**
|
|
630
|
-
* Creates a query to retrieve a list of transactions.
|
|
631
|
-
*
|
|
632
|
-
* The Query Transactions method builds a query to retrieve a list of transactions and returns a `TransactionsQueryBuilder` object.
|
|
633
|
-
*
|
|
634
|
-
* The returned object contains the query definition, which is used to run the query using the `find()` method.
|
|
635
|
-
*
|
|
636
|
-
* 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.
|
|
637
|
-
*
|
|
638
|
-
* Query Transactions has a default paging limit of 50, which you can override.
|
|
639
|
-
*
|
|
640
|
-
* For a full description of the item object, see the object returned for the `items` property in `TransactionsQueryResult`.
|
|
641
|
-
* @public
|
|
642
|
-
* @documentationMaturity preview
|
|
643
|
-
* @permissionScope SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
644
|
-
* @permissionScopeId SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
645
|
-
* @permissionScope SCOPE.BENEFIT_PROGRAMS.READ
|
|
646
|
-
* @permissionScopeId SCOPE.BENEFIT_PROGRAMS.READ
|
|
647
|
-
* @permissionScope Manage Events
|
|
648
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
649
|
-
* @permissionId BENEFIT_PROGRAMS.TRANSACTION_READ
|
|
650
|
-
* @applicableIdentity APP
|
|
651
|
-
* @fqn wix.benefit_programs.v1.transaction.TransactionService.QueryTransactions
|
|
652
|
-
*/
|
|
653
|
-
export declare function queryTransactions(): TransactionsQueryBuilder;
|
|
654
586
|
interface QueryCursorResult {
|
|
655
587
|
cursors: Cursors;
|
|
656
588
|
hasNext: () => boolean;
|
|
@@ -658,13 +590,13 @@ interface QueryCursorResult {
|
|
|
658
590
|
length: number;
|
|
659
591
|
pageSize: number;
|
|
660
592
|
}
|
|
661
|
-
|
|
593
|
+
interface TransactionsQueryResult extends QueryCursorResult {
|
|
662
594
|
items: Transaction[];
|
|
663
595
|
query: TransactionsQueryBuilder;
|
|
664
596
|
next: () => Promise<TransactionsQueryResult>;
|
|
665
597
|
prev: () => Promise<TransactionsQueryResult>;
|
|
666
598
|
}
|
|
667
|
-
|
|
599
|
+
interface TransactionsQueryBuilder {
|
|
668
600
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
669
601
|
* @param value - Value to compare against.
|
|
670
602
|
* @documentationMaturity preview
|
|
@@ -728,4 +660,5 @@ export interface TransactionsQueryBuilder {
|
|
|
728
660
|
/** @documentationMaturity preview */
|
|
729
661
|
find: () => Promise<TransactionsQueryResult>;
|
|
730
662
|
}
|
|
731
|
-
|
|
663
|
+
|
|
664
|
+
export { type ApplicationError as A, BalanceType as B, type CommonIdentificationData as C, type DomainEvent as D, type ExtendedFields as E, type EntityDeletedEvent as F, type GetTransactionRequest as G, type ActionEvent as H, IdentityType as I, type MessageEnvelope as J, type IdentificationData as K, type IdentificationDataIdOneOf as L, type MaskedTransaction as M, type TransactionsQueryResult as N, type PoolInfo as P, type QueryTransactionsRequest as Q, type RestoreInfo 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 EntityUpdatedEvent as z };
|