@wix/auto_sdk_benefit-programs_pool-definitions 1.0.47 → 1.0.49
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 -5
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +8 -13
- package/build/cjs/index.typings.js +3 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +3 -10
- package/build/cjs/meta.js +0 -4
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +3 -5
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +8 -13
- package/build/es/index.typings.mjs +3 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +3 -10
- package/build/es/meta.mjs +0 -4
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +3 -5
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +8 -13
- package/build/internal/cjs/index.typings.js +3 -5
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +3 -10
- package/build/internal/cjs/meta.js +0 -4
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +3 -5
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +8 -13
- package/build/internal/es/index.typings.mjs +3 -5
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +3 -10
- package/build/internal/es/meta.mjs +0 -4
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -139,7 +139,6 @@ interface PolicyExpressionExpressionOneOf {
|
|
|
139
139
|
policyOptions?: Policy;
|
|
140
140
|
}
|
|
141
141
|
declare enum PolicyExpressionType {
|
|
142
|
-
UNKNOWN = "UNKNOWN",
|
|
143
142
|
/** Use with `operatorNotOptions`. */
|
|
144
143
|
OPERATOR_NOT = "OPERATOR_NOT",
|
|
145
144
|
/** Use with `operatorAndOptions`. */
|
|
@@ -150,7 +149,7 @@ declare enum PolicyExpressionType {
|
|
|
150
149
|
POLICY = "POLICY"
|
|
151
150
|
}
|
|
152
151
|
/** @enumType */
|
|
153
|
-
type PolicyExpressionTypeWithLiterals = PolicyExpressionType | '
|
|
152
|
+
type PolicyExpressionTypeWithLiterals = PolicyExpressionType | 'OPERATOR_NOT' | 'OPERATOR_AND' | 'OPERATOR_OR' | 'POLICY';
|
|
154
153
|
interface PolicyExpressionNot {
|
|
155
154
|
/** Policy expression. If this expression is not fulfilled, benefits can be redeemed. */
|
|
156
155
|
expression?: PolicyExpression;
|
|
@@ -199,8 +198,6 @@ interface PolicyPolicyOneOf {
|
|
|
199
198
|
customOptions?: CustomPolicy;
|
|
200
199
|
}
|
|
201
200
|
declare enum Type {
|
|
202
|
-
/** Unknown policy type. */
|
|
203
|
-
UNKNOWN = "UNKNOWN",
|
|
204
201
|
/** Use with `fixedIntervalOptions`. */
|
|
205
202
|
FIXED_INTERVAL = "FIXED_INTERVAL",
|
|
206
203
|
/** Use with `rateLimitedOptions`. */
|
|
@@ -209,7 +206,7 @@ declare enum Type {
|
|
|
209
206
|
CUSTOM = "CUSTOM"
|
|
210
207
|
}
|
|
211
208
|
/** @enumType */
|
|
212
|
-
type TypeWithLiterals = Type | '
|
|
209
|
+
type TypeWithLiterals = Type | 'FIXED_INTERVAL' | 'RATE_LIMITED' | 'CUSTOM';
|
|
213
210
|
interface FixedIntervalPolicy {
|
|
214
211
|
/** Weekday that this interval starts from. If this field is defined, then `toWeekDay` is required. */
|
|
215
212
|
fromWeekDay?: WeekDayWithLiterals;
|
|
@@ -271,17 +268,13 @@ interface RateLimitedPolicy {
|
|
|
271
268
|
quotaId?: string | null;
|
|
272
269
|
}
|
|
273
270
|
declare enum TimePeriod {
|
|
274
|
-
/** Unknown time period. */
|
|
275
|
-
UNKNOWN_TIME_PERIOD = "UNKNOWN_TIME_PERIOD",
|
|
276
271
|
/** Day, starting at midnight. */
|
|
277
272
|
DAY = "DAY",
|
|
278
|
-
/** Calendar week, starting day depending on locale. */
|
|
279
|
-
WEEK = "WEEK",
|
|
280
273
|
/** Calendar month, starting on the first day of the month. */
|
|
281
274
|
MONTH = "MONTH"
|
|
282
275
|
}
|
|
283
276
|
/** @enumType */
|
|
284
|
-
type TimePeriodWithLiterals = TimePeriod | '
|
|
277
|
+
type TimePeriodWithLiterals = TimePeriod | 'DAY' | 'MONTH';
|
|
285
278
|
/** Custom policy as implemented by the Entitlement Policy Provider */
|
|
286
279
|
interface CustomPolicy {
|
|
287
280
|
/**
|
|
@@ -1232,9 +1225,11 @@ type PoolDefinitionQuery = {
|
|
|
1232
1225
|
}[];
|
|
1233
1226
|
};
|
|
1234
1227
|
declare const utils: {
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1228
|
+
query: {
|
|
1229
|
+
QueryBuilder: () => _wix_sdk_types.QueryBuilder<PoolDefinition, PoolDefinitionQuerySpec, PoolDefinitionQuery>;
|
|
1230
|
+
Filter: _wix_sdk_types.FilterFactory<PoolDefinition, PoolDefinitionQuerySpec>;
|
|
1231
|
+
Sort: _wix_sdk_types.SortFactory<PoolDefinitionQuerySpec>;
|
|
1232
|
+
};
|
|
1238
1233
|
};
|
|
1239
1234
|
/**
|
|
1240
1235
|
* Adds a pool definition to a program definition.
|
|
@@ -519,7 +519,6 @@ function findPoolDefinitionsByProgramDefinition(payload) {
|
|
|
519
519
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
520
520
|
import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
|
|
521
521
|
var PolicyExpressionType = /* @__PURE__ */ ((PolicyExpressionType2) => {
|
|
522
|
-
PolicyExpressionType2["UNKNOWN"] = "UNKNOWN";
|
|
523
522
|
PolicyExpressionType2["OPERATOR_NOT"] = "OPERATOR_NOT";
|
|
524
523
|
PolicyExpressionType2["OPERATOR_AND"] = "OPERATOR_AND";
|
|
525
524
|
PolicyExpressionType2["OPERATOR_OR"] = "OPERATOR_OR";
|
|
@@ -527,7 +526,6 @@ var PolicyExpressionType = /* @__PURE__ */ ((PolicyExpressionType2) => {
|
|
|
527
526
|
return PolicyExpressionType2;
|
|
528
527
|
})(PolicyExpressionType || {});
|
|
529
528
|
var Type = /* @__PURE__ */ ((Type2) => {
|
|
530
|
-
Type2["UNKNOWN"] = "UNKNOWN";
|
|
531
529
|
Type2["FIXED_INTERVAL"] = "FIXED_INTERVAL";
|
|
532
530
|
Type2["RATE_LIMITED"] = "RATE_LIMITED";
|
|
533
531
|
Type2["CUSTOM"] = "CUSTOM";
|
|
@@ -545,9 +543,7 @@ var WeekDay = /* @__PURE__ */ ((WeekDay2) => {
|
|
|
545
543
|
return WeekDay2;
|
|
546
544
|
})(WeekDay || {});
|
|
547
545
|
var TimePeriod = /* @__PURE__ */ ((TimePeriod2) => {
|
|
548
|
-
TimePeriod2["UNKNOWN_TIME_PERIOD"] = "UNKNOWN_TIME_PERIOD";
|
|
549
546
|
TimePeriod2["DAY"] = "DAY";
|
|
550
|
-
TimePeriod2["WEEK"] = "WEEK";
|
|
551
547
|
TimePeriod2["MONTH"] = "MONTH";
|
|
552
548
|
return TimePeriod2;
|
|
553
549
|
})(TimePeriod || {});
|
|
@@ -851,7 +847,9 @@ async function typedQueryPoolDefinitions(query, options) {
|
|
|
851
847
|
}
|
|
852
848
|
}
|
|
853
849
|
var utils = {
|
|
854
|
-
|
|
850
|
+
query: {
|
|
851
|
+
...createQueryUtils()
|
|
852
|
+
}
|
|
855
853
|
};
|
|
856
854
|
async function addPoolDefinitionToProgramDefinition2(poolDefinitionId, options) {
|
|
857
855
|
const { httpClient, sideEffects } = arguments[2];
|