@readyfor/api-client-pigeon 0.187.0 → 0.194.0-pr968.ce9cda6
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-LXUPJN65.mjs → chunk-3JMR6H56.mjs} +1 -1
- package/dist/chunk-3LOTGXB3.mjs +42 -0
- package/dist/{chunk-SWDMGLLG.mjs → chunk-3RIOLUHJ.mjs} +1 -1
- package/dist/{chunk-OFV6CH56.mjs → chunk-7NAC2DXV.mjs} +1 -1
- package/dist/{chunk-324IXKQ7.mjs → chunk-A4DKTYOB.mjs} +31 -8
- package/dist/chunk-IVAIBCIB.mjs +19 -0
- package/dist/{chunk-ZWYL7OFL.mjs → chunk-NVFG46VV.mjs} +1 -1
- package/dist/chunk-RCXDEYQ3.mjs +42 -0
- package/dist/chunk-RYWCSZXA.mjs +19 -0
- package/dist/chunk-TY2VYPCN.mjs +52 -0
- package/dist/{chunk-JGIFSXIQ.mjs → chunk-URCAXVZJ.mjs} +1 -1
- package/dist/chunk-VW7MH5JZ.mjs +19 -0
- package/dist/{chunk-IWONQAFN.mjs → chunk-YOTWYVLS.mjs} +1 -1
- package/dist/components.d.mts +239 -129
- package/dist/components.d.ts +239 -129
- package/dist/components.js +38 -10
- package/dist/components.mjs +15 -5
- package/dist/fetch/campaigns.js +24 -6
- package/dist/fetch/campaigns.mjs +2 -2
- package/dist/fetch/campaignsId.d.mts +12 -12
- package/dist/fetch/campaignsId.d.ts +12 -12
- package/dist/fetch/campaignsId.js +24 -6
- package/dist/fetch/campaignsId.mjs +2 -2
- package/dist/fetch/projectsProjectIdOrKeyword.js +24 -6
- package/dist/fetch/projectsProjectIdOrKeyword.mjs +2 -2
- package/dist/fetch/segmentsBehaviorSegments.d.mts +24 -0
- package/dist/fetch/segmentsBehaviorSegments.d.ts +24 -0
- package/dist/fetch/segmentsBehaviorSegments.js +251 -0
- package/dist/fetch/segmentsBehaviorSegments.mjs +9 -0
- package/dist/fetch/segmentsProfileSegments.d.mts +24 -0
- package/dist/fetch/segmentsProfileSegments.d.ts +24 -0
- package/dist/fetch/segmentsProfileSegments.js +251 -0
- package/dist/fetch/segmentsProfileSegments.mjs +9 -0
- package/dist/fetch/segmentsTargetUsersCount.d.mts +17 -0
- package/dist/fetch/segmentsTargetUsersCount.d.ts +17 -0
- package/dist/fetch/segmentsTargetUsersCount.js +251 -0
- package/dist/fetch/segmentsTargetUsersCount.mjs +9 -0
- package/dist/hooks/index.d.mts +6 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/index.js +177 -20
- package/dist/hooks/index.mjs +36 -9
- package/dist/hooks/useCampaigns.js +37 -10
- package/dist/hooks/useCampaigns.mjs +9 -6
- package/dist/hooks/useCampaignsId.js +37 -10
- package/dist/hooks/useCampaignsId.mjs +9 -6
- package/dist/hooks/useProjectsProjectIdOrKeyword.js +37 -10
- package/dist/hooks/useProjectsProjectIdOrKeyword.mjs +9 -6
- package/dist/hooks/useSegmentsBehaviorSegments.d.mts +37 -0
- package/dist/hooks/useSegmentsBehaviorSegments.d.ts +37 -0
- package/dist/hooks/useSegmentsBehaviorSegments.js +310 -0
- package/dist/hooks/useSegmentsBehaviorSegments.mjs +19 -0
- package/dist/hooks/useSegmentsProfileSegments.d.mts +37 -0
- package/dist/hooks/useSegmentsProfileSegments.d.ts +37 -0
- package/dist/hooks/useSegmentsProfileSegments.js +310 -0
- package/dist/hooks/useSegmentsProfileSegments.mjs +19 -0
- package/dist/hooks/useSegmentsTargetUsersCount.d.mts +38 -0
- package/dist/hooks/useSegmentsTargetUsersCount.d.ts +38 -0
- package/dist/hooks/useSegmentsTargetUsersCount.js +320 -0
- package/dist/hooks/useSegmentsTargetUsersCount.mjs +19 -0
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +74 -10
- package/dist/index.mjs +37 -9
- package/dist/schemaType.d.mts +139 -8
- package/dist/schemaType.d.ts +139 -8
- package/package.json +9 -10
- /package/dist/{chunk-M47LJF5A.mjs → chunk-CEHYORRT.mjs} +0 -0
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
"use strict";
|
|
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 __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/hooks/useSegmentsBehaviorSegments.ts
|
|
31
|
+
var useSegmentsBehaviorSegments_exports = {};
|
|
32
|
+
__export(useSegmentsBehaviorSegments_exports, {
|
|
33
|
+
useSegmentsBehaviorSegments: () => useSegmentsBehaviorSegments,
|
|
34
|
+
useSegmentsBehaviorSegmentsImmutable: () => useSegmentsBehaviorSegmentsImmutable,
|
|
35
|
+
useSegmentsBehaviorSegmentsInfinite: () => useSegmentsBehaviorSegmentsInfinite
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(useSegmentsBehaviorSegments_exports);
|
|
38
|
+
var import_immutable = __toESM(require("swr/immutable"));
|
|
39
|
+
var import_infinite = __toESM(require("swr/infinite"));
|
|
40
|
+
var import_swr = __toESM(require("swr"));
|
|
41
|
+
var import_api_client_base8 = require("@readyfor/api-client-base");
|
|
42
|
+
var import_react = require("@readyfor/api-client-base/react");
|
|
43
|
+
|
|
44
|
+
// src/components.ts
|
|
45
|
+
var import_zod = require("zod");
|
|
46
|
+
var DeleteImageFormData = import_zod.z.object({ kind: import_zod.z.literal("delete") });
|
|
47
|
+
var UploadImageFormData = import_zod.z.object({
|
|
48
|
+
kind: import_zod.z.literal("upload"),
|
|
49
|
+
data: import_zod.z.union([import_zod.z.any(), import_zod.z.any()])
|
|
50
|
+
});
|
|
51
|
+
var PersonalizedMailMagazineTargetUploadCsvRecordFormData = import_zod.z.object({
|
|
52
|
+
userId: import_zod.z.number(),
|
|
53
|
+
projectIds: import_zod.z.string()
|
|
54
|
+
});
|
|
55
|
+
var ImageFormData = import_zod.z.union([
|
|
56
|
+
UploadImageFormData,
|
|
57
|
+
DeleteImageFormData
|
|
58
|
+
]);
|
|
59
|
+
var PersonalizedMailMagazineTargetUploadCsvFormData = import_zod.z.object({
|
|
60
|
+
kind: import_zod.z.literal("uploadCsv"),
|
|
61
|
+
fileName: import_zod.z.string(),
|
|
62
|
+
records: import_zod.z.array(PersonalizedMailMagazineTargetUploadCsvRecordFormData)
|
|
63
|
+
});
|
|
64
|
+
var PersonalizedMailMagazineTargetDeleteCsvFormData = import_zod.z.object({
|
|
65
|
+
kind: import_zod.z.literal("deleteTargetCsv")
|
|
66
|
+
});
|
|
67
|
+
var CurationMailMagazineBannerFormData = import_zod.z.object({
|
|
68
|
+
id: import_zod.z.union([import_zod.z.number(), import_zod.z.null()]),
|
|
69
|
+
slotNumber: import_zod.z.number(),
|
|
70
|
+
image: import_zod.z.union([ImageFormData, import_zod.z.null()]),
|
|
71
|
+
url: import_zod.z.union([import_zod.z.string(), import_zod.z.null()])
|
|
72
|
+
});
|
|
73
|
+
var CurationMailMagazineProjectFormData = import_zod.z.object({
|
|
74
|
+
id: import_zod.z.union([import_zod.z.number(), import_zod.z.null()]),
|
|
75
|
+
slotNumber: import_zod.z.number(),
|
|
76
|
+
readyforProjectId: import_zod.z.number(),
|
|
77
|
+
isPaidSlot: import_zod.z.boolean(),
|
|
78
|
+
title: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
79
|
+
description: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
80
|
+
thumbnail: import_zod.z.union([ImageFormData, import_zod.z.null()]),
|
|
81
|
+
tag: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
82
|
+
tagUrl: import_zod.z.union([import_zod.z.string(), import_zod.z.null()])
|
|
83
|
+
});
|
|
84
|
+
var CurationMailMagazineTargetFilterFormData = import_zod.z.object({
|
|
85
|
+
id: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
86
|
+
behaviorSgumentCodes: import_zod.z.array(import_zod.z.string()),
|
|
87
|
+
profileSgumentCodes: import_zod.z.array(import_zod.z.string())
|
|
88
|
+
});
|
|
89
|
+
var PersonalizedMailMagazineTargetCsvFormData = import_zod.z.union([
|
|
90
|
+
PersonalizedMailMagazineTargetDeleteCsvFormData,
|
|
91
|
+
PersonalizedMailMagazineTargetUploadCsvFormData
|
|
92
|
+
]);
|
|
93
|
+
var CurationMailMagazineBanner = import_zod.z.object({
|
|
94
|
+
id: import_zod.z.number(),
|
|
95
|
+
slotNumber: import_zod.z.number(),
|
|
96
|
+
imageUrl: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
97
|
+
url: import_zod.z.union([import_zod.z.string(), import_zod.z.null()])
|
|
98
|
+
});
|
|
99
|
+
var CurationMailMagazineTargetProject = import_zod.z.object({
|
|
100
|
+
id: import_zod.z.number(),
|
|
101
|
+
readyforProjectId: import_zod.z.number(),
|
|
102
|
+
slotNumber: import_zod.z.number(),
|
|
103
|
+
isPaidSlot: import_zod.z.boolean(),
|
|
104
|
+
title: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
105
|
+
description: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
106
|
+
thumbnailUrl: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
107
|
+
tag: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
108
|
+
tagUrl: import_zod.z.union([import_zod.z.string(), import_zod.z.null()])
|
|
109
|
+
});
|
|
110
|
+
var CurationMailMagazineTargetFilter = import_zod.z.object({
|
|
111
|
+
id: import_zod.z.number(),
|
|
112
|
+
behaviorSegmentCodes: import_zod.z.array(import_zod.z.string()),
|
|
113
|
+
profileSegmentCodes: import_zod.z.array(import_zod.z.string())
|
|
114
|
+
});
|
|
115
|
+
var PersonalizedMailMagazineDetailTarget = import_zod.z.object({
|
|
116
|
+
csvFileName: import_zod.z.string(),
|
|
117
|
+
targetUsersCount: import_zod.z.number(),
|
|
118
|
+
excludedUsersCount: import_zod.z.number()
|
|
119
|
+
});
|
|
120
|
+
var CurationMailMagazineFormData = import_zod.z.object({
|
|
121
|
+
utmCampaign: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
122
|
+
mailSubject: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
123
|
+
preHeaderText: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
124
|
+
target_filters: import_zod.z.array(CurationMailMagazineTargetFilterFormData),
|
|
125
|
+
projects: import_zod.z.array(CurationMailMagazineProjectFormData),
|
|
126
|
+
banners: import_zod.z.array(CurationMailMagazineBannerFormData)
|
|
127
|
+
});
|
|
128
|
+
var PersonalizedMailMagazineFormData = import_zod.z.object({
|
|
129
|
+
utmCampaign: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
130
|
+
targetCsv: import_zod.z.union([PersonalizedMailMagazineTargetCsvFormData, import_zod.z.null()])
|
|
131
|
+
});
|
|
132
|
+
var CurationMailMagazineDetail = import_zod.z.object({
|
|
133
|
+
utmCampaign: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
134
|
+
mailSubject: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
135
|
+
preHeaderText: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
136
|
+
deliveredUsersCount: import_zod.z.union([import_zod.z.number(), import_zod.z.null()]),
|
|
137
|
+
target_filters: import_zod.z.array(CurationMailMagazineTargetFilter),
|
|
138
|
+
projects: import_zod.z.array(CurationMailMagazineTargetProject),
|
|
139
|
+
banners: import_zod.z.array(CurationMailMagazineBanner)
|
|
140
|
+
});
|
|
141
|
+
var CampaignStatus = import_zod.z.union([
|
|
142
|
+
import_zod.z.literal("draft"),
|
|
143
|
+
import_zod.z.literal("scheduled"),
|
|
144
|
+
import_zod.z.literal("delivering"),
|
|
145
|
+
import_zod.z.literal("delivered"),
|
|
146
|
+
import_zod.z.literal("deliveryFailed")
|
|
147
|
+
]);
|
|
148
|
+
var PersonalizedMailMagazineDetail = import_zod.z.object({
|
|
149
|
+
utmCampaign: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
150
|
+
target: import_zod.z.union([PersonalizedMailMagazineDetailTarget, import_zod.z.null()])
|
|
151
|
+
});
|
|
152
|
+
var CampaignKindDataCurationMailMagazineFormData = import_zod.z.object({
|
|
153
|
+
kind: import_zod.z.literal("curationMailMagazine"),
|
|
154
|
+
curationMailMagazine: CurationMailMagazineFormData
|
|
155
|
+
});
|
|
156
|
+
var CampaignBaseFormData = import_zod.z.object({
|
|
157
|
+
title: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
158
|
+
deliveryScheduledAt: import_zod.z.union([import_zod.z.string(), import_zod.z.null()])
|
|
159
|
+
});
|
|
160
|
+
var CampaignKindDataPersonalizedMailMagazineFormData = import_zod.z.object({
|
|
161
|
+
kind: import_zod.z.literal("personalizedMailMagazine"),
|
|
162
|
+
personalizedMailMagazine: PersonalizedMailMagazineFormData
|
|
163
|
+
});
|
|
164
|
+
var CampaignDetailKindDataCurationMailMagazine = import_zod.z.object({
|
|
165
|
+
kind: import_zod.z.literal("curationMailMagazine"),
|
|
166
|
+
curationMailMagazine: CurationMailMagazineDetail
|
|
167
|
+
});
|
|
168
|
+
var CampaignDetailBase = import_zod.z.object({
|
|
169
|
+
id: import_zod.z.number(),
|
|
170
|
+
status: CampaignStatus,
|
|
171
|
+
title: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
172
|
+
deliveryScheduledAt: import_zod.z.union([import_zod.z.string(), import_zod.z.null()])
|
|
173
|
+
});
|
|
174
|
+
var CampaignDetailKindDataPersonalizedMailMagazine = import_zod.z.object({
|
|
175
|
+
kind: import_zod.z.literal("personalizedMailMagazine"),
|
|
176
|
+
personalizedMailMagazine: PersonalizedMailMagazineDetail
|
|
177
|
+
});
|
|
178
|
+
var CampaignWithCurationMailMagazineFormData = CampaignBaseFormData.merge(CampaignKindDataCurationMailMagazineFormData);
|
|
179
|
+
var CampaignWithPersonalizedMailMagazineFormData = CampaignBaseFormData.merge(CampaignKindDataPersonalizedMailMagazineFormData);
|
|
180
|
+
var CampaignDetailWithCurationMailMagazine = CampaignDetailBase.merge(
|
|
181
|
+
CampaignDetailKindDataCurationMailMagazine
|
|
182
|
+
);
|
|
183
|
+
var CampaignDetailWithPersonalizedMailMagazine = CampaignDetailBase.merge(CampaignDetailKindDataPersonalizedMailMagazine);
|
|
184
|
+
var CampaignKind = import_zod.z.union([
|
|
185
|
+
import_zod.z.literal("curationMailMagazine"),
|
|
186
|
+
import_zod.z.literal("personalizedMailMagazine")
|
|
187
|
+
]);
|
|
188
|
+
var Segment = import_zod.z.object({
|
|
189
|
+
code: import_zod.z.string(),
|
|
190
|
+
label: import_zod.z.string(),
|
|
191
|
+
isActive: import_zod.z.boolean(),
|
|
192
|
+
displayOrder: import_zod.z.union([import_zod.z.number(), import_zod.z.null()]),
|
|
193
|
+
description: import_zod.z.union([import_zod.z.string(), import_zod.z.null()])
|
|
194
|
+
});
|
|
195
|
+
var ReadyforProject = import_zod.z.object({
|
|
196
|
+
projectId: import_zod.z.number(),
|
|
197
|
+
keyword: import_zod.z.string(),
|
|
198
|
+
title: import_zod.z.string(),
|
|
199
|
+
abstract: import_zod.z.string()
|
|
200
|
+
});
|
|
201
|
+
var CampaignFormData = import_zod.z.union([
|
|
202
|
+
CampaignWithPersonalizedMailMagazineFormData,
|
|
203
|
+
CampaignWithCurationMailMagazineFormData
|
|
204
|
+
]);
|
|
205
|
+
var CampaignDetail = import_zod.z.union([
|
|
206
|
+
CampaignDetailWithPersonalizedMailMagazine,
|
|
207
|
+
CampaignDetailWithCurationMailMagazine
|
|
208
|
+
]);
|
|
209
|
+
var Pagination = import_zod.z.object({
|
|
210
|
+
totalPages: import_zod.z.number(),
|
|
211
|
+
totalCount: import_zod.z.number(),
|
|
212
|
+
currentPerPage: import_zod.z.number(),
|
|
213
|
+
currentPage: import_zod.z.number(),
|
|
214
|
+
prevPage: import_zod.z.union([import_zod.z.number(), import_zod.z.null()]),
|
|
215
|
+
nextPage: import_zod.z.union([import_zod.z.number(), import_zod.z.null()]),
|
|
216
|
+
isFirstPage: import_zod.z.boolean(),
|
|
217
|
+
isLastPage: import_zod.z.boolean()
|
|
218
|
+
});
|
|
219
|
+
var Campaign = import_zod.z.object({
|
|
220
|
+
id: import_zod.z.number(),
|
|
221
|
+
title: import_zod.z.optional(import_zod.z.union([import_zod.z.string(), import_zod.z.null()])),
|
|
222
|
+
status: CampaignStatus,
|
|
223
|
+
kind: CampaignKind,
|
|
224
|
+
deliveryAt: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
225
|
+
lastEditorName: import_zod.z.string(),
|
|
226
|
+
lastEditedAt: import_zod.z.string()
|
|
227
|
+
});
|
|
228
|
+
var TargetFilterSegments = import_zod.z.object({
|
|
229
|
+
behaviorSegmentCodes: import_zod.z.array(import_zod.z.string()),
|
|
230
|
+
profileSegmentCodes: import_zod.z.array(import_zod.z.string())
|
|
231
|
+
});
|
|
232
|
+
var GetTargetUsersCountResponse = import_zod.z.object({ count: import_zod.z.number() });
|
|
233
|
+
var GetProfileSegmentsResponse = import_zod.z.object({
|
|
234
|
+
profileSegments: import_zod.z.array(Segment)
|
|
235
|
+
});
|
|
236
|
+
var GetBehaviorSegmentsResponse = import_zod.z.object({
|
|
237
|
+
behaviorSegments: import_zod.z.array(Segment)
|
|
238
|
+
});
|
|
239
|
+
var GetProjectsProjectIdOrKeywordResponse = import_zod.z.object({
|
|
240
|
+
project: ReadyforProject
|
|
241
|
+
});
|
|
242
|
+
var HttpErrorBadRequest = import_zod.z.object({ errors: import_zod.z.array(import_zod.z.string()) });
|
|
243
|
+
var PatchCampaignsCampaignIdRequestBody = import_zod.z.object({
|
|
244
|
+
formData: CampaignFormData
|
|
245
|
+
});
|
|
246
|
+
var CampaignsCampaignIdResponse = import_zod.z.object({
|
|
247
|
+
campaignDetail: CampaignDetail
|
|
248
|
+
});
|
|
249
|
+
var PostCampaignsRequestBody = import_zod.z.object({ kind: CampaignKind });
|
|
250
|
+
var PostCampaignsResponse = import_zod.z.object({ id: import_zod.z.number() });
|
|
251
|
+
var GetCampaignsResponse = import_zod.z.object({
|
|
252
|
+
campaigns: import_zod.z.array(Campaign),
|
|
253
|
+
pagination: Pagination
|
|
254
|
+
});
|
|
255
|
+
|
|
256
|
+
// src/fetch/campaigns.ts
|
|
257
|
+
var import_api_client_base = require("@readyfor/api-client-base");
|
|
258
|
+
|
|
259
|
+
// src/fetch/campaignsId.ts
|
|
260
|
+
var import_api_client_base2 = require("@readyfor/api-client-base");
|
|
261
|
+
|
|
262
|
+
// src/fetch/campaignsIdDeliveryJob.ts
|
|
263
|
+
var import_api_client_base3 = require("@readyfor/api-client-base");
|
|
264
|
+
|
|
265
|
+
// src/fetch/projectsProjectIdOrKeyword.ts
|
|
266
|
+
var import_api_client_base4 = require("@readyfor/api-client-base");
|
|
267
|
+
|
|
268
|
+
// src/fetch/segmentsBehaviorSegments.ts
|
|
269
|
+
var import_api_client_base5 = require("@readyfor/api-client-base");
|
|
270
|
+
var buildSegmentsBehaviorSegmentsGetFetcher = (requestInit) => (0, import_api_client_base5.createJsonFetcher)(GetBehaviorSegmentsResponse, { ...requestInit });
|
|
271
|
+
|
|
272
|
+
// src/fetch/segmentsProfileSegments.ts
|
|
273
|
+
var import_api_client_base6 = require("@readyfor/api-client-base");
|
|
274
|
+
|
|
275
|
+
// src/fetch/segmentsTargetUsersCount.ts
|
|
276
|
+
var import_api_client_base7 = require("@readyfor/api-client-base");
|
|
277
|
+
|
|
278
|
+
// src/hooks/useSegmentsBehaviorSegments.ts
|
|
279
|
+
var segmentsBehaviorSegmentsGetFetcher = buildSegmentsBehaviorSegmentsGetFetcher();
|
|
280
|
+
var useSegmentsBehaviorSegments = (swrConfig = {}) => {
|
|
281
|
+
const key = (0, import_api_client_base8.__internal__requestUrl)("/api/segments/behavior_segments");
|
|
282
|
+
const requestInit = (0, import_react.useRequestInit)();
|
|
283
|
+
const result = (0, import_swr.default)(
|
|
284
|
+
swrConfig?.shouldNotFetch ? null : key,
|
|
285
|
+
buildSegmentsBehaviorSegmentsGetFetcher(requestInit),
|
|
286
|
+
swrConfig
|
|
287
|
+
);
|
|
288
|
+
return { key, ...result };
|
|
289
|
+
};
|
|
290
|
+
var useSegmentsBehaviorSegmentsImmutable = (swrConfig = {}) => {
|
|
291
|
+
const key = (0, import_api_client_base8.__internal__requestUrl)("/api/segments/behavior_segments");
|
|
292
|
+
const requestInit = (0, import_react.useRequestInit)();
|
|
293
|
+
const result = (0, import_immutable.default)(
|
|
294
|
+
swrConfig?.shouldNotFetch ? null : key,
|
|
295
|
+
buildSegmentsBehaviorSegmentsGetFetcher(requestInit),
|
|
296
|
+
swrConfig
|
|
297
|
+
);
|
|
298
|
+
return { key, ...result };
|
|
299
|
+
};
|
|
300
|
+
var useSegmentsBehaviorSegmentsInfinite = (getKey, swrConfig) => (0, import_infinite.default)(
|
|
301
|
+
getKey(() => (0, import_api_client_base8.__internal__requestUrl)()),
|
|
302
|
+
segmentsBehaviorSegmentsGetFetcher,
|
|
303
|
+
swrConfig
|
|
304
|
+
);
|
|
305
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
306
|
+
0 && (module.exports = {
|
|
307
|
+
useSegmentsBehaviorSegments,
|
|
308
|
+
useSegmentsBehaviorSegmentsImmutable,
|
|
309
|
+
useSegmentsBehaviorSegmentsInfinite
|
|
310
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useSegmentsBehaviorSegments,
|
|
3
|
+
useSegmentsBehaviorSegmentsImmutable,
|
|
4
|
+
useSegmentsBehaviorSegmentsInfinite
|
|
5
|
+
} from "../chunk-RCXDEYQ3.mjs";
|
|
6
|
+
import "../chunk-CEHYORRT.mjs";
|
|
7
|
+
import "../chunk-RYWCSZXA.mjs";
|
|
8
|
+
import "../chunk-VW7MH5JZ.mjs";
|
|
9
|
+
import "../chunk-YOTWYVLS.mjs";
|
|
10
|
+
import "../chunk-7NAC2DXV.mjs";
|
|
11
|
+
import "../chunk-YV4XRZY2.mjs";
|
|
12
|
+
import "../chunk-3RIOLUHJ.mjs";
|
|
13
|
+
import "../chunk-IVAIBCIB.mjs";
|
|
14
|
+
import "../chunk-A4DKTYOB.mjs";
|
|
15
|
+
export {
|
|
16
|
+
useSegmentsBehaviorSegments,
|
|
17
|
+
useSegmentsBehaviorSegmentsImmutable,
|
|
18
|
+
useSegmentsBehaviorSegmentsInfinite
|
|
19
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as swr_infinite from 'swr/infinite';
|
|
2
|
+
import { SWRInfiniteKeyLoader, SWRInfiniteConfiguration } from 'swr/infinite';
|
|
3
|
+
import * as swr from 'swr';
|
|
4
|
+
import { Arguments } from 'swr';
|
|
5
|
+
import { components } from '../schemaType.mjs';
|
|
6
|
+
import { Configuration } from '@readyfor/api-client-base/react';
|
|
7
|
+
import { SegmentsProfileSegmentsGetResponse } from '../fetch/segmentsProfileSegments.mjs';
|
|
8
|
+
|
|
9
|
+
declare const useSegmentsProfileSegments: (swrConfig?: Configuration<SegmentsProfileSegmentsGetResponse>) => {
|
|
10
|
+
data: {
|
|
11
|
+
profileSegments: components["schemas"]["Segment"][];
|
|
12
|
+
} | undefined;
|
|
13
|
+
error: any;
|
|
14
|
+
mutate: swr.KeyedMutator<{
|
|
15
|
+
profileSegments: components["schemas"]["Segment"][];
|
|
16
|
+
}>;
|
|
17
|
+
isValidating: boolean;
|
|
18
|
+
isLoading: boolean;
|
|
19
|
+
key: string;
|
|
20
|
+
};
|
|
21
|
+
declare const useSegmentsProfileSegmentsImmutable: (swrConfig?: Configuration<SegmentsProfileSegmentsGetResponse>) => {
|
|
22
|
+
data: {
|
|
23
|
+
profileSegments: components["schemas"]["Segment"][];
|
|
24
|
+
} | undefined;
|
|
25
|
+
error: any;
|
|
26
|
+
mutate: swr.KeyedMutator<{
|
|
27
|
+
profileSegments: components["schemas"]["Segment"][];
|
|
28
|
+
}>;
|
|
29
|
+
isValidating: boolean;
|
|
30
|
+
isLoading: boolean;
|
|
31
|
+
key: string;
|
|
32
|
+
};
|
|
33
|
+
declare const useSegmentsProfileSegmentsInfinite: <Args extends Arguments>(getKey: (keyBuilder: () => string) => SWRInfiniteKeyLoader<SegmentsProfileSegmentsGetResponse, Args>, swrConfig?: SWRInfiniteConfiguration<SegmentsProfileSegmentsGetResponse>) => swr_infinite.SWRInfiniteResponse<{
|
|
34
|
+
profileSegments: components["schemas"]["Segment"][];
|
|
35
|
+
}, any>;
|
|
36
|
+
|
|
37
|
+
export { useSegmentsProfileSegments, useSegmentsProfileSegmentsImmutable, useSegmentsProfileSegmentsInfinite };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as swr_infinite from 'swr/infinite';
|
|
2
|
+
import { SWRInfiniteKeyLoader, SWRInfiniteConfiguration } from 'swr/infinite';
|
|
3
|
+
import * as swr from 'swr';
|
|
4
|
+
import { Arguments } from 'swr';
|
|
5
|
+
import { components } from '../schemaType.js';
|
|
6
|
+
import { Configuration } from '@readyfor/api-client-base/react';
|
|
7
|
+
import { SegmentsProfileSegmentsGetResponse } from '../fetch/segmentsProfileSegments.js';
|
|
8
|
+
|
|
9
|
+
declare const useSegmentsProfileSegments: (swrConfig?: Configuration<SegmentsProfileSegmentsGetResponse>) => {
|
|
10
|
+
data: {
|
|
11
|
+
profileSegments: components["schemas"]["Segment"][];
|
|
12
|
+
} | undefined;
|
|
13
|
+
error: any;
|
|
14
|
+
mutate: swr.KeyedMutator<{
|
|
15
|
+
profileSegments: components["schemas"]["Segment"][];
|
|
16
|
+
}>;
|
|
17
|
+
isValidating: boolean;
|
|
18
|
+
isLoading: boolean;
|
|
19
|
+
key: string;
|
|
20
|
+
};
|
|
21
|
+
declare const useSegmentsProfileSegmentsImmutable: (swrConfig?: Configuration<SegmentsProfileSegmentsGetResponse>) => {
|
|
22
|
+
data: {
|
|
23
|
+
profileSegments: components["schemas"]["Segment"][];
|
|
24
|
+
} | undefined;
|
|
25
|
+
error: any;
|
|
26
|
+
mutate: swr.KeyedMutator<{
|
|
27
|
+
profileSegments: components["schemas"]["Segment"][];
|
|
28
|
+
}>;
|
|
29
|
+
isValidating: boolean;
|
|
30
|
+
isLoading: boolean;
|
|
31
|
+
key: string;
|
|
32
|
+
};
|
|
33
|
+
declare const useSegmentsProfileSegmentsInfinite: <Args extends Arguments>(getKey: (keyBuilder: () => string) => SWRInfiniteKeyLoader<SegmentsProfileSegmentsGetResponse, Args>, swrConfig?: SWRInfiniteConfiguration<SegmentsProfileSegmentsGetResponse>) => swr_infinite.SWRInfiniteResponse<{
|
|
34
|
+
profileSegments: components["schemas"]["Segment"][];
|
|
35
|
+
}, any>;
|
|
36
|
+
|
|
37
|
+
export { useSegmentsProfileSegments, useSegmentsProfileSegmentsImmutable, useSegmentsProfileSegmentsInfinite };
|