@wix/auto_sdk_benefit-programs_transactions 1.0.19 → 1.0.20
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 +19 -7
- 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 +19 -7
- 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 +19 -7
- 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 +19 -7
- 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 +19 -7
- 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 +19 -7
- 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 +19 -7
- 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 +19 -7
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -31,9 +31,9 @@ export interface Transaction {
|
|
|
31
31
|
*/
|
|
32
32
|
amount?: string;
|
|
33
33
|
/** Where the credits came from. */
|
|
34
|
-
source?:
|
|
34
|
+
source?: BalanceTypeWithLiterals;
|
|
35
35
|
/** Where the credits went to. */
|
|
36
|
-
target?:
|
|
36
|
+
target?: BalanceTypeWithLiterals;
|
|
37
37
|
/**
|
|
38
38
|
* Unique identifier, generated by the client.
|
|
39
39
|
* Used to recognize repeated attempts to make the same request.
|
|
@@ -60,7 +60,7 @@ export interface Transaction {
|
|
|
60
60
|
*/
|
|
61
61
|
instructingParty?: CommonIdentificationData;
|
|
62
62
|
/** Transaction status. */
|
|
63
|
-
status?:
|
|
63
|
+
status?: TransactionStatusWithLiterals;
|
|
64
64
|
/**
|
|
65
65
|
* Additional transaction details.
|
|
66
66
|
* @readonly
|
|
@@ -101,12 +101,14 @@ export interface PoolInfo {
|
|
|
101
101
|
/**
|
|
102
102
|
* Available credits.
|
|
103
103
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
104
|
+
* @readonly
|
|
104
105
|
*/
|
|
105
106
|
creditAmount?: string | null;
|
|
106
107
|
/**
|
|
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.
|
|
108
109
|
* @minLength 1
|
|
109
110
|
* @maxLength 50
|
|
111
|
+
* @readonly
|
|
110
112
|
*/
|
|
111
113
|
namespace?: string | null;
|
|
112
114
|
}
|
|
@@ -117,6 +119,8 @@ export declare enum BalanceType {
|
|
|
117
119
|
/** Outside a pool's balance. */
|
|
118
120
|
EXTERNAL = "EXTERNAL"
|
|
119
121
|
}
|
|
122
|
+
/** @enumType */
|
|
123
|
+
export type BalanceTypeWithLiterals = BalanceType | 'UNDEFINED' | 'AVAILABLE' | 'EXTERNAL';
|
|
120
124
|
export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
121
125
|
/**
|
|
122
126
|
* ID of a site visitor that hasn't logged in to the site.
|
|
@@ -162,6 +166,8 @@ export declare enum IdentityType {
|
|
|
162
166
|
/** A Wix account holder, such as a site owner or contributor. */
|
|
163
167
|
WIX_USER = "WIX_USER"
|
|
164
168
|
}
|
|
169
|
+
/** @enumType */
|
|
170
|
+
export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
|
|
165
171
|
export declare enum TransactionStatus {
|
|
166
172
|
UNDEFINED = "UNDEFINED",
|
|
167
173
|
/** Transaction is pending. This is the initial transaction status. */
|
|
@@ -171,6 +177,8 @@ export declare enum TransactionStatus {
|
|
|
171
177
|
/** Transaction failed. */
|
|
172
178
|
FAILED = "FAILED"
|
|
173
179
|
}
|
|
180
|
+
/** @enumType */
|
|
181
|
+
export type TransactionStatusWithLiterals = TransactionStatus | 'UNDEFINED' | 'PENDING' | 'COMPLETED' | 'FAILED';
|
|
174
182
|
export interface TransactionDetails {
|
|
175
183
|
/**
|
|
176
184
|
* Item associated with the transaction.
|
|
@@ -241,9 +249,9 @@ export interface RequestedValues {
|
|
|
241
249
|
*/
|
|
242
250
|
amount?: string;
|
|
243
251
|
/** Where the credits came from. */
|
|
244
|
-
source?:
|
|
252
|
+
source?: BalanceTypeWithLiterals;
|
|
245
253
|
/** Where the credits went to. */
|
|
246
|
-
target?:
|
|
254
|
+
target?: BalanceTypeWithLiterals;
|
|
247
255
|
}
|
|
248
256
|
export interface CreateTransactionRequest {
|
|
249
257
|
/** Transaction to create. */
|
|
@@ -400,7 +408,7 @@ export interface Sorting {
|
|
|
400
408
|
*
|
|
401
409
|
* Default: `ASC`
|
|
402
410
|
*/
|
|
403
|
-
order?:
|
|
411
|
+
order?: SortOrderWithLiterals;
|
|
404
412
|
}
|
|
405
413
|
export declare enum SortOrder {
|
|
406
414
|
/** Ascending sort order. */
|
|
@@ -408,6 +416,8 @@ export declare enum SortOrder {
|
|
|
408
416
|
/** Descending sort order. */
|
|
409
417
|
DESC = "DESC"
|
|
410
418
|
}
|
|
419
|
+
/** @enumType */
|
|
420
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
411
421
|
export interface CursorPaging {
|
|
412
422
|
/**
|
|
413
423
|
* Maximum number of items to return.
|
|
@@ -556,7 +566,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
556
566
|
*/
|
|
557
567
|
appId?: string;
|
|
558
568
|
/** @readonly */
|
|
559
|
-
identityType?:
|
|
569
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
560
570
|
}
|
|
561
571
|
/** @oneof */
|
|
562
572
|
export interface IdentificationDataIdOneOf {
|
|
@@ -588,3 +598,5 @@ export declare enum WebhookIdentityType {
|
|
|
588
598
|
WIX_USER = "WIX_USER",
|
|
589
599
|
APP = "APP"
|
|
590
600
|
}
|
|
601
|
+
/** @enumType */
|
|
602
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -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,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"}
|
|
@@ -32,9 +32,9 @@ export interface Transaction {
|
|
|
32
32
|
*/
|
|
33
33
|
amount?: string;
|
|
34
34
|
/** Where the credits came from. */
|
|
35
|
-
source?:
|
|
35
|
+
source?: BalanceTypeWithLiterals;
|
|
36
36
|
/** Where the credits went to. */
|
|
37
|
-
target?:
|
|
37
|
+
target?: BalanceTypeWithLiterals;
|
|
38
38
|
/**
|
|
39
39
|
* Unique identifier, generated by the client.
|
|
40
40
|
* Used to recognize repeated attempts to make the same request.
|
|
@@ -61,7 +61,7 @@ export interface Transaction {
|
|
|
61
61
|
*/
|
|
62
62
|
instructingParty?: CommonIdentificationData;
|
|
63
63
|
/** Transaction status. */
|
|
64
|
-
status?:
|
|
64
|
+
status?: TransactionStatusWithLiterals;
|
|
65
65
|
/**
|
|
66
66
|
* Additional transaction details.
|
|
67
67
|
* @readonly
|
|
@@ -102,12 +102,14 @@ export interface PoolInfo {
|
|
|
102
102
|
/**
|
|
103
103
|
* Available credits.
|
|
104
104
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
105
|
+
* @readonly
|
|
105
106
|
*/
|
|
106
107
|
creditAmount?: string | null;
|
|
107
108
|
/**
|
|
108
109
|
* 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
110
|
* @minLength 1
|
|
110
111
|
* @maxLength 50
|
|
112
|
+
* @readonly
|
|
111
113
|
*/
|
|
112
114
|
namespace?: string | null;
|
|
113
115
|
}
|
|
@@ -118,6 +120,8 @@ export declare enum BalanceType {
|
|
|
118
120
|
/** Outside a pool's balance. */
|
|
119
121
|
EXTERNAL = "EXTERNAL"
|
|
120
122
|
}
|
|
123
|
+
/** @enumType */
|
|
124
|
+
export type BalanceTypeWithLiterals = BalanceType | 'UNDEFINED' | 'AVAILABLE' | 'EXTERNAL';
|
|
121
125
|
export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
122
126
|
/**
|
|
123
127
|
* ID of a site visitor that hasn't logged in to the site.
|
|
@@ -163,6 +167,8 @@ export declare enum IdentityType {
|
|
|
163
167
|
/** A Wix account holder, such as a site owner or contributor. */
|
|
164
168
|
WIX_USER = "WIX_USER"
|
|
165
169
|
}
|
|
170
|
+
/** @enumType */
|
|
171
|
+
export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
|
|
166
172
|
export declare enum TransactionStatus {
|
|
167
173
|
UNDEFINED = "UNDEFINED",
|
|
168
174
|
/** Transaction is pending. This is the initial transaction status. */
|
|
@@ -172,6 +178,8 @@ export declare enum TransactionStatus {
|
|
|
172
178
|
/** Transaction failed. */
|
|
173
179
|
FAILED = "FAILED"
|
|
174
180
|
}
|
|
181
|
+
/** @enumType */
|
|
182
|
+
export type TransactionStatusWithLiterals = TransactionStatus | 'UNDEFINED' | 'PENDING' | 'COMPLETED' | 'FAILED';
|
|
175
183
|
export interface TransactionDetails {
|
|
176
184
|
/**
|
|
177
185
|
* Item associated with the transaction.
|
|
@@ -242,9 +250,9 @@ export interface RequestedValues {
|
|
|
242
250
|
*/
|
|
243
251
|
amount?: string;
|
|
244
252
|
/** Where the credits came from. */
|
|
245
|
-
source?:
|
|
253
|
+
source?: BalanceTypeWithLiterals;
|
|
246
254
|
/** Where the credits went to. */
|
|
247
|
-
target?:
|
|
255
|
+
target?: BalanceTypeWithLiterals;
|
|
248
256
|
}
|
|
249
257
|
export interface CreateTransactionRequest {
|
|
250
258
|
/** Transaction to create. */
|
|
@@ -401,7 +409,7 @@ export interface Sorting {
|
|
|
401
409
|
*
|
|
402
410
|
* Default: `ASC`
|
|
403
411
|
*/
|
|
404
|
-
order?:
|
|
412
|
+
order?: SortOrderWithLiterals;
|
|
405
413
|
}
|
|
406
414
|
export declare enum SortOrder {
|
|
407
415
|
/** Ascending sort order. */
|
|
@@ -409,6 +417,8 @@ export declare enum SortOrder {
|
|
|
409
417
|
/** Descending sort order. */
|
|
410
418
|
DESC = "DESC"
|
|
411
419
|
}
|
|
420
|
+
/** @enumType */
|
|
421
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
412
422
|
export interface CursorPaging {
|
|
413
423
|
/**
|
|
414
424
|
* Maximum number of items to return.
|
|
@@ -555,7 +565,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
555
565
|
*/
|
|
556
566
|
appId?: string;
|
|
557
567
|
/** @readonly */
|
|
558
|
-
identityType?:
|
|
568
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
559
569
|
}
|
|
560
570
|
/** @oneof */
|
|
561
571
|
export interface IdentificationDataIdOneOf {
|
|
@@ -587,6 +597,8 @@ export declare enum WebhookIdentityType {
|
|
|
587
597
|
WIX_USER = "WIX_USER",
|
|
588
598
|
APP = "APP"
|
|
589
599
|
}
|
|
600
|
+
/** @enumType */
|
|
601
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
590
602
|
type TransactionNonNullablePaths = `pool._id` | `amount` | `source` | `target` | `idempotencyKey` | `beneficiary.anonymousVisitorId` | `beneficiary.memberId` | `beneficiary.wixUserId` | `instructingParty.anonymousVisitorId` | `instructingParty.memberId` | `instructingParty.wixUserId` | `status`;
|
|
591
603
|
/**
|
|
592
604
|
* Retrieves a transaction.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-transaction-transactions.universal.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-transaction-transactions.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,kIAAoH;AACpH,aAAa;AACb,sFAAkF;
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-transaction-transactions.universal.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-transaction-transactions.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,kIAAoH;AACpH,aAAa;AACb,sFAAkF;AAsHlF,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;AA8LD,IAAY,mBAMX;AAND,WAAY,mBAA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AAM,EAAE;gBAC3C,uBAAuB,EAAE,KAAK;aAC/B,CAAC,CAAC;YAEH,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,EAAE;KACxB,CAAC,CAAC;AACL,CAAC;AA1DD,8CA0DC"}
|
|
@@ -31,9 +31,9 @@ export interface Transaction {
|
|
|
31
31
|
*/
|
|
32
32
|
amount?: string;
|
|
33
33
|
/** Where the credits came from. */
|
|
34
|
-
source?:
|
|
34
|
+
source?: BalanceTypeWithLiterals;
|
|
35
35
|
/** Where the credits went to. */
|
|
36
|
-
target?:
|
|
36
|
+
target?: BalanceTypeWithLiterals;
|
|
37
37
|
/**
|
|
38
38
|
* Unique identifier, generated by the client.
|
|
39
39
|
* Used to recognize repeated attempts to make the same request.
|
|
@@ -60,7 +60,7 @@ export interface Transaction {
|
|
|
60
60
|
*/
|
|
61
61
|
instructingParty?: CommonIdentificationData;
|
|
62
62
|
/** Transaction status. */
|
|
63
|
-
status?:
|
|
63
|
+
status?: TransactionStatusWithLiterals;
|
|
64
64
|
/**
|
|
65
65
|
* Additional transaction details.
|
|
66
66
|
* @readonly
|
|
@@ -101,12 +101,14 @@ export interface PoolInfo {
|
|
|
101
101
|
/**
|
|
102
102
|
* Available credits.
|
|
103
103
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
104
|
+
* @readonly
|
|
104
105
|
*/
|
|
105
106
|
creditAmount?: string | null;
|
|
106
107
|
/**
|
|
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.
|
|
108
109
|
* @minLength 1
|
|
109
110
|
* @maxLength 50
|
|
111
|
+
* @readonly
|
|
110
112
|
*/
|
|
111
113
|
namespace?: string | null;
|
|
112
114
|
}
|
|
@@ -117,6 +119,8 @@ export declare enum BalanceType {
|
|
|
117
119
|
/** Outside a pool's balance. */
|
|
118
120
|
EXTERNAL = "EXTERNAL"
|
|
119
121
|
}
|
|
122
|
+
/** @enumType */
|
|
123
|
+
export type BalanceTypeWithLiterals = BalanceType | 'UNDEFINED' | 'AVAILABLE' | 'EXTERNAL';
|
|
120
124
|
export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
121
125
|
/**
|
|
122
126
|
* ID of a site visitor that hasn't logged in to the site.
|
|
@@ -162,6 +166,8 @@ export declare enum IdentityType {
|
|
|
162
166
|
/** A Wix account holder, such as a site owner or contributor. */
|
|
163
167
|
WIX_USER = "WIX_USER"
|
|
164
168
|
}
|
|
169
|
+
/** @enumType */
|
|
170
|
+
export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
|
|
165
171
|
export declare enum TransactionStatus {
|
|
166
172
|
UNDEFINED = "UNDEFINED",
|
|
167
173
|
/** Transaction is pending. This is the initial transaction status. */
|
|
@@ -171,6 +177,8 @@ export declare enum TransactionStatus {
|
|
|
171
177
|
/** Transaction failed. */
|
|
172
178
|
FAILED = "FAILED"
|
|
173
179
|
}
|
|
180
|
+
/** @enumType */
|
|
181
|
+
export type TransactionStatusWithLiterals = TransactionStatus | 'UNDEFINED' | 'PENDING' | 'COMPLETED' | 'FAILED';
|
|
174
182
|
export interface TransactionDetails {
|
|
175
183
|
/**
|
|
176
184
|
* Item associated with the transaction.
|
|
@@ -241,9 +249,9 @@ export interface RequestedValues {
|
|
|
241
249
|
*/
|
|
242
250
|
amount?: string;
|
|
243
251
|
/** Where the credits came from. */
|
|
244
|
-
source?:
|
|
252
|
+
source?: BalanceTypeWithLiterals;
|
|
245
253
|
/** Where the credits went to. */
|
|
246
|
-
target?:
|
|
254
|
+
target?: BalanceTypeWithLiterals;
|
|
247
255
|
}
|
|
248
256
|
export interface CreateTransactionRequest {
|
|
249
257
|
/** Transaction to create. */
|
|
@@ -400,7 +408,7 @@ export interface Sorting {
|
|
|
400
408
|
*
|
|
401
409
|
* Default: `ASC`
|
|
402
410
|
*/
|
|
403
|
-
order?:
|
|
411
|
+
order?: SortOrderWithLiterals;
|
|
404
412
|
}
|
|
405
413
|
export declare enum SortOrder {
|
|
406
414
|
/** Ascending sort order. */
|
|
@@ -408,6 +416,8 @@ export declare enum SortOrder {
|
|
|
408
416
|
/** Descending sort order. */
|
|
409
417
|
DESC = "DESC"
|
|
410
418
|
}
|
|
419
|
+
/** @enumType */
|
|
420
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
411
421
|
export interface CursorPaging {
|
|
412
422
|
/**
|
|
413
423
|
* Maximum number of items to return.
|
|
@@ -556,7 +566,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
556
566
|
*/
|
|
557
567
|
appId?: string;
|
|
558
568
|
/** @readonly */
|
|
559
|
-
identityType?:
|
|
569
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
560
570
|
}
|
|
561
571
|
/** @oneof */
|
|
562
572
|
export interface IdentificationDataIdOneOf {
|
|
@@ -588,3 +598,5 @@ export declare enum WebhookIdentityType {
|
|
|
588
598
|
WIX_USER = "WIX_USER",
|
|
589
599
|
APP = "APP"
|
|
590
600
|
}
|
|
601
|
+
/** @enumType */
|
|
602
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -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,MAAM,CAAN,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,2BAA2B;IAC3B,sCAAuB,CAAA;IACvB,gCAAgC;IAChC,oCAAqB,CAAA;AACvB,CAAC,EANW,WAAW,KAAX,WAAW,QAMtB;AA+CD,MAAM,CAAN,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,KAAZ,YAAY,QASvB;AAUD,MAAM,CAAN,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,KAAjB,iBAAiB,QAQ5B;AAwQD,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AAgMD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|
|
@@ -32,9 +32,9 @@ export interface Transaction {
|
|
|
32
32
|
*/
|
|
33
33
|
amount?: string;
|
|
34
34
|
/** Where the credits came from. */
|
|
35
|
-
source?:
|
|
35
|
+
source?: BalanceTypeWithLiterals;
|
|
36
36
|
/** Where the credits went to. */
|
|
37
|
-
target?:
|
|
37
|
+
target?: BalanceTypeWithLiterals;
|
|
38
38
|
/**
|
|
39
39
|
* Unique identifier, generated by the client.
|
|
40
40
|
* Used to recognize repeated attempts to make the same request.
|
|
@@ -61,7 +61,7 @@ export interface Transaction {
|
|
|
61
61
|
*/
|
|
62
62
|
instructingParty?: CommonIdentificationData;
|
|
63
63
|
/** Transaction status. */
|
|
64
|
-
status?:
|
|
64
|
+
status?: TransactionStatusWithLiterals;
|
|
65
65
|
/**
|
|
66
66
|
* Additional transaction details.
|
|
67
67
|
* @readonly
|
|
@@ -102,12 +102,14 @@ export interface PoolInfo {
|
|
|
102
102
|
/**
|
|
103
103
|
* Available credits.
|
|
104
104
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
105
|
+
* @readonly
|
|
105
106
|
*/
|
|
106
107
|
creditAmount?: string | null;
|
|
107
108
|
/**
|
|
108
109
|
* 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
110
|
* @minLength 1
|
|
110
111
|
* @maxLength 50
|
|
112
|
+
* @readonly
|
|
111
113
|
*/
|
|
112
114
|
namespace?: string | null;
|
|
113
115
|
}
|
|
@@ -118,6 +120,8 @@ export declare enum BalanceType {
|
|
|
118
120
|
/** Outside a pool's balance. */
|
|
119
121
|
EXTERNAL = "EXTERNAL"
|
|
120
122
|
}
|
|
123
|
+
/** @enumType */
|
|
124
|
+
export type BalanceTypeWithLiterals = BalanceType | 'UNDEFINED' | 'AVAILABLE' | 'EXTERNAL';
|
|
121
125
|
export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
122
126
|
/**
|
|
123
127
|
* ID of a site visitor that hasn't logged in to the site.
|
|
@@ -163,6 +167,8 @@ export declare enum IdentityType {
|
|
|
163
167
|
/** A Wix account holder, such as a site owner or contributor. */
|
|
164
168
|
WIX_USER = "WIX_USER"
|
|
165
169
|
}
|
|
170
|
+
/** @enumType */
|
|
171
|
+
export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
|
|
166
172
|
export declare enum TransactionStatus {
|
|
167
173
|
UNDEFINED = "UNDEFINED",
|
|
168
174
|
/** Transaction is pending. This is the initial transaction status. */
|
|
@@ -172,6 +178,8 @@ export declare enum TransactionStatus {
|
|
|
172
178
|
/** Transaction failed. */
|
|
173
179
|
FAILED = "FAILED"
|
|
174
180
|
}
|
|
181
|
+
/** @enumType */
|
|
182
|
+
export type TransactionStatusWithLiterals = TransactionStatus | 'UNDEFINED' | 'PENDING' | 'COMPLETED' | 'FAILED';
|
|
175
183
|
export interface TransactionDetails {
|
|
176
184
|
/**
|
|
177
185
|
* Item associated with the transaction.
|
|
@@ -242,9 +250,9 @@ export interface RequestedValues {
|
|
|
242
250
|
*/
|
|
243
251
|
amount?: string;
|
|
244
252
|
/** Where the credits came from. */
|
|
245
|
-
source?:
|
|
253
|
+
source?: BalanceTypeWithLiterals;
|
|
246
254
|
/** Where the credits went to. */
|
|
247
|
-
target?:
|
|
255
|
+
target?: BalanceTypeWithLiterals;
|
|
248
256
|
}
|
|
249
257
|
export interface CreateTransactionRequest {
|
|
250
258
|
/** Transaction to create. */
|
|
@@ -401,7 +409,7 @@ export interface Sorting {
|
|
|
401
409
|
*
|
|
402
410
|
* Default: `ASC`
|
|
403
411
|
*/
|
|
404
|
-
order?:
|
|
412
|
+
order?: SortOrderWithLiterals;
|
|
405
413
|
}
|
|
406
414
|
export declare enum SortOrder {
|
|
407
415
|
/** Ascending sort order. */
|
|
@@ -409,6 +417,8 @@ export declare enum SortOrder {
|
|
|
409
417
|
/** Descending sort order. */
|
|
410
418
|
DESC = "DESC"
|
|
411
419
|
}
|
|
420
|
+
/** @enumType */
|
|
421
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
412
422
|
export interface CursorPaging {
|
|
413
423
|
/**
|
|
414
424
|
* Maximum number of items to return.
|
|
@@ -555,7 +565,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
555
565
|
*/
|
|
556
566
|
appId?: string;
|
|
557
567
|
/** @readonly */
|
|
558
|
-
identityType?:
|
|
568
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
559
569
|
}
|
|
560
570
|
/** @oneof */
|
|
561
571
|
export interface IdentificationDataIdOneOf {
|
|
@@ -587,6 +597,8 @@ export declare enum WebhookIdentityType {
|
|
|
587
597
|
WIX_USER = "WIX_USER",
|
|
588
598
|
APP = "APP"
|
|
589
599
|
}
|
|
600
|
+
/** @enumType */
|
|
601
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
590
602
|
type TransactionNonNullablePaths = `pool._id` | `amount` | `source` | `target` | `idempotencyKey` | `beneficiary.anonymousVisitorId` | `beneficiary.memberId` | `beneficiary.wixUserId` | `instructingParty.anonymousVisitorId` | `instructingParty.memberId` | `instructingParty.wixUserId` | `status`;
|
|
591
603
|
/**
|
|
592
604
|
* Retrieves a transaction.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-transaction-transactions.universal.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-transaction-transactions.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,yCAAyC,MAAM,wDAAwD,CAAC;AACpH,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-transaction-transactions.universal.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-transaction-transactions.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAA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WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;gBACjC,OAAO,MAAM,CAAC;YAChB,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;gBAC5B,MAAM,GAAG,CAAC;YACZ,CAAC;QACH,CAAC;QACD,kBAAkB,EAAE,CAAC,KAAwC,EAAE,EAAE;YAC/D,MAAM,IAAI,GAAG,CAAC,KAAK,EAAE,EAAE,CAA4C,CAAC;YACpE,OAAO,qCAAqC,CAAC;gBAC3C,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC;gBACZ,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;aACjB,CAAC,CAAC;QACL,CAAC;QACD,mBAAmB,EAAE,CAAC,EACpB,IAAI,GACoC,EAAE,EAAE;YAC5C,MAAM,eAAe,GAAG,uCAAuC,CAC7D,cAAc,CAAC,IAAI,EAAE,EAAE,CAAC,CACzB,CAAC;YAEF,OAAO;gBACL,KAAK,EAAE,eAAe,EAAE,YAAY;gBACpC,cAAc,EAAE,eAAe,EAAE,QAAQ;aAC1C,CAAC;QACJ,CAAC;QACD,gBAAgB,EAAE,CAAC,GAAY,EAAE,EAAE;YACjC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,GAAG,EAAE;gBAC9C,sBAAsB,EAAE,EAAE;gBAC1B,wBAAwB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBAC3C,uBAAuB,EAAE,KAAK;aAC/B,CAAC,CAAC;YAEH,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,EAAE;KACxB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -31,9 +31,9 @@ export interface Transaction {
|
|
|
31
31
|
*/
|
|
32
32
|
amount?: string;
|
|
33
33
|
/** Where the credits came from. */
|
|
34
|
-
source?:
|
|
34
|
+
source?: BalanceTypeWithLiterals;
|
|
35
35
|
/** Where the credits went to. */
|
|
36
|
-
target?:
|
|
36
|
+
target?: BalanceTypeWithLiterals;
|
|
37
37
|
/**
|
|
38
38
|
* Unique identifier, generated by the client.
|
|
39
39
|
* Used to recognize repeated attempts to make the same request.
|
|
@@ -60,7 +60,7 @@ export interface Transaction {
|
|
|
60
60
|
*/
|
|
61
61
|
instructingParty?: CommonIdentificationData;
|
|
62
62
|
/** Transaction status. */
|
|
63
|
-
status?:
|
|
63
|
+
status?: TransactionStatusWithLiterals;
|
|
64
64
|
/**
|
|
65
65
|
* Additional transaction details.
|
|
66
66
|
* @readonly
|
|
@@ -101,12 +101,14 @@ export interface PoolInfo {
|
|
|
101
101
|
/**
|
|
102
102
|
* Available credits.
|
|
103
103
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
104
|
+
* @readonly
|
|
104
105
|
*/
|
|
105
106
|
creditAmount?: string | null;
|
|
106
107
|
/**
|
|
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.
|
|
108
109
|
* @minLength 1
|
|
109
110
|
* @maxLength 50
|
|
111
|
+
* @readonly
|
|
110
112
|
*/
|
|
111
113
|
namespace?: string | null;
|
|
112
114
|
}
|
|
@@ -117,6 +119,8 @@ export declare enum BalanceType {
|
|
|
117
119
|
/** Outside a pool's balance. */
|
|
118
120
|
EXTERNAL = "EXTERNAL"
|
|
119
121
|
}
|
|
122
|
+
/** @enumType */
|
|
123
|
+
export type BalanceTypeWithLiterals = BalanceType | 'UNDEFINED' | 'AVAILABLE' | 'EXTERNAL';
|
|
120
124
|
export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
121
125
|
/**
|
|
122
126
|
* ID of a site visitor that hasn't logged in to the site.
|
|
@@ -162,6 +166,8 @@ export declare enum IdentityType {
|
|
|
162
166
|
/** A Wix account holder, such as a site owner or contributor. */
|
|
163
167
|
WIX_USER = "WIX_USER"
|
|
164
168
|
}
|
|
169
|
+
/** @enumType */
|
|
170
|
+
export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
|
|
165
171
|
export declare enum TransactionStatus {
|
|
166
172
|
UNDEFINED = "UNDEFINED",
|
|
167
173
|
/** Transaction is pending. This is the initial transaction status. */
|
|
@@ -171,6 +177,8 @@ export declare enum TransactionStatus {
|
|
|
171
177
|
/** Transaction failed. */
|
|
172
178
|
FAILED = "FAILED"
|
|
173
179
|
}
|
|
180
|
+
/** @enumType */
|
|
181
|
+
export type TransactionStatusWithLiterals = TransactionStatus | 'UNDEFINED' | 'PENDING' | 'COMPLETED' | 'FAILED';
|
|
174
182
|
export interface TransactionDetails {
|
|
175
183
|
/**
|
|
176
184
|
* Item associated with the transaction.
|
|
@@ -241,9 +249,9 @@ export interface RequestedValues {
|
|
|
241
249
|
*/
|
|
242
250
|
amount?: string;
|
|
243
251
|
/** Where the credits came from. */
|
|
244
|
-
source?:
|
|
252
|
+
source?: BalanceTypeWithLiterals;
|
|
245
253
|
/** Where the credits went to. */
|
|
246
|
-
target?:
|
|
254
|
+
target?: BalanceTypeWithLiterals;
|
|
247
255
|
}
|
|
248
256
|
export interface CreateTransactionRequest {
|
|
249
257
|
/** Transaction to create. */
|
|
@@ -400,7 +408,7 @@ export interface Sorting {
|
|
|
400
408
|
*
|
|
401
409
|
* Default: `ASC`
|
|
402
410
|
*/
|
|
403
|
-
order?:
|
|
411
|
+
order?: SortOrderWithLiterals;
|
|
404
412
|
}
|
|
405
413
|
export declare enum SortOrder {
|
|
406
414
|
/** Ascending sort order. */
|
|
@@ -408,6 +416,8 @@ export declare enum SortOrder {
|
|
|
408
416
|
/** Descending sort order. */
|
|
409
417
|
DESC = "DESC"
|
|
410
418
|
}
|
|
419
|
+
/** @enumType */
|
|
420
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
411
421
|
export interface CursorPaging {
|
|
412
422
|
/**
|
|
413
423
|
* Maximum number of items to return.
|
|
@@ -556,7 +566,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
556
566
|
*/
|
|
557
567
|
appId?: string;
|
|
558
568
|
/** @readonly */
|
|
559
|
-
identityType?:
|
|
569
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
560
570
|
}
|
|
561
571
|
/** @oneof */
|
|
562
572
|
export interface IdentificationDataIdOneOf {
|
|
@@ -588,3 +598,5 @@ export declare enum WebhookIdentityType {
|
|
|
588
598
|
WIX_USER = "WIX_USER",
|
|
589
599
|
APP = "APP"
|
|
590
600
|
}
|
|
601
|
+
/** @enumType */
|
|
602
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -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,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"}
|
|
@@ -32,9 +32,9 @@ export interface Transaction {
|
|
|
32
32
|
*/
|
|
33
33
|
amount?: string;
|
|
34
34
|
/** Where the credits came from. */
|
|
35
|
-
source?:
|
|
35
|
+
source?: BalanceTypeWithLiterals;
|
|
36
36
|
/** Where the credits went to. */
|
|
37
|
-
target?:
|
|
37
|
+
target?: BalanceTypeWithLiterals;
|
|
38
38
|
/**
|
|
39
39
|
* Unique identifier, generated by the client.
|
|
40
40
|
* Used to recognize repeated attempts to make the same request.
|
|
@@ -61,7 +61,7 @@ export interface Transaction {
|
|
|
61
61
|
*/
|
|
62
62
|
instructingParty?: CommonIdentificationData;
|
|
63
63
|
/** Transaction status. */
|
|
64
|
-
status?:
|
|
64
|
+
status?: TransactionStatusWithLiterals;
|
|
65
65
|
/**
|
|
66
66
|
* Additional transaction details.
|
|
67
67
|
* @readonly
|
|
@@ -102,12 +102,14 @@ export interface PoolInfo {
|
|
|
102
102
|
/**
|
|
103
103
|
* Available credits.
|
|
104
104
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
105
|
+
* @readonly
|
|
105
106
|
*/
|
|
106
107
|
creditAmount?: string | null;
|
|
107
108
|
/**
|
|
108
109
|
* 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
110
|
* @minLength 1
|
|
110
111
|
* @maxLength 50
|
|
112
|
+
* @readonly
|
|
111
113
|
*/
|
|
112
114
|
namespace?: string | null;
|
|
113
115
|
}
|
|
@@ -118,6 +120,8 @@ export declare enum BalanceType {
|
|
|
118
120
|
/** Outside a pool's balance. */
|
|
119
121
|
EXTERNAL = "EXTERNAL"
|
|
120
122
|
}
|
|
123
|
+
/** @enumType */
|
|
124
|
+
export type BalanceTypeWithLiterals = BalanceType | 'UNDEFINED' | 'AVAILABLE' | 'EXTERNAL';
|
|
121
125
|
export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
122
126
|
/**
|
|
123
127
|
* ID of a site visitor that hasn't logged in to the site.
|
|
@@ -163,6 +167,8 @@ export declare enum IdentityType {
|
|
|
163
167
|
/** A Wix account holder, such as a site owner or contributor. */
|
|
164
168
|
WIX_USER = "WIX_USER"
|
|
165
169
|
}
|
|
170
|
+
/** @enumType */
|
|
171
|
+
export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
|
|
166
172
|
export declare enum TransactionStatus {
|
|
167
173
|
UNDEFINED = "UNDEFINED",
|
|
168
174
|
/** Transaction is pending. This is the initial transaction status. */
|
|
@@ -172,6 +178,8 @@ export declare enum TransactionStatus {
|
|
|
172
178
|
/** Transaction failed. */
|
|
173
179
|
FAILED = "FAILED"
|
|
174
180
|
}
|
|
181
|
+
/** @enumType */
|
|
182
|
+
export type TransactionStatusWithLiterals = TransactionStatus | 'UNDEFINED' | 'PENDING' | 'COMPLETED' | 'FAILED';
|
|
175
183
|
export interface TransactionDetails {
|
|
176
184
|
/**
|
|
177
185
|
* Item associated with the transaction.
|
|
@@ -242,9 +250,9 @@ export interface RequestedValues {
|
|
|
242
250
|
*/
|
|
243
251
|
amount?: string;
|
|
244
252
|
/** Where the credits came from. */
|
|
245
|
-
source?:
|
|
253
|
+
source?: BalanceTypeWithLiterals;
|
|
246
254
|
/** Where the credits went to. */
|
|
247
|
-
target?:
|
|
255
|
+
target?: BalanceTypeWithLiterals;
|
|
248
256
|
}
|
|
249
257
|
export interface CreateTransactionRequest {
|
|
250
258
|
/** Transaction to create. */
|
|
@@ -401,7 +409,7 @@ export interface Sorting {
|
|
|
401
409
|
*
|
|
402
410
|
* Default: `ASC`
|
|
403
411
|
*/
|
|
404
|
-
order?:
|
|
412
|
+
order?: SortOrderWithLiterals;
|
|
405
413
|
}
|
|
406
414
|
export declare enum SortOrder {
|
|
407
415
|
/** Ascending sort order. */
|
|
@@ -409,6 +417,8 @@ export declare enum SortOrder {
|
|
|
409
417
|
/** Descending sort order. */
|
|
410
418
|
DESC = "DESC"
|
|
411
419
|
}
|
|
420
|
+
/** @enumType */
|
|
421
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
412
422
|
export interface CursorPaging {
|
|
413
423
|
/**
|
|
414
424
|
* Maximum number of items to return.
|
|
@@ -555,7 +565,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
555
565
|
*/
|
|
556
566
|
appId?: string;
|
|
557
567
|
/** @readonly */
|
|
558
|
-
identityType?:
|
|
568
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
559
569
|
}
|
|
560
570
|
/** @oneof */
|
|
561
571
|
export interface IdentificationDataIdOneOf {
|
|
@@ -587,6 +597,8 @@ export declare enum WebhookIdentityType {
|
|
|
587
597
|
WIX_USER = "WIX_USER",
|
|
588
598
|
APP = "APP"
|
|
589
599
|
}
|
|
600
|
+
/** @enumType */
|
|
601
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
590
602
|
type TransactionNonNullablePaths = `pool._id` | `amount` | `source` | `target` | `idempotencyKey` | `beneficiary.anonymousVisitorId` | `beneficiary.memberId` | `beneficiary.wixUserId` | `instructingParty.anonymousVisitorId` | `instructingParty.memberId` | `instructingParty.wixUserId` | `status`;
|
|
591
603
|
/**
|
|
592
604
|
* Retrieves a transaction.
|
package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.universal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-transaction-transactions.universal.js","sourceRoot":"","sources":["../../../../src/benefit-programs-v1-transaction-transactions.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,kIAAoH;AACpH,aAAa;AACb,sFAAkF;
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-transaction-transactions.universal.js","sourceRoot":"","sources":["../../../../src/benefit-programs-v1-transaction-transactions.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,kIAAoH;AACpH,aAAa;AACb,sFAAkF;AAsHlF,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,i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aAC1C,CAAC;QACJ,CAAC;QACD,gBAAgB,EAAE,CAAC,GAAY,EAAE,EAAE;YACjC,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EAAC,GAAG,EAAE;gBAC9C,sBAAsB,EAAE,EAAE;gBAC1B,wBAAwB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBAC3C,uBAAuB,EAAE,KAAK;aAC/B,CAAC,CAAC;YAEH,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,EAAE;KACxB,CAAC,CAAC;AACL,CAAC;AA1DD,8CA0DC"}
|
|
@@ -31,9 +31,9 @@ export interface Transaction {
|
|
|
31
31
|
*/
|
|
32
32
|
amount?: string;
|
|
33
33
|
/** Where the credits came from. */
|
|
34
|
-
source?:
|
|
34
|
+
source?: BalanceTypeWithLiterals;
|
|
35
35
|
/** Where the credits went to. */
|
|
36
|
-
target?:
|
|
36
|
+
target?: BalanceTypeWithLiterals;
|
|
37
37
|
/**
|
|
38
38
|
* Unique identifier, generated by the client.
|
|
39
39
|
* Used to recognize repeated attempts to make the same request.
|
|
@@ -60,7 +60,7 @@ export interface Transaction {
|
|
|
60
60
|
*/
|
|
61
61
|
instructingParty?: CommonIdentificationData;
|
|
62
62
|
/** Transaction status. */
|
|
63
|
-
status?:
|
|
63
|
+
status?: TransactionStatusWithLiterals;
|
|
64
64
|
/**
|
|
65
65
|
* Additional transaction details.
|
|
66
66
|
* @readonly
|
|
@@ -101,12 +101,14 @@ export interface PoolInfo {
|
|
|
101
101
|
/**
|
|
102
102
|
* Available credits.
|
|
103
103
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
104
|
+
* @readonly
|
|
104
105
|
*/
|
|
105
106
|
creditAmount?: string | null;
|
|
106
107
|
/**
|
|
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.
|
|
108
109
|
* @minLength 1
|
|
109
110
|
* @maxLength 50
|
|
111
|
+
* @readonly
|
|
110
112
|
*/
|
|
111
113
|
namespace?: string | null;
|
|
112
114
|
}
|
|
@@ -117,6 +119,8 @@ export declare enum BalanceType {
|
|
|
117
119
|
/** Outside a pool's balance. */
|
|
118
120
|
EXTERNAL = "EXTERNAL"
|
|
119
121
|
}
|
|
122
|
+
/** @enumType */
|
|
123
|
+
export type BalanceTypeWithLiterals = BalanceType | 'UNDEFINED' | 'AVAILABLE' | 'EXTERNAL';
|
|
120
124
|
export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
121
125
|
/**
|
|
122
126
|
* ID of a site visitor that hasn't logged in to the site.
|
|
@@ -162,6 +166,8 @@ export declare enum IdentityType {
|
|
|
162
166
|
/** A Wix account holder, such as a site owner or contributor. */
|
|
163
167
|
WIX_USER = "WIX_USER"
|
|
164
168
|
}
|
|
169
|
+
/** @enumType */
|
|
170
|
+
export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
|
|
165
171
|
export declare enum TransactionStatus {
|
|
166
172
|
UNDEFINED = "UNDEFINED",
|
|
167
173
|
/** Transaction is pending. This is the initial transaction status. */
|
|
@@ -171,6 +177,8 @@ export declare enum TransactionStatus {
|
|
|
171
177
|
/** Transaction failed. */
|
|
172
178
|
FAILED = "FAILED"
|
|
173
179
|
}
|
|
180
|
+
/** @enumType */
|
|
181
|
+
export type TransactionStatusWithLiterals = TransactionStatus | 'UNDEFINED' | 'PENDING' | 'COMPLETED' | 'FAILED';
|
|
174
182
|
export interface TransactionDetails {
|
|
175
183
|
/**
|
|
176
184
|
* Item associated with the transaction.
|
|
@@ -241,9 +249,9 @@ export interface RequestedValues {
|
|
|
241
249
|
*/
|
|
242
250
|
amount?: string;
|
|
243
251
|
/** Where the credits came from. */
|
|
244
|
-
source?:
|
|
252
|
+
source?: BalanceTypeWithLiterals;
|
|
245
253
|
/** Where the credits went to. */
|
|
246
|
-
target?:
|
|
254
|
+
target?: BalanceTypeWithLiterals;
|
|
247
255
|
}
|
|
248
256
|
export interface CreateTransactionRequest {
|
|
249
257
|
/** Transaction to create. */
|
|
@@ -400,7 +408,7 @@ export interface Sorting {
|
|
|
400
408
|
*
|
|
401
409
|
* Default: `ASC`
|
|
402
410
|
*/
|
|
403
|
-
order?:
|
|
411
|
+
order?: SortOrderWithLiterals;
|
|
404
412
|
}
|
|
405
413
|
export declare enum SortOrder {
|
|
406
414
|
/** Ascending sort order. */
|
|
@@ -408,6 +416,8 @@ export declare enum SortOrder {
|
|
|
408
416
|
/** Descending sort order. */
|
|
409
417
|
DESC = "DESC"
|
|
410
418
|
}
|
|
419
|
+
/** @enumType */
|
|
420
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
411
421
|
export interface CursorPaging {
|
|
412
422
|
/**
|
|
413
423
|
* Maximum number of items to return.
|
|
@@ -556,7 +566,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
556
566
|
*/
|
|
557
567
|
appId?: string;
|
|
558
568
|
/** @readonly */
|
|
559
|
-
identityType?:
|
|
569
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
560
570
|
}
|
|
561
571
|
/** @oneof */
|
|
562
572
|
export interface IdentificationDataIdOneOf {
|
|
@@ -588,3 +598,5 @@ export declare enum WebhookIdentityType {
|
|
|
588
598
|
WIX_USER = "WIX_USER",
|
|
589
599
|
APP = "APP"
|
|
590
600
|
}
|
|
601
|
+
/** @enumType */
|
|
602
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -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,MAAM,CAAN,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,2BAA2B;IAC3B,sCAAuB,CAAA;IACvB,gCAAgC;IAChC,oCAAqB,CAAA;AACvB,CAAC,EANW,WAAW,KAAX,WAAW,QAMtB;AA+CD,MAAM,CAAN,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,KAAZ,YAAY,QASvB;AAUD,MAAM,CAAN,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,KAAjB,iBAAiB,QAQ5B;AAwQD,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AAgMD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|
|
@@ -32,9 +32,9 @@ export interface Transaction {
|
|
|
32
32
|
*/
|
|
33
33
|
amount?: string;
|
|
34
34
|
/** Where the credits came from. */
|
|
35
|
-
source?:
|
|
35
|
+
source?: BalanceTypeWithLiterals;
|
|
36
36
|
/** Where the credits went to. */
|
|
37
|
-
target?:
|
|
37
|
+
target?: BalanceTypeWithLiterals;
|
|
38
38
|
/**
|
|
39
39
|
* Unique identifier, generated by the client.
|
|
40
40
|
* Used to recognize repeated attempts to make the same request.
|
|
@@ -61,7 +61,7 @@ export interface Transaction {
|
|
|
61
61
|
*/
|
|
62
62
|
instructingParty?: CommonIdentificationData;
|
|
63
63
|
/** Transaction status. */
|
|
64
|
-
status?:
|
|
64
|
+
status?: TransactionStatusWithLiterals;
|
|
65
65
|
/**
|
|
66
66
|
* Additional transaction details.
|
|
67
67
|
* @readonly
|
|
@@ -102,12 +102,14 @@ export interface PoolInfo {
|
|
|
102
102
|
/**
|
|
103
103
|
* Available credits.
|
|
104
104
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
105
|
+
* @readonly
|
|
105
106
|
*/
|
|
106
107
|
creditAmount?: string | null;
|
|
107
108
|
/**
|
|
108
109
|
* 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
110
|
* @minLength 1
|
|
110
111
|
* @maxLength 50
|
|
112
|
+
* @readonly
|
|
111
113
|
*/
|
|
112
114
|
namespace?: string | null;
|
|
113
115
|
}
|
|
@@ -118,6 +120,8 @@ export declare enum BalanceType {
|
|
|
118
120
|
/** Outside a pool's balance. */
|
|
119
121
|
EXTERNAL = "EXTERNAL"
|
|
120
122
|
}
|
|
123
|
+
/** @enumType */
|
|
124
|
+
export type BalanceTypeWithLiterals = BalanceType | 'UNDEFINED' | 'AVAILABLE' | 'EXTERNAL';
|
|
121
125
|
export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
122
126
|
/**
|
|
123
127
|
* ID of a site visitor that hasn't logged in to the site.
|
|
@@ -163,6 +167,8 @@ export declare enum IdentityType {
|
|
|
163
167
|
/** A Wix account holder, such as a site owner or contributor. */
|
|
164
168
|
WIX_USER = "WIX_USER"
|
|
165
169
|
}
|
|
170
|
+
/** @enumType */
|
|
171
|
+
export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
|
|
166
172
|
export declare enum TransactionStatus {
|
|
167
173
|
UNDEFINED = "UNDEFINED",
|
|
168
174
|
/** Transaction is pending. This is the initial transaction status. */
|
|
@@ -172,6 +178,8 @@ export declare enum TransactionStatus {
|
|
|
172
178
|
/** Transaction failed. */
|
|
173
179
|
FAILED = "FAILED"
|
|
174
180
|
}
|
|
181
|
+
/** @enumType */
|
|
182
|
+
export type TransactionStatusWithLiterals = TransactionStatus | 'UNDEFINED' | 'PENDING' | 'COMPLETED' | 'FAILED';
|
|
175
183
|
export interface TransactionDetails {
|
|
176
184
|
/**
|
|
177
185
|
* Item associated with the transaction.
|
|
@@ -242,9 +250,9 @@ export interface RequestedValues {
|
|
|
242
250
|
*/
|
|
243
251
|
amount?: string;
|
|
244
252
|
/** Where the credits came from. */
|
|
245
|
-
source?:
|
|
253
|
+
source?: BalanceTypeWithLiterals;
|
|
246
254
|
/** Where the credits went to. */
|
|
247
|
-
target?:
|
|
255
|
+
target?: BalanceTypeWithLiterals;
|
|
248
256
|
}
|
|
249
257
|
export interface CreateTransactionRequest {
|
|
250
258
|
/** Transaction to create. */
|
|
@@ -401,7 +409,7 @@ export interface Sorting {
|
|
|
401
409
|
*
|
|
402
410
|
* Default: `ASC`
|
|
403
411
|
*/
|
|
404
|
-
order?:
|
|
412
|
+
order?: SortOrderWithLiterals;
|
|
405
413
|
}
|
|
406
414
|
export declare enum SortOrder {
|
|
407
415
|
/** Ascending sort order. */
|
|
@@ -409,6 +417,8 @@ export declare enum SortOrder {
|
|
|
409
417
|
/** Descending sort order. */
|
|
410
418
|
DESC = "DESC"
|
|
411
419
|
}
|
|
420
|
+
/** @enumType */
|
|
421
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
412
422
|
export interface CursorPaging {
|
|
413
423
|
/**
|
|
414
424
|
* Maximum number of items to return.
|
|
@@ -555,7 +565,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
555
565
|
*/
|
|
556
566
|
appId?: string;
|
|
557
567
|
/** @readonly */
|
|
558
|
-
identityType?:
|
|
568
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
559
569
|
}
|
|
560
570
|
/** @oneof */
|
|
561
571
|
export interface IdentificationDataIdOneOf {
|
|
@@ -587,6 +597,8 @@ export declare enum WebhookIdentityType {
|
|
|
587
597
|
WIX_USER = "WIX_USER",
|
|
588
598
|
APP = "APP"
|
|
589
599
|
}
|
|
600
|
+
/** @enumType */
|
|
601
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
590
602
|
type TransactionNonNullablePaths = `pool._id` | `amount` | `source` | `target` | `idempotencyKey` | `beneficiary.anonymousVisitorId` | `beneficiary.memberId` | `beneficiary.wixUserId` | `instructingParty.anonymousVisitorId` | `instructingParty.memberId` | `instructingParty.wixUserId` | `status`;
|
|
591
603
|
/**
|
|
592
604
|
* Retrieves a transaction.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-transaction-transactions.universal.js","sourceRoot":"","sources":["../../../../src/benefit-programs-v1-transaction-transactions.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,yCAAyC,MAAM,wDAAwD,CAAC;AACpH,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-transaction-transactions.universal.js","sourceRoot":"","sources":["../../../../src/benefit-programs-v1-transaction-transactions.universal.ts"],"names":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AAmB,EAAE,EAAE;KACxB,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_benefit-programs_transactions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": "wix.benefit_programs.v1.transaction"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "54cc82d6de51f7d581bcf7aed9de84ef534c0ddcf857310d81ceb07a"
|
|
52
52
|
}
|