@wix/auto_sdk_benefit-programs_program-definitions 1.0.8 → 1.0.10
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-program-definition-program-definitions.universal.d.ts → benefit-programs-v1-program-definition-program-definitions.universal-u-PVpH8k.d.mts} +44 -160
- package/build/{internal/es/src/benefit-programs-v1-program-definition-program-definitions.universal.d.ts → benefit-programs-v1-program-definition-program-definitions.universal-u-PVpH8k.d.ts} +44 -160
- package/build/index.d.mts +79 -0
- package/build/index.d.ts +79 -0
- package/build/index.js +600 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +568 -0
- package/build/index.mjs.map +1 -0
- package/build/{cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.d.ts → internal/benefit-programs-v1-program-definition-program-definitions.universal-u-PVpH8k.d.mts} +44 -160
- package/build/{es/src/benefit-programs-v1-program-definition-program-definitions.universal.d.ts → internal/benefit-programs-v1-program-definition-program-definitions.universal-u-PVpH8k.d.ts} +44 -160
- package/build/internal/index.d.mts +79 -0
- package/build/internal/index.d.ts +79 -0
- package/build/internal/index.js +600 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +568 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +245 -0
- package/build/internal/meta.d.ts +245 -0
- package/build/internal/meta.js +445 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +413 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +245 -0
- package/build/meta.d.ts +245 -0
- package/build/meta.js +445 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +413 -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-program-definition-program-definitions.context.d.ts +0 -10
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.context.js +0 -16
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.context.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.d.ts +0 -33
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.js +0 -305
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.meta.d.ts +0 -24
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.meta.js +0 -142
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.meta.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.public.d.ts +0 -72
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.public.js +0 -46
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.public.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.d.ts +0 -385
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.js +0 -30
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.js +0 -341
- package/build/cjs/src/benefit-programs-v1-program-definition-program-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/src/benefit-programs-v1-program-definition-program-definitions.context.d.ts +0 -10
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.context.js +0 -10
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.context.js.map +0 -1
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.http.d.ts +0 -33
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.http.js +0 -296
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.http.js.map +0 -1
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.meta.d.ts +0 -24
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.meta.js +0 -110
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.meta.js.map +0 -1
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.public.d.ts +0 -72
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.public.js +0 -34
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.public.js.map +0 -1
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.types.d.ts +0 -385
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.types.js +0 -27
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.types.js.map +0 -1
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.universal.js +0 -309
- package/build/es/src/benefit-programs-v1-program-definition-program-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-program-definition-program-definitions.context.d.ts +0 -10
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.context.js +0 -16
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.context.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.d.ts +0 -33
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.js +0 -305
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.meta.d.ts +0 -24
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.meta.js +0 -142
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.meta.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.public.d.ts +0 -72
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.public.js +0 -46
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.public.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.d.ts +0 -385
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.js +0 -30
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.js +0 -341
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-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-program-definition-program-definitions.context.d.ts +0 -10
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.context.js +0 -10
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.context.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.http.d.ts +0 -33
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.http.js +0 -296
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.http.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.meta.d.ts +0 -24
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.meta.js +0 -110
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.meta.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.public.d.ts +0 -72
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.public.js +0 -34
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.public.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.types.d.ts +0 -385
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.types.js +0 -27
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.types.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.universal.js +0 -309
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.universal.js.map +0 -1
package/build/meta.d.mts
ADDED
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { c as CreateProgramDefinitionRequest$1, d as CreateProgramDefinitionResponse$1, e as UpdateProgramDefinitionRequest$1, f as UpdateProgramDefinitionResponse$1, g as DeleteProgramDefinitionRequest$1, h as DeleteProgramDefinitionResponse$1, i as GetProgramDefinitionRequest$1, j as GetProgramDefinitionResponse$1, k as GetProgramDefinitionByExternalIdAndNamespaceRequest$1, a as GetProgramDefinitionByExternalIdAndNamespaceResponse$1, Q as QueryProgramDefinitionsRequest$1, p as QueryProgramDefinitionsResponse$1 } from './benefit-programs-v1-program-definition-program-definitions.universal-u-PVpH8k.mjs';
|
|
2
|
+
|
|
3
|
+
interface ProgramDefinition {
|
|
4
|
+
/**
|
|
5
|
+
* Program 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 program definition is updated.
|
|
13
|
+
* To prevent conflicting changes, the current revision must be passed when updating the program definition.
|
|
14
|
+
*
|
|
15
|
+
* Ignored when creating a program definition.
|
|
16
|
+
* @readonly
|
|
17
|
+
*/
|
|
18
|
+
revision?: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* Date and time the program definition was created.
|
|
21
|
+
* @readonly
|
|
22
|
+
*/
|
|
23
|
+
createdDate?: Date | null;
|
|
24
|
+
/**
|
|
25
|
+
* Date and time the program definition was updated.
|
|
26
|
+
* @readonly
|
|
27
|
+
*/
|
|
28
|
+
updatedDate?: Date | null;
|
|
29
|
+
/**
|
|
30
|
+
* Program definition name.
|
|
31
|
+
* @maxLength 64
|
|
32
|
+
*/
|
|
33
|
+
displayName?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* 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.
|
|
36
|
+
* @immutable
|
|
37
|
+
* @readonly
|
|
38
|
+
* @minLength 1
|
|
39
|
+
* @maxLength 50
|
|
40
|
+
*/
|
|
41
|
+
namespace?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Custom field data for the program definition object.
|
|
44
|
+
*
|
|
45
|
+
* [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.
|
|
46
|
+
*/
|
|
47
|
+
extendedFields?: ExtendedFields;
|
|
48
|
+
/**
|
|
49
|
+
* ID for the program definition defined by you. You can use `externalId` to filter queries.
|
|
50
|
+
* @format GUID
|
|
51
|
+
* @immutable
|
|
52
|
+
* @readonly
|
|
53
|
+
*/
|
|
54
|
+
externalId?: string | null;
|
|
55
|
+
}
|
|
56
|
+
interface ExtendedFields {
|
|
57
|
+
/**
|
|
58
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
59
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
60
|
+
*
|
|
61
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
62
|
+
*
|
|
63
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
64
|
+
*/
|
|
65
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
66
|
+
}
|
|
67
|
+
interface CreateProgramDefinitionRequest {
|
|
68
|
+
/** Program definition to create. */
|
|
69
|
+
programDefinition: ProgramDefinition;
|
|
70
|
+
}
|
|
71
|
+
interface CreateProgramDefinitionResponse {
|
|
72
|
+
/** Created program definition. */
|
|
73
|
+
programDefinition?: ProgramDefinition;
|
|
74
|
+
}
|
|
75
|
+
interface UpdateProgramDefinitionRequest {
|
|
76
|
+
/** Program definition to update. */
|
|
77
|
+
programDefinition: ProgramDefinition;
|
|
78
|
+
}
|
|
79
|
+
interface UpdateProgramDefinitionResponse {
|
|
80
|
+
/** Updated program definition. */
|
|
81
|
+
programDefinition?: ProgramDefinition;
|
|
82
|
+
}
|
|
83
|
+
interface DeleteProgramDefinitionRequest {
|
|
84
|
+
/**
|
|
85
|
+
* ID of the program definition to delete.
|
|
86
|
+
* @format GUID
|
|
87
|
+
*/
|
|
88
|
+
programDefinitionId: string;
|
|
89
|
+
/** Determines when the changes to this program definition will be applied to associated programs and pools. */
|
|
90
|
+
cascadeType?: Cascade;
|
|
91
|
+
}
|
|
92
|
+
declare enum Cascade {
|
|
93
|
+
/** Unknown cascade. */
|
|
94
|
+
UNKNOWN_CASCADE = "UNKNOWN_CASCADE",
|
|
95
|
+
/** Changes are applied to existing programs and pools when they are next renewed. */
|
|
96
|
+
NEXT_RENEWAL = "NEXT_RENEWAL",
|
|
97
|
+
/** Changes are applied to associated programs and pools immediately. */
|
|
98
|
+
IMMEDIATELY = "IMMEDIATELY",
|
|
99
|
+
/** Changes are not applied to existing associated programs and pools. They are only applied to future programs and pools. */
|
|
100
|
+
FUTURE_PROVISIONS = "FUTURE_PROVISIONS"
|
|
101
|
+
}
|
|
102
|
+
interface DeleteProgramDefinitionResponse {
|
|
103
|
+
}
|
|
104
|
+
interface GetProgramDefinitionRequest {
|
|
105
|
+
/**
|
|
106
|
+
* ID of the program definition to retrieve.
|
|
107
|
+
* @format GUID
|
|
108
|
+
*/
|
|
109
|
+
programDefinitionId: string;
|
|
110
|
+
}
|
|
111
|
+
interface GetProgramDefinitionResponse {
|
|
112
|
+
/** Retrieved program definition. */
|
|
113
|
+
programDefinition?: ProgramDefinition;
|
|
114
|
+
}
|
|
115
|
+
interface GetProgramDefinitionByExternalIdAndNamespaceRequest {
|
|
116
|
+
/**
|
|
117
|
+
* 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.
|
|
118
|
+
* @minLength 1
|
|
119
|
+
* @maxLength 50
|
|
120
|
+
*/
|
|
121
|
+
namespace: string;
|
|
122
|
+
/**
|
|
123
|
+
* Program definition external ID.
|
|
124
|
+
* @format GUID
|
|
125
|
+
*/
|
|
126
|
+
externalId: string;
|
|
127
|
+
}
|
|
128
|
+
interface GetProgramDefinitionByExternalIdAndNamespaceResponse {
|
|
129
|
+
/** Retrieved program definition. */
|
|
130
|
+
programDefinition?: ProgramDefinition;
|
|
131
|
+
}
|
|
132
|
+
interface QueryProgramDefinitionsRequest {
|
|
133
|
+
/** Filter, sort, and paging to apply to the query. */
|
|
134
|
+
query?: CursorQuery;
|
|
135
|
+
}
|
|
136
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
137
|
+
/** 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`. */
|
|
138
|
+
cursorPaging?: CursorPaging;
|
|
139
|
+
/**
|
|
140
|
+
* Filter object.
|
|
141
|
+
* See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
142
|
+
* for more information.
|
|
143
|
+
*/
|
|
144
|
+
filter?: Record<string, any> | null;
|
|
145
|
+
/**
|
|
146
|
+
* List of sort objects.
|
|
147
|
+
* @maxSize 5
|
|
148
|
+
*/
|
|
149
|
+
sort?: Sorting[];
|
|
150
|
+
}
|
|
151
|
+
/** @oneof */
|
|
152
|
+
interface CursorQueryPagingMethodOneOf {
|
|
153
|
+
/** 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`. */
|
|
154
|
+
cursorPaging?: CursorPaging;
|
|
155
|
+
}
|
|
156
|
+
interface Sorting {
|
|
157
|
+
/**
|
|
158
|
+
* Field to sort by.
|
|
159
|
+
* @maxLength 512
|
|
160
|
+
*/
|
|
161
|
+
fieldName?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
164
|
+
*
|
|
165
|
+
* Default: `ASC`
|
|
166
|
+
*/
|
|
167
|
+
order?: SortOrder;
|
|
168
|
+
}
|
|
169
|
+
declare enum SortOrder {
|
|
170
|
+
/** Ascending sort order. */
|
|
171
|
+
ASC = "ASC",
|
|
172
|
+
/** Descending sort order. */
|
|
173
|
+
DESC = "DESC"
|
|
174
|
+
}
|
|
175
|
+
interface CursorPaging {
|
|
176
|
+
/**
|
|
177
|
+
* Maximum number of items to return.
|
|
178
|
+
* @max 100
|
|
179
|
+
*/
|
|
180
|
+
limit?: number | null;
|
|
181
|
+
/**
|
|
182
|
+
* Pointer to the next or previous page in the list of results.
|
|
183
|
+
*
|
|
184
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
185
|
+
* Not relevant for the first request.
|
|
186
|
+
* @maxLength 16000
|
|
187
|
+
*/
|
|
188
|
+
cursor?: string | null;
|
|
189
|
+
}
|
|
190
|
+
interface QueryProgramDefinitionsResponse {
|
|
191
|
+
/** List of retrieved program definitions. */
|
|
192
|
+
programDefinitions?: ProgramDefinition[];
|
|
193
|
+
/** Metadata for the paginated results. */
|
|
194
|
+
metadata?: CursorPagingMetadata;
|
|
195
|
+
}
|
|
196
|
+
interface CursorPagingMetadata {
|
|
197
|
+
/** Number of items returned in the response. */
|
|
198
|
+
count?: number | null;
|
|
199
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
200
|
+
cursors?: Cursors;
|
|
201
|
+
/**
|
|
202
|
+
* Whether there are more pages to retrieve following the current page.
|
|
203
|
+
*
|
|
204
|
+
* + `true`: Another page of results can be retrieved.
|
|
205
|
+
* + `false`: This is the last page.
|
|
206
|
+
*/
|
|
207
|
+
hasNext?: boolean | null;
|
|
208
|
+
}
|
|
209
|
+
interface Cursors {
|
|
210
|
+
/**
|
|
211
|
+
* Cursor string pointing to the next page in the list of results.
|
|
212
|
+
* @maxLength 16000
|
|
213
|
+
*/
|
|
214
|
+
next?: string | null;
|
|
215
|
+
/**
|
|
216
|
+
* Cursor pointing to the previous page in the list of results.
|
|
217
|
+
* @maxLength 16000
|
|
218
|
+
*/
|
|
219
|
+
prev?: string | null;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
223
|
+
getUrl: (context: any) => string;
|
|
224
|
+
httpMethod: K;
|
|
225
|
+
path: string;
|
|
226
|
+
pathParams: M;
|
|
227
|
+
__requestType: T;
|
|
228
|
+
__originalRequestType: S;
|
|
229
|
+
__responseType: Q;
|
|
230
|
+
__originalResponseType: R;
|
|
231
|
+
};
|
|
232
|
+
declare function createProgramDefinition(): __PublicMethodMetaInfo<'POST', {}, CreateProgramDefinitionRequest$1, CreateProgramDefinitionRequest, CreateProgramDefinitionResponse$1, CreateProgramDefinitionResponse>;
|
|
233
|
+
declare function updateProgramDefinition(): __PublicMethodMetaInfo<'PATCH', {
|
|
234
|
+
programDefinitionId: string;
|
|
235
|
+
}, UpdateProgramDefinitionRequest$1, UpdateProgramDefinitionRequest, UpdateProgramDefinitionResponse$1, UpdateProgramDefinitionResponse>;
|
|
236
|
+
declare function deleteProgramDefinition(): __PublicMethodMetaInfo<'DELETE', {
|
|
237
|
+
programDefinitionId: string;
|
|
238
|
+
}, DeleteProgramDefinitionRequest$1, DeleteProgramDefinitionRequest, DeleteProgramDefinitionResponse$1, DeleteProgramDefinitionResponse>;
|
|
239
|
+
declare function getProgramDefinition(): __PublicMethodMetaInfo<'GET', {
|
|
240
|
+
programDefinitionId: string;
|
|
241
|
+
}, GetProgramDefinitionRequest$1, GetProgramDefinitionRequest, GetProgramDefinitionResponse$1, GetProgramDefinitionResponse>;
|
|
242
|
+
declare function getProgramDefinitionByExternalIdAndNamespace(): __PublicMethodMetaInfo<'GET', {}, GetProgramDefinitionByExternalIdAndNamespaceRequest$1, GetProgramDefinitionByExternalIdAndNamespaceRequest, GetProgramDefinitionByExternalIdAndNamespaceResponse$1, GetProgramDefinitionByExternalIdAndNamespaceResponse>;
|
|
243
|
+
declare function queryProgramDefinitions(): __PublicMethodMetaInfo<'POST', {}, QueryProgramDefinitionsRequest$1, QueryProgramDefinitionsRequest, QueryProgramDefinitionsResponse$1, QueryProgramDefinitionsResponse>;
|
|
244
|
+
|
|
245
|
+
export { type __PublicMethodMetaInfo, createProgramDefinition, deleteProgramDefinition, getProgramDefinition, getProgramDefinitionByExternalIdAndNamespace, queryProgramDefinitions, updateProgramDefinition };
|
package/build/meta.d.ts
ADDED
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { c as CreateProgramDefinitionRequest$1, d as CreateProgramDefinitionResponse$1, e as UpdateProgramDefinitionRequest$1, f as UpdateProgramDefinitionResponse$1, g as DeleteProgramDefinitionRequest$1, h as DeleteProgramDefinitionResponse$1, i as GetProgramDefinitionRequest$1, j as GetProgramDefinitionResponse$1, k as GetProgramDefinitionByExternalIdAndNamespaceRequest$1, a as GetProgramDefinitionByExternalIdAndNamespaceResponse$1, Q as QueryProgramDefinitionsRequest$1, p as QueryProgramDefinitionsResponse$1 } from './benefit-programs-v1-program-definition-program-definitions.universal-u-PVpH8k.js';
|
|
2
|
+
|
|
3
|
+
interface ProgramDefinition {
|
|
4
|
+
/**
|
|
5
|
+
* Program 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 program definition is updated.
|
|
13
|
+
* To prevent conflicting changes, the current revision must be passed when updating the program definition.
|
|
14
|
+
*
|
|
15
|
+
* Ignored when creating a program definition.
|
|
16
|
+
* @readonly
|
|
17
|
+
*/
|
|
18
|
+
revision?: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* Date and time the program definition was created.
|
|
21
|
+
* @readonly
|
|
22
|
+
*/
|
|
23
|
+
createdDate?: Date | null;
|
|
24
|
+
/**
|
|
25
|
+
* Date and time the program definition was updated.
|
|
26
|
+
* @readonly
|
|
27
|
+
*/
|
|
28
|
+
updatedDate?: Date | null;
|
|
29
|
+
/**
|
|
30
|
+
* Program definition name.
|
|
31
|
+
* @maxLength 64
|
|
32
|
+
*/
|
|
33
|
+
displayName?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* 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.
|
|
36
|
+
* @immutable
|
|
37
|
+
* @readonly
|
|
38
|
+
* @minLength 1
|
|
39
|
+
* @maxLength 50
|
|
40
|
+
*/
|
|
41
|
+
namespace?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Custom field data for the program definition object.
|
|
44
|
+
*
|
|
45
|
+
* [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.
|
|
46
|
+
*/
|
|
47
|
+
extendedFields?: ExtendedFields;
|
|
48
|
+
/**
|
|
49
|
+
* ID for the program definition defined by you. You can use `externalId` to filter queries.
|
|
50
|
+
* @format GUID
|
|
51
|
+
* @immutable
|
|
52
|
+
* @readonly
|
|
53
|
+
*/
|
|
54
|
+
externalId?: string | null;
|
|
55
|
+
}
|
|
56
|
+
interface ExtendedFields {
|
|
57
|
+
/**
|
|
58
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
59
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
60
|
+
*
|
|
61
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
62
|
+
*
|
|
63
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
64
|
+
*/
|
|
65
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
66
|
+
}
|
|
67
|
+
interface CreateProgramDefinitionRequest {
|
|
68
|
+
/** Program definition to create. */
|
|
69
|
+
programDefinition: ProgramDefinition;
|
|
70
|
+
}
|
|
71
|
+
interface CreateProgramDefinitionResponse {
|
|
72
|
+
/** Created program definition. */
|
|
73
|
+
programDefinition?: ProgramDefinition;
|
|
74
|
+
}
|
|
75
|
+
interface UpdateProgramDefinitionRequest {
|
|
76
|
+
/** Program definition to update. */
|
|
77
|
+
programDefinition: ProgramDefinition;
|
|
78
|
+
}
|
|
79
|
+
interface UpdateProgramDefinitionResponse {
|
|
80
|
+
/** Updated program definition. */
|
|
81
|
+
programDefinition?: ProgramDefinition;
|
|
82
|
+
}
|
|
83
|
+
interface DeleteProgramDefinitionRequest {
|
|
84
|
+
/**
|
|
85
|
+
* ID of the program definition to delete.
|
|
86
|
+
* @format GUID
|
|
87
|
+
*/
|
|
88
|
+
programDefinitionId: string;
|
|
89
|
+
/** Determines when the changes to this program definition will be applied to associated programs and pools. */
|
|
90
|
+
cascadeType?: Cascade;
|
|
91
|
+
}
|
|
92
|
+
declare enum Cascade {
|
|
93
|
+
/** Unknown cascade. */
|
|
94
|
+
UNKNOWN_CASCADE = "UNKNOWN_CASCADE",
|
|
95
|
+
/** Changes are applied to existing programs and pools when they are next renewed. */
|
|
96
|
+
NEXT_RENEWAL = "NEXT_RENEWAL",
|
|
97
|
+
/** Changes are applied to associated programs and pools immediately. */
|
|
98
|
+
IMMEDIATELY = "IMMEDIATELY",
|
|
99
|
+
/** Changes are not applied to existing associated programs and pools. They are only applied to future programs and pools. */
|
|
100
|
+
FUTURE_PROVISIONS = "FUTURE_PROVISIONS"
|
|
101
|
+
}
|
|
102
|
+
interface DeleteProgramDefinitionResponse {
|
|
103
|
+
}
|
|
104
|
+
interface GetProgramDefinitionRequest {
|
|
105
|
+
/**
|
|
106
|
+
* ID of the program definition to retrieve.
|
|
107
|
+
* @format GUID
|
|
108
|
+
*/
|
|
109
|
+
programDefinitionId: string;
|
|
110
|
+
}
|
|
111
|
+
interface GetProgramDefinitionResponse {
|
|
112
|
+
/** Retrieved program definition. */
|
|
113
|
+
programDefinition?: ProgramDefinition;
|
|
114
|
+
}
|
|
115
|
+
interface GetProgramDefinitionByExternalIdAndNamespaceRequest {
|
|
116
|
+
/**
|
|
117
|
+
* 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.
|
|
118
|
+
* @minLength 1
|
|
119
|
+
* @maxLength 50
|
|
120
|
+
*/
|
|
121
|
+
namespace: string;
|
|
122
|
+
/**
|
|
123
|
+
* Program definition external ID.
|
|
124
|
+
* @format GUID
|
|
125
|
+
*/
|
|
126
|
+
externalId: string;
|
|
127
|
+
}
|
|
128
|
+
interface GetProgramDefinitionByExternalIdAndNamespaceResponse {
|
|
129
|
+
/** Retrieved program definition. */
|
|
130
|
+
programDefinition?: ProgramDefinition;
|
|
131
|
+
}
|
|
132
|
+
interface QueryProgramDefinitionsRequest {
|
|
133
|
+
/** Filter, sort, and paging to apply to the query. */
|
|
134
|
+
query?: CursorQuery;
|
|
135
|
+
}
|
|
136
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
137
|
+
/** 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`. */
|
|
138
|
+
cursorPaging?: CursorPaging;
|
|
139
|
+
/**
|
|
140
|
+
* Filter object.
|
|
141
|
+
* See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
142
|
+
* for more information.
|
|
143
|
+
*/
|
|
144
|
+
filter?: Record<string, any> | null;
|
|
145
|
+
/**
|
|
146
|
+
* List of sort objects.
|
|
147
|
+
* @maxSize 5
|
|
148
|
+
*/
|
|
149
|
+
sort?: Sorting[];
|
|
150
|
+
}
|
|
151
|
+
/** @oneof */
|
|
152
|
+
interface CursorQueryPagingMethodOneOf {
|
|
153
|
+
/** 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`. */
|
|
154
|
+
cursorPaging?: CursorPaging;
|
|
155
|
+
}
|
|
156
|
+
interface Sorting {
|
|
157
|
+
/**
|
|
158
|
+
* Field to sort by.
|
|
159
|
+
* @maxLength 512
|
|
160
|
+
*/
|
|
161
|
+
fieldName?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
164
|
+
*
|
|
165
|
+
* Default: `ASC`
|
|
166
|
+
*/
|
|
167
|
+
order?: SortOrder;
|
|
168
|
+
}
|
|
169
|
+
declare enum SortOrder {
|
|
170
|
+
/** Ascending sort order. */
|
|
171
|
+
ASC = "ASC",
|
|
172
|
+
/** Descending sort order. */
|
|
173
|
+
DESC = "DESC"
|
|
174
|
+
}
|
|
175
|
+
interface CursorPaging {
|
|
176
|
+
/**
|
|
177
|
+
* Maximum number of items to return.
|
|
178
|
+
* @max 100
|
|
179
|
+
*/
|
|
180
|
+
limit?: number | null;
|
|
181
|
+
/**
|
|
182
|
+
* Pointer to the next or previous page in the list of results.
|
|
183
|
+
*
|
|
184
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
185
|
+
* Not relevant for the first request.
|
|
186
|
+
* @maxLength 16000
|
|
187
|
+
*/
|
|
188
|
+
cursor?: string | null;
|
|
189
|
+
}
|
|
190
|
+
interface QueryProgramDefinitionsResponse {
|
|
191
|
+
/** List of retrieved program definitions. */
|
|
192
|
+
programDefinitions?: ProgramDefinition[];
|
|
193
|
+
/** Metadata for the paginated results. */
|
|
194
|
+
metadata?: CursorPagingMetadata;
|
|
195
|
+
}
|
|
196
|
+
interface CursorPagingMetadata {
|
|
197
|
+
/** Number of items returned in the response. */
|
|
198
|
+
count?: number | null;
|
|
199
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
200
|
+
cursors?: Cursors;
|
|
201
|
+
/**
|
|
202
|
+
* Whether there are more pages to retrieve following the current page.
|
|
203
|
+
*
|
|
204
|
+
* + `true`: Another page of results can be retrieved.
|
|
205
|
+
* + `false`: This is the last page.
|
|
206
|
+
*/
|
|
207
|
+
hasNext?: boolean | null;
|
|
208
|
+
}
|
|
209
|
+
interface Cursors {
|
|
210
|
+
/**
|
|
211
|
+
* Cursor string pointing to the next page in the list of results.
|
|
212
|
+
* @maxLength 16000
|
|
213
|
+
*/
|
|
214
|
+
next?: string | null;
|
|
215
|
+
/**
|
|
216
|
+
* Cursor pointing to the previous page in the list of results.
|
|
217
|
+
* @maxLength 16000
|
|
218
|
+
*/
|
|
219
|
+
prev?: string | null;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
223
|
+
getUrl: (context: any) => string;
|
|
224
|
+
httpMethod: K;
|
|
225
|
+
path: string;
|
|
226
|
+
pathParams: M;
|
|
227
|
+
__requestType: T;
|
|
228
|
+
__originalRequestType: S;
|
|
229
|
+
__responseType: Q;
|
|
230
|
+
__originalResponseType: R;
|
|
231
|
+
};
|
|
232
|
+
declare function createProgramDefinition(): __PublicMethodMetaInfo<'POST', {}, CreateProgramDefinitionRequest$1, CreateProgramDefinitionRequest, CreateProgramDefinitionResponse$1, CreateProgramDefinitionResponse>;
|
|
233
|
+
declare function updateProgramDefinition(): __PublicMethodMetaInfo<'PATCH', {
|
|
234
|
+
programDefinitionId: string;
|
|
235
|
+
}, UpdateProgramDefinitionRequest$1, UpdateProgramDefinitionRequest, UpdateProgramDefinitionResponse$1, UpdateProgramDefinitionResponse>;
|
|
236
|
+
declare function deleteProgramDefinition(): __PublicMethodMetaInfo<'DELETE', {
|
|
237
|
+
programDefinitionId: string;
|
|
238
|
+
}, DeleteProgramDefinitionRequest$1, DeleteProgramDefinitionRequest, DeleteProgramDefinitionResponse$1, DeleteProgramDefinitionResponse>;
|
|
239
|
+
declare function getProgramDefinition(): __PublicMethodMetaInfo<'GET', {
|
|
240
|
+
programDefinitionId: string;
|
|
241
|
+
}, GetProgramDefinitionRequest$1, GetProgramDefinitionRequest, GetProgramDefinitionResponse$1, GetProgramDefinitionResponse>;
|
|
242
|
+
declare function getProgramDefinitionByExternalIdAndNamespace(): __PublicMethodMetaInfo<'GET', {}, GetProgramDefinitionByExternalIdAndNamespaceRequest$1, GetProgramDefinitionByExternalIdAndNamespaceRequest, GetProgramDefinitionByExternalIdAndNamespaceResponse$1, GetProgramDefinitionByExternalIdAndNamespaceResponse>;
|
|
243
|
+
declare function queryProgramDefinitions(): __PublicMethodMetaInfo<'POST', {}, QueryProgramDefinitionsRequest$1, QueryProgramDefinitionsRequest, QueryProgramDefinitionsResponse$1, QueryProgramDefinitionsResponse>;
|
|
244
|
+
|
|
245
|
+
export { type __PublicMethodMetaInfo, createProgramDefinition, deleteProgramDefinition, getProgramDefinition, getProgramDefinitionByExternalIdAndNamespace, queryProgramDefinitions, updateProgramDefinition };
|