@readyfor/api-client-pigeon 0.182.0 → 0.183.0-pr956.d140042
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/{chunk-WK3GQ3EJ.mjs → chunk-6JD6O54D.mjs} +2 -7
- package/dist/{chunk-74WMCVT5.mjs → chunk-E4EBP7CH.mjs} +1 -1
- package/dist/{chunk-N3BEWWAR.mjs → chunk-IZKSS2SI.mjs} +1 -1
- package/dist/{chunk-27FMVK5R.mjs → chunk-MT42GIFV.mjs} +1 -1
- package/dist/{chunk-RNVZT75U.mjs → chunk-VCZLUTX6.mjs} +1 -1
- package/dist/{chunk-T7TYL5GC.mjs → chunk-WHRQDKQG.mjs} +85 -8
- package/dist/{chunk-OHDYCNMB.mjs → chunk-X3WKGXGL.mjs} +1 -1
- package/dist/components.d.mts +2483 -125
- package/dist/components.d.ts +2483 -125
- package/dist/components.js +94 -8
- package/dist/components.mjs +21 -3
- package/dist/fetch/campaigns.d.mts +2 -2
- package/dist/fetch/campaigns.d.ts +2 -2
- package/dist/fetch/campaigns.js +74 -6
- package/dist/fetch/campaigns.mjs +2 -2
- package/dist/fetch/campaignsId.d.mts +138 -30
- package/dist/fetch/campaignsId.d.ts +138 -30
- package/dist/fetch/campaignsId.js +75 -12
- package/dist/fetch/campaignsId.mjs +2 -2
- package/dist/fetch/projectsProjectIdOrKeyword.js +74 -6
- package/dist/fetch/projectsProjectIdOrKeyword.mjs +2 -2
- package/dist/hooks/index.js +74 -6
- package/dist/hooks/index.mjs +7 -7
- package/dist/hooks/useCampaigns.js +74 -6
- package/dist/hooks/useCampaigns.mjs +5 -5
- package/dist/hooks/useCampaignsId.js +74 -6
- package/dist/hooks/useCampaignsId.mjs +5 -5
- package/dist/hooks/useProjectsProjectIdOrKeyword.js +74 -6
- package/dist/hooks/useProjectsProjectIdOrKeyword.mjs +5 -5
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +93 -12
- package/dist/index.mjs +23 -5
- package/dist/schemaType.d.mts +90 -43
- package/dist/schemaType.d.ts +90 -43
- package/package.json +9 -10
|
@@ -5,12 +5,39 @@ type CampaignsIdGetOperation = paths["/api/campaigns/{id}"]["get"];
|
|
|
5
5
|
type CampaignsIdGetResponse = CampaignsIdGetOperation["responses"]["200"]["content"]["application/json"];
|
|
6
6
|
declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
7
7
|
campaignDetail: {
|
|
8
|
-
curationMailMagazine:
|
|
9
|
-
|
|
8
|
+
curationMailMagazine: {
|
|
9
|
+
utmCampaign: string | null;
|
|
10
|
+
mailSubject: string | null;
|
|
11
|
+
preHeaderText: string | null;
|
|
12
|
+
targets: {
|
|
13
|
+
id: number;
|
|
14
|
+
behaviorSegumentCodes: string[];
|
|
15
|
+
profileSegumentCodes: string[];
|
|
16
|
+
}[];
|
|
17
|
+
projects: {
|
|
18
|
+
id: number;
|
|
19
|
+
readyforProjectId: number;
|
|
20
|
+
isPaidSlot: boolean;
|
|
21
|
+
title: string | null;
|
|
22
|
+
description: string | null;
|
|
23
|
+
tag: string | null;
|
|
24
|
+
tagUrl: string | null;
|
|
25
|
+
slotNumber: number;
|
|
26
|
+
thumbnailUrl: string | null;
|
|
27
|
+
}[];
|
|
28
|
+
banners: {
|
|
29
|
+
id: number;
|
|
30
|
+
url: string | null;
|
|
31
|
+
slotNumber: number;
|
|
32
|
+
imageUrl: string | null;
|
|
33
|
+
}[];
|
|
34
|
+
deliveredUsersCount: number | null;
|
|
35
|
+
};
|
|
10
36
|
kind: "curationMailMagazine";
|
|
11
|
-
|
|
12
|
-
scheduledDeliveryAt: string | null;
|
|
37
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
13
38
|
id: number;
|
|
39
|
+
title: string | null;
|
|
40
|
+
deliveryScheduledAt: string | null;
|
|
14
41
|
} | {
|
|
15
42
|
personalizedMailMagazine: {
|
|
16
43
|
utmCampaign: string | null;
|
|
@@ -20,11 +47,11 @@ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input:
|
|
|
20
47
|
excludedUsersCount: number;
|
|
21
48
|
} | null;
|
|
22
49
|
};
|
|
23
|
-
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
24
50
|
kind: "personalizedMailMagazine";
|
|
25
|
-
|
|
26
|
-
scheduledDeliveryAt: string | null;
|
|
51
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
27
52
|
id: number;
|
|
53
|
+
title: string | null;
|
|
54
|
+
deliveryScheduledAt: string | null;
|
|
28
55
|
};
|
|
29
56
|
}>;
|
|
30
57
|
type CampaignsIdGetPath = ForceDig<CampaignsIdGetOperation, [
|
|
@@ -33,12 +60,39 @@ type CampaignsIdGetPath = ForceDig<CampaignsIdGetOperation, [
|
|
|
33
60
|
]>;
|
|
34
61
|
declare const getCampaignsId: (path: CampaignsIdGetPath, requestInit?: RequestInit) => Promise<{
|
|
35
62
|
campaignDetail: {
|
|
36
|
-
curationMailMagazine:
|
|
37
|
-
|
|
63
|
+
curationMailMagazine: {
|
|
64
|
+
utmCampaign: string | null;
|
|
65
|
+
mailSubject: string | null;
|
|
66
|
+
preHeaderText: string | null;
|
|
67
|
+
targets: {
|
|
68
|
+
id: number;
|
|
69
|
+
behaviorSegumentCodes: string[];
|
|
70
|
+
profileSegumentCodes: string[];
|
|
71
|
+
}[];
|
|
72
|
+
projects: {
|
|
73
|
+
id: number;
|
|
74
|
+
readyforProjectId: number;
|
|
75
|
+
isPaidSlot: boolean;
|
|
76
|
+
title: string | null;
|
|
77
|
+
description: string | null;
|
|
78
|
+
tag: string | null;
|
|
79
|
+
tagUrl: string | null;
|
|
80
|
+
slotNumber: number;
|
|
81
|
+
thumbnailUrl: string | null;
|
|
82
|
+
}[];
|
|
83
|
+
banners: {
|
|
84
|
+
id: number;
|
|
85
|
+
url: string | null;
|
|
86
|
+
slotNumber: number;
|
|
87
|
+
imageUrl: string | null;
|
|
88
|
+
}[];
|
|
89
|
+
deliveredUsersCount: number | null;
|
|
90
|
+
};
|
|
38
91
|
kind: "curationMailMagazine";
|
|
39
|
-
|
|
40
|
-
scheduledDeliveryAt: string | null;
|
|
92
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
41
93
|
id: number;
|
|
94
|
+
title: string | null;
|
|
95
|
+
deliveryScheduledAt: string | null;
|
|
42
96
|
} | {
|
|
43
97
|
personalizedMailMagazine: {
|
|
44
98
|
utmCampaign: string | null;
|
|
@@ -48,11 +102,11 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, requestInit?: RequestIn
|
|
|
48
102
|
excludedUsersCount: number;
|
|
49
103
|
} | null;
|
|
50
104
|
};
|
|
51
|
-
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
52
105
|
kind: "personalizedMailMagazine";
|
|
53
|
-
|
|
54
|
-
scheduledDeliveryAt: string | null;
|
|
106
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
55
107
|
id: number;
|
|
108
|
+
title: string | null;
|
|
109
|
+
deliveryScheduledAt: string | null;
|
|
56
110
|
};
|
|
57
111
|
}>;
|
|
58
112
|
type CampaignsIdDeleteOperation = paths["/api/campaigns/{id}"]["delete"];
|
|
@@ -66,12 +120,39 @@ type CampaignsIdPatchOperation = paths["/api/campaigns/{id}"]["patch"];
|
|
|
66
120
|
type CampaignsIdPatchResponse = CampaignsIdPatchOperation["responses"]["200"]["content"]["application/json"];
|
|
67
121
|
declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
68
122
|
campaignDetail: {
|
|
69
|
-
curationMailMagazine:
|
|
70
|
-
|
|
123
|
+
curationMailMagazine: {
|
|
124
|
+
utmCampaign: string | null;
|
|
125
|
+
mailSubject: string | null;
|
|
126
|
+
preHeaderText: string | null;
|
|
127
|
+
targets: {
|
|
128
|
+
id: number;
|
|
129
|
+
behaviorSegumentCodes: string[];
|
|
130
|
+
profileSegumentCodes: string[];
|
|
131
|
+
}[];
|
|
132
|
+
projects: {
|
|
133
|
+
id: number;
|
|
134
|
+
readyforProjectId: number;
|
|
135
|
+
isPaidSlot: boolean;
|
|
136
|
+
title: string | null;
|
|
137
|
+
description: string | null;
|
|
138
|
+
tag: string | null;
|
|
139
|
+
tagUrl: string | null;
|
|
140
|
+
slotNumber: number;
|
|
141
|
+
thumbnailUrl: string | null;
|
|
142
|
+
}[];
|
|
143
|
+
banners: {
|
|
144
|
+
id: number;
|
|
145
|
+
url: string | null;
|
|
146
|
+
slotNumber: number;
|
|
147
|
+
imageUrl: string | null;
|
|
148
|
+
}[];
|
|
149
|
+
deliveredUsersCount: number | null;
|
|
150
|
+
};
|
|
71
151
|
kind: "curationMailMagazine";
|
|
72
|
-
|
|
73
|
-
scheduledDeliveryAt: string | null;
|
|
152
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
74
153
|
id: number;
|
|
154
|
+
title: string | null;
|
|
155
|
+
deliveryScheduledAt: string | null;
|
|
75
156
|
} | {
|
|
76
157
|
personalizedMailMagazine: {
|
|
77
158
|
utmCampaign: string | null;
|
|
@@ -81,11 +162,11 @@ declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (inpu
|
|
|
81
162
|
excludedUsersCount: number;
|
|
82
163
|
} | null;
|
|
83
164
|
};
|
|
84
|
-
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
85
165
|
kind: "personalizedMailMagazine";
|
|
86
|
-
|
|
87
|
-
scheduledDeliveryAt: string | null;
|
|
166
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
88
167
|
id: number;
|
|
168
|
+
title: string | null;
|
|
169
|
+
deliveryScheduledAt: string | null;
|
|
89
170
|
};
|
|
90
171
|
}>;
|
|
91
172
|
type CampaignsIdPatchPath = ForceDig<CampaignsIdPatchOperation, [
|
|
@@ -95,16 +176,43 @@ type CampaignsIdPatchPath = ForceDig<CampaignsIdPatchOperation, [
|
|
|
95
176
|
type CampaignsIdPatchRequestBody = ForceDig<CampaignsIdPatchOperation, [
|
|
96
177
|
"requestBody",
|
|
97
178
|
"content",
|
|
98
|
-
"
|
|
179
|
+
"multipart/form-data"
|
|
99
180
|
]>;
|
|
100
|
-
declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody:
|
|
181
|
+
declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormData, requestInit?: RequestInit) => Promise<{
|
|
101
182
|
campaignDetail: {
|
|
102
|
-
curationMailMagazine:
|
|
103
|
-
|
|
183
|
+
curationMailMagazine: {
|
|
184
|
+
utmCampaign: string | null;
|
|
185
|
+
mailSubject: string | null;
|
|
186
|
+
preHeaderText: string | null;
|
|
187
|
+
targets: {
|
|
188
|
+
id: number;
|
|
189
|
+
behaviorSegumentCodes: string[];
|
|
190
|
+
profileSegumentCodes: string[];
|
|
191
|
+
}[];
|
|
192
|
+
projects: {
|
|
193
|
+
id: number;
|
|
194
|
+
readyforProjectId: number;
|
|
195
|
+
isPaidSlot: boolean;
|
|
196
|
+
title: string | null;
|
|
197
|
+
description: string | null;
|
|
198
|
+
tag: string | null;
|
|
199
|
+
tagUrl: string | null;
|
|
200
|
+
slotNumber: number;
|
|
201
|
+
thumbnailUrl: string | null;
|
|
202
|
+
}[];
|
|
203
|
+
banners: {
|
|
204
|
+
id: number;
|
|
205
|
+
url: string | null;
|
|
206
|
+
slotNumber: number;
|
|
207
|
+
imageUrl: string | null;
|
|
208
|
+
}[];
|
|
209
|
+
deliveredUsersCount: number | null;
|
|
210
|
+
};
|
|
104
211
|
kind: "curationMailMagazine";
|
|
105
|
-
|
|
106
|
-
scheduledDeliveryAt: string | null;
|
|
212
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
107
213
|
id: number;
|
|
214
|
+
title: string | null;
|
|
215
|
+
deliveryScheduledAt: string | null;
|
|
108
216
|
} | {
|
|
109
217
|
personalizedMailMagazine: {
|
|
110
218
|
utmCampaign: string | null;
|
|
@@ -114,11 +222,11 @@ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: Campai
|
|
|
114
222
|
excludedUsersCount: number;
|
|
115
223
|
} | null;
|
|
116
224
|
};
|
|
117
|
-
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
118
225
|
kind: "personalizedMailMagazine";
|
|
119
|
-
|
|
120
|
-
scheduledDeliveryAt: string | null;
|
|
226
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
121
227
|
id: number;
|
|
228
|
+
title: string | null;
|
|
229
|
+
deliveryScheduledAt: string | null;
|
|
122
230
|
};
|
|
123
231
|
}>;
|
|
124
232
|
|
|
@@ -5,12 +5,39 @@ type CampaignsIdGetOperation = paths["/api/campaigns/{id}"]["get"];
|
|
|
5
5
|
type CampaignsIdGetResponse = CampaignsIdGetOperation["responses"]["200"]["content"]["application/json"];
|
|
6
6
|
declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
7
7
|
campaignDetail: {
|
|
8
|
-
curationMailMagazine:
|
|
9
|
-
|
|
8
|
+
curationMailMagazine: {
|
|
9
|
+
utmCampaign: string | null;
|
|
10
|
+
mailSubject: string | null;
|
|
11
|
+
preHeaderText: string | null;
|
|
12
|
+
targets: {
|
|
13
|
+
id: number;
|
|
14
|
+
behaviorSegumentCodes: string[];
|
|
15
|
+
profileSegumentCodes: string[];
|
|
16
|
+
}[];
|
|
17
|
+
projects: {
|
|
18
|
+
id: number;
|
|
19
|
+
readyforProjectId: number;
|
|
20
|
+
isPaidSlot: boolean;
|
|
21
|
+
title: string | null;
|
|
22
|
+
description: string | null;
|
|
23
|
+
tag: string | null;
|
|
24
|
+
tagUrl: string | null;
|
|
25
|
+
slotNumber: number;
|
|
26
|
+
thumbnailUrl: string | null;
|
|
27
|
+
}[];
|
|
28
|
+
banners: {
|
|
29
|
+
id: number;
|
|
30
|
+
url: string | null;
|
|
31
|
+
slotNumber: number;
|
|
32
|
+
imageUrl: string | null;
|
|
33
|
+
}[];
|
|
34
|
+
deliveredUsersCount: number | null;
|
|
35
|
+
};
|
|
10
36
|
kind: "curationMailMagazine";
|
|
11
|
-
|
|
12
|
-
scheduledDeliveryAt: string | null;
|
|
37
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
13
38
|
id: number;
|
|
39
|
+
title: string | null;
|
|
40
|
+
deliveryScheduledAt: string | null;
|
|
14
41
|
} | {
|
|
15
42
|
personalizedMailMagazine: {
|
|
16
43
|
utmCampaign: string | null;
|
|
@@ -20,11 +47,11 @@ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input:
|
|
|
20
47
|
excludedUsersCount: number;
|
|
21
48
|
} | null;
|
|
22
49
|
};
|
|
23
|
-
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
24
50
|
kind: "personalizedMailMagazine";
|
|
25
|
-
|
|
26
|
-
scheduledDeliveryAt: string | null;
|
|
51
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
27
52
|
id: number;
|
|
53
|
+
title: string | null;
|
|
54
|
+
deliveryScheduledAt: string | null;
|
|
28
55
|
};
|
|
29
56
|
}>;
|
|
30
57
|
type CampaignsIdGetPath = ForceDig<CampaignsIdGetOperation, [
|
|
@@ -33,12 +60,39 @@ type CampaignsIdGetPath = ForceDig<CampaignsIdGetOperation, [
|
|
|
33
60
|
]>;
|
|
34
61
|
declare const getCampaignsId: (path: CampaignsIdGetPath, requestInit?: RequestInit) => Promise<{
|
|
35
62
|
campaignDetail: {
|
|
36
|
-
curationMailMagazine:
|
|
37
|
-
|
|
63
|
+
curationMailMagazine: {
|
|
64
|
+
utmCampaign: string | null;
|
|
65
|
+
mailSubject: string | null;
|
|
66
|
+
preHeaderText: string | null;
|
|
67
|
+
targets: {
|
|
68
|
+
id: number;
|
|
69
|
+
behaviorSegumentCodes: string[];
|
|
70
|
+
profileSegumentCodes: string[];
|
|
71
|
+
}[];
|
|
72
|
+
projects: {
|
|
73
|
+
id: number;
|
|
74
|
+
readyforProjectId: number;
|
|
75
|
+
isPaidSlot: boolean;
|
|
76
|
+
title: string | null;
|
|
77
|
+
description: string | null;
|
|
78
|
+
tag: string | null;
|
|
79
|
+
tagUrl: string | null;
|
|
80
|
+
slotNumber: number;
|
|
81
|
+
thumbnailUrl: string | null;
|
|
82
|
+
}[];
|
|
83
|
+
banners: {
|
|
84
|
+
id: number;
|
|
85
|
+
url: string | null;
|
|
86
|
+
slotNumber: number;
|
|
87
|
+
imageUrl: string | null;
|
|
88
|
+
}[];
|
|
89
|
+
deliveredUsersCount: number | null;
|
|
90
|
+
};
|
|
38
91
|
kind: "curationMailMagazine";
|
|
39
|
-
|
|
40
|
-
scheduledDeliveryAt: string | null;
|
|
92
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
41
93
|
id: number;
|
|
94
|
+
title: string | null;
|
|
95
|
+
deliveryScheduledAt: string | null;
|
|
42
96
|
} | {
|
|
43
97
|
personalizedMailMagazine: {
|
|
44
98
|
utmCampaign: string | null;
|
|
@@ -48,11 +102,11 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, requestInit?: RequestIn
|
|
|
48
102
|
excludedUsersCount: number;
|
|
49
103
|
} | null;
|
|
50
104
|
};
|
|
51
|
-
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
52
105
|
kind: "personalizedMailMagazine";
|
|
53
|
-
|
|
54
|
-
scheduledDeliveryAt: string | null;
|
|
106
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
55
107
|
id: number;
|
|
108
|
+
title: string | null;
|
|
109
|
+
deliveryScheduledAt: string | null;
|
|
56
110
|
};
|
|
57
111
|
}>;
|
|
58
112
|
type CampaignsIdDeleteOperation = paths["/api/campaigns/{id}"]["delete"];
|
|
@@ -66,12 +120,39 @@ type CampaignsIdPatchOperation = paths["/api/campaigns/{id}"]["patch"];
|
|
|
66
120
|
type CampaignsIdPatchResponse = CampaignsIdPatchOperation["responses"]["200"]["content"]["application/json"];
|
|
67
121
|
declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
68
122
|
campaignDetail: {
|
|
69
|
-
curationMailMagazine:
|
|
70
|
-
|
|
123
|
+
curationMailMagazine: {
|
|
124
|
+
utmCampaign: string | null;
|
|
125
|
+
mailSubject: string | null;
|
|
126
|
+
preHeaderText: string | null;
|
|
127
|
+
targets: {
|
|
128
|
+
id: number;
|
|
129
|
+
behaviorSegumentCodes: string[];
|
|
130
|
+
profileSegumentCodes: string[];
|
|
131
|
+
}[];
|
|
132
|
+
projects: {
|
|
133
|
+
id: number;
|
|
134
|
+
readyforProjectId: number;
|
|
135
|
+
isPaidSlot: boolean;
|
|
136
|
+
title: string | null;
|
|
137
|
+
description: string | null;
|
|
138
|
+
tag: string | null;
|
|
139
|
+
tagUrl: string | null;
|
|
140
|
+
slotNumber: number;
|
|
141
|
+
thumbnailUrl: string | null;
|
|
142
|
+
}[];
|
|
143
|
+
banners: {
|
|
144
|
+
id: number;
|
|
145
|
+
url: string | null;
|
|
146
|
+
slotNumber: number;
|
|
147
|
+
imageUrl: string | null;
|
|
148
|
+
}[];
|
|
149
|
+
deliveredUsersCount: number | null;
|
|
150
|
+
};
|
|
71
151
|
kind: "curationMailMagazine";
|
|
72
|
-
|
|
73
|
-
scheduledDeliveryAt: string | null;
|
|
152
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
74
153
|
id: number;
|
|
154
|
+
title: string | null;
|
|
155
|
+
deliveryScheduledAt: string | null;
|
|
75
156
|
} | {
|
|
76
157
|
personalizedMailMagazine: {
|
|
77
158
|
utmCampaign: string | null;
|
|
@@ -81,11 +162,11 @@ declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (inpu
|
|
|
81
162
|
excludedUsersCount: number;
|
|
82
163
|
} | null;
|
|
83
164
|
};
|
|
84
|
-
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
85
165
|
kind: "personalizedMailMagazine";
|
|
86
|
-
|
|
87
|
-
scheduledDeliveryAt: string | null;
|
|
166
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
88
167
|
id: number;
|
|
168
|
+
title: string | null;
|
|
169
|
+
deliveryScheduledAt: string | null;
|
|
89
170
|
};
|
|
90
171
|
}>;
|
|
91
172
|
type CampaignsIdPatchPath = ForceDig<CampaignsIdPatchOperation, [
|
|
@@ -95,16 +176,43 @@ type CampaignsIdPatchPath = ForceDig<CampaignsIdPatchOperation, [
|
|
|
95
176
|
type CampaignsIdPatchRequestBody = ForceDig<CampaignsIdPatchOperation, [
|
|
96
177
|
"requestBody",
|
|
97
178
|
"content",
|
|
98
|
-
"
|
|
179
|
+
"multipart/form-data"
|
|
99
180
|
]>;
|
|
100
|
-
declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody:
|
|
181
|
+
declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormData, requestInit?: RequestInit) => Promise<{
|
|
101
182
|
campaignDetail: {
|
|
102
|
-
curationMailMagazine:
|
|
103
|
-
|
|
183
|
+
curationMailMagazine: {
|
|
184
|
+
utmCampaign: string | null;
|
|
185
|
+
mailSubject: string | null;
|
|
186
|
+
preHeaderText: string | null;
|
|
187
|
+
targets: {
|
|
188
|
+
id: number;
|
|
189
|
+
behaviorSegumentCodes: string[];
|
|
190
|
+
profileSegumentCodes: string[];
|
|
191
|
+
}[];
|
|
192
|
+
projects: {
|
|
193
|
+
id: number;
|
|
194
|
+
readyforProjectId: number;
|
|
195
|
+
isPaidSlot: boolean;
|
|
196
|
+
title: string | null;
|
|
197
|
+
description: string | null;
|
|
198
|
+
tag: string | null;
|
|
199
|
+
tagUrl: string | null;
|
|
200
|
+
slotNumber: number;
|
|
201
|
+
thumbnailUrl: string | null;
|
|
202
|
+
}[];
|
|
203
|
+
banners: {
|
|
204
|
+
id: number;
|
|
205
|
+
url: string | null;
|
|
206
|
+
slotNumber: number;
|
|
207
|
+
imageUrl: string | null;
|
|
208
|
+
}[];
|
|
209
|
+
deliveredUsersCount: number | null;
|
|
210
|
+
};
|
|
104
211
|
kind: "curationMailMagazine";
|
|
105
|
-
|
|
106
|
-
scheduledDeliveryAt: string | null;
|
|
212
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
107
213
|
id: number;
|
|
214
|
+
title: string | null;
|
|
215
|
+
deliveryScheduledAt: string | null;
|
|
108
216
|
} | {
|
|
109
217
|
personalizedMailMagazine: {
|
|
110
218
|
utmCampaign: string | null;
|
|
@@ -114,11 +222,11 @@ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: Campai
|
|
|
114
222
|
excludedUsersCount: number;
|
|
115
223
|
} | null;
|
|
116
224
|
};
|
|
117
|
-
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
118
225
|
kind: "personalizedMailMagazine";
|
|
119
|
-
|
|
120
|
-
scheduledDeliveryAt: string | null;
|
|
226
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
121
227
|
id: number;
|
|
228
|
+
title: string | null;
|
|
229
|
+
deliveryScheduledAt: string | null;
|
|
122
230
|
};
|
|
123
231
|
}>;
|
|
124
232
|
|
|
@@ -32,10 +32,19 @@ var import_api_client_base = require("@readyfor/api-client-base");
|
|
|
32
32
|
|
|
33
33
|
// src/components.ts
|
|
34
34
|
var import_zod = require("zod");
|
|
35
|
+
var DeleteImageFormData = import_zod.z.object({ kind: import_zod.z.literal("delete") });
|
|
36
|
+
var UploadImageFormData = import_zod.z.object({
|
|
37
|
+
kind: import_zod.z.literal("upload"),
|
|
38
|
+
data: import_zod.z.union([import_zod.z.any(), import_zod.z.any()])
|
|
39
|
+
});
|
|
35
40
|
var PersonalizedMailMagazineTargetUploadCsvRecordFormData = import_zod.z.object({
|
|
36
41
|
userId: import_zod.z.number(),
|
|
37
42
|
projectIds: import_zod.z.string()
|
|
38
43
|
});
|
|
44
|
+
var ImageFormData = import_zod.z.union([
|
|
45
|
+
UploadImageFormData,
|
|
46
|
+
DeleteImageFormData
|
|
47
|
+
]);
|
|
39
48
|
var PersonalizedMailMagazineTargetUploadCsvFormData = import_zod.z.object({
|
|
40
49
|
kind: import_zod.z.literal("uploadCsv"),
|
|
41
50
|
fileName: import_zod.z.string(),
|
|
@@ -44,19 +53,80 @@ var PersonalizedMailMagazineTargetUploadCsvFormData = import_zod.z.object({
|
|
|
44
53
|
var PersonalizedMailMagazineTargetDeleteCsvFormData = import_zod.z.object({
|
|
45
54
|
kind: import_zod.z.literal("deleteTargetCsv")
|
|
46
55
|
});
|
|
56
|
+
var CurationMailMagazineBannerFormData = import_zod.z.object({
|
|
57
|
+
id: import_zod.z.union([import_zod.z.number(), import_zod.z.null()]),
|
|
58
|
+
order: import_zod.z.number(),
|
|
59
|
+
image: ImageFormData,
|
|
60
|
+
url: import_zod.z.union([import_zod.z.string(), import_zod.z.null()])
|
|
61
|
+
});
|
|
62
|
+
var CurationMailMagazineProjectFormData = import_zod.z.object({
|
|
63
|
+
id: import_zod.z.union([import_zod.z.number(), import_zod.z.null()]),
|
|
64
|
+
order: import_zod.z.number(),
|
|
65
|
+
readyforProjectId: import_zod.z.number(),
|
|
66
|
+
isPaidSlot: import_zod.z.boolean(),
|
|
67
|
+
title: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
68
|
+
description: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
69
|
+
thumbnal: ImageFormData,
|
|
70
|
+
tag: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
71
|
+
tagUrl: import_zod.z.union([import_zod.z.string(), import_zod.z.null()])
|
|
72
|
+
});
|
|
73
|
+
var CurationMailMagazineTargetFormData = import_zod.z.object({
|
|
74
|
+
id: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
75
|
+
behaviorSgumentCodes: import_zod.z.array(import_zod.z.string()),
|
|
76
|
+
profileSgumentCodes: import_zod.z.array(import_zod.z.string())
|
|
77
|
+
});
|
|
47
78
|
var PersonalizedMailMagazineTargetCsvFormData = import_zod.z.union([
|
|
48
79
|
PersonalizedMailMagazineTargetDeleteCsvFormData,
|
|
49
80
|
PersonalizedMailMagazineTargetUploadCsvFormData
|
|
50
81
|
]);
|
|
82
|
+
var CurationMailMagazineBanner = import_zod.z.object({
|
|
83
|
+
id: import_zod.z.number(),
|
|
84
|
+
slotNumber: import_zod.z.number(),
|
|
85
|
+
imageUrl: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
86
|
+
url: import_zod.z.union([import_zod.z.string(), import_zod.z.null()])
|
|
87
|
+
});
|
|
88
|
+
var CurationMailMagazineTargetProject = import_zod.z.object({
|
|
89
|
+
id: import_zod.z.number(),
|
|
90
|
+
readyforProjectId: import_zod.z.number(),
|
|
91
|
+
slotNumber: import_zod.z.number(),
|
|
92
|
+
isPaidSlot: import_zod.z.boolean(),
|
|
93
|
+
title: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
94
|
+
description: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
95
|
+
thumbnailUrl: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
96
|
+
tag: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
97
|
+
tagUrl: import_zod.z.union([import_zod.z.string(), import_zod.z.null()])
|
|
98
|
+
});
|
|
99
|
+
var CurationMailMagazineTarget = import_zod.z.object({
|
|
100
|
+
id: import_zod.z.number(),
|
|
101
|
+
behaviorSegumentCodes: import_zod.z.array(import_zod.z.string()),
|
|
102
|
+
profileSegumentCodes: import_zod.z.array(import_zod.z.string())
|
|
103
|
+
});
|
|
51
104
|
var PersonalizedMailMagazineDetailTarget = import_zod.z.object({
|
|
52
105
|
csvFileName: import_zod.z.string(),
|
|
53
106
|
targetUsersCount: import_zod.z.number(),
|
|
54
107
|
excludedUsersCount: import_zod.z.number()
|
|
55
108
|
});
|
|
109
|
+
var CurationMailMagazineFormData = import_zod.z.object({
|
|
110
|
+
utmCampaign: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
111
|
+
mailSubject: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
112
|
+
preHeaderText: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
113
|
+
targets: import_zod.z.array(CurationMailMagazineTargetFormData),
|
|
114
|
+
projects: import_zod.z.array(CurationMailMagazineProjectFormData),
|
|
115
|
+
banners: import_zod.z.array(CurationMailMagazineBannerFormData)
|
|
116
|
+
});
|
|
56
117
|
var PersonalizedMailMagazineFormData = import_zod.z.object({
|
|
57
118
|
utmCampaign: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
58
119
|
targetCsv: import_zod.z.union([PersonalizedMailMagazineTargetCsvFormData, import_zod.z.null()])
|
|
59
120
|
});
|
|
121
|
+
var CurationMailMagazineDetail = import_zod.z.object({
|
|
122
|
+
utmCampaign: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
123
|
+
mailSubject: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
124
|
+
preHeaderText: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
125
|
+
deliveredUsersCount: import_zod.z.union([import_zod.z.number(), import_zod.z.null()]),
|
|
126
|
+
targets: import_zod.z.array(CurationMailMagazineTarget),
|
|
127
|
+
projects: import_zod.z.array(CurationMailMagazineTargetProject),
|
|
128
|
+
banners: import_zod.z.array(CurationMailMagazineBanner)
|
|
129
|
+
});
|
|
60
130
|
var CampaignStatus = import_zod.z.union([
|
|
61
131
|
import_zod.z.literal("draft"),
|
|
62
132
|
import_zod.z.literal("scheduled"),
|
|
@@ -70,11 +140,11 @@ var PersonalizedMailMagazineDetail = import_zod.z.object({
|
|
|
70
140
|
});
|
|
71
141
|
var CampaignKindDataCurationMailMagazineFormData = import_zod.z.object({
|
|
72
142
|
kind: import_zod.z.literal("curationMailMagazine"),
|
|
73
|
-
curationMailMagazine:
|
|
143
|
+
curationMailMagazine: CurationMailMagazineFormData
|
|
74
144
|
});
|
|
75
145
|
var CampaignBaseFormData = import_zod.z.object({
|
|
76
146
|
title: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
77
|
-
|
|
147
|
+
deliveryScheduledAt: import_zod.z.union([import_zod.z.string(), import_zod.z.null()])
|
|
78
148
|
});
|
|
79
149
|
var CampaignKindDataPersonalizedMailMagazineFormData = import_zod.z.object({
|
|
80
150
|
kind: import_zod.z.literal("personalizedMailMagazine"),
|
|
@@ -82,13 +152,13 @@ var CampaignKindDataPersonalizedMailMagazineFormData = import_zod.z.object({
|
|
|
82
152
|
});
|
|
83
153
|
var CampaignDetailKindDataCurationMailMagazine = import_zod.z.object({
|
|
84
154
|
kind: import_zod.z.literal("curationMailMagazine"),
|
|
85
|
-
curationMailMagazine:
|
|
155
|
+
curationMailMagazine: CurationMailMagazineDetail
|
|
86
156
|
});
|
|
87
157
|
var CampaignDetailBase = import_zod.z.object({
|
|
88
158
|
id: import_zod.z.number(),
|
|
89
159
|
status: CampaignStatus,
|
|
90
160
|
title: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
91
|
-
|
|
161
|
+
deliveryScheduledAt: import_zod.z.union([import_zod.z.string(), import_zod.z.null()])
|
|
92
162
|
});
|
|
93
163
|
var CampaignDetailKindDataPersonalizedMailMagazine = import_zod.z.object({
|
|
94
164
|
kind: import_zod.z.literal("personalizedMailMagazine"),
|
|
@@ -137,8 +207,6 @@ var Campaign = import_zod.z.object({
|
|
|
137
207
|
lastEditorName: import_zod.z.string(),
|
|
138
208
|
lastEditedAt: import_zod.z.string()
|
|
139
209
|
});
|
|
140
|
-
var CurationMailMagazineFormData = import_zod.z.record(import_zod.z.string(), import_zod.z.never());
|
|
141
|
-
var CurationMailMagazineDetail = import_zod.z.record(import_zod.z.string(), import_zod.z.never());
|
|
142
210
|
var GetProjectsProjectIdOrKeywordResponse = import_zod.z.object({
|
|
143
211
|
project: ReadyforProject
|
|
144
212
|
});
|
|
@@ -170,12 +238,7 @@ var deleteCampaignsId = (path, requestInit) => buildCampaignsIdDeleteFetcher()(
|
|
|
170
238
|
var buildCampaignsIdPatchFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
|
|
171
239
|
var patchCampaignsId = (path, requestBody, requestInit) => buildCampaignsIdPatchFetcher()(
|
|
172
240
|
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path),
|
|
173
|
-
{
|
|
174
|
-
...requestInit,
|
|
175
|
-
method: "PATCH",
|
|
176
|
-
headers: { ...requestInit?.headers, "Content-Type": "application/json" },
|
|
177
|
-
body: JSON.stringify(requestBody)
|
|
178
|
-
}
|
|
241
|
+
{ ...requestInit, method: "PATCH", body: requestBody }
|
|
179
242
|
);
|
|
180
243
|
// Annotate the CommonJS export names for ESM import in node:
|
|
181
244
|
0 && (module.exports = {
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
deleteCampaignsId,
|
|
6
6
|
getCampaignsId,
|
|
7
7
|
patchCampaignsId
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-6JD6O54D.mjs";
|
|
9
|
+
import "../chunk-WHRQDKQG.mjs";
|
|
10
10
|
export {
|
|
11
11
|
buildCampaignsIdDeleteFetcher,
|
|
12
12
|
buildCampaignsIdGetFetcher,
|