@readyfor/api-client-pigeon 1.22.0-pr1284.dc25e7e → 1.22.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 (118) hide show
  1. package/dist/chunk-24W5FWW7.mjs +27 -0
  2. package/dist/chunk-45QYVVV2.mjs +44 -0
  3. package/dist/chunk-5XEJOYX6.mjs +0 -0
  4. package/dist/chunk-6337UNDD.mjs +27 -0
  5. package/dist/chunk-CXALAOMT.mjs +48 -0
  6. package/dist/chunk-GVEIZAMY.mjs +359 -0
  7. package/dist/chunk-JVMIOVIM.mjs +29 -0
  8. package/dist/chunk-LMM3AGZ6.mjs +36 -0
  9. package/dist/chunk-MCYE5BYS.mjs +25 -0
  10. package/dist/chunk-MKV3OPBP.mjs +42 -0
  11. package/dist/chunk-MYQ5EIA6.mjs +50 -0
  12. package/dist/chunk-NA23PDIV.mjs +28 -0
  13. package/dist/chunk-P4EIALGR.mjs +24 -0
  14. package/dist/chunk-RWX2GYF3.mjs +39 -0
  15. package/dist/chunk-SBWG7GGI.mjs +52 -0
  16. package/dist/chunk-THNPXV56.mjs +24 -0
  17. package/dist/chunk-TPXQJS55.mjs +44 -0
  18. package/dist/chunk-UHDD26HF.mjs +44 -0
  19. package/dist/chunk-VUG5S4M4.mjs +42 -0
  20. package/dist/chunk-XNOKTUME.mjs +30 -0
  21. package/dist/components.d.mts +1107 -0
  22. package/dist/components.d.ts +1107 -2
  23. package/dist/components.js +444 -284
  24. package/dist/components.mjs +130 -221
  25. package/dist/fetch/campaigns.d.mts +88 -0
  26. package/dist/fetch/campaigns.d.ts +88 -2
  27. package/dist/fetch/campaigns.js +350 -22
  28. package/dist/fetch/campaigns.mjs +12 -18
  29. package/dist/{campaignsCampaignIdImagesId-BzoZ_38r.d.ts → fetch/campaignsCampaignIdImagesId.d.mts} +8 -6
  30. package/dist/fetch/campaignsCampaignIdImagesId.d.ts +12 -2
  31. package/dist/fetch/campaignsCampaignIdImagesId.js +44 -11
  32. package/dist/fetch/campaignsCampaignIdImagesId.mjs +7 -8
  33. package/dist/fetch/campaignsId.d.mts +321 -0
  34. package/dist/fetch/campaignsId.d.ts +321 -2
  35. package/dist/fetch/campaignsId.js +360 -27
  36. package/dist/fetch/campaignsId.mjs +16 -22
  37. package/dist/{campaignsIdDeliveryJob--2Nogu0k.d.ts → fetch/campaignsIdDeliveryJob.d.mts} +12 -7
  38. package/dist/fetch/campaignsIdDeliveryJob.d.ts +19 -2
  39. package/dist/fetch/campaignsIdDeliveryJob.js +56 -17
  40. package/dist/fetch/campaignsIdDeliveryJob.mjs +11 -13
  41. package/dist/{campaignsIdImages-DMSAp5-N.d.ts → fetch/campaignsIdImages.d.mts} +17 -11
  42. package/dist/fetch/campaignsIdImages.d.ts +24 -2
  43. package/dist/fetch/campaignsIdImages.js +341 -15
  44. package/dist/fetch/campaignsIdImages.mjs +8 -12
  45. package/dist/{campaignsIdPreview-C10ENt3B.d.ts → fetch/campaignsIdPreview.d.mts} +10 -8
  46. package/dist/fetch/campaignsIdPreview.d.ts +17 -2
  47. package/dist/fetch/campaignsIdPreview.js +338 -12
  48. package/dist/fetch/campaignsIdPreview.mjs +8 -9
  49. package/dist/{campaignsIdPreviewDeliveryEmail-BxkiUV8X.d.ts → fetch/campaignsIdPreviewDeliveryEmail.d.mts} +13 -7
  50. package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.ts +17 -2
  51. package/dist/fetch/campaignsIdPreviewDeliveryEmail.js +48 -15
  52. package/dist/fetch/campaignsIdPreviewDeliveryEmail.mjs +7 -12
  53. package/dist/fetch/projectsProjectIdOrKeyword.d.mts +27 -0
  54. package/dist/fetch/projectsProjectIdOrKeyword.d.ts +27 -2
  55. package/dist/fetch/projectsProjectIdOrKeyword.js +338 -12
  56. package/dist/fetch/projectsProjectIdOrKeyword.mjs +8 -9
  57. package/dist/fetch/segmentsBehaviorSegments.d.mts +24 -0
  58. package/dist/fetch/segmentsBehaviorSegments.d.ts +24 -2
  59. package/dist/fetch/segmentsBehaviorSegments.js +335 -12
  60. package/dist/fetch/segmentsBehaviorSegments.mjs +8 -9
  61. package/dist/fetch/segmentsProfileSegments.d.mts +24 -0
  62. package/dist/fetch/segmentsProfileSegments.d.ts +24 -2
  63. package/dist/fetch/segmentsProfileSegments.js +335 -12
  64. package/dist/fetch/segmentsProfileSegments.mjs +8 -9
  65. package/dist/{segmentsTargetUsersCount-CjScWKqF.d.ts → fetch/segmentsTargetUsersCount.d.mts} +10 -8
  66. package/dist/fetch/segmentsTargetUsersCount.d.ts +17 -2
  67. package/dist/fetch/segmentsTargetUsersCount.js +339 -12
  68. package/dist/fetch/segmentsTargetUsersCount.mjs +8 -9
  69. package/dist/hooks/index.d.mts +20 -0
  70. package/dist/hooks/index.d.ts +20 -8
  71. package/dist/hooks/index.js +670 -29
  72. package/dist/hooks/index.mjs +71 -8
  73. package/dist/hooks/useCampaigns.d.mts +44 -0
  74. package/dist/hooks/useCampaigns.d.ts +37 -37
  75. package/dist/hooks/useCampaigns.js +404 -33
  76. package/dist/hooks/useCampaigns.mjs +22 -27
  77. package/dist/hooks/useCampaignsId.d.mts +39 -0
  78. package/dist/hooks/useCampaignsId.d.ts +33 -33
  79. package/dist/hooks/useCampaignsId.js +404 -33
  80. package/dist/hooks/useCampaignsId.mjs +22 -27
  81. package/dist/hooks/useCampaignsIdPreview.d.mts +39 -0
  82. package/dist/hooks/useCampaignsIdPreview.d.ts +33 -32
  83. package/dist/hooks/useCampaignsIdPreview.js +404 -33
  84. package/dist/hooks/useCampaignsIdPreview.mjs +22 -27
  85. package/dist/hooks/useProjectsProjectIdOrKeyword.d.mts +39 -0
  86. package/dist/hooks/useProjectsProjectIdOrKeyword.d.ts +33 -33
  87. package/dist/hooks/useProjectsProjectIdOrKeyword.js +410 -33
  88. package/dist/hooks/useProjectsProjectIdOrKeyword.mjs +22 -27
  89. package/dist/hooks/useSegmentsBehaviorSegments.d.mts +38 -0
  90. package/dist/hooks/useSegmentsBehaviorSegments.d.ts +32 -33
  91. package/dist/hooks/useSegmentsBehaviorSegments.js +402 -33
  92. package/dist/hooks/useSegmentsBehaviorSegments.mjs +22 -27
  93. package/dist/hooks/useSegmentsProfileSegments.d.mts +38 -0
  94. package/dist/hooks/useSegmentsProfileSegments.d.ts +32 -33
  95. package/dist/hooks/useSegmentsProfileSegments.js +402 -33
  96. package/dist/hooks/useSegmentsProfileSegments.mjs +22 -27
  97. package/dist/hooks/useSegmentsTargetUsersCount.d.mts +39 -0
  98. package/dist/hooks/useSegmentsTargetUsersCount.d.ts +33 -32
  99. package/dist/hooks/useSegmentsTargetUsersCount.js +412 -33
  100. package/dist/hooks/useSegmentsTargetUsersCount.mjs +22 -27
  101. package/dist/index.d.mts +15 -0
  102. package/dist/index.d.ts +15 -14
  103. package/dist/index.js +703 -106
  104. package/dist/index.mjs +213 -13
  105. package/dist/schemaType.d.mts +887 -0
  106. package/dist/schemaType.d.ts +887 -2
  107. package/dist/schemaType.js +18 -0
  108. package/dist/schemaType.mjs +0 -1
  109. package/package.json +19 -4
  110. package/dist/campaigns-DZNsI5kN.d.ts +0 -82
  111. package/dist/campaignsId-qIqhKTZn.d.ts +0 -309
  112. package/dist/chunk-8l464Juk.js +0 -28
  113. package/dist/components-CkziYCTx.d.ts +0 -1108
  114. package/dist/index-DRYular4.d.ts +0 -1
  115. package/dist/projectsProjectIdOrKeyword-Cayu4ZMd.d.ts +0 -25
  116. package/dist/schemaType-DcWvaCEH.d.ts +0 -782
  117. package/dist/segmentsBehaviorSegments-B6cq3XGV.d.ts +0 -25
  118. package/dist/segmentsProfileSegments-CMzmpqMd.d.ts +0 -25
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/schemaType.ts
17
+ var schemaType_exports = {};
18
+ module.exports = __toCommonJS(schemaType_exports);
@@ -1 +0,0 @@
1
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readyfor/api-client-pigeon",
3
- "version": "1.22.0-pr1284.dc25e7e",
3
+ "version": "1.22.0",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -36,7 +36,7 @@
36
36
  "swr": "2.4.1",
37
37
  "use-sync-external-store": "1.6.0",
38
38
  "zod": "^4.3.6",
39
- "@readyfor/api-client-base": "1.22.0-pr1284.dc25e7e"
39
+ "@readyfor/api-client-base": "1.22.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "qs": "^6",
@@ -44,7 +44,7 @@
44
44
  "swr": "^2.3.3",
45
45
  "use-sync-external-store": "^1.2.2",
46
46
  "zod": "^4",
47
- "@readyfor/api-client-base": "1.22.0-pr1284.dc25e7e"
47
+ "@readyfor/api-client-base": "1.22.0"
48
48
  },
49
49
  "peerDependenciesMeta": {
50
50
  "react": {
@@ -57,7 +57,22 @@
57
57
  "optional": true
58
58
  }
59
59
  },
60
+ "tsup": {
61
+ "clean": true,
62
+ "target": "esnext",
63
+ "dts": true,
64
+ "format": [
65
+ "cjs",
66
+ "esm"
67
+ ],
68
+ "entry": [
69
+ "src/**/*.ts",
70
+ "src/**/*.tsx",
71
+ "!src/**/*.test.ts",
72
+ "!src/**/*.test.tsx"
73
+ ]
74
+ },
60
75
  "scripts": {
61
- "build": "tsdown"
76
+ "build": "tsup"
62
77
  }
63
78
  }
@@ -1,82 +0,0 @@
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 };
@@ -1,309 +0,0 @@
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,28 +0,0 @@
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
- });