@readyfor/api-client-pigeon 1.22.0 → 1.22.1-pr1285.b385439

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/campaigns-DZNsI5kN.d.ts +82 -0
  2. package/dist/{fetch/campaignsCampaignIdImagesId.d.mts → campaignsCampaignIdImagesId-BzoZ_38r.d.ts} +6 -8
  3. package/dist/campaignsId-qIqhKTZn.d.ts +309 -0
  4. package/dist/{fetch/campaignsIdDeliveryJob.d.mts → campaignsIdDeliveryJob--2Nogu0k.d.ts} +7 -12
  5. package/dist/{fetch/campaignsIdImages.d.mts → campaignsIdImages-DMSAp5-N.d.ts} +11 -17
  6. package/dist/{fetch/campaignsIdPreview.d.mts → campaignsIdPreview-C10ENt3B.d.ts} +8 -10
  7. package/dist/{fetch/campaignsIdPreviewDeliveryEmail.d.mts → campaignsIdPreviewDeliveryEmail-BxkiUV8X.d.ts} +7 -13
  8. package/dist/chunk-8l464Juk.js +28 -0
  9. package/dist/components-CkziYCTx.d.ts +1108 -0
  10. package/dist/components.d.ts +2 -1107
  11. package/dist/components.js +284 -444
  12. package/dist/components.mjs +221 -130
  13. package/dist/fetch/campaigns.d.ts +2 -88
  14. package/dist/fetch/campaigns.js +22 -350
  15. package/dist/fetch/campaigns.mjs +18 -12
  16. package/dist/fetch/campaignsCampaignIdImagesId.d.ts +2 -12
  17. package/dist/fetch/campaignsCampaignIdImagesId.js +11 -44
  18. package/dist/fetch/campaignsCampaignIdImagesId.mjs +8 -7
  19. package/dist/fetch/campaignsId.d.ts +2 -321
  20. package/dist/fetch/campaignsId.js +27 -360
  21. package/dist/fetch/campaignsId.mjs +22 -16
  22. package/dist/fetch/campaignsIdDeliveryJob.d.ts +2 -19
  23. package/dist/fetch/campaignsIdDeliveryJob.js +17 -56
  24. package/dist/fetch/campaignsIdDeliveryJob.mjs +13 -11
  25. package/dist/fetch/campaignsIdImages.d.ts +2 -24
  26. package/dist/fetch/campaignsIdImages.js +15 -341
  27. package/dist/fetch/campaignsIdImages.mjs +12 -8
  28. package/dist/fetch/campaignsIdPreview.d.ts +2 -17
  29. package/dist/fetch/campaignsIdPreview.js +12 -338
  30. package/dist/fetch/campaignsIdPreview.mjs +9 -8
  31. package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.ts +2 -17
  32. package/dist/fetch/campaignsIdPreviewDeliveryEmail.js +15 -48
  33. package/dist/fetch/campaignsIdPreviewDeliveryEmail.mjs +12 -7
  34. package/dist/fetch/projectsProjectIdOrKeyword.d.ts +2 -27
  35. package/dist/fetch/projectsProjectIdOrKeyword.js +12 -338
  36. package/dist/fetch/projectsProjectIdOrKeyword.mjs +9 -8
  37. package/dist/fetch/segmentsBehaviorSegments.d.ts +2 -24
  38. package/dist/fetch/segmentsBehaviorSegments.js +12 -335
  39. package/dist/fetch/segmentsBehaviorSegments.mjs +9 -8
  40. package/dist/fetch/segmentsProfileSegments.d.ts +2 -24
  41. package/dist/fetch/segmentsProfileSegments.js +12 -335
  42. package/dist/fetch/segmentsProfileSegments.mjs +9 -8
  43. package/dist/fetch/segmentsTargetUsersCount.d.ts +2 -17
  44. package/dist/fetch/segmentsTargetUsersCount.js +12 -339
  45. package/dist/fetch/segmentsTargetUsersCount.mjs +9 -8
  46. package/dist/hooks/index.d.ts +8 -20
  47. package/dist/hooks/index.js +29 -670
  48. package/dist/hooks/index.mjs +8 -71
  49. package/dist/hooks/useCampaigns.d.ts +37 -37
  50. package/dist/hooks/useCampaigns.js +33 -404
  51. package/dist/hooks/useCampaigns.mjs +27 -22
  52. package/dist/hooks/useCampaignsId.d.ts +33 -33
  53. package/dist/hooks/useCampaignsId.js +33 -404
  54. package/dist/hooks/useCampaignsId.mjs +27 -22
  55. package/dist/hooks/useCampaignsIdPreview.d.ts +32 -33
  56. package/dist/hooks/useCampaignsIdPreview.js +33 -404
  57. package/dist/hooks/useCampaignsIdPreview.mjs +27 -22
  58. package/dist/hooks/useProjectsProjectIdOrKeyword.d.ts +33 -33
  59. package/dist/hooks/useProjectsProjectIdOrKeyword.js +33 -410
  60. package/dist/hooks/useProjectsProjectIdOrKeyword.mjs +27 -22
  61. package/dist/hooks/useSegmentsBehaviorSegments.d.ts +33 -32
  62. package/dist/hooks/useSegmentsBehaviorSegments.js +33 -402
  63. package/dist/hooks/useSegmentsBehaviorSegments.mjs +27 -22
  64. package/dist/hooks/useSegmentsProfileSegments.d.ts +33 -32
  65. package/dist/hooks/useSegmentsProfileSegments.js +33 -402
  66. package/dist/hooks/useSegmentsProfileSegments.mjs +27 -22
  67. package/dist/hooks/useSegmentsTargetUsersCount.d.ts +32 -33
  68. package/dist/hooks/useSegmentsTargetUsersCount.js +33 -412
  69. package/dist/hooks/useSegmentsTargetUsersCount.mjs +27 -22
  70. package/dist/index-DRYular4.d.ts +1 -0
  71. package/dist/index.d.ts +14 -15
  72. package/dist/index.js +106 -703
  73. package/dist/index.mjs +13 -213
  74. package/dist/projectsProjectIdOrKeyword-Cayu4ZMd.d.ts +25 -0
  75. package/dist/schemaType-DcWvaCEH.d.ts +782 -0
  76. package/dist/schemaType.d.ts +2 -887
  77. package/dist/schemaType.js +0 -18
  78. package/dist/schemaType.mjs +1 -0
  79. package/dist/segmentsBehaviorSegments-B6cq3XGV.d.ts +25 -0
  80. package/dist/segmentsProfileSegments-CMzmpqMd.d.ts +25 -0
  81. package/dist/{fetch/segmentsTargetUsersCount.d.mts → segmentsTargetUsersCount-CjScWKqF.d.ts} +8 -10
  82. package/package.json +4 -19
  83. package/dist/chunk-24W5FWW7.mjs +0 -27
  84. package/dist/chunk-45QYVVV2.mjs +0 -44
  85. package/dist/chunk-5XEJOYX6.mjs +0 -0
  86. package/dist/chunk-6337UNDD.mjs +0 -27
  87. package/dist/chunk-CXALAOMT.mjs +0 -48
  88. package/dist/chunk-GVEIZAMY.mjs +0 -359
  89. package/dist/chunk-JVMIOVIM.mjs +0 -29
  90. package/dist/chunk-LMM3AGZ6.mjs +0 -36
  91. package/dist/chunk-MCYE5BYS.mjs +0 -25
  92. package/dist/chunk-MKV3OPBP.mjs +0 -42
  93. package/dist/chunk-MYQ5EIA6.mjs +0 -50
  94. package/dist/chunk-NA23PDIV.mjs +0 -28
  95. package/dist/chunk-P4EIALGR.mjs +0 -24
  96. package/dist/chunk-RWX2GYF3.mjs +0 -39
  97. package/dist/chunk-SBWG7GGI.mjs +0 -52
  98. package/dist/chunk-THNPXV56.mjs +0 -24
  99. package/dist/chunk-TPXQJS55.mjs +0 -44
  100. package/dist/chunk-UHDD26HF.mjs +0 -44
  101. package/dist/chunk-VUG5S4M4.mjs +0 -42
  102. package/dist/chunk-XNOKTUME.mjs +0 -30
  103. package/dist/components.d.mts +0 -1107
  104. package/dist/fetch/campaigns.d.mts +0 -88
  105. package/dist/fetch/campaignsId.d.mts +0 -321
  106. package/dist/fetch/projectsProjectIdOrKeyword.d.mts +0 -27
  107. package/dist/fetch/segmentsBehaviorSegments.d.mts +0 -24
  108. package/dist/fetch/segmentsProfileSegments.d.mts +0 -24
  109. package/dist/hooks/index.d.mts +0 -20
  110. package/dist/hooks/useCampaigns.d.mts +0 -44
  111. package/dist/hooks/useCampaignsId.d.mts +0 -39
  112. package/dist/hooks/useCampaignsIdPreview.d.mts +0 -39
  113. package/dist/hooks/useProjectsProjectIdOrKeyword.d.mts +0 -39
  114. package/dist/hooks/useSegmentsBehaviorSegments.d.mts +0 -38
  115. package/dist/hooks/useSegmentsProfileSegments.d.mts +0 -38
  116. package/dist/hooks/useSegmentsTargetUsersCount.d.mts +0 -39
  117. package/dist/index.d.mts +0 -15
  118. package/dist/schemaType.d.mts +0 -887
@@ -1,88 +0,0 @@
1
- import { paths } from '../schemaType.mjs';
2
- import { ForceDig } from '@readyfor/api-client-base';
3
-
4
- type CampaignsGetOperation = paths["/api/campaigns"]["get"];
5
- type CampaignsGetResponse = CampaignsGetOperation["responses"]["200"]["content"]["application/json"];
6
- declare const buildCampaignsGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
7
- campaigns: (({
8
- id: number;
9
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
10
- deliveryAt: string | null;
11
- lastEditorName: string;
12
- lastEditedAt: string;
13
- title?: string | null | undefined;
14
- } & {
15
- kind: "curationMailMagazine";
16
- bodyKind: "template" | "freeFormat";
17
- }) | ({
18
- id: number;
19
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
20
- deliveryAt: string | null;
21
- lastEditorName: string;
22
- lastEditedAt: string;
23
- title?: string | null | undefined;
24
- } & {
25
- kind: "personalizedMailMagazine";
26
- }))[];
27
- pagination: {
28
- totalPages: number;
29
- totalCount: number;
30
- currentPerPage: number;
31
- currentPage: number;
32
- prevPage: number | null;
33
- nextPage: number | null;
34
- isFirstPage: boolean;
35
- isLastPage: boolean;
36
- };
37
- }>;
38
- type CampaignsGetQuery = ForceDig<CampaignsGetOperation, [
39
- "parameters",
40
- "query"
41
- ]>;
42
- declare const getCampaigns: (query: CampaignsGetQuery, customRequestInit?: RequestInit) => Promise<{
43
- campaigns: (({
44
- id: number;
45
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
46
- deliveryAt: string | null;
47
- lastEditorName: string;
48
- lastEditedAt: string;
49
- title?: string | null | undefined;
50
- } & {
51
- kind: "curationMailMagazine";
52
- bodyKind: "template" | "freeFormat";
53
- }) | ({
54
- id: number;
55
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
56
- deliveryAt: string | null;
57
- lastEditorName: string;
58
- lastEditedAt: string;
59
- title?: string | null | undefined;
60
- } & {
61
- kind: "personalizedMailMagazine";
62
- }))[];
63
- pagination: {
64
- totalPages: number;
65
- totalCount: number;
66
- currentPerPage: number;
67
- currentPage: number;
68
- prevPage: number | null;
69
- nextPage: number | null;
70
- isFirstPage: boolean;
71
- isLastPage: boolean;
72
- };
73
- }>;
74
- type CampaignsPostOperation = paths["/api/campaigns"]["post"];
75
- type CampaignsPostResponse = CampaignsPostOperation["responses"]["201"]["content"]["application/json"];
76
- declare const buildCampaignsPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
77
- id: number;
78
- }>;
79
- type CampaignsPostRequestBody = ForceDig<CampaignsPostOperation, [
80
- "requestBody",
81
- "content",
82
- "application/json"
83
- ]>;
84
- declare const postCampaigns: (requestBody: CampaignsPostRequestBody, customRequestInit?: RequestInit) => Promise<{
85
- id: number;
86
- }>;
87
-
88
- export { type CampaignsGetQuery, type CampaignsGetResponse, type CampaignsPostRequestBody, type CampaignsPostResponse, buildCampaignsGetFetcher, buildCampaignsPostFetcher, getCampaigns, postCampaigns };
@@ -1,321 +0,0 @@
1
- import { paths } from '../schemaType.mjs';
2
- import { ForceDig } from '@readyfor/api-client-base';
3
-
4
- type CampaignsIdGetOperation = paths["/api/campaigns/{id}"]["get"];
5
- type CampaignsIdGetResponse = CampaignsIdGetOperation["responses"]["200"]["content"]["application/json"];
6
- declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
7
- campaignDetail: ({
8
- id: number;
9
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
10
- title: string | null;
11
- deliveryScheduledAt: string | null;
12
- } & {
13
- kind: "curationMailMagazine";
14
- curationMailMagazine: ({
15
- utmCampaign: string | null;
16
- subject: string | null;
17
- preHeaderText: string | null;
18
- deliveredUsersCount: number | null;
19
- targetFilters: {
20
- id: number;
21
- behaviorSegmentCodes: string[];
22
- profileSegmentCodes: string[];
23
- }[];
24
- } & {
25
- bodyKind: "freeFormat";
26
- htmlBody: string | null;
27
- htmlStyle: string | null;
28
- images: {
29
- id: number;
30
- key: string;
31
- }[];
32
- }) | ({
33
- utmCampaign: string | null;
34
- subject: string | null;
35
- preHeaderText: string | null;
36
- deliveredUsersCount: number | null;
37
- targetFilters: {
38
- id: number;
39
- behaviorSegmentCodes: string[];
40
- profileSegmentCodes: string[];
41
- }[];
42
- } & {
43
- bodyKind: "template";
44
- projects: {
45
- id: number;
46
- readyforProjectId: number;
47
- slotNumber: number;
48
- isPaidSlot: boolean;
49
- title: string | null;
50
- description: string | null;
51
- thumbnailUrl: string | null;
52
- tag: string | null;
53
- tagUrl: string | null;
54
- }[];
55
- banners: {
56
- id: number;
57
- slotNumber: number;
58
- imageUrl: string | null;
59
- url: string | null;
60
- }[];
61
- });
62
- }) | ({
63
- id: number;
64
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
65
- title: string | null;
66
- deliveryScheduledAt: string | null;
67
- } & {
68
- kind: "personalizedMailMagazine";
69
- personalizedMailMagazine: {
70
- utmCampaign: string | null;
71
- target: {
72
- csvFileName: string;
73
- targetUsersCount: number;
74
- excludedUsersCount: number;
75
- } | null;
76
- };
77
- });
78
- }>;
79
- type CampaignsIdGetPath = ForceDig<CampaignsIdGetOperation, [
80
- "parameters",
81
- "path"
82
- ]>;
83
- declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: RequestInit) => Promise<{
84
- campaignDetail: ({
85
- id: number;
86
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
87
- title: string | null;
88
- deliveryScheduledAt: string | null;
89
- } & {
90
- kind: "curationMailMagazine";
91
- curationMailMagazine: ({
92
- utmCampaign: string | null;
93
- subject: string | null;
94
- preHeaderText: string | null;
95
- deliveredUsersCount: number | null;
96
- targetFilters: {
97
- id: number;
98
- behaviorSegmentCodes: string[];
99
- profileSegmentCodes: string[];
100
- }[];
101
- } & {
102
- bodyKind: "freeFormat";
103
- htmlBody: string | null;
104
- htmlStyle: string | null;
105
- images: {
106
- id: number;
107
- key: string;
108
- }[];
109
- }) | ({
110
- utmCampaign: string | null;
111
- subject: string | null;
112
- preHeaderText: string | null;
113
- deliveredUsersCount: number | null;
114
- targetFilters: {
115
- id: number;
116
- behaviorSegmentCodes: string[];
117
- profileSegmentCodes: string[];
118
- }[];
119
- } & {
120
- bodyKind: "template";
121
- projects: {
122
- id: number;
123
- readyforProjectId: number;
124
- slotNumber: number;
125
- isPaidSlot: boolean;
126
- title: string | null;
127
- description: string | null;
128
- thumbnailUrl: string | null;
129
- tag: string | null;
130
- tagUrl: string | null;
131
- }[];
132
- banners: {
133
- id: number;
134
- slotNumber: number;
135
- imageUrl: string | null;
136
- url: string | null;
137
- }[];
138
- });
139
- }) | ({
140
- id: number;
141
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
142
- title: string | null;
143
- deliveryScheduledAt: string | null;
144
- } & {
145
- kind: "personalizedMailMagazine";
146
- personalizedMailMagazine: {
147
- utmCampaign: string | null;
148
- target: {
149
- csvFileName: string;
150
- targetUsersCount: number;
151
- excludedUsersCount: number;
152
- } | null;
153
- };
154
- });
155
- }>;
156
- type CampaignsIdDeleteOperation = paths["/api/campaigns/{id}"]["delete"];
157
- declare const buildCampaignsIdDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
158
- type CampaignsIdDeletePath = ForceDig<CampaignsIdDeleteOperation, [
159
- "parameters",
160
- "path"
161
- ]>;
162
- declare const deleteCampaignsId: (path: CampaignsIdDeletePath, customRequestInit?: RequestInit) => Promise<void>;
163
- type CampaignsIdPatchOperation = paths["/api/campaigns/{id}"]["patch"];
164
- type CampaignsIdPatchResponse = CampaignsIdPatchOperation["responses"]["200"]["content"]["application/json"];
165
- declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
166
- campaignDetail: ({
167
- id: number;
168
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
169
- title: string | null;
170
- deliveryScheduledAt: string | null;
171
- } & {
172
- kind: "curationMailMagazine";
173
- curationMailMagazine: ({
174
- utmCampaign: string | null;
175
- subject: string | null;
176
- preHeaderText: string | null;
177
- deliveredUsersCount: number | null;
178
- targetFilters: {
179
- id: number;
180
- behaviorSegmentCodes: string[];
181
- profileSegmentCodes: string[];
182
- }[];
183
- } & {
184
- bodyKind: "freeFormat";
185
- htmlBody: string | null;
186
- htmlStyle: string | null;
187
- images: {
188
- id: number;
189
- key: string;
190
- }[];
191
- }) | ({
192
- utmCampaign: string | null;
193
- subject: string | null;
194
- preHeaderText: string | null;
195
- deliveredUsersCount: number | null;
196
- targetFilters: {
197
- id: number;
198
- behaviorSegmentCodes: string[];
199
- profileSegmentCodes: string[];
200
- }[];
201
- } & {
202
- bodyKind: "template";
203
- projects: {
204
- id: number;
205
- readyforProjectId: number;
206
- slotNumber: number;
207
- isPaidSlot: boolean;
208
- title: string | null;
209
- description: string | null;
210
- thumbnailUrl: string | null;
211
- tag: string | null;
212
- tagUrl: string | null;
213
- }[];
214
- banners: {
215
- id: number;
216
- slotNumber: number;
217
- imageUrl: string | null;
218
- url: string | null;
219
- }[];
220
- });
221
- }) | ({
222
- id: number;
223
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
224
- title: string | null;
225
- deliveryScheduledAt: string | null;
226
- } & {
227
- kind: "personalizedMailMagazine";
228
- personalizedMailMagazine: {
229
- utmCampaign: string | null;
230
- target: {
231
- csvFileName: string;
232
- targetUsersCount: number;
233
- excludedUsersCount: number;
234
- } | null;
235
- };
236
- });
237
- }>;
238
- type CampaignsIdPatchPath = ForceDig<CampaignsIdPatchOperation, [
239
- "parameters",
240
- "path"
241
- ]>;
242
- type CampaignsIdPatchRequestBody = ForceDig<CampaignsIdPatchOperation, [
243
- "requestBody",
244
- "content",
245
- "multipart/form-data"
246
- ]>;
247
- declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormData, customRequestInit?: RequestInit) => Promise<{
248
- campaignDetail: ({
249
- id: number;
250
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
251
- title: string | null;
252
- deliveryScheduledAt: string | null;
253
- } & {
254
- kind: "curationMailMagazine";
255
- curationMailMagazine: ({
256
- utmCampaign: string | null;
257
- subject: string | null;
258
- preHeaderText: string | null;
259
- deliveredUsersCount: number | null;
260
- targetFilters: {
261
- id: number;
262
- behaviorSegmentCodes: string[];
263
- profileSegmentCodes: string[];
264
- }[];
265
- } & {
266
- bodyKind: "freeFormat";
267
- htmlBody: string | null;
268
- htmlStyle: string | null;
269
- images: {
270
- id: number;
271
- key: string;
272
- }[];
273
- }) | ({
274
- utmCampaign: string | null;
275
- subject: string | null;
276
- preHeaderText: string | null;
277
- deliveredUsersCount: number | null;
278
- targetFilters: {
279
- id: number;
280
- behaviorSegmentCodes: string[];
281
- profileSegmentCodes: string[];
282
- }[];
283
- } & {
284
- bodyKind: "template";
285
- projects: {
286
- id: number;
287
- readyforProjectId: number;
288
- slotNumber: number;
289
- isPaidSlot: boolean;
290
- title: string | null;
291
- description: string | null;
292
- thumbnailUrl: string | null;
293
- tag: string | null;
294
- tagUrl: string | null;
295
- }[];
296
- banners: {
297
- id: number;
298
- slotNumber: number;
299
- imageUrl: string | null;
300
- url: string | null;
301
- }[];
302
- });
303
- }) | ({
304
- id: number;
305
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
306
- title: string | null;
307
- deliveryScheduledAt: string | null;
308
- } & {
309
- kind: "personalizedMailMagazine";
310
- personalizedMailMagazine: {
311
- utmCampaign: string | null;
312
- target: {
313
- csvFileName: string;
314
- targetUsersCount: number;
315
- excludedUsersCount: number;
316
- } | null;
317
- };
318
- });
319
- }>;
320
-
321
- export { type CampaignsIdDeletePath, type CampaignsIdGetPath, type CampaignsIdGetResponse, type CampaignsIdPatchPath, type CampaignsIdPatchRequestBody, type CampaignsIdPatchResponse, buildCampaignsIdDeleteFetcher, buildCampaignsIdGetFetcher, buildCampaignsIdPatchFetcher, deleteCampaignsId, getCampaignsId, patchCampaignsId };
@@ -1,27 +0,0 @@
1
- import { paths } from '../schemaType.mjs';
2
- import { ForceDig } from '@readyfor/api-client-base';
3
-
4
- type ProjectsProjectIdOrKeywordGetOperation = paths["/api/projects/{project_id_or_keyword}"]["get"];
5
- type ProjectsProjectIdOrKeywordGetResponse = ProjectsProjectIdOrKeywordGetOperation["responses"]["200"]["content"]["application/json"];
6
- declare const buildProjectsProjectIdOrKeywordGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
7
- project: {
8
- projectId: number;
9
- keyword: string;
10
- title: string;
11
- abstract: string;
12
- };
13
- }>;
14
- type ProjectsProjectIdOrKeywordGetPath = ForceDig<ProjectsProjectIdOrKeywordGetOperation, [
15
- "parameters",
16
- "path"
17
- ]>;
18
- declare const getProjectsProjectIdOrKeyword: (path: ProjectsProjectIdOrKeywordGetPath, customRequestInit?: RequestInit) => Promise<{
19
- project: {
20
- projectId: number;
21
- keyword: string;
22
- title: string;
23
- abstract: string;
24
- };
25
- }>;
26
-
27
- export { type ProjectsProjectIdOrKeywordGetPath, type ProjectsProjectIdOrKeywordGetResponse, buildProjectsProjectIdOrKeywordGetFetcher, getProjectsProjectIdOrKeyword };
@@ -1,24 +0,0 @@
1
- import { paths } from '../schemaType.mjs';
2
-
3
- type SegmentsBehaviorSegmentsGetOperation = paths["/api/segments/behavior_segments"]["get"];
4
- type SegmentsBehaviorSegmentsGetResponse = SegmentsBehaviorSegmentsGetOperation["responses"]["200"]["content"]["application/json"];
5
- declare const buildSegmentsBehaviorSegmentsGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
6
- behaviorSegments: {
7
- code: string;
8
- label: string;
9
- isActive: boolean;
10
- displayOrder: number | null;
11
- description: string | null;
12
- }[];
13
- }>;
14
- declare const getSegmentsBehaviorSegments: (customRequestInit?: RequestInit) => Promise<{
15
- behaviorSegments: {
16
- code: string;
17
- label: string;
18
- isActive: boolean;
19
- displayOrder: number | null;
20
- description: string | null;
21
- }[];
22
- }>;
23
-
24
- export { type SegmentsBehaviorSegmentsGetResponse, buildSegmentsBehaviorSegmentsGetFetcher, getSegmentsBehaviorSegments };
@@ -1,24 +0,0 @@
1
- import { paths } from '../schemaType.mjs';
2
-
3
- type SegmentsProfileSegmentsGetOperation = paths["/api/segments/profile_segments"]["get"];
4
- type SegmentsProfileSegmentsGetResponse = SegmentsProfileSegmentsGetOperation["responses"]["200"]["content"]["application/json"];
5
- declare const buildSegmentsProfileSegmentsGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
6
- profileSegments: {
7
- code: string;
8
- label: string;
9
- isActive: boolean;
10
- displayOrder: number | null;
11
- description: string | null;
12
- }[];
13
- }>;
14
- declare const getSegmentsProfileSegments: (customRequestInit?: RequestInit) => Promise<{
15
- profileSegments: {
16
- code: string;
17
- label: string;
18
- isActive: boolean;
19
- displayOrder: number | null;
20
- description: string | null;
21
- }[];
22
- }>;
23
-
24
- export { type SegmentsProfileSegmentsGetResponse, buildSegmentsProfileSegmentsGetFetcher, getSegmentsProfileSegments };
@@ -1,20 +0,0 @@
1
- export { useCampaigns, useCampaignsImmutable, useCampaignsInfinite } from './useCampaigns.mjs';
2
- export { useCampaignsId, useCampaignsIdImmutable, useCampaignsIdInfinite } from './useCampaignsId.mjs';
3
- export { useCampaignsIdPreview, useCampaignsIdPreviewImmutable, useCampaignsIdPreviewInfinite } from './useCampaignsIdPreview.mjs';
4
- export { useProjectsProjectIdOrKeyword, useProjectsProjectIdOrKeywordImmutable, useProjectsProjectIdOrKeywordInfinite } from './useProjectsProjectIdOrKeyword.mjs';
5
- export { useSegmentsBehaviorSegments, useSegmentsBehaviorSegmentsImmutable, useSegmentsBehaviorSegmentsInfinite } from './useSegmentsBehaviorSegments.mjs';
6
- export { useSegmentsProfileSegments, useSegmentsProfileSegmentsImmutable, useSegmentsProfileSegmentsInfinite } from './useSegmentsProfileSegments.mjs';
7
- export { useSegmentsTargetUsersCount, useSegmentsTargetUsersCountImmutable, useSegmentsTargetUsersCountInfinite } from './useSegmentsTargetUsersCount.mjs';
8
- import 'swr/infinite';
9
- import 'swr/_internal';
10
- import 'swr';
11
- import '../schemaType.mjs';
12
- import '@readyfor/api-client-base/react';
13
- import '../fetch/campaigns.mjs';
14
- import '@readyfor/api-client-base';
15
- import '../fetch/campaignsId.mjs';
16
- import '../fetch/campaignsIdPreview.mjs';
17
- import '../fetch/projectsProjectIdOrKeyword.mjs';
18
- import '../fetch/segmentsBehaviorSegments.mjs';
19
- import '../fetch/segmentsProfileSegments.mjs';
20
- import '../fetch/segmentsTargetUsersCount.mjs';
@@ -1,44 +0,0 @@
1
- import * as swr_infinite from 'swr/infinite';
2
- import { SWRInfiniteKeyLoader, SWRInfiniteConfiguration } from 'swr/infinite';
3
- import * as swr__internal from 'swr/_internal';
4
- import * as swr from 'swr';
5
- import { Arguments } from 'swr';
6
- import { components } from '../schemaType.mjs';
7
- import { Configuration } from '@readyfor/api-client-base/react';
8
- import { CampaignsGetQuery, CampaignsGetResponse } from '../fetch/campaigns.mjs';
9
- import '@readyfor/api-client-base';
10
-
11
- declare const useCampaigns: (query: CampaignsGetQuery, swrConfig?: Configuration<CampaignsGetResponse>) => {
12
- data: {
13
- campaigns: components["schemas"]["Campaign"][];
14
- pagination: components["schemas"]["Pagination"];
15
- } | undefined;
16
- error: any;
17
- mutate: swr.KeyedMutator<{
18
- campaigns: components["schemas"]["Campaign"][];
19
- pagination: components["schemas"]["Pagination"];
20
- }>;
21
- isValidating: boolean;
22
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
23
- key: string;
24
- };
25
- declare const useCampaignsImmutable: (query: CampaignsGetQuery, swrConfig?: Configuration<CampaignsGetResponse>) => {
26
- data: {
27
- campaigns: components["schemas"]["Campaign"][];
28
- pagination: components["schemas"]["Pagination"];
29
- } | undefined;
30
- error: any;
31
- mutate: swr.KeyedMutator<{
32
- campaigns: components["schemas"]["Campaign"][];
33
- pagination: components["schemas"]["Pagination"];
34
- }>;
35
- isValidating: boolean;
36
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
37
- key: string;
38
- };
39
- declare const useCampaignsInfinite: <Args extends Arguments>(getKey: (keyBuilder: (query: CampaignsGetQuery) => string) => SWRInfiniteKeyLoader<CampaignsGetResponse, Args>, swrConfig?: SWRInfiniteConfiguration<CampaignsGetResponse>) => swr_infinite.SWRInfiniteResponse<{
40
- campaigns: components["schemas"]["Campaign"][];
41
- pagination: components["schemas"]["Pagination"];
42
- }, any>;
43
-
44
- export { useCampaigns, useCampaignsImmutable, useCampaignsInfinite };
@@ -1,39 +0,0 @@
1
- import * as swr_infinite from 'swr/infinite';
2
- import { SWRInfiniteKeyLoader, SWRInfiniteConfiguration } from 'swr/infinite';
3
- import * as swr__internal from 'swr/_internal';
4
- import * as swr from 'swr';
5
- import { Arguments } from 'swr';
6
- import { components } from '../schemaType.mjs';
7
- import { Configuration } from '@readyfor/api-client-base/react';
8
- import { CampaignsIdGetPath, CampaignsIdGetResponse } from '../fetch/campaignsId.mjs';
9
- import '@readyfor/api-client-base';
10
-
11
- declare const useCampaignsId: (path: CampaignsIdGetPath, swrConfig?: Configuration<CampaignsIdGetResponse>) => {
12
- data: {
13
- campaignDetail: components["schemas"]["CampaignDetail"];
14
- } | undefined;
15
- error: any;
16
- mutate: swr.KeyedMutator<{
17
- campaignDetail: components["schemas"]["CampaignDetail"];
18
- }>;
19
- isValidating: boolean;
20
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
21
- key: string;
22
- };
23
- declare const useCampaignsIdImmutable: (path: CampaignsIdGetPath, swrConfig?: Configuration<CampaignsIdGetResponse>) => {
24
- data: {
25
- campaignDetail: components["schemas"]["CampaignDetail"];
26
- } | undefined;
27
- error: any;
28
- mutate: swr.KeyedMutator<{
29
- campaignDetail: components["schemas"]["CampaignDetail"];
30
- }>;
31
- isValidating: boolean;
32
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
33
- key: string;
34
- };
35
- declare const useCampaignsIdInfinite: <Args extends Arguments>(getKey: (keyBuilder: (path: CampaignsIdGetPath) => string) => SWRInfiniteKeyLoader<CampaignsIdGetResponse, Args>, swrConfig?: SWRInfiniteConfiguration<CampaignsIdGetResponse>) => swr_infinite.SWRInfiniteResponse<{
36
- campaignDetail: components["schemas"]["CampaignDetail"];
37
- }, any>;
38
-
39
- export { useCampaignsId, useCampaignsIdImmutable, useCampaignsIdInfinite };
@@ -1,39 +0,0 @@
1
- import * as swr_infinite from 'swr/infinite';
2
- import { SWRInfiniteKeyLoader, SWRInfiniteConfiguration } from 'swr/infinite';
3
- import * as swr__internal from 'swr/_internal';
4
- import * as swr from 'swr';
5
- import { Arguments } from 'swr';
6
- import { Configuration } from '@readyfor/api-client-base/react';
7
- import { CampaignsIdPreviewGetPath, CampaignsIdPreviewGetResponse } from '../fetch/campaignsIdPreview.mjs';
8
- import '../schemaType.mjs';
9
- import '@readyfor/api-client-base';
10
-
11
- declare const useCampaignsIdPreview: (path: CampaignsIdPreviewGetPath, swrConfig?: Configuration<CampaignsIdPreviewGetResponse>) => {
12
- data: {
13
- content: string;
14
- } | undefined;
15
- error: any;
16
- mutate: swr.KeyedMutator<{
17
- content: string;
18
- }>;
19
- isValidating: boolean;
20
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
21
- key: string;
22
- };
23
- declare const useCampaignsIdPreviewImmutable: (path: CampaignsIdPreviewGetPath, swrConfig?: Configuration<CampaignsIdPreviewGetResponse>) => {
24
- data: {
25
- content: string;
26
- } | undefined;
27
- error: any;
28
- mutate: swr.KeyedMutator<{
29
- content: string;
30
- }>;
31
- isValidating: boolean;
32
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
33
- key: string;
34
- };
35
- declare const useCampaignsIdPreviewInfinite: <Args extends Arguments>(getKey: (keyBuilder: (path: CampaignsIdPreviewGetPath) => string) => SWRInfiniteKeyLoader<CampaignsIdPreviewGetResponse, Args>, swrConfig?: SWRInfiniteConfiguration<CampaignsIdPreviewGetResponse>) => swr_infinite.SWRInfiniteResponse<{
36
- content: string;
37
- }, any>;
38
-
39
- export { useCampaignsIdPreview, useCampaignsIdPreviewImmutable, useCampaignsIdPreviewInfinite };
@@ -1,39 +0,0 @@
1
- import * as swr_infinite from 'swr/infinite';
2
- import { SWRInfiniteKeyLoader, SWRInfiniteConfiguration } from 'swr/infinite';
3
- import * as swr__internal from 'swr/_internal';
4
- import * as swr from 'swr';
5
- import { Arguments } from 'swr';
6
- import { components } from '../schemaType.mjs';
7
- import { Configuration } from '@readyfor/api-client-base/react';
8
- import { ProjectsProjectIdOrKeywordGetPath, ProjectsProjectIdOrKeywordGetResponse } from '../fetch/projectsProjectIdOrKeyword.mjs';
9
- import '@readyfor/api-client-base';
10
-
11
- declare const useProjectsProjectIdOrKeyword: (path: ProjectsProjectIdOrKeywordGetPath, swrConfig?: Configuration<ProjectsProjectIdOrKeywordGetResponse>) => {
12
- data: {
13
- project: components["schemas"]["ReadyforProject"];
14
- } | undefined;
15
- error: any;
16
- mutate: swr.KeyedMutator<{
17
- project: components["schemas"]["ReadyforProject"];
18
- }>;
19
- isValidating: boolean;
20
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
21
- key: string;
22
- };
23
- declare const useProjectsProjectIdOrKeywordImmutable: (path: ProjectsProjectIdOrKeywordGetPath, swrConfig?: Configuration<ProjectsProjectIdOrKeywordGetResponse>) => {
24
- data: {
25
- project: components["schemas"]["ReadyforProject"];
26
- } | undefined;
27
- error: any;
28
- mutate: swr.KeyedMutator<{
29
- project: components["schemas"]["ReadyforProject"];
30
- }>;
31
- isValidating: boolean;
32
- isLoading: swr__internal.IsLoadingResponse<Data, Config>;
33
- key: string;
34
- };
35
- declare const useProjectsProjectIdOrKeywordInfinite: <Args extends Arguments>(getKey: (keyBuilder: (path: ProjectsProjectIdOrKeywordGetPath) => string) => SWRInfiniteKeyLoader<ProjectsProjectIdOrKeywordGetResponse, Args>, swrConfig?: SWRInfiniteConfiguration<ProjectsProjectIdOrKeywordGetResponse>) => swr_infinite.SWRInfiniteResponse<{
36
- project: components["schemas"]["ReadyforProject"];
37
- }, any>;
38
-
39
- export { useProjectsProjectIdOrKeyword, useProjectsProjectIdOrKeywordImmutable, useProjectsProjectIdOrKeywordInfinite };