@wix/auto_sdk_benefit-programs_pool-definitions 1.0.3 → 1.0.5
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/src/benefit-programs-v1-pool-definition-pool-definitions.http.d.ts +15 -27
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.http.js +15 -27
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.http.js.map +1 -1
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.public.d.ts +19 -27
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.public.js.map +1 -1
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.types.d.ts +112 -195
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.types.js +12 -23
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.types.js.map +1 -1
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.universal.d.ts +153 -277
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.universal.js +31 -50
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.universal.js.map +1 -1
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.http.d.ts +15 -27
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.http.js +15 -27
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.http.js.map +1 -1
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.public.d.ts +19 -27
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.public.js.map +1 -1
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.types.d.ts +112 -195
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.types.js +12 -23
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.types.js.map +1 -1
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.universal.d.ts +153 -277
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.universal.js +31 -50
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.universal.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.http.d.ts +15 -27
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.http.js +15 -27
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.http.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.public.d.ts +19 -27
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.public.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.types.d.ts +112 -195
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.types.js +12 -23
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.types.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.universal.d.ts +153 -277
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.universal.js +31 -50
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.universal.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.http.d.ts +15 -27
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.http.js +15 -27
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.http.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.public.d.ts +19 -27
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.public.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.types.d.ts +112 -195
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.types.js +12 -23
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.types.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.universal.d.ts +153 -277
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.universal.js +31 -50
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -24,28 +24,20 @@ export interface PoolDefinition {
|
|
|
24
24
|
*/
|
|
25
25
|
_updatedDate?: Date | null;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Pool definition name.
|
|
28
28
|
* @maxLength 128
|
|
29
29
|
*/
|
|
30
30
|
displayName?: string;
|
|
31
31
|
/**
|
|
32
|
-
* List of program
|
|
32
|
+
* List of program definition IDs that are associated with this pool definition.
|
|
33
33
|
* @format GUID
|
|
34
34
|
* @maxSize 100
|
|
35
35
|
*/
|
|
36
36
|
programDefinitionIds?: string[];
|
|
37
|
-
/**
|
|
38
|
-
* Benefit pool information.
|
|
39
|
-
*
|
|
40
|
-
* Includes the item, policy, and credit configurations.
|
|
41
|
-
*/
|
|
37
|
+
/** Pool definition benefits and settings. */
|
|
42
38
|
details?: Details;
|
|
43
39
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* This namespace is used to organize and retrieve pool definitions and their associated benefit pools.
|
|
47
|
-
*
|
|
48
|
-
* It should match the namespace used in the program definitions.
|
|
40
|
+
* Namespace for your app or site's benefit programs.
|
|
49
41
|
* @immutable
|
|
50
42
|
* @minLength 1
|
|
51
43
|
* @maxLength 50
|
|
@@ -54,82 +46,55 @@ export interface PoolDefinition {
|
|
|
54
46
|
/**
|
|
55
47
|
* Custom field data for the pool definition object.
|
|
56
48
|
*
|
|
57
|
-
* [Extended fields](https://dev.wix.com/docs/
|
|
49
|
+
* [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.
|
|
58
50
|
*/
|
|
59
51
|
extendedFields?: ExtendedFields;
|
|
60
52
|
}
|
|
61
53
|
export interface Details {
|
|
62
54
|
/**
|
|
63
|
-
*
|
|
55
|
+
* List of benefits.
|
|
64
56
|
* @maxSize 10
|
|
65
57
|
*/
|
|
66
58
|
benefits?: Benefit[];
|
|
67
59
|
/**
|
|
68
|
-
*
|
|
60
|
+
* Credit settings.
|
|
69
61
|
*
|
|
70
|
-
*
|
|
62
|
+
* If this object is empty, you can't set a price for the benefit.
|
|
71
63
|
*/
|
|
72
64
|
creditConfiguration?: CreditConfiguration;
|
|
73
|
-
/**
|
|
74
|
-
* Defines the redemption policy for a benefit pool. This includes specifying the days of the week and the hours during which the benefits can be redeemed.
|
|
75
|
-
*
|
|
76
|
-
* Policy types may be either:
|
|
77
|
-
*
|
|
78
|
-
* + FIXED INTERVALS: Specifies the timing during the day.
|
|
79
|
-
*
|
|
80
|
-
* + RATE LIMITED: Specifies how many times the benefit can be redeemed within a given renewal cycle.
|
|
81
|
-
*
|
|
82
|
-
* Each selected policy type must have its corresponding policy options. For example, the `fixedInterval` type requires `fixedIntervalOptions` to be included in the parameters.
|
|
83
|
-
*
|
|
84
|
-
* This parameter is the default policy for all the benefits in the benefit pool. It may be overridden for specific benefits in the `details.benefits.policyExpression` parameter.
|
|
85
|
-
*/
|
|
86
|
-
policyExpression?: PolicyExpression;
|
|
87
|
-
/** Additional info set by the benefit provider. */
|
|
65
|
+
/** Additional information relating to this object. */
|
|
88
66
|
additionalData?: Record<string, any> | null;
|
|
89
67
|
}
|
|
90
68
|
export interface Benefit {
|
|
91
69
|
/**
|
|
92
|
-
*
|
|
70
|
+
* Unique identifier for this benefit.
|
|
93
71
|
*
|
|
94
|
-
* This key is consistent across the pool definition and all
|
|
72
|
+
* This key is consistent across the pool definition and all associated pools that contain this benefit.
|
|
95
73
|
* @maxLength 64
|
|
96
74
|
*/
|
|
97
75
|
benefitKey?: string;
|
|
98
76
|
/**
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* This ID is returned when calling Create Item.
|
|
102
|
-
*
|
|
103
|
-
* It is used to link the specific benefit item to its corresponding location within the benefit pool, ensuring proper association between the item and the pool definition.
|
|
77
|
+
* ID that is used to associated items with this benefit.
|
|
104
78
|
* @format GUID
|
|
105
79
|
* @immutable
|
|
106
80
|
* @readonly
|
|
107
81
|
*/
|
|
108
82
|
itemSetId?: string | null;
|
|
109
83
|
/**
|
|
110
|
-
* Price of the benefit
|
|
111
|
-
* Represents the cost to redeem the benefit.
|
|
112
|
-
*
|
|
113
|
-
* Don't set a price if the `details.creditConfiguration` is empty. Since the benefits have an unlimited redemption limit, they can't have an associated price.
|
|
84
|
+
* Price of the benefit in credits. The price is the same for all of this benefit's items.
|
|
114
85
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
115
86
|
*/
|
|
116
87
|
price?: string | null;
|
|
117
|
-
/**
|
|
118
|
-
* Defines the redemption policy for a specific benefit. This includes specifying the days of the week and the hours during which the benefits can be redeemed.
|
|
119
|
-
*
|
|
120
|
-
* Overrides the default policies in `benefit.details`.
|
|
121
|
-
*/
|
|
122
|
-
policyExpression?: PolicyExpression;
|
|
123
|
-
/** Additional info that was set by the benefit provider. */
|
|
88
|
+
/** Additional information for this benefit. */
|
|
124
89
|
additionalData?: Record<string, any> | null;
|
|
125
90
|
/**
|
|
126
|
-
* ID of the app providing the benefit.
|
|
91
|
+
* ID of the app providing the benefit items.
|
|
127
92
|
* @format GUID
|
|
128
93
|
* @immutable
|
|
129
94
|
*/
|
|
130
95
|
providerAppId?: string | null;
|
|
131
96
|
/**
|
|
132
|
-
* Benefit
|
|
97
|
+
* Benefit name.
|
|
133
98
|
* @maxLength 40
|
|
134
99
|
*/
|
|
135
100
|
displayName?: string | null;
|
|
@@ -140,50 +105,46 @@ export interface Benefit {
|
|
|
140
105
|
description?: string | null;
|
|
141
106
|
}
|
|
142
107
|
export interface PolicyExpression extends PolicyExpressionExpressionOneOf {
|
|
143
|
-
/**
|
|
108
|
+
/** Benefits can be redeemed if the expression in this object is not fulfilled. */
|
|
144
109
|
operatorNotOptions?: PolicyExpressionNot;
|
|
145
|
-
/**
|
|
110
|
+
/** Benefits can be redeemed if all the expression in this object's array are fulfilled. */
|
|
146
111
|
operatorAndOptions?: PolicyExpressionAnd;
|
|
147
|
-
/**
|
|
112
|
+
/** Benefits can be redeemed if at least one of the expressions in this object's array is fulfilled. */
|
|
148
113
|
operatorOrOptions?: PolicyExpressionOr;
|
|
149
|
-
/** Defines
|
|
114
|
+
/** Defines when benefits can be redeemed or how many benefits can be redeemed in a specific time period. */
|
|
150
115
|
policyOptions?: Policy;
|
|
151
|
-
/**
|
|
152
|
-
* Declare type of policy conditions or settings to use. Use together with the associated policy options to construct policy terms.
|
|
153
|
-
*
|
|
154
|
-
* Different operators can be used to combine multiple policy terms.
|
|
155
|
-
*/
|
|
116
|
+
/** Policy expression type. */
|
|
156
117
|
type?: PolicyExpressionType;
|
|
157
118
|
}
|
|
158
119
|
/** @oneof */
|
|
159
120
|
export interface PolicyExpressionExpressionOneOf {
|
|
160
|
-
/**
|
|
121
|
+
/** Benefits can be redeemed if the expression in this object is not fulfilled. */
|
|
161
122
|
operatorNotOptions?: PolicyExpressionNot;
|
|
162
|
-
/**
|
|
123
|
+
/** Benefits can be redeemed if all the expression in this object's array are fulfilled. */
|
|
163
124
|
operatorAndOptions?: PolicyExpressionAnd;
|
|
164
|
-
/**
|
|
125
|
+
/** Benefits can be redeemed if at least one of the expressions in this object's array is fulfilled. */
|
|
165
126
|
operatorOrOptions?: PolicyExpressionOr;
|
|
166
|
-
/** Defines
|
|
127
|
+
/** Defines when benefits can be redeemed or how many benefits can be redeemed in a specific time period. */
|
|
167
128
|
policyOptions?: Policy;
|
|
168
129
|
}
|
|
169
130
|
export declare enum PolicyExpressionType {
|
|
170
131
|
UNKNOWN = "UNKNOWN",
|
|
171
|
-
/** Use with
|
|
132
|
+
/** Use with `operatorNotOptions`. */
|
|
172
133
|
OPERATOR_NOT = "OPERATOR_NOT",
|
|
173
|
-
/** Use with
|
|
134
|
+
/** Use with `operatorAndOptions`. */
|
|
174
135
|
OPERATOR_AND = "OPERATOR_AND",
|
|
175
|
-
/** Use with
|
|
136
|
+
/** Use with `operatorOrOptions`. */
|
|
176
137
|
OPERATOR_OR = "OPERATOR_OR",
|
|
177
|
-
/** Use with
|
|
138
|
+
/** Use with `policyOptions`. */
|
|
178
139
|
POLICY = "POLICY"
|
|
179
140
|
}
|
|
180
141
|
export interface PolicyExpressionNot {
|
|
181
|
-
/**
|
|
142
|
+
/** Policy expression. If this expression is not fulfilled, benefits can be redeemed. */
|
|
182
143
|
expression?: PolicyExpression;
|
|
183
144
|
}
|
|
184
145
|
export interface PolicyExpressionAnd {
|
|
185
146
|
/**
|
|
186
|
-
*
|
|
147
|
+
* Array of policy expressions. If all expressions are fulfilled, benefits can be redeemed.
|
|
187
148
|
* @minSize 2
|
|
188
149
|
* @maxSize 10
|
|
189
150
|
*/
|
|
@@ -191,62 +152,71 @@ export interface PolicyExpressionAnd {
|
|
|
191
152
|
}
|
|
192
153
|
export interface PolicyExpressionOr {
|
|
193
154
|
/**
|
|
194
|
-
*
|
|
155
|
+
* Array of policy expressions. If at least one expression is fulfilled, benefits can be redeemed.
|
|
195
156
|
* @minSize 2
|
|
196
157
|
* @maxSize 10
|
|
197
158
|
*/
|
|
198
159
|
expressions?: PolicyExpression[];
|
|
199
160
|
}
|
|
200
161
|
export interface Policy extends PolicyPolicyOneOf {
|
|
201
|
-
/**
|
|
162
|
+
/**
|
|
163
|
+
* Defines an interval during which the policy expression is fulfilled.
|
|
164
|
+
*
|
|
165
|
+
* If `fromWeekDay` and `toWeekDay` are defined, this interval applies weekly. Otherwise, it applies daily.
|
|
166
|
+
*/
|
|
202
167
|
fixedIntervalOptions?: FixedIntervalPolicy;
|
|
203
|
-
/**
|
|
168
|
+
/** Maximum amount of times a benefit can be redeemed during a specified time period. */
|
|
204
169
|
rateLimitedOptions?: RateLimitedPolicy;
|
|
205
|
-
/** Custom policy
|
|
170
|
+
/** Custom policy defined by a different app. */
|
|
206
171
|
customOptions?: CustomPolicy;
|
|
207
|
-
/**
|
|
172
|
+
/** Policy type. */
|
|
208
173
|
type?: Type;
|
|
209
174
|
}
|
|
210
175
|
/** @oneof */
|
|
211
176
|
export interface PolicyPolicyOneOf {
|
|
212
|
-
/**
|
|
177
|
+
/**
|
|
178
|
+
* Defines an interval during which the policy expression is fulfilled.
|
|
179
|
+
*
|
|
180
|
+
* If `fromWeekDay` and `toWeekDay` are defined, this interval applies weekly. Otherwise, it applies daily.
|
|
181
|
+
*/
|
|
213
182
|
fixedIntervalOptions?: FixedIntervalPolicy;
|
|
214
|
-
/**
|
|
183
|
+
/** Maximum amount of times a benefit can be redeemed during a specified time period. */
|
|
215
184
|
rateLimitedOptions?: RateLimitedPolicy;
|
|
216
|
-
/** Custom policy
|
|
185
|
+
/** Custom policy defined by a different app. */
|
|
217
186
|
customOptions?: CustomPolicy;
|
|
218
187
|
}
|
|
219
188
|
export declare enum Type {
|
|
220
189
|
/** Unknown policy type. */
|
|
221
190
|
UNKNOWN = "UNKNOWN",
|
|
222
|
-
/**
|
|
191
|
+
/** Use with `fixedIntervalOptions`. */
|
|
223
192
|
FIXED_INTERVAL = "FIXED_INTERVAL",
|
|
224
|
-
/**
|
|
193
|
+
/** Use with `rateLimitedOptions`. */
|
|
225
194
|
RATE_LIMITED = "RATE_LIMITED",
|
|
195
|
+
/** Use with `customOptions`. */
|
|
226
196
|
CUSTOM = "CUSTOM"
|
|
227
197
|
}
|
|
228
198
|
export interface FixedIntervalPolicy {
|
|
229
|
-
/** Weekday that this interval starts from. If this field is
|
|
199
|
+
/** Weekday that this interval starts from. If this field is defined, then `toWeekDay` is required. */
|
|
230
200
|
fromWeekDay?: WeekDay;
|
|
231
|
-
/** Weekday that this interval ends at. If this field is
|
|
201
|
+
/** Weekday that this interval ends at. If this field is defined, then `fromWeekDay` is required. */
|
|
232
202
|
toWeekDay?: WeekDay;
|
|
233
203
|
/**
|
|
234
|
-
* Hour that this interval starts from. If this field is
|
|
204
|
+
* Hour that this interval starts from. If this field is defined, then `toHour` is required.
|
|
235
205
|
* @max 23
|
|
236
206
|
*/
|
|
237
207
|
fromHour?: number | null;
|
|
238
208
|
/**
|
|
239
|
-
* Hour that this interval ends at. If this field is
|
|
209
|
+
* Hour that this interval ends at. If this field is defined, then `fromHour` is required.
|
|
240
210
|
* @max 23
|
|
241
211
|
*/
|
|
242
212
|
toHour?: number | null;
|
|
243
213
|
/**
|
|
244
|
-
* Minute that this interval starts from. If this field is
|
|
214
|
+
* Minute that this interval starts from. If this field is defined, then `toMinute` is required.
|
|
245
215
|
* @max 59
|
|
246
216
|
*/
|
|
247
217
|
fromMinute?: number | null;
|
|
248
218
|
/**
|
|
249
|
-
* Minute that this interval ends at. If this field is
|
|
219
|
+
* Minute that this interval ends at. If this field is defined, then `fromMinute` is required.
|
|
250
220
|
* @max 59
|
|
251
221
|
*/
|
|
252
222
|
toMinute?: number | null;
|
|
@@ -270,70 +240,60 @@ export declare enum WeekDay {
|
|
|
270
240
|
SUNDAY = "SUNDAY"
|
|
271
241
|
}
|
|
272
242
|
export interface RateLimitedPolicy extends RateLimitedPolicyPeriodOneOf {
|
|
273
|
-
/**
|
|
274
|
-
* Defines the timing of benefit policy redemption for specific days or hours.
|
|
275
|
-
*
|
|
276
|
-
* Used to set the timing policy for a maximum limit of redemptions.
|
|
277
|
-
*/
|
|
243
|
+
/** Fixed interval used to limit benefit redemption. */
|
|
278
244
|
fixedIntervalOptions?: FixedIntervalPolicy;
|
|
279
|
-
/** Maximum number of times benefit can be redeemed per
|
|
245
|
+
/** Maximum number of times a benefit can be redeemed per specified time period. */
|
|
280
246
|
times?: number;
|
|
281
|
-
/**
|
|
247
|
+
/** Time period type. */
|
|
282
248
|
type?: RateLimitedPolicyType;
|
|
283
249
|
}
|
|
284
250
|
/** @oneof */
|
|
285
251
|
export interface RateLimitedPolicyPeriodOneOf {
|
|
286
|
-
/**
|
|
287
|
-
* Defines the timing of benefit policy redemption for specific days or hours.
|
|
288
|
-
*
|
|
289
|
-
* Used to set the timing policy for a maximum limit of redemptions.
|
|
290
|
-
*/
|
|
252
|
+
/** Fixed interval used to limit benefit redemption. */
|
|
291
253
|
fixedIntervalOptions?: FixedIntervalPolicy;
|
|
292
254
|
}
|
|
293
255
|
export declare enum RateLimitedPolicyType {
|
|
294
256
|
/** Unknown rate limit method. */
|
|
295
257
|
UNKNOWN = "UNKNOWN",
|
|
296
|
-
/**
|
|
258
|
+
/** Time period is defined using `fixedIntervalOptions`. */
|
|
297
259
|
FIXED_INTERVAL = "FIXED_INTERVAL",
|
|
298
|
-
/**
|
|
260
|
+
/** Time period is from one program renewal to the next. */
|
|
299
261
|
PER_CYCLE = "PER_CYCLE"
|
|
300
262
|
}
|
|
301
263
|
/** Custom policy as implemented by the Entitlement Policy Provider */
|
|
302
264
|
export interface CustomPolicy {
|
|
303
265
|
/**
|
|
304
|
-
*
|
|
266
|
+
* Policy ID.
|
|
305
267
|
* @format GUID
|
|
306
268
|
*/
|
|
307
269
|
_id?: string;
|
|
308
270
|
/**
|
|
309
|
-
*
|
|
271
|
+
* ID of the app providing the policy.
|
|
310
272
|
* @format GUID
|
|
311
273
|
*/
|
|
312
274
|
appId?: string | null;
|
|
313
|
-
/** Additional
|
|
275
|
+
/** Additional information for this custom policy. */
|
|
314
276
|
additionalData?: Record<string, any> | null;
|
|
315
277
|
}
|
|
316
278
|
export interface CreditConfiguration {
|
|
317
279
|
/**
|
|
318
|
-
*
|
|
280
|
+
* Initial available amount for associated balances.
|
|
319
281
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
320
282
|
*/
|
|
321
283
|
amount?: string;
|
|
322
|
-
/** Rollover
|
|
284
|
+
/** Rollover settings. */
|
|
323
285
|
rolloverConfiguration?: RolloverConfiguration;
|
|
324
286
|
/**
|
|
325
|
-
*
|
|
287
|
+
* Credit unit display name.
|
|
326
288
|
* @maxLength 32
|
|
327
289
|
*/
|
|
328
290
|
unitDisplayName?: string | null;
|
|
329
291
|
}
|
|
330
292
|
export interface RolloverConfiguration {
|
|
331
|
-
/**
|
|
293
|
+
/** Whether unused credits rollover to a new cycle when a program renews. */
|
|
332
294
|
enabled?: boolean | null;
|
|
333
295
|
/**
|
|
334
|
-
*
|
|
335
|
-
*
|
|
336
|
-
* If current balance exceeds this cap, no credits will transfer into the next renewal cycle until the balance is within the allowable limit.
|
|
296
|
+
* Maximum amount of credits that can rollover to the next cycle when a program renews.
|
|
337
297
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
338
298
|
*/
|
|
339
299
|
balanceCap?: string | null;
|
|
@@ -363,23 +323,11 @@ export interface PoolDefinitionAddedToProgramDefinition {
|
|
|
363
323
|
export declare enum Cascade {
|
|
364
324
|
/** Unknown cascade. */
|
|
365
325
|
UNKNOWN_CASCADE = "UNKNOWN_CASCADE",
|
|
366
|
-
/**
|
|
367
|
-
* Updates the associated benefit pools to reflect the new or modified pool definition. The benefits will appear in existing programs at the beginning of their next renewal cycle.
|
|
368
|
-
*
|
|
369
|
-
* Existing programs will be updated in their next renewal cycle.
|
|
370
|
-
*/
|
|
326
|
+
/** Changes are applied to existing programs and pools when they are next renewed. */
|
|
371
327
|
NEXT_RENEWAL = "NEXT_RENEWAL",
|
|
372
|
-
/**
|
|
373
|
-
* Updates the associated benefit pools to reflect the new or modified pool definition immediately.
|
|
374
|
-
*
|
|
375
|
-
* Existing programs will be updated immediately.
|
|
376
|
-
*/
|
|
328
|
+
/** Changes are applied to associated programs and pools immediately. */
|
|
377
329
|
IMMEDIATELY = "IMMEDIATELY",
|
|
378
|
-
/**
|
|
379
|
-
* Updates the associated benefit pools to reflect the new or modified pool definition the next time the benefit pools are provisioned to a program.
|
|
380
|
-
*
|
|
381
|
-
* Existing programs will remain unaffected. Only newly purchased programs will display the benefits of this pool definition.
|
|
382
|
-
*/
|
|
330
|
+
/** Changes are not applied to existing associated programs and pools. They are only applied to future programs and pools. */
|
|
383
331
|
FUTURE_PROVISIONS = "FUTURE_PROVISIONS"
|
|
384
332
|
}
|
|
385
333
|
export interface PoolDefinitionRemovedFromProgramDefinition {
|
|
@@ -409,9 +357,9 @@ export interface CreatePoolDefinitionRequest {
|
|
|
409
357
|
/** Pool definition to create. */
|
|
410
358
|
poolDefinition: PoolDefinition;
|
|
411
359
|
/**
|
|
412
|
-
*
|
|
413
|
-
*
|
|
414
|
-
*
|
|
360
|
+
* Determines when the changes to the program definitions containing this pool definition will be applied to associated programs.
|
|
361
|
+
*
|
|
362
|
+
* Required if the `poolDefinition.programDefinitionIds` parameter is defined.
|
|
415
363
|
*/
|
|
416
364
|
cascade?: Cascade;
|
|
417
365
|
}
|
|
@@ -427,13 +375,13 @@ export interface BulkCreatePoolDefinitionsRequest {
|
|
|
427
375
|
*/
|
|
428
376
|
poolDefinitions: PoolDefinition[];
|
|
429
377
|
/**
|
|
430
|
-
*
|
|
431
|
-
*
|
|
432
|
-
*
|
|
378
|
+
* Determines when the changes to the program definitions containing these pool definitions will be applied to associated programs.
|
|
379
|
+
*
|
|
380
|
+
* Required if the `poolDefinition.programDefinitionIds` parameter is defined.
|
|
433
381
|
*/
|
|
434
382
|
cascade?: Cascade;
|
|
435
383
|
/**
|
|
436
|
-
* Whether to return the
|
|
384
|
+
* Whether to return the created pool definitions.
|
|
437
385
|
*
|
|
438
386
|
* Default: `false`
|
|
439
387
|
*/
|
|
@@ -441,9 +389,7 @@ export interface BulkCreatePoolDefinitionsRequest {
|
|
|
441
389
|
}
|
|
442
390
|
export interface BulkCreatePoolDefinitionsResponse {
|
|
443
391
|
/**
|
|
444
|
-
* List of
|
|
445
|
-
*
|
|
446
|
-
* Includes the pool definition and whether the creation was successful.
|
|
392
|
+
* List of created pool definitions and associated metadata.
|
|
447
393
|
* @minSize 1
|
|
448
394
|
* @maxSize 100
|
|
449
395
|
*/
|
|
@@ -489,11 +435,7 @@ export interface BulkActionMetadata {
|
|
|
489
435
|
export interface UpdatePoolDefinitionRequest {
|
|
490
436
|
/** Pool definition to update. */
|
|
491
437
|
poolDefinition: PoolDefinition;
|
|
492
|
-
/**
|
|
493
|
-
* Specifies the timing of updates to associated benefit pools.
|
|
494
|
-
* Determines how and when changes are applied to existing and future benefit pools.
|
|
495
|
-
* Required field.
|
|
496
|
-
*/
|
|
438
|
+
/** *Required.** Determines when the changes to this pool definition and program definitions containing it will be applied to associated programs and pools. */
|
|
497
439
|
cascade?: Cascade;
|
|
498
440
|
}
|
|
499
441
|
export interface UpdatePoolDefinitionResponse {
|
|
@@ -507,30 +449,24 @@ export interface BulkUpdatePoolDefinitionsRequest {
|
|
|
507
449
|
* @maxSize 100
|
|
508
450
|
*/
|
|
509
451
|
poolDefinitions?: MaskedPoolDefinition[];
|
|
510
|
-
/**
|
|
511
|
-
* Specifies the timing of updates to associated benefit pools.
|
|
512
|
-
* Determines how and when changes are applied to existing and future benefit pools.
|
|
513
|
-
* Required field.
|
|
514
|
-
*/
|
|
452
|
+
/** *Required.** Determines when the changes to these pool definitions program definitions containing them will be applied to associated programs and pools. */
|
|
515
453
|
cascade?: Cascade;
|
|
516
454
|
/**
|
|
517
|
-
* Whether to return the
|
|
455
|
+
* Whether to return the updated pool definitions.
|
|
518
456
|
*
|
|
519
457
|
* Default: `false`
|
|
520
458
|
*/
|
|
521
459
|
returnEntity?: boolean;
|
|
522
460
|
}
|
|
523
461
|
export interface MaskedPoolDefinition {
|
|
524
|
-
/** Pool definition to
|
|
462
|
+
/** Pool definition to update. */
|
|
525
463
|
poolDefinition?: PoolDefinition;
|
|
526
464
|
/** Explicit list of fields to update. */
|
|
527
465
|
fieldMask?: string[];
|
|
528
466
|
}
|
|
529
467
|
export interface BulkUpdatePoolDefinitionsResponse {
|
|
530
468
|
/**
|
|
531
|
-
* List of
|
|
532
|
-
*
|
|
533
|
-
* Includes the pool definition and whether the update was successful.
|
|
469
|
+
* List of updated pool definitions and associated metadata.
|
|
534
470
|
* @minSize 1
|
|
535
471
|
* @maxSize 100
|
|
536
472
|
*/
|
|
@@ -544,34 +480,25 @@ export interface DeletePoolDefinitionRequest {
|
|
|
544
480
|
* @format GUID
|
|
545
481
|
*/
|
|
546
482
|
poolDefinitionId: string;
|
|
547
|
-
/**
|
|
548
|
-
* Defines how the delete operation cascades to related pools.
|
|
549
|
-
* Specifies the timing of deletion regarding associated benefit pools.
|
|
550
|
-
* Required if the pool definition is associated with any program definition IDs.
|
|
551
|
-
*/
|
|
483
|
+
/** *Required**. Determines when the changes to this pool definition the program definitions containing it will be applied to associated programs and pools. */
|
|
552
484
|
cascade?: Cascade;
|
|
553
485
|
}
|
|
554
486
|
export interface DeletePoolDefinitionResponse {
|
|
555
487
|
}
|
|
556
488
|
export interface BulkDeletePoolDefinitionsRequest {
|
|
557
489
|
/**
|
|
558
|
-
*
|
|
490
|
+
* List of IDs of the pool definitions to delete.
|
|
559
491
|
* @minSize 1
|
|
560
492
|
* @maxSize 100
|
|
561
493
|
* @format GUID
|
|
562
494
|
*/
|
|
563
495
|
poolDefinitionIds: string[];
|
|
564
|
-
/**
|
|
565
|
-
* Specifies the timing of updates to associated benefit pools.
|
|
566
|
-
* Required if any of the pool definitions listed for deletion are associated with a program definition ID.
|
|
567
|
-
*/
|
|
496
|
+
/** *Required**. Determines when the changes to these pool definitions the program definitions containing it will be applied to associated programs and pools. */
|
|
568
497
|
cascade?: Cascade;
|
|
569
498
|
}
|
|
570
499
|
export interface BulkDeletePoolDefinitionsResponse {
|
|
571
500
|
/**
|
|
572
|
-
* List of
|
|
573
|
-
*
|
|
574
|
-
* Includes the pool definition and whether the deletion was successful.
|
|
501
|
+
* List of deleted pool definitions and associated metadata.
|
|
575
502
|
* @minSize 1
|
|
576
503
|
* @maxSize 100
|
|
577
504
|
*/
|
|
@@ -591,24 +518,20 @@ export interface GetPoolDefinitionResponse {
|
|
|
591
518
|
poolDefinition?: PoolDefinition;
|
|
592
519
|
}
|
|
593
520
|
export interface QueryPoolDefinitionsRequest {
|
|
594
|
-
/**
|
|
521
|
+
/** Filter, sort, and paging to apply to the query. */
|
|
595
522
|
query?: CursorQuery;
|
|
596
523
|
}
|
|
597
524
|
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
598
525
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
599
526
|
cursorPaging?: CursorPaging;
|
|
600
527
|
/**
|
|
601
|
-
* Filter object
|
|
602
|
-
*
|
|
603
|
-
*
|
|
604
|
-
* "fieldName2":{"$operator":"value2"}
|
|
605
|
-
* }`
|
|
606
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
528
|
+
* Filter object.
|
|
529
|
+
* See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
530
|
+
* for more information.
|
|
607
531
|
*/
|
|
608
532
|
filter?: Record<string, any> | null;
|
|
609
533
|
/**
|
|
610
|
-
*
|
|
611
|
-
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
534
|
+
* List of sort objects.
|
|
612
535
|
* @maxSize 5
|
|
613
536
|
*/
|
|
614
537
|
sort?: Sorting[];
|
|
@@ -620,11 +543,15 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
620
543
|
}
|
|
621
544
|
export interface Sorting {
|
|
622
545
|
/**
|
|
623
|
-
*
|
|
546
|
+
* Field to sort by.
|
|
624
547
|
* @maxLength 512
|
|
625
548
|
*/
|
|
626
549
|
fieldName?: string;
|
|
627
|
-
/**
|
|
550
|
+
/**
|
|
551
|
+
* Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
552
|
+
*
|
|
553
|
+
* Default: `ASC`
|
|
554
|
+
*/
|
|
628
555
|
order?: SortOrder;
|
|
629
556
|
}
|
|
630
557
|
export declare enum SortOrder {
|
|
@@ -635,7 +562,7 @@ export declare enum SortOrder {
|
|
|
635
562
|
}
|
|
636
563
|
export interface CursorPaging {
|
|
637
564
|
/**
|
|
638
|
-
* Maximum number of items to return
|
|
565
|
+
* Maximum number of items to return.
|
|
639
566
|
* @max 100
|
|
640
567
|
*/
|
|
641
568
|
limit?: number | null;
|
|
@@ -649,7 +576,7 @@ export interface CursorPaging {
|
|
|
649
576
|
cursor?: string | null;
|
|
650
577
|
}
|
|
651
578
|
export interface QueryPoolDefinitionsResponse {
|
|
652
|
-
/** List of pool definitions. */
|
|
579
|
+
/** List of retrieved pool definitions. */
|
|
653
580
|
poolDefinitions?: PoolDefinition[];
|
|
654
581
|
/** Metadata for the paginated results. */
|
|
655
582
|
metadata?: CursorPagingMetadata;
|
|
@@ -681,40 +608,34 @@ export interface Cursors {
|
|
|
681
608
|
}
|
|
682
609
|
export interface AddPoolDefinitionToProgramDefinitionRequest {
|
|
683
610
|
/**
|
|
684
|
-
*
|
|
611
|
+
* ID of the pool definition to add to the program definition.
|
|
685
612
|
* @format GUID
|
|
686
613
|
*/
|
|
687
614
|
poolDefinitionId: string;
|
|
688
615
|
/**
|
|
689
|
-
*
|
|
616
|
+
* ID of the program definition to add the pool definition to.
|
|
690
617
|
* @format GUID
|
|
691
618
|
*/
|
|
692
619
|
programDefinitionId: string;
|
|
693
|
-
/**
|
|
694
|
-
* Specifies the timing of updates to associated benefit pools.
|
|
695
|
-
* Determines how and when changes are applied to existing and future benefit pools.
|
|
696
|
-
*/
|
|
620
|
+
/** Determines when the changes to this program definition and pool definition will be applied to associated programs and pools. */
|
|
697
621
|
cascade: Cascade;
|
|
698
622
|
}
|
|
699
623
|
export interface AddPoolDefinitionToProgramDefinitionResponse {
|
|
700
|
-
/**
|
|
624
|
+
/** Updated pool definition. */
|
|
701
625
|
poolDefinition?: PoolDefinition;
|
|
702
626
|
}
|
|
703
627
|
export interface RemovePoolDefinitionFromProgramDefinitionRequest {
|
|
704
628
|
/**
|
|
705
|
-
* ID of the pool definition to
|
|
629
|
+
* ID of the pool definition to remove from the program definition.
|
|
706
630
|
* @format GUID
|
|
707
631
|
*/
|
|
708
632
|
poolDefinitionId: string;
|
|
709
633
|
/**
|
|
710
|
-
* ID of the program definition
|
|
634
|
+
* ID of the program definition to remove the pool definition from.
|
|
711
635
|
* @format GUID
|
|
712
636
|
*/
|
|
713
637
|
programDefinitionId: string;
|
|
714
|
-
/**
|
|
715
|
-
* Specifies the timing of updates to associated benefit pools.
|
|
716
|
-
* Determines how and when changes are applied to existing and future benefit pools.
|
|
717
|
-
*/
|
|
638
|
+
/** Determines when the changes to this program definition and pool definition will be applied to associated programs and pools. */
|
|
718
639
|
cascade: Cascade;
|
|
719
640
|
}
|
|
720
641
|
export interface RemovePoolDefinitionFromProgramDefinitionResponse {
|
|
@@ -723,16 +644,12 @@ export interface RemovePoolDefinitionFromProgramDefinitionResponse {
|
|
|
723
644
|
}
|
|
724
645
|
export interface FindPoolDefinitionsByProgramDefinitionRequest {
|
|
725
646
|
/**
|
|
726
|
-
* ID of the program definition
|
|
647
|
+
* ID of the program definition to retrieve its pool definitions.
|
|
727
648
|
* @format GUID
|
|
728
649
|
*/
|
|
729
650
|
programDefinitionId: string;
|
|
730
651
|
/**
|
|
731
|
-
*
|
|
732
|
-
*
|
|
733
|
-
* This namespace is used to organize and retrieve pool definitions and their associated benefit pools.
|
|
734
|
-
*
|
|
735
|
-
* It should match the namespace used in the program definitions.
|
|
652
|
+
* Namespace for your app or site's benefit programs.
|
|
736
653
|
* @minLength 1
|
|
737
654
|
* @maxLength 50
|
|
738
655
|
*/
|
|
@@ -985,13 +902,7 @@ export interface FindPoolDefinitionsByProgramDefinitionResponseNonNullableFields
|
|
|
985
902
|
poolDefinitions: PoolDefinitionNonNullableFields[];
|
|
986
903
|
}
|
|
987
904
|
/**
|
|
988
|
-
* Creates a
|
|
989
|
-
*
|
|
990
|
-
* A pool definition can be assigned to multiple program definitions by specifying its program definition ID in the `programDefinitionIds` parameter.
|
|
991
|
-
*
|
|
992
|
-
* If `programDefinitionIds` included in the request are associated with any active programs, then new benefit pools will be instantly created and added to the programs.
|
|
993
|
-
*
|
|
994
|
-
* If you specify program definition IDs in the request, you must include the `cascade` parameter, to specify the timing of the update to existing programs.
|
|
905
|
+
* Creates a pool definition.
|
|
995
906
|
* @param poolDefinition - Pool definition to create.
|
|
996
907
|
* @public
|
|
997
908
|
* @documentationMaturity preview
|
|
@@ -1011,14 +922,14 @@ export interface FindPoolDefinitionsByProgramDefinitionResponseNonNullableFields
|
|
|
1011
922
|
export declare function createPoolDefinition(poolDefinition: PoolDefinition, options?: CreatePoolDefinitionOptions): Promise<PoolDefinition & PoolDefinitionNonNullableFields>;
|
|
1012
923
|
export interface CreatePoolDefinitionOptions {
|
|
1013
924
|
/**
|
|
1014
|
-
*
|
|
1015
|
-
*
|
|
1016
|
-
*
|
|
925
|
+
* Determines when the changes to the program definitions containing this pool definition will be applied to associated programs.
|
|
926
|
+
*
|
|
927
|
+
* Required if the `poolDefinition.programDefinitionIds` parameter is defined.
|
|
1017
928
|
*/
|
|
1018
929
|
cascade?: Cascade;
|
|
1019
930
|
}
|
|
1020
931
|
/**
|
|
1021
|
-
* Creates
|
|
932
|
+
* Creates pool definitions.
|
|
1022
933
|
* @param poolDefinitions - Pool definitions to create.
|
|
1023
934
|
* @public
|
|
1024
935
|
* @documentationMaturity preview
|
|
@@ -1037,13 +948,13 @@ export interface CreatePoolDefinitionOptions {
|
|
|
1037
948
|
export declare function bulkCreatePoolDefinitions(poolDefinitions: PoolDefinition[], options?: BulkCreatePoolDefinitionsOptions): Promise<BulkCreatePoolDefinitionsResponse & BulkCreatePoolDefinitionsResponseNonNullableFields>;
|
|
1038
949
|
export interface BulkCreatePoolDefinitionsOptions {
|
|
1039
950
|
/**
|
|
1040
|
-
*
|
|
1041
|
-
*
|
|
1042
|
-
*
|
|
951
|
+
* Determines when the changes to the program definitions containing these pool definitions will be applied to associated programs.
|
|
952
|
+
*
|
|
953
|
+
* Required if the `poolDefinition.programDefinitionIds` parameter is defined.
|
|
1043
954
|
*/
|
|
1044
955
|
cascade?: Cascade;
|
|
1045
956
|
/**
|
|
1046
|
-
* Whether to return the
|
|
957
|
+
* Whether to return the created pool definitions.
|
|
1047
958
|
*
|
|
1048
959
|
* Default: `false`
|
|
1049
960
|
*/
|
|
@@ -1097,28 +1008,20 @@ export interface UpdatePoolDefinition {
|
|
|
1097
1008
|
*/
|
|
1098
1009
|
_updatedDate?: Date | null;
|
|
1099
1010
|
/**
|
|
1100
|
-
*
|
|
1011
|
+
* Pool definition name.
|
|
1101
1012
|
* @maxLength 128
|
|
1102
1013
|
*/
|
|
1103
1014
|
displayName?: string;
|
|
1104
1015
|
/**
|
|
1105
|
-
* List of program
|
|
1016
|
+
* List of program definition IDs that are associated with this pool definition.
|
|
1106
1017
|
* @format GUID
|
|
1107
1018
|
* @maxSize 100
|
|
1108
1019
|
*/
|
|
1109
1020
|
programDefinitionIds?: string[];
|
|
1110
|
-
/**
|
|
1111
|
-
* Benefit pool information.
|
|
1112
|
-
*
|
|
1113
|
-
* Includes the item, policy, and credit configurations.
|
|
1114
|
-
*/
|
|
1021
|
+
/** Pool definition benefits and settings. */
|
|
1115
1022
|
details?: Details;
|
|
1116
1023
|
/**
|
|
1117
|
-
*
|
|
1118
|
-
*
|
|
1119
|
-
* This namespace is used to organize and retrieve pool definitions and their associated benefit pools.
|
|
1120
|
-
*
|
|
1121
|
-
* It should match the namespace used in the program definitions.
|
|
1024
|
+
* Namespace for your app or site's benefit programs.
|
|
1122
1025
|
* @immutable
|
|
1123
1026
|
* @minLength 1
|
|
1124
1027
|
* @maxLength 50
|
|
@@ -1127,20 +1030,16 @@ export interface UpdatePoolDefinition {
|
|
|
1127
1030
|
/**
|
|
1128
1031
|
* Custom field data for the pool definition object.
|
|
1129
1032
|
*
|
|
1130
|
-
* [Extended fields](https://dev.wix.com/docs/
|
|
1033
|
+
* [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.
|
|
1131
1034
|
*/
|
|
1132
1035
|
extendedFields?: ExtendedFields;
|
|
1133
1036
|
}
|
|
1134
1037
|
export interface UpdatePoolDefinitionOptions {
|
|
1135
|
-
/**
|
|
1136
|
-
* Specifies the timing of updates to associated benefit pools.
|
|
1137
|
-
* Determines how and when changes are applied to existing and future benefit pools.
|
|
1138
|
-
* Required field.
|
|
1139
|
-
*/
|
|
1038
|
+
/** Required.** Determines when the changes to this pool definition and program definitions containing it will be applied to associated programs and pools. */
|
|
1140
1039
|
cascade?: Cascade;
|
|
1141
1040
|
}
|
|
1142
1041
|
/**
|
|
1143
|
-
* Updates
|
|
1042
|
+
* Updates pool definitions.
|
|
1144
1043
|
* @public
|
|
1145
1044
|
* @documentationMaturity preview
|
|
1146
1045
|
* @requiredField options.poolDefinitions.poolDefinition
|
|
@@ -1160,14 +1059,10 @@ export interface BulkUpdatePoolDefinitionsOptions {
|
|
|
1160
1059
|
* @maxSize 100
|
|
1161
1060
|
*/
|
|
1162
1061
|
poolDefinitions?: MaskedPoolDefinition[];
|
|
1163
|
-
/**
|
|
1164
|
-
* Specifies the timing of updates to associated benefit pools.
|
|
1165
|
-
* Determines how and when changes are applied to existing and future benefit pools.
|
|
1166
|
-
* Required field.
|
|
1167
|
-
*/
|
|
1062
|
+
/** Required.** Determines when the changes to these pool definitions program definitions containing them will be applied to associated programs and pools. */
|
|
1168
1063
|
cascade?: Cascade;
|
|
1169
1064
|
/**
|
|
1170
|
-
* Whether to return the
|
|
1065
|
+
* Whether to return the updated pool definitions.
|
|
1171
1066
|
*
|
|
1172
1067
|
* Default: `false`
|
|
1173
1068
|
*/
|
|
@@ -1187,16 +1082,12 @@ export interface BulkUpdatePoolDefinitionsOptions {
|
|
|
1187
1082
|
*/
|
|
1188
1083
|
export declare function deletePoolDefinition(poolDefinitionId: string, options?: DeletePoolDefinitionOptions): Promise<void>;
|
|
1189
1084
|
export interface DeletePoolDefinitionOptions {
|
|
1190
|
-
/**
|
|
1191
|
-
* Defines how the delete operation cascades to related pools.
|
|
1192
|
-
* Specifies the timing of deletion regarding associated benefit pools.
|
|
1193
|
-
* Required if the pool definition is associated with any program definition IDs.
|
|
1194
|
-
*/
|
|
1085
|
+
/** Required**. Determines when the changes to this pool definition the program definitions containing it will be applied to associated programs and pools. */
|
|
1195
1086
|
cascade?: Cascade;
|
|
1196
1087
|
}
|
|
1197
1088
|
/**
|
|
1198
|
-
*
|
|
1199
|
-
* @param poolDefinitionIds -
|
|
1089
|
+
* Deletes pool definitions.
|
|
1090
|
+
* @param poolDefinitionIds - List of IDs of the pool definitions to delete.
|
|
1200
1091
|
* @public
|
|
1201
1092
|
* @documentationMaturity preview
|
|
1202
1093
|
* @requiredField poolDefinitionIds
|
|
@@ -1208,10 +1099,7 @@ export interface DeletePoolDefinitionOptions {
|
|
|
1208
1099
|
*/
|
|
1209
1100
|
export declare function bulkDeletePoolDefinitions(poolDefinitionIds: string[], options?: BulkDeletePoolDefinitionsOptions): Promise<BulkDeletePoolDefinitionsResponse & BulkDeletePoolDefinitionsResponseNonNullableFields>;
|
|
1210
1101
|
export interface BulkDeletePoolDefinitionsOptions {
|
|
1211
|
-
/**
|
|
1212
|
-
* Specifies the timing of updates to associated benefit pools.
|
|
1213
|
-
* Required if any of the pool definitions listed for deletion are associated with a program definition ID.
|
|
1214
|
-
*/
|
|
1102
|
+
/** Required**. Determines when the changes to these pool definitions the program definitions containing it will be applied to associated programs and pools. */
|
|
1215
1103
|
cascade?: Cascade;
|
|
1216
1104
|
}
|
|
1217
1105
|
/**
|
|
@@ -1236,13 +1124,15 @@ export declare function getPoolDefinition(poolDefinitionId: string): Promise<Poo
|
|
|
1236
1124
|
/**
|
|
1237
1125
|
* Creates a query to retrieve a list of pool definitions.
|
|
1238
1126
|
*
|
|
1239
|
-
* The
|
|
1127
|
+
* The Query Pool Definitions method builds a query to retrieve a list of pool definitions and returns a `PoolDefinitionsQueryBuilder` object.
|
|
1128
|
+
*
|
|
1129
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` method.
|
|
1240
1130
|
*
|
|
1241
|
-
*
|
|
1131
|
+
* You can refine the query by chaining `PoolDefinitionsQueryBuilder` methods onto the query. `PoolDefinitionsQueryBuilder` methods enable you to filter, sort, and control the results that Query Pool Definitions returns.
|
|
1242
1132
|
*
|
|
1243
|
-
*
|
|
1133
|
+
* Query Pool Definitions has a default paging limit of 50, which you can override.
|
|
1244
1134
|
*
|
|
1245
|
-
*
|
|
1135
|
+
* For a full description of the item object, see the object returned for the `items` property in `PoolDefinitionsQueryResult`.
|
|
1246
1136
|
* @public
|
|
1247
1137
|
* @documentationMaturity preview
|
|
1248
1138
|
* @permissionScope SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
@@ -1340,10 +1230,10 @@ export interface PoolDefinitionsQueryBuilder {
|
|
|
1340
1230
|
find: () => Promise<PoolDefinitionsQueryResult>;
|
|
1341
1231
|
}
|
|
1342
1232
|
/**
|
|
1343
|
-
*
|
|
1233
|
+
* Adds a pool definition to a program definition.
|
|
1344
1234
|
*
|
|
1345
|
-
*
|
|
1346
|
-
* @param poolDefinitionId -
|
|
1235
|
+
* Pool definitions can be contained by multiple program definitions, so this doesn't affect other program definitions that contain this pool definition.
|
|
1236
|
+
* @param poolDefinitionId - ID of the pool definition to add to the program definition.
|
|
1347
1237
|
* @public
|
|
1348
1238
|
* @documentationMaturity preview
|
|
1349
1239
|
* @requiredField options
|
|
@@ -1359,23 +1249,18 @@ export interface PoolDefinitionsQueryBuilder {
|
|
|
1359
1249
|
export declare function addPoolDefinitionToProgramDefinition(poolDefinitionId: string, options: AddPoolDefinitionToProgramDefinitionOptions): Promise<AddPoolDefinitionToProgramDefinitionResponse & AddPoolDefinitionToProgramDefinitionResponseNonNullableFields>;
|
|
1360
1250
|
export interface AddPoolDefinitionToProgramDefinitionOptions {
|
|
1361
1251
|
/**
|
|
1362
|
-
*
|
|
1252
|
+
* ID of the program definition to add the pool definition to.
|
|
1363
1253
|
* @format GUID
|
|
1364
1254
|
*/
|
|
1365
1255
|
programDefinitionId: string;
|
|
1366
|
-
/**
|
|
1367
|
-
* Specifies the timing of updates to associated benefit pools.
|
|
1368
|
-
* Determines how and when changes are applied to existing and future benefit pools.
|
|
1369
|
-
*/
|
|
1256
|
+
/** Determines when the changes to this program definition and pool definition will be applied to associated programs and pools. */
|
|
1370
1257
|
cascade: Cascade;
|
|
1371
1258
|
}
|
|
1372
1259
|
/**
|
|
1373
|
-
*
|
|
1374
|
-
*
|
|
1375
|
-
* This action prevents the programs from including the specified benefit pool in future provisioning cycles.
|
|
1260
|
+
* Removes a pool definition from a program definition.
|
|
1376
1261
|
*
|
|
1377
|
-
*
|
|
1378
|
-
* @param poolDefinitionId - ID of the pool definition to
|
|
1262
|
+
* Pool definitions don't need to be contained by a program definition, so this doesn't affect the usability of this pool definition.
|
|
1263
|
+
* @param poolDefinitionId - ID of the pool definition to remove from the program definition.
|
|
1379
1264
|
* @public
|
|
1380
1265
|
* @documentationMaturity preview
|
|
1381
1266
|
* @requiredField options
|
|
@@ -1391,21 +1276,16 @@ export interface AddPoolDefinitionToProgramDefinitionOptions {
|
|
|
1391
1276
|
export declare function removePoolDefinitionFromProgramDefinition(poolDefinitionId: string, options: RemovePoolDefinitionFromProgramDefinitionOptions): Promise<RemovePoolDefinitionFromProgramDefinitionResponse & RemovePoolDefinitionFromProgramDefinitionResponseNonNullableFields>;
|
|
1392
1277
|
export interface RemovePoolDefinitionFromProgramDefinitionOptions {
|
|
1393
1278
|
/**
|
|
1394
|
-
* ID of the program definition
|
|
1279
|
+
* ID of the program definition to remove the pool definition from.
|
|
1395
1280
|
* @format GUID
|
|
1396
1281
|
*/
|
|
1397
1282
|
programDefinitionId: string;
|
|
1398
|
-
/**
|
|
1399
|
-
* Specifies the timing of updates to associated benefit pools.
|
|
1400
|
-
* Determines how and when changes are applied to existing and future benefit pools.
|
|
1401
|
-
*/
|
|
1283
|
+
/** Determines when the changes to this program definition and pool definition will be applied to associated programs and pools. */
|
|
1402
1284
|
cascade: Cascade;
|
|
1403
1285
|
}
|
|
1404
1286
|
/**
|
|
1405
|
-
* Retrieve all
|
|
1406
|
-
*
|
|
1407
|
-
* Find multiple pool definitions that belong to a given program definition.
|
|
1408
|
-
* @param programDefinitionId - ID of the program definition of which its assigned pool definitions are retrieved.
|
|
1287
|
+
* Retrieve all a program definition's pool definitions.
|
|
1288
|
+
* @param programDefinitionId - ID of the program definition to retrieve its pool definitions.
|
|
1409
1289
|
* @public
|
|
1410
1290
|
* @documentationMaturity preview
|
|
1411
1291
|
* @requiredField options
|
|
@@ -1425,11 +1305,7 @@ export interface RemovePoolDefinitionFromProgramDefinitionOptions {
|
|
|
1425
1305
|
export declare function findPoolDefinitionsByProgramDefinition(programDefinitionId: string, options: FindPoolDefinitionsByProgramDefinitionOptions): Promise<FindPoolDefinitionsByProgramDefinitionResponse & FindPoolDefinitionsByProgramDefinitionResponseNonNullableFields>;
|
|
1426
1306
|
export interface FindPoolDefinitionsByProgramDefinitionOptions {
|
|
1427
1307
|
/**
|
|
1428
|
-
*
|
|
1429
|
-
*
|
|
1430
|
-
* This namespace is used to organize and retrieve pool definitions and their associated benefit pools.
|
|
1431
|
-
*
|
|
1432
|
-
* It should match the namespace used in the program definitions.
|
|
1308
|
+
* Namespace for your app or site's benefit programs.
|
|
1433
1309
|
* @minLength 1
|
|
1434
1310
|
* @maxLength 50
|
|
1435
1311
|
*/
|