@wix/auto_sdk_benefit-programs_pools 1.0.31 → 1.0.33

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +1 -198
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +46 -1
  5. package/build/cjs/index.typings.js +1 -198
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +46 -1
  8. package/build/cjs/meta.js +1 -198
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +1 -198
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +46 -1
  14. package/build/es/index.typings.mjs +1 -198
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +46 -1
  17. package/build/es/meta.mjs +1 -198
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js +1 -198
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +46 -1
  23. package/build/internal/cjs/index.typings.js +1 -198
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +46 -1
  26. package/build/internal/cjs/meta.js +1 -198
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs +1 -198
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +46 -1
  32. package/build/internal/es/index.typings.mjs +1 -198
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +46 -1
  35. package/build/internal/es/meta.mjs +1 -198
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1110,6 +1110,51 @@ interface EligibleBenefit {
1110
1110
  */
1111
1111
  price?: string | null;
1112
1112
  }
1113
+ interface BalanceAmount {
1114
+ /**
1115
+ * number of available credits.
1116
+ * @decimalValue options { maxScale:4 }
1117
+ * @readonly
1118
+ */
1119
+ available?: string;
1120
+ /**
1121
+ * number of reserved credits.
1122
+ * @decimalValue options { maxScale:4 }
1123
+ * @readonly
1124
+ */
1125
+ reserved?: string;
1126
+ }
1127
+ interface PoolInfo {
1128
+ /** Current pool balance */
1129
+ balance?: BalanceAmount;
1130
+ /**
1131
+ * Initial available amount for associated balances.
1132
+ * @decimalValue options { gte:0, maxScale:4 }
1133
+ */
1134
+ creditAmount?: string | null;
1135
+ /**
1136
+ * Pool name
1137
+ * @maxLength 64
1138
+ */
1139
+ displayName?: string;
1140
+ /**
1141
+ * Pool description
1142
+ * @maxLength 256
1143
+ */
1144
+ description?: string;
1145
+ }
1146
+ interface BenefitInfo {
1147
+ /**
1148
+ * Benefit name
1149
+ * @maxLength 64
1150
+ */
1151
+ displayName?: string;
1152
+ /**
1153
+ * Benefit description
1154
+ * @maxLength 256
1155
+ */
1156
+ description?: string;
1157
+ }
1113
1158
  declare enum EligibilityCheckResultType {
1114
1159
  /** Unknown eligibility. */
1115
1160
  UNKNOWN = "UNKNOWN",
@@ -2116,4 +2161,4 @@ interface BulkUpdatePoolsOptions {
2116
2161
  returnEntity?: boolean;
2117
2162
  }
2118
2163
 
2119
- export { type ActionEvent, type ApplicationError, type AsyncResult, type Benefit, type BenefitAlreadyRedeemed, type BenefitNotFound, type BenefitRedeemed, type BenefitReservationCanceled, type BenefitReservationReleased, type BenefitReserved, type BenefitSelector, type BulkActionMetadata, type BulkCheckBenefitEligibilityOptions, type BulkCheckBenefitEligibilityRequest, type BulkCheckBenefitEligibilityResponse, type BulkEligibilityCheckResult, type BulkPoolResult, type BulkUpdatePoolsOptions, type BulkUpdatePoolsRequest, type BulkUpdatePoolsResponse, type ByItemReference, type ByItemReferenceFilter, type ByPoolDefinitionIdAndProgramDefinitionIdOptions, type ByProgramIdOptions, type CancelBenefitReservationRequest, type CancelBenefitReservationResponse, type CheckBenefitEligibilityOptions, type CheckBenefitEligibilityRequest, type CheckBenefitEligibilityResponse, type CommonIdentificationData, type CommonIdentificationDataIdOneOf, type CountNumberOfPoolsInProvisioningStatusRequest, type CountNumberOfPoolsInProvisioningStatusResponse, type CreatePoolRequest, type CreatePoolResponse, type CreditConfiguration, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomPolicy, type DeletePoolRequest, type DeletePoolResponse, type Details, type DomainEvent, type DomainEventBodyOneOf, type EligibilityCheckResult, type EligibilityCheckResultResultOneOf, EligibilityCheckResultType, type EligibilityCheckResultTypeWithLiterals, type Eligible, type EligibleBenefit, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type FailureDetails, type Filter, type FilterFilterOneOf, type FixedIntervalPolicy, type GetEligibleBenefitsApplicationErrors, type GetEligibleBenefitsOptions, type GetEligibleBenefitsRequest, type GetEligibleBenefitsResponse, type GetPoolRequest, type GetPoolResponse, type IdentificationData, type IdentificationDataIdOneOf, IdentityType, type IdentityTypeWithLiterals, type InvalidPoolDefinitionReference, type ItemMetadata, type ItemReference, type ListPoolsRequest, ListPoolsRequestType, type ListPoolsRequestTypeWithLiterals, type ListPoolsResponse, type MaskedPool, type MessageEnvelope, type NotEnoughBalance, type Policy, type PolicyExpression, type PolicyExpressionAnd, type PolicyExpressionEvaluatedToFalse, type PolicyExpressionExpressionOneOf, type PolicyExpressionNot, type PolicyExpressionOr, PolicyExpressionType, type PolicyExpressionTypeWithLiterals, type PolicyPolicyOneOf, type Pool, type PoolDefinitionAndProgramDefinition, type PoolDefinitionLookupId, type PoolDefinitionLookupIdIdOneOf, type PoolEnded, type PoolNotActive, type PoolNotFound, PoolOrigin, type PoolOriginWithLiterals, type PoolPaused, type PoolProgramInfo, type PoolProvisionJobFinished, type PoolProvisioned, type PoolRenewalAction, type PoolRenewalActionActionOneOf, PoolRenewalActionType, type PoolRenewalActionTypeWithLiterals, type PoolRenewed, type PoolResumed, PoolSelectorType, type PoolSelectorTypeWithLiterals, PoolStatus, type PoolStatusUpdateJobFinished, type PoolStatusUpdateJobFinishedContextOneOf, type PoolStatusWithLiterals, type PoolWithItems, type PoolsQueryBuilder, type PoolsQueryResult, type ProgramDefinitionInfo, type ProgramInfo, type ProvisionPoolsForProgramRequest, type ProvisionPoolsForProgramResponse, type ProvisionPoolsForProgramResponseResultOneOf, ProvisionPoolsForProgramResponseType, type ProvisionPoolsForProgramResponseTypeWithLiterals, type QueryPoolsRequest, type QueryPoolsResponse, type RateLimitedPolicy, type RateLimitedPolicyPeriodOneOf, RateLimitedPolicyType, type RateLimitedPolicyTypeWithLiterals, type RedeemBenefitApplicationErrors, type RedeemBenefitOptions, type RedeemBenefitRequest, type RedeemBenefitResponse, type RedemptionDetails, type ReleaseBenefitReservationRequest, type ReleaseBenefitReservationResponse, type RenewPoolsForProgramRequest, type RenewPoolsForProgramResponse, type ReserveBenefitRequest, type ReserveBenefitResponse, type RestoreInfo, type RolloverConfiguration, SortOrder, type SortOrderWithLiterals, type Sorting, type SyncResult, Type, type TypeWithLiterals, type Update, type UpdatePool, type UpdatePoolRequest, type UpdatePoolResponse, type UpdatePoolStatusRequest, type UpdatePoolStatusRequestPoolSelectorOneOf, type UpdatePoolStatusResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeekDay, type WeekDayWithLiterals, bulkCheckBenefitEligibility, bulkUpdatePools, checkBenefitEligibility, getEligibleBenefits, getPool, queryPools, redeemBenefit, updatePool };
2164
+ export { type ActionEvent, type ApplicationError, type AsyncResult, type BalanceAmount, type Benefit, type BenefitAlreadyRedeemed, type BenefitInfo, type BenefitNotFound, type BenefitRedeemed, type BenefitReservationCanceled, type BenefitReservationReleased, type BenefitReserved, type BenefitSelector, type BulkActionMetadata, type BulkCheckBenefitEligibilityOptions, type BulkCheckBenefitEligibilityRequest, type BulkCheckBenefitEligibilityResponse, type BulkEligibilityCheckResult, type BulkPoolResult, type BulkUpdatePoolsOptions, type BulkUpdatePoolsRequest, type BulkUpdatePoolsResponse, type ByItemReference, type ByItemReferenceFilter, type ByPoolDefinitionIdAndProgramDefinitionIdOptions, type ByProgramIdOptions, type CancelBenefitReservationRequest, type CancelBenefitReservationResponse, type CheckBenefitEligibilityOptions, type CheckBenefitEligibilityRequest, type CheckBenefitEligibilityResponse, type CommonIdentificationData, type CommonIdentificationDataIdOneOf, type CountNumberOfPoolsInProvisioningStatusRequest, type CountNumberOfPoolsInProvisioningStatusResponse, type CreatePoolRequest, type CreatePoolResponse, type CreditConfiguration, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomPolicy, type DeletePoolRequest, type DeletePoolResponse, type Details, type DomainEvent, type DomainEventBodyOneOf, type EligibilityCheckResult, type EligibilityCheckResultResultOneOf, EligibilityCheckResultType, type EligibilityCheckResultTypeWithLiterals, type Eligible, type EligibleBenefit, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type FailureDetails, type Filter, type FilterFilterOneOf, type FixedIntervalPolicy, type GetEligibleBenefitsApplicationErrors, type GetEligibleBenefitsOptions, type GetEligibleBenefitsRequest, type GetEligibleBenefitsResponse, type GetPoolRequest, type GetPoolResponse, type IdentificationData, type IdentificationDataIdOneOf, IdentityType, type IdentityTypeWithLiterals, type InvalidPoolDefinitionReference, type ItemMetadata, type ItemReference, type ListPoolsRequest, ListPoolsRequestType, type ListPoolsRequestTypeWithLiterals, type ListPoolsResponse, type MaskedPool, type MessageEnvelope, type NotEnoughBalance, type Policy, type PolicyExpression, type PolicyExpressionAnd, type PolicyExpressionEvaluatedToFalse, type PolicyExpressionExpressionOneOf, type PolicyExpressionNot, type PolicyExpressionOr, PolicyExpressionType, type PolicyExpressionTypeWithLiterals, type PolicyPolicyOneOf, type Pool, type PoolDefinitionAndProgramDefinition, type PoolDefinitionLookupId, type PoolDefinitionLookupIdIdOneOf, type PoolEnded, type PoolInfo, type PoolNotActive, type PoolNotFound, PoolOrigin, type PoolOriginWithLiterals, type PoolPaused, type PoolProgramInfo, type PoolProvisionJobFinished, type PoolProvisioned, type PoolRenewalAction, type PoolRenewalActionActionOneOf, PoolRenewalActionType, type PoolRenewalActionTypeWithLiterals, type PoolRenewed, type PoolResumed, PoolSelectorType, type PoolSelectorTypeWithLiterals, PoolStatus, type PoolStatusUpdateJobFinished, type PoolStatusUpdateJobFinishedContextOneOf, type PoolStatusWithLiterals, type PoolWithItems, type PoolsQueryBuilder, type PoolsQueryResult, type ProgramDefinitionInfo, type ProgramInfo, type ProvisionPoolsForProgramRequest, type ProvisionPoolsForProgramResponse, type ProvisionPoolsForProgramResponseResultOneOf, ProvisionPoolsForProgramResponseType, type ProvisionPoolsForProgramResponseTypeWithLiterals, type QueryPoolsRequest, type QueryPoolsResponse, type RateLimitedPolicy, type RateLimitedPolicyPeriodOneOf, RateLimitedPolicyType, type RateLimitedPolicyTypeWithLiterals, type RedeemBenefitApplicationErrors, type RedeemBenefitOptions, type RedeemBenefitRequest, type RedeemBenefitResponse, type RedemptionDetails, type ReleaseBenefitReservationRequest, type ReleaseBenefitReservationResponse, type RenewPoolsForProgramRequest, type RenewPoolsForProgramResponse, type ReserveBenefitRequest, type ReserveBenefitResponse, type RestoreInfo, type RolloverConfiguration, SortOrder, type SortOrderWithLiterals, type Sorting, type SyncResult, Type, type TypeWithLiterals, type Update, type UpdatePool, type UpdatePoolRequest, type UpdatePoolResponse, type UpdatePoolStatusRequest, type UpdatePoolStatusRequestPoolSelectorOneOf, type UpdatePoolStatusResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeekDay, type WeekDayWithLiterals, bulkCheckBenefitEligibility, bulkUpdatePools, checkBenefitEligibility, getEligibleBenefits, getPool, queryPools, redeemBenefit, updatePool };
@@ -58,204 +58,7 @@ 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 = {
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
- };
61
+ const domainToMappings = {};
259
62
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
260
63
  }
261
64
  var PACKAGE_NAME = "@wix/auto_sdk_benefit-programs_pools";