@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.
@@ -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 | 'UNKNOWN' | 'OPERATOR_NOT' | 'OPERATOR_AND' | 'OPERATOR_OR' | 'POLICY';
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 | 'UNKNOWN' | 'FIXED_INTERVAL' | 'RATE_LIMITED' | 'CUSTOM';
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 | 'UNKNOWN_TIME_PERIOD' | 'DAY' | 'WEEK' | 'MONTH';
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
- QueryBuilder: () => _wix_sdk_types.QueryBuilder<PoolDefinition, PoolDefinitionQuerySpec, PoolDefinitionQuery>;
1236
- Filter: _wix_sdk_types.FilterFactory<PoolDefinition, PoolDefinitionQuerySpec>;
1237
- Sort: _wix_sdk_types.SortFactory<PoolDefinitionQuerySpec>;
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.
@@ -561,7 +561,6 @@ function findPoolDefinitionsByProgramDefinition(payload) {
561
561
  var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
562
562
  var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
563
563
  var PolicyExpressionType = /* @__PURE__ */ ((PolicyExpressionType2) => {
564
- PolicyExpressionType2["UNKNOWN"] = "UNKNOWN";
565
564
  PolicyExpressionType2["OPERATOR_NOT"] = "OPERATOR_NOT";
566
565
  PolicyExpressionType2["OPERATOR_AND"] = "OPERATOR_AND";
567
566
  PolicyExpressionType2["OPERATOR_OR"] = "OPERATOR_OR";
@@ -569,7 +568,6 @@ var PolicyExpressionType = /* @__PURE__ */ ((PolicyExpressionType2) => {
569
568
  return PolicyExpressionType2;
570
569
  })(PolicyExpressionType || {});
571
570
  var Type = /* @__PURE__ */ ((Type2) => {
572
- Type2["UNKNOWN"] = "UNKNOWN";
573
571
  Type2["FIXED_INTERVAL"] = "FIXED_INTERVAL";
574
572
  Type2["RATE_LIMITED"] = "RATE_LIMITED";
575
573
  Type2["CUSTOM"] = "CUSTOM";
@@ -587,9 +585,7 @@ var WeekDay = /* @__PURE__ */ ((WeekDay2) => {
587
585
  return WeekDay2;
588
586
  })(WeekDay || {});
589
587
  var TimePeriod = /* @__PURE__ */ ((TimePeriod2) => {
590
- TimePeriod2["UNKNOWN_TIME_PERIOD"] = "UNKNOWN_TIME_PERIOD";
591
588
  TimePeriod2["DAY"] = "DAY";
592
- TimePeriod2["WEEK"] = "WEEK";
593
589
  TimePeriod2["MONTH"] = "MONTH";
594
590
  return TimePeriod2;
595
591
  })(TimePeriod || {});
@@ -893,7 +889,9 @@ async function typedQueryPoolDefinitions(query, options) {
893
889
  }
894
890
  }
895
891
  var utils = {
896
- ...(0, import_query_builder_utils.createQueryUtils)()
892
+ query: {
893
+ ...(0, import_query_builder_utils.createQueryUtils)()
894
+ }
897
895
  };
898
896
  async function addPoolDefinitionToProgramDefinition2(poolDefinitionId, options) {
899
897
  const { httpClient, sideEffects } = arguments[2];