@wix/auto_sdk_benefit-programs_programs 1.0.24 → 1.0.26
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/index.js +1 -86
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +1 -86
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +284 -1
- package/build/cjs/meta.js +58 -86
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +1 -86
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +1 -86
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +284 -1
- package/build/es/meta.mjs +52 -86
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +1 -86
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.js +1 -86
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +284 -1
- package/build/internal/cjs/meta.js +58 -86
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +1 -86
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.mjs +1 -86
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +284 -1
- package/build/internal/es/meta.mjs +52 -86
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/meta.d.ts
CHANGED
|
@@ -134,6 +134,18 @@ interface CommonIdentificationDataIdOneOf {
|
|
|
134
134
|
*/
|
|
135
135
|
wixUserId?: string;
|
|
136
136
|
}
|
|
137
|
+
declare enum IdentityType {
|
|
138
|
+
/** Unknown type. This value is not used. */
|
|
139
|
+
UNKNOWN = "UNKNOWN",
|
|
140
|
+
/** A site visitor who has not logged in. */
|
|
141
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
142
|
+
/** A logged-in site member. */
|
|
143
|
+
MEMBER = "MEMBER",
|
|
144
|
+
/** A Wix account holder, such as a site owner or contributor. */
|
|
145
|
+
WIX_USER = "WIX_USER"
|
|
146
|
+
}
|
|
147
|
+
/** @enumType */
|
|
148
|
+
type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
|
|
137
149
|
interface ExtendedFields {
|
|
138
150
|
/**
|
|
139
151
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
@@ -159,6 +171,26 @@ interface ProgramDefinitionInfo {
|
|
|
159
171
|
*/
|
|
160
172
|
externalId?: string | null;
|
|
161
173
|
}
|
|
174
|
+
interface ProgramProvisioned {
|
|
175
|
+
/** Program which has been provisioned */
|
|
176
|
+
program?: Program;
|
|
177
|
+
}
|
|
178
|
+
interface ProgramRenewed {
|
|
179
|
+
/** Program which has been renewed */
|
|
180
|
+
program?: Program;
|
|
181
|
+
}
|
|
182
|
+
interface ProgramEnded {
|
|
183
|
+
/** Program which has been ended */
|
|
184
|
+
program?: Program;
|
|
185
|
+
}
|
|
186
|
+
interface ProgramPaused {
|
|
187
|
+
/** Program which has been paused */
|
|
188
|
+
program?: Program;
|
|
189
|
+
}
|
|
190
|
+
interface ProgramResumed {
|
|
191
|
+
/** Program which has been resumed */
|
|
192
|
+
program?: Program;
|
|
193
|
+
}
|
|
162
194
|
/** In case pool_definition_id is provided should test if it's part of a package. If it is, reject the request */
|
|
163
195
|
interface ProvisionProgramRequest {
|
|
164
196
|
/** The program definition or pool definition to use to provision the program. */
|
|
@@ -232,6 +264,18 @@ interface ProvisionProgramResponse {
|
|
|
232
264
|
/** Provisioned program. */
|
|
233
265
|
program?: Program;
|
|
234
266
|
}
|
|
267
|
+
interface ProgramAlreadyExists {
|
|
268
|
+
/**
|
|
269
|
+
* Key of a program that already exists
|
|
270
|
+
* @format GUID
|
|
271
|
+
*/
|
|
272
|
+
externalProgramId?: string;
|
|
273
|
+
/**
|
|
274
|
+
* Key of a program that already exists
|
|
275
|
+
* @format GUID
|
|
276
|
+
*/
|
|
277
|
+
namespace?: string;
|
|
278
|
+
}
|
|
235
279
|
/** Updates the pool credit amount according to the configuration. */
|
|
236
280
|
interface RenewProgramRequest {
|
|
237
281
|
/**
|
|
@@ -271,6 +315,12 @@ interface PauseProgramResponse {
|
|
|
271
315
|
*/
|
|
272
316
|
jobId?: string;
|
|
273
317
|
}
|
|
318
|
+
interface ProgramStatusTransitionNotAllowed {
|
|
319
|
+
/** Current status of the program */
|
|
320
|
+
currentStatus?: ProgramStatusWithLiterals;
|
|
321
|
+
/** Status to which the program is being transitioned */
|
|
322
|
+
requestedStatus?: ProgramStatusWithLiterals;
|
|
323
|
+
}
|
|
274
324
|
interface ResumeProgramRequest {
|
|
275
325
|
/**
|
|
276
326
|
* ID of program to resume.
|
|
@@ -304,6 +354,59 @@ interface EndProgramResponse {
|
|
|
304
354
|
*/
|
|
305
355
|
jobId?: string;
|
|
306
356
|
}
|
|
357
|
+
interface UpdateProgramStatusRequest {
|
|
358
|
+
/**
|
|
359
|
+
* Program to update
|
|
360
|
+
* @format GUID
|
|
361
|
+
*/
|
|
362
|
+
programId?: string;
|
|
363
|
+
/** Program revision */
|
|
364
|
+
programRevision?: string;
|
|
365
|
+
/** Status to update */
|
|
366
|
+
status?: ProgramStatusWithLiterals;
|
|
367
|
+
/** Status to update */
|
|
368
|
+
targetStatus?: ProgramStatusWithLiterals;
|
|
369
|
+
}
|
|
370
|
+
interface UpdateProgramStatusResponse {
|
|
371
|
+
/** The updated Program */
|
|
372
|
+
program?: Program;
|
|
373
|
+
}
|
|
374
|
+
interface UpsertMigratedProgramRequest {
|
|
375
|
+
/**
|
|
376
|
+
* Order id
|
|
377
|
+
* @format GUID
|
|
378
|
+
*/
|
|
379
|
+
orderId?: string;
|
|
380
|
+
/**
|
|
381
|
+
* Plan id
|
|
382
|
+
* @format GUID
|
|
383
|
+
*/
|
|
384
|
+
planId?: string;
|
|
385
|
+
/**
|
|
386
|
+
* Order member id
|
|
387
|
+
* @format GUID
|
|
388
|
+
*/
|
|
389
|
+
memberId?: string;
|
|
390
|
+
/** Order status */
|
|
391
|
+
status?: OrderStatusWithLiterals;
|
|
392
|
+
/**
|
|
393
|
+
* Plan name
|
|
394
|
+
* @maxLength 64
|
|
395
|
+
*/
|
|
396
|
+
planName?: string;
|
|
397
|
+
}
|
|
398
|
+
declare enum OrderStatus {
|
|
399
|
+
UNKNOWN = "UNKNOWN",
|
|
400
|
+
ACTIVE = "ACTIVE",
|
|
401
|
+
PAUSED = "PAUSED",
|
|
402
|
+
ENDED = "ENDED"
|
|
403
|
+
}
|
|
404
|
+
/** @enumType */
|
|
405
|
+
type OrderStatusWithLiterals = OrderStatus | 'UNKNOWN' | 'ACTIVE' | 'PAUSED' | 'ENDED';
|
|
406
|
+
interface UpsertMigratedProgramResponse {
|
|
407
|
+
/** Inserted or updated program */
|
|
408
|
+
program?: Program;
|
|
409
|
+
}
|
|
307
410
|
interface UpdateProgramRequest {
|
|
308
411
|
/** Program to update. */
|
|
309
412
|
program: Program;
|
|
@@ -431,6 +534,186 @@ interface GetProgramByExternalIdAndNamespaceResponse {
|
|
|
431
534
|
/** Retrieved program. */
|
|
432
535
|
program?: Program;
|
|
433
536
|
}
|
|
537
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
538
|
+
createdEvent?: EntityCreatedEvent;
|
|
539
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
540
|
+
deletedEvent?: EntityDeletedEvent;
|
|
541
|
+
actionEvent?: ActionEvent;
|
|
542
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
543
|
+
id?: string;
|
|
544
|
+
/**
|
|
545
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
546
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
547
|
+
*/
|
|
548
|
+
entityFqdn?: string;
|
|
549
|
+
/**
|
|
550
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
551
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
552
|
+
*/
|
|
553
|
+
slug?: string;
|
|
554
|
+
/** ID of the entity associated with the event. */
|
|
555
|
+
entityId?: string;
|
|
556
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
557
|
+
eventTime?: Date | null;
|
|
558
|
+
/**
|
|
559
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
560
|
+
* (for example, GDPR).
|
|
561
|
+
*/
|
|
562
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
563
|
+
/** If present, indicates the action that triggered the event. */
|
|
564
|
+
originatedFrom?: string | null;
|
|
565
|
+
/**
|
|
566
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
567
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
568
|
+
*/
|
|
569
|
+
entityEventSequence?: string | null;
|
|
570
|
+
}
|
|
571
|
+
/** @oneof */
|
|
572
|
+
interface DomainEventBodyOneOf {
|
|
573
|
+
createdEvent?: EntityCreatedEvent;
|
|
574
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
575
|
+
deletedEvent?: EntityDeletedEvent;
|
|
576
|
+
actionEvent?: ActionEvent;
|
|
577
|
+
}
|
|
578
|
+
interface EntityCreatedEvent {
|
|
579
|
+
entityAsJson?: string;
|
|
580
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
581
|
+
restoreInfo?: RestoreInfo;
|
|
582
|
+
}
|
|
583
|
+
interface RestoreInfo {
|
|
584
|
+
deletedDate?: Date | null;
|
|
585
|
+
}
|
|
586
|
+
interface EntityUpdatedEvent {
|
|
587
|
+
/**
|
|
588
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
589
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
590
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
591
|
+
*/
|
|
592
|
+
currentEntityAsJson?: string;
|
|
593
|
+
}
|
|
594
|
+
interface EntityDeletedEvent {
|
|
595
|
+
/** Entity that was deleted. */
|
|
596
|
+
deletedEntityAsJson?: string | null;
|
|
597
|
+
}
|
|
598
|
+
interface ActionEvent {
|
|
599
|
+
bodyAsJson?: string;
|
|
600
|
+
}
|
|
601
|
+
interface MessageEnvelope {
|
|
602
|
+
/**
|
|
603
|
+
* App instance ID.
|
|
604
|
+
* @format GUID
|
|
605
|
+
*/
|
|
606
|
+
instanceId?: string | null;
|
|
607
|
+
/**
|
|
608
|
+
* Event type.
|
|
609
|
+
* @maxLength 150
|
|
610
|
+
*/
|
|
611
|
+
eventType?: string;
|
|
612
|
+
/** The identification type and identity data. */
|
|
613
|
+
identity?: IdentificationData;
|
|
614
|
+
/** Stringify payload. */
|
|
615
|
+
data?: string;
|
|
616
|
+
}
|
|
617
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
618
|
+
/**
|
|
619
|
+
* ID of a site visitor that has not logged in to the site.
|
|
620
|
+
* @format GUID
|
|
621
|
+
*/
|
|
622
|
+
anonymousVisitorId?: string;
|
|
623
|
+
/**
|
|
624
|
+
* ID of a site visitor that has logged in to the site.
|
|
625
|
+
* @format GUID
|
|
626
|
+
*/
|
|
627
|
+
memberId?: string;
|
|
628
|
+
/**
|
|
629
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
630
|
+
* @format GUID
|
|
631
|
+
*/
|
|
632
|
+
wixUserId?: string;
|
|
633
|
+
/**
|
|
634
|
+
* ID of an app.
|
|
635
|
+
* @format GUID
|
|
636
|
+
*/
|
|
637
|
+
appId?: string;
|
|
638
|
+
/** @readonly */
|
|
639
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
640
|
+
}
|
|
641
|
+
/** @oneof */
|
|
642
|
+
interface IdentificationDataIdOneOf {
|
|
643
|
+
/**
|
|
644
|
+
* ID of a site visitor that has not logged in to the site.
|
|
645
|
+
* @format GUID
|
|
646
|
+
*/
|
|
647
|
+
anonymousVisitorId?: string;
|
|
648
|
+
/**
|
|
649
|
+
* ID of a site visitor that has logged in to the site.
|
|
650
|
+
* @format GUID
|
|
651
|
+
*/
|
|
652
|
+
memberId?: string;
|
|
653
|
+
/**
|
|
654
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
655
|
+
* @format GUID
|
|
656
|
+
*/
|
|
657
|
+
wixUserId?: string;
|
|
658
|
+
/**
|
|
659
|
+
* ID of an app.
|
|
660
|
+
* @format GUID
|
|
661
|
+
*/
|
|
662
|
+
appId?: string;
|
|
663
|
+
}
|
|
664
|
+
declare enum WebhookIdentityType {
|
|
665
|
+
UNKNOWN = "UNKNOWN",
|
|
666
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
667
|
+
MEMBER = "MEMBER",
|
|
668
|
+
WIX_USER = "WIX_USER",
|
|
669
|
+
APP = "APP"
|
|
670
|
+
}
|
|
671
|
+
/** @enumType */
|
|
672
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
673
|
+
/** @docsIgnore */
|
|
674
|
+
type ProvisionProgramApplicationErrors = {
|
|
675
|
+
code?: 'PROGRAM_ALREADY_EXISTS';
|
|
676
|
+
description?: string;
|
|
677
|
+
data?: ProgramAlreadyExists;
|
|
678
|
+
} | {
|
|
679
|
+
code?: 'IN_PROGRESS';
|
|
680
|
+
description?: string;
|
|
681
|
+
data?: Record<string, any>;
|
|
682
|
+
};
|
|
683
|
+
/** @docsIgnore */
|
|
684
|
+
type PauseProgramApplicationErrors = {
|
|
685
|
+
code?: 'PROGRAM_STATUS_TRANSITION_NOT_ALLOWED';
|
|
686
|
+
description?: string;
|
|
687
|
+
data?: ProgramStatusTransitionNotAllowed;
|
|
688
|
+
} | {
|
|
689
|
+
code?: 'ALREADY_EXECUTED';
|
|
690
|
+
description?: string;
|
|
691
|
+
data?: Record<string, any>;
|
|
692
|
+
} | {
|
|
693
|
+
code?: 'IN_PROGRESS';
|
|
694
|
+
description?: string;
|
|
695
|
+
data?: Record<string, any>;
|
|
696
|
+
};
|
|
697
|
+
/** @docsIgnore */
|
|
698
|
+
type ResumeProgramApplicationErrors = {
|
|
699
|
+
code?: 'PROGRAM_STATUS_TRANSITION_NOT_ALLOWED';
|
|
700
|
+
description?: string;
|
|
701
|
+
data?: ProgramStatusTransitionNotAllowed;
|
|
702
|
+
} | {
|
|
703
|
+
code?: 'ALREADY_EXECUTED';
|
|
704
|
+
description?: string;
|
|
705
|
+
data?: Record<string, any>;
|
|
706
|
+
} | {
|
|
707
|
+
code?: 'IN_PROGRESS';
|
|
708
|
+
description?: string;
|
|
709
|
+
data?: Record<string, any>;
|
|
710
|
+
};
|
|
711
|
+
/** @docsIgnore */
|
|
712
|
+
type EndProgramApplicationErrors = {
|
|
713
|
+
code?: 'PROGRAM_STATUS_TRANSITION_NOT_ALLOWED';
|
|
714
|
+
description?: string;
|
|
715
|
+
data?: ProgramStatusTransitionNotAllowed;
|
|
716
|
+
};
|
|
434
717
|
|
|
435
718
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
436
719
|
getUrl: (context: any) => string;
|
|
@@ -456,4 +739,4 @@ declare function getProgram(): __PublicMethodMetaInfo<'GET', {
|
|
|
456
739
|
declare function queryPrograms(): __PublicMethodMetaInfo<'POST', {}, QueryProgramsRequest$1, QueryProgramsRequest, QueryProgramsResponse$1, QueryProgramsResponse>;
|
|
457
740
|
declare function getProgramByExternalIdAndNamespace(): __PublicMethodMetaInfo<'GET', {}, GetProgramByExternalIdAndNamespaceRequest$1, GetProgramByExternalIdAndNamespaceRequest, GetProgramByExternalIdAndNamespaceResponse$1, GetProgramByExternalIdAndNamespaceResponse>;
|
|
458
741
|
|
|
459
|
-
export { type __PublicMethodMetaInfo, endProgram, getProgram, getProgramByExternalIdAndNamespace, pauseProgram, provisionProgram, queryPrograms, renewProgram, resumeProgram, updateProgram };
|
|
742
|
+
export { type ActionEvent as ActionEventOriginal, type CommonIdentificationDataIdOneOf as CommonIdentificationDataIdOneOfOriginal, type CommonIdentificationData as CommonIdentificationDataOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EndProgramApplicationErrors as EndProgramApplicationErrorsOriginal, type EndProgramRequest as EndProgramRequestOriginal, type EndProgramResponse as EndProgramResponseOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type GetProgramByExternalIdAndNamespaceRequest as GetProgramByExternalIdAndNamespaceRequestOriginal, type GetProgramByExternalIdAndNamespaceResponse as GetProgramByExternalIdAndNamespaceResponseOriginal, type GetProgramRequest as GetProgramRequestOriginal, type GetProgramResponse as GetProgramResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, IdentityType as IdentityTypeOriginal, type IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal, type MessageEnvelope as MessageEnvelopeOriginal, OrderStatus as OrderStatusOriginal, type OrderStatusWithLiterals as OrderStatusWithLiteralsOriginal, type PauseProgramApplicationErrors as PauseProgramApplicationErrorsOriginal, type PauseProgramRequest as PauseProgramRequestOriginal, type PauseProgramResponse as PauseProgramResponseOriginal, type PoolDefinitionLookupIdIdOneOf as PoolDefinitionLookupIdIdOneOfOriginal, type PoolDefinitionLookupId as PoolDefinitionLookupIdOriginal, type ProgramAlreadyExists as ProgramAlreadyExistsOriginal, type ProgramDefinitionInfo as ProgramDefinitionInfoOriginal, type ProgramEnded as ProgramEndedOriginal, type Program as ProgramOriginal, type ProgramPaused as ProgramPausedOriginal, type ProgramProvisioned as ProgramProvisionedOriginal, type ProgramRenewed as ProgramRenewedOriginal, type ProgramResumed as ProgramResumedOriginal, ProgramStatus as ProgramStatusOriginal, type ProgramStatusTransitionNotAllowed as ProgramStatusTransitionNotAllowedOriginal, type ProgramStatusWithLiterals as ProgramStatusWithLiteralsOriginal, type ProvisionProgramApplicationErrors as ProvisionProgramApplicationErrorsOriginal, type ProvisionProgramRequest as ProvisionProgramRequestOriginal, ProvisionProgramRequestProgramStatus as ProvisionProgramRequestProgramStatusOriginal, type ProvisionProgramRequestProgramStatusWithLiterals as ProvisionProgramRequestProgramStatusWithLiteralsOriginal, type ProvisionProgramResponse as ProvisionProgramResponseOriginal, type QueryProgramsRequest as QueryProgramsRequestOriginal, type QueryProgramsResponse as QueryProgramsResponseOriginal, type RenewProgramRequest as RenewProgramRequestOriginal, type RenewProgramResponse as RenewProgramResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type ResumeProgramApplicationErrors as ResumeProgramApplicationErrorsOriginal, type ResumeProgramRequest as ResumeProgramRequestOriginal, type ResumeProgramResponse as ResumeProgramResponseOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type UpdateProgramRequest as UpdateProgramRequestOriginal, type UpdateProgramResponse as UpdateProgramResponseOriginal, type UpdateProgramStatusRequest as UpdateProgramStatusRequestOriginal, type UpdateProgramStatusResponse as UpdateProgramStatusResponseOriginal, type UpsertMigratedProgramRequest as UpsertMigratedProgramRequestOriginal, type UpsertMigratedProgramResponse as UpsertMigratedProgramResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, endProgram, getProgram, getProgramByExternalIdAndNamespace, pauseProgram, provisionProgram, queryPrograms, renewProgram, resumeProgram, updateProgram };
|
package/build/cjs/meta.js
CHANGED
|
@@ -20,6 +20,12 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// meta.ts
|
|
21
21
|
var meta_exports = {};
|
|
22
22
|
__export(meta_exports, {
|
|
23
|
+
IdentityTypeOriginal: () => IdentityType,
|
|
24
|
+
OrderStatusOriginal: () => OrderStatus,
|
|
25
|
+
ProgramStatusOriginal: () => ProgramStatus,
|
|
26
|
+
ProvisionProgramRequestProgramStatusOriginal: () => ProvisionProgramRequestProgramStatus,
|
|
27
|
+
SortOrderOriginal: () => SortOrder,
|
|
28
|
+
WebhookIdentityTypeOriginal: () => WebhookIdentityType,
|
|
23
29
|
endProgram: () => endProgram2,
|
|
24
30
|
getProgram: () => getProgram2,
|
|
25
31
|
getProgramByExternalIdAndNamespace: () => getProgramByExternalIdAndNamespace2,
|
|
@@ -40,92 +46,7 @@ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
|
40
46
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
41
47
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
42
48
|
function resolveWixBenefitProgramsV1ProgramProgramServiceUrl(opts) {
|
|
43
|
-
const domainToMappings = {
|
|
44
|
-
"api._api_base_domain_": [
|
|
45
|
-
{
|
|
46
|
-
srcPath: "/programs",
|
|
47
|
-
destPath: ""
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
_: [
|
|
51
|
-
{
|
|
52
|
-
srcPath: "/_api/benefit-programs-programs",
|
|
53
|
-
destPath: ""
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
"editor._base_domain_": [
|
|
57
|
-
{
|
|
58
|
-
srcPath: "/_api/benefit-programs-programs",
|
|
59
|
-
destPath: ""
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
srcPath: "/_api/benefit-programs/v1/programs",
|
|
63
|
-
destPath: "/v1/programs"
|
|
64
|
-
}
|
|
65
|
-
],
|
|
66
|
-
"blocks._base_domain_": [
|
|
67
|
-
{
|
|
68
|
-
srcPath: "/_api/benefit-programs-programs",
|
|
69
|
-
destPath: ""
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
srcPath: "/_api/benefit-programs/v1/programs",
|
|
73
|
-
destPath: "/v1/programs"
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
"create.editorx": [
|
|
77
|
-
{
|
|
78
|
-
srcPath: "/_api/benefit-programs-programs",
|
|
79
|
-
destPath: ""
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
srcPath: "/_api/benefit-programs/v1/programs",
|
|
83
|
-
destPath: "/v1/programs"
|
|
84
|
-
}
|
|
85
|
-
],
|
|
86
|
-
"editor.wixapps.net": [
|
|
87
|
-
{
|
|
88
|
-
srcPath: "/_api/benefit-programs-programs",
|
|
89
|
-
destPath: ""
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
srcPath: "/_api/benefit-programs/v1/programs",
|
|
93
|
-
destPath: "/v1/programs"
|
|
94
|
-
}
|
|
95
|
-
],
|
|
96
|
-
"manage._base_domain_": [
|
|
97
|
-
{
|
|
98
|
-
srcPath: "/_api/benefit-programs-programs",
|
|
99
|
-
destPath: ""
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
srcPath: "/_api/benefit-programs/v1/programs",
|
|
103
|
-
destPath: "/v1/programs"
|
|
104
|
-
}
|
|
105
|
-
],
|
|
106
|
-
"www._base_domain_": [
|
|
107
|
-
{
|
|
108
|
-
srcPath: "/_api/benefit-programs-programs",
|
|
109
|
-
destPath: ""
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
srcPath: "/_api/benefit-programs/v1/programs",
|
|
113
|
-
destPath: "/v1/programs"
|
|
114
|
-
}
|
|
115
|
-
],
|
|
116
|
-
"*.dev.wix-code.com": [
|
|
117
|
-
{
|
|
118
|
-
srcPath: "/_api/benefit-programs/v1/programs",
|
|
119
|
-
destPath: "/v1/programs"
|
|
120
|
-
}
|
|
121
|
-
],
|
|
122
|
-
"www.wixapis.com": [
|
|
123
|
-
{
|
|
124
|
-
srcPath: "/benefit-programs/v1/programs",
|
|
125
|
-
destPath: "/v1/programs"
|
|
126
|
-
}
|
|
127
|
-
]
|
|
128
|
-
};
|
|
49
|
+
const domainToMappings = {};
|
|
129
50
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
130
51
|
}
|
|
131
52
|
var PACKAGE_NAME = "@wix/auto_sdk_benefit-programs_programs";
|
|
@@ -377,6 +298,51 @@ function getProgramByExternalIdAndNamespace(payload) {
|
|
|
377
298
|
return __getProgramByExternalIdAndNamespace;
|
|
378
299
|
}
|
|
379
300
|
|
|
301
|
+
// src/benefit-programs-v1-program-programs.types.ts
|
|
302
|
+
var ProgramStatus = /* @__PURE__ */ ((ProgramStatus2) => {
|
|
303
|
+
ProgramStatus2["UNDEFINED"] = "UNDEFINED";
|
|
304
|
+
ProgramStatus2["ACTIVE"] = "ACTIVE";
|
|
305
|
+
ProgramStatus2["PAUSED"] = "PAUSED";
|
|
306
|
+
ProgramStatus2["ENDED"] = "ENDED";
|
|
307
|
+
ProgramStatus2["PROVISIONING"] = "PROVISIONING";
|
|
308
|
+
ProgramStatus2["PAUSING"] = "PAUSING";
|
|
309
|
+
ProgramStatus2["RESUMING"] = "RESUMING";
|
|
310
|
+
ProgramStatus2["ENDING"] = "ENDING";
|
|
311
|
+
return ProgramStatus2;
|
|
312
|
+
})(ProgramStatus || {});
|
|
313
|
+
var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
|
|
314
|
+
IdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
315
|
+
IdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
316
|
+
IdentityType2["MEMBER"] = "MEMBER";
|
|
317
|
+
IdentityType2["WIX_USER"] = "WIX_USER";
|
|
318
|
+
return IdentityType2;
|
|
319
|
+
})(IdentityType || {});
|
|
320
|
+
var ProvisionProgramRequestProgramStatus = /* @__PURE__ */ ((ProvisionProgramRequestProgramStatus2) => {
|
|
321
|
+
ProvisionProgramRequestProgramStatus2["ACTIVE"] = "ACTIVE";
|
|
322
|
+
ProvisionProgramRequestProgramStatus2["PAUSED"] = "PAUSED";
|
|
323
|
+
return ProvisionProgramRequestProgramStatus2;
|
|
324
|
+
})(ProvisionProgramRequestProgramStatus || {});
|
|
325
|
+
var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
|
|
326
|
+
OrderStatus2["UNKNOWN"] = "UNKNOWN";
|
|
327
|
+
OrderStatus2["ACTIVE"] = "ACTIVE";
|
|
328
|
+
OrderStatus2["PAUSED"] = "PAUSED";
|
|
329
|
+
OrderStatus2["ENDED"] = "ENDED";
|
|
330
|
+
return OrderStatus2;
|
|
331
|
+
})(OrderStatus || {});
|
|
332
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
333
|
+
SortOrder2["ASC"] = "ASC";
|
|
334
|
+
SortOrder2["DESC"] = "DESC";
|
|
335
|
+
return SortOrder2;
|
|
336
|
+
})(SortOrder || {});
|
|
337
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
338
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
339
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
340
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
341
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
342
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
343
|
+
return WebhookIdentityType2;
|
|
344
|
+
})(WebhookIdentityType || {});
|
|
345
|
+
|
|
380
346
|
// src/benefit-programs-v1-program-programs.meta.ts
|
|
381
347
|
function provisionProgram2() {
|
|
382
348
|
const payload = {};
|
|
@@ -544,6 +510,12 @@ function getProgramByExternalIdAndNamespace2() {
|
|
|
544
510
|
}
|
|
545
511
|
// Annotate the CommonJS export names for ESM import in node:
|
|
546
512
|
0 && (module.exports = {
|
|
513
|
+
IdentityTypeOriginal,
|
|
514
|
+
OrderStatusOriginal,
|
|
515
|
+
ProgramStatusOriginal,
|
|
516
|
+
ProvisionProgramRequestProgramStatusOriginal,
|
|
517
|
+
SortOrderOriginal,
|
|
518
|
+
WebhookIdentityTypeOriginal,
|
|
547
519
|
endProgram,
|
|
548
520
|
getProgram,
|
|
549
521
|
getProgramByExternalIdAndNamespace,
|