@readyfor/api-client-pigeon 1.22.0 → 1.22.1
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/campaigns-DZNsI5kN.d.ts +82 -0
- package/dist/{fetch/campaignsCampaignIdImagesId.d.mts → campaignsCampaignIdImagesId-BzoZ_38r.d.ts} +6 -8
- package/dist/campaignsId-qIqhKTZn.d.ts +309 -0
- package/dist/{fetch/campaignsIdDeliveryJob.d.mts → campaignsIdDeliveryJob--2Nogu0k.d.ts} +7 -12
- package/dist/{fetch/campaignsIdImages.d.mts → campaignsIdImages-DMSAp5-N.d.ts} +11 -17
- package/dist/{fetch/campaignsIdPreview.d.mts → campaignsIdPreview-C10ENt3B.d.ts} +8 -10
- package/dist/{fetch/campaignsIdPreviewDeliveryEmail.d.mts → campaignsIdPreviewDeliveryEmail-BxkiUV8X.d.ts} +7 -13
- package/dist/chunk-8l464Juk.js +28 -0
- package/dist/components-CkziYCTx.d.ts +1108 -0
- package/dist/components.d.ts +2 -1107
- package/dist/components.js +284 -444
- package/dist/components.mjs +221 -130
- package/dist/fetch/campaigns.d.ts +2 -88
- package/dist/fetch/campaigns.js +22 -350
- package/dist/fetch/campaigns.mjs +18 -12
- package/dist/fetch/campaignsCampaignIdImagesId.d.ts +2 -12
- package/dist/fetch/campaignsCampaignIdImagesId.js +11 -44
- package/dist/fetch/campaignsCampaignIdImagesId.mjs +8 -7
- package/dist/fetch/campaignsId.d.ts +2 -321
- package/dist/fetch/campaignsId.js +27 -360
- package/dist/fetch/campaignsId.mjs +22 -16
- package/dist/fetch/campaignsIdDeliveryJob.d.ts +2 -19
- package/dist/fetch/campaignsIdDeliveryJob.js +17 -56
- package/dist/fetch/campaignsIdDeliveryJob.mjs +13 -11
- package/dist/fetch/campaignsIdImages.d.ts +2 -24
- package/dist/fetch/campaignsIdImages.js +15 -341
- package/dist/fetch/campaignsIdImages.mjs +12 -8
- package/dist/fetch/campaignsIdPreview.d.ts +2 -17
- package/dist/fetch/campaignsIdPreview.js +12 -338
- package/dist/fetch/campaignsIdPreview.mjs +9 -8
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.ts +2 -17
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.js +15 -48
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.mjs +12 -7
- package/dist/fetch/projectsProjectIdOrKeyword.d.ts +2 -27
- package/dist/fetch/projectsProjectIdOrKeyword.js +12 -338
- package/dist/fetch/projectsProjectIdOrKeyword.mjs +9 -8
- package/dist/fetch/segmentsBehaviorSegments.d.ts +2 -24
- package/dist/fetch/segmentsBehaviorSegments.js +12 -335
- package/dist/fetch/segmentsBehaviorSegments.mjs +9 -8
- package/dist/fetch/segmentsProfileSegments.d.ts +2 -24
- package/dist/fetch/segmentsProfileSegments.js +12 -335
- package/dist/fetch/segmentsProfileSegments.mjs +9 -8
- package/dist/fetch/segmentsTargetUsersCount.d.ts +2 -17
- package/dist/fetch/segmentsTargetUsersCount.js +12 -339
- package/dist/fetch/segmentsTargetUsersCount.mjs +9 -8
- package/dist/hooks/index.d.ts +8 -20
- package/dist/hooks/index.js +29 -670
- package/dist/hooks/index.mjs +8 -71
- package/dist/hooks/useCampaigns.d.ts +37 -37
- package/dist/hooks/useCampaigns.js +33 -404
- package/dist/hooks/useCampaigns.mjs +27 -22
- package/dist/hooks/useCampaignsId.d.ts +33 -33
- package/dist/hooks/useCampaignsId.js +33 -404
- package/dist/hooks/useCampaignsId.mjs +27 -22
- package/dist/hooks/useCampaignsIdPreview.d.ts +32 -33
- package/dist/hooks/useCampaignsIdPreview.js +33 -404
- package/dist/hooks/useCampaignsIdPreview.mjs +27 -22
- package/dist/hooks/useProjectsProjectIdOrKeyword.d.ts +33 -33
- package/dist/hooks/useProjectsProjectIdOrKeyword.js +33 -410
- package/dist/hooks/useProjectsProjectIdOrKeyword.mjs +27 -22
- package/dist/hooks/useSegmentsBehaviorSegments.d.ts +33 -32
- package/dist/hooks/useSegmentsBehaviorSegments.js +33 -402
- package/dist/hooks/useSegmentsBehaviorSegments.mjs +27 -22
- package/dist/hooks/useSegmentsProfileSegments.d.ts +33 -32
- package/dist/hooks/useSegmentsProfileSegments.js +33 -402
- package/dist/hooks/useSegmentsProfileSegments.mjs +27 -22
- package/dist/hooks/useSegmentsTargetUsersCount.d.ts +32 -33
- package/dist/hooks/useSegmentsTargetUsersCount.js +33 -412
- package/dist/hooks/useSegmentsTargetUsersCount.mjs +27 -22
- package/dist/index-DRYular4.d.ts +1 -0
- package/dist/index.d.ts +14 -15
- package/dist/index.js +106 -703
- package/dist/index.mjs +13 -213
- package/dist/projectsProjectIdOrKeyword-Cayu4ZMd.d.ts +25 -0
- package/dist/schemaType-DcWvaCEH.d.ts +782 -0
- package/dist/schemaType.d.ts +2 -887
- package/dist/schemaType.js +0 -18
- package/dist/schemaType.mjs +1 -0
- package/dist/segmentsBehaviorSegments-B6cq3XGV.d.ts +25 -0
- package/dist/segmentsProfileSegments-CMzmpqMd.d.ts +25 -0
- package/dist/{fetch/segmentsTargetUsersCount.d.mts → segmentsTargetUsersCount-CjScWKqF.d.ts} +8 -10
- package/package.json +4 -19
- package/dist/chunk-24W5FWW7.mjs +0 -27
- package/dist/chunk-45QYVVV2.mjs +0 -44
- package/dist/chunk-5XEJOYX6.mjs +0 -0
- package/dist/chunk-6337UNDD.mjs +0 -27
- package/dist/chunk-CXALAOMT.mjs +0 -48
- package/dist/chunk-GVEIZAMY.mjs +0 -359
- package/dist/chunk-JVMIOVIM.mjs +0 -29
- package/dist/chunk-LMM3AGZ6.mjs +0 -36
- package/dist/chunk-MCYE5BYS.mjs +0 -25
- package/dist/chunk-MKV3OPBP.mjs +0 -42
- package/dist/chunk-MYQ5EIA6.mjs +0 -50
- package/dist/chunk-NA23PDIV.mjs +0 -28
- package/dist/chunk-P4EIALGR.mjs +0 -24
- package/dist/chunk-RWX2GYF3.mjs +0 -39
- package/dist/chunk-SBWG7GGI.mjs +0 -52
- package/dist/chunk-THNPXV56.mjs +0 -24
- package/dist/chunk-TPXQJS55.mjs +0 -44
- package/dist/chunk-UHDD26HF.mjs +0 -44
- package/dist/chunk-VUG5S4M4.mjs +0 -42
- package/dist/chunk-XNOKTUME.mjs +0 -30
- package/dist/components.d.mts +0 -1107
- package/dist/fetch/campaigns.d.mts +0 -88
- package/dist/fetch/campaignsId.d.mts +0 -321
- package/dist/fetch/projectsProjectIdOrKeyword.d.mts +0 -27
- package/dist/fetch/segmentsBehaviorSegments.d.mts +0 -24
- package/dist/fetch/segmentsProfileSegments.d.mts +0 -24
- package/dist/hooks/index.d.mts +0 -20
- package/dist/hooks/useCampaigns.d.mts +0 -44
- package/dist/hooks/useCampaignsId.d.mts +0 -39
- package/dist/hooks/useCampaignsIdPreview.d.mts +0 -39
- package/dist/hooks/useProjectsProjectIdOrKeyword.d.mts +0 -39
- package/dist/hooks/useSegmentsBehaviorSegments.d.mts +0 -38
- package/dist/hooks/useSegmentsProfileSegments.d.mts +0 -38
- package/dist/hooks/useSegmentsTargetUsersCount.d.mts +0 -39
- package/dist/index.d.mts +0 -15
- package/dist/schemaType.d.mts +0 -887
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { a as paths } from "./schemaType-DcWvaCEH.js";
|
|
2
|
+
import { ForceDig } from "@readyfor/api-client-base";
|
|
3
|
+
|
|
4
|
+
//#region src/fetch/campaigns.d.ts
|
|
5
|
+
type CampaignsGetOperation = paths["/api/campaigns"]["get"];
|
|
6
|
+
type CampaignsGetResponse = CampaignsGetOperation["responses"]["200"]["content"]["application/json"];
|
|
7
|
+
declare const buildCampaignsGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
8
|
+
campaigns: (({
|
|
9
|
+
id: number;
|
|
10
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
11
|
+
deliveryAt: string | null;
|
|
12
|
+
lastEditorName: string;
|
|
13
|
+
lastEditedAt: string;
|
|
14
|
+
title?: string | null | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
kind: "curationMailMagazine";
|
|
17
|
+
bodyKind: "template" | "freeFormat";
|
|
18
|
+
}) | ({
|
|
19
|
+
id: number;
|
|
20
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
21
|
+
deliveryAt: string | null;
|
|
22
|
+
lastEditorName: string;
|
|
23
|
+
lastEditedAt: string;
|
|
24
|
+
title?: string | null | undefined;
|
|
25
|
+
} & {
|
|
26
|
+
kind: "personalizedMailMagazine";
|
|
27
|
+
}))[];
|
|
28
|
+
pagination: {
|
|
29
|
+
totalPages: number;
|
|
30
|
+
totalCount: number;
|
|
31
|
+
currentPerPage: number;
|
|
32
|
+
currentPage: number;
|
|
33
|
+
prevPage: number | null;
|
|
34
|
+
nextPage: number | null;
|
|
35
|
+
isFirstPage: boolean;
|
|
36
|
+
isLastPage: boolean;
|
|
37
|
+
};
|
|
38
|
+
}>;
|
|
39
|
+
type CampaignsGetQuery = ForceDig<CampaignsGetOperation, ["parameters", "query"]>;
|
|
40
|
+
declare const getCampaigns: (query: CampaignsGetQuery, customRequestInit?: RequestInit) => Promise<{
|
|
41
|
+
campaigns: (({
|
|
42
|
+
id: number;
|
|
43
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
44
|
+
deliveryAt: string | null;
|
|
45
|
+
lastEditorName: string;
|
|
46
|
+
lastEditedAt: string;
|
|
47
|
+
title?: string | null | undefined;
|
|
48
|
+
} & {
|
|
49
|
+
kind: "curationMailMagazine";
|
|
50
|
+
bodyKind: "template" | "freeFormat";
|
|
51
|
+
}) | ({
|
|
52
|
+
id: number;
|
|
53
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
54
|
+
deliveryAt: string | null;
|
|
55
|
+
lastEditorName: string;
|
|
56
|
+
lastEditedAt: string;
|
|
57
|
+
title?: string | null | undefined;
|
|
58
|
+
} & {
|
|
59
|
+
kind: "personalizedMailMagazine";
|
|
60
|
+
}))[];
|
|
61
|
+
pagination: {
|
|
62
|
+
totalPages: number;
|
|
63
|
+
totalCount: number;
|
|
64
|
+
currentPerPage: number;
|
|
65
|
+
currentPage: number;
|
|
66
|
+
prevPage: number | null;
|
|
67
|
+
nextPage: number | null;
|
|
68
|
+
isFirstPage: boolean;
|
|
69
|
+
isLastPage: boolean;
|
|
70
|
+
};
|
|
71
|
+
}>;
|
|
72
|
+
type CampaignsPostOperation = paths["/api/campaigns"]["post"];
|
|
73
|
+
type CampaignsPostResponse = CampaignsPostOperation["responses"]["201"]["content"]["application/json"];
|
|
74
|
+
declare const buildCampaignsPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
75
|
+
id: number;
|
|
76
|
+
}>;
|
|
77
|
+
type CampaignsPostRequestBody = ForceDig<CampaignsPostOperation, ["requestBody", "content", "application/json"]>;
|
|
78
|
+
declare const postCampaigns: (requestBody: CampaignsPostRequestBody, customRequestInit?: RequestInit) => Promise<{
|
|
79
|
+
id: number;
|
|
80
|
+
}>;
|
|
81
|
+
//#endregion
|
|
82
|
+
export { buildCampaignsGetFetcher as a, postCampaigns as c, CampaignsPostResponse as i, CampaignsGetResponse as n, buildCampaignsPostFetcher as o, CampaignsPostRequestBody as r, getCampaigns as s, CampaignsGetQuery as t };
|
package/dist/{fetch/campaignsCampaignIdImagesId.d.mts → campaignsCampaignIdImagesId-BzoZ_38r.d.ts}
RENAMED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { paths } from
|
|
2
|
-
import { ForceDig } from
|
|
1
|
+
import { a as paths } from "./schemaType-DcWvaCEH.js";
|
|
2
|
+
import { ForceDig } from "@readyfor/api-client-base";
|
|
3
3
|
|
|
4
|
+
//#region src/fetch/campaignsCampaignIdImagesId.d.ts
|
|
4
5
|
type CampaignsCampaignIdImagesIdDeleteOperation = paths["/api/campaigns/{campaign_id}/images/{id}"]["delete"];
|
|
5
6
|
declare const buildCampaignsCampaignIdImagesIdDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
6
|
-
type CampaignsCampaignIdImagesIdDeletePath = ForceDig<CampaignsCampaignIdImagesIdDeleteOperation, [
|
|
7
|
-
"parameters",
|
|
8
|
-
"path"
|
|
9
|
-
]>;
|
|
7
|
+
type CampaignsCampaignIdImagesIdDeletePath = ForceDig<CampaignsCampaignIdImagesIdDeleteOperation, ["parameters", "path"]>;
|
|
10
8
|
declare const deleteCampaignsCampaignIdImagesId: (path: CampaignsCampaignIdImagesIdDeletePath, customRequestInit?: RequestInit) => Promise<void>;
|
|
11
|
-
|
|
12
|
-
export {
|
|
9
|
+
//#endregion
|
|
10
|
+
export { buildCampaignsCampaignIdImagesIdDeleteFetcher as n, deleteCampaignsCampaignIdImagesId as r, CampaignsCampaignIdImagesIdDeletePath as t };
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import { a as paths } from "./schemaType-DcWvaCEH.js";
|
|
2
|
+
import { ForceDig } from "@readyfor/api-client-base";
|
|
3
|
+
|
|
4
|
+
//#region src/fetch/campaignsId.d.ts
|
|
5
|
+
type CampaignsIdGetOperation = paths["/api/campaigns/{id}"]["get"];
|
|
6
|
+
type CampaignsIdGetResponse = CampaignsIdGetOperation["responses"]["200"]["content"]["application/json"];
|
|
7
|
+
declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
8
|
+
campaignDetail: ({
|
|
9
|
+
id: number;
|
|
10
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
11
|
+
title: string | null;
|
|
12
|
+
deliveryScheduledAt: string | null;
|
|
13
|
+
} & {
|
|
14
|
+
kind: "curationMailMagazine";
|
|
15
|
+
curationMailMagazine: ({
|
|
16
|
+
utmCampaign: string | null;
|
|
17
|
+
subject: string | null;
|
|
18
|
+
preHeaderText: string | null;
|
|
19
|
+
deliveredUsersCount: number | null;
|
|
20
|
+
targetFilters: {
|
|
21
|
+
id: number;
|
|
22
|
+
behaviorSegmentCodes: string[];
|
|
23
|
+
profileSegmentCodes: string[];
|
|
24
|
+
}[];
|
|
25
|
+
} & {
|
|
26
|
+
bodyKind: "freeFormat";
|
|
27
|
+
htmlBody: string | null;
|
|
28
|
+
htmlStyle: string | null;
|
|
29
|
+
images: {
|
|
30
|
+
id: number;
|
|
31
|
+
key: string;
|
|
32
|
+
}[];
|
|
33
|
+
}) | ({
|
|
34
|
+
utmCampaign: string | null;
|
|
35
|
+
subject: string | null;
|
|
36
|
+
preHeaderText: string | null;
|
|
37
|
+
deliveredUsersCount: number | null;
|
|
38
|
+
targetFilters: {
|
|
39
|
+
id: number;
|
|
40
|
+
behaviorSegmentCodes: string[];
|
|
41
|
+
profileSegmentCodes: string[];
|
|
42
|
+
}[];
|
|
43
|
+
} & {
|
|
44
|
+
bodyKind: "template";
|
|
45
|
+
projects: {
|
|
46
|
+
id: number;
|
|
47
|
+
readyforProjectId: number;
|
|
48
|
+
slotNumber: number;
|
|
49
|
+
isPaidSlot: boolean;
|
|
50
|
+
title: string | null;
|
|
51
|
+
description: string | null;
|
|
52
|
+
thumbnailUrl: string | null;
|
|
53
|
+
tag: string | null;
|
|
54
|
+
tagUrl: string | null;
|
|
55
|
+
}[];
|
|
56
|
+
banners: {
|
|
57
|
+
id: number;
|
|
58
|
+
slotNumber: number;
|
|
59
|
+
imageUrl: string | null;
|
|
60
|
+
url: string | null;
|
|
61
|
+
}[];
|
|
62
|
+
});
|
|
63
|
+
}) | ({
|
|
64
|
+
id: number;
|
|
65
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
66
|
+
title: string | null;
|
|
67
|
+
deliveryScheduledAt: string | null;
|
|
68
|
+
} & {
|
|
69
|
+
kind: "personalizedMailMagazine";
|
|
70
|
+
personalizedMailMagazine: {
|
|
71
|
+
utmCampaign: string | null;
|
|
72
|
+
target: {
|
|
73
|
+
csvFileName: string;
|
|
74
|
+
targetUsersCount: number;
|
|
75
|
+
excludedUsersCount: number;
|
|
76
|
+
} | null;
|
|
77
|
+
};
|
|
78
|
+
});
|
|
79
|
+
}>;
|
|
80
|
+
type CampaignsIdGetPath = ForceDig<CampaignsIdGetOperation, ["parameters", "path"]>;
|
|
81
|
+
declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: RequestInit) => Promise<{
|
|
82
|
+
campaignDetail: ({
|
|
83
|
+
id: number;
|
|
84
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
85
|
+
title: string | null;
|
|
86
|
+
deliveryScheduledAt: string | null;
|
|
87
|
+
} & {
|
|
88
|
+
kind: "curationMailMagazine";
|
|
89
|
+
curationMailMagazine: ({
|
|
90
|
+
utmCampaign: string | null;
|
|
91
|
+
subject: string | null;
|
|
92
|
+
preHeaderText: string | null;
|
|
93
|
+
deliveredUsersCount: number | null;
|
|
94
|
+
targetFilters: {
|
|
95
|
+
id: number;
|
|
96
|
+
behaviorSegmentCodes: string[];
|
|
97
|
+
profileSegmentCodes: string[];
|
|
98
|
+
}[];
|
|
99
|
+
} & {
|
|
100
|
+
bodyKind: "freeFormat";
|
|
101
|
+
htmlBody: string | null;
|
|
102
|
+
htmlStyle: string | null;
|
|
103
|
+
images: {
|
|
104
|
+
id: number;
|
|
105
|
+
key: string;
|
|
106
|
+
}[];
|
|
107
|
+
}) | ({
|
|
108
|
+
utmCampaign: string | null;
|
|
109
|
+
subject: string | null;
|
|
110
|
+
preHeaderText: string | null;
|
|
111
|
+
deliveredUsersCount: number | null;
|
|
112
|
+
targetFilters: {
|
|
113
|
+
id: number;
|
|
114
|
+
behaviorSegmentCodes: string[];
|
|
115
|
+
profileSegmentCodes: string[];
|
|
116
|
+
}[];
|
|
117
|
+
} & {
|
|
118
|
+
bodyKind: "template";
|
|
119
|
+
projects: {
|
|
120
|
+
id: number;
|
|
121
|
+
readyforProjectId: number;
|
|
122
|
+
slotNumber: number;
|
|
123
|
+
isPaidSlot: boolean;
|
|
124
|
+
title: string | null;
|
|
125
|
+
description: string | null;
|
|
126
|
+
thumbnailUrl: string | null;
|
|
127
|
+
tag: string | null;
|
|
128
|
+
tagUrl: string | null;
|
|
129
|
+
}[];
|
|
130
|
+
banners: {
|
|
131
|
+
id: number;
|
|
132
|
+
slotNumber: number;
|
|
133
|
+
imageUrl: string | null;
|
|
134
|
+
url: string | null;
|
|
135
|
+
}[];
|
|
136
|
+
});
|
|
137
|
+
}) | ({
|
|
138
|
+
id: number;
|
|
139
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
140
|
+
title: string | null;
|
|
141
|
+
deliveryScheduledAt: string | null;
|
|
142
|
+
} & {
|
|
143
|
+
kind: "personalizedMailMagazine";
|
|
144
|
+
personalizedMailMagazine: {
|
|
145
|
+
utmCampaign: string | null;
|
|
146
|
+
target: {
|
|
147
|
+
csvFileName: string;
|
|
148
|
+
targetUsersCount: number;
|
|
149
|
+
excludedUsersCount: number;
|
|
150
|
+
} | null;
|
|
151
|
+
};
|
|
152
|
+
});
|
|
153
|
+
}>;
|
|
154
|
+
type CampaignsIdDeleteOperation = paths["/api/campaigns/{id}"]["delete"];
|
|
155
|
+
declare const buildCampaignsIdDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
156
|
+
type CampaignsIdDeletePath = ForceDig<CampaignsIdDeleteOperation, ["parameters", "path"]>;
|
|
157
|
+
declare const deleteCampaignsId: (path: CampaignsIdDeletePath, customRequestInit?: RequestInit) => Promise<void>;
|
|
158
|
+
type CampaignsIdPatchOperation = paths["/api/campaigns/{id}"]["patch"];
|
|
159
|
+
type CampaignsIdPatchResponse = CampaignsIdPatchOperation["responses"]["200"]["content"]["application/json"];
|
|
160
|
+
declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
161
|
+
campaignDetail: ({
|
|
162
|
+
id: number;
|
|
163
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
164
|
+
title: string | null;
|
|
165
|
+
deliveryScheduledAt: string | null;
|
|
166
|
+
} & {
|
|
167
|
+
kind: "curationMailMagazine";
|
|
168
|
+
curationMailMagazine: ({
|
|
169
|
+
utmCampaign: string | null;
|
|
170
|
+
subject: string | null;
|
|
171
|
+
preHeaderText: string | null;
|
|
172
|
+
deliveredUsersCount: number | null;
|
|
173
|
+
targetFilters: {
|
|
174
|
+
id: number;
|
|
175
|
+
behaviorSegmentCodes: string[];
|
|
176
|
+
profileSegmentCodes: string[];
|
|
177
|
+
}[];
|
|
178
|
+
} & {
|
|
179
|
+
bodyKind: "freeFormat";
|
|
180
|
+
htmlBody: string | null;
|
|
181
|
+
htmlStyle: string | null;
|
|
182
|
+
images: {
|
|
183
|
+
id: number;
|
|
184
|
+
key: string;
|
|
185
|
+
}[];
|
|
186
|
+
}) | ({
|
|
187
|
+
utmCampaign: string | null;
|
|
188
|
+
subject: string | null;
|
|
189
|
+
preHeaderText: string | null;
|
|
190
|
+
deliveredUsersCount: number | null;
|
|
191
|
+
targetFilters: {
|
|
192
|
+
id: number;
|
|
193
|
+
behaviorSegmentCodes: string[];
|
|
194
|
+
profileSegmentCodes: string[];
|
|
195
|
+
}[];
|
|
196
|
+
} & {
|
|
197
|
+
bodyKind: "template";
|
|
198
|
+
projects: {
|
|
199
|
+
id: number;
|
|
200
|
+
readyforProjectId: number;
|
|
201
|
+
slotNumber: number;
|
|
202
|
+
isPaidSlot: boolean;
|
|
203
|
+
title: string | null;
|
|
204
|
+
description: string | null;
|
|
205
|
+
thumbnailUrl: string | null;
|
|
206
|
+
tag: string | null;
|
|
207
|
+
tagUrl: string | null;
|
|
208
|
+
}[];
|
|
209
|
+
banners: {
|
|
210
|
+
id: number;
|
|
211
|
+
slotNumber: number;
|
|
212
|
+
imageUrl: string | null;
|
|
213
|
+
url: string | null;
|
|
214
|
+
}[];
|
|
215
|
+
});
|
|
216
|
+
}) | ({
|
|
217
|
+
id: number;
|
|
218
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
219
|
+
title: string | null;
|
|
220
|
+
deliveryScheduledAt: string | null;
|
|
221
|
+
} & {
|
|
222
|
+
kind: "personalizedMailMagazine";
|
|
223
|
+
personalizedMailMagazine: {
|
|
224
|
+
utmCampaign: string | null;
|
|
225
|
+
target: {
|
|
226
|
+
csvFileName: string;
|
|
227
|
+
targetUsersCount: number;
|
|
228
|
+
excludedUsersCount: number;
|
|
229
|
+
} | null;
|
|
230
|
+
};
|
|
231
|
+
});
|
|
232
|
+
}>;
|
|
233
|
+
type CampaignsIdPatchPath = ForceDig<CampaignsIdPatchOperation, ["parameters", "path"]>;
|
|
234
|
+
type CampaignsIdPatchRequestBody = ForceDig<CampaignsIdPatchOperation, ["requestBody", "content", "multipart/form-data"]>;
|
|
235
|
+
declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormData, customRequestInit?: RequestInit) => Promise<{
|
|
236
|
+
campaignDetail: ({
|
|
237
|
+
id: number;
|
|
238
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
239
|
+
title: string | null;
|
|
240
|
+
deliveryScheduledAt: string | null;
|
|
241
|
+
} & {
|
|
242
|
+
kind: "curationMailMagazine";
|
|
243
|
+
curationMailMagazine: ({
|
|
244
|
+
utmCampaign: string | null;
|
|
245
|
+
subject: string | null;
|
|
246
|
+
preHeaderText: string | null;
|
|
247
|
+
deliveredUsersCount: number | null;
|
|
248
|
+
targetFilters: {
|
|
249
|
+
id: number;
|
|
250
|
+
behaviorSegmentCodes: string[];
|
|
251
|
+
profileSegmentCodes: string[];
|
|
252
|
+
}[];
|
|
253
|
+
} & {
|
|
254
|
+
bodyKind: "freeFormat";
|
|
255
|
+
htmlBody: string | null;
|
|
256
|
+
htmlStyle: string | null;
|
|
257
|
+
images: {
|
|
258
|
+
id: number;
|
|
259
|
+
key: string;
|
|
260
|
+
}[];
|
|
261
|
+
}) | ({
|
|
262
|
+
utmCampaign: string | null;
|
|
263
|
+
subject: string | null;
|
|
264
|
+
preHeaderText: string | null;
|
|
265
|
+
deliveredUsersCount: number | null;
|
|
266
|
+
targetFilters: {
|
|
267
|
+
id: number;
|
|
268
|
+
behaviorSegmentCodes: string[];
|
|
269
|
+
profileSegmentCodes: string[];
|
|
270
|
+
}[];
|
|
271
|
+
} & {
|
|
272
|
+
bodyKind: "template";
|
|
273
|
+
projects: {
|
|
274
|
+
id: number;
|
|
275
|
+
readyforProjectId: number;
|
|
276
|
+
slotNumber: number;
|
|
277
|
+
isPaidSlot: boolean;
|
|
278
|
+
title: string | null;
|
|
279
|
+
description: string | null;
|
|
280
|
+
thumbnailUrl: string | null;
|
|
281
|
+
tag: string | null;
|
|
282
|
+
tagUrl: string | null;
|
|
283
|
+
}[];
|
|
284
|
+
banners: {
|
|
285
|
+
id: number;
|
|
286
|
+
slotNumber: number;
|
|
287
|
+
imageUrl: string | null;
|
|
288
|
+
url: string | null;
|
|
289
|
+
}[];
|
|
290
|
+
});
|
|
291
|
+
}) | ({
|
|
292
|
+
id: number;
|
|
293
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
294
|
+
title: string | null;
|
|
295
|
+
deliveryScheduledAt: string | null;
|
|
296
|
+
} & {
|
|
297
|
+
kind: "personalizedMailMagazine";
|
|
298
|
+
personalizedMailMagazine: {
|
|
299
|
+
utmCampaign: string | null;
|
|
300
|
+
target: {
|
|
301
|
+
csvFileName: string;
|
|
302
|
+
targetUsersCount: number;
|
|
303
|
+
excludedUsersCount: number;
|
|
304
|
+
} | null;
|
|
305
|
+
};
|
|
306
|
+
});
|
|
307
|
+
}>;
|
|
308
|
+
//#endregion
|
|
309
|
+
export { CampaignsIdPatchRequestBody as a, buildCampaignsIdGetFetcher as c, getCampaignsId as d, patchCampaignsId as f, CampaignsIdPatchPath as i, buildCampaignsIdPatchFetcher as l, CampaignsIdGetPath as n, CampaignsIdPatchResponse as o, CampaignsIdGetResponse as r, buildCampaignsIdDeleteFetcher as s, CampaignsIdDeletePath as t, deleteCampaignsId as u };
|
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
import { paths } from
|
|
2
|
-
import { ForceDig } from
|
|
1
|
+
import { a as paths } from "./schemaType-DcWvaCEH.js";
|
|
2
|
+
import { ForceDig } from "@readyfor/api-client-base";
|
|
3
3
|
|
|
4
|
+
//#region src/fetch/campaignsIdDeliveryJob.d.ts
|
|
4
5
|
type CampaignsIdDeliveryJobPostOperation = paths["/api/campaigns/{id}/delivery_job"]["post"];
|
|
5
6
|
declare const buildCampaignsIdDeliveryJobPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
6
|
-
type CampaignsIdDeliveryJobPostPath = ForceDig<CampaignsIdDeliveryJobPostOperation, [
|
|
7
|
-
"parameters",
|
|
8
|
-
"path"
|
|
9
|
-
]>;
|
|
7
|
+
type CampaignsIdDeliveryJobPostPath = ForceDig<CampaignsIdDeliveryJobPostOperation, ["parameters", "path"]>;
|
|
10
8
|
declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath, customRequestInit?: RequestInit) => Promise<void>;
|
|
11
9
|
type CampaignsIdDeliveryJobDeleteOperation = paths["/api/campaigns/{id}/delivery_job"]["delete"];
|
|
12
10
|
declare const buildCampaignsIdDeliveryJobDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
13
|
-
type CampaignsIdDeliveryJobDeletePath = ForceDig<CampaignsIdDeliveryJobDeleteOperation, [
|
|
14
|
-
"parameters",
|
|
15
|
-
"path"
|
|
16
|
-
]>;
|
|
11
|
+
type CampaignsIdDeliveryJobDeletePath = ForceDig<CampaignsIdDeliveryJobDeleteOperation, ["parameters", "path"]>;
|
|
17
12
|
declare const deleteCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobDeletePath, customRequestInit?: RequestInit) => Promise<void>;
|
|
18
|
-
|
|
19
|
-
export {
|
|
13
|
+
//#endregion
|
|
14
|
+
export { deleteCampaignsIdDeliveryJob as a, buildCampaignsIdDeliveryJobPostFetcher as i, CampaignsIdDeliveryJobPostPath as n, postCampaignsIdDeliveryJob as o, buildCampaignsIdDeliveryJobDeleteFetcher as r, CampaignsIdDeliveryJobDeletePath as t };
|
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
import { paths } from
|
|
2
|
-
import { ForceDig } from
|
|
1
|
+
import { a as paths } from "./schemaType-DcWvaCEH.js";
|
|
2
|
+
import { ForceDig } from "@readyfor/api-client-base";
|
|
3
3
|
|
|
4
|
+
//#region src/fetch/campaignsIdImages.d.ts
|
|
4
5
|
type CampaignsIdImagesPostOperation = paths["/api/campaigns/{id}/images"]["post"];
|
|
5
6
|
type CampaignsIdImagesPostResponse = CampaignsIdImagesPostOperation["responses"]["201"]["content"]["application/json"];
|
|
6
7
|
declare const buildCampaignsIdImagesPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
id: number;
|
|
9
|
+
key: string;
|
|
9
10
|
}>;
|
|
10
|
-
type CampaignsIdImagesPostPath = ForceDig<CampaignsIdImagesPostOperation, [
|
|
11
|
-
|
|
12
|
-
"path"
|
|
13
|
-
]>;
|
|
14
|
-
type CampaignsIdImagesPostRequestBody = ForceDig<CampaignsIdImagesPostOperation, [
|
|
15
|
-
"requestBody",
|
|
16
|
-
"content",
|
|
17
|
-
"multipart/form-data"
|
|
18
|
-
]>;
|
|
11
|
+
type CampaignsIdImagesPostPath = ForceDig<CampaignsIdImagesPostOperation, ["parameters", "path"]>;
|
|
12
|
+
type CampaignsIdImagesPostRequestBody = ForceDig<CampaignsIdImagesPostOperation, ["requestBody", "content", "multipart/form-data"]>;
|
|
19
13
|
declare const postCampaignsIdImages: (path: CampaignsIdImagesPostPath, requestBody: FormData, customRequestInit?: RequestInit) => Promise<{
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
id: number;
|
|
15
|
+
key: string;
|
|
22
16
|
}>;
|
|
23
|
-
|
|
24
|
-
export {
|
|
17
|
+
//#endregion
|
|
18
|
+
export { postCampaignsIdImages as a, buildCampaignsIdImagesPostFetcher as i, CampaignsIdImagesPostRequestBody as n, CampaignsIdImagesPostResponse as r, CampaignsIdImagesPostPath as t };
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import { paths } from
|
|
2
|
-
import { ForceDig } from
|
|
1
|
+
import { a as paths } from "./schemaType-DcWvaCEH.js";
|
|
2
|
+
import { ForceDig } from "@readyfor/api-client-base";
|
|
3
3
|
|
|
4
|
+
//#region src/fetch/campaignsIdPreview.d.ts
|
|
4
5
|
type CampaignsIdPreviewGetOperation = paths["/api/campaigns/{id}/preview"]["get"];
|
|
5
6
|
type CampaignsIdPreviewGetResponse = CampaignsIdPreviewGetOperation["responses"]["200"]["content"]["application/json"];
|
|
6
7
|
declare const buildCampaignsIdPreviewGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
7
|
-
|
|
8
|
+
content: string;
|
|
8
9
|
}>;
|
|
9
|
-
type CampaignsIdPreviewGetPath = ForceDig<CampaignsIdPreviewGetOperation, [
|
|
10
|
-
"parameters",
|
|
11
|
-
"path"
|
|
12
|
-
]>;
|
|
10
|
+
type CampaignsIdPreviewGetPath = ForceDig<CampaignsIdPreviewGetOperation, ["parameters", "path"]>;
|
|
13
11
|
declare const getCampaignsIdPreview: (path: CampaignsIdPreviewGetPath, customRequestInit?: RequestInit) => Promise<{
|
|
14
|
-
|
|
12
|
+
content: string;
|
|
15
13
|
}>;
|
|
16
|
-
|
|
17
|
-
export {
|
|
14
|
+
//#endregion
|
|
15
|
+
export { getCampaignsIdPreview as i, CampaignsIdPreviewGetResponse as n, buildCampaignsIdPreviewGetFetcher as r, CampaignsIdPreviewGetPath as t };
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import { paths } from
|
|
2
|
-
import { ForceDig } from
|
|
1
|
+
import { a as paths } from "./schemaType-DcWvaCEH.js";
|
|
2
|
+
import { ForceDig } from "@readyfor/api-client-base";
|
|
3
3
|
|
|
4
|
+
//#region src/fetch/campaignsIdPreviewDeliveryEmail.d.ts
|
|
4
5
|
type CampaignsIdPreviewDeliveryEmailPostOperation = paths["/api/campaigns/{id}/preview_delivery_email"]["post"];
|
|
5
6
|
declare const buildCampaignsIdPreviewDeliveryEmailPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
6
|
-
type CampaignsIdPreviewDeliveryEmailPostPath = ForceDig<CampaignsIdPreviewDeliveryEmailPostOperation, [
|
|
7
|
-
|
|
8
|
-
"path"
|
|
9
|
-
]>;
|
|
10
|
-
type CampaignsIdPreviewDeliveryEmailPostRequestBody = ForceDig<CampaignsIdPreviewDeliveryEmailPostOperation, [
|
|
11
|
-
"requestBody",
|
|
12
|
-
"content",
|
|
13
|
-
"application/json"
|
|
14
|
-
]>;
|
|
7
|
+
type CampaignsIdPreviewDeliveryEmailPostPath = ForceDig<CampaignsIdPreviewDeliveryEmailPostOperation, ["parameters", "path"]>;
|
|
8
|
+
type CampaignsIdPreviewDeliveryEmailPostRequestBody = ForceDig<CampaignsIdPreviewDeliveryEmailPostOperation, ["requestBody", "content", "application/json"]>;
|
|
15
9
|
declare const postCampaignsIdPreviewDeliveryEmail: (path: CampaignsIdPreviewDeliveryEmailPostPath, requestBody: CampaignsIdPreviewDeliveryEmailPostRequestBody, customRequestInit?: RequestInit) => Promise<void>;
|
|
16
|
-
|
|
17
|
-
export {
|
|
10
|
+
//#endregion
|
|
11
|
+
export { postCampaignsIdPreviewDeliveryEmail as i, CampaignsIdPreviewDeliveryEmailPostRequestBody as n, buildCampaignsIdPreviewDeliveryEmailPostFetcher as r, CampaignsIdPreviewDeliveryEmailPostPath as t };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
+
key = keys[i];
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
+
get: ((k) => from[k]).bind(null, key),
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
+
value: mod,
|
|
20
|
+
enumerable: true
|
|
21
|
+
}) : target, mod));
|
|
22
|
+
//#endregion
|
|
23
|
+
Object.defineProperty(exports, "__toESM", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function() {
|
|
26
|
+
return __toESM;
|
|
27
|
+
}
|
|
28
|
+
});
|