@wix/auto_sdk_benefit-programs_balances 1.0.14 → 1.0.16
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-balance-balances.types.d.ts +21 -5
- package/build/cjs/src/benefit-programs-v1-balance-balances.types.js.map +1 -1
- package/build/cjs/src/benefit-programs-v1-balance-balances.universal.d.ts +22 -6
- package/build/cjs/src/benefit-programs-v1-balance-balances.universal.js +3 -1
- package/build/cjs/src/benefit-programs-v1-balance-balances.universal.js.map +1 -1
- package/build/es/src/benefit-programs-v1-balance-balances.types.d.ts +21 -5
- package/build/es/src/benefit-programs-v1-balance-balances.types.js.map +1 -1
- package/build/es/src/benefit-programs-v1-balance-balances.universal.d.ts +22 -6
- package/build/es/src/benefit-programs-v1-balance-balances.universal.js +3 -1
- package/build/es/src/benefit-programs-v1-balance-balances.universal.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.types.d.ts +21 -5
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.types.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.universal.d.ts +22 -6
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.universal.js +3 -1
- package/build/internal/cjs/src/benefit-programs-v1-balance-balances.universal.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-balance-balances.types.d.ts +21 -5
- package/build/internal/es/src/benefit-programs-v1-balance-balances.types.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-balance-balances.universal.d.ts +22 -6
- package/build/internal/es/src/benefit-programs-v1-balance-balances.universal.js +3 -1
- package/build/internal/es/src/benefit-programs-v1-balance-balances.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -95,6 +95,8 @@ export declare enum IdentityType {
|
|
|
95
95
|
/** A Wix account holder, such as a site owner or contributor. */
|
|
96
96
|
WIX_USER = "WIX_USER"
|
|
97
97
|
}
|
|
98
|
+
/** @enumType */
|
|
99
|
+
export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
|
|
98
100
|
export interface BalanceAmount {
|
|
99
101
|
/**
|
|
100
102
|
* number of available credits.
|
|
@@ -131,12 +133,14 @@ export interface PoolInfo {
|
|
|
131
133
|
/**
|
|
132
134
|
* Available credits.
|
|
133
135
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
136
|
+
* @readonly
|
|
134
137
|
*/
|
|
135
138
|
creditAmount?: string | null;
|
|
136
139
|
/**
|
|
137
140
|
* 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.
|
|
138
141
|
* @minLength 1
|
|
139
142
|
* @maxLength 50
|
|
143
|
+
* @readonly
|
|
140
144
|
*/
|
|
141
145
|
namespace?: string | null;
|
|
142
146
|
}
|
|
@@ -256,7 +260,7 @@ export interface Sorting {
|
|
|
256
260
|
*
|
|
257
261
|
* Default: `ASC`
|
|
258
262
|
*/
|
|
259
|
-
order?:
|
|
263
|
+
order?: SortOrderWithLiterals;
|
|
260
264
|
}
|
|
261
265
|
export declare enum SortOrder {
|
|
262
266
|
/** Ascending sort order. */
|
|
@@ -264,6 +268,8 @@ export declare enum SortOrder {
|
|
|
264
268
|
/** Descending sort order. */
|
|
265
269
|
DESC = "DESC"
|
|
266
270
|
}
|
|
271
|
+
/** @enumType */
|
|
272
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
267
273
|
export interface QueryBalancesResponse {
|
|
268
274
|
/** List of retrieved balances. */
|
|
269
275
|
balances?: Balance[];
|
|
@@ -289,7 +295,7 @@ export interface BalanceChangeBalanceRequest extends BalanceChangeBalanceRequest
|
|
|
289
295
|
/** Identity changing the balance. */
|
|
290
296
|
instructingParty?: CommonIdentificationData;
|
|
291
297
|
/** Balance change type. */
|
|
292
|
-
type?:
|
|
298
|
+
type?: ChangeBalanceRequestTypeWithLiterals;
|
|
293
299
|
/** Details to send to the transaction created from this balance change. */
|
|
294
300
|
transactionDetails?: TransactionDetails;
|
|
295
301
|
}
|
|
@@ -308,6 +314,8 @@ export declare enum ChangeBalanceRequestType {
|
|
|
308
314
|
/** Use with `setOptions`. */
|
|
309
315
|
SET = "SET"
|
|
310
316
|
}
|
|
317
|
+
/** @enumType */
|
|
318
|
+
export type ChangeBalanceRequestTypeWithLiterals = ChangeBalanceRequestType | 'UNKNOWN_OPERATION' | 'ADJUST' | 'SET';
|
|
311
319
|
export interface AdjustOptions {
|
|
312
320
|
/**
|
|
313
321
|
* Amount to change the balance's available credits by.
|
|
@@ -329,6 +337,8 @@ export declare enum LimitRule {
|
|
|
329
337
|
/** If the limit is exceeded, the operation will succeed but the balance will be adjusted so that it satisfies the provided limits. If the resulting balance is below the lower_limit, it will be set to the lower_limit. If the resulting balance is above the upper_limit, it will be set to the upper_limit. */
|
|
330
338
|
HARD_ENFORCE = "HARD_ENFORCE"
|
|
331
339
|
}
|
|
340
|
+
/** @enumType */
|
|
341
|
+
export type LimitRuleWithLiterals = LimitRule | 'UNKNOWN_LIMIT_RULE' | 'FAIL' | 'SOFT_ENFORCE' | 'HARD_ENFORCE';
|
|
332
342
|
export interface SetOptions {
|
|
333
343
|
/**
|
|
334
344
|
* Amount to set the balance's available credits to.
|
|
@@ -452,6 +462,8 @@ export declare enum Type {
|
|
|
452
462
|
/** Unknown balance change type. */
|
|
453
463
|
UNKNOWN_OPERATION = "UNKNOWN_OPERATION"
|
|
454
464
|
}
|
|
465
|
+
/** @enumType */
|
|
466
|
+
export type TypeWithLiterals = Type | 'UNKNOWN_OPERATION';
|
|
455
467
|
export interface ChangeBalanceRequest extends ChangeBalanceRequestOperationOneOf {
|
|
456
468
|
/**
|
|
457
469
|
* ID of the pool associated with the balance to change. This is also the ID of the balance.
|
|
@@ -461,7 +473,7 @@ export interface ChangeBalanceRequest extends ChangeBalanceRequestOperationOneOf
|
|
|
461
473
|
/** Identity changing the balance. */
|
|
462
474
|
instructingParty?: CommonIdentificationData;
|
|
463
475
|
/** Balance change type. */
|
|
464
|
-
type?:
|
|
476
|
+
type?: TypeWithLiterals;
|
|
465
477
|
/** Details to send to the transaction created from this balance change. */
|
|
466
478
|
transactionDetails?: TransactionDetails;
|
|
467
479
|
}
|
|
@@ -566,7 +578,7 @@ export interface GetTransactionReversibilityRequest {
|
|
|
566
578
|
}
|
|
567
579
|
export interface GetTransactionReversibilityResponse {
|
|
568
580
|
/** The result of transaction reversibility validation */
|
|
569
|
-
transactionReversibility?:
|
|
581
|
+
transactionReversibility?: TransactionReversibilityWithLiterals;
|
|
570
582
|
}
|
|
571
583
|
/** Transaction reversibility results */
|
|
572
584
|
export declare enum TransactionReversibility {
|
|
@@ -575,6 +587,8 @@ export declare enum TransactionReversibility {
|
|
|
575
587
|
/** Transaction isn't allowed to be reverted, because it was already reverted */
|
|
576
588
|
TRANSACTION_ALREADY_REVERSED = "TRANSACTION_ALREADY_REVERSED"
|
|
577
589
|
}
|
|
590
|
+
/** @enumType */
|
|
591
|
+
export type TransactionReversibilityWithLiterals = TransactionReversibility | 'TRANSACTION_IS_REVERSIBLE' | 'TRANSACTION_ALREADY_REVERSED';
|
|
578
592
|
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
579
593
|
createdEvent?: EntityCreatedEvent;
|
|
580
594
|
updatedEvent?: EntityUpdatedEvent;
|
|
@@ -677,7 +691,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
677
691
|
*/
|
|
678
692
|
appId?: string;
|
|
679
693
|
/** @readonly */
|
|
680
|
-
identityType?:
|
|
694
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
681
695
|
}
|
|
682
696
|
/** @oneof */
|
|
683
697
|
export interface IdentificationDataIdOneOf {
|
|
@@ -709,3 +723,5 @@ export declare enum WebhookIdentityType {
|
|
|
709
723
|
WIX_USER = "WIX_USER",
|
|
710
724
|
APP = "APP"
|
|
711
725
|
}
|
|
726
|
+
/** @enumType */
|
|
727
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-balance-balances.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-balance-balances.types.ts"],"names":[],"mappings":";;;AA2FA,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;
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-balance-balances.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-balance-balances.types.ts"],"names":[],"mappings":";;;AA2FA,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;AA6LD,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AA6CD,IAAY,wBAOX;AAPD,WAAY,wBAAwB;IAClC,mCAAmC;IACnC,mEAAuC,CAAA;IACvC,gCAAgC;IAChC,6CAAiB,CAAA;IACjB,6BAA6B;IAC7B,uCAAW,CAAA;AACb,CAAC,EAPW,wBAAwB,wCAAxB,wBAAwB,QAOnC;AAqBD,IAAY,SASX;AATD,WAAY,SAAS;IACnB,yBAAyB;IACzB,sDAAyC,CAAA;IACzC,wDAAwD;IACxD,0BAAa,CAAA;IACb,mMAAmM;IACnM,0CAA6B,CAAA;IAC7B,kTAAkT;IAClT,0CAA6B,CAAA;AAC/B,CAAC,EATW,SAAS,yBAAT,SAAS,QASpB;AAwID,IAAY,IAGX;AAHD,WAAY,IAAI;IACd,mCAAmC;IACnC,+CAAuC,CAAA;AACzC,CAAC,EAHW,IAAI,oBAAJ,IAAI,QAGf;AAsID,wCAAwC;AACxC,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,4CAA4C;IAC5C,mFAAuD,CAAA;IACvD,gFAAgF;IAChF,yFAA6D,CAAA;AAC/D,CAAC,EALW,wBAAwB,wCAAxB,wBAAwB,QAKnC;AAiJD,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"}
|
|
@@ -96,6 +96,8 @@ export declare enum IdentityType {
|
|
|
96
96
|
/** A Wix account holder, such as a site owner or contributor. */
|
|
97
97
|
WIX_USER = "WIX_USER"
|
|
98
98
|
}
|
|
99
|
+
/** @enumType */
|
|
100
|
+
export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
|
|
99
101
|
export interface BalanceAmount {
|
|
100
102
|
/**
|
|
101
103
|
* number of available credits.
|
|
@@ -132,12 +134,14 @@ export interface PoolInfo {
|
|
|
132
134
|
/**
|
|
133
135
|
* Available credits.
|
|
134
136
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
137
|
+
* @readonly
|
|
135
138
|
*/
|
|
136
139
|
creditAmount?: string | null;
|
|
137
140
|
/**
|
|
138
141
|
* 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.
|
|
139
142
|
* @minLength 1
|
|
140
143
|
* @maxLength 50
|
|
144
|
+
* @readonly
|
|
141
145
|
*/
|
|
142
146
|
namespace?: string | null;
|
|
143
147
|
}
|
|
@@ -257,7 +261,7 @@ export interface Sorting {
|
|
|
257
261
|
*
|
|
258
262
|
* Default: `ASC`
|
|
259
263
|
*/
|
|
260
|
-
order?:
|
|
264
|
+
order?: SortOrderWithLiterals;
|
|
261
265
|
}
|
|
262
266
|
export declare enum SortOrder {
|
|
263
267
|
/** Ascending sort order. */
|
|
@@ -265,6 +269,8 @@ export declare enum SortOrder {
|
|
|
265
269
|
/** Descending sort order. */
|
|
266
270
|
DESC = "DESC"
|
|
267
271
|
}
|
|
272
|
+
/** @enumType */
|
|
273
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
268
274
|
export interface QueryBalancesResponse {
|
|
269
275
|
/** List of retrieved balances. */
|
|
270
276
|
balances?: Balance[];
|
|
@@ -290,7 +296,7 @@ export interface BalanceChangeBalanceRequest extends BalanceChangeBalanceRequest
|
|
|
290
296
|
/** Identity changing the balance. */
|
|
291
297
|
instructingParty?: CommonIdentificationData;
|
|
292
298
|
/** Balance change type. */
|
|
293
|
-
type?:
|
|
299
|
+
type?: ChangeBalanceRequestTypeWithLiterals;
|
|
294
300
|
/** Details to send to the transaction created from this balance change. */
|
|
295
301
|
transactionDetails?: TransactionDetails;
|
|
296
302
|
}
|
|
@@ -309,6 +315,8 @@ export declare enum ChangeBalanceRequestType {
|
|
|
309
315
|
/** Use with `setOptions`. */
|
|
310
316
|
SET = "SET"
|
|
311
317
|
}
|
|
318
|
+
/** @enumType */
|
|
319
|
+
export type ChangeBalanceRequestTypeWithLiterals = ChangeBalanceRequestType | 'UNKNOWN_OPERATION' | 'ADJUST' | 'SET';
|
|
312
320
|
export interface AdjustOptions {
|
|
313
321
|
/**
|
|
314
322
|
* Amount to change the balance's available credits by.
|
|
@@ -330,6 +338,8 @@ export declare enum LimitRule {
|
|
|
330
338
|
/** If the limit is exceeded, the operation will succeed but the balance will be adjusted so that it satisfies the provided limits. If the resulting balance is below the lower_limit, it will be set to the lower_limit. If the resulting balance is above the upper_limit, it will be set to the upper_limit. */
|
|
331
339
|
HARD_ENFORCE = "HARD_ENFORCE"
|
|
332
340
|
}
|
|
341
|
+
/** @enumType */
|
|
342
|
+
export type LimitRuleWithLiterals = LimitRule | 'UNKNOWN_LIMIT_RULE' | 'FAIL' | 'SOFT_ENFORCE' | 'HARD_ENFORCE';
|
|
333
343
|
export interface SetOptions {
|
|
334
344
|
/**
|
|
335
345
|
* Amount to set the balance's available credits to.
|
|
@@ -453,6 +463,8 @@ export declare enum Type {
|
|
|
453
463
|
/** Unknown balance change type. */
|
|
454
464
|
UNKNOWN_OPERATION = "UNKNOWN_OPERATION"
|
|
455
465
|
}
|
|
466
|
+
/** @enumType */
|
|
467
|
+
export type TypeWithLiterals = Type | 'UNKNOWN_OPERATION';
|
|
456
468
|
export interface ChangeBalanceRequest extends ChangeBalanceRequestOperationOneOf {
|
|
457
469
|
/**
|
|
458
470
|
* ID of the pool associated with the balance to change. This is also the ID of the balance.
|
|
@@ -462,7 +474,7 @@ export interface ChangeBalanceRequest extends ChangeBalanceRequestOperationOneOf
|
|
|
462
474
|
/** Identity changing the balance. */
|
|
463
475
|
instructingParty?: CommonIdentificationData;
|
|
464
476
|
/** Balance change type. */
|
|
465
|
-
type?:
|
|
477
|
+
type?: TypeWithLiterals;
|
|
466
478
|
/** Details to send to the transaction created from this balance change. */
|
|
467
479
|
transactionDetails?: TransactionDetails;
|
|
468
480
|
}
|
|
@@ -567,7 +579,7 @@ export interface GetTransactionReversibilityRequest {
|
|
|
567
579
|
}
|
|
568
580
|
export interface GetTransactionReversibilityResponse {
|
|
569
581
|
/** The result of transaction reversibility validation */
|
|
570
|
-
transactionReversibility?:
|
|
582
|
+
transactionReversibility?: TransactionReversibilityWithLiterals;
|
|
571
583
|
}
|
|
572
584
|
/** Transaction reversibility results */
|
|
573
585
|
export declare enum TransactionReversibility {
|
|
@@ -576,6 +588,8 @@ export declare enum TransactionReversibility {
|
|
|
576
588
|
/** Transaction isn't allowed to be reverted, because it was already reverted */
|
|
577
589
|
TRANSACTION_ALREADY_REVERSED = "TRANSACTION_ALREADY_REVERSED"
|
|
578
590
|
}
|
|
591
|
+
/** @enumType */
|
|
592
|
+
export type TransactionReversibilityWithLiterals = TransactionReversibility | 'TRANSACTION_IS_REVERSIBLE' | 'TRANSACTION_ALREADY_REVERSED';
|
|
579
593
|
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
580
594
|
createdEvent?: EntityCreatedEvent;
|
|
581
595
|
updatedEvent?: EntityUpdatedEvent;
|
|
@@ -676,7 +690,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
676
690
|
*/
|
|
677
691
|
appId?: string;
|
|
678
692
|
/** @readonly */
|
|
679
|
-
identityType?:
|
|
693
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
680
694
|
}
|
|
681
695
|
/** @oneof */
|
|
682
696
|
export interface IdentificationDataIdOneOf {
|
|
@@ -708,6 +722,8 @@ export declare enum WebhookIdentityType {
|
|
|
708
722
|
WIX_USER = "WIX_USER",
|
|
709
723
|
APP = "APP"
|
|
710
724
|
}
|
|
725
|
+
/** @enumType */
|
|
726
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
711
727
|
type BalanceNonNullablePaths = `_id` | `beneficiary.anonymousVisitorId` | `beneficiary.memberId` | `beneficiary.wixUserId` | `amount.available` | `poolInfo._id`;
|
|
712
728
|
/**
|
|
713
729
|
* Retrieves a balance.
|
|
@@ -881,7 +897,7 @@ export interface ChangeBalanceOptions extends ChangeBalanceOptionsOperationOneOf
|
|
|
881
897
|
/** Identity changing the balance. */
|
|
882
898
|
instructingParty?: CommonIdentificationData;
|
|
883
899
|
/** Balance change type. */
|
|
884
|
-
type?:
|
|
900
|
+
type?: ChangeBalanceRequestTypeWithLiterals;
|
|
885
901
|
/** Adjust the balance by a specific number of credits. */
|
|
886
902
|
adjustOptions?: AdjustOptions;
|
|
887
903
|
/** Set the balance to a specific number of credits. */
|
|
@@ -28,6 +28,8 @@ const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
|
28
28
|
const query_builder_1 = require("@wix/sdk-runtime/query-builder");
|
|
29
29
|
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
30
30
|
const ambassadorWixBenefitProgramsV1Balance = __importStar(require("./benefit-programs-v1-balance-balances.http.js"));
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
31
33
|
var IdentityType;
|
|
32
34
|
(function (IdentityType) {
|
|
33
35
|
/** Unknown type. This value is not used. */
|
|
@@ -217,7 +219,7 @@ function queryBalances() {
|
|
|
217
219
|
});
|
|
218
220
|
},
|
|
219
221
|
responseTransformer: ({ data }) => {
|
|
220
|
-
const transformedData = (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(data);
|
|
222
|
+
const transformedData = (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(data, []));
|
|
221
223
|
return {
|
|
222
224
|
items: transformedData?.balances,
|
|
223
225
|
pagingMetadata: transformedData?.metadata,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-balance-balances.universal.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-balance-balances.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,sHAAwG;
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-balance-balances.universal.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-balance-balances.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,sHAAw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USER"
|
|
97
97
|
}
|
|
98
|
+
/** @enumType */
|
|
99
|
+
export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
|
|
98
100
|
export interface BalanceAmount {
|
|
99
101
|
/**
|
|
100
102
|
* number of available credits.
|
|
@@ -131,12 +133,14 @@ export interface PoolInfo {
|
|
|
131
133
|
/**
|
|
132
134
|
* Available credits.
|
|
133
135
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
136
|
+
* @readonly
|
|
134
137
|
*/
|
|
135
138
|
creditAmount?: string | null;
|
|
136
139
|
/**
|
|
137
140
|
* 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.
|
|
138
141
|
* @minLength 1
|
|
139
142
|
* @maxLength 50
|
|
143
|
+
* @readonly
|
|
140
144
|
*/
|
|
141
145
|
namespace?: string | null;
|
|
142
146
|
}
|
|
@@ -256,7 +260,7 @@ export interface Sorting {
|
|
|
256
260
|
*
|
|
257
261
|
* Default: `ASC`
|
|
258
262
|
*/
|
|
259
|
-
order?:
|
|
263
|
+
order?: SortOrderWithLiterals;
|
|
260
264
|
}
|
|
261
265
|
export declare enum SortOrder {
|
|
262
266
|
/** Ascending sort order. */
|
|
@@ -264,6 +268,8 @@ export declare enum SortOrder {
|
|
|
264
268
|
/** Descending sort order. */
|
|
265
269
|
DESC = "DESC"
|
|
266
270
|
}
|
|
271
|
+
/** @enumType */
|
|
272
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
267
273
|
export interface QueryBalancesResponse {
|
|
268
274
|
/** List of retrieved balances. */
|
|
269
275
|
balances?: Balance[];
|
|
@@ -289,7 +295,7 @@ export interface BalanceChangeBalanceRequest extends BalanceChangeBalanceRequest
|
|
|
289
295
|
/** Identity changing the balance. */
|
|
290
296
|
instructingParty?: CommonIdentificationData;
|
|
291
297
|
/** Balance change type. */
|
|
292
|
-
type?:
|
|
298
|
+
type?: ChangeBalanceRequestTypeWithLiterals;
|
|
293
299
|
/** Details to send to the transaction created from this balance change. */
|
|
294
300
|
transactionDetails?: TransactionDetails;
|
|
295
301
|
}
|
|
@@ -308,6 +314,8 @@ export declare enum ChangeBalanceRequestType {
|
|
|
308
314
|
/** Use with `setOptions`. */
|
|
309
315
|
SET = "SET"
|
|
310
316
|
}
|
|
317
|
+
/** @enumType */
|
|
318
|
+
export type ChangeBalanceRequestTypeWithLiterals = ChangeBalanceRequestType | 'UNKNOWN_OPERATION' | 'ADJUST' | 'SET';
|
|
311
319
|
export interface AdjustOptions {
|
|
312
320
|
/**
|
|
313
321
|
* Amount to change the balance's available credits by.
|
|
@@ -329,6 +337,8 @@ export declare enum LimitRule {
|
|
|
329
337
|
/** If the limit is exceeded, the operation will succeed but the balance will be adjusted so that it satisfies the provided limits. If the resulting balance is below the lower_limit, it will be set to the lower_limit. If the resulting balance is above the upper_limit, it will be set to the upper_limit. */
|
|
330
338
|
HARD_ENFORCE = "HARD_ENFORCE"
|
|
331
339
|
}
|
|
340
|
+
/** @enumType */
|
|
341
|
+
export type LimitRuleWithLiterals = LimitRule | 'UNKNOWN_LIMIT_RULE' | 'FAIL' | 'SOFT_ENFORCE' | 'HARD_ENFORCE';
|
|
332
342
|
export interface SetOptions {
|
|
333
343
|
/**
|
|
334
344
|
* Amount to set the balance's available credits to.
|
|
@@ -452,6 +462,8 @@ export declare enum Type {
|
|
|
452
462
|
/** Unknown balance change type. */
|
|
453
463
|
UNKNOWN_OPERATION = "UNKNOWN_OPERATION"
|
|
454
464
|
}
|
|
465
|
+
/** @enumType */
|
|
466
|
+
export type TypeWithLiterals = Type | 'UNKNOWN_OPERATION';
|
|
455
467
|
export interface ChangeBalanceRequest extends ChangeBalanceRequestOperationOneOf {
|
|
456
468
|
/**
|
|
457
469
|
* ID of the pool associated with the balance to change. This is also the ID of the balance.
|
|
@@ -461,7 +473,7 @@ export interface ChangeBalanceRequest extends ChangeBalanceRequestOperationOneOf
|
|
|
461
473
|
/** Identity changing the balance. */
|
|
462
474
|
instructingParty?: CommonIdentificationData;
|
|
463
475
|
/** Balance change type. */
|
|
464
|
-
type?:
|
|
476
|
+
type?: TypeWithLiterals;
|
|
465
477
|
/** Details to send to the transaction created from this balance change. */
|
|
466
478
|
transactionDetails?: TransactionDetails;
|
|
467
479
|
}
|
|
@@ -566,7 +578,7 @@ export interface GetTransactionReversibilityRequest {
|
|
|
566
578
|
}
|
|
567
579
|
export interface GetTransactionReversibilityResponse {
|
|
568
580
|
/** The result of transaction reversibility validation */
|
|
569
|
-
transactionReversibility?:
|
|
581
|
+
transactionReversibility?: TransactionReversibilityWithLiterals;
|
|
570
582
|
}
|
|
571
583
|
/** Transaction reversibility results */
|
|
572
584
|
export declare enum TransactionReversibility {
|
|
@@ -575,6 +587,8 @@ export declare enum TransactionReversibility {
|
|
|
575
587
|
/** Transaction isn't allowed to be reverted, because it was already reverted */
|
|
576
588
|
TRANSACTION_ALREADY_REVERSED = "TRANSACTION_ALREADY_REVERSED"
|
|
577
589
|
}
|
|
590
|
+
/** @enumType */
|
|
591
|
+
export type TransactionReversibilityWithLiterals = TransactionReversibility | 'TRANSACTION_IS_REVERSIBLE' | 'TRANSACTION_ALREADY_REVERSED';
|
|
578
592
|
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
579
593
|
createdEvent?: EntityCreatedEvent;
|
|
580
594
|
updatedEvent?: EntityUpdatedEvent;
|
|
@@ -677,7 +691,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
677
691
|
*/
|
|
678
692
|
appId?: string;
|
|
679
693
|
/** @readonly */
|
|
680
|
-
identityType?:
|
|
694
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
681
695
|
}
|
|
682
696
|
/** @oneof */
|
|
683
697
|
export interface IdentificationDataIdOneOf {
|
|
@@ -709,3 +723,5 @@ export declare enum WebhookIdentityType {
|
|
|
709
723
|
WIX_USER = "WIX_USER",
|
|
710
724
|
APP = "APP"
|
|
711
725
|
}
|
|
726
|
+
/** @enumType */
|
|
727
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-balance-balances.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-balance-balances.types.ts"],"names":[],"mappings":"AA2FA,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;
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-balance-balances.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-balance-balances.types.ts"],"names":[],"mappings":"AA2FA,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;AA6LD,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AA6CD,MAAM,CAAN,IAAY,wBAOX;AAPD,WAAY,wBAAwB;IAClC,mCAAmC;IACnC,mEAAuC,CAAA;IACvC,gCAAgC;IAChC,6CAAiB,CAAA;IACjB,6BAA6B;IAC7B,uCAAW,CAAA;AACb,CAAC,EAPW,wBAAwB,KAAxB,wBAAwB,QAOnC;AAqBD,MAAM,CAAN,IAAY,SASX;AATD,WAAY,SAAS;IACnB,yBAAyB;IACzB,sDAAyC,CAAA;IACzC,wDAAwD;IACxD,0BAAa,CAAA;IACb,mMAAmM;IACnM,0CAA6B,CAAA;IAC7B,kTAAkT;IAClT,0CAA6B,CAAA;AAC/B,CAAC,EATW,SAAS,KAAT,SAAS,QASpB;AAwID,MAAM,CAAN,IAAY,IAGX;AAHD,WAAY,IAAI;IACd,mCAAmC;IACnC,+CAAuC,CAAA;AACzC,CAAC,EAHW,IAAI,KAAJ,IAAI,QAGf;AAsID,wCAAwC;AACxC,MAAM,CAAN,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,4CAA4C;IAC5C,mFAAuD,CAAA;IACvD,gFAAgF;IAChF,yFAA6D,CAAA;AAC/D,CAAC,EALW,wBAAwB,KAAxB,wBAAwB,QAKnC;AAiJD,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"}
|
|
@@ -96,6 +96,8 @@ export declare enum IdentityType {
|
|
|
96
96
|
/** A Wix account holder, such as a site owner or contributor. */
|
|
97
97
|
WIX_USER = "WIX_USER"
|
|
98
98
|
}
|
|
99
|
+
/** @enumType */
|
|
100
|
+
export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
|
|
99
101
|
export interface BalanceAmount {
|
|
100
102
|
/**
|
|
101
103
|
* number of available credits.
|
|
@@ -132,12 +134,14 @@ export interface PoolInfo {
|
|
|
132
134
|
/**
|
|
133
135
|
* Available credits.
|
|
134
136
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
137
|
+
* @readonly
|
|
135
138
|
*/
|
|
136
139
|
creditAmount?: string | null;
|
|
137
140
|
/**
|
|
138
141
|
* 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.
|
|
139
142
|
* @minLength 1
|
|
140
143
|
* @maxLength 50
|
|
144
|
+
* @readonly
|
|
141
145
|
*/
|
|
142
146
|
namespace?: string | null;
|
|
143
147
|
}
|
|
@@ -257,7 +261,7 @@ export interface Sorting {
|
|
|
257
261
|
*
|
|
258
262
|
* Default: `ASC`
|
|
259
263
|
*/
|
|
260
|
-
order?:
|
|
264
|
+
order?: SortOrderWithLiterals;
|
|
261
265
|
}
|
|
262
266
|
export declare enum SortOrder {
|
|
263
267
|
/** Ascending sort order. */
|
|
@@ -265,6 +269,8 @@ export declare enum SortOrder {
|
|
|
265
269
|
/** Descending sort order. */
|
|
266
270
|
DESC = "DESC"
|
|
267
271
|
}
|
|
272
|
+
/** @enumType */
|
|
273
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
268
274
|
export interface QueryBalancesResponse {
|
|
269
275
|
/** List of retrieved balances. */
|
|
270
276
|
balances?: Balance[];
|
|
@@ -290,7 +296,7 @@ export interface BalanceChangeBalanceRequest extends BalanceChangeBalanceRequest
|
|
|
290
296
|
/** Identity changing the balance. */
|
|
291
297
|
instructingParty?: CommonIdentificationData;
|
|
292
298
|
/** Balance change type. */
|
|
293
|
-
type?:
|
|
299
|
+
type?: ChangeBalanceRequestTypeWithLiterals;
|
|
294
300
|
/** Details to send to the transaction created from this balance change. */
|
|
295
301
|
transactionDetails?: TransactionDetails;
|
|
296
302
|
}
|
|
@@ -309,6 +315,8 @@ export declare enum ChangeBalanceRequestType {
|
|
|
309
315
|
/** Use with `setOptions`. */
|
|
310
316
|
SET = "SET"
|
|
311
317
|
}
|
|
318
|
+
/** @enumType */
|
|
319
|
+
export type ChangeBalanceRequestTypeWithLiterals = ChangeBalanceRequestType | 'UNKNOWN_OPERATION' | 'ADJUST' | 'SET';
|
|
312
320
|
export interface AdjustOptions {
|
|
313
321
|
/**
|
|
314
322
|
* Amount to change the balance's available credits by.
|
|
@@ -330,6 +338,8 @@ export declare enum LimitRule {
|
|
|
330
338
|
/** If the limit is exceeded, the operation will succeed but the balance will be adjusted so that it satisfies the provided limits. If the resulting balance is below the lower_limit, it will be set to the lower_limit. If the resulting balance is above the upper_limit, it will be set to the upper_limit. */
|
|
331
339
|
HARD_ENFORCE = "HARD_ENFORCE"
|
|
332
340
|
}
|
|
341
|
+
/** @enumType */
|
|
342
|
+
export type LimitRuleWithLiterals = LimitRule | 'UNKNOWN_LIMIT_RULE' | 'FAIL' | 'SOFT_ENFORCE' | 'HARD_ENFORCE';
|
|
333
343
|
export interface SetOptions {
|
|
334
344
|
/**
|
|
335
345
|
* Amount to set the balance's available credits to.
|
|
@@ -453,6 +463,8 @@ export declare enum Type {
|
|
|
453
463
|
/** Unknown balance change type. */
|
|
454
464
|
UNKNOWN_OPERATION = "UNKNOWN_OPERATION"
|
|
455
465
|
}
|
|
466
|
+
/** @enumType */
|
|
467
|
+
export type TypeWithLiterals = Type | 'UNKNOWN_OPERATION';
|
|
456
468
|
export interface ChangeBalanceRequest extends ChangeBalanceRequestOperationOneOf {
|
|
457
469
|
/**
|
|
458
470
|
* ID of the pool associated with the balance to change. This is also the ID of the balance.
|
|
@@ -462,7 +474,7 @@ export interface ChangeBalanceRequest extends ChangeBalanceRequestOperationOneOf
|
|
|
462
474
|
/** Identity changing the balance. */
|
|
463
475
|
instructingParty?: CommonIdentificationData;
|
|
464
476
|
/** Balance change type. */
|
|
465
|
-
type?:
|
|
477
|
+
type?: TypeWithLiterals;
|
|
466
478
|
/** Details to send to the transaction created from this balance change. */
|
|
467
479
|
transactionDetails?: TransactionDetails;
|
|
468
480
|
}
|
|
@@ -567,7 +579,7 @@ export interface GetTransactionReversibilityRequest {
|
|
|
567
579
|
}
|
|
568
580
|
export interface GetTransactionReversibilityResponse {
|
|
569
581
|
/** The result of transaction reversibility validation */
|
|
570
|
-
transactionReversibility?:
|
|
582
|
+
transactionReversibility?: TransactionReversibilityWithLiterals;
|
|
571
583
|
}
|
|
572
584
|
/** Transaction reversibility results */
|
|
573
585
|
export declare enum TransactionReversibility {
|
|
@@ -576,6 +588,8 @@ export declare enum TransactionReversibility {
|
|
|
576
588
|
/** Transaction isn't allowed to be reverted, because it was already reverted */
|
|
577
589
|
TRANSACTION_ALREADY_REVERSED = "TRANSACTION_ALREADY_REVERSED"
|
|
578
590
|
}
|
|
591
|
+
/** @enumType */
|
|
592
|
+
export type TransactionReversibilityWithLiterals = TransactionReversibility | 'TRANSACTION_IS_REVERSIBLE' | 'TRANSACTION_ALREADY_REVERSED';
|
|
579
593
|
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
580
594
|
createdEvent?: EntityCreatedEvent;
|
|
581
595
|
updatedEvent?: EntityUpdatedEvent;
|
|
@@ -676,7 +690,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
676
690
|
*/
|
|
677
691
|
appId?: string;
|
|
678
692
|
/** @readonly */
|
|
679
|
-
identityType?:
|
|
693
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
680
694
|
}
|
|
681
695
|
/** @oneof */
|
|
682
696
|
export interface IdentificationDataIdOneOf {
|
|
@@ -708,6 +722,8 @@ export declare enum WebhookIdentityType {
|
|
|
708
722
|
WIX_USER = "WIX_USER",
|
|
709
723
|
APP = "APP"
|
|
710
724
|
}
|
|
725
|
+
/** @enumType */
|
|
726
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
711
727
|
type BalanceNonNullablePaths = `_id` | `beneficiary.anonymousVisitorId` | `beneficiary.memberId` | `beneficiary.wixUserId` | `amount.available` | `poolInfo._id`;
|
|
712
728
|
/**
|
|
713
729
|
* Retrieves a balance.
|
|
@@ -881,7 +897,7 @@ export interface ChangeBalanceOptions extends ChangeBalanceOptionsOperationOneOf
|
|
|
881
897
|
/** Identity changing the balance. */
|
|
882
898
|
instructingParty?: CommonIdentificationData;
|
|
883
899
|
/** Balance change type. */
|
|
884
|
-
type?:
|
|
900
|
+
type?: ChangeBalanceRequestTypeWithLiterals;
|
|
885
901
|
/** Adjust the balance by a specific number of credits. */
|
|
886
902
|
adjustOptions?: AdjustOptions;
|
|
887
903
|
/** Set the balance to a specific number of credits. */
|
|
@@ -2,6 +2,8 @@ import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-
|
|
|
2
2
|
import { queryBuilder } from '@wix/sdk-runtime/query-builder';
|
|
3
3
|
import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
4
4
|
import * as ambassadorWixBenefitProgramsV1Balance from './benefit-programs-v1-balance-balances.http.js';
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
5
7
|
export var IdentityType;
|
|
6
8
|
(function (IdentityType) {
|
|
7
9
|
/** Unknown type. This value is not used. */
|
|
@@ -189,7 +191,7 @@ export function queryBalances() {
|
|
|
189
191
|
});
|
|
190
192
|
},
|
|
191
193
|
responseTransformer: ({ data }) => {
|
|
192
|
-
const transformedData = renameKeysFromRESTResponseToSDKResponse(data);
|
|
194
|
+
const transformedData = renameKeysFromRESTResponseToSDKResponse(transformPaths(data, []));
|
|
193
195
|
return {
|
|
194
196
|
items: transformedData?.balances,
|
|
195
197
|
pagingMetadata: transformedData?.metadata,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-balance-balances.universal.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-balance-balances.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,qCAAqC,MAAM,gDAAgD,CAAC;
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-balance-balances.universal.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-balance-balances.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,qCAAqC,MAAM,gDAAgD,CAAC;AACxG,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AA6FlF,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;AA6LD,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AA6CD,MAAM,CAAN,IAAY,wBAOX;AAPD,WAAY,wBAAwB;IAClC,mCAAmC;IACnC,mEAAuC,CAAA;IACvC,gCAAgC;IAChC,6CAAiB,CAAA;IACjB,6BAA6B;IAC7B,uCAAW,CAAA;AACb,CAAC,EAPW,wBAAwB,KAAxB,wBAAwB,QAOnC;AAqBD,MAAM,CAAN,IAAY,SASX;AATD,WAAY,SAAS;IACnB,yBAAyB;IACzB,sDAAyC,CAAA;IACzC,wDAAwD;IACxD,0BAAa,CAAA;IACb,mMAAmM;IACnM,0CAA6B,CAAA;IAC7B,kTAAkT;IAClT,0CAA6B,CAA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gBACrB,cAAc,EAAE,MAAM;gBACtB,gBAAgB,EAAE,uBAAuB;aAC1C;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,eAAe,EAAE,gBAAgB,EAAE,SAAS,CAAC,CAC/C,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
|
|
@@ -95,6 +95,8 @@ export declare enum IdentityType {
|
|
|
95
95
|
/** A Wix account holder, such as a site owner or contributor. */
|
|
96
96
|
WIX_USER = "WIX_USER"
|
|
97
97
|
}
|
|
98
|
+
/** @enumType */
|
|
99
|
+
export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
|
|
98
100
|
export interface BalanceAmount {
|
|
99
101
|
/**
|
|
100
102
|
* number of available credits.
|
|
@@ -131,12 +133,14 @@ export interface PoolInfo {
|
|
|
131
133
|
/**
|
|
132
134
|
* Available credits.
|
|
133
135
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
136
|
+
* @readonly
|
|
134
137
|
*/
|
|
135
138
|
creditAmount?: string | null;
|
|
136
139
|
/**
|
|
137
140
|
* 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.
|
|
138
141
|
* @minLength 1
|
|
139
142
|
* @maxLength 50
|
|
143
|
+
* @readonly
|
|
140
144
|
*/
|
|
141
145
|
namespace?: string | null;
|
|
142
146
|
}
|
|
@@ -256,7 +260,7 @@ export interface Sorting {
|
|
|
256
260
|
*
|
|
257
261
|
* Default: `ASC`
|
|
258
262
|
*/
|
|
259
|
-
order?:
|
|
263
|
+
order?: SortOrderWithLiterals;
|
|
260
264
|
}
|
|
261
265
|
export declare enum SortOrder {
|
|
262
266
|
/** Ascending sort order. */
|
|
@@ -264,6 +268,8 @@ export declare enum SortOrder {
|
|
|
264
268
|
/** Descending sort order. */
|
|
265
269
|
DESC = "DESC"
|
|
266
270
|
}
|
|
271
|
+
/** @enumType */
|
|
272
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
267
273
|
export interface QueryBalancesResponse {
|
|
268
274
|
/** List of retrieved balances. */
|
|
269
275
|
balances?: Balance[];
|
|
@@ -289,7 +295,7 @@ export interface BalanceChangeBalanceRequest extends BalanceChangeBalanceRequest
|
|
|
289
295
|
/** Identity changing the balance. */
|
|
290
296
|
instructingParty?: CommonIdentificationData;
|
|
291
297
|
/** Balance change type. */
|
|
292
|
-
type?:
|
|
298
|
+
type?: ChangeBalanceRequestTypeWithLiterals;
|
|
293
299
|
/** Details to send to the transaction created from this balance change. */
|
|
294
300
|
transactionDetails?: TransactionDetails;
|
|
295
301
|
}
|
|
@@ -308,6 +314,8 @@ export declare enum ChangeBalanceRequestType {
|
|
|
308
314
|
/** Use with `setOptions`. */
|
|
309
315
|
SET = "SET"
|
|
310
316
|
}
|
|
317
|
+
/** @enumType */
|
|
318
|
+
export type ChangeBalanceRequestTypeWithLiterals = ChangeBalanceRequestType | 'UNKNOWN_OPERATION' | 'ADJUST' | 'SET';
|
|
311
319
|
export interface AdjustOptions {
|
|
312
320
|
/**
|
|
313
321
|
* Amount to change the balance's available credits by.
|
|
@@ -329,6 +337,8 @@ export declare enum LimitRule {
|
|
|
329
337
|
/** If the limit is exceeded, the operation will succeed but the balance will be adjusted so that it satisfies the provided limits. If the resulting balance is below the lower_limit, it will be set to the lower_limit. If the resulting balance is above the upper_limit, it will be set to the upper_limit. */
|
|
330
338
|
HARD_ENFORCE = "HARD_ENFORCE"
|
|
331
339
|
}
|
|
340
|
+
/** @enumType */
|
|
341
|
+
export type LimitRuleWithLiterals = LimitRule | 'UNKNOWN_LIMIT_RULE' | 'FAIL' | 'SOFT_ENFORCE' | 'HARD_ENFORCE';
|
|
332
342
|
export interface SetOptions {
|
|
333
343
|
/**
|
|
334
344
|
* Amount to set the balance's available credits to.
|
|
@@ -452,6 +462,8 @@ export declare enum Type {
|
|
|
452
462
|
/** Unknown balance change type. */
|
|
453
463
|
UNKNOWN_OPERATION = "UNKNOWN_OPERATION"
|
|
454
464
|
}
|
|
465
|
+
/** @enumType */
|
|
466
|
+
export type TypeWithLiterals = Type | 'UNKNOWN_OPERATION';
|
|
455
467
|
export interface ChangeBalanceRequest extends ChangeBalanceRequestOperationOneOf {
|
|
456
468
|
/**
|
|
457
469
|
* ID of the pool associated with the balance to change. This is also the ID of the balance.
|
|
@@ -461,7 +473,7 @@ export interface ChangeBalanceRequest extends ChangeBalanceRequestOperationOneOf
|
|
|
461
473
|
/** Identity changing the balance. */
|
|
462
474
|
instructingParty?: CommonIdentificationData;
|
|
463
475
|
/** Balance change type. */
|
|
464
|
-
type?:
|
|
476
|
+
type?: TypeWithLiterals;
|
|
465
477
|
/** Details to send to the transaction created from this balance change. */
|
|
466
478
|
transactionDetails?: TransactionDetails;
|
|
467
479
|
}
|
|
@@ -566,7 +578,7 @@ export interface GetTransactionReversibilityRequest {
|
|
|
566
578
|
}
|
|
567
579
|
export interface GetTransactionReversibilityResponse {
|
|
568
580
|
/** The result of transaction reversibility validation */
|
|
569
|
-
transactionReversibility?:
|
|
581
|
+
transactionReversibility?: TransactionReversibilityWithLiterals;
|
|
570
582
|
}
|
|
571
583
|
/** Transaction reversibility results */
|
|
572
584
|
export declare enum TransactionReversibility {
|
|
@@ -575,6 +587,8 @@ export declare enum TransactionReversibility {
|
|
|
575
587
|
/** Transaction isn't allowed to be reverted, because it was already reverted */
|
|
576
588
|
TRANSACTION_ALREADY_REVERSED = "TRANSACTION_ALREADY_REVERSED"
|
|
577
589
|
}
|
|
590
|
+
/** @enumType */
|
|
591
|
+
export type TransactionReversibilityWithLiterals = TransactionReversibility | 'TRANSACTION_IS_REVERSIBLE' | 'TRANSACTION_ALREADY_REVERSED';
|
|
578
592
|
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
579
593
|
createdEvent?: EntityCreatedEvent;
|
|
580
594
|
updatedEvent?: EntityUpdatedEvent;
|
|
@@ -677,7 +691,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
677
691
|
*/
|
|
678
692
|
appId?: string;
|
|
679
693
|
/** @readonly */
|
|
680
|
-
identityType?:
|
|
694
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
681
695
|
}
|
|
682
696
|
/** @oneof */
|
|
683
697
|
export interface IdentificationDataIdOneOf {
|
|
@@ -709,3 +723,5 @@ export declare enum WebhookIdentityType {
|
|
|
709
723
|
WIX_USER = "WIX_USER",
|
|
710
724
|
APP = "APP"
|
|
711
725
|
}
|
|
726
|
+
/** @enumType */
|
|
727
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-balance-balances.types.js","sourceRoot":"","sources":["../../../../src/benefit-programs-v1-balance-balances.types.ts"],"names":[],"mappings":";;;AA2FA,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;
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-balance-balances.types.js","sourceRoot":"","sources":["../../../../src/benefit-programs-v1-balance-balances.types.ts"],"names":[],"mappings":";;;AA2FA,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;AA6LD,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AA6CD,IAAY,wBAOX;AAPD,WAAY,wBAAwB;IAClC,mCAAmC;IACnC,mEAAuC,CAAA;IACvC,gCAAgC;IAChC,6CAAiB,CAAA;IACjB,6BAA6B;IAC7B,uCAAW,CAAA;AACb,CAAC,EAPW,wBAAwB,wCAAxB,wBAAwB,QAOnC;AAqBD,IAAY,SASX;AATD,WAAY,SAAS;IACnB,yBAAyB;IACzB,sDAAyC,CAAA;IACzC,wDAAwD;IACxD,0BAAa,CAAA;IACb,mMAAmM;IACnM,0CAA6B,CAAA;IAC7B,kTAAkT;IAClT,0CAA6B,CAAA;AAC/B,CAAC,EATW,SAAS,yBAAT,SAAS,QASpB;AAwID,IAAY,IAGX;AAHD,WAAY,IAAI;IACd,mCAAmC;IACnC,+CAAuC,CAAA;AACzC,CAAC,EAHW,IAAI,oBAAJ,IAAI,QAGf;AAsID,wCAAwC;AACxC,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,4CAA4C;IAC5C,mFAAuD,CAAA;IACvD,gFAAgF;IAChF,yFAA6D,CAAA;AAC/D,CAAC,EALW,wBAAwB,wCAAxB,wBAAwB,QAKnC;AAiJD,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"}
|
|
@@ -96,6 +96,8 @@ export declare enum IdentityType {
|
|
|
96
96
|
/** A Wix account holder, such as a site owner or contributor. */
|
|
97
97
|
WIX_USER = "WIX_USER"
|
|
98
98
|
}
|
|
99
|
+
/** @enumType */
|
|
100
|
+
export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
|
|
99
101
|
export interface BalanceAmount {
|
|
100
102
|
/**
|
|
101
103
|
* number of available credits.
|
|
@@ -132,12 +134,14 @@ export interface PoolInfo {
|
|
|
132
134
|
/**
|
|
133
135
|
* Available credits.
|
|
134
136
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
137
|
+
* @readonly
|
|
135
138
|
*/
|
|
136
139
|
creditAmount?: string | null;
|
|
137
140
|
/**
|
|
138
141
|
* 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.
|
|
139
142
|
* @minLength 1
|
|
140
143
|
* @maxLength 50
|
|
144
|
+
* @readonly
|
|
141
145
|
*/
|
|
142
146
|
namespace?: string | null;
|
|
143
147
|
}
|
|
@@ -257,7 +261,7 @@ export interface Sorting {
|
|
|
257
261
|
*
|
|
258
262
|
* Default: `ASC`
|
|
259
263
|
*/
|
|
260
|
-
order?:
|
|
264
|
+
order?: SortOrderWithLiterals;
|
|
261
265
|
}
|
|
262
266
|
export declare enum SortOrder {
|
|
263
267
|
/** Ascending sort order. */
|
|
@@ -265,6 +269,8 @@ export declare enum SortOrder {
|
|
|
265
269
|
/** Descending sort order. */
|
|
266
270
|
DESC = "DESC"
|
|
267
271
|
}
|
|
272
|
+
/** @enumType */
|
|
273
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
268
274
|
export interface QueryBalancesResponse {
|
|
269
275
|
/** List of retrieved balances. */
|
|
270
276
|
balances?: Balance[];
|
|
@@ -290,7 +296,7 @@ export interface BalanceChangeBalanceRequest extends BalanceChangeBalanceRequest
|
|
|
290
296
|
/** Identity changing the balance. */
|
|
291
297
|
instructingParty?: CommonIdentificationData;
|
|
292
298
|
/** Balance change type. */
|
|
293
|
-
type?:
|
|
299
|
+
type?: ChangeBalanceRequestTypeWithLiterals;
|
|
294
300
|
/** Details to send to the transaction created from this balance change. */
|
|
295
301
|
transactionDetails?: TransactionDetails;
|
|
296
302
|
}
|
|
@@ -309,6 +315,8 @@ export declare enum ChangeBalanceRequestType {
|
|
|
309
315
|
/** Use with `setOptions`. */
|
|
310
316
|
SET = "SET"
|
|
311
317
|
}
|
|
318
|
+
/** @enumType */
|
|
319
|
+
export type ChangeBalanceRequestTypeWithLiterals = ChangeBalanceRequestType | 'UNKNOWN_OPERATION' | 'ADJUST' | 'SET';
|
|
312
320
|
export interface AdjustOptions {
|
|
313
321
|
/**
|
|
314
322
|
* Amount to change the balance's available credits by.
|
|
@@ -330,6 +338,8 @@ export declare enum LimitRule {
|
|
|
330
338
|
/** If the limit is exceeded, the operation will succeed but the balance will be adjusted so that it satisfies the provided limits. If the resulting balance is below the lower_limit, it will be set to the lower_limit. If the resulting balance is above the upper_limit, it will be set to the upper_limit. */
|
|
331
339
|
HARD_ENFORCE = "HARD_ENFORCE"
|
|
332
340
|
}
|
|
341
|
+
/** @enumType */
|
|
342
|
+
export type LimitRuleWithLiterals = LimitRule | 'UNKNOWN_LIMIT_RULE' | 'FAIL' | 'SOFT_ENFORCE' | 'HARD_ENFORCE';
|
|
333
343
|
export interface SetOptions {
|
|
334
344
|
/**
|
|
335
345
|
* Amount to set the balance's available credits to.
|
|
@@ -453,6 +463,8 @@ export declare enum Type {
|
|
|
453
463
|
/** Unknown balance change type. */
|
|
454
464
|
UNKNOWN_OPERATION = "UNKNOWN_OPERATION"
|
|
455
465
|
}
|
|
466
|
+
/** @enumType */
|
|
467
|
+
export type TypeWithLiterals = Type | 'UNKNOWN_OPERATION';
|
|
456
468
|
export interface ChangeBalanceRequest extends ChangeBalanceRequestOperationOneOf {
|
|
457
469
|
/**
|
|
458
470
|
* ID of the pool associated with the balance to change. This is also the ID of the balance.
|
|
@@ -462,7 +474,7 @@ export interface ChangeBalanceRequest extends ChangeBalanceRequestOperationOneOf
|
|
|
462
474
|
/** Identity changing the balance. */
|
|
463
475
|
instructingParty?: CommonIdentificationData;
|
|
464
476
|
/** Balance change type. */
|
|
465
|
-
type?:
|
|
477
|
+
type?: TypeWithLiterals;
|
|
466
478
|
/** Details to send to the transaction created from this balance change. */
|
|
467
479
|
transactionDetails?: TransactionDetails;
|
|
468
480
|
}
|
|
@@ -567,7 +579,7 @@ export interface GetTransactionReversibilityRequest {
|
|
|
567
579
|
}
|
|
568
580
|
export interface GetTransactionReversibilityResponse {
|
|
569
581
|
/** The result of transaction reversibility validation */
|
|
570
|
-
transactionReversibility?:
|
|
582
|
+
transactionReversibility?: TransactionReversibilityWithLiterals;
|
|
571
583
|
}
|
|
572
584
|
/** Transaction reversibility results */
|
|
573
585
|
export declare enum TransactionReversibility {
|
|
@@ -576,6 +588,8 @@ export declare enum TransactionReversibility {
|
|
|
576
588
|
/** Transaction isn't allowed to be reverted, because it was already reverted */
|
|
577
589
|
TRANSACTION_ALREADY_REVERSED = "TRANSACTION_ALREADY_REVERSED"
|
|
578
590
|
}
|
|
591
|
+
/** @enumType */
|
|
592
|
+
export type TransactionReversibilityWithLiterals = TransactionReversibility | 'TRANSACTION_IS_REVERSIBLE' | 'TRANSACTION_ALREADY_REVERSED';
|
|
579
593
|
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
580
594
|
createdEvent?: EntityCreatedEvent;
|
|
581
595
|
updatedEvent?: EntityUpdatedEvent;
|
|
@@ -676,7 +690,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
676
690
|
*/
|
|
677
691
|
appId?: string;
|
|
678
692
|
/** @readonly */
|
|
679
|
-
identityType?:
|
|
693
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
680
694
|
}
|
|
681
695
|
/** @oneof */
|
|
682
696
|
export interface IdentificationDataIdOneOf {
|
|
@@ -708,6 +722,8 @@ export declare enum WebhookIdentityType {
|
|
|
708
722
|
WIX_USER = "WIX_USER",
|
|
709
723
|
APP = "APP"
|
|
710
724
|
}
|
|
725
|
+
/** @enumType */
|
|
726
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
711
727
|
type BalanceNonNullablePaths = `_id` | `beneficiary.anonymousVisitorId` | `beneficiary.memberId` | `beneficiary.wixUserId` | `amount.available` | `poolInfo._id`;
|
|
712
728
|
/**
|
|
713
729
|
* Retrieves a balance.
|
|
@@ -881,7 +897,7 @@ export interface ChangeBalanceOptions extends ChangeBalanceOptionsOperationOneOf
|
|
|
881
897
|
/** Identity changing the balance. */
|
|
882
898
|
instructingParty?: CommonIdentificationData;
|
|
883
899
|
/** Balance change type. */
|
|
884
|
-
type?:
|
|
900
|
+
type?: ChangeBalanceRequestTypeWithLiterals;
|
|
885
901
|
/** Adjust the balance by a specific number of credits. */
|
|
886
902
|
adjustOptions?: AdjustOptions;
|
|
887
903
|
/** Set the balance to a specific number of credits. */
|
|
@@ -28,6 +28,8 @@ const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
|
28
28
|
const query_builder_1 = require("@wix/sdk-runtime/query-builder");
|
|
29
29
|
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
30
30
|
const ambassadorWixBenefitProgramsV1Balance = __importStar(require("./benefit-programs-v1-balance-balances.http.js"));
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
31
33
|
var IdentityType;
|
|
32
34
|
(function (IdentityType) {
|
|
33
35
|
/** Unknown type. This value is not used. */
|
|
@@ -217,7 +219,7 @@ function queryBalances() {
|
|
|
217
219
|
});
|
|
218
220
|
},
|
|
219
221
|
responseTransformer: ({ data }) => {
|
|
220
|
-
const transformedData = (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(data);
|
|
222
|
+
const transformedData = (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(data, []));
|
|
221
223
|
return {
|
|
222
224
|
items: transformedData?.balances,
|
|
223
225
|
pagingMetadata: transformedData?.metadata,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-balance-balances.universal.js","sourceRoot":"","sources":["../../../../src/benefit-programs-v1-balance-balances.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,sHAAwG;
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-balance-balances.universal.js","sourceRoot":"","sources":["../../../../src/benefit-programs-v1-balance-balances.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,sHAAwG;AACxG,aAAa;AACb,sFAAkF;AA6FlF,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;AA6LD,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AA6CD,IAAY,wBAOX;AAPD,WAAY,wBAAwB;IAClC,mCAAmC;IACnC,mEAAuC,CAAA;IACvC,gCAAgC;IAChC,6CAAiB,CAAA;IACjB,6BAA6B;IAC7B,uCAAW,CAAA;AACb,CAAC,EAPW,wBAAwB,wCAAxB,wBAAwB,QAOnC;AAqBD,IAAY,SASX;AATD,WAAY,SAAS;IACnB,yBAAyB;IACzB,sDAAyC,CAAA;IACzC,wDAAwD;IACxD,0BAAa,CAAA;IACb,mMAAmM;IACnM,0CAA6B,CAAA;IAC7B,kTAAkT;IAClT,0CAA6B,CAAA;AAC/B,CAAC,EATW,SAAS,yBAAT,SAAS,QASpB;A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AwB,EAAE;gBACxB,aAAa,EAAE,MAAM;gBACrB,cAAc,EAAE,MAAM;gBACtB,gBAAgB,EAAE,uBAAuB;aAC1C;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,eAAe,EAAE,gBAAgB,EAAE,SAAS,CAAC,CAC/C,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AA5CD,kDA4CC"}
|
|
@@ -95,6 +95,8 @@ export declare enum IdentityType {
|
|
|
95
95
|
/** A Wix account holder, such as a site owner or contributor. */
|
|
96
96
|
WIX_USER = "WIX_USER"
|
|
97
97
|
}
|
|
98
|
+
/** @enumType */
|
|
99
|
+
export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
|
|
98
100
|
export interface BalanceAmount {
|
|
99
101
|
/**
|
|
100
102
|
* number of available credits.
|
|
@@ -131,12 +133,14 @@ export interface PoolInfo {
|
|
|
131
133
|
/**
|
|
132
134
|
* Available credits.
|
|
133
135
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
136
|
+
* @readonly
|
|
134
137
|
*/
|
|
135
138
|
creditAmount?: string | null;
|
|
136
139
|
/**
|
|
137
140
|
* 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.
|
|
138
141
|
* @minLength 1
|
|
139
142
|
* @maxLength 50
|
|
143
|
+
* @readonly
|
|
140
144
|
*/
|
|
141
145
|
namespace?: string | null;
|
|
142
146
|
}
|
|
@@ -256,7 +260,7 @@ export interface Sorting {
|
|
|
256
260
|
*
|
|
257
261
|
* Default: `ASC`
|
|
258
262
|
*/
|
|
259
|
-
order?:
|
|
263
|
+
order?: SortOrderWithLiterals;
|
|
260
264
|
}
|
|
261
265
|
export declare enum SortOrder {
|
|
262
266
|
/** Ascending sort order. */
|
|
@@ -264,6 +268,8 @@ export declare enum SortOrder {
|
|
|
264
268
|
/** Descending sort order. */
|
|
265
269
|
DESC = "DESC"
|
|
266
270
|
}
|
|
271
|
+
/** @enumType */
|
|
272
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
267
273
|
export interface QueryBalancesResponse {
|
|
268
274
|
/** List of retrieved balances. */
|
|
269
275
|
balances?: Balance[];
|
|
@@ -289,7 +295,7 @@ export interface BalanceChangeBalanceRequest extends BalanceChangeBalanceRequest
|
|
|
289
295
|
/** Identity changing the balance. */
|
|
290
296
|
instructingParty?: CommonIdentificationData;
|
|
291
297
|
/** Balance change type. */
|
|
292
|
-
type?:
|
|
298
|
+
type?: ChangeBalanceRequestTypeWithLiterals;
|
|
293
299
|
/** Details to send to the transaction created from this balance change. */
|
|
294
300
|
transactionDetails?: TransactionDetails;
|
|
295
301
|
}
|
|
@@ -308,6 +314,8 @@ export declare enum ChangeBalanceRequestType {
|
|
|
308
314
|
/** Use with `setOptions`. */
|
|
309
315
|
SET = "SET"
|
|
310
316
|
}
|
|
317
|
+
/** @enumType */
|
|
318
|
+
export type ChangeBalanceRequestTypeWithLiterals = ChangeBalanceRequestType | 'UNKNOWN_OPERATION' | 'ADJUST' | 'SET';
|
|
311
319
|
export interface AdjustOptions {
|
|
312
320
|
/**
|
|
313
321
|
* Amount to change the balance's available credits by.
|
|
@@ -329,6 +337,8 @@ export declare enum LimitRule {
|
|
|
329
337
|
/** If the limit is exceeded, the operation will succeed but the balance will be adjusted so that it satisfies the provided limits. If the resulting balance is below the lower_limit, it will be set to the lower_limit. If the resulting balance is above the upper_limit, it will be set to the upper_limit. */
|
|
330
338
|
HARD_ENFORCE = "HARD_ENFORCE"
|
|
331
339
|
}
|
|
340
|
+
/** @enumType */
|
|
341
|
+
export type LimitRuleWithLiterals = LimitRule | 'UNKNOWN_LIMIT_RULE' | 'FAIL' | 'SOFT_ENFORCE' | 'HARD_ENFORCE';
|
|
332
342
|
export interface SetOptions {
|
|
333
343
|
/**
|
|
334
344
|
* Amount to set the balance's available credits to.
|
|
@@ -452,6 +462,8 @@ export declare enum Type {
|
|
|
452
462
|
/** Unknown balance change type. */
|
|
453
463
|
UNKNOWN_OPERATION = "UNKNOWN_OPERATION"
|
|
454
464
|
}
|
|
465
|
+
/** @enumType */
|
|
466
|
+
export type TypeWithLiterals = Type | 'UNKNOWN_OPERATION';
|
|
455
467
|
export interface ChangeBalanceRequest extends ChangeBalanceRequestOperationOneOf {
|
|
456
468
|
/**
|
|
457
469
|
* ID of the pool associated with the balance to change. This is also the ID of the balance.
|
|
@@ -461,7 +473,7 @@ export interface ChangeBalanceRequest extends ChangeBalanceRequestOperationOneOf
|
|
|
461
473
|
/** Identity changing the balance. */
|
|
462
474
|
instructingParty?: CommonIdentificationData;
|
|
463
475
|
/** Balance change type. */
|
|
464
|
-
type?:
|
|
476
|
+
type?: TypeWithLiterals;
|
|
465
477
|
/** Details to send to the transaction created from this balance change. */
|
|
466
478
|
transactionDetails?: TransactionDetails;
|
|
467
479
|
}
|
|
@@ -566,7 +578,7 @@ export interface GetTransactionReversibilityRequest {
|
|
|
566
578
|
}
|
|
567
579
|
export interface GetTransactionReversibilityResponse {
|
|
568
580
|
/** The result of transaction reversibility validation */
|
|
569
|
-
transactionReversibility?:
|
|
581
|
+
transactionReversibility?: TransactionReversibilityWithLiterals;
|
|
570
582
|
}
|
|
571
583
|
/** Transaction reversibility results */
|
|
572
584
|
export declare enum TransactionReversibility {
|
|
@@ -575,6 +587,8 @@ export declare enum TransactionReversibility {
|
|
|
575
587
|
/** Transaction isn't allowed to be reverted, because it was already reverted */
|
|
576
588
|
TRANSACTION_ALREADY_REVERSED = "TRANSACTION_ALREADY_REVERSED"
|
|
577
589
|
}
|
|
590
|
+
/** @enumType */
|
|
591
|
+
export type TransactionReversibilityWithLiterals = TransactionReversibility | 'TRANSACTION_IS_REVERSIBLE' | 'TRANSACTION_ALREADY_REVERSED';
|
|
578
592
|
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
579
593
|
createdEvent?: EntityCreatedEvent;
|
|
580
594
|
updatedEvent?: EntityUpdatedEvent;
|
|
@@ -677,7 +691,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
677
691
|
*/
|
|
678
692
|
appId?: string;
|
|
679
693
|
/** @readonly */
|
|
680
|
-
identityType?:
|
|
694
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
681
695
|
}
|
|
682
696
|
/** @oneof */
|
|
683
697
|
export interface IdentificationDataIdOneOf {
|
|
@@ -709,3 +723,5 @@ export declare enum WebhookIdentityType {
|
|
|
709
723
|
WIX_USER = "WIX_USER",
|
|
710
724
|
APP = "APP"
|
|
711
725
|
}
|
|
726
|
+
/** @enumType */
|
|
727
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-balance-balances.types.js","sourceRoot":"","sources":["../../../../src/benefit-programs-v1-balance-balances.types.ts"],"names":[],"mappings":"AA2FA,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;
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-balance-balances.types.js","sourceRoot":"","sources":["../../../../src/benefit-programs-v1-balance-balances.types.ts"],"names":[],"mappings":"AA2FA,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;AA6LD,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AA6CD,MAAM,CAAN,IAAY,wBAOX;AAPD,WAAY,wBAAwB;IAClC,mCAAmC;IACnC,mEAAuC,CAAA;IACvC,gCAAgC;IAChC,6CAAiB,CAAA;IACjB,6BAA6B;IAC7B,uCAAW,CAAA;AACb,CAAC,EAPW,wBAAwB,KAAxB,wBAAwB,QAOnC;AAqBD,MAAM,CAAN,IAAY,SASX;AATD,WAAY,SAAS;IACnB,yBAAyB;IACzB,sDAAyC,CAAA;IACzC,wDAAwD;IACxD,0BAAa,CAAA;IACb,mMAAmM;IACnM,0CAA6B,CAAA;IAC7B,kTAAkT;IAClT,0CAA6B,CAAA;AAC/B,CAAC,EATW,SAAS,KAAT,SAAS,QASpB;AAwID,MAAM,CAAN,IAAY,IAGX;AAHD,WAAY,IAAI;IACd,mCAAmC;IACnC,+CAAuC,CAAA;AACzC,CAAC,EAHW,IAAI,KAAJ,IAAI,QAGf;AAsID,wCAAwC;AACxC,MAAM,CAAN,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,4CAA4C;IAC5C,mFAAuD,CAAA;IACvD,gFAAgF;IAChF,yFAA6D,CAAA;AAC/D,CAAC,EALW,wBAAwB,KAAxB,wBAAwB,QAKnC;AAiJD,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"}
|
|
@@ -96,6 +96,8 @@ export declare enum IdentityType {
|
|
|
96
96
|
/** A Wix account holder, such as a site owner or contributor. */
|
|
97
97
|
WIX_USER = "WIX_USER"
|
|
98
98
|
}
|
|
99
|
+
/** @enumType */
|
|
100
|
+
export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
|
|
99
101
|
export interface BalanceAmount {
|
|
100
102
|
/**
|
|
101
103
|
* number of available credits.
|
|
@@ -132,12 +134,14 @@ export interface PoolInfo {
|
|
|
132
134
|
/**
|
|
133
135
|
* Available credits.
|
|
134
136
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
137
|
+
* @readonly
|
|
135
138
|
*/
|
|
136
139
|
creditAmount?: string | null;
|
|
137
140
|
/**
|
|
138
141
|
* 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.
|
|
139
142
|
* @minLength 1
|
|
140
143
|
* @maxLength 50
|
|
144
|
+
* @readonly
|
|
141
145
|
*/
|
|
142
146
|
namespace?: string | null;
|
|
143
147
|
}
|
|
@@ -257,7 +261,7 @@ export interface Sorting {
|
|
|
257
261
|
*
|
|
258
262
|
* Default: `ASC`
|
|
259
263
|
*/
|
|
260
|
-
order?:
|
|
264
|
+
order?: SortOrderWithLiterals;
|
|
261
265
|
}
|
|
262
266
|
export declare enum SortOrder {
|
|
263
267
|
/** Ascending sort order. */
|
|
@@ -265,6 +269,8 @@ export declare enum SortOrder {
|
|
|
265
269
|
/** Descending sort order. */
|
|
266
270
|
DESC = "DESC"
|
|
267
271
|
}
|
|
272
|
+
/** @enumType */
|
|
273
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
268
274
|
export interface QueryBalancesResponse {
|
|
269
275
|
/** List of retrieved balances. */
|
|
270
276
|
balances?: Balance[];
|
|
@@ -290,7 +296,7 @@ export interface BalanceChangeBalanceRequest extends BalanceChangeBalanceRequest
|
|
|
290
296
|
/** Identity changing the balance. */
|
|
291
297
|
instructingParty?: CommonIdentificationData;
|
|
292
298
|
/** Balance change type. */
|
|
293
|
-
type?:
|
|
299
|
+
type?: ChangeBalanceRequestTypeWithLiterals;
|
|
294
300
|
/** Details to send to the transaction created from this balance change. */
|
|
295
301
|
transactionDetails?: TransactionDetails;
|
|
296
302
|
}
|
|
@@ -309,6 +315,8 @@ export declare enum ChangeBalanceRequestType {
|
|
|
309
315
|
/** Use with `setOptions`. */
|
|
310
316
|
SET = "SET"
|
|
311
317
|
}
|
|
318
|
+
/** @enumType */
|
|
319
|
+
export type ChangeBalanceRequestTypeWithLiterals = ChangeBalanceRequestType | 'UNKNOWN_OPERATION' | 'ADJUST' | 'SET';
|
|
312
320
|
export interface AdjustOptions {
|
|
313
321
|
/**
|
|
314
322
|
* Amount to change the balance's available credits by.
|
|
@@ -330,6 +338,8 @@ export declare enum LimitRule {
|
|
|
330
338
|
/** If the limit is exceeded, the operation will succeed but the balance will be adjusted so that it satisfies the provided limits. If the resulting balance is below the lower_limit, it will be set to the lower_limit. If the resulting balance is above the upper_limit, it will be set to the upper_limit. */
|
|
331
339
|
HARD_ENFORCE = "HARD_ENFORCE"
|
|
332
340
|
}
|
|
341
|
+
/** @enumType */
|
|
342
|
+
export type LimitRuleWithLiterals = LimitRule | 'UNKNOWN_LIMIT_RULE' | 'FAIL' | 'SOFT_ENFORCE' | 'HARD_ENFORCE';
|
|
333
343
|
export interface SetOptions {
|
|
334
344
|
/**
|
|
335
345
|
* Amount to set the balance's available credits to.
|
|
@@ -453,6 +463,8 @@ export declare enum Type {
|
|
|
453
463
|
/** Unknown balance change type. */
|
|
454
464
|
UNKNOWN_OPERATION = "UNKNOWN_OPERATION"
|
|
455
465
|
}
|
|
466
|
+
/** @enumType */
|
|
467
|
+
export type TypeWithLiterals = Type | 'UNKNOWN_OPERATION';
|
|
456
468
|
export interface ChangeBalanceRequest extends ChangeBalanceRequestOperationOneOf {
|
|
457
469
|
/**
|
|
458
470
|
* ID of the pool associated with the balance to change. This is also the ID of the balance.
|
|
@@ -462,7 +474,7 @@ export interface ChangeBalanceRequest extends ChangeBalanceRequestOperationOneOf
|
|
|
462
474
|
/** Identity changing the balance. */
|
|
463
475
|
instructingParty?: CommonIdentificationData;
|
|
464
476
|
/** Balance change type. */
|
|
465
|
-
type?:
|
|
477
|
+
type?: TypeWithLiterals;
|
|
466
478
|
/** Details to send to the transaction created from this balance change. */
|
|
467
479
|
transactionDetails?: TransactionDetails;
|
|
468
480
|
}
|
|
@@ -567,7 +579,7 @@ export interface GetTransactionReversibilityRequest {
|
|
|
567
579
|
}
|
|
568
580
|
export interface GetTransactionReversibilityResponse {
|
|
569
581
|
/** The result of transaction reversibility validation */
|
|
570
|
-
transactionReversibility?:
|
|
582
|
+
transactionReversibility?: TransactionReversibilityWithLiterals;
|
|
571
583
|
}
|
|
572
584
|
/** Transaction reversibility results */
|
|
573
585
|
export declare enum TransactionReversibility {
|
|
@@ -576,6 +588,8 @@ export declare enum TransactionReversibility {
|
|
|
576
588
|
/** Transaction isn't allowed to be reverted, because it was already reverted */
|
|
577
589
|
TRANSACTION_ALREADY_REVERSED = "TRANSACTION_ALREADY_REVERSED"
|
|
578
590
|
}
|
|
591
|
+
/** @enumType */
|
|
592
|
+
export type TransactionReversibilityWithLiterals = TransactionReversibility | 'TRANSACTION_IS_REVERSIBLE' | 'TRANSACTION_ALREADY_REVERSED';
|
|
579
593
|
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
580
594
|
createdEvent?: EntityCreatedEvent;
|
|
581
595
|
updatedEvent?: EntityUpdatedEvent;
|
|
@@ -676,7 +690,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
676
690
|
*/
|
|
677
691
|
appId?: string;
|
|
678
692
|
/** @readonly */
|
|
679
|
-
identityType?:
|
|
693
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
680
694
|
}
|
|
681
695
|
/** @oneof */
|
|
682
696
|
export interface IdentificationDataIdOneOf {
|
|
@@ -708,6 +722,8 @@ export declare enum WebhookIdentityType {
|
|
|
708
722
|
WIX_USER = "WIX_USER",
|
|
709
723
|
APP = "APP"
|
|
710
724
|
}
|
|
725
|
+
/** @enumType */
|
|
726
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
711
727
|
type BalanceNonNullablePaths = `_id` | `beneficiary.anonymousVisitorId` | `beneficiary.memberId` | `beneficiary.wixUserId` | `amount.available` | `poolInfo._id`;
|
|
712
728
|
/**
|
|
713
729
|
* Retrieves a balance.
|
|
@@ -881,7 +897,7 @@ export interface ChangeBalanceOptions extends ChangeBalanceOptionsOperationOneOf
|
|
|
881
897
|
/** Identity changing the balance. */
|
|
882
898
|
instructingParty?: CommonIdentificationData;
|
|
883
899
|
/** Balance change type. */
|
|
884
|
-
type?:
|
|
900
|
+
type?: ChangeBalanceRequestTypeWithLiterals;
|
|
885
901
|
/** Adjust the balance by a specific number of credits. */
|
|
886
902
|
adjustOptions?: AdjustOptions;
|
|
887
903
|
/** Set the balance to a specific number of credits. */
|
|
@@ -2,6 +2,8 @@ import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-
|
|
|
2
2
|
import { queryBuilder } from '@wix/sdk-runtime/query-builder';
|
|
3
3
|
import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
4
4
|
import * as ambassadorWixBenefitProgramsV1Balance from './benefit-programs-v1-balance-balances.http.js';
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
5
7
|
export var IdentityType;
|
|
6
8
|
(function (IdentityType) {
|
|
7
9
|
/** Unknown type. This value is not used. */
|
|
@@ -189,7 +191,7 @@ export function queryBalances() {
|
|
|
189
191
|
});
|
|
190
192
|
},
|
|
191
193
|
responseTransformer: ({ data }) => {
|
|
192
|
-
const transformedData = renameKeysFromRESTResponseToSDKResponse(data);
|
|
194
|
+
const transformedData = renameKeysFromRESTResponseToSDKResponse(transformPaths(data, []));
|
|
193
195
|
return {
|
|
194
196
|
items: transformedData?.balances,
|
|
195
197
|
pagingMetadata: transformedData?.metadata,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-balance-balances.universal.js","sourceRoot":"","sources":["../../../../src/benefit-programs-v1-balance-balances.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,qCAAqC,MAAM,gDAAgD,CAAC;
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-balance-balances.universal.js","sourceRoot":"","sources":["../../../../src/benefit-programs-v1-balance-balances.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,qCAAqC,MAAM,gDAAgD,CAAC;AACxG,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AA6FlF,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;AA6LD,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AAC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O,CAAC,CAAC;IAErE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE;gBACxB,aAAa,EAAE,MAAM;gBACrB,cAAc,EAAE,MAAM;gBACtB,gBAAgB,EAAE,uBAAuB;aAC1C;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,eAAe,EAAE,gBAAgB,EAAE,SAAS,CAAC,CAC/C,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_benefit-programs_balances",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
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.balance"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "57ec97442ad26c122261b196be09a42461fd5f965e4d5fc81ef30be6"
|
|
52
52
|
}
|