@wix/auto_sdk_benefit-programs_pools 1.0.57 → 1.0.59
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/index.js +3 -12
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +16 -33
- package/build/cjs/index.typings.js +3 -12
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +11 -30
- package/build/cjs/meta.js +0 -11
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +3 -12
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +16 -33
- package/build/es/index.typings.mjs +3 -12
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +11 -30
- package/build/es/meta.mjs +0 -11
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +3 -12
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +16 -33
- package/build/internal/cjs/index.typings.js +3 -12
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +11 -30
- package/build/internal/cjs/meta.js +0 -11
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +3 -12
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +16 -33
- package/build/internal/es/index.typings.mjs +3 -12
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +11 -30
- package/build/internal/es/meta.mjs +0 -11
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -104,8 +104,6 @@ interface Pool {
|
|
|
104
104
|
renewalCount?: number | null;
|
|
105
105
|
}
|
|
106
106
|
declare enum PoolStatus {
|
|
107
|
-
/** Undefined pool status. */
|
|
108
|
-
UNDEFINED = "UNDEFINED",
|
|
109
107
|
/** Pool is active. */
|
|
110
108
|
ACTIVE = "ACTIVE",
|
|
111
109
|
/** Pool is paused. It can be resumed. */
|
|
@@ -120,7 +118,7 @@ declare enum PoolStatus {
|
|
|
120
118
|
PENDING = "PENDING"
|
|
121
119
|
}
|
|
122
120
|
/** @enumType */
|
|
123
|
-
type PoolStatusWithLiterals = PoolStatus | '
|
|
121
|
+
type PoolStatusWithLiterals = PoolStatus | 'ACTIVE' | 'PAUSED' | 'ENDED' | 'PROVISIONING' | 'RENEWING' | 'PENDING';
|
|
124
122
|
interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
125
123
|
/**
|
|
126
124
|
* ID of a site visitor that hasn't logged in to the site.
|
|
@@ -246,7 +244,6 @@ interface PolicyExpressionExpressionOneOf {
|
|
|
246
244
|
policyOptions?: Policy;
|
|
247
245
|
}
|
|
248
246
|
declare enum PolicyExpressionType {
|
|
249
|
-
UNKNOWN = "UNKNOWN",
|
|
250
247
|
/** Use with `operatorNotOptions`. */
|
|
251
248
|
OPERATOR_NOT = "OPERATOR_NOT",
|
|
252
249
|
/** Use with `operatorAndOptions`. */
|
|
@@ -257,7 +254,7 @@ declare enum PolicyExpressionType {
|
|
|
257
254
|
POLICY = "POLICY"
|
|
258
255
|
}
|
|
259
256
|
/** @enumType */
|
|
260
|
-
type PolicyExpressionTypeWithLiterals = PolicyExpressionType | '
|
|
257
|
+
type PolicyExpressionTypeWithLiterals = PolicyExpressionType | 'OPERATOR_NOT' | 'OPERATOR_AND' | 'OPERATOR_OR' | 'POLICY';
|
|
261
258
|
interface PolicyExpressionNot {
|
|
262
259
|
/** Policy expression. If this expression is not fulfilled, benefits can be redeemed. */
|
|
263
260
|
expression?: PolicyExpression;
|
|
@@ -306,8 +303,6 @@ interface PolicyPolicyOneOf {
|
|
|
306
303
|
customOptions?: CustomPolicy;
|
|
307
304
|
}
|
|
308
305
|
declare enum Type {
|
|
309
|
-
/** Unknown policy type. */
|
|
310
|
-
UNKNOWN = "UNKNOWN",
|
|
311
306
|
/** Use with `fixedIntervalOptions`. */
|
|
312
307
|
FIXED_INTERVAL = "FIXED_INTERVAL",
|
|
313
308
|
/** Use with `rateLimitedOptions`. */
|
|
@@ -316,7 +311,7 @@ declare enum Type {
|
|
|
316
311
|
CUSTOM = "CUSTOM"
|
|
317
312
|
}
|
|
318
313
|
/** @enumType */
|
|
319
|
-
type TypeWithLiterals = Type | '
|
|
314
|
+
type TypeWithLiterals = Type | 'FIXED_INTERVAL' | 'RATE_LIMITED' | 'CUSTOM';
|
|
320
315
|
interface FixedIntervalPolicy {
|
|
321
316
|
/** Weekday that this interval starts from. If this field is defined, then `toWeekDay` is required. */
|
|
322
317
|
fromWeekDay?: WeekDayWithLiterals;
|
|
@@ -378,17 +373,13 @@ interface RateLimitedPolicy {
|
|
|
378
373
|
quotaId?: string | null;
|
|
379
374
|
}
|
|
380
375
|
declare enum TimePeriod {
|
|
381
|
-
/** Unknown time period. */
|
|
382
|
-
UNKNOWN_TIME_PERIOD = "UNKNOWN_TIME_PERIOD",
|
|
383
376
|
/** Day, starting at midnight. */
|
|
384
377
|
DAY = "DAY",
|
|
385
|
-
/** Calendar week, starting day depending on locale. */
|
|
386
|
-
WEEK = "WEEK",
|
|
387
378
|
/** Calendar month, starting on the first day of the month. */
|
|
388
379
|
MONTH = "MONTH"
|
|
389
380
|
}
|
|
390
381
|
/** @enumType */
|
|
391
|
-
type TimePeriodWithLiterals = TimePeriod | '
|
|
382
|
+
type TimePeriodWithLiterals = TimePeriod | 'DAY' | 'MONTH';
|
|
392
383
|
/** Custom policy as implemented by the Entitlement Policy Provider */
|
|
393
384
|
interface CustomPolicy {
|
|
394
385
|
/**
|
|
@@ -454,7 +445,7 @@ interface ProgramDefinitionInfo {
|
|
|
454
445
|
/**
|
|
455
446
|
* Display name of the program definition.
|
|
456
447
|
* @readonly
|
|
457
|
-
* @maxLength
|
|
448
|
+
* @maxLength 64
|
|
458
449
|
*/
|
|
459
450
|
displayName?: string | null;
|
|
460
451
|
/**
|
|
@@ -485,15 +476,13 @@ interface PoolProgramInfo {
|
|
|
485
476
|
displayName?: string | null;
|
|
486
477
|
}
|
|
487
478
|
declare enum PoolOrigin {
|
|
488
|
-
/** Unknown pool origin. */
|
|
489
|
-
UNKNOWN = "UNKNOWN",
|
|
490
479
|
/** Benefit pool created by a program provision. */
|
|
491
480
|
PROVISION = "PROVISION",
|
|
492
481
|
/** Benefit pool was created when pool definition was added to program definition. */
|
|
493
482
|
CASCADE = "CASCADE"
|
|
494
483
|
}
|
|
495
484
|
/** @enumType */
|
|
496
|
-
type PoolOriginWithLiterals = PoolOrigin | '
|
|
485
|
+
type PoolOriginWithLiterals = PoolOrigin | 'PROVISION' | 'CASCADE';
|
|
497
486
|
interface PoolRenewalAction extends PoolRenewalActionActionOneOf {
|
|
498
487
|
/**
|
|
499
488
|
* The pool's details (benefits and settings) will be updated to match the details of the specified pool definition revision.
|
|
@@ -520,15 +509,13 @@ interface PoolRenewalActionActionOneOf {
|
|
|
520
509
|
updateOptions?: Update;
|
|
521
510
|
}
|
|
522
511
|
declare enum PoolRenewalActionType {
|
|
523
|
-
/** Undefined action type. */
|
|
524
|
-
UNDEFINED = "UNDEFINED",
|
|
525
512
|
/** Pool will end on program renewal */
|
|
526
513
|
END = "END",
|
|
527
514
|
/** Pool will be updated on program renewal */
|
|
528
515
|
UPDATE = "UPDATE"
|
|
529
516
|
}
|
|
530
517
|
/** @enumType */
|
|
531
|
-
type PoolRenewalActionTypeWithLiterals = PoolRenewalActionType | '
|
|
518
|
+
type PoolRenewalActionTypeWithLiterals = PoolRenewalActionType | 'END' | 'UPDATE';
|
|
532
519
|
interface Update {
|
|
533
520
|
/**
|
|
534
521
|
* The pool's details will be updated to match the details of the specified pool definition revision.
|
|
@@ -1156,8 +1143,6 @@ interface EligibilityCheckResult {
|
|
|
1156
1143
|
benefitResults?: BenefitResult[];
|
|
1157
1144
|
}
|
|
1158
1145
|
declare enum BenefitResultType {
|
|
1159
|
-
/** Unknown eligibility. */
|
|
1160
|
-
UNKNOWN = "UNKNOWN",
|
|
1161
1146
|
/** Item is eligible to be redeemed. */
|
|
1162
1147
|
ELIGIBLE_BENEFIT = "ELIGIBLE_BENEFIT",
|
|
1163
1148
|
/** Balance is lower than the cost of redeeming the items. */
|
|
@@ -1170,7 +1155,7 @@ declare enum BenefitResultType {
|
|
|
1170
1155
|
POOL_NOT_FOUND = "POOL_NOT_FOUND"
|
|
1171
1156
|
}
|
|
1172
1157
|
/** @enumType */
|
|
1173
|
-
type BenefitResultTypeWithLiterals = BenefitResultType | '
|
|
1158
|
+
type BenefitResultTypeWithLiterals = BenefitResultType | 'ELIGIBLE_BENEFIT' | 'NOT_ENOUGH_BALANCE' | 'POOL_NOT_ACTIVE' | 'BENEFIT_NOT_FOUND' | 'POOL_NOT_FOUND';
|
|
1174
1159
|
interface EligibleBenefit {
|
|
1175
1160
|
/**
|
|
1176
1161
|
* Pool ID.
|
|
@@ -1317,11 +1302,10 @@ interface ListPoolsRequest {
|
|
|
1317
1302
|
cursorPaging?: CursorPaging;
|
|
1318
1303
|
}
|
|
1319
1304
|
declare enum ListPoolsRequestType {
|
|
1320
|
-
UNKNOWN_FILTER = "UNKNOWN_FILTER",
|
|
1321
1305
|
BY_ITEM_REFERENCE = "BY_ITEM_REFERENCE"
|
|
1322
1306
|
}
|
|
1323
1307
|
/** @enumType */
|
|
1324
|
-
type ListPoolsRequestTypeWithLiterals = ListPoolsRequestType | '
|
|
1308
|
+
type ListPoolsRequestTypeWithLiterals = ListPoolsRequestType | 'BY_ITEM_REFERENCE';
|
|
1325
1309
|
interface ByItemReference {
|
|
1326
1310
|
/**
|
|
1327
1311
|
* A list of filters
|
|
@@ -1499,15 +1483,13 @@ interface ProvisionPoolsForProgramResponseResultOneOf {
|
|
|
1499
1483
|
asyncOptions?: AsyncResult;
|
|
1500
1484
|
}
|
|
1501
1485
|
declare enum ProvisionPoolsForProgramResponseType {
|
|
1502
|
-
/** Unknown result type */
|
|
1503
|
-
UNKNOWN = "UNKNOWN",
|
|
1504
1486
|
/** Sync result */
|
|
1505
1487
|
SYNC = "SYNC",
|
|
1506
1488
|
/** Async result */
|
|
1507
1489
|
ASYNC = "ASYNC"
|
|
1508
1490
|
}
|
|
1509
1491
|
/** @enumType */
|
|
1510
|
-
type ProvisionPoolsForProgramResponseTypeWithLiterals = ProvisionPoolsForProgramResponseType | '
|
|
1492
|
+
type ProvisionPoolsForProgramResponseTypeWithLiterals = ProvisionPoolsForProgramResponseType | 'SYNC' | 'ASYNC';
|
|
1511
1493
|
interface SyncResult {
|
|
1512
1494
|
/** Indicates if the operation was successful */
|
|
1513
1495
|
success?: boolean;
|
|
@@ -1555,12 +1537,11 @@ interface UpdatePoolStatusRequestPoolSelectorOneOf {
|
|
|
1555
1537
|
byProgramIdOptions?: ByProgramIdOptions;
|
|
1556
1538
|
}
|
|
1557
1539
|
declare enum PoolSelectorType {
|
|
1558
|
-
UNKNOWN_SELECTOR = "UNKNOWN_SELECTOR",
|
|
1559
1540
|
BY_POOL_DEFINITION_ID_AND_PROGRAM_DEFINITION_ID = "BY_POOL_DEFINITION_ID_AND_PROGRAM_DEFINITION_ID",
|
|
1560
1541
|
BY_PROGRAM_ID = "BY_PROGRAM_ID"
|
|
1561
1542
|
}
|
|
1562
1543
|
/** @enumType */
|
|
1563
|
-
type PoolSelectorTypeWithLiterals = PoolSelectorType | '
|
|
1544
|
+
type PoolSelectorTypeWithLiterals = PoolSelectorType | 'BY_POOL_DEFINITION_ID_AND_PROGRAM_DEFINITION_ID' | 'BY_PROGRAM_ID';
|
|
1564
1545
|
interface ByPoolDefinitionIdAndProgramDefinitionIdOptions {
|
|
1565
1546
|
/**
|
|
1566
1547
|
* Pool definition id
|
package/build/cjs/meta.js
CHANGED
|
@@ -536,7 +536,6 @@ function checkEligibilityByFilter(payload) {
|
|
|
536
536
|
|
|
537
537
|
// src/benefit-programs-v1-pool-pools.types.ts
|
|
538
538
|
var PoolStatus = /* @__PURE__ */ ((PoolStatus2) => {
|
|
539
|
-
PoolStatus2["UNDEFINED"] = "UNDEFINED";
|
|
540
539
|
PoolStatus2["ACTIVE"] = "ACTIVE";
|
|
541
540
|
PoolStatus2["PAUSED"] = "PAUSED";
|
|
542
541
|
PoolStatus2["ENDED"] = "ENDED";
|
|
@@ -553,7 +552,6 @@ var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
|
|
|
553
552
|
return IdentityType2;
|
|
554
553
|
})(IdentityType || {});
|
|
555
554
|
var PolicyExpressionType = /* @__PURE__ */ ((PolicyExpressionType2) => {
|
|
556
|
-
PolicyExpressionType2["UNKNOWN"] = "UNKNOWN";
|
|
557
555
|
PolicyExpressionType2["OPERATOR_NOT"] = "OPERATOR_NOT";
|
|
558
556
|
PolicyExpressionType2["OPERATOR_AND"] = "OPERATOR_AND";
|
|
559
557
|
PolicyExpressionType2["OPERATOR_OR"] = "OPERATOR_OR";
|
|
@@ -561,7 +559,6 @@ var PolicyExpressionType = /* @__PURE__ */ ((PolicyExpressionType2) => {
|
|
|
561
559
|
return PolicyExpressionType2;
|
|
562
560
|
})(PolicyExpressionType || {});
|
|
563
561
|
var Type = /* @__PURE__ */ ((Type2) => {
|
|
564
|
-
Type2["UNKNOWN"] = "UNKNOWN";
|
|
565
562
|
Type2["FIXED_INTERVAL"] = "FIXED_INTERVAL";
|
|
566
563
|
Type2["RATE_LIMITED"] = "RATE_LIMITED";
|
|
567
564
|
Type2["CUSTOM"] = "CUSTOM";
|
|
@@ -579,20 +576,16 @@ var WeekDay = /* @__PURE__ */ ((WeekDay2) => {
|
|
|
579
576
|
return WeekDay2;
|
|
580
577
|
})(WeekDay || {});
|
|
581
578
|
var TimePeriod = /* @__PURE__ */ ((TimePeriod2) => {
|
|
582
|
-
TimePeriod2["UNKNOWN_TIME_PERIOD"] = "UNKNOWN_TIME_PERIOD";
|
|
583
579
|
TimePeriod2["DAY"] = "DAY";
|
|
584
|
-
TimePeriod2["WEEK"] = "WEEK";
|
|
585
580
|
TimePeriod2["MONTH"] = "MONTH";
|
|
586
581
|
return TimePeriod2;
|
|
587
582
|
})(TimePeriod || {});
|
|
588
583
|
var PoolOrigin = /* @__PURE__ */ ((PoolOrigin2) => {
|
|
589
|
-
PoolOrigin2["UNKNOWN"] = "UNKNOWN";
|
|
590
584
|
PoolOrigin2["PROVISION"] = "PROVISION";
|
|
591
585
|
PoolOrigin2["CASCADE"] = "CASCADE";
|
|
592
586
|
return PoolOrigin2;
|
|
593
587
|
})(PoolOrigin || {});
|
|
594
588
|
var PoolRenewalActionType = /* @__PURE__ */ ((PoolRenewalActionType2) => {
|
|
595
|
-
PoolRenewalActionType2["UNDEFINED"] = "UNDEFINED";
|
|
596
589
|
PoolRenewalActionType2["END"] = "END";
|
|
597
590
|
PoolRenewalActionType2["UPDATE"] = "UPDATE";
|
|
598
591
|
return PoolRenewalActionType2;
|
|
@@ -603,7 +596,6 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
603
596
|
return SortOrder2;
|
|
604
597
|
})(SortOrder || {});
|
|
605
598
|
var BenefitResultType = /* @__PURE__ */ ((BenefitResultType2) => {
|
|
606
|
-
BenefitResultType2["UNKNOWN"] = "UNKNOWN";
|
|
607
599
|
BenefitResultType2["ELIGIBLE_BENEFIT"] = "ELIGIBLE_BENEFIT";
|
|
608
600
|
BenefitResultType2["NOT_ENOUGH_BALANCE"] = "NOT_ENOUGH_BALANCE";
|
|
609
601
|
BenefitResultType2["POOL_NOT_ACTIVE"] = "POOL_NOT_ACTIVE";
|
|
@@ -612,18 +604,15 @@ var BenefitResultType = /* @__PURE__ */ ((BenefitResultType2) => {
|
|
|
612
604
|
return BenefitResultType2;
|
|
613
605
|
})(BenefitResultType || {});
|
|
614
606
|
var ListPoolsRequestType = /* @__PURE__ */ ((ListPoolsRequestType2) => {
|
|
615
|
-
ListPoolsRequestType2["UNKNOWN_FILTER"] = "UNKNOWN_FILTER";
|
|
616
607
|
ListPoolsRequestType2["BY_ITEM_REFERENCE"] = "BY_ITEM_REFERENCE";
|
|
617
608
|
return ListPoolsRequestType2;
|
|
618
609
|
})(ListPoolsRequestType || {});
|
|
619
610
|
var ProvisionPoolsForProgramResponseType = /* @__PURE__ */ ((ProvisionPoolsForProgramResponseType2) => {
|
|
620
|
-
ProvisionPoolsForProgramResponseType2["UNKNOWN"] = "UNKNOWN";
|
|
621
611
|
ProvisionPoolsForProgramResponseType2["SYNC"] = "SYNC";
|
|
622
612
|
ProvisionPoolsForProgramResponseType2["ASYNC"] = "ASYNC";
|
|
623
613
|
return ProvisionPoolsForProgramResponseType2;
|
|
624
614
|
})(ProvisionPoolsForProgramResponseType || {});
|
|
625
615
|
var PoolSelectorType = /* @__PURE__ */ ((PoolSelectorType2) => {
|
|
626
|
-
PoolSelectorType2["UNKNOWN_SELECTOR"] = "UNKNOWN_SELECTOR";
|
|
627
616
|
PoolSelectorType2["BY_POOL_DEFINITION_ID_AND_PROGRAM_DEFINITION_ID"] = "BY_POOL_DEFINITION_ID_AND_PROGRAM_DEFINITION_ID";
|
|
628
617
|
PoolSelectorType2["BY_PROGRAM_ID"] = "BY_PROGRAM_ID";
|
|
629
618
|
return PoolSelectorType2;
|