@wix/auto_sdk_benefit-programs_pool-definitions 1.0.19 → 1.0.21
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/{internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.universal.d.ts → benefit-programs-v1-pool-definition-pool-definitions.universal-D9CDI7FG.d.mts} +92 -305
- package/build/{internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.universal.d.ts → benefit-programs-v1-pool-definition-pool-definitions.universal-D9CDI7FG.d.ts} +92 -305
- package/build/index.d.mts +127 -0
- package/build/index.d.ts +127 -0
- package/build/index.js +1057 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +1016 -0
- package/build/index.mjs.map +1 -0
- package/build/{cjs/src/benefit-programs-v1-pool-definition-pool-definitions.universal.d.ts → internal/benefit-programs-v1-pool-definition-pool-definitions.universal-D9CDI7FG.d.mts} +92 -305
- package/build/{es/src/benefit-programs-v1-pool-definition-pool-definitions.universal.d.ts → internal/benefit-programs-v1-pool-definition-pool-definitions.universal-D9CDI7FG.d.ts} +92 -305
- package/build/internal/index.d.mts +127 -0
- package/build/internal/index.d.ts +127 -0
- package/build/internal/index.js +1057 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +1016 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +494 -0
- package/build/internal/meta.d.ts +494 -0
- package/build/internal/meta.js +738 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +701 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +494 -0
- package/build/meta.d.ts +494 -0
- package/build/meta.js +738 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +701 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.context.d.ts +0 -15
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.context.js +0 -25
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.context.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.http.d.ts +0 -51
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.http.js +0 -528
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.http.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.meta.d.ts +0 -29
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.meta.js +0 -237
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.meta.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.public.d.ts +0 -115
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.public.js +0 -80
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.public.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.types.d.ts +0 -811
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.types.js +0 -81
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.types.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.universal.js +0 -629
- package/build/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.context.d.ts +0 -15
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.context.js +0 -15
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.context.js.map +0 -1
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.http.d.ts +0 -51
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.http.js +0 -514
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.http.js.map +0 -1
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.meta.d.ts +0 -29
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.meta.js +0 -200
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.meta.js.map +0 -1
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.public.d.ts +0 -115
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.public.js +0 -59
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.public.js.map +0 -1
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.types.d.ts +0 -811
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.types.js +0 -78
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.types.js.map +0 -1
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.universal.js +0 -592
- package/build/es/src/benefit-programs-v1-pool-definition-pool-definitions.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.context.d.ts +0 -15
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.context.js +0 -25
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.context.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.http.d.ts +0 -51
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.http.js +0 -528
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.http.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.meta.d.ts +0 -29
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.meta.js +0 -237
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.meta.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.public.d.ts +0 -115
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.public.js +0 -80
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.public.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.types.d.ts +0 -811
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.types.js +0 -81
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.types.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.universal.js +0 -629
- package/build/internal/cjs/src/benefit-programs-v1-pool-definition-pool-definitions.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.context.d.ts +0 -15
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.context.js +0 -15
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.context.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.http.d.ts +0 -51
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.http.js +0 -514
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.http.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.meta.d.ts +0 -29
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.meta.js +0 -200
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.meta.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.public.d.ts +0 -115
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.public.js +0 -59
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.public.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.types.d.ts +0 -811
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.types.js +0 -78
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.types.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.universal.js +0 -592
- package/build/internal/es/src/benefit-programs-v1-pool-definition-pool-definitions.universal.js.map +0 -1
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
import { N as CreatePoolDefinitionRequest$1, O as CreatePoolDefinitionResponse$1, Q as BulkCreatePoolDefinitionsRequest$1, a as BulkCreatePoolDefinitionsResponse$1, _ as UpdatePoolDefinitionRequest$1, $ as UpdatePoolDefinitionResponse$1, a0 as BulkUpdatePoolDefinitionsRequest$1, d as BulkUpdatePoolDefinitionsResponse$1, a2 as DeletePoolDefinitionRequest$1, a3 as DeletePoolDefinitionResponse$1, a4 as BulkDeletePoolDefinitionsRequest$1, f as BulkDeletePoolDefinitionsResponse$1, a5 as GetPoolDefinitionRequest$1, a6 as GetPoolDefinitionResponse$1, a7 as QueryPoolDefinitionsRequest$1, ac as QueryPoolDefinitionsResponse$1, af as AddPoolDefinitionToProgramDefinitionRequest$1, h as AddPoolDefinitionToProgramDefinitionResponse$1, ag as RemovePoolDefinitionFromProgramDefinitionRequest$1, i as RemovePoolDefinitionFromProgramDefinitionResponse$1, ah as FindPoolDefinitionsByProgramDefinitionRequest$1, j as FindPoolDefinitionsByProgramDefinitionResponse$1 } from './benefit-programs-v1-pool-definition-pool-definitions.universal-D9CDI7FG.mjs';
|
|
2
|
+
|
|
3
|
+
interface PoolDefinition {
|
|
4
|
+
/**
|
|
5
|
+
* Pool definition ID.
|
|
6
|
+
* @format GUID
|
|
7
|
+
* @immutable
|
|
8
|
+
* @readonly
|
|
9
|
+
*/
|
|
10
|
+
id?: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* Revision number, which increments by 1 each time the pool definition is updated.
|
|
13
|
+
* To prevent conflicting changes, the current revision must be specified when updating the pool definition.
|
|
14
|
+
*
|
|
15
|
+
* Ignored when creating a pool definition.
|
|
16
|
+
* @readonly
|
|
17
|
+
*/
|
|
18
|
+
revision?: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* Date and time the pool definition was created.
|
|
21
|
+
* @readonly
|
|
22
|
+
*/
|
|
23
|
+
createdDate?: Date | null;
|
|
24
|
+
/**
|
|
25
|
+
* Date and time the pool definition was updated.
|
|
26
|
+
* @readonly
|
|
27
|
+
*/
|
|
28
|
+
updatedDate?: Date | null;
|
|
29
|
+
/**
|
|
30
|
+
* Pool definition name.
|
|
31
|
+
* @maxLength 128
|
|
32
|
+
*/
|
|
33
|
+
displayName?: string;
|
|
34
|
+
/**
|
|
35
|
+
* List of program definition IDs that are associated with this pool definition.
|
|
36
|
+
* @format GUID
|
|
37
|
+
* @maxSize 100
|
|
38
|
+
*/
|
|
39
|
+
programDefinitionIds?: string[];
|
|
40
|
+
/** Pool definition benefits and settings. */
|
|
41
|
+
details?: Details;
|
|
42
|
+
/**
|
|
43
|
+
* Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
|
|
44
|
+
* @immutable
|
|
45
|
+
* @readonly
|
|
46
|
+
* @minLength 1
|
|
47
|
+
* @maxLength 50
|
|
48
|
+
*/
|
|
49
|
+
namespace?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* Custom field data for the pool definition object.
|
|
52
|
+
*
|
|
53
|
+
* [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.
|
|
54
|
+
*/
|
|
55
|
+
extendedFields?: ExtendedFields;
|
|
56
|
+
}
|
|
57
|
+
interface Details {
|
|
58
|
+
/**
|
|
59
|
+
* List of benefits.
|
|
60
|
+
* @maxSize 10
|
|
61
|
+
*/
|
|
62
|
+
benefits?: Benefit[];
|
|
63
|
+
/**
|
|
64
|
+
* Credit settings.
|
|
65
|
+
*
|
|
66
|
+
* If this object is empty, you can't set a price for the benefit.
|
|
67
|
+
*/
|
|
68
|
+
creditConfiguration?: CreditConfiguration;
|
|
69
|
+
/** Additional information relating to this object. */
|
|
70
|
+
additionalData?: Record<string, any> | null;
|
|
71
|
+
}
|
|
72
|
+
interface Benefit {
|
|
73
|
+
/**
|
|
74
|
+
* Unique identifier for this benefit.
|
|
75
|
+
*
|
|
76
|
+
* This key is consistent across the pool definition and all associated pools that contain this benefit.
|
|
77
|
+
* @maxLength 64
|
|
78
|
+
*/
|
|
79
|
+
benefitKey?: string;
|
|
80
|
+
/**
|
|
81
|
+
* ID that is used to associated items with this benefit.
|
|
82
|
+
* @format GUID
|
|
83
|
+
* @immutable
|
|
84
|
+
* @readonly
|
|
85
|
+
*/
|
|
86
|
+
itemSetId?: string | null;
|
|
87
|
+
/**
|
|
88
|
+
* Price of the benefit in credits. The price is the same for all of this benefit's items.
|
|
89
|
+
* @decimalValue options { gte:0, maxScale:4 }
|
|
90
|
+
*/
|
|
91
|
+
price?: string | null;
|
|
92
|
+
/** Additional information for this benefit. */
|
|
93
|
+
additionalData?: Record<string, any> | null;
|
|
94
|
+
/**
|
|
95
|
+
* ID of the app providing the benefit items.
|
|
96
|
+
* @format GUID
|
|
97
|
+
* @immutable
|
|
98
|
+
*/
|
|
99
|
+
providerAppId?: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* Benefit name.
|
|
102
|
+
* @maxLength 40
|
|
103
|
+
*/
|
|
104
|
+
displayName?: string | null;
|
|
105
|
+
/**
|
|
106
|
+
* Benefit description.
|
|
107
|
+
* @maxLength 255
|
|
108
|
+
*/
|
|
109
|
+
description?: string | null;
|
|
110
|
+
}
|
|
111
|
+
interface CreditConfiguration {
|
|
112
|
+
/**
|
|
113
|
+
* Initial available amount for associated balances.
|
|
114
|
+
* @decimalValue options { gte:0, maxScale:4 }
|
|
115
|
+
*/
|
|
116
|
+
amount?: string;
|
|
117
|
+
/** Rollover settings. */
|
|
118
|
+
rolloverConfiguration?: RolloverConfiguration;
|
|
119
|
+
/**
|
|
120
|
+
* Credit unit display name.
|
|
121
|
+
* @maxLength 32
|
|
122
|
+
*/
|
|
123
|
+
unitDisplayName?: string | null;
|
|
124
|
+
}
|
|
125
|
+
interface RolloverConfiguration {
|
|
126
|
+
/** Whether unused credits roll over to a new cycle when a program renews. */
|
|
127
|
+
enabled?: boolean | null;
|
|
128
|
+
/**
|
|
129
|
+
* Maximum number of credits that can roll over to the next cycle when a program renews.
|
|
130
|
+
* @decimalValue options { gte:0, maxScale:4 }
|
|
131
|
+
*/
|
|
132
|
+
balanceCap?: string | null;
|
|
133
|
+
}
|
|
134
|
+
interface ExtendedFields {
|
|
135
|
+
/**
|
|
136
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
137
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
138
|
+
*
|
|
139
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
140
|
+
*
|
|
141
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
142
|
+
*/
|
|
143
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
144
|
+
}
|
|
145
|
+
declare enum Cascade {
|
|
146
|
+
/** Unknown cascade. */
|
|
147
|
+
UNKNOWN_CASCADE = "UNKNOWN_CASCADE",
|
|
148
|
+
/** Changes are applied to existing programs and pools when they are next renewed. */
|
|
149
|
+
NEXT_RENEWAL = "NEXT_RENEWAL",
|
|
150
|
+
/** Changes are applied to associated programs and pools immediately. */
|
|
151
|
+
IMMEDIATELY = "IMMEDIATELY",
|
|
152
|
+
/** Changes are not applied to existing associated programs and pools. They are only applied to future programs and pools. */
|
|
153
|
+
FUTURE_PROVISIONS = "FUTURE_PROVISIONS"
|
|
154
|
+
}
|
|
155
|
+
/** @enumType */
|
|
156
|
+
type CascadeWithLiterals = Cascade | 'UNKNOWN_CASCADE' | 'NEXT_RENEWAL' | 'IMMEDIATELY' | 'FUTURE_PROVISIONS';
|
|
157
|
+
interface CreatePoolDefinitionRequest {
|
|
158
|
+
/** Pool definition to create. */
|
|
159
|
+
poolDefinition: PoolDefinition;
|
|
160
|
+
/**
|
|
161
|
+
* Determines when the changes to the program definitions containing this pool definition will be applied to associated programs.
|
|
162
|
+
*
|
|
163
|
+
* Required if the `poolDefinition.programDefinitionIds` parameter is defined.
|
|
164
|
+
*/
|
|
165
|
+
cascade?: CascadeWithLiterals;
|
|
166
|
+
}
|
|
167
|
+
interface CreatePoolDefinitionResponse {
|
|
168
|
+
/** Created pool definition. */
|
|
169
|
+
poolDefinition?: PoolDefinition;
|
|
170
|
+
}
|
|
171
|
+
interface BulkCreatePoolDefinitionsRequest {
|
|
172
|
+
/**
|
|
173
|
+
* Pool definitions to create.
|
|
174
|
+
* @minSize 1
|
|
175
|
+
* @maxSize 100
|
|
176
|
+
*/
|
|
177
|
+
poolDefinitions: PoolDefinition[];
|
|
178
|
+
/**
|
|
179
|
+
* Determines when the changes to the program definitions containing these pool definitions will be applied to associated programs.
|
|
180
|
+
*
|
|
181
|
+
* Required if the `poolDefinition.programDefinitionIds` parameter is defined.
|
|
182
|
+
*/
|
|
183
|
+
cascade?: CascadeWithLiterals;
|
|
184
|
+
/**
|
|
185
|
+
* Whether to return the created pool definitions.
|
|
186
|
+
*
|
|
187
|
+
* Default: `false`
|
|
188
|
+
*/
|
|
189
|
+
returnEntity?: boolean;
|
|
190
|
+
}
|
|
191
|
+
interface BulkCreatePoolDefinitionsResponse {
|
|
192
|
+
/**
|
|
193
|
+
* List of created pool definitions and associated metadata.
|
|
194
|
+
* @minSize 1
|
|
195
|
+
* @maxSize 100
|
|
196
|
+
*/
|
|
197
|
+
results?: BulkPoolDefinitionResult[];
|
|
198
|
+
/** Bulk action metadata. */
|
|
199
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
200
|
+
}
|
|
201
|
+
interface BulkPoolDefinitionResult {
|
|
202
|
+
/** Item metadata. */
|
|
203
|
+
itemMetadata?: ItemMetadata;
|
|
204
|
+
/** Pool definition. */
|
|
205
|
+
poolDefinition?: PoolDefinition;
|
|
206
|
+
}
|
|
207
|
+
interface ItemMetadata {
|
|
208
|
+
/**
|
|
209
|
+
* Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
|
|
210
|
+
* @format GUID
|
|
211
|
+
*/
|
|
212
|
+
id?: string | null;
|
|
213
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
214
|
+
originalIndex?: number;
|
|
215
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
216
|
+
success?: boolean;
|
|
217
|
+
/** Details about the error in case of failure. */
|
|
218
|
+
error?: ApplicationError;
|
|
219
|
+
}
|
|
220
|
+
interface ApplicationError {
|
|
221
|
+
/** Error code. */
|
|
222
|
+
code?: string;
|
|
223
|
+
/** Description of the error. */
|
|
224
|
+
description?: string;
|
|
225
|
+
/** Data related to the error. */
|
|
226
|
+
data?: Record<string, any> | null;
|
|
227
|
+
}
|
|
228
|
+
interface BulkActionMetadata {
|
|
229
|
+
/** Number of items that were successfully processed. */
|
|
230
|
+
totalSuccesses?: number;
|
|
231
|
+
/** Number of items that couldn't be processed. */
|
|
232
|
+
totalFailures?: number;
|
|
233
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
234
|
+
undetailedFailures?: number;
|
|
235
|
+
}
|
|
236
|
+
interface UpdatePoolDefinitionRequest {
|
|
237
|
+
/** Pool definition to update. */
|
|
238
|
+
poolDefinition: PoolDefinition;
|
|
239
|
+
/** *Required.** Determines when the changes to this pool definition and program definitions containing it will be applied to associated programs and pools. */
|
|
240
|
+
cascade?: CascadeWithLiterals;
|
|
241
|
+
}
|
|
242
|
+
interface UpdatePoolDefinitionResponse {
|
|
243
|
+
/** Updated pool definition. */
|
|
244
|
+
poolDefinition?: PoolDefinition;
|
|
245
|
+
}
|
|
246
|
+
interface BulkUpdatePoolDefinitionsRequest {
|
|
247
|
+
/**
|
|
248
|
+
* Pool definitions to update.
|
|
249
|
+
* @minSize 1
|
|
250
|
+
* @maxSize 100
|
|
251
|
+
*/
|
|
252
|
+
poolDefinitions?: MaskedPoolDefinition[];
|
|
253
|
+
/** *Required.** Determines when the changes to these pool definitions program definitions containing them will be applied to associated programs and pools. */
|
|
254
|
+
cascade?: CascadeWithLiterals;
|
|
255
|
+
/**
|
|
256
|
+
* Whether to return the updated pool definitions.
|
|
257
|
+
*
|
|
258
|
+
* Default: `false`
|
|
259
|
+
*/
|
|
260
|
+
returnEntity?: boolean;
|
|
261
|
+
}
|
|
262
|
+
interface MaskedPoolDefinition {
|
|
263
|
+
/** Pool definition to update. */
|
|
264
|
+
poolDefinition?: PoolDefinition;
|
|
265
|
+
/** Explicit list of fields to update. */
|
|
266
|
+
fieldMask?: string[];
|
|
267
|
+
}
|
|
268
|
+
interface BulkUpdatePoolDefinitionsResponse {
|
|
269
|
+
/**
|
|
270
|
+
* List of updated pool definitions and associated metadata.
|
|
271
|
+
* @minSize 1
|
|
272
|
+
* @maxSize 100
|
|
273
|
+
*/
|
|
274
|
+
results?: BulkPoolDefinitionResult[];
|
|
275
|
+
/** Bulk action metadata. */
|
|
276
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
277
|
+
}
|
|
278
|
+
interface DeletePoolDefinitionRequest {
|
|
279
|
+
/**
|
|
280
|
+
* ID of the pool definition to delete.
|
|
281
|
+
* @format GUID
|
|
282
|
+
*/
|
|
283
|
+
poolDefinitionId: string;
|
|
284
|
+
/** *Required**. Determines when the changes to this pool definition the program definitions containing it will be applied to associated programs and pools. */
|
|
285
|
+
cascade?: CascadeWithLiterals;
|
|
286
|
+
}
|
|
287
|
+
interface DeletePoolDefinitionResponse {
|
|
288
|
+
}
|
|
289
|
+
interface BulkDeletePoolDefinitionsRequest {
|
|
290
|
+
/**
|
|
291
|
+
* List of IDs of the pool definitions to delete.
|
|
292
|
+
* @minSize 1
|
|
293
|
+
* @maxSize 100
|
|
294
|
+
* @format GUID
|
|
295
|
+
*/
|
|
296
|
+
poolDefinitionIds: string[];
|
|
297
|
+
/** *Required**. Determines when the changes to these pool definitions the program definitions containing it will be applied to associated programs and pools. */
|
|
298
|
+
cascade?: CascadeWithLiterals;
|
|
299
|
+
}
|
|
300
|
+
interface BulkDeletePoolDefinitionsResponse {
|
|
301
|
+
/**
|
|
302
|
+
* List of deleted pool definitions and associated metadata.
|
|
303
|
+
* @minSize 1
|
|
304
|
+
* @maxSize 100
|
|
305
|
+
*/
|
|
306
|
+
results?: BulkPoolDefinitionResult[];
|
|
307
|
+
/** Bulk action metadata. */
|
|
308
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
309
|
+
}
|
|
310
|
+
interface GetPoolDefinitionRequest {
|
|
311
|
+
/**
|
|
312
|
+
* ID of the pool definition to retrieve.
|
|
313
|
+
* @format GUID
|
|
314
|
+
*/
|
|
315
|
+
poolDefinitionId: string;
|
|
316
|
+
}
|
|
317
|
+
interface GetPoolDefinitionResponse {
|
|
318
|
+
/** Retrieved pool definition. */
|
|
319
|
+
poolDefinition?: PoolDefinition;
|
|
320
|
+
}
|
|
321
|
+
interface QueryPoolDefinitionsRequest {
|
|
322
|
+
/** Filter, sort, and paging to apply to the query. */
|
|
323
|
+
query?: CursorQuery;
|
|
324
|
+
}
|
|
325
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
326
|
+
/** 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`. */
|
|
327
|
+
cursorPaging?: CursorPaging;
|
|
328
|
+
/**
|
|
329
|
+
* Filter object.
|
|
330
|
+
* See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
331
|
+
* for more information.
|
|
332
|
+
*/
|
|
333
|
+
filter?: Record<string, any> | null;
|
|
334
|
+
/**
|
|
335
|
+
* List of sort objects.
|
|
336
|
+
* @maxSize 5
|
|
337
|
+
*/
|
|
338
|
+
sort?: Sorting[];
|
|
339
|
+
}
|
|
340
|
+
/** @oneof */
|
|
341
|
+
interface CursorQueryPagingMethodOneOf {
|
|
342
|
+
/** 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`. */
|
|
343
|
+
cursorPaging?: CursorPaging;
|
|
344
|
+
}
|
|
345
|
+
interface Sorting {
|
|
346
|
+
/**
|
|
347
|
+
* Field to sort by.
|
|
348
|
+
* @maxLength 512
|
|
349
|
+
*/
|
|
350
|
+
fieldName?: string;
|
|
351
|
+
/**
|
|
352
|
+
* Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
353
|
+
*
|
|
354
|
+
* Default: `ASC`
|
|
355
|
+
*/
|
|
356
|
+
order?: SortOrderWithLiterals;
|
|
357
|
+
}
|
|
358
|
+
declare enum SortOrder {
|
|
359
|
+
/** Ascending sort order. */
|
|
360
|
+
ASC = "ASC",
|
|
361
|
+
/** Descending sort order. */
|
|
362
|
+
DESC = "DESC"
|
|
363
|
+
}
|
|
364
|
+
/** @enumType */
|
|
365
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
366
|
+
interface CursorPaging {
|
|
367
|
+
/**
|
|
368
|
+
* Maximum number of items to return.
|
|
369
|
+
* @max 100
|
|
370
|
+
*/
|
|
371
|
+
limit?: number | null;
|
|
372
|
+
/**
|
|
373
|
+
* Pointer to the next or previous page in the list of results.
|
|
374
|
+
*
|
|
375
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
376
|
+
* Not relevant for the first request.
|
|
377
|
+
* @maxLength 16000
|
|
378
|
+
*/
|
|
379
|
+
cursor?: string | null;
|
|
380
|
+
}
|
|
381
|
+
interface QueryPoolDefinitionsResponse {
|
|
382
|
+
/** List of retrieved pool definitions. */
|
|
383
|
+
poolDefinitions?: PoolDefinition[];
|
|
384
|
+
/** Metadata for the paginated results. */
|
|
385
|
+
metadata?: CursorPagingMetadata;
|
|
386
|
+
}
|
|
387
|
+
interface CursorPagingMetadata {
|
|
388
|
+
/** Number of items returned in the response. */
|
|
389
|
+
count?: number | null;
|
|
390
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
391
|
+
cursors?: Cursors;
|
|
392
|
+
/**
|
|
393
|
+
* Whether there are more pages to retrieve following the current page.
|
|
394
|
+
*
|
|
395
|
+
* + `true`: Another page of results can be retrieved.
|
|
396
|
+
* + `false`: This is the last page.
|
|
397
|
+
*/
|
|
398
|
+
hasNext?: boolean | null;
|
|
399
|
+
}
|
|
400
|
+
interface Cursors {
|
|
401
|
+
/**
|
|
402
|
+
* Cursor string pointing to the next page in the list of results.
|
|
403
|
+
* @maxLength 16000
|
|
404
|
+
*/
|
|
405
|
+
next?: string | null;
|
|
406
|
+
/**
|
|
407
|
+
* Cursor pointing to the previous page in the list of results.
|
|
408
|
+
* @maxLength 16000
|
|
409
|
+
*/
|
|
410
|
+
prev?: string | null;
|
|
411
|
+
}
|
|
412
|
+
interface AddPoolDefinitionToProgramDefinitionRequest {
|
|
413
|
+
/**
|
|
414
|
+
* ID of the pool definition to add to the program definition.
|
|
415
|
+
* @format GUID
|
|
416
|
+
*/
|
|
417
|
+
poolDefinitionId: string;
|
|
418
|
+
/**
|
|
419
|
+
* ID of the program definition to add the pool definition to.
|
|
420
|
+
* @format GUID
|
|
421
|
+
*/
|
|
422
|
+
programDefinitionId: string;
|
|
423
|
+
/** Determines when the changes to this program definition and pool definition will be applied to associated programs and pools. */
|
|
424
|
+
cascade: CascadeWithLiterals;
|
|
425
|
+
}
|
|
426
|
+
interface AddPoolDefinitionToProgramDefinitionResponse {
|
|
427
|
+
/** Updated pool definition. */
|
|
428
|
+
poolDefinition?: PoolDefinition;
|
|
429
|
+
}
|
|
430
|
+
interface RemovePoolDefinitionFromProgramDefinitionRequest {
|
|
431
|
+
/**
|
|
432
|
+
* ID of the pool definition to remove from the program definition.
|
|
433
|
+
* @format GUID
|
|
434
|
+
*/
|
|
435
|
+
poolDefinitionId: string;
|
|
436
|
+
/**
|
|
437
|
+
* ID of the program definition to remove the pool definition from.
|
|
438
|
+
* @format GUID
|
|
439
|
+
*/
|
|
440
|
+
programDefinitionId: string;
|
|
441
|
+
/** Determines when the changes to this program definition and pool definition will be applied to associated programs and pools. */
|
|
442
|
+
cascade: CascadeWithLiterals;
|
|
443
|
+
}
|
|
444
|
+
interface RemovePoolDefinitionFromProgramDefinitionResponse {
|
|
445
|
+
/** Updated pool definition. */
|
|
446
|
+
poolDefinition?: PoolDefinition;
|
|
447
|
+
}
|
|
448
|
+
interface FindPoolDefinitionsByProgramDefinitionRequest {
|
|
449
|
+
/**
|
|
450
|
+
* ID of the program definition to retrieve its pool definitions.
|
|
451
|
+
* @format GUID
|
|
452
|
+
*/
|
|
453
|
+
programDefinitionId: string;
|
|
454
|
+
/**
|
|
455
|
+
* Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
|
|
456
|
+
* @minLength 1
|
|
457
|
+
* @maxLength 50
|
|
458
|
+
*/
|
|
459
|
+
namespace: string;
|
|
460
|
+
}
|
|
461
|
+
interface FindPoolDefinitionsByProgramDefinitionResponse {
|
|
462
|
+
/** Retrieved pool definitions. */
|
|
463
|
+
poolDefinitions?: PoolDefinition[];
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
467
|
+
getUrl: (context: any) => string;
|
|
468
|
+
httpMethod: K;
|
|
469
|
+
path: string;
|
|
470
|
+
pathParams: M;
|
|
471
|
+
__requestType: T;
|
|
472
|
+
__originalRequestType: S;
|
|
473
|
+
__responseType: Q;
|
|
474
|
+
__originalResponseType: R;
|
|
475
|
+
};
|
|
476
|
+
declare function createPoolDefinition(): __PublicMethodMetaInfo<'POST', {}, CreatePoolDefinitionRequest$1, CreatePoolDefinitionRequest, CreatePoolDefinitionResponse$1, CreatePoolDefinitionResponse>;
|
|
477
|
+
declare function bulkCreatePoolDefinitions(): __PublicMethodMetaInfo<'POST', {}, BulkCreatePoolDefinitionsRequest$1, BulkCreatePoolDefinitionsRequest, BulkCreatePoolDefinitionsResponse$1, BulkCreatePoolDefinitionsResponse>;
|
|
478
|
+
declare function updatePoolDefinition(): __PublicMethodMetaInfo<'PATCH', {
|
|
479
|
+
poolDefinitionId: string;
|
|
480
|
+
}, UpdatePoolDefinitionRequest$1, UpdatePoolDefinitionRequest, UpdatePoolDefinitionResponse$1, UpdatePoolDefinitionResponse>;
|
|
481
|
+
declare function bulkUpdatePoolDefinitions(): __PublicMethodMetaInfo<'POST', {}, BulkUpdatePoolDefinitionsRequest$1, BulkUpdatePoolDefinitionsRequest, BulkUpdatePoolDefinitionsResponse$1, BulkUpdatePoolDefinitionsResponse>;
|
|
482
|
+
declare function deletePoolDefinition(): __PublicMethodMetaInfo<'DELETE', {
|
|
483
|
+
poolDefinitionId: string;
|
|
484
|
+
}, DeletePoolDefinitionRequest$1, DeletePoolDefinitionRequest, DeletePoolDefinitionResponse$1, DeletePoolDefinitionResponse>;
|
|
485
|
+
declare function bulkDeletePoolDefinitions(): __PublicMethodMetaInfo<'POST', {}, BulkDeletePoolDefinitionsRequest$1, BulkDeletePoolDefinitionsRequest, BulkDeletePoolDefinitionsResponse$1, BulkDeletePoolDefinitionsResponse>;
|
|
486
|
+
declare function getPoolDefinition(): __PublicMethodMetaInfo<'GET', {
|
|
487
|
+
poolDefinitionId: string;
|
|
488
|
+
}, GetPoolDefinitionRequest$1, GetPoolDefinitionRequest, GetPoolDefinitionResponse$1, GetPoolDefinitionResponse>;
|
|
489
|
+
declare function queryPoolDefinitions(): __PublicMethodMetaInfo<'POST', {}, QueryPoolDefinitionsRequest$1, QueryPoolDefinitionsRequest, QueryPoolDefinitionsResponse$1, QueryPoolDefinitionsResponse>;
|
|
490
|
+
declare function addPoolDefinitionToProgramDefinition(): __PublicMethodMetaInfo<'POST', {}, AddPoolDefinitionToProgramDefinitionRequest$1, AddPoolDefinitionToProgramDefinitionRequest, AddPoolDefinitionToProgramDefinitionResponse$1, AddPoolDefinitionToProgramDefinitionResponse>;
|
|
491
|
+
declare function removePoolDefinitionFromProgramDefinition(): __PublicMethodMetaInfo<'POST', {}, RemovePoolDefinitionFromProgramDefinitionRequest$1, RemovePoolDefinitionFromProgramDefinitionRequest, RemovePoolDefinitionFromProgramDefinitionResponse$1, RemovePoolDefinitionFromProgramDefinitionResponse>;
|
|
492
|
+
declare function findPoolDefinitionsByProgramDefinition(): __PublicMethodMetaInfo<'POST', {}, FindPoolDefinitionsByProgramDefinitionRequest$1, FindPoolDefinitionsByProgramDefinitionRequest, FindPoolDefinitionsByProgramDefinitionResponse$1, FindPoolDefinitionsByProgramDefinitionResponse>;
|
|
493
|
+
|
|
494
|
+
export { type __PublicMethodMetaInfo, addPoolDefinitionToProgramDefinition, bulkCreatePoolDefinitions, bulkDeletePoolDefinitions, bulkUpdatePoolDefinitions, createPoolDefinition, deletePoolDefinition, findPoolDefinitionsByProgramDefinition, getPoolDefinition, queryPoolDefinitions, removePoolDefinitionFromProgramDefinition, updatePoolDefinition };
|