@readyfor/api-client-pigeon 1.160.0 → 1.162.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.
Files changed (39) hide show
  1. package/dist/components.d.ts +1114 -2
  2. package/dist/fetch/campaigns.d.ts +79 -2
  3. package/dist/fetch/campaignsCampaignIdImagesId.d.ts +7 -2
  4. package/dist/fetch/campaignsId.d.ts +306 -2
  5. package/dist/fetch/campaignsIdDeliveryJob.d.ts +11 -2
  6. package/dist/fetch/campaignsIdImages.d.ts +15 -2
  7. package/dist/fetch/campaignsIdPreview.d.ts +12 -2
  8. package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.ts +8 -2
  9. package/dist/fetch/campaignsIdUtmCampaignConflicts.d.ts +19 -2
  10. package/dist/fetch/projectsProjectIdOrKeyword.d.ts +22 -2
  11. package/dist/fetch/segmentsBehaviorSegments.d.ts +23 -2
  12. package/dist/fetch/segmentsProfileSegments.d.ts +23 -2
  13. package/dist/fetch/segmentsTargetUsersCount.d.ts +12 -2
  14. package/dist/hooks/useCampaigns.d.ts +3 -3
  15. package/dist/hooks/useCampaignsId.d.ts +3 -3
  16. package/dist/hooks/useCampaignsIdPreview.d.ts +2 -2
  17. package/dist/hooks/useCampaignsIdUtmCampaignConflicts.d.ts +3 -3
  18. package/dist/hooks/useProjectsProjectIdOrKeyword.d.ts +3 -3
  19. package/dist/hooks/useSegmentsBehaviorSegments.d.ts +3 -3
  20. package/dist/hooks/useSegmentsProfileSegments.d.ts +3 -3
  21. package/dist/hooks/useSegmentsTargetUsersCount.d.ts +2 -2
  22. package/dist/index.d.ts +14 -15
  23. package/dist/schemaType.d.ts +934 -2
  24. package/package.json +3 -3
  25. package/dist/campaigns-BPGFLNBk.d.ts +0 -79
  26. package/dist/campaignsCampaignIdImagesId-Bg8VdWdK.d.ts +0 -7
  27. package/dist/campaignsId-CJrCSwgn.d.ts +0 -306
  28. package/dist/campaignsIdDeliveryJob-Cf4-Ckao.d.ts +0 -11
  29. package/dist/campaignsIdImages-BDuAnjF9.d.ts +0 -15
  30. package/dist/campaignsIdPreview-ua-DbzxQ.d.ts +0 -12
  31. package/dist/campaignsIdPreviewDeliveryEmail-CGHtSsk7.d.ts +0 -8
  32. package/dist/campaignsIdUtmCampaignConflicts-rRT4cpxW.d.ts +0 -19
  33. package/dist/components-NsRUpoRJ.d.ts +0 -1115
  34. package/dist/index-DAFLJA2Q.d.ts +0 -13
  35. package/dist/projectsProjectIdOrKeyword-D3G_Rtr7.d.ts +0 -22
  36. package/dist/schemaType-DNnjW7qF.d.ts +0 -935
  37. package/dist/segmentsBehaviorSegments-iEXzaqD4.d.ts +0 -23
  38. package/dist/segmentsProfileSegments-Bk6DuDmH.d.ts +0 -23
  39. package/dist/segmentsTargetUsersCount-BA_I8aDM.d.ts +0 -12
@@ -1,935 +0,0 @@
1
- /**
2
- * This file was auto-generated by openapi-typescript.
3
- * Do not make direct changes to the file.
4
- */
5
- interface paths {
6
- "/api/campaigns": {
7
- /** キャンペーン一覧を取得する */
8
- get: operations["GetCampaigns"];
9
- /** キャンペーンを作成する */
10
- post: operations["PostCampaigns"];
11
- };
12
- "/api/campaigns/{id}": {
13
- /** キャンペーン詳細を取得する */
14
- get: operations["GetCampaignsCampaignId"];
15
- /** キャンペーンを削除する */
16
- delete: operations["DeleteCampaignsCampaignId"];
17
- /** キャンペーンを更新する */
18
- patch: operations["PatchCampaignsCampaignId"];
19
- };
20
- "/api/campaigns/{id}/delivery_job": {
21
- /** キャンペーンの配信予約をする */
22
- post: operations["PostCampaignsCampaignIdDeliveryJob"];
23
- /** キャンペーンの配信予約を取り消す */
24
- delete: operations["DeleteCampaignsCampaignIdDeliveryJob"];
25
- };
26
- "/api/campaigns/{id}/preview": {
27
- /** メルマガのプレビューを取得する */
28
- get: operations["GetCampaignsCampaignIdPreview"];
29
- };
30
- "/api/campaigns/{id}/preview_delivery_email": {
31
- /** メルマガのテスト配信 */
32
- post: operations["PostCampaignsCampaignIdPreviewDeliveryEmail"];
33
- };
34
- "/api/campaigns/{id}/utm_campaign_conflicts": {
35
- /** utm_campaign の重複キャンペーンを取得する */
36
- get: operations["GetCampaignsCampaignIdUtmCampaignConflicts"];
37
- };
38
- "/api/campaigns/{id}/images": {
39
- /** 画像をアップロードする */
40
- post: {
41
- parameters: {
42
- path: {
43
- id: number;
44
- };
45
- };
46
- requestBody?: {
47
- content: {
48
- "multipart/form-data": components["schemas"]["PostCampaignsCampaignIdImagesReqeustBody"];
49
- };
50
- };
51
- responses: {
52
- /** @description Created */
53
- 201: {
54
- content: {
55
- "application/json": components["schemas"]["Image"];
56
- };
57
- };
58
- };
59
- };
60
- };
61
- "/api/campaigns/{campaign_id}/images/{id}": {
62
- /** アップロードされた画像を削除する */
63
- delete: {
64
- parameters: {
65
- path: {
66
- campaign_id: number;
67
- id: number;
68
- };
69
- };
70
- responses: {
71
- /** @description No Content */
72
- 204: {
73
- content: never;
74
- };
75
- };
76
- };
77
- };
78
- "/api/projects/{project_id_or_keyword}": {
79
- /** プロジェクト情報を取得する */
80
- get: operations["GetProjectsProjectIdOrKeyword"];
81
- };
82
- "/api/segments/behavior_segments": {
83
- /** 配信先の行動セグメントの一覧を返す */
84
- get: operations["GetBehaviorSegments"];
85
- };
86
- "/api/segments/profile_segments": {
87
- /** 配信先の属性セグメントの一覧を返す */
88
- get: operations["GetProfileSegments"];
89
- };
90
- "/api/segments/target_users_count": {
91
- /** 配信先設定時の配信対象人数を取得する */
92
- get: operations["GetTargetUsersCount"];
93
- };
94
- }
95
- type webhooks = Record<string, never>;
96
- interface components {
97
- schemas: {
98
- /**
99
- * GetCampaignsResponse
100
- * @example {
101
- * "pagination": {
102
- * "nextPage": 7,
103
- * "isLastPage": true,
104
- * "totalPages": 6,
105
- * "prevPage": 2,
106
- * "totalCount": 1,
107
- * "currentPage": 5,
108
- * "isFirstPage": true,
109
- * "currentPerPage": 5
110
- * },
111
- * "campaigns": [
112
- * {
113
- * "lastEditorName": "lastEditorName",
114
- * "kind": "personalizedMailMagazine",
115
- * "deliveryAt": "2000-01-23T04:56:07.000Z",
116
- * "lastEditedAt": "2000-01-23T04:56:07.000Z",
117
- * "id": 0,
118
- * "title": "title",
119
- * "status": "draft"
120
- * },
121
- * {
122
- * "lastEditorName": "lastEditorName",
123
- * "kind": "personalizedMailMagazine",
124
- * "deliveryAt": "2000-01-23T04:56:07.000Z",
125
- * "lastEditedAt": "2000-01-23T04:56:07.000Z",
126
- * "id": 0,
127
- * "title": "title",
128
- * "status": "draft"
129
- * }
130
- * ]
131
- * }
132
- */
133
- GetCampaignsResponse: {
134
- campaigns: components["schemas"]["Campaign"][];
135
- pagination: components["schemas"]["Pagination"];
136
- };
137
- Campaign: components["schemas"]["PersonalizedMailMagazineCampaign"] | components["schemas"]["CurationMailMagazineCampaign"];
138
- /**
139
- * @example {
140
- * "lastEditorName": "lastEditorName",
141
- * "kind": "personalizedMailMagazine",
142
- * "deliveryAt": "2000-01-23T04:56:07.000Z",
143
- * "lastEditedAt": "2000-01-23T04:56:07.000Z",
144
- * "id": 0,
145
- * "title": "title",
146
- * "status": "draft"
147
- * }
148
- */
149
- PersonalizedMailMagazineCampaign: components["schemas"]["CampaignBase"] & {
150
- /** @enum {string} */
151
- kind: "personalizedMailMagazine";
152
- };
153
- /** Campaign */
154
- CampaignBase: {
155
- id: number;
156
- title?: string | null;
157
- status: components["schemas"]["CampaignStatus"];
158
- /** Format: date-time */
159
- deliveryAt: string | null;
160
- lastEditorName: string;
161
- /** Format: date-time */
162
- lastEditedAt: string;
163
- };
164
- CurationMailMagazineCampaign: components["schemas"]["CampaignBase"] & {
165
- /** @enum {string} */
166
- kind: "curationMailMagazine";
167
- bodyKind: components["schemas"]["BodyKind"];
168
- };
169
- /**
170
- * PostCampaignsResponse
171
- * @example {
172
- * "id": 0
173
- * }
174
- */
175
- PostCampaignsResponse: {
176
- id: number;
177
- };
178
- /** PostCampaignsRequestBody */
179
- PostCampaignsRequestBody: components["schemas"]["CreateCampaignKindCurationMailMagazineFormData"] | components["schemas"]["CreateCampaignKindPersonalizedMailMagazineFormData"];
180
- /**
181
- * CreateCampaignKindCurationMailMagazineFormData
182
- * @example {
183
- * "kind": "curationMailMagazine",
184
- * "bodyKind": "template"
185
- * }
186
- */
187
- CreateCampaignKindCurationMailMagazineFormData: {
188
- /** @enum {string} */
189
- kind: "curationMailMagazine";
190
- bodyKind: components["schemas"]["BodyKind"];
191
- };
192
- /** CreateCampaignKindPersonalizedMailMagazineFormData */
193
- CreateCampaignKindPersonalizedMailMagazineFormData: {
194
- /** @enum {string} */
195
- kind: "personalizedMailMagazine";
196
- };
197
- /**
198
- * CampaignStatus
199
- * @enum {string}
200
- */
201
- CampaignStatus: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
202
- /**
203
- * CampaignKind
204
- * @enum {string}
205
- */
206
- CampaignKind: "curationMailMagazine" | "personalizedMailMagazine";
207
- /**
208
- * @example {
209
- * "campaignDetail": {
210
- * "personalizedMailMagazine": {
211
- * "utmCampaign": "utmCampaign",
212
- * "target": ""
213
- * },
214
- * "kind": "personalizedMailMagazine",
215
- * "deliveryScheduledAt": "2000-01-23T04:56:07.000Z",
216
- * "id": 0,
217
- * "title": "title",
218
- * "status": "draft"
219
- * }
220
- * }
221
- */
222
- CampaignsCampaignIdResponse: {
223
- campaignDetail: components["schemas"]["CampaignDetail"];
224
- };
225
- /** CampaignDetail */
226
- CampaignDetail: components["schemas"]["CampaignDetailWithPersonalizedMailMagazine"] | components["schemas"]["CampaignDetailWithCurationMailMagazine"];
227
- PatchCampaignsCampaignIdRequestBody: {
228
- formData: components["schemas"]["CampaignFormData"];
229
- };
230
- /**
231
- * HttpErrorBadRequest
232
- * @example {
233
- * "errors": [
234
- * "errors",
235
- * "errors"
236
- * ]
237
- * }
238
- */
239
- HttpErrorBadRequest: {
240
- errors: string[];
241
- };
242
- /**
243
- * GetCampaignsCampaignIdPreviewResponse
244
- * @example {
245
- * "content": "content"
246
- * }
247
- */
248
- GetCampaignsCampaignIdPreviewResponse: {
249
- content: string;
250
- };
251
- /**
252
- * PostCampaignsCampaignIdPreviewDeliveryEmailRequestBody
253
- * @example {
254
- * "emails": [
255
- * "emails",
256
- * "emails"
257
- * ]
258
- * }
259
- */
260
- PostCampaignsCampaignIdPreviewDeliveryEmailRequestBody: {
261
- emails: string[];
262
- };
263
- /**
264
- * GetCampaignsCampaignIdUtmCampaignConflictsResponse
265
- * @example {
266
- * "campaigns": [
267
- * {
268
- * "id": 0,
269
- * "title": "title"
270
- * },
271
- * {
272
- * "id": 0,
273
- * "title": "title"
274
- * }
275
- * ]
276
- * }
277
- */
278
- GetCampaignsCampaignIdUtmCampaignConflictsResponse: {
279
- campaigns: components["schemas"]["ConflictingCampaign"][];
280
- };
281
- /**
282
- * ConflictingCampaign
283
- * @example {
284
- * "id": 0,
285
- * "title": "title"
286
- * }
287
- */
288
- ConflictingCampaign: {
289
- id: number;
290
- title: string | null;
291
- };
292
- /** PostCampaignsCampaignIdImagesReqeustBody */
293
- PostCampaignsCampaignIdImagesReqeustBody: {
294
- /** Format: binary */
295
- image: File | Blob;
296
- };
297
- /**
298
- * CurationMailMagazine_Image
299
- * @example {
300
- * "id": 0,
301
- * "key": "key"
302
- * }
303
- */
304
- Image: {
305
- id: number;
306
- key: string;
307
- };
308
- /**
309
- * GetProjectsProjectIdOrKeywordResponse
310
- * @example {
311
- * "project": {
312
- * "abstract": "abstract",
313
- * "keyword": "keyword",
314
- * "title": "title",
315
- * "projectId": 0
316
- * }
317
- * }
318
- */
319
- GetProjectsProjectIdOrKeywordResponse: {
320
- project: components["schemas"]["ReadyforProject"];
321
- };
322
- /**
323
- * @example {
324
- * "behaviorSegments": [
325
- * {
326
- * "code": "code",
327
- * "displayOrder": 0,
328
- * "description": "description",
329
- * "label": "label",
330
- * "isActive": true
331
- * },
332
- * {
333
- * "code": "code",
334
- * "displayOrder": 0,
335
- * "description": "description",
336
- * "label": "label",
337
- * "isActive": true
338
- * }
339
- * ]
340
- * }
341
- */
342
- GetBehaviorSegmentsResponse: {
343
- behaviorSegments: components["schemas"]["Segment"][];
344
- };
345
- /**
346
- * @example {
347
- * "profileSegments": [
348
- * {
349
- * "code": "code",
350
- * "displayOrder": 0,
351
- * "description": "description",
352
- * "label": "label",
353
- * "isActive": true
354
- * },
355
- * {
356
- * "code": "code",
357
- * "displayOrder": 0,
358
- * "description": "description",
359
- * "label": "label",
360
- * "isActive": true
361
- * }
362
- * ]
363
- * }
364
- */
365
- GetProfileSegmentsResponse: {
366
- profileSegments: components["schemas"]["Segment"][];
367
- };
368
- /**
369
- * GetTargetUsersCountResponse
370
- * @example {
371
- * "count": 0
372
- * }
373
- */
374
- GetTargetUsersCountResponse: {
375
- /** @description 配信対象人数 */
376
- count: number;
377
- };
378
- /** TargetFilterSegments */
379
- TargetFilterSegments: {
380
- /** @description 行動セグメントコードの配列 */
381
- behaviorSegmentCodes: string[];
382
- /** @description 属性セグメントコードの配列 */
383
- profileSegmentCodes: string[];
384
- };
385
- /**
386
- * Pagination
387
- * @description ページネーション
388
- * @example {
389
- * "nextPage": 7,
390
- * "isLastPage": true,
391
- * "totalPages": 6,
392
- * "prevPage": 2,
393
- * "totalCount": 1,
394
- * "currentPage": 5,
395
- * "isFirstPage": true,
396
- * "currentPerPage": 5
397
- * }
398
- */
399
- Pagination: {
400
- /** @description 合計ページ */
401
- totalPages: number;
402
- /** @description 合計件数 */
403
- totalCount: number;
404
- /** @description 1ページあたりのレコード数 */
405
- currentPerPage: number;
406
- /** @description 現在のページ */
407
- currentPage: number;
408
- /** @description 前のページ */
409
- prevPage: number | null;
410
- /** @description 次のページ */
411
- nextPage: number | null;
412
- /** @description 最初のページかどうか */
413
- isFirstPage: boolean;
414
- /** @description 最後のページかどうか */
415
- isLastPage: boolean;
416
- };
417
- /**
418
- * CurationMailMagazine_BodyKind
419
- * @enum {string}
420
- */
421
- BodyKind: "template" | "freeFormat";
422
- /**
423
- * CampaignDetailWithPersonalizedMailMagazine
424
- * @example {
425
- * "personalizedMailMagazine": {
426
- * "utmCampaign": "utmCampaign",
427
- * "target": ""
428
- * },
429
- * "kind": "personalizedMailMagazine",
430
- * "deliveryScheduledAt": "2000-01-23T04:56:07.000Z",
431
- * "id": 0,
432
- * "title": "title",
433
- * "status": "draft"
434
- * }
435
- */
436
- CampaignDetailWithPersonalizedMailMagazine: components["schemas"]["CampaignDetailBase"] & components["schemas"]["CampaignDetailKindDataPersonalizedMailMagazine"];
437
- /** CampaignDetailWithCurationMailMagazine */
438
- CampaignDetailWithCurationMailMagazine: components["schemas"]["CampaignDetailBase"] & components["schemas"]["CampaignDetailKindDataCurationMailMagazine"];
439
- /** CampaignFormData */
440
- CampaignFormData: components["schemas"]["CampaignWithPersonalizedMailMagazineFormData"] | components["schemas"]["CampaignWithCurationMailMagazineFormData"];
441
- /**
442
- * ReadyforProject
443
- * @example {
444
- * "abstract": "abstract",
445
- * "keyword": "keyword",
446
- * "title": "title",
447
- * "projectId": 0
448
- * }
449
- */
450
- ReadyforProject: {
451
- projectId: number;
452
- keyword: string;
453
- title: string;
454
- abstract: string;
455
- };
456
- /**
457
- * Segment
458
- * @example {
459
- * "code": "code",
460
- * "displayOrder": 0,
461
- * "description": "description",
462
- * "label": "label",
463
- * "isActive": true
464
- * }
465
- */
466
- Segment: {
467
- code: string;
468
- label: string;
469
- isActive: boolean;
470
- displayOrder: number | null;
471
- description: string | null;
472
- };
473
- /** CampaignDetailBase */
474
- CampaignDetailBase: {
475
- id: number;
476
- status: components["schemas"]["CampaignStatus"];
477
- title: string | null;
478
- /** Format: date-time */
479
- deliveryScheduledAt: string | null;
480
- };
481
- /** CampaignDetailKindDataPersonalizedMailMagazine */
482
- CampaignDetailKindDataPersonalizedMailMagazine: {
483
- /** @enum {string} */
484
- kind: "personalizedMailMagazine";
485
- personalizedMailMagazine: components["schemas"]["PersonalizedMailMagazineDetail"];
486
- };
487
- /** CampaignDetailKindDataCurationMailMagazine */
488
- CampaignDetailKindDataCurationMailMagazine: {
489
- /** @enum {string} */
490
- kind: "curationMailMagazine";
491
- curationMailMagazine: components["schemas"]["CurationMailMagazineDetail"];
492
- };
493
- /** CampaignWithPersonalizedMailMagazineFormData */
494
- CampaignWithPersonalizedMailMagazineFormData: components["schemas"]["CampaignBaseFormData"] & components["schemas"]["CampaignKindDataPersonalizedMailMagazineFormData"];
495
- /** CampaignWithCurationMailMagazineFormData */
496
- CampaignWithCurationMailMagazineFormData: components["schemas"]["CampaignBaseFormData"] & components["schemas"]["CampaignKindDataCurationMailMagazineFormData"];
497
- /**
498
- * PersonalizedMailMagazineDetail
499
- * @example {
500
- * "utmCampaign": "utmCampaign",
501
- * "target": ""
502
- * }
503
- */
504
- PersonalizedMailMagazineDetail: {
505
- utmCampaign: string | null;
506
- target: components["schemas"]["PersonalizedMailMagazineDetailTarget"] | null;
507
- };
508
- /** CurationMailMagazineDetail */
509
- CurationMailMagazineDetail: components["schemas"]["CurationMailMagazineDetailBodyKindTemplate"] | components["schemas"]["CurationMailMagazineDetailBodyKindFreeFormat"];
510
- /** CampaignBaseFormData */
511
- CampaignBaseFormData: {
512
- title: string | null;
513
- /** Format: date-time */
514
- deliveryScheduledAt: string | null;
515
- };
516
- /** CampaignKindDataPersonalizedMailMagazineFormData */
517
- CampaignKindDataPersonalizedMailMagazineFormData: {
518
- /** @enum {string} */
519
- kind: "personalizedMailMagazine";
520
- personalizedMailMagazine: components["schemas"]["PersonalizedMailMagazineFormData"];
521
- };
522
- /** CampaignKindDataCurationMailMagazineFormData */
523
- CampaignKindDataCurationMailMagazineFormData: {
524
- /** @enum {string} */
525
- kind: "curationMailMagazine";
526
- curationMailMagazine: components["schemas"]["CurationMailMagazineFormData"];
527
- };
528
- /** PersonalizedMailMagazineDetailTarget */
529
- PersonalizedMailMagazineDetailTarget: {
530
- csvFileName: string;
531
- targetUsersCount: number;
532
- excludedUsersCount: number;
533
- };
534
- /** CurationMailMagazineDetailBodyKindTemplate */
535
- CurationMailMagazineDetailBodyKindTemplate: components["schemas"]["CurationMailMagazineDetailBase"] & {
536
- /** @enum {string} */
537
- bodyKind: "template";
538
- projects: components["schemas"]["CurationMailMagazineTargetProject"][];
539
- banners: components["schemas"]["CurationMailMagazineBanner"][];
540
- };
541
- /** CurationMailMagazineDetailBodyKindFreeFormat */
542
- CurationMailMagazineDetailBodyKindFreeFormat: components["schemas"]["CurationMailMagazineDetailBase"] & {
543
- /** @enum {string} */
544
- bodyKind: "freeFormat";
545
- htmlBody: string | null;
546
- htmlStyle: string | null;
547
- images: components["schemas"]["Image"][];
548
- };
549
- /** PersonalizedMailMagazineFormData */
550
- PersonalizedMailMagazineFormData: {
551
- utmCampaign: string | null;
552
- targetCsv: components["schemas"]["PersonalizedMailMagazineTargetCsvFormData"] | null;
553
- };
554
- /** CurationMailMagazineFormData */
555
- CurationMailMagazineFormData: components["schemas"]["CurationMailMagazineFormDataBodyKindFreeFormat"] | components["schemas"]["CurationMailMagazineFormDataBodyKindTemplate"];
556
- /** CurationMailMagazineDetailBase */
557
- CurationMailMagazineDetailBase: {
558
- utmCampaign: string | null;
559
- subject: string | null;
560
- preHeaderText: string | null;
561
- deliveredUsersCount: number | null;
562
- targetFilters: components["schemas"]["CurationMailMagazineTargetFilter"][];
563
- };
564
- /** CurationMailMagazineTargetProject */
565
- CurationMailMagazineTargetProject: {
566
- id: number;
567
- readyforProjectId: number;
568
- slotNumber: number;
569
- isPaidSlot: boolean;
570
- title: string | null;
571
- description: string | null;
572
- thumbnailUrl: string | null;
573
- tag: string | null;
574
- tagUrl: string | null;
575
- };
576
- /** CurationMailMagazineBanner */
577
- CurationMailMagazineBanner: {
578
- id: number;
579
- slotNumber: number;
580
- imageUrl: string | null;
581
- url: string | null;
582
- };
583
- /** PersonalizedMailMagazineTargetCsvFormData */
584
- PersonalizedMailMagazineTargetCsvFormData: components["schemas"]["PersonalizedMailMagazineTargetDeleteCsvFormData"] | components["schemas"]["PersonalizedMailMagazineTargetUploadCsvFormData"];
585
- /** CurationMailMagazineBannerFormDataBodyKindFreeFormat */
586
- CurationMailMagazineFormDataBodyKindFreeFormat: components["schemas"]["CurationMailMagazineFormDataBase"] & {
587
- /** @enum {string} */
588
- bodyKind: "freeFormat";
589
- htmlBody: string | null;
590
- htmlStyle: string | null;
591
- };
592
- /** CurationMailMagazineFormDataBodyKindTemplate */
593
- CurationMailMagazineFormDataBodyKindTemplate: components["schemas"]["CurationMailMagazineFormDataBase"] & {
594
- /** @enum {string} */
595
- bodyKind: "template";
596
- projects: components["schemas"]["CurationMailMagazineProjectFormData"][];
597
- banners: components["schemas"]["CurationMailMagazineBannerFormData"][];
598
- };
599
- /** CurationMailMagazineTargetFilter */
600
- CurationMailMagazineTargetFilter: {
601
- id: number;
602
- behaviorSegmentCodes: string[];
603
- profileSegmentCodes: string[];
604
- };
605
- /** PersonalizedMailMagazineTargetDeleteCsvFormData */
606
- PersonalizedMailMagazineTargetDeleteCsvFormData: {
607
- /** @enum {string} */
608
- kind: "deleteTargetCsv";
609
- };
610
- /** PersonalizedMailMagazineTargetUploadCsvFormData */
611
- PersonalizedMailMagazineTargetUploadCsvFormData: {
612
- /** @enum {string} */
613
- kind: "uploadCsv";
614
- fileName: string;
615
- records: components["schemas"]["PersonalizedMailMagazineTargetUploadCsvRecordFormData"][];
616
- };
617
- /** CurationMailMagazineFormData */
618
- CurationMailMagazineFormDataBase: {
619
- utmCampaign: string | null;
620
- subject: string | null;
621
- preHeaderText: string | null;
622
- targetFilters: components["schemas"]["CurationMailMagazineTargetFilterFormData"][];
623
- };
624
- /** CurationMailMagazineProjectFormData */
625
- CurationMailMagazineProjectFormData: {
626
- id: number | null;
627
- slotNumber: number;
628
- readyforProjectId: number;
629
- isPaidSlot: boolean;
630
- title: string | null;
631
- description: string | null;
632
- thumbnail: components["schemas"]["ImageFormData"] | null;
633
- tag: string | null;
634
- tagUrl: string | null;
635
- };
636
- /** CurationMailMagazineBannerFormData */
637
- CurationMailMagazineBannerFormData: {
638
- id: number | null;
639
- slotNumber: number;
640
- image: components["schemas"]["ImageFormData"] | null;
641
- url: string | null;
642
- };
643
- /**
644
- * PersonalizedMailMagazineTargetUploadCsvRecordFormData
645
- * @example {
646
- * "userId": 12345678,
647
- * "projectIds": "111111;2222222;33333333"
648
- * }
649
- */
650
- PersonalizedMailMagazineTargetUploadCsvRecordFormData: {
651
- userId: number;
652
- projectIds: string;
653
- };
654
- /** CurationMailMagazineTargetFilterFormData */
655
- CurationMailMagazineTargetFilterFormData: {
656
- id: number | null;
657
- behaviorSegmentCodes: string[];
658
- profileSegmentCodes: string[];
659
- };
660
- /** ImageFormData */
661
- ImageFormData: components["schemas"]["UploadImageFormData"] | components["schemas"]["DeleteImageFormData"];
662
- /** UploadImageFormData */
663
- UploadImageFormData: {
664
- /** @enum {string} */
665
- kind: "upload";
666
- /** Format: binary */
667
- data: File | Blob;
668
- };
669
- /** DeleteImageFormData */
670
- DeleteImageFormData: {
671
- /** @enum {string} */
672
- kind: "delete";
673
- };
674
- };
675
- responses: never;
676
- parameters: never;
677
- requestBodies: never;
678
- headers: never;
679
- pathItems: never;
680
- }
681
- type $defs = Record<string, never>;
682
- type external = Record<string, never>;
683
- interface operations {
684
- /** キャンペーン一覧を取得する */
685
- GetCampaigns: {
686
- parameters: {
687
- query?: {
688
- title?: string;
689
- status?: components["schemas"]["CampaignStatus"];
690
- kind?: components["schemas"]["CampaignKind"];
691
- deliveryAtFrom?: string;
692
- deliveryAtTo?: string;
693
- page?: number;
694
- };
695
- };
696
- responses: {
697
- /** @description OK */
698
- 200: {
699
- content: {
700
- "application/json": components["schemas"]["GetCampaignsResponse"];
701
- };
702
- };
703
- };
704
- };
705
- /** キャンペーンを作成する */
706
- PostCampaigns: {
707
- requestBody: {
708
- content: {
709
- "application/json": components["schemas"]["PostCampaignsRequestBody"];
710
- };
711
- };
712
- responses: {
713
- /** @description Created */
714
- 201: {
715
- content: {
716
- "application/json": components["schemas"]["PostCampaignsResponse"];
717
- };
718
- };
719
- };
720
- };
721
- /** キャンペーン詳細を取得する */
722
- GetCampaignsCampaignId: {
723
- parameters: {
724
- path: {
725
- id: number;
726
- };
727
- };
728
- responses: {
729
- /** @description OK */
730
- 200: {
731
- content: {
732
- "application/json": components["schemas"]["CampaignsCampaignIdResponse"];
733
- };
734
- };
735
- };
736
- };
737
- /** キャンペーンを削除する */
738
- DeleteCampaignsCampaignId: {
739
- parameters: {
740
- path: {
741
- id: number;
742
- };
743
- };
744
- responses: {
745
- /** @description No Content */
746
- 204: {
747
- content: never;
748
- };
749
- };
750
- };
751
- /** キャンペーンを更新する */
752
- PatchCampaignsCampaignId: {
753
- parameters: {
754
- path: {
755
- id: number;
756
- };
757
- };
758
- requestBody: {
759
- content: {
760
- "multipart/form-data": components["schemas"]["PatchCampaignsCampaignIdRequestBody"];
761
- };
762
- };
763
- responses: {
764
- /** @description OK */
765
- 200: {
766
- content: {
767
- "application/json": components["schemas"]["CampaignsCampaignIdResponse"];
768
- };
769
- };
770
- /** @description Bad Request */
771
- 400: {
772
- content: {
773
- "application/json": components["schemas"]["HttpErrorBadRequest"];
774
- };
775
- };
776
- };
777
- };
778
- /** キャンペーンの配信予約をする */
779
- PostCampaignsCampaignIdDeliveryJob: {
780
- parameters: {
781
- path: {
782
- id: number;
783
- };
784
- };
785
- responses: {
786
- /** @description Created */
787
- 201: {
788
- content: never;
789
- };
790
- /** @description Bad Request */
791
- 400: {
792
- content: {
793
- "application/json": components["schemas"]["HttpErrorBadRequest"];
794
- };
795
- };
796
- };
797
- };
798
- /** キャンペーンの配信予約を取り消す */
799
- DeleteCampaignsCampaignIdDeliveryJob: {
800
- parameters: {
801
- path: {
802
- id: number;
803
- };
804
- };
805
- responses: {
806
- /** @description No Content */
807
- 204: {
808
- content: never;
809
- };
810
- /** @description Bad Request */
811
- 400: {
812
- content: {
813
- "application/json": components["schemas"]["HttpErrorBadRequest"];
814
- };
815
- };
816
- };
817
- };
818
- /** メルマガのプレビューを取得する */
819
- GetCampaignsCampaignIdPreview: {
820
- parameters: {
821
- path: {
822
- id: number;
823
- };
824
- };
825
- responses: {
826
- /** @description OK */
827
- 200: {
828
- content: {
829
- "application/json": components["schemas"]["GetCampaignsCampaignIdPreviewResponse"];
830
- };
831
- };
832
- };
833
- };
834
- /** メルマガのテスト配信 */
835
- PostCampaignsCampaignIdPreviewDeliveryEmail: {
836
- parameters: {
837
- path: {
838
- id: number;
839
- };
840
- };
841
- requestBody: {
842
- content: {
843
- "application/json": components["schemas"]["PostCampaignsCampaignIdPreviewDeliveryEmailRequestBody"];
844
- };
845
- };
846
- responses: {
847
- /** @description Created */
848
- 201: {
849
- content: never;
850
- };
851
- /** @description Bad Request */
852
- 400: {
853
- content: {
854
- "application/json": components["schemas"]["HttpErrorBadRequest"];
855
- };
856
- };
857
- };
858
- };
859
- /** utm_campaign の重複キャンペーンを取得する */
860
- GetCampaignsCampaignIdUtmCampaignConflicts: {
861
- parameters: {
862
- query: {
863
- /** @description チェックしたい utm_campaign の値 */
864
- value: string;
865
- };
866
- path: {
867
- id: number;
868
- };
869
- };
870
- responses: {
871
- /** @description OK */
872
- 200: {
873
- content: {
874
- "application/json": components["schemas"]["GetCampaignsCampaignIdUtmCampaignConflictsResponse"];
875
- };
876
- };
877
- };
878
- };
879
- /** プロジェクト情報を取得する */
880
- GetProjectsProjectIdOrKeyword: {
881
- parameters: {
882
- path: {
883
- project_id_or_keyword: string;
884
- };
885
- };
886
- responses: {
887
- /** @description OK */
888
- 200: {
889
- content: {
890
- "application/json": components["schemas"]["GetProjectsProjectIdOrKeywordResponse"];
891
- };
892
- };
893
- };
894
- };
895
- /** 配信先の行動セグメントの一覧を返す */
896
- GetBehaviorSegments: {
897
- responses: {
898
- /** @description OK */
899
- 200: {
900
- content: {
901
- "application/json": components["schemas"]["GetBehaviorSegmentsResponse"];
902
- };
903
- };
904
- };
905
- };
906
- /** 配信先の属性セグメントの一覧を返す */
907
- GetProfileSegments: {
908
- responses: {
909
- /** @description OK */
910
- 200: {
911
- content: {
912
- "application/json": components["schemas"]["GetProfileSegmentsResponse"];
913
- };
914
- };
915
- };
916
- };
917
- /** 配信先設定時の配信対象人数を取得する */
918
- GetTargetUsersCount: {
919
- parameters: {
920
- query?: {
921
- /** @description 配信対象セグメントの配列 */
922
- targetFilters?: components["schemas"]["TargetFilterSegments"][];
923
- };
924
- };
925
- responses: {
926
- /** @description OK */
927
- 200: {
928
- content: {
929
- "application/json": components["schemas"]["GetTargetUsersCountResponse"];
930
- };
931
- };
932
- };
933
- };
934
- }
935
- export { paths as a, operations as i, components as n, webhooks as o, external as r, $defs as t };