@wix/auto_sdk_benefit-programs_pools 1.0.34 → 1.0.36
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.d.ts +2 -2
- package/build/cjs/index.js +198 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +15 -2
- package/build/cjs/index.typings.js +198 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +14 -1
- package/build/cjs/meta.js +198 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +198 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +15 -2
- package/build/es/index.typings.mjs +198 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +14 -1
- package/build/es/meta.mjs +198 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +198 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +15 -2
- package/build/internal/cjs/index.typings.js +198 -1
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +14 -1
- package/build/internal/cjs/meta.js +198 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +198 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +15 -2
- package/build/internal/es/index.typings.mjs +198 -1
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +14 -1
- package/build/internal/es/meta.mjs +198 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
2
|
import { Pool, UpdatePool, PoolsQueryBuilder, RedeemBenefitOptions, RedeemBenefitResponse, RedeemBenefitApplicationErrors, CheckBenefitEligibilityOptions, CheckBenefitEligibilityResponse, BulkCheckBenefitEligibilityOptions, BulkCheckBenefitEligibilityResponse, ItemReference, GetEligibleBenefitsOptions, GetEligibleBenefitsResponse, GetEligibleBenefitsApplicationErrors, BulkUpdatePoolsOptions, BulkUpdatePoolsResponse } from './index.typings.js';
|
|
3
|
-
export { ActionEvent, ApplicationError, AsyncResult, BalanceAmount, Benefit, BenefitAlreadyRedeemed, BenefitInfo, BenefitNotFound, BenefitRedeemed, BenefitReservationCanceled, BenefitReservationReleased, BenefitReserved, BenefitSelector, BulkActionMetadata, BulkCheckBenefitEligibilityRequest, BulkEligibilityCheckResult, BulkPoolResult, BulkUpdatePoolsRequest, ByItemReference, ByItemReferenceFilter, ByPoolDefinitionIdAndProgramDefinitionIdOptions, ByProgramIdOptions, CancelBenefitReservationRequest, CancelBenefitReservationResponse, CheckBenefitEligibilityRequest, CommonIdentificationData, CommonIdentificationDataIdOneOf, CountNumberOfPoolsInProvisioningStatusRequest, CountNumberOfPoolsInProvisioningStatusResponse, CreatePoolRequest, CreatePoolResponse, CreditConfiguration, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomPolicy, DeletePoolRequest, DeletePoolResponse, Details, DomainEvent, DomainEventBodyOneOf, EligibilityCheckResult, EligibilityCheckResultResultOneOf, EligibilityCheckResultType, EligibilityCheckResultTypeWithLiterals, Eligible, EligibleBenefit, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, FailureDetails, Filter, FilterFilterOneOf, FixedIntervalPolicy, GetEligibleBenefitsRequest, GetPoolRequest, GetPoolResponse, IdentificationData, IdentificationDataIdOneOf, IdentityType, IdentityTypeWithLiterals, InvalidPoolDefinitionReference, ItemMetadata, ListPoolsRequest, ListPoolsRequestType, ListPoolsRequestTypeWithLiterals, ListPoolsResponse, MaskedPool, MessageEnvelope, NotEnoughBalance, Policy, PolicyExpression, PolicyExpressionAnd, PolicyExpressionEvaluatedToFalse, PolicyExpressionExpressionOneOf, PolicyExpressionNot, PolicyExpressionOr, PolicyExpressionType, PolicyExpressionTypeWithLiterals, PolicyPolicyOneOf, PoolDefinitionAndProgramDefinition, PoolDefinitionLookupId, PoolDefinitionLookupIdIdOneOf, PoolEnded, PoolInfo, PoolNotActive, PoolNotFound, PoolOrigin, PoolOriginWithLiterals, PoolPaused, PoolProgramInfo, PoolProvisionJobFinished, PoolProvisioned, PoolRenewalAction, PoolRenewalActionActionOneOf, PoolRenewalActionType, PoolRenewalActionTypeWithLiterals, PoolRenewed, PoolResumed, PoolSelectorType, PoolSelectorTypeWithLiterals, PoolStatus, PoolStatusUpdateJobFinished, PoolStatusUpdateJobFinishedContextOneOf, PoolStatusWithLiterals, PoolWithItems, PoolsQueryResult, ProgramDefinitionInfo, ProgramInfo, ProvisionPoolsForProgramRequest, ProvisionPoolsForProgramResponse, ProvisionPoolsForProgramResponseResultOneOf, ProvisionPoolsForProgramResponseType, ProvisionPoolsForProgramResponseTypeWithLiterals, QueryPoolsRequest, QueryPoolsResponse, RateLimitedPolicy, RateLimitedPolicyPeriodOneOf, RateLimitedPolicyType, RateLimitedPolicyTypeWithLiterals, RedeemBenefitRequest, RedemptionDetails, ReleaseBenefitReservationRequest, ReleaseBenefitReservationResponse, RenewPoolsForProgramRequest, RenewPoolsForProgramResponse, ReserveBenefitRequest, ReserveBenefitResponse, RestoreInfo, RolloverConfiguration, SortOrder, SortOrderWithLiterals, Sorting, SyncResult, Type, TypeWithLiterals, Update, UpdatePoolRequest, UpdatePoolResponse, UpdatePoolStatusRequest, UpdatePoolStatusRequestPoolSelectorOneOf, UpdatePoolStatusResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeekDay, WeekDayWithLiterals } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, ApplicationError, AsyncResult, BalanceAmount, Benefit, BenefitAlreadyRedeemed, BenefitInfo, BenefitNotFound, BenefitRedeemed, BenefitReservationCanceled, BenefitReservationReleased, BenefitReserved, BenefitSelector, BulkActionMetadata, BulkCheckBenefitEligibilityRequest, BulkEligibilityCheckResult, BulkPoolResult, BulkUpdatePoolsRequest, ByItemReference, ByItemReferenceFilter, ByPoolDefinitionIdAndProgramDefinitionIdOptions, ByProgramIdOptions, CancelBenefitReservationRequest, CancelBenefitReservationResponse, CheckBenefitEligibilityRequest, CommonIdentificationData, CommonIdentificationDataIdOneOf, CountNumberOfPoolsInProvisioningStatusRequest, CountNumberOfPoolsInProvisioningStatusResponse, CreatePoolRequest, CreatePoolResponse, CreditConfiguration, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomPolicy, DeletePoolRequest, DeletePoolResponse, Details, DomainEvent, DomainEventBodyOneOf, EligibilityCheckResult, EligibilityCheckResultResultOneOf, EligibilityCheckResultType, EligibilityCheckResultTypeWithLiterals, Eligible, EligibleBenefit, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, FailureDetails, Filter, FilterFilterOneOf, FixedIntervalPolicy, GetEligibleBenefitsRequest, GetPoolRequest, GetPoolResponse, IdentificationData, IdentificationDataIdOneOf, IdentityType, IdentityTypeWithLiterals, InvalidPoolDefinitionReference, ItemMetadata, ListPoolsRequest, ListPoolsRequestType, ListPoolsRequestTypeWithLiterals, ListPoolsResponse, MaskedPool, MessageEnvelope, NotEnoughBalance, Policy, PolicyExpression, PolicyExpressionAnd, PolicyExpressionEvaluatedToFalse, PolicyExpressionExpressionOneOf, PolicyExpressionNot, PolicyExpressionOr, PolicyExpressionType, PolicyExpressionTypeWithLiterals, PolicyPolicyOneOf, PoolDefinitionAndProgramDefinition, PoolDefinitionLookupId, PoolDefinitionLookupIdIdOneOf, PoolEnded, PoolInfo, PoolNotActive, PoolNotFound, PoolOrigin, PoolOriginWithLiterals, PoolPaused, PoolProgramInfo, PoolProvisionJobFinished, PoolProvisioned, PoolRenewalAction, PoolRenewalActionActionOneOf, PoolRenewalActionType, PoolRenewalActionTypeWithLiterals, PoolRenewed, PoolResumed, PoolSelectorType, PoolSelectorTypeWithLiterals, PoolStatus, PoolStatusUpdateJobFinished, PoolStatusUpdateJobFinishedContextOneOf, PoolStatusUpdateParamsPoolInfo, PoolStatusWithLiterals, PoolWithItems, PoolsQueryResult, ProgramDefinitionInfo, ProgramInfo, ProvisionPoolsForProgramRequest, ProvisionPoolsForProgramResponse, ProvisionPoolsForProgramResponseResultOneOf, ProvisionPoolsForProgramResponseType, ProvisionPoolsForProgramResponseTypeWithLiterals, QueryPoolsRequest, QueryPoolsResponse, RateLimitedPolicy, RateLimitedPolicyPeriodOneOf, RateLimitedPolicyType, RateLimitedPolicyTypeWithLiterals, RedeemBenefitRequest, RedemptionDetails, ReleaseBenefitReservationRequest, ReleaseBenefitReservationResponse, RenewPoolsForProgramRequest, RenewPoolsForProgramResponse, ReserveBenefitRequest, ReserveBenefitResponse, RestoreInfo, RolloverConfiguration, SortOrder, SortOrderWithLiterals, Sorting, SyncResult, Type, TypeWithLiterals, Update, UpdatePoolRequest, UpdatePoolResponse, UpdatePoolStatusRequest, UpdatePoolStatusRequestPoolSelectorOneOf, UpdatePoolStatusResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeekDay, WeekDayWithLiterals } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function getPool$1(httpClient: HttpClient): GetPoolSignature;
|
|
6
6
|
interface GetPoolSignature {
|
|
@@ -70,7 +70,7 @@ interface BulkCheckBenefitEligibilitySignature {
|
|
|
70
70
|
/**
|
|
71
71
|
* Checks if benefits can currently be redeemed.
|
|
72
72
|
*
|
|
73
|
-
* To be redeemed, a benefit's pool must be active and the associated balance must greater
|
|
73
|
+
* To be redeemed, a benefit's pool must be active and the associated balance must be greater than the cost of the benefit.
|
|
74
74
|
*
|
|
75
75
|
* 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.
|
|
76
76
|
*/
|
package/build/cjs/index.js
CHANGED
|
@@ -58,7 +58,204 @@ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
|
58
58
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
59
59
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
60
60
|
function resolveWixBenefitProgramsV1PoolPoolServiceUrl(opts) {
|
|
61
|
-
const domainToMappings = {
|
|
61
|
+
const domainToMappings = {
|
|
62
|
+
"api._api_base_domain_": [
|
|
63
|
+
{
|
|
64
|
+
srcPath: "/pools",
|
|
65
|
+
destPath: ""
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
_: [
|
|
69
|
+
{
|
|
70
|
+
srcPath: "/_api/benefit-programs-pools",
|
|
71
|
+
destPath: ""
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
srcPath: "/_api/benefit-programs/v1/bulk/benefits",
|
|
75
|
+
destPath: "/v1/bulk/benefits"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
srcPath: "/_api/benefit-programs/v1/bulk/pools",
|
|
79
|
+
destPath: "/v1/bulk/pools"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
srcPath: "/_api/benefit-programs/v1/pools",
|
|
83
|
+
destPath: "/v1/pools"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
srcPath: "/_api/benefit-programs/v1/benefits",
|
|
87
|
+
destPath: "/v1/benefits"
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"editor._base_domain_": [
|
|
91
|
+
{
|
|
92
|
+
srcPath: "/_api/benefit-programs-pools",
|
|
93
|
+
destPath: ""
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
srcPath: "/_api/benefit-programs/v1/bulk/benefits",
|
|
97
|
+
destPath: "/v1/bulk/benefits"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
srcPath: "/_api/benefit-programs/v1/bulk/pools",
|
|
101
|
+
destPath: "/v1/bulk/pools"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
srcPath: "/_api/benefit-programs/v1/pools",
|
|
105
|
+
destPath: "/v1/pools"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
srcPath: "/_api/benefit-programs/v1/benefits",
|
|
109
|
+
destPath: "/v1/benefits"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"blocks._base_domain_": [
|
|
113
|
+
{
|
|
114
|
+
srcPath: "/_api/benefit-programs-pools",
|
|
115
|
+
destPath: ""
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
srcPath: "/_api/benefit-programs/v1/bulk/benefits",
|
|
119
|
+
destPath: "/v1/bulk/benefits"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
srcPath: "/_api/benefit-programs/v1/bulk/pools",
|
|
123
|
+
destPath: "/v1/bulk/pools"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
srcPath: "/_api/benefit-programs/v1/pools",
|
|
127
|
+
destPath: "/v1/pools"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
srcPath: "/_api/benefit-programs/v1/benefits",
|
|
131
|
+
destPath: "/v1/benefits"
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"create.editorx": [
|
|
135
|
+
{
|
|
136
|
+
srcPath: "/_api/benefit-programs-pools",
|
|
137
|
+
destPath: ""
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
srcPath: "/_api/benefit-programs/v1/bulk/benefits",
|
|
141
|
+
destPath: "/v1/bulk/benefits"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
srcPath: "/_api/benefit-programs/v1/bulk/pools",
|
|
145
|
+
destPath: "/v1/bulk/pools"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
srcPath: "/_api/benefit-programs/v1/pools",
|
|
149
|
+
destPath: "/v1/pools"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
srcPath: "/_api/benefit-programs/v1/benefits",
|
|
153
|
+
destPath: "/v1/benefits"
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
"editor.wixapps.net": [
|
|
157
|
+
{
|
|
158
|
+
srcPath: "/_api/benefit-programs-pools",
|
|
159
|
+
destPath: ""
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
srcPath: "/_api/benefit-programs/v1/bulk/benefits",
|
|
163
|
+
destPath: "/v1/bulk/benefits"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
srcPath: "/_api/benefit-programs/v1/bulk/pools",
|
|
167
|
+
destPath: "/v1/bulk/pools"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
srcPath: "/_api/benefit-programs/v1/pools",
|
|
171
|
+
destPath: "/v1/pools"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
srcPath: "/_api/benefit-programs/v1/benefits",
|
|
175
|
+
destPath: "/v1/benefits"
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
"manage._base_domain_": [
|
|
179
|
+
{
|
|
180
|
+
srcPath: "/_api/benefit-programs-pools",
|
|
181
|
+
destPath: ""
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
srcPath: "/_api/benefit-programs/v1/bulk/benefits",
|
|
185
|
+
destPath: "/v1/bulk/benefits"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
srcPath: "/_api/benefit-programs/v1/bulk/pools",
|
|
189
|
+
destPath: "/v1/bulk/pools"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
srcPath: "/_api/benefit-programs/v1/pools",
|
|
193
|
+
destPath: "/v1/pools"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
srcPath: "/_api/benefit-programs/v1/benefits",
|
|
197
|
+
destPath: "/v1/benefits"
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
"www._base_domain_": [
|
|
201
|
+
{
|
|
202
|
+
srcPath: "/_api/benefit-programs-pools",
|
|
203
|
+
destPath: ""
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
srcPath: "/_api/benefit-programs/v1/benefits",
|
|
207
|
+
destPath: "/v1/benefits"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
srcPath: "/_api/benefit-programs/v1/pools",
|
|
211
|
+
destPath: "/v1/pools"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
srcPath: "/_api/benefit-programs/v1/bulk/benefits",
|
|
215
|
+
destPath: "/v1/bulk/benefits"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
srcPath: "/_api/benefit-programs/v1/bulk/pools",
|
|
219
|
+
destPath: "/v1/bulk/pools"
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"*.dev.wix-code.com": [
|
|
223
|
+
{
|
|
224
|
+
srcPath: "/_api/benefit-programs/v1/bulk/benefits",
|
|
225
|
+
destPath: "/v1/bulk/benefits"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
srcPath: "/_api/benefit-programs/v1/bulk/pools",
|
|
229
|
+
destPath: "/v1/bulk/pools"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
srcPath: "/_api/benefit-programs/v1/pools",
|
|
233
|
+
destPath: "/v1/pools"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
srcPath: "/_api/benefit-programs/v1/benefits",
|
|
237
|
+
destPath: "/v1/benefits"
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
"www.wixapis.com": [
|
|
241
|
+
{
|
|
242
|
+
srcPath: "/benefit-programs/v1/bulk/benefits",
|
|
243
|
+
destPath: "/v1/bulk/benefits"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
srcPath: "/benefit-programs/v1/bulk/pools",
|
|
247
|
+
destPath: "/v1/bulk/pools"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
srcPath: "/benefit-programs/v1/pools",
|
|
251
|
+
destPath: "/v1/pools"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
srcPath: "/benefit-programs/v1/benefits",
|
|
255
|
+
destPath: "/v1/benefits"
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
};
|
|
62
259
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
63
260
|
}
|
|
64
261
|
var PACKAGE_NAME = "@wix/auto_sdk_benefit-programs_pools";
|