@wix/auto_sdk_benefit-programs_programs 1.0.7 → 1.0.9
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-programs.universal.d.ts → benefit-programs-v1-program-programs.universal-D8MzGxN_.d.mts} +65 -230
- package/build/{cjs/src/benefit-programs-v1-program-programs.universal.d.ts → benefit-programs-v1-program-programs.universal-D8MzGxN_.d.ts} +65 -230
- package/build/index.d.mts +113 -0
- package/build/index.d.ts +113 -0
- package/build/index.js +764 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +726 -0
- package/build/index.mjs.map +1 -0
- package/build/{es/src/benefit-programs-v1-program-programs.universal.d.ts → internal/benefit-programs-v1-program-programs.universal-D8MzGxN_.d.mts} +65 -230
- package/build/internal/{es/src/benefit-programs-v1-program-programs.universal.d.ts → benefit-programs-v1-program-programs.universal-D8MzGxN_.d.ts} +65 -230
- package/build/internal/index.d.mts +113 -0
- package/build/internal/index.d.ts +113 -0
- package/build/internal/index.js +764 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +726 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/{es/src/benefit-programs-v1-program-programs.types.d.ts → internal/meta.d.mts} +62 -275
- package/build/internal/{es/src/benefit-programs-v1-program-programs.types.d.ts → meta.d.ts} +62 -275
- package/build/internal/meta.js +530 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +495 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{cjs/src/benefit-programs-v1-program-programs.types.d.ts → meta.d.mts} +62 -275
- package/build/{internal/cjs/src/benefit-programs-v1-program-programs.types.d.ts → meta.d.ts} +62 -275
- package/build/meta.js +530 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +495 -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-programs.context.d.ts +0 -13
- package/build/cjs/src/benefit-programs-v1-program-programs.context.js +0 -22
- package/build/cjs/src/benefit-programs-v1-program-programs.context.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-program-programs.http.d.ts +0 -53
- package/build/cjs/src/benefit-programs-v1-program-programs.http.js +0 -372
- package/build/cjs/src/benefit-programs-v1-program-programs.http.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-program-programs.meta.d.ts +0 -25
- package/build/cjs/src/benefit-programs-v1-program-programs.meta.js +0 -199
- package/build/cjs/src/benefit-programs-v1-program-programs.meta.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-program-programs.public.d.ts +0 -103
- package/build/cjs/src/benefit-programs-v1-program-programs.public.js +0 -67
- package/build/cjs/src/benefit-programs-v1-program-programs.public.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-program-programs.types.js +0 -63
- package/build/cjs/src/benefit-programs-v1-program-programs.types.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-program-programs.universal.js +0 -493
- package/build/cjs/src/benefit-programs-v1-program-programs.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-program-programs.context.d.ts +0 -13
- package/build/es/src/benefit-programs-v1-program-programs.context.js +0 -13
- package/build/es/src/benefit-programs-v1-program-programs.context.js.map +0 -1
- package/build/es/src/benefit-programs-v1-program-programs.http.d.ts +0 -53
- package/build/es/src/benefit-programs-v1-program-programs.http.js +0 -360
- package/build/es/src/benefit-programs-v1-program-programs.http.js.map +0 -1
- package/build/es/src/benefit-programs-v1-program-programs.meta.d.ts +0 -25
- package/build/es/src/benefit-programs-v1-program-programs.meta.js +0 -164
- package/build/es/src/benefit-programs-v1-program-programs.meta.js.map +0 -1
- package/build/es/src/benefit-programs-v1-program-programs.public.d.ts +0 -103
- package/build/es/src/benefit-programs-v1-program-programs.public.js +0 -49
- package/build/es/src/benefit-programs-v1-program-programs.public.js.map +0 -1
- package/build/es/src/benefit-programs-v1-program-programs.types.js +0 -60
- package/build/es/src/benefit-programs-v1-program-programs.types.js.map +0 -1
- package/build/es/src/benefit-programs-v1-program-programs.universal.js +0 -458
- package/build/es/src/benefit-programs-v1-program-programs.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-programs.context.d.ts +0 -13
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.context.js +0 -22
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.context.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.http.d.ts +0 -53
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.http.js +0 -372
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.http.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.meta.d.ts +0 -25
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.meta.js +0 -199
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.meta.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.public.d.ts +0 -103
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.public.js +0 -67
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.public.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.types.js +0 -63
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.types.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.universal.js +0 -493
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.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-programs.context.d.ts +0 -13
- package/build/internal/es/src/benefit-programs-v1-program-programs.context.js +0 -13
- package/build/internal/es/src/benefit-programs-v1-program-programs.context.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-program-programs.http.d.ts +0 -53
- package/build/internal/es/src/benefit-programs-v1-program-programs.http.js +0 -360
- package/build/internal/es/src/benefit-programs-v1-program-programs.http.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-program-programs.meta.d.ts +0 -25
- package/build/internal/es/src/benefit-programs-v1-program-programs.meta.js +0 -164
- package/build/internal/es/src/benefit-programs-v1-program-programs.meta.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-program-programs.public.d.ts +0 -103
- package/build/internal/es/src/benefit-programs-v1-program-programs.public.js +0 -49
- package/build/internal/es/src/benefit-programs-v1-program-programs.public.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-program-programs.types.js +0 -60
- package/build/internal/es/src/benefit-programs-v1-program-programs.types.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-program-programs.universal.js +0 -458
- package/build/internal/es/src/benefit-programs-v1-program-programs.universal.js.map +0 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { r as ProvisionProgramRequest$1, b as ProvisionProgramResponse$1, u as RenewProgramRequest$1, R as RenewProgramResponse$1, v as PauseProgramRequest$1, c as PauseProgramResponse$1, x as ResumeProgramRequest$1, d as ResumeProgramResponse$1, y as EndProgramRequest$1, E as EndProgramResponse$1, F as UpdateProgramRequest$1, H as UpdateProgramResponse$1, J as GetProgramRequest$1, K as GetProgramResponse$1, Q as QueryProgramsRequest$1, V as QueryProgramsResponse$1, Z as GetProgramByExternalIdAndNamespaceRequest$1, g as GetProgramByExternalIdAndNamespaceResponse$1 } from './benefit-programs-v1-program-programs.universal-D8MzGxN_.mjs';
|
|
2
|
+
|
|
3
|
+
interface Program {
|
|
2
4
|
/**
|
|
3
5
|
* Program ID.
|
|
4
6
|
* @format GUID
|
|
@@ -76,7 +78,7 @@ export interface Program {
|
|
|
76
78
|
*/
|
|
77
79
|
programDefinition?: ProgramDefinitionInfo;
|
|
78
80
|
}
|
|
79
|
-
|
|
81
|
+
declare enum ProgramStatus {
|
|
80
82
|
/** Undefined program status. */
|
|
81
83
|
UNDEFINED = "UNDEFINED",
|
|
82
84
|
/** Program is active. */
|
|
@@ -94,7 +96,7 @@ export declare enum ProgramStatus {
|
|
|
94
96
|
/** Program is being ended. This status exists for a short time during processing. */
|
|
95
97
|
ENDING = "ENDING"
|
|
96
98
|
}
|
|
97
|
-
|
|
99
|
+
interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
98
100
|
/**
|
|
99
101
|
* ID of a site visitor that hasn't logged in to the site.
|
|
100
102
|
* @format GUID
|
|
@@ -112,7 +114,7 @@ export interface CommonIdentificationData extends CommonIdentificationDataIdOneO
|
|
|
112
114
|
wixUserId?: string;
|
|
113
115
|
}
|
|
114
116
|
/** @oneof */
|
|
115
|
-
|
|
117
|
+
interface CommonIdentificationDataIdOneOf {
|
|
116
118
|
/**
|
|
117
119
|
* ID of a site visitor that hasn't logged in to the site.
|
|
118
120
|
* @format GUID
|
|
@@ -129,17 +131,7 @@ export interface CommonIdentificationDataIdOneOf {
|
|
|
129
131
|
*/
|
|
130
132
|
wixUserId?: string;
|
|
131
133
|
}
|
|
132
|
-
|
|
133
|
-
/** Unknown type. This value is not used. */
|
|
134
|
-
UNKNOWN = "UNKNOWN",
|
|
135
|
-
/** A site visitor who has not logged in. */
|
|
136
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
137
|
-
/** A logged-in site member. */
|
|
138
|
-
MEMBER = "MEMBER",
|
|
139
|
-
/** A Wix account holder, such as a site owner or contributor. */
|
|
140
|
-
WIX_USER = "WIX_USER"
|
|
141
|
-
}
|
|
142
|
-
export interface ExtendedFields {
|
|
134
|
+
interface ExtendedFields {
|
|
143
135
|
/**
|
|
144
136
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
145
137
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -150,7 +142,7 @@ export interface ExtendedFields {
|
|
|
150
142
|
*/
|
|
151
143
|
namespaces?: Record<string, Record<string, any>>;
|
|
152
144
|
}
|
|
153
|
-
|
|
145
|
+
interface ProgramDefinitionInfo {
|
|
154
146
|
/**
|
|
155
147
|
* Program definition ID.
|
|
156
148
|
* @format GUID
|
|
@@ -164,28 +156,8 @@ export interface ProgramDefinitionInfo {
|
|
|
164
156
|
*/
|
|
165
157
|
externalId?: string | null;
|
|
166
158
|
}
|
|
167
|
-
export interface ProgramProvisioned {
|
|
168
|
-
/** Program which has been provisioned */
|
|
169
|
-
program?: Program;
|
|
170
|
-
}
|
|
171
|
-
export interface ProgramRenewed {
|
|
172
|
-
/** Program which has been renewed */
|
|
173
|
-
program?: Program;
|
|
174
|
-
}
|
|
175
|
-
export interface ProgramEnded {
|
|
176
|
-
/** Program which has been ended */
|
|
177
|
-
program?: Program;
|
|
178
|
-
}
|
|
179
|
-
export interface ProgramPaused {
|
|
180
|
-
/** Program which has been paused */
|
|
181
|
-
program?: Program;
|
|
182
|
-
}
|
|
183
|
-
export interface ProgramResumed {
|
|
184
|
-
/** Program which has been resumed */
|
|
185
|
-
program?: Program;
|
|
186
|
-
}
|
|
187
159
|
/** In case pool_definition_id is provided should test if it's part of a package. If it is, reject the request */
|
|
188
|
-
|
|
160
|
+
interface ProvisionProgramRequest {
|
|
189
161
|
/** The program definition or pool definition to use to provision the program. */
|
|
190
162
|
poolDefinitionLookupId: PoolDefinitionLookupId;
|
|
191
163
|
/** Program beneficiary. */
|
|
@@ -215,7 +187,7 @@ export interface ProvisionProgramRequest {
|
|
|
215
187
|
*/
|
|
216
188
|
externalProgramId: string;
|
|
217
189
|
}
|
|
218
|
-
|
|
190
|
+
interface PoolDefinitionLookupId extends PoolDefinitionLookupIdIdOneOf {
|
|
219
191
|
/**
|
|
220
192
|
* Pool definition ID.
|
|
221
193
|
* @format GUID
|
|
@@ -228,7 +200,7 @@ export interface PoolDefinitionLookupId extends PoolDefinitionLookupIdIdOneOf {
|
|
|
228
200
|
programDefinitionId?: string;
|
|
229
201
|
}
|
|
230
202
|
/** @oneof */
|
|
231
|
-
|
|
203
|
+
interface PoolDefinitionLookupIdIdOneOf {
|
|
232
204
|
/**
|
|
233
205
|
* Pool definition ID.
|
|
234
206
|
* @format GUID
|
|
@@ -240,13 +212,13 @@ export interface PoolDefinitionLookupIdIdOneOf {
|
|
|
240
212
|
*/
|
|
241
213
|
programDefinitionId?: string;
|
|
242
214
|
}
|
|
243
|
-
|
|
215
|
+
declare enum ProvisionProgramRequestProgramStatus {
|
|
244
216
|
/** Program is active. */
|
|
245
217
|
ACTIVE = "ACTIVE",
|
|
246
218
|
/** Program is paused. */
|
|
247
219
|
PAUSED = "PAUSED"
|
|
248
220
|
}
|
|
249
|
-
|
|
221
|
+
interface ProvisionProgramResponse {
|
|
250
222
|
/**
|
|
251
223
|
* Job ID of the provisioning of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
|
|
252
224
|
* @format GUID
|
|
@@ -255,156 +227,87 @@ export interface ProvisionProgramResponse {
|
|
|
255
227
|
/** Provisioned program. */
|
|
256
228
|
program?: Program;
|
|
257
229
|
}
|
|
258
|
-
export interface ProgramAlreadyExists {
|
|
259
|
-
/**
|
|
260
|
-
* Key of a program that already exists
|
|
261
|
-
* @format GUID
|
|
262
|
-
*/
|
|
263
|
-
externalProgramId?: string;
|
|
264
|
-
/**
|
|
265
|
-
* Key of a program that already exists
|
|
266
|
-
* @format GUID
|
|
267
|
-
*/
|
|
268
|
-
namespace?: string;
|
|
269
|
-
}
|
|
270
230
|
/** Updates the pool credit amount according to the configuration. */
|
|
271
|
-
|
|
231
|
+
interface RenewProgramRequest {
|
|
272
232
|
/**
|
|
273
233
|
* ID of the program to renew.
|
|
274
234
|
* @format GUID
|
|
275
235
|
*/
|
|
276
236
|
programId: string;
|
|
277
237
|
}
|
|
278
|
-
|
|
238
|
+
interface RenewProgramResponse {
|
|
279
239
|
/**
|
|
280
240
|
* Job ID of the program renewal. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
|
|
281
241
|
* @format GUID
|
|
282
242
|
*/
|
|
283
243
|
jobId?: string;
|
|
284
244
|
}
|
|
285
|
-
|
|
245
|
+
interface PauseProgramRequest {
|
|
286
246
|
/**
|
|
287
247
|
* ID of the program to pause.
|
|
288
248
|
* @format GUID
|
|
289
249
|
*/
|
|
290
250
|
programId: string;
|
|
291
251
|
}
|
|
292
|
-
|
|
252
|
+
interface PauseProgramResponse {
|
|
293
253
|
/**
|
|
294
254
|
* Job ID of the pausing of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
|
|
295
255
|
* @format GUID
|
|
296
256
|
*/
|
|
297
257
|
jobId?: string;
|
|
298
258
|
}
|
|
299
|
-
|
|
300
|
-
/** Current status of the program */
|
|
301
|
-
currentStatus?: ProgramStatus;
|
|
302
|
-
/** Status to which the program is being transitioned */
|
|
303
|
-
requestedStatus?: ProgramStatus;
|
|
304
|
-
}
|
|
305
|
-
export interface ResumeProgramRequest {
|
|
259
|
+
interface ResumeProgramRequest {
|
|
306
260
|
/**
|
|
307
261
|
* ID of program to resume.
|
|
308
262
|
* @format GUID
|
|
309
263
|
*/
|
|
310
264
|
programId: string;
|
|
311
265
|
}
|
|
312
|
-
|
|
266
|
+
interface ResumeProgramResponse {
|
|
313
267
|
/**
|
|
314
268
|
* Job ID of the resuming of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
|
|
315
269
|
* @format GUID
|
|
316
270
|
*/
|
|
317
271
|
jobId?: string;
|
|
318
272
|
}
|
|
319
|
-
|
|
273
|
+
interface EndProgramRequest {
|
|
320
274
|
/**
|
|
321
275
|
* ID of the program to end.
|
|
322
276
|
* @format GUID
|
|
323
277
|
*/
|
|
324
278
|
programId: string;
|
|
325
279
|
}
|
|
326
|
-
|
|
280
|
+
interface EndProgramResponse {
|
|
327
281
|
/**
|
|
328
282
|
* Job ID of the ending of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
|
|
329
283
|
* @format GUID
|
|
330
284
|
*/
|
|
331
285
|
jobId?: string;
|
|
332
286
|
}
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* Program to update
|
|
336
|
-
* @format GUID
|
|
337
|
-
*/
|
|
338
|
-
programId?: string;
|
|
339
|
-
/** Program revision */
|
|
340
|
-
programRevision?: string;
|
|
341
|
-
/** Status to update */
|
|
342
|
-
status?: ProgramStatus;
|
|
343
|
-
/** Status to update */
|
|
344
|
-
targetStatus?: ProgramStatus;
|
|
345
|
-
}
|
|
346
|
-
export interface UpdateProgramStatusResponse {
|
|
347
|
-
/** The updated Program */
|
|
348
|
-
program?: Program;
|
|
349
|
-
}
|
|
350
|
-
export interface UpsertMigratedProgramRequest {
|
|
351
|
-
/**
|
|
352
|
-
* Order id
|
|
353
|
-
* @format GUID
|
|
354
|
-
*/
|
|
355
|
-
orderId?: string;
|
|
356
|
-
/**
|
|
357
|
-
* Plan id
|
|
358
|
-
* @format GUID
|
|
359
|
-
*/
|
|
360
|
-
planId?: string;
|
|
361
|
-
/**
|
|
362
|
-
* Order member id
|
|
363
|
-
* @format GUID
|
|
364
|
-
*/
|
|
365
|
-
memberId?: string;
|
|
366
|
-
/** Order status */
|
|
367
|
-
status?: OrderStatus;
|
|
368
|
-
/**
|
|
369
|
-
* Plan name
|
|
370
|
-
* @maxLength 64
|
|
371
|
-
*/
|
|
372
|
-
planName?: string;
|
|
373
|
-
}
|
|
374
|
-
export declare enum OrderStatus {
|
|
375
|
-
UNKNOWN = "UNKNOWN",
|
|
376
|
-
ACTIVE = "ACTIVE",
|
|
377
|
-
PAUSED = "PAUSED",
|
|
378
|
-
ENDED = "ENDED"
|
|
379
|
-
}
|
|
380
|
-
export interface UpsertMigratedProgramResponse {
|
|
381
|
-
/** Inserted or updated program */
|
|
382
|
-
program?: Program;
|
|
383
|
-
}
|
|
384
|
-
export interface UpdateProgramRequest {
|
|
287
|
+
interface UpdateProgramRequest {
|
|
385
288
|
/** Program to update. */
|
|
386
289
|
program: Program;
|
|
387
290
|
}
|
|
388
|
-
|
|
291
|
+
interface UpdateProgramResponse {
|
|
389
292
|
/** Updated program. */
|
|
390
293
|
program?: Program;
|
|
391
294
|
}
|
|
392
|
-
|
|
295
|
+
interface GetProgramRequest {
|
|
393
296
|
/**
|
|
394
297
|
* ID of the program to retrieve.
|
|
395
298
|
* @format GUID
|
|
396
299
|
*/
|
|
397
300
|
programId: string;
|
|
398
301
|
}
|
|
399
|
-
|
|
302
|
+
interface GetProgramResponse {
|
|
400
303
|
/** Retrieved program. */
|
|
401
304
|
program?: Program;
|
|
402
305
|
}
|
|
403
|
-
|
|
306
|
+
interface QueryProgramsRequest {
|
|
404
307
|
/** Filter, sort, and paging to apply to the query. */
|
|
405
308
|
query?: CursorQuery;
|
|
406
309
|
}
|
|
407
|
-
|
|
310
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
408
311
|
/** 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`. */
|
|
409
312
|
cursorPaging?: CursorPaging;
|
|
410
313
|
/**
|
|
@@ -420,11 +323,11 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
420
323
|
sort?: Sorting[];
|
|
421
324
|
}
|
|
422
325
|
/** @oneof */
|
|
423
|
-
|
|
326
|
+
interface CursorQueryPagingMethodOneOf {
|
|
424
327
|
/** 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`. */
|
|
425
328
|
cursorPaging?: CursorPaging;
|
|
426
329
|
}
|
|
427
|
-
|
|
330
|
+
interface Sorting {
|
|
428
331
|
/**
|
|
429
332
|
* Field to sort by.
|
|
430
333
|
* @maxLength 512
|
|
@@ -437,13 +340,13 @@ export interface Sorting {
|
|
|
437
340
|
*/
|
|
438
341
|
order?: SortOrder;
|
|
439
342
|
}
|
|
440
|
-
|
|
343
|
+
declare enum SortOrder {
|
|
441
344
|
/** Ascending sort order. */
|
|
442
345
|
ASC = "ASC",
|
|
443
346
|
/** Descending sort order. */
|
|
444
347
|
DESC = "DESC"
|
|
445
348
|
}
|
|
446
|
-
|
|
349
|
+
interface CursorPaging {
|
|
447
350
|
/**
|
|
448
351
|
* Maximum number of items to return.
|
|
449
352
|
* @max 100
|
|
@@ -458,13 +361,13 @@ export interface CursorPaging {
|
|
|
458
361
|
*/
|
|
459
362
|
cursor?: string | null;
|
|
460
363
|
}
|
|
461
|
-
|
|
364
|
+
interface QueryProgramsResponse {
|
|
462
365
|
/** List of retrieved programs. */
|
|
463
366
|
programs?: Program[];
|
|
464
367
|
/** Metadata for the paginated results. */
|
|
465
368
|
metadata?: CursorPagingMetadata;
|
|
466
369
|
}
|
|
467
|
-
|
|
370
|
+
interface CursorPagingMetadata {
|
|
468
371
|
/** Number of items returned in the response. */
|
|
469
372
|
count?: number | null;
|
|
470
373
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
@@ -477,7 +380,7 @@ export interface CursorPagingMetadata {
|
|
|
477
380
|
*/
|
|
478
381
|
hasNext?: boolean | null;
|
|
479
382
|
}
|
|
480
|
-
|
|
383
|
+
interface Cursors {
|
|
481
384
|
/**
|
|
482
385
|
* Cursor string pointing to the next page in the list of results.
|
|
483
386
|
* @maxLength 16000
|
|
@@ -489,7 +392,7 @@ export interface Cursors {
|
|
|
489
392
|
*/
|
|
490
393
|
prev?: string | null;
|
|
491
394
|
}
|
|
492
|
-
|
|
395
|
+
interface GetProgramByExternalIdAndNamespaceRequest {
|
|
493
396
|
/**
|
|
494
397
|
* 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.
|
|
495
398
|
* @minLength 1
|
|
@@ -502,149 +405,33 @@ export interface GetProgramByExternalIdAndNamespaceRequest {
|
|
|
502
405
|
*/
|
|
503
406
|
externalId: string;
|
|
504
407
|
}
|
|
505
|
-
|
|
408
|
+
interface GetProgramByExternalIdAndNamespaceResponse {
|
|
506
409
|
/** Retrieved program. */
|
|
507
410
|
program?: Program;
|
|
508
411
|
}
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
536
|
-
* (for example, GDPR).
|
|
537
|
-
*/
|
|
538
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
539
|
-
/** If present, indicates the action that triggered the event. */
|
|
540
|
-
originatedFrom?: string | null;
|
|
541
|
-
/**
|
|
542
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
543
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
544
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
545
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
546
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
547
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
548
|
-
*/
|
|
549
|
-
entityEventSequence?: string | null;
|
|
550
|
-
}
|
|
551
|
-
/** @oneof */
|
|
552
|
-
export interface DomainEventBodyOneOf {
|
|
553
|
-
createdEvent?: EntityCreatedEvent;
|
|
554
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
555
|
-
deletedEvent?: EntityDeletedEvent;
|
|
556
|
-
actionEvent?: ActionEvent;
|
|
557
|
-
}
|
|
558
|
-
export interface EntityCreatedEvent {
|
|
559
|
-
entityAsJson?: string;
|
|
560
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
561
|
-
restoreInfo?: RestoreInfo;
|
|
562
|
-
}
|
|
563
|
-
export interface RestoreInfo {
|
|
564
|
-
deletedDate?: Date | null;
|
|
565
|
-
}
|
|
566
|
-
export interface EntityUpdatedEvent {
|
|
567
|
-
/**
|
|
568
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
569
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
570
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
571
|
-
*/
|
|
572
|
-
currentEntityAsJson?: string;
|
|
573
|
-
}
|
|
574
|
-
export interface EntityDeletedEvent {
|
|
575
|
-
/** Entity that was deleted */
|
|
576
|
-
deletedEntityAsJson?: string | null;
|
|
577
|
-
}
|
|
578
|
-
export interface ActionEvent {
|
|
579
|
-
bodyAsJson?: string;
|
|
580
|
-
}
|
|
581
|
-
export interface MessageEnvelope {
|
|
582
|
-
/**
|
|
583
|
-
* App instance ID.
|
|
584
|
-
* @format GUID
|
|
585
|
-
*/
|
|
586
|
-
instanceId?: string | null;
|
|
587
|
-
/**
|
|
588
|
-
* Event type.
|
|
589
|
-
* @maxLength 150
|
|
590
|
-
*/
|
|
591
|
-
eventType?: string;
|
|
592
|
-
/** The identification type and identity data. */
|
|
593
|
-
identity?: IdentificationData;
|
|
594
|
-
/** Stringify payload. */
|
|
595
|
-
data?: string;
|
|
596
|
-
}
|
|
597
|
-
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
598
|
-
/**
|
|
599
|
-
* ID of a site visitor that has not logged in to the site.
|
|
600
|
-
* @format GUID
|
|
601
|
-
*/
|
|
602
|
-
anonymousVisitorId?: string;
|
|
603
|
-
/**
|
|
604
|
-
* ID of a site visitor that has logged in to the site.
|
|
605
|
-
* @format GUID
|
|
606
|
-
*/
|
|
607
|
-
memberId?: string;
|
|
608
|
-
/**
|
|
609
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
610
|
-
* @format GUID
|
|
611
|
-
*/
|
|
612
|
-
wixUserId?: string;
|
|
613
|
-
/**
|
|
614
|
-
* ID of an app.
|
|
615
|
-
* @format GUID
|
|
616
|
-
*/
|
|
617
|
-
appId?: string;
|
|
618
|
-
/** @readonly */
|
|
619
|
-
identityType?: WebhookIdentityType;
|
|
620
|
-
}
|
|
621
|
-
/** @oneof */
|
|
622
|
-
export interface IdentificationDataIdOneOf {
|
|
623
|
-
/**
|
|
624
|
-
* ID of a site visitor that has not logged in to the site.
|
|
625
|
-
* @format GUID
|
|
626
|
-
*/
|
|
627
|
-
anonymousVisitorId?: string;
|
|
628
|
-
/**
|
|
629
|
-
* ID of a site visitor that has logged in to the site.
|
|
630
|
-
* @format GUID
|
|
631
|
-
*/
|
|
632
|
-
memberId?: string;
|
|
633
|
-
/**
|
|
634
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
635
|
-
* @format GUID
|
|
636
|
-
*/
|
|
637
|
-
wixUserId?: string;
|
|
638
|
-
/**
|
|
639
|
-
* ID of an app.
|
|
640
|
-
* @format GUID
|
|
641
|
-
*/
|
|
642
|
-
appId?: string;
|
|
643
|
-
}
|
|
644
|
-
export declare enum WebhookIdentityType {
|
|
645
|
-
UNKNOWN = "UNKNOWN",
|
|
646
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
647
|
-
MEMBER = "MEMBER",
|
|
648
|
-
WIX_USER = "WIX_USER",
|
|
649
|
-
APP = "APP"
|
|
650
|
-
}
|
|
412
|
+
|
|
413
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
414
|
+
getUrl: (context: any) => string;
|
|
415
|
+
httpMethod: K;
|
|
416
|
+
path: string;
|
|
417
|
+
pathParams: M;
|
|
418
|
+
__requestType: T;
|
|
419
|
+
__originalRequestType: S;
|
|
420
|
+
__responseType: Q;
|
|
421
|
+
__originalResponseType: R;
|
|
422
|
+
};
|
|
423
|
+
declare function provisionProgram(): __PublicMethodMetaInfo<'POST', {}, ProvisionProgramRequest$1, ProvisionProgramRequest, ProvisionProgramResponse$1, ProvisionProgramResponse>;
|
|
424
|
+
declare function renewProgram(): __PublicMethodMetaInfo<'POST', {}, RenewProgramRequest$1, RenewProgramRequest, RenewProgramResponse$1, RenewProgramResponse>;
|
|
425
|
+
declare function pauseProgram(): __PublicMethodMetaInfo<'POST', {}, PauseProgramRequest$1, PauseProgramRequest, PauseProgramResponse$1, PauseProgramResponse>;
|
|
426
|
+
declare function resumeProgram(): __PublicMethodMetaInfo<'POST', {}, ResumeProgramRequest$1, ResumeProgramRequest, ResumeProgramResponse$1, ResumeProgramResponse>;
|
|
427
|
+
declare function endProgram(): __PublicMethodMetaInfo<'POST', {}, EndProgramRequest$1, EndProgramRequest, EndProgramResponse$1, EndProgramResponse>;
|
|
428
|
+
declare function updateProgram(): __PublicMethodMetaInfo<'PATCH', {
|
|
429
|
+
programId: string;
|
|
430
|
+
}, UpdateProgramRequest$1, UpdateProgramRequest, UpdateProgramResponse$1, UpdateProgramResponse>;
|
|
431
|
+
declare function getProgram(): __PublicMethodMetaInfo<'GET', {
|
|
432
|
+
programId: string;
|
|
433
|
+
}, GetProgramRequest$1, GetProgramRequest, GetProgramResponse$1, GetProgramResponse>;
|
|
434
|
+
declare function queryPrograms(): __PublicMethodMetaInfo<'POST', {}, QueryProgramsRequest$1, QueryProgramsRequest, QueryProgramsResponse$1, QueryProgramsResponse>;
|
|
435
|
+
declare function getProgramByExternalIdAndNamespace(): __PublicMethodMetaInfo<'GET', {}, GetProgramByExternalIdAndNamespaceRequest$1, GetProgramByExternalIdAndNamespaceRequest, GetProgramByExternalIdAndNamespaceResponse$1, GetProgramByExternalIdAndNamespaceResponse>;
|
|
436
|
+
|
|
437
|
+
export { type __PublicMethodMetaInfo, endProgram, getProgram, getProgramByExternalIdAndNamespace, pauseProgram, provisionProgram, queryPrograms, renewProgram, resumeProgram, updateProgram };
|