@wix/auto_sdk_benefit-programs_program-definitions 1.0.0 → 1.0.2
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-program-definition-program-definitions.http.js +32 -0
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.js.map +1 -1
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.d.ts +101 -23
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.js.map +1 -1
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.d.ts +152 -27
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.js +30 -0
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.js.map +1 -1
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.http.js +32 -0
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.http.js.map +1 -1
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.types.d.ts +101 -23
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.types.js.map +1 -1
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.universal.d.ts +152 -27
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.universal.js +30 -0
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.universal.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.js +32 -0
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.d.ts +101 -23
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.d.ts +152 -27
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.js +30 -0
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.http.js +32 -0
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.http.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.types.d.ts +101 -23
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.types.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.universal.d.ts +152 -27
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.universal.js +30 -0
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export interface ProgramDefinition {
|
|
2
2
|
/**
|
|
3
3
|
* Program definition ID.
|
|
4
|
+
* @format GUID
|
|
5
|
+
* @immutable
|
|
4
6
|
* @readonly
|
|
5
7
|
*/
|
|
6
8
|
id?: string | null;
|
|
@@ -22,16 +24,28 @@ export interface ProgramDefinition {
|
|
|
22
24
|
* @readonly
|
|
23
25
|
*/
|
|
24
26
|
updatedDate?: Date | null;
|
|
25
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Name of the program associated with this program definition. This name will be the same for all programs provisioned from this program definition.
|
|
29
|
+
* @maxLength 64
|
|
30
|
+
*/
|
|
26
31
|
displayName?: string | null;
|
|
27
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* Application sub-module that represents the source of the program definition. Specified by the external developer. This namespace is used to handle and retrieve program definition and associated programs.
|
|
34
|
+
* @immutable
|
|
35
|
+
* @minLength 1
|
|
36
|
+
* @maxLength 50
|
|
37
|
+
*/
|
|
28
38
|
namespace?: string | null;
|
|
29
39
|
/**
|
|
30
40
|
* Custom field data for the program definition object.
|
|
31
41
|
* [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.
|
|
32
42
|
*/
|
|
33
43
|
extendedFields?: ExtendedFields;
|
|
34
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* External program definition ID designated by the app owner.
|
|
46
|
+
* @format GUID
|
|
47
|
+
* @immutable
|
|
48
|
+
*/
|
|
35
49
|
externalId?: string | null;
|
|
36
50
|
}
|
|
37
51
|
export interface ExtendedFields {
|
|
@@ -62,7 +76,10 @@ export interface UpdateProgramDefinitionResponse {
|
|
|
62
76
|
programDefinition?: ProgramDefinition;
|
|
63
77
|
}
|
|
64
78
|
export interface DeleteProgramDefinitionRequest {
|
|
65
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* ID of the ProgramDefinition to delete.
|
|
81
|
+
* @format GUID
|
|
82
|
+
*/
|
|
66
83
|
programDefinitionId: string;
|
|
67
84
|
/**
|
|
68
85
|
* Specifies the timing of ending the active benefit pools associated with this program definition.
|
|
@@ -95,7 +112,10 @@ export declare enum Cascade {
|
|
|
95
112
|
export interface DeleteProgramDefinitionResponse {
|
|
96
113
|
}
|
|
97
114
|
export interface GetProgramDefinitionRequest {
|
|
98
|
-
/**
|
|
115
|
+
/**
|
|
116
|
+
* ID of the program definition to retrieve.
|
|
117
|
+
* @format GUID
|
|
118
|
+
*/
|
|
99
119
|
programDefinitionId: string;
|
|
100
120
|
}
|
|
101
121
|
export interface GetProgramDefinitionResponse {
|
|
@@ -103,9 +123,16 @@ export interface GetProgramDefinitionResponse {
|
|
|
103
123
|
programDefinition?: ProgramDefinition;
|
|
104
124
|
}
|
|
105
125
|
export interface GetProgramDefinitionByExternalIdAndNamespaceRequest {
|
|
106
|
-
/**
|
|
126
|
+
/**
|
|
127
|
+
* Application sub-module that represents the source of the program definition. Specified by the external developer. This namespace is used to handle and retrieve program definition and associated programs.
|
|
128
|
+
* @minLength 1
|
|
129
|
+
* @maxLength 50
|
|
130
|
+
*/
|
|
107
131
|
namespace: string;
|
|
108
|
-
/**
|
|
132
|
+
/**
|
|
133
|
+
* External program definition ID.
|
|
134
|
+
* @format GUID
|
|
135
|
+
*/
|
|
109
136
|
externalId: string;
|
|
110
137
|
}
|
|
111
138
|
export interface GetProgramDefinitionByExternalIdAndNamespaceResponse {
|
|
@@ -131,6 +158,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
131
158
|
/**
|
|
132
159
|
* Sort object in the following format:
|
|
133
160
|
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
161
|
+
* @maxSize 5
|
|
134
162
|
*/
|
|
135
163
|
sort?: Sorting[];
|
|
136
164
|
}
|
|
@@ -140,7 +168,10 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
140
168
|
cursorPaging?: CursorPaging;
|
|
141
169
|
}
|
|
142
170
|
export interface Sorting {
|
|
143
|
-
/**
|
|
171
|
+
/**
|
|
172
|
+
* Name of the field to sort by.
|
|
173
|
+
* @maxLength 512
|
|
174
|
+
*/
|
|
144
175
|
fieldName?: string;
|
|
145
176
|
/** Sort order. */
|
|
146
177
|
order?: SortOrder;
|
|
@@ -152,13 +183,17 @@ export declare enum SortOrder {
|
|
|
152
183
|
DESC = "DESC"
|
|
153
184
|
}
|
|
154
185
|
export interface CursorPaging {
|
|
155
|
-
/**
|
|
186
|
+
/**
|
|
187
|
+
* Maximum number of items to return in the results.
|
|
188
|
+
* @max 100
|
|
189
|
+
*/
|
|
156
190
|
limit?: number | null;
|
|
157
191
|
/**
|
|
158
192
|
* Pointer to the next or previous page in the list of results.
|
|
159
193
|
*
|
|
160
194
|
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
161
195
|
* Not relevant for the first request.
|
|
196
|
+
* @maxLength 16000
|
|
162
197
|
*/
|
|
163
198
|
cursor?: string | null;
|
|
164
199
|
}
|
|
@@ -182,9 +217,15 @@ export interface CursorPagingMetadata {
|
|
|
182
217
|
hasNext?: boolean | null;
|
|
183
218
|
}
|
|
184
219
|
export interface Cursors {
|
|
185
|
-
/**
|
|
220
|
+
/**
|
|
221
|
+
* Cursor string pointing to the next page in the list of results.
|
|
222
|
+
* @maxLength 16000
|
|
223
|
+
*/
|
|
186
224
|
next?: string | null;
|
|
187
|
-
/**
|
|
225
|
+
/**
|
|
226
|
+
* Cursor pointing to the previous page in the list of results.
|
|
227
|
+
* @maxLength 16000
|
|
228
|
+
*/
|
|
188
229
|
prev?: string | null;
|
|
189
230
|
}
|
|
190
231
|
export interface UpsertProgramDefinitionRequest {
|
|
@@ -196,9 +237,16 @@ export interface UpsertProgramDefinitionResponse {
|
|
|
196
237
|
programDefinition?: ProgramDefinition;
|
|
197
238
|
}
|
|
198
239
|
export interface GetOrCreateProgramDefinitionRequest {
|
|
199
|
-
/**
|
|
240
|
+
/**
|
|
241
|
+
* Application sub-module that represents the source of the program definition. Specified by the external developer. This namespace is used to handle and retrieve program definition and associated programs.
|
|
242
|
+
* @minLength 1
|
|
243
|
+
* @maxLength 50
|
|
244
|
+
*/
|
|
200
245
|
namespace?: string;
|
|
201
|
-
/**
|
|
246
|
+
/**
|
|
247
|
+
* External program definition ID.
|
|
248
|
+
* @format GUID
|
|
249
|
+
*/
|
|
202
250
|
externalId?: string;
|
|
203
251
|
}
|
|
204
252
|
export interface GetOrCreateProgramDefinitionResponse {
|
|
@@ -278,9 +326,15 @@ export interface ActionEvent {
|
|
|
278
326
|
bodyAsJson?: string;
|
|
279
327
|
}
|
|
280
328
|
export interface MessageEnvelope {
|
|
281
|
-
/**
|
|
329
|
+
/**
|
|
330
|
+
* App instance ID.
|
|
331
|
+
* @format GUID
|
|
332
|
+
*/
|
|
282
333
|
instanceId?: string | null;
|
|
283
|
-
/**
|
|
334
|
+
/**
|
|
335
|
+
* Event type.
|
|
336
|
+
* @maxLength 150
|
|
337
|
+
*/
|
|
284
338
|
eventType?: string;
|
|
285
339
|
/** The identification type and identity data. */
|
|
286
340
|
identity?: IdentificationData;
|
|
@@ -288,26 +342,50 @@ export interface MessageEnvelope {
|
|
|
288
342
|
data?: string;
|
|
289
343
|
}
|
|
290
344
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
291
|
-
/**
|
|
345
|
+
/**
|
|
346
|
+
* ID of a site visitor that has not logged in to the site.
|
|
347
|
+
* @format GUID
|
|
348
|
+
*/
|
|
292
349
|
anonymousVisitorId?: string;
|
|
293
|
-
/**
|
|
350
|
+
/**
|
|
351
|
+
* ID of a site visitor that has logged in to the site.
|
|
352
|
+
* @format GUID
|
|
353
|
+
*/
|
|
294
354
|
memberId?: string;
|
|
295
|
-
/**
|
|
355
|
+
/**
|
|
356
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
357
|
+
* @format GUID
|
|
358
|
+
*/
|
|
296
359
|
wixUserId?: string;
|
|
297
|
-
/**
|
|
360
|
+
/**
|
|
361
|
+
* ID of an app.
|
|
362
|
+
* @format GUID
|
|
363
|
+
*/
|
|
298
364
|
appId?: string;
|
|
299
365
|
/** @readonly */
|
|
300
366
|
identityType?: WebhookIdentityType;
|
|
301
367
|
}
|
|
302
368
|
/** @oneof */
|
|
303
369
|
export interface IdentificationDataIdOneOf {
|
|
304
|
-
/**
|
|
370
|
+
/**
|
|
371
|
+
* ID of a site visitor that has not logged in to the site.
|
|
372
|
+
* @format GUID
|
|
373
|
+
*/
|
|
305
374
|
anonymousVisitorId?: string;
|
|
306
|
-
/**
|
|
375
|
+
/**
|
|
376
|
+
* ID of a site visitor that has logged in to the site.
|
|
377
|
+
* @format GUID
|
|
378
|
+
*/
|
|
307
379
|
memberId?: string;
|
|
308
|
-
/**
|
|
380
|
+
/**
|
|
381
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
382
|
+
* @format GUID
|
|
383
|
+
*/
|
|
309
384
|
wixUserId?: string;
|
|
310
|
-
/**
|
|
385
|
+
/**
|
|
386
|
+
* ID of an app.
|
|
387
|
+
* @format GUID
|
|
388
|
+
*/
|
|
311
389
|
appId?: string;
|
|
312
390
|
}
|
|
313
391
|
export declare enum WebhookIdentityType {
|
package/build/es/src/benefit-programs-v1-program-definition-program-definitions.types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-program-definition-program-definitions.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-definition-program-definitions.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-program-definition-program-definitions.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-definition-program-definitions.types.ts"],"names":[],"mappings":"AAgGA,MAAM,CAAN,IAAY,OAqBX;AArBD,WAAY,OAAO;IACjB,uBAAuB;IACvB,8CAAmC,CAAA;IACnC;;;;OAIG;IACH,wCAA6B,CAAA;IAC7B;;;;OAIG;IACH,sCAA2B,CAAA;IAC3B;;;;OAIG;IACH,kDAAuC,CAAA;AACzC,CAAC,EArBW,OAAO,KAAP,OAAO,QAqBlB;AA6ED,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AAkOD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|
package/build/es/src/benefit-programs-v1-program-definition-program-definitions.universal.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export interface ProgramDefinition {
|
|
2
2
|
/**
|
|
3
3
|
* Program definition ID.
|
|
4
|
+
* @format GUID
|
|
5
|
+
* @immutable
|
|
4
6
|
* @readonly
|
|
5
7
|
*/
|
|
6
8
|
_id?: string | null;
|
|
@@ -22,16 +24,28 @@ export interface ProgramDefinition {
|
|
|
22
24
|
* @readonly
|
|
23
25
|
*/
|
|
24
26
|
_updatedDate?: Date | null;
|
|
25
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Name of the program associated with this program definition. This name will be the same for all programs provisioned from this program definition.
|
|
29
|
+
* @maxLength 64
|
|
30
|
+
*/
|
|
26
31
|
displayName?: string | null;
|
|
27
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* Application sub-module that represents the source of the program definition. Specified by the external developer. This namespace is used to handle and retrieve program definition and associated programs.
|
|
34
|
+
* @immutable
|
|
35
|
+
* @minLength 1
|
|
36
|
+
* @maxLength 50
|
|
37
|
+
*/
|
|
28
38
|
namespace?: string | null;
|
|
29
39
|
/**
|
|
30
40
|
* Custom field data for the program definition object.
|
|
31
41
|
* [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.
|
|
32
42
|
*/
|
|
33
43
|
extendedFields?: ExtendedFields;
|
|
34
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* External program definition ID designated by the app owner.
|
|
46
|
+
* @format GUID
|
|
47
|
+
* @immutable
|
|
48
|
+
*/
|
|
35
49
|
externalId?: string | null;
|
|
36
50
|
}
|
|
37
51
|
export interface ExtendedFields {
|
|
@@ -62,7 +76,10 @@ export interface UpdateProgramDefinitionResponse {
|
|
|
62
76
|
programDefinition?: ProgramDefinition;
|
|
63
77
|
}
|
|
64
78
|
export interface DeleteProgramDefinitionRequest {
|
|
65
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* ID of the ProgramDefinition to delete.
|
|
81
|
+
* @format GUID
|
|
82
|
+
*/
|
|
66
83
|
programDefinitionId: string;
|
|
67
84
|
/**
|
|
68
85
|
* Specifies the timing of ending the active benefit pools associated with this program definition.
|
|
@@ -95,7 +112,10 @@ export declare enum Cascade {
|
|
|
95
112
|
export interface DeleteProgramDefinitionResponse {
|
|
96
113
|
}
|
|
97
114
|
export interface GetProgramDefinitionRequest {
|
|
98
|
-
/**
|
|
115
|
+
/**
|
|
116
|
+
* ID of the program definition to retrieve.
|
|
117
|
+
* @format GUID
|
|
118
|
+
*/
|
|
99
119
|
programDefinitionId: string;
|
|
100
120
|
}
|
|
101
121
|
export interface GetProgramDefinitionResponse {
|
|
@@ -103,9 +123,16 @@ export interface GetProgramDefinitionResponse {
|
|
|
103
123
|
programDefinition?: ProgramDefinition;
|
|
104
124
|
}
|
|
105
125
|
export interface GetProgramDefinitionByExternalIdAndNamespaceRequest {
|
|
106
|
-
/**
|
|
126
|
+
/**
|
|
127
|
+
* Application sub-module that represents the source of the program definition. Specified by the external developer. This namespace is used to handle and retrieve program definition and associated programs.
|
|
128
|
+
* @minLength 1
|
|
129
|
+
* @maxLength 50
|
|
130
|
+
*/
|
|
107
131
|
namespace: string;
|
|
108
|
-
/**
|
|
132
|
+
/**
|
|
133
|
+
* External program definition ID.
|
|
134
|
+
* @format GUID
|
|
135
|
+
*/
|
|
109
136
|
externalId: string;
|
|
110
137
|
}
|
|
111
138
|
export interface GetProgramDefinitionByExternalIdAndNamespaceResponse {
|
|
@@ -131,6 +158,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
131
158
|
/**
|
|
132
159
|
* Sort object in the following format:
|
|
133
160
|
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
161
|
+
* @maxSize 5
|
|
134
162
|
*/
|
|
135
163
|
sort?: Sorting[];
|
|
136
164
|
}
|
|
@@ -140,7 +168,10 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
140
168
|
cursorPaging?: CursorPaging;
|
|
141
169
|
}
|
|
142
170
|
export interface Sorting {
|
|
143
|
-
/**
|
|
171
|
+
/**
|
|
172
|
+
* Name of the field to sort by.
|
|
173
|
+
* @maxLength 512
|
|
174
|
+
*/
|
|
144
175
|
fieldName?: string;
|
|
145
176
|
/** Sort order. */
|
|
146
177
|
order?: SortOrder;
|
|
@@ -152,13 +183,17 @@ export declare enum SortOrder {
|
|
|
152
183
|
DESC = "DESC"
|
|
153
184
|
}
|
|
154
185
|
export interface CursorPaging {
|
|
155
|
-
/**
|
|
186
|
+
/**
|
|
187
|
+
* Maximum number of items to return in the results.
|
|
188
|
+
* @max 100
|
|
189
|
+
*/
|
|
156
190
|
limit?: number | null;
|
|
157
191
|
/**
|
|
158
192
|
* Pointer to the next or previous page in the list of results.
|
|
159
193
|
*
|
|
160
194
|
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
161
195
|
* Not relevant for the first request.
|
|
196
|
+
* @maxLength 16000
|
|
162
197
|
*/
|
|
163
198
|
cursor?: string | null;
|
|
164
199
|
}
|
|
@@ -182,9 +217,15 @@ export interface CursorPagingMetadata {
|
|
|
182
217
|
hasNext?: boolean | null;
|
|
183
218
|
}
|
|
184
219
|
export interface Cursors {
|
|
185
|
-
/**
|
|
220
|
+
/**
|
|
221
|
+
* Cursor string pointing to the next page in the list of results.
|
|
222
|
+
* @maxLength 16000
|
|
223
|
+
*/
|
|
186
224
|
next?: string | null;
|
|
187
|
-
/**
|
|
225
|
+
/**
|
|
226
|
+
* Cursor pointing to the previous page in the list of results.
|
|
227
|
+
* @maxLength 16000
|
|
228
|
+
*/
|
|
188
229
|
prev?: string | null;
|
|
189
230
|
}
|
|
190
231
|
export interface UpsertProgramDefinitionRequest {
|
|
@@ -196,9 +237,16 @@ export interface UpsertProgramDefinitionResponse {
|
|
|
196
237
|
programDefinition?: ProgramDefinition;
|
|
197
238
|
}
|
|
198
239
|
export interface GetOrCreateProgramDefinitionRequest {
|
|
199
|
-
/**
|
|
240
|
+
/**
|
|
241
|
+
* Application sub-module that represents the source of the program definition. Specified by the external developer. This namespace is used to handle and retrieve program definition and associated programs.
|
|
242
|
+
* @minLength 1
|
|
243
|
+
* @maxLength 50
|
|
244
|
+
*/
|
|
200
245
|
namespace?: string;
|
|
201
|
-
/**
|
|
246
|
+
/**
|
|
247
|
+
* External program definition ID.
|
|
248
|
+
* @format GUID
|
|
249
|
+
*/
|
|
202
250
|
externalId?: string;
|
|
203
251
|
}
|
|
204
252
|
export interface GetOrCreateProgramDefinitionResponse {
|
|
@@ -276,9 +324,15 @@ export interface ActionEvent {
|
|
|
276
324
|
body?: string;
|
|
277
325
|
}
|
|
278
326
|
export interface MessageEnvelope {
|
|
279
|
-
/**
|
|
327
|
+
/**
|
|
328
|
+
* App instance ID.
|
|
329
|
+
* @format GUID
|
|
330
|
+
*/
|
|
280
331
|
instanceId?: string | null;
|
|
281
|
-
/**
|
|
332
|
+
/**
|
|
333
|
+
* Event type.
|
|
334
|
+
* @maxLength 150
|
|
335
|
+
*/
|
|
282
336
|
eventType?: string;
|
|
283
337
|
/** The identification type and identity data. */
|
|
284
338
|
identity?: IdentificationData;
|
|
@@ -286,26 +340,50 @@ export interface MessageEnvelope {
|
|
|
286
340
|
data?: string;
|
|
287
341
|
}
|
|
288
342
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
289
|
-
/**
|
|
343
|
+
/**
|
|
344
|
+
* ID of a site visitor that has not logged in to the site.
|
|
345
|
+
* @format GUID
|
|
346
|
+
*/
|
|
290
347
|
anonymousVisitorId?: string;
|
|
291
|
-
/**
|
|
348
|
+
/**
|
|
349
|
+
* ID of a site visitor that has logged in to the site.
|
|
350
|
+
* @format GUID
|
|
351
|
+
*/
|
|
292
352
|
memberId?: string;
|
|
293
|
-
/**
|
|
353
|
+
/**
|
|
354
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
355
|
+
* @format GUID
|
|
356
|
+
*/
|
|
294
357
|
wixUserId?: string;
|
|
295
|
-
/**
|
|
358
|
+
/**
|
|
359
|
+
* ID of an app.
|
|
360
|
+
* @format GUID
|
|
361
|
+
*/
|
|
296
362
|
appId?: string;
|
|
297
363
|
/** @readonly */
|
|
298
364
|
identityType?: WebhookIdentityType;
|
|
299
365
|
}
|
|
300
366
|
/** @oneof */
|
|
301
367
|
export interface IdentificationDataIdOneOf {
|
|
302
|
-
/**
|
|
368
|
+
/**
|
|
369
|
+
* ID of a site visitor that has not logged in to the site.
|
|
370
|
+
* @format GUID
|
|
371
|
+
*/
|
|
303
372
|
anonymousVisitorId?: string;
|
|
304
|
-
/**
|
|
373
|
+
/**
|
|
374
|
+
* ID of a site visitor that has logged in to the site.
|
|
375
|
+
* @format GUID
|
|
376
|
+
*/
|
|
305
377
|
memberId?: string;
|
|
306
|
-
/**
|
|
378
|
+
/**
|
|
379
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
380
|
+
* @format GUID
|
|
381
|
+
*/
|
|
307
382
|
wixUserId?: string;
|
|
308
|
-
/**
|
|
383
|
+
/**
|
|
384
|
+
* ID of an app.
|
|
385
|
+
* @format GUID
|
|
386
|
+
*/
|
|
309
387
|
appId?: string;
|
|
310
388
|
}
|
|
311
389
|
export declare enum WebhookIdentityType {
|
|
@@ -324,6 +402,9 @@ export declare enum WebhookIdentityType {
|
|
|
324
402
|
* @requiredField programDefinition.externalId
|
|
325
403
|
* @requiredField programDefinition.namespace
|
|
326
404
|
* @permissionId BENEFIT_PROGRAMS.PROGRAM_DEFINITION_CREATE
|
|
405
|
+
* @permissionScope SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
406
|
+
* @permissionScopeId SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
407
|
+
* @applicableIdentity APP
|
|
327
408
|
* @returns Created program definition.
|
|
328
409
|
* @fqn wix.benefit_programs.v1.program_definition.ProgramDefinitionService.CreateProgramDefinition
|
|
329
410
|
*/
|
|
@@ -343,6 +424,9 @@ export declare function createProgramDefinition(programDefinition: ProgramDefini
|
|
|
343
424
|
* @requiredField programDefinition
|
|
344
425
|
* @requiredField programDefinition.revision
|
|
345
426
|
* @permissionId BENEFIT_PROGRAMS.PROGRAM_DEFINITION_UPDATE
|
|
427
|
+
* @permissionScope SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
428
|
+
* @permissionScopeId SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
429
|
+
* @applicableIdentity APP
|
|
346
430
|
* @returns Updated program definition.
|
|
347
431
|
* @fqn wix.benefit_programs.v1.program_definition.ProgramDefinitionService.UpdateProgramDefinition
|
|
348
432
|
*/
|
|
@@ -350,6 +434,8 @@ export declare function updateProgramDefinition(_id: string | null, programDefin
|
|
|
350
434
|
export interface UpdateProgramDefinition {
|
|
351
435
|
/**
|
|
352
436
|
* Program definition ID.
|
|
437
|
+
* @format GUID
|
|
438
|
+
* @immutable
|
|
353
439
|
* @readonly
|
|
354
440
|
*/
|
|
355
441
|
_id?: string | null;
|
|
@@ -371,16 +457,28 @@ export interface UpdateProgramDefinition {
|
|
|
371
457
|
* @readonly
|
|
372
458
|
*/
|
|
373
459
|
_updatedDate?: Date | null;
|
|
374
|
-
/**
|
|
460
|
+
/**
|
|
461
|
+
* Name of the program associated with this program definition. This name will be the same for all programs provisioned from this program definition.
|
|
462
|
+
* @maxLength 64
|
|
463
|
+
*/
|
|
375
464
|
displayName?: string | null;
|
|
376
|
-
/**
|
|
465
|
+
/**
|
|
466
|
+
* Application sub-module that represents the source of the program definition. Specified by the external developer. This namespace is used to handle and retrieve program definition and associated programs.
|
|
467
|
+
* @immutable
|
|
468
|
+
* @minLength 1
|
|
469
|
+
* @maxLength 50
|
|
470
|
+
*/
|
|
377
471
|
namespace?: string | null;
|
|
378
472
|
/**
|
|
379
473
|
* Custom field data for the program definition object.
|
|
380
474
|
* [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.
|
|
381
475
|
*/
|
|
382
476
|
extendedFields?: ExtendedFields;
|
|
383
|
-
/**
|
|
477
|
+
/**
|
|
478
|
+
* External program definition ID designated by the app owner.
|
|
479
|
+
* @format GUID
|
|
480
|
+
* @immutable
|
|
481
|
+
*/
|
|
384
482
|
externalId?: string | null;
|
|
385
483
|
}
|
|
386
484
|
/**
|
|
@@ -390,6 +488,9 @@ export interface UpdateProgramDefinition {
|
|
|
390
488
|
* @documentationMaturity preview
|
|
391
489
|
* @requiredField programDefinitionId
|
|
392
490
|
* @permissionId BENEFIT_PROGRAMS.PROGRAM_DEFINITION_DELETE
|
|
491
|
+
* @permissionScope SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
492
|
+
* @permissionScopeId SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
493
|
+
* @applicableIdentity APP
|
|
393
494
|
* @fqn wix.benefit_programs.v1.program_definition.ProgramDefinitionService.DeleteProgramDefinition
|
|
394
495
|
*/
|
|
395
496
|
export declare function deleteProgramDefinition(programDefinitionId: string, options?: DeleteProgramDefinitionOptions): Promise<void>;
|
|
@@ -407,6 +508,13 @@ export interface DeleteProgramDefinitionOptions {
|
|
|
407
508
|
* @documentationMaturity preview
|
|
408
509
|
* @requiredField programDefinitionId
|
|
409
510
|
* @permissionId BENEFIT_PROGRAMS.PROGRAM_DEFINITION_READ
|
|
511
|
+
* @permissionScope SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
512
|
+
* @permissionScopeId SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
513
|
+
* @permissionScope SCOPE.BENEFIT_PROGRAMS.READ
|
|
514
|
+
* @permissionScopeId SCOPE.BENEFIT_PROGRAMS.READ
|
|
515
|
+
* @permissionScope Manage Events
|
|
516
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
517
|
+
* @applicableIdentity APP
|
|
410
518
|
* @applicableIdentity VISITOR
|
|
411
519
|
* @returns Retrieved program definition.
|
|
412
520
|
* @fqn wix.benefit_programs.v1.program_definition.ProgramDefinitionService.GetProgramDefinition
|
|
@@ -423,12 +531,22 @@ export declare function getProgramDefinition(programDefinitionId: string): Promi
|
|
|
423
531
|
* @requiredField options
|
|
424
532
|
* @requiredField options.externalId
|
|
425
533
|
* @permissionId BENEFIT_PROGRAMS.PROGRAM_DEFINITION_READ
|
|
534
|
+
* @permissionScope SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
535
|
+
* @permissionScopeId SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
536
|
+
* @permissionScope SCOPE.BENEFIT_PROGRAMS.READ
|
|
537
|
+
* @permissionScopeId SCOPE.BENEFIT_PROGRAMS.READ
|
|
538
|
+
* @permissionScope Manage Events
|
|
539
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
540
|
+
* @applicableIdentity APP
|
|
426
541
|
* @applicableIdentity VISITOR
|
|
427
542
|
* @fqn wix.benefit_programs.v1.program_definition.ProgramDefinitionService.GetProgramDefinitionByExternalIdAndNamespace
|
|
428
543
|
*/
|
|
429
544
|
export declare function getProgramDefinitionByExternalIdAndNamespace(namespace: string, options: GetProgramDefinitionByExternalIdAndNamespaceOptions): Promise<GetProgramDefinitionByExternalIdAndNamespaceResponse>;
|
|
430
545
|
export interface GetProgramDefinitionByExternalIdAndNamespaceOptions {
|
|
431
|
-
/**
|
|
546
|
+
/**
|
|
547
|
+
* External program definition ID.
|
|
548
|
+
* @format GUID
|
|
549
|
+
*/
|
|
432
550
|
externalId: string;
|
|
433
551
|
}
|
|
434
552
|
/**
|
|
@@ -443,7 +561,14 @@ export interface GetProgramDefinitionByExternalIdAndNamespaceOptions {
|
|
|
443
561
|
* The following `ProgramDefinitionsQueryBuilder` functions are supported for `queryProgramDefinitions()`. For a full description of the program definition object, see the object returned for the [`items`](/program-definitions/program-definitions-query-result/items) property in `ProgramDefinitionsQueryResult`.
|
|
444
562
|
* @public
|
|
445
563
|
* @documentationMaturity preview
|
|
564
|
+
* @permissionScope SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
565
|
+
* @permissionScopeId SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
566
|
+
* @permissionScope SCOPE.BENEFIT_PROGRAMS.READ
|
|
567
|
+
* @permissionScopeId SCOPE.BENEFIT_PROGRAMS.READ
|
|
568
|
+
* @permissionScope Manage Events
|
|
569
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
446
570
|
* @permissionId BENEFIT_PROGRAMS.PROGRAM_DEFINITION_READ
|
|
571
|
+
* @applicableIdentity APP
|
|
447
572
|
* @applicableIdentity VISITOR
|
|
448
573
|
* @fqn wix.benefit_programs.v1.program_definition.ProgramDefinitionService.QueryProgramDefinitions
|
|
449
574
|
*/
|
package/build/es/src/benefit-programs-v1-program-definition-program-definitions.universal.js
CHANGED
|
@@ -49,6 +49,9 @@ export var WebhookIdentityType;
|
|
|
49
49
|
* @requiredField programDefinition.externalId
|
|
50
50
|
* @requiredField programDefinition.namespace
|
|
51
51
|
* @permissionId BENEFIT_PROGRAMS.PROGRAM_DEFINITION_CREATE
|
|
52
|
+
* @permissionScope SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
53
|
+
* @permissionScopeId SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
54
|
+
* @applicableIdentity APP
|
|
52
55
|
* @returns Created program definition.
|
|
53
56
|
* @fqn wix.benefit_programs.v1.program_definition.ProgramDefinitionService.CreateProgramDefinition
|
|
54
57
|
*/
|
|
@@ -91,6 +94,9 @@ export async function createProgramDefinition(programDefinition) {
|
|
|
91
94
|
* @requiredField programDefinition
|
|
92
95
|
* @requiredField programDefinition.revision
|
|
93
96
|
* @permissionId BENEFIT_PROGRAMS.PROGRAM_DEFINITION_UPDATE
|
|
97
|
+
* @permissionScope SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
98
|
+
* @permissionScopeId SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
99
|
+
* @applicableIdentity APP
|
|
94
100
|
* @returns Updated program definition.
|
|
95
101
|
* @fqn wix.benefit_programs.v1.program_definition.ProgramDefinitionService.UpdateProgramDefinition
|
|
96
102
|
*/
|
|
@@ -125,6 +131,9 @@ export async function updateProgramDefinition(_id, programDefinition) {
|
|
|
125
131
|
* @documentationMaturity preview
|
|
126
132
|
* @requiredField programDefinitionId
|
|
127
133
|
* @permissionId BENEFIT_PROGRAMS.PROGRAM_DEFINITION_DELETE
|
|
134
|
+
* @permissionScope SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
135
|
+
* @permissionScopeId SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
136
|
+
* @applicableIdentity APP
|
|
128
137
|
* @fqn wix.benefit_programs.v1.program_definition.ProgramDefinitionService.DeleteProgramDefinition
|
|
129
138
|
*/
|
|
130
139
|
export async function deleteProgramDefinition(programDefinitionId, options) {
|
|
@@ -160,6 +169,13 @@ export async function deleteProgramDefinition(programDefinitionId, options) {
|
|
|
160
169
|
* @documentationMaturity preview
|
|
161
170
|
* @requiredField programDefinitionId
|
|
162
171
|
* @permissionId BENEFIT_PROGRAMS.PROGRAM_DEFINITION_READ
|
|
172
|
+
* @permissionScope SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
173
|
+
* @permissionScopeId SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
174
|
+
* @permissionScope SCOPE.BENEFIT_PROGRAMS.READ
|
|
175
|
+
* @permissionScopeId SCOPE.BENEFIT_PROGRAMS.READ
|
|
176
|
+
* @permissionScope Manage Events
|
|
177
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
178
|
+
* @applicableIdentity APP
|
|
163
179
|
* @applicableIdentity VISITOR
|
|
164
180
|
* @returns Retrieved program definition.
|
|
165
181
|
* @fqn wix.benefit_programs.v1.program_definition.ProgramDefinitionService.GetProgramDefinition
|
|
@@ -199,6 +215,13 @@ export async function getProgramDefinition(programDefinitionId) {
|
|
|
199
215
|
* @requiredField options
|
|
200
216
|
* @requiredField options.externalId
|
|
201
217
|
* @permissionId BENEFIT_PROGRAMS.PROGRAM_DEFINITION_READ
|
|
218
|
+
* @permissionScope SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
219
|
+
* @permissionScopeId SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
220
|
+
* @permissionScope SCOPE.BENEFIT_PROGRAMS.READ
|
|
221
|
+
* @permissionScopeId SCOPE.BENEFIT_PROGRAMS.READ
|
|
222
|
+
* @permissionScope Manage Events
|
|
223
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
224
|
+
* @applicableIdentity APP
|
|
202
225
|
* @applicableIdentity VISITOR
|
|
203
226
|
* @fqn wix.benefit_programs.v1.program_definition.ProgramDefinitionService.GetProgramDefinitionByExternalIdAndNamespace
|
|
204
227
|
*/
|
|
@@ -241,7 +264,14 @@ export async function getProgramDefinitionByExternalIdAndNamespace(namespace, op
|
|
|
241
264
|
* The following `ProgramDefinitionsQueryBuilder` functions are supported for `queryProgramDefinitions()`. For a full description of the program definition object, see the object returned for the [`items`](/program-definitions/program-definitions-query-result/items) property in `ProgramDefinitionsQueryResult`.
|
|
242
265
|
* @public
|
|
243
266
|
* @documentationMaturity preview
|
|
267
|
+
* @permissionScope SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
268
|
+
* @permissionScopeId SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
269
|
+
* @permissionScope SCOPE.BENEFIT_PROGRAMS.READ
|
|
270
|
+
* @permissionScopeId SCOPE.BENEFIT_PROGRAMS.READ
|
|
271
|
+
* @permissionScope Manage Events
|
|
272
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
244
273
|
* @permissionId BENEFIT_PROGRAMS.PROGRAM_DEFINITION_READ
|
|
274
|
+
* @applicableIdentity APP
|
|
245
275
|
* @applicableIdentity VISITOR
|
|
246
276
|
* @fqn wix.benefit_programs.v1.program_definition.ProgramDefinitionService.QueryProgramDefinitions
|
|
247
277
|
*/
|