@roketus/loyalty-js-sdk 4.36.0 → 4.37.0
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/dist/cjs/api/campaign/campaignResultSerializer.d.ts +1 -0
- package/dist/cjs/api/campaign/cohorts/getMyCohorts.d.ts +2 -0
- package/dist/cjs/api/campaign/cohorts/resultSerializer.d.ts +1 -0
- package/dist/cjs/api/campaign/cohorts/setCohortToCampaign.d.ts +2 -0
- package/dist/cjs/api/campaign/getMyCampaigns.d.ts +2 -0
- package/dist/cjs/api/campaign/{createEmailTemplate.d.ts → templates/createEmailTemplate.d.ts} +1 -1
- package/dist/{esm5/api/campaign → cjs/api/campaign/templates}/createPassPushTemplate.d.ts +1 -1
- package/dist/{esm5/api/campaign → cjs/api/campaign/templates}/createSMSTemplate.d.ts +1 -1
- package/dist/{esm5/api/campaign → cjs/api/campaign/templates}/createWebPushTemplate.d.ts +1 -1
- package/dist/cjs/api/campaign/templates/deleteTemplate.d.ts +2 -0
- package/dist/cjs/api/campaign/templates/deleteTemplateFromCampaign.d.ts +2 -0
- package/dist/cjs/api/campaign/templates/getMyTemplates.d.ts +2 -0
- package/dist/cjs/api/campaign/templates/getTemplateById.d.ts +2 -0
- package/dist/cjs/api/campaign/templates/resultSerializer.d.ts +1 -0
- package/dist/cjs/api/campaign/templates/setTemplateToCampaign.d.ts +2 -0
- package/dist/cjs/api/campaign/templates/setTemplatesToCampaign.d.ts +2 -0
- package/dist/cjs/api/campaign/templates/updateEmailTemplate.d.ts +2 -0
- package/dist/cjs/api/campaign/templates/updatePassPushTemplate.d.ts +2 -0
- package/dist/cjs/api/campaign/templates/updateSMSTemplate.d.ts +2 -0
- package/dist/cjs/api/campaign/templates/updateWebPushTemplate.d.ts +2 -0
- package/dist/cjs/index.d.ts +1 -10
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/interfaces/ISDK.d.ts +2 -2
- package/dist/cjs/interfaces/campaigns/campaignInterfaces.d.ts +22 -164
- package/dist/cjs/interfaces/campaigns/cohortsInterfaces.d.ts +13 -0
- package/dist/cjs/interfaces/campaigns/common.d.ts +16 -16
- package/dist/cjs/interfaces/campaigns/index.d.ts +2 -2
- package/dist/cjs/interfaces/campaigns/templatesInterfaces.d.ts +96 -0
- package/dist/esm5/api/campaign/campaignResultSerializer.d.ts +1 -0
- package/dist/esm5/api/campaign/cohorts/getMyCohorts.d.ts +2 -0
- package/dist/esm5/api/campaign/cohorts/resultSerializer.d.ts +1 -0
- package/dist/esm5/api/campaign/cohorts/setCohortToCampaign.d.ts +2 -0
- package/dist/esm5/api/campaign/getMyCampaigns.d.ts +2 -0
- package/dist/esm5/api/campaign/{createEmailTemplate.d.ts → templates/createEmailTemplate.d.ts} +1 -1
- package/dist/{cjs/api/campaign → esm5/api/campaign/templates}/createPassPushTemplate.d.ts +1 -1
- package/dist/{cjs/api/campaign → esm5/api/campaign/templates}/createSMSTemplate.d.ts +1 -1
- package/dist/{cjs/api/campaign → esm5/api/campaign/templates}/createWebPushTemplate.d.ts +1 -1
- package/dist/esm5/api/campaign/templates/deleteTemplate.d.ts +2 -0
- package/dist/esm5/api/campaign/templates/deleteTemplateFromCampaign.d.ts +2 -0
- package/dist/esm5/api/campaign/templates/getMyTemplates.d.ts +2 -0
- package/dist/esm5/api/campaign/templates/getTemplateById.d.ts +2 -0
- package/dist/esm5/api/campaign/templates/resultSerializer.d.ts +1 -0
- package/dist/esm5/api/campaign/templates/setTemplateToCampaign.d.ts +2 -0
- package/dist/esm5/api/campaign/templates/setTemplatesToCampaign.d.ts +2 -0
- package/dist/esm5/api/campaign/templates/updateEmailTemplate.d.ts +2 -0
- package/dist/esm5/api/campaign/templates/updatePassPushTemplate.d.ts +2 -0
- package/dist/esm5/api/campaign/templates/updateSMSTemplate.d.ts +2 -0
- package/dist/esm5/api/campaign/templates/updateWebPushTemplate.d.ts +2 -0
- package/dist/esm5/index.d.ts +1 -10
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/interfaces/ISDK.d.ts +2 -2
- package/dist/esm5/interfaces/campaigns/campaignInterfaces.d.ts +22 -164
- package/dist/esm5/interfaces/campaigns/cohortsInterfaces.d.ts +13 -0
- package/dist/esm5/interfaces/campaigns/common.d.ts +16 -16
- package/dist/esm5/interfaces/campaigns/index.d.ts +2 -2
- package/dist/esm5/interfaces/campaigns/templatesInterfaces.d.ts +96 -0
- package/package.json +1 -1
- package/dist/cjs/api/campaign/deleteTemplate.d.ts +0 -2
- package/dist/cjs/api/campaign/deleteTemplateFromCampaign.d.ts +0 -2
- package/dist/cjs/api/campaign/getMyCampaign.d.ts +0 -2
- package/dist/cjs/api/campaign/getMyCohorts.d.ts +0 -2
- package/dist/cjs/api/campaign/getMyTemplates.d.ts +0 -2
- package/dist/cjs/api/campaign/getTemplateById.d.ts +0 -2
- package/dist/cjs/api/campaign/setCohortToCampaign.d.ts +0 -2
- package/dist/cjs/api/campaign/setTemplateToCampaign.d.ts +0 -2
- package/dist/cjs/api/campaign/setTemplatesToCampaign.d.ts +0 -2
- package/dist/cjs/api/campaign/updateEmailTemplate.d.ts +0 -2
- package/dist/cjs/api/campaign/updatePassPushTemplate.d.ts +0 -2
- package/dist/cjs/api/campaign/updateSMSTemplate.d.ts +0 -2
- package/dist/cjs/api/campaign/updateWebPushTemplate.d.ts +0 -2
- package/dist/cjs/interfaces/campaigns/getByID.d.ts +0 -9
- package/dist/cjs/interfaces/campaigns/getMyCampaigns.d.ts +0 -8
- package/dist/esm5/api/campaign/deleteTemplate.d.ts +0 -2
- package/dist/esm5/api/campaign/deleteTemplateFromCampaign.d.ts +0 -2
- package/dist/esm5/api/campaign/getMyCampaign.d.ts +0 -2
- package/dist/esm5/api/campaign/getMyCohorts.d.ts +0 -2
- package/dist/esm5/api/campaign/getMyTemplates.d.ts +0 -2
- package/dist/esm5/api/campaign/getTemplateById.d.ts +0 -2
- package/dist/esm5/api/campaign/setCohortToCampaign.d.ts +0 -2
- package/dist/esm5/api/campaign/setTemplateToCampaign.d.ts +0 -2
- package/dist/esm5/api/campaign/setTemplatesToCampaign.d.ts +0 -2
- package/dist/esm5/api/campaign/updateEmailTemplate.d.ts +0 -2
- package/dist/esm5/api/campaign/updatePassPushTemplate.d.ts +0 -2
- package/dist/esm5/api/campaign/updateSMSTemplate.d.ts +0 -2
- package/dist/esm5/api/campaign/updateWebPushTemplate.d.ts +0 -2
- package/dist/esm5/interfaces/campaigns/getByID.d.ts +0 -9
- package/dist/esm5/interfaces/campaigns/getMyCampaigns.d.ts +0 -8
|
@@ -1,174 +1,32 @@
|
|
|
1
1
|
import { IHTTPClientResponse } from '@roketus/web-toolkit';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
campaignId: string;
|
|
11
|
-
cohortId: string;
|
|
12
|
-
}): Promise<IHTTPClientResponse<SetCohortToCampaignResponseDTO>>;
|
|
13
|
-
}
|
|
14
|
-
export interface ISetTemplateToCampaign {
|
|
15
|
-
({ campaignId, templateId }: {
|
|
16
|
-
campaignId: string;
|
|
17
|
-
templateId: string;
|
|
18
|
-
}): Promise<IHTTPClientResponse<SetTemplateToCampaignResponseDTO>>;
|
|
2
|
+
import { I_JSON_API_Response_Many } from '../I_JSON_API_ResponseDTO';
|
|
3
|
+
import { ICampaign, ICampaignCohort, ICampaignTemplate } from './common';
|
|
4
|
+
import { IListFiltersPayload, IPaginationData } from '../requestFilterInterfaces';
|
|
5
|
+
export declare type CampaignResponseDTO = I_JSON_API_Response_Many<ICampaign, ICampaignCohort | ICampaignTemplate>;
|
|
6
|
+
export interface ICreateCampaignPayload {
|
|
7
|
+
name: string;
|
|
8
|
+
startDate?: string;
|
|
9
|
+
stopDate?: string;
|
|
19
10
|
}
|
|
20
|
-
export interface
|
|
21
|
-
(
|
|
22
|
-
campaignId: string;
|
|
23
|
-
templateIds: string[];
|
|
24
|
-
}): Promise<IHTTPClientResponse<SetTemplateToCampaignResponseDTO>>;
|
|
11
|
+
export interface ICreateCampaign {
|
|
12
|
+
(payload: ICreateCampaignPayload): Promise<ICampaign>;
|
|
25
13
|
}
|
|
26
|
-
export interface
|
|
27
|
-
|
|
28
|
-
campaignId: string;
|
|
29
|
-
templateId: string;
|
|
30
|
-
}): Promise<IHTTPClientResponse<DeleteTemplateFromCampaignResponseDTO>>;
|
|
14
|
+
export interface IRunCampaignPayload {
|
|
15
|
+
campaignId: string;
|
|
31
16
|
}
|
|
32
17
|
export interface IRunCampaign {
|
|
33
|
-
(
|
|
34
|
-
campaignId: string;
|
|
35
|
-
}): Promise<IHTTPClientResponse<void>>;
|
|
36
|
-
}
|
|
37
|
-
export interface IGetMyCohorts {
|
|
38
|
-
(): Promise<IHTTPClientResponse<GetMyCohortsResponseDTO>>;
|
|
39
|
-
}
|
|
40
|
-
export interface ICreateSMSTemplate {
|
|
41
|
-
(payload: {
|
|
42
|
-
name: string;
|
|
43
|
-
message: string;
|
|
44
|
-
}): Promise<IHTTPClientResponse<CreateTemplateResponseDTO>>;
|
|
45
|
-
}
|
|
46
|
-
export interface ICreateWebPushTemplate {
|
|
47
|
-
(payload: {
|
|
48
|
-
name: string;
|
|
49
|
-
title: string;
|
|
50
|
-
message: string;
|
|
51
|
-
}): Promise<IHTTPClientResponse<CreateTemplateResponseDTO>>;
|
|
52
|
-
}
|
|
53
|
-
export interface ICreatePassPushTemplate {
|
|
54
|
-
(payload: {
|
|
55
|
-
name: string;
|
|
56
|
-
title: string;
|
|
57
|
-
message: string;
|
|
58
|
-
}): Promise<IHTTPClientResponse<CreateTemplateResponseDTO>>;
|
|
59
|
-
}
|
|
60
|
-
export interface ICreateEmailTemplate {
|
|
61
|
-
(payload: {
|
|
62
|
-
name: string;
|
|
63
|
-
text: string;
|
|
64
|
-
subject: string;
|
|
65
|
-
body: string;
|
|
66
|
-
}): Promise<IHTTPClientResponse<CreateTemplateResponseDTO>>;
|
|
67
|
-
}
|
|
68
|
-
export interface IGetMyTemplates {
|
|
69
|
-
(): Promise<IHTTPClientResponse<GetMyTemplatesResponseDTO>>;
|
|
70
|
-
}
|
|
71
|
-
export interface IGetTemplateById {
|
|
72
|
-
({ templateId }: {
|
|
73
|
-
templateId: string;
|
|
74
|
-
}): Promise<IHTTPClientResponse<GetTemplateByIdResponseDTO>>;
|
|
75
|
-
}
|
|
76
|
-
export interface IUpdateEmailTemplate {
|
|
77
|
-
(payload: {
|
|
78
|
-
templateId: string;
|
|
79
|
-
name: string;
|
|
80
|
-
subject: string;
|
|
81
|
-
body: string;
|
|
82
|
-
text: string;
|
|
83
|
-
}): Promise<IHTTPClientResponse<void>>;
|
|
84
|
-
}
|
|
85
|
-
export interface IUpdateSMSTemplate {
|
|
86
|
-
(payload: {
|
|
87
|
-
templateId: string;
|
|
88
|
-
name: string;
|
|
89
|
-
message: string;
|
|
90
|
-
}): Promise<IHTTPClientResponse<void>>;
|
|
91
|
-
}
|
|
92
|
-
export interface IUpdateWebPushTemplate {
|
|
93
|
-
(payload: {
|
|
94
|
-
templateId: string;
|
|
95
|
-
name: string;
|
|
96
|
-
message: string;
|
|
97
|
-
title: string;
|
|
98
|
-
}): Promise<IHTTPClientResponse<void>>;
|
|
99
|
-
}
|
|
100
|
-
export interface IUpdatePassPushTemplate {
|
|
101
|
-
(payload: {
|
|
102
|
-
templateId: string;
|
|
103
|
-
name: string;
|
|
104
|
-
message: string;
|
|
105
|
-
title: string;
|
|
106
|
-
}): Promise<IHTTPClientResponse<void>>;
|
|
107
|
-
}
|
|
108
|
-
export interface IDeleteTemplate {
|
|
109
|
-
({ templateId }: {
|
|
110
|
-
templateId: string;
|
|
111
|
-
}): Promise<IHTTPClientResponse<void>>;
|
|
112
|
-
}
|
|
113
|
-
export interface ICampaignCohortDTO {
|
|
114
|
-
id: string;
|
|
115
|
-
type: 'cohort';
|
|
116
|
-
attributes: {
|
|
117
|
-
count_of_users: number;
|
|
118
|
-
external_id: string;
|
|
119
|
-
last_updated: number;
|
|
120
|
-
name: string;
|
|
121
|
-
};
|
|
122
|
-
relationships: Record<string, unknown>;
|
|
123
|
-
}
|
|
124
|
-
interface IBaseCampaignTemplateDTO<R> {
|
|
125
|
-
id: string;
|
|
126
|
-
type: 'template';
|
|
127
|
-
attributes: {
|
|
128
|
-
channel: string;
|
|
129
|
-
defaultVars?: Record<string, string>;
|
|
130
|
-
event: string;
|
|
131
|
-
name: string;
|
|
132
|
-
requiredVar?: string[];
|
|
133
|
-
template: R;
|
|
134
|
-
};
|
|
135
|
-
relationships: Record<string, unknown>;
|
|
136
|
-
}
|
|
137
|
-
export declare type ICampaignSMSTemplateDTO = IBaseCampaignTemplateDTO<ICampaignSMSAttributes>;
|
|
138
|
-
export declare type ICampaignEmailTemplateDTO = IBaseCampaignTemplateDTO<ICampaignEmailAttributes>;
|
|
139
|
-
export declare type ICampaignPassPushTemplateDTO = IBaseCampaignTemplateDTO<ICampaignPassPushAttributes>;
|
|
140
|
-
export declare type ICampaignWebPushTemplateDTO = IBaseCampaignTemplateDTO<ICampaignWebPushAttributes>;
|
|
141
|
-
export declare type ICampaignTemplateDTO = ICampaignSMSTemplateDTO | ICampaignEmailTemplateDTO | ICampaignPassPushTemplateDTO | ICampaignWebPushTemplateDTO;
|
|
142
|
-
interface CreateCampaignResponseDTO {
|
|
143
|
-
data: ICampaignJSONAPIDTO[];
|
|
144
|
-
included: [];
|
|
145
|
-
}
|
|
146
|
-
interface SetCohortToCampaignResponseDTO {
|
|
147
|
-
data: ICampaignJSONAPIDTO[];
|
|
148
|
-
included: ICampaignCohortDTO[];
|
|
149
|
-
}
|
|
150
|
-
interface SetTemplateToCampaignResponseDTO {
|
|
151
|
-
data: ICampaignJSONAPIDTO[];
|
|
152
|
-
included: (ICampaignCohortDTO | ICampaignTemplateDTO)[];
|
|
153
|
-
}
|
|
154
|
-
interface DeleteTemplateFromCampaignResponseDTO {
|
|
155
|
-
data: ICampaignJSONAPIDTO[];
|
|
156
|
-
included: (ICampaignCohortDTO | ICampaignTemplateDTO)[];
|
|
18
|
+
(payload: IRunCampaignPayload): Promise<IHTTPClientResponse<void>>;
|
|
157
19
|
}
|
|
158
|
-
interface
|
|
159
|
-
|
|
160
|
-
included: [];
|
|
20
|
+
export interface IGetCampaignPayload {
|
|
21
|
+
campaignId: string;
|
|
161
22
|
}
|
|
162
|
-
interface
|
|
163
|
-
|
|
164
|
-
included: [];
|
|
23
|
+
export interface IGetCampaignById {
|
|
24
|
+
(payload: IGetCampaignPayload): Promise<ICampaign>;
|
|
165
25
|
}
|
|
166
|
-
interface
|
|
167
|
-
data:
|
|
168
|
-
|
|
26
|
+
export interface IListCampaignsResponse {
|
|
27
|
+
data: ICampaign[];
|
|
28
|
+
meta: IPaginationData;
|
|
169
29
|
}
|
|
170
|
-
interface
|
|
171
|
-
|
|
172
|
-
included: [];
|
|
30
|
+
export interface IGetMyCampaigns {
|
|
31
|
+
(params: IListFiltersPayload): Promise<IListCampaignsResponse>;
|
|
173
32
|
}
|
|
174
|
-
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { I_JSON_API_Response_Many } from '../I_JSON_API_ResponseDTO';
|
|
2
|
+
import { ICampaign, ICampaignCohort } from './common';
|
|
3
|
+
export interface ISetCohortToCampaignPayload {
|
|
4
|
+
campaignId: string;
|
|
5
|
+
cohortId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ISetCohortToCampaign {
|
|
8
|
+
(payload: ISetCohortToCampaignPayload): Promise<ICampaign>;
|
|
9
|
+
}
|
|
10
|
+
export declare type CohortsResponseDTO = I_JSON_API_Response_Many<ICampaignCohort>;
|
|
11
|
+
export interface IGetMyCohorts {
|
|
12
|
+
(): Promise<ICampaignCohort[]>;
|
|
13
|
+
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export declare type ISO8601Date = string;
|
|
2
|
-
export declare
|
|
2
|
+
export declare enum ECampaignChannel {
|
|
3
|
+
Email = "email",
|
|
4
|
+
Sms = "sms",
|
|
5
|
+
Telegram = "telegram",
|
|
6
|
+
WebPush = "webPush",
|
|
7
|
+
PassPush = "passPush"
|
|
8
|
+
}
|
|
3
9
|
export interface ICampaignChannelData {
|
|
4
10
|
email?: string;
|
|
5
11
|
sms?: string;
|
|
@@ -48,27 +54,21 @@ export declare type ICampaignWebPushAttributes = {
|
|
|
48
54
|
export declare type ICampaignAnyAttributes = ICampaignSMSAttributes | ICampaignEmailAttributes | ICampaignPassPushAttributes | ICampaignWebPushAttributes;
|
|
49
55
|
export interface ICampaignTemplate<R = ICampaignAnyAttributes> {
|
|
50
56
|
id: string;
|
|
51
|
-
channel:
|
|
57
|
+
channel: ECampaignChannel;
|
|
52
58
|
defaultVars: Record<string, string>;
|
|
53
59
|
event: 'campaign';
|
|
54
60
|
name: string;
|
|
55
61
|
requiredVar: string[];
|
|
56
62
|
template: R;
|
|
57
63
|
}
|
|
58
|
-
export interface
|
|
59
|
-
id: string;
|
|
60
|
-
type: 'campaign';
|
|
61
|
-
attributes: {
|
|
62
|
-
created_at: number;
|
|
63
|
-
name: string;
|
|
64
|
-
};
|
|
65
|
-
relationships: Record<string, unknown>;
|
|
66
|
-
}
|
|
67
|
-
export interface CampaignByID {
|
|
64
|
+
export interface ICampaign {
|
|
68
65
|
id: string;
|
|
69
|
-
created_at: ISO8601Date;
|
|
70
66
|
name: string;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
67
|
+
startAt?: number;
|
|
68
|
+
stopAt?: number;
|
|
69
|
+
postPlanned?: number;
|
|
70
|
+
campaign_run?: ICampaignRun[];
|
|
71
|
+
cohort?: ICampaignCohort[];
|
|
72
|
+
template?: ICampaignTemplate[];
|
|
73
|
+
created_at?: ISO8601Date;
|
|
74
74
|
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { IHTTPClientResponse } from '@roketus/web-toolkit';
|
|
2
|
+
import { I_JSON_API_Response_Many } from '../I_JSON_API_ResponseDTO';
|
|
3
|
+
import { CampaignResponseDTO } from './campaignInterfaces';
|
|
4
|
+
import { ICampaignTemplate } from './common';
|
|
5
|
+
export declare type TemplateResponseDTO = I_JSON_API_Response_Many<ICampaignTemplate>;
|
|
6
|
+
export interface ISetTemplateToCampaign {
|
|
7
|
+
(payload: {
|
|
8
|
+
campaignId: string;
|
|
9
|
+
templateId: string;
|
|
10
|
+
}): Promise<IHTTPClientResponse<CampaignResponseDTO>>;
|
|
11
|
+
}
|
|
12
|
+
export interface ISetTemplatesToCampaign {
|
|
13
|
+
(payload: {
|
|
14
|
+
campaignId: string;
|
|
15
|
+
templateIds: string[];
|
|
16
|
+
}): Promise<IHTTPClientResponse<CampaignResponseDTO>>;
|
|
17
|
+
}
|
|
18
|
+
export interface IDeleteTemplateFromCampaign {
|
|
19
|
+
(payload: {
|
|
20
|
+
campaignId: string;
|
|
21
|
+
templateId: string;
|
|
22
|
+
}): Promise<IHTTPClientResponse<CampaignResponseDTO>>;
|
|
23
|
+
}
|
|
24
|
+
export interface IDeleteTemplate {
|
|
25
|
+
(payload: {
|
|
26
|
+
templateId: string;
|
|
27
|
+
}): Promise<IHTTPClientResponse<void>>;
|
|
28
|
+
}
|
|
29
|
+
export interface ICreateSMSTemplate {
|
|
30
|
+
(payload: {
|
|
31
|
+
name: string;
|
|
32
|
+
message: string;
|
|
33
|
+
}): Promise<IHTTPClientResponse<TemplateResponseDTO>>;
|
|
34
|
+
}
|
|
35
|
+
export interface ICreateWebPushTemplate {
|
|
36
|
+
(payload: {
|
|
37
|
+
name: string;
|
|
38
|
+
title: string;
|
|
39
|
+
message: string;
|
|
40
|
+
}): Promise<IHTTPClientResponse<TemplateResponseDTO>>;
|
|
41
|
+
}
|
|
42
|
+
export interface ICreatePassPushTemplate {
|
|
43
|
+
(payload: {
|
|
44
|
+
name: string;
|
|
45
|
+
title: string;
|
|
46
|
+
message: string;
|
|
47
|
+
}): Promise<IHTTPClientResponse<TemplateResponseDTO>>;
|
|
48
|
+
}
|
|
49
|
+
export interface ICreateEmailTemplate {
|
|
50
|
+
(payload: {
|
|
51
|
+
name: string;
|
|
52
|
+
text: string;
|
|
53
|
+
subject: string;
|
|
54
|
+
body: string;
|
|
55
|
+
}): Promise<IHTTPClientResponse<TemplateResponseDTO>>;
|
|
56
|
+
}
|
|
57
|
+
export interface IGetMyTemplates {
|
|
58
|
+
(): Promise<ICampaignTemplate[]>;
|
|
59
|
+
}
|
|
60
|
+
export interface IGetTemplateById {
|
|
61
|
+
(payload: {
|
|
62
|
+
templateId: string;
|
|
63
|
+
}): Promise<ICampaignTemplate>;
|
|
64
|
+
}
|
|
65
|
+
export interface IUpdateEmailTemplate {
|
|
66
|
+
(payload: {
|
|
67
|
+
templateId: string;
|
|
68
|
+
name: string;
|
|
69
|
+
subject: string;
|
|
70
|
+
body: string;
|
|
71
|
+
text: string;
|
|
72
|
+
}): Promise<IHTTPClientResponse<void>>;
|
|
73
|
+
}
|
|
74
|
+
export interface IUpdateSMSTemplate {
|
|
75
|
+
(payload: {
|
|
76
|
+
templateId: string;
|
|
77
|
+
name: string;
|
|
78
|
+
message: string;
|
|
79
|
+
}): Promise<IHTTPClientResponse<void>>;
|
|
80
|
+
}
|
|
81
|
+
export interface IUpdateWebPushTemplate {
|
|
82
|
+
(payload: {
|
|
83
|
+
templateId: string;
|
|
84
|
+
name: string;
|
|
85
|
+
message: string;
|
|
86
|
+
title: string;
|
|
87
|
+
}): Promise<IHTTPClientResponse<void>>;
|
|
88
|
+
}
|
|
89
|
+
export interface IUpdatePassPushTemplate {
|
|
90
|
+
(payload: {
|
|
91
|
+
templateId: string;
|
|
92
|
+
name: string;
|
|
93
|
+
message: string;
|
|
94
|
+
title: string;
|
|
95
|
+
}): Promise<IHTTPClientResponse<void>>;
|
|
96
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getCampaignResultSerializer: () => any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getCohortResultSerializer: () => any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getTemplateResultSerializer: () => any;
|
package/dist/esm5/index.d.ts
CHANGED
|
@@ -17,18 +17,9 @@ export * from './interfaces/user/userNotificationsInterfaces';
|
|
|
17
17
|
export * from './interfaces/loggerInterface';
|
|
18
18
|
export * from './interfaces/cardInterfaces';
|
|
19
19
|
export * from './interfaces/signupInterface';
|
|
20
|
-
export { GetCampaignByIdResponseDTO } from './interfaces/campaigns/getByID';
|
|
21
|
-
export { IGetCampaignById } from './interfaces/campaigns/getByID';
|
|
22
|
-
export { ICampaignTemplate } from './interfaces/campaigns/common';
|
|
23
|
-
export { ICampaignCohort } from './interfaces/campaigns/common';
|
|
24
|
-
export { ICampaignRun } from './interfaces/campaigns/common';
|
|
25
|
-
export { ICampaignChannelData } from './interfaces/campaigns/common';
|
|
26
|
-
export { IUsersOperatingSystemsData } from './interfaces/campaigns/common';
|
|
27
|
-
export { ICampaignChannel } from './interfaces/campaigns/common';
|
|
28
|
-
export { ISO8601Date } from './interfaces/campaigns/common';
|
|
29
|
-
export { CampaignByID } from './interfaces/campaigns';
|
|
30
20
|
export { NotificationChannel } from './interfaces/common';
|
|
31
21
|
export { CurrencyCode } from './interfaces/common';
|
|
22
|
+
export * from './interfaces/campaigns/common';
|
|
32
23
|
export * from './interfaces/issuer/IGetCardBonuses';
|
|
33
24
|
export * from './interfaces/issuer/IGetCardSpends';
|
|
34
25
|
export * from './interfaces/card/IGetBonuses';
|