@wix/auto_sdk_benefit-programs_programs 1.0.48 → 1.0.49
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.d.ts +24 -8
- package/build/cjs/index.js +912 -29
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +892 -9
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/schemas.d.ts +1 -1
- package/build/es/index.d.mts +24 -8
- package/build/es/index.mjs +902 -29
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +882 -9
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/schemas.d.mts +1 -1
- package/build/internal/cjs/index.d.ts +24 -8
- package/build/internal/cjs/index.js +912 -29
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.js +892 -9
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +1 -1
- package/build/internal/es/index.d.mts +24 -8
- package/build/internal/es/index.mjs +902 -29
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.mjs +882 -9
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +1 -1
- package/package.json +2 -2
package/build/es/index.d.mts
CHANGED
|
@@ -2,7 +2,9 @@ import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@
|
|
|
2
2
|
import { PoolDefinitionLookupId, ProvisionProgramOptions, ProvisionProgramResponse, ProvisionProgramApplicationErrors, RenewProgramOptions, RenewProgramResponse, PauseProgramOptions, PauseProgramResponse, PauseProgramApplicationErrors, ResumeProgramOptions, ResumeProgramResponse, ResumeProgramApplicationErrors, EndProgramResponse, EndProgramApplicationErrors, UpdateProgram, Program, GetProgramByExternalIdAndNamespaceOptions, GetProgramByExternalIdAndNamespaceResponse, ProgramsQueryBuilder, ProgramQuery, typedQueryPrograms } from './index.typings.mjs';
|
|
3
3
|
export { AccountInfo, ActionEvent, CommonIdentificationData, CommonIdentificationDataIdOneOf, CommonQueryWithEntityContext, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DomainEvent, DomainEventBodyOneOf, EndProgramRequest, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, GetProgramByExternalIdAndNamespaceRequest, GetProgramRequest, GetProgramResponse, IdentificationData, IdentificationDataIdOneOf, IdentityType, IdentityTypeWithLiterals, MessageEnvelope, OrderStatus, OrderStatusWithLiterals, PauseProgramRequest, PoolDefinitionLookupIdIdOneOf, ProgramAlreadyExists, ProgramDefinitionInfo, ProgramEnded, ProgramPaused, ProgramProvisioned, ProgramQuerySpec, ProgramRenewed, ProgramResumed, ProgramStatus, ProgramStatusTransitionNotAllowed, ProgramStatusWithLiterals, ProgramTranslated, ProgramTranslationDeleted, ProgramsQueryResult, ProvisionProgramRequest, ProvisionProgramRequestProgramStatus, ProvisionProgramRequestProgramStatusWithLiterals, QueryProgramsRequest, QueryProgramsResponse, RenewProgramRequest, RestoreInfo, ResumeProgramRequest, SortOrder, SortOrderWithLiterals, Sorting, UpdateProgramRequest, UpdateProgramResponse, UpdateProgramStatusRequest, UpdateProgramStatusResponse, UpsertMigratedProgramRequest, UpsertMigratedProgramResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.mjs';
|
|
4
4
|
|
|
5
|
-
declare function provisionProgram$1(httpClient: HttpClient
|
|
5
|
+
declare function provisionProgram$1(httpClient: HttpClient, __options?: {
|
|
6
|
+
validateRequestSchema?: boolean;
|
|
7
|
+
}): ProvisionProgramSignature;
|
|
6
8
|
interface ProvisionProgramSignature {
|
|
7
9
|
/**
|
|
8
10
|
* Creates a program for the specified beneficiary. Creating a program is also referred to as provisioning a program.
|
|
@@ -16,7 +18,9 @@ interface ProvisionProgramSignature {
|
|
|
16
18
|
__applicationErrorsType?: ProvisionProgramApplicationErrors;
|
|
17
19
|
}>;
|
|
18
20
|
}
|
|
19
|
-
declare function renewProgram$1(httpClient: HttpClient
|
|
21
|
+
declare function renewProgram$1(httpClient: HttpClient, __options?: {
|
|
22
|
+
validateRequestSchema?: boolean;
|
|
23
|
+
}): RenewProgramSignature;
|
|
20
24
|
interface RenewProgramSignature {
|
|
21
25
|
/**
|
|
22
26
|
* Renews the specified program.
|
|
@@ -26,7 +30,9 @@ interface RenewProgramSignature {
|
|
|
26
30
|
*/
|
|
27
31
|
(programId: string, options: NonNullablePaths<RenewProgramOptions, `idempotencyKey`, 2>): Promise<NonNullablePaths<RenewProgramResponse, `jobId`, 2>>;
|
|
28
32
|
}
|
|
29
|
-
declare function pauseProgram$1(httpClient: HttpClient
|
|
33
|
+
declare function pauseProgram$1(httpClient: HttpClient, __options?: {
|
|
34
|
+
validateRequestSchema?: boolean;
|
|
35
|
+
}): PauseProgramSignature;
|
|
30
36
|
interface PauseProgramSignature {
|
|
31
37
|
/**
|
|
32
38
|
* Pauses the specified program. Benefits in the program's pools can't be redeemed until the program is resumed.
|
|
@@ -36,7 +42,9 @@ interface PauseProgramSignature {
|
|
|
36
42
|
__applicationErrorsType?: PauseProgramApplicationErrors;
|
|
37
43
|
}>;
|
|
38
44
|
}
|
|
39
|
-
declare function resumeProgram$1(httpClient: HttpClient
|
|
45
|
+
declare function resumeProgram$1(httpClient: HttpClient, __options?: {
|
|
46
|
+
validateRequestSchema?: boolean;
|
|
47
|
+
}): ResumeProgramSignature;
|
|
40
48
|
interface ResumeProgramSignature {
|
|
41
49
|
/**
|
|
42
50
|
* Resumes the specified program.
|
|
@@ -48,7 +56,9 @@ interface ResumeProgramSignature {
|
|
|
48
56
|
__applicationErrorsType?: ResumeProgramApplicationErrors;
|
|
49
57
|
}>;
|
|
50
58
|
}
|
|
51
|
-
declare function endProgram$1(httpClient: HttpClient
|
|
59
|
+
declare function endProgram$1(httpClient: HttpClient, __options?: {
|
|
60
|
+
validateRequestSchema?: boolean;
|
|
61
|
+
}): EndProgramSignature;
|
|
52
62
|
interface EndProgramSignature {
|
|
53
63
|
/**
|
|
54
64
|
* Ends the specified program.
|
|
@@ -58,7 +68,9 @@ interface EndProgramSignature {
|
|
|
58
68
|
__applicationErrorsType?: EndProgramApplicationErrors;
|
|
59
69
|
}>;
|
|
60
70
|
}
|
|
61
|
-
declare function updateProgram$1(httpClient: HttpClient
|
|
71
|
+
declare function updateProgram$1(httpClient: HttpClient, __options?: {
|
|
72
|
+
validateRequestSchema?: boolean;
|
|
73
|
+
}): UpdateProgramSignature;
|
|
62
74
|
interface UpdateProgramSignature {
|
|
63
75
|
/**
|
|
64
76
|
* Updates a program.
|
|
@@ -73,7 +85,9 @@ interface UpdateProgramSignature {
|
|
|
73
85
|
*/
|
|
74
86
|
(_id: string, program: NonNullablePaths<UpdateProgram, `revision`, 2>): Promise<NonNullablePaths<Program, `status` | `beneficiary.anonymousVisitorId` | `beneficiary.memberId` | `beneficiary.wixUserId` | `programDefinition._id`, 3>>;
|
|
75
87
|
}
|
|
76
|
-
declare function getProgram$1(httpClient: HttpClient
|
|
88
|
+
declare function getProgram$1(httpClient: HttpClient, __options?: {
|
|
89
|
+
validateRequestSchema?: boolean;
|
|
90
|
+
}): GetProgramSignature;
|
|
77
91
|
interface GetProgramSignature {
|
|
78
92
|
/**
|
|
79
93
|
* Retrieves a program.
|
|
@@ -82,7 +96,9 @@ interface GetProgramSignature {
|
|
|
82
96
|
*/
|
|
83
97
|
(programId: string): Promise<NonNullablePaths<Program, `status` | `beneficiary.anonymousVisitorId` | `beneficiary.memberId` | `beneficiary.wixUserId` | `programDefinition._id`, 3>>;
|
|
84
98
|
}
|
|
85
|
-
declare function getProgramByExternalIdAndNamespace$1(httpClient: HttpClient
|
|
99
|
+
declare function getProgramByExternalIdAndNamespace$1(httpClient: HttpClient, __options?: {
|
|
100
|
+
validateRequestSchema?: boolean;
|
|
101
|
+
}): GetProgramByExternalIdAndNamespaceSignature;
|
|
86
102
|
interface GetProgramByExternalIdAndNamespaceSignature {
|
|
87
103
|
/**
|
|
88
104
|
* Retrieves a program with the specified external ID and namespace.
|