@wix/auto_sdk_benefit-programs_pools 1.0.43 → 1.0.45
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.map +1 -1
- package/build/cjs/index.typings.d.ts +8 -7
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +6 -5
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +8 -7
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +6 -5
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +9 -9
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +6 -5
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +9 -9
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +6 -5
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -368,10 +368,11 @@ interface RateLimitedPolicy {
|
|
|
368
368
|
/** Time period for the rate limit, resets at the start of each period. */
|
|
369
369
|
timePeriod?: TimePeriodWithLiterals;
|
|
370
370
|
/**
|
|
371
|
-
* Unique identifier for the quota resource. Set
|
|
372
|
-
*
|
|
371
|
+
* Unique identifier for the quota resource. Set automatically when creating a policy.
|
|
372
|
+
* Updating RateLimitedPolicy `time period` or `times` will result in a quota reset.
|
|
373
373
|
* @immutable
|
|
374
374
|
* @readonly
|
|
375
|
+
* @format GUID
|
|
375
376
|
*/
|
|
376
377
|
quotaId?: string | null;
|
|
377
378
|
}
|
|
@@ -1243,7 +1244,7 @@ interface BenefitSelector {
|
|
|
1243
1244
|
/**
|
|
1244
1245
|
* Amount of items to check.
|
|
1245
1246
|
*
|
|
1246
|
-
* Ensures the balance is high enough to redeem this many
|
|
1247
|
+
* Ensures the balance is high enough to redeem this many items.
|
|
1247
1248
|
* @min 1
|
|
1248
1249
|
*/
|
|
1249
1250
|
count?: number;
|
|
@@ -1603,7 +1604,7 @@ interface CheckEligibilityByFilterRequest {
|
|
|
1603
1604
|
/**
|
|
1604
1605
|
* Amount of items to check.
|
|
1605
1606
|
*
|
|
1606
|
-
* Ensures the balance is high enough to redeem this many
|
|
1607
|
+
* Ensures the balance is high enough to redeem this many items.
|
|
1607
1608
|
* @min 1
|
|
1608
1609
|
*/
|
|
1609
1610
|
count: number;
|
|
@@ -1614,7 +1615,7 @@ interface CheckEligibilityByFilterRequest {
|
|
|
1614
1615
|
*/
|
|
1615
1616
|
targetDate?: Date | null;
|
|
1616
1617
|
/** Pool beneficiary. */
|
|
1617
|
-
beneficiary
|
|
1618
|
+
beneficiary?: CommonIdentificationData;
|
|
1618
1619
|
/** Additional information. */
|
|
1619
1620
|
additionalData?: Record<string, any> | null;
|
|
1620
1621
|
}
|
|
@@ -2226,7 +2227,6 @@ interface BulkUpdatePoolsOptions {
|
|
|
2226
2227
|
* Each benefit is checked independently. For example, if there is a benefit with a price of 3 credits and a benefit with a price of 4 credits, and there are 5 available credits, both benefits would be returned as eligible, but they can't both be redeemed.
|
|
2227
2228
|
* @internal
|
|
2228
2229
|
* @documentationMaturity preview
|
|
2229
|
-
* @requiredField options.beneficiary
|
|
2230
2230
|
* @requiredField options.count
|
|
2231
2231
|
* @requiredField options.itemReference
|
|
2232
2232
|
* @requiredField options.itemReference.externalId
|
|
@@ -2236,7 +2236,7 @@ interface BulkUpdatePoolsOptions {
|
|
|
2236
2236
|
* @applicableIdentity APP
|
|
2237
2237
|
* @fqn wix.benefit_programs.v1.pool.PoolService.CheckEligibilityByFilter
|
|
2238
2238
|
*/
|
|
2239
|
-
declare function checkEligibilityByFilter(options?: NonNullablePaths<CheckEligibilityByFilterOptions, `
|
|
2239
|
+
declare function checkEligibilityByFilter(options?: NonNullablePaths<CheckEligibilityByFilterOptions, `count` | `itemReference` | `itemReference.externalId` | `itemReference.providerAppId` | `namespace`, 3>): Promise<NonNullablePaths<CheckEligibilityByFilterResponse, `result` | `result.${number}.notEnoughBalanceOptions.poolId` | `result.${number}.notEnoughBalanceOptions.itemReference.externalId` | `result.${number}.notEnoughBalanceOptions.itemReference.category` | `result.${number}.notEnoughBalanceOptions.itemReference.providerAppId` | `result.${number}.notEnoughBalanceOptions.availableBalance` | `result.${number}.notEnoughBalanceOptions.requestedBalance` | `result.${number}.poolNotActiveOptions.poolId` | `result.${number}.poolNotActiveOptions.poolStatus` | `result.${number}.benefitNotFoundOptions.poolId` | `result.${number}.poolNotFoundOptions.poolId` | `result.${number}.type`, 6>>;
|
|
2240
2240
|
interface CheckEligibilityByFilterOptions {
|
|
2241
2241
|
/** Defines filtering and sorting criteria used to select pools when checking eligibility. */
|
|
2242
2242
|
poolFilter?: PoolFilter;
|
|
@@ -2251,7 +2251,7 @@ interface CheckEligibilityByFilterOptions {
|
|
|
2251
2251
|
/**
|
|
2252
2252
|
* Amount of items to check.
|
|
2253
2253
|
*
|
|
2254
|
-
* Ensures the balance is high enough to redeem this many
|
|
2254
|
+
* Ensures the balance is high enough to redeem this many items.
|
|
2255
2255
|
* @min 1
|
|
2256
2256
|
*/
|
|
2257
2257
|
count: number;
|
|
@@ -2262,7 +2262,7 @@ interface CheckEligibilityByFilterOptions {
|
|
|
2262
2262
|
*/
|
|
2263
2263
|
targetDate?: Date | null;
|
|
2264
2264
|
/** Pool beneficiary. */
|
|
2265
|
-
beneficiary
|
|
2265
|
+
beneficiary?: CommonIdentificationData;
|
|
2266
2266
|
/** Additional information. */
|
|
2267
2267
|
additionalData?: Record<string, any> | null;
|
|
2268
2268
|
}
|