@readyfor/api-client-pigeon 0.171.0 → 0.173.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.
- package/dist/{chunk-ZHGMUSIW.mjs → chunk-2CYVMP5Y.mjs} +1 -1
- package/dist/chunk-2FYAHTET.mjs +31 -0
- package/dist/{chunk-BHUMNBFZ.mjs → chunk-BAZYTXRM.mjs} +1 -1
- package/dist/{chunk-6MUZHLM5.mjs → chunk-SE465IBN.mjs} +1 -1
- package/dist/chunk-Z7QYYQ55.mjs +139 -0
- package/dist/components.d.mts +818 -269
- package/dist/components.d.ts +818 -269
- package/dist/components.js +90 -40
- package/dist/components.mjs +39 -17
- package/dist/fetch/campaigns.d.mts +2 -2
- package/dist/fetch/campaigns.d.ts +2 -2
- package/dist/fetch/campaigns.js +52 -23
- package/dist/fetch/campaigns.mjs +2 -2
- package/dist/fetch/campaignsId.d.mts +89 -18
- package/dist/fetch/campaignsId.d.ts +89 -18
- package/dist/fetch/campaignsId.js +69 -26
- package/dist/fetch/campaignsId.mjs +8 -4
- package/dist/hooks/index.js +61 -35
- package/dist/hooks/index.mjs +10 -11
- package/dist/hooks/useCampaigns.js +56 -30
- package/dist/hooks/useCampaigns.mjs +5 -6
- package/dist/hooks/useCampaignsId.js +57 -31
- package/dist/hooks/useCampaignsId.mjs +5 -6
- package/dist/index.d.mts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +98 -54
- package/dist/index.mjs +47 -27
- package/dist/schemaType.d.mts +137 -79
- package/dist/schemaType.d.ts +137 -79
- package/package.json +3 -3
- package/dist/chunk-7XSND6KI.mjs +0 -100
- package/dist/chunk-GBESGCUB.mjs +0 -19
- package/dist/chunk-V6EPKCC7.mjs +0 -27
- package/dist/fetch/personalizedMailMagazinesId.d.mts +0 -42
- package/dist/fetch/personalizedMailMagazinesId.d.ts +0 -42
- package/dist/fetch/personalizedMailMagazinesId.js +0 -128
- package/dist/fetch/personalizedMailMagazinesId.mjs +0 -9
- /package/dist/{chunk-RD6VKGWI.mjs → chunk-KZFT6V6I.mjs} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@readyfor/api-client-pigeon",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.173.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"build": "tsup"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@readyfor/api-client-base": "0.
|
|
27
|
+
"@readyfor/api-client-base": "0.173.0",
|
|
28
28
|
"@types/qs": "6.9.17",
|
|
29
29
|
"@types/react": "^18.3.12",
|
|
30
30
|
"@types/use-sync-external-store": "0.0.6",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"src"
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "869c38d2168b7d411371393fc002cf47fc17b19a"
|
|
69
69
|
}
|
package/dist/chunk-7XSND6KI.mjs
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
// src/components.ts
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
var PersonalizedMailMagazineTargetCsvRecord = z.object({
|
|
4
|
-
userId: z.number(),
|
|
5
|
-
projectId: z.number(),
|
|
6
|
-
slotNumber: z.number()
|
|
7
|
-
});
|
|
8
|
-
var PersonalizedMailMagazineCampaignDetailTarget = z.object({
|
|
9
|
-
csvFileName: z.string(),
|
|
10
|
-
targetUsersCount: z.number(),
|
|
11
|
-
excludedUsersCount: z.number()
|
|
12
|
-
});
|
|
13
|
-
var CampaignStatus = z.union([
|
|
14
|
-
z.literal("draft"),
|
|
15
|
-
z.literal("scheduled"),
|
|
16
|
-
z.literal("delivering"),
|
|
17
|
-
z.literal("delivered"),
|
|
18
|
-
z.literal("deliveryFailed")
|
|
19
|
-
]);
|
|
20
|
-
var PersonalizedMailMagazineTargetCsv = z.object({
|
|
21
|
-
fileName: z.string(),
|
|
22
|
-
records: z.array(PersonalizedMailMagazineTargetCsvRecord)
|
|
23
|
-
});
|
|
24
|
-
var CurationMailMagazineCampaignDetail = z.object({
|
|
25
|
-
__type: z.literal("CurationMailMagazineCampaignDetail"),
|
|
26
|
-
id: z.number()
|
|
27
|
-
});
|
|
28
|
-
var PersonalizedMailMagazineCampaignDetail = z.object({
|
|
29
|
-
__type: z.literal("PersonalizedMailMagazineCampaignDetail"),
|
|
30
|
-
id: z.number(),
|
|
31
|
-
status: CampaignStatus,
|
|
32
|
-
title: z.union([z.string(), z.null()]),
|
|
33
|
-
utmCampaign: z.union([z.string(), z.null()]),
|
|
34
|
-
scheduledDeliveryAt: z.union([z.string(), z.null()]),
|
|
35
|
-
target: z.union([PersonalizedMailMagazineCampaignDetailTarget, z.null()])
|
|
36
|
-
});
|
|
37
|
-
var CampaignKind = z.union([
|
|
38
|
-
z.literal("curationMailMagazine"),
|
|
39
|
-
z.literal("personalizedMailMagazine")
|
|
40
|
-
]);
|
|
41
|
-
var PersonalizedMailMagazineFormData = z.object({
|
|
42
|
-
title: z.union([z.string(), z.null()]),
|
|
43
|
-
utmCampaign: z.union([z.string(), z.null()]),
|
|
44
|
-
scheduledDeliveryAt: z.union([z.string(), z.null()]),
|
|
45
|
-
targetCsv: z.union([PersonalizedMailMagazineTargetCsv, z.null()])
|
|
46
|
-
});
|
|
47
|
-
var CampaignDetail = z.union([
|
|
48
|
-
PersonalizedMailMagazineCampaignDetail,
|
|
49
|
-
CurationMailMagazineCampaignDetail
|
|
50
|
-
]);
|
|
51
|
-
var Pagination = z.object({
|
|
52
|
-
totalPages: z.number(),
|
|
53
|
-
totalCount: z.number(),
|
|
54
|
-
currentPerPage: z.number(),
|
|
55
|
-
currentPage: z.number(),
|
|
56
|
-
prevPage: z.union([z.number(), z.null()]),
|
|
57
|
-
nextPage: z.union([z.number(), z.null()]),
|
|
58
|
-
isFirstPage: z.boolean(),
|
|
59
|
-
isLastPage: z.boolean()
|
|
60
|
-
});
|
|
61
|
-
var Campaign = z.object({
|
|
62
|
-
id: z.number(),
|
|
63
|
-
title: z.optional(z.union([z.string(), z.null()])),
|
|
64
|
-
status: CampaignStatus,
|
|
65
|
-
kind: CampaignKind,
|
|
66
|
-
deliveryAt: z.union([z.string(), z.null()]),
|
|
67
|
-
lastEditorName: z.string(),
|
|
68
|
-
lastEditedAt: z.string()
|
|
69
|
-
});
|
|
70
|
-
var PatchPersonalizedMailMagazinesPersonalizedMailMagazineIdRequestBody = z.object({ formData: PersonalizedMailMagazineFormData });
|
|
71
|
-
var PatchPersonalizedMailMagazinesPersonalizedMailMagazineIdResponse = PersonalizedMailMagazineCampaignDetail;
|
|
72
|
-
var GetCampaignsCampaignIdResponse = z.object({
|
|
73
|
-
campaignDetail: CampaignDetail
|
|
74
|
-
});
|
|
75
|
-
var PostCampaignsRequestBody = z.object({ kind: CampaignKind });
|
|
76
|
-
var PostCampaignsResponse = z.object({ id: z.number() });
|
|
77
|
-
var GetCampaignsResponse = z.object({
|
|
78
|
-
campaigns: z.array(Campaign),
|
|
79
|
-
pagination: Pagination
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
export {
|
|
83
|
-
PersonalizedMailMagazineTargetCsvRecord,
|
|
84
|
-
PersonalizedMailMagazineCampaignDetailTarget,
|
|
85
|
-
CampaignStatus,
|
|
86
|
-
PersonalizedMailMagazineTargetCsv,
|
|
87
|
-
CurationMailMagazineCampaignDetail,
|
|
88
|
-
PersonalizedMailMagazineCampaignDetail,
|
|
89
|
-
CampaignKind,
|
|
90
|
-
PersonalizedMailMagazineFormData,
|
|
91
|
-
CampaignDetail,
|
|
92
|
-
Pagination,
|
|
93
|
-
Campaign,
|
|
94
|
-
PatchPersonalizedMailMagazinesPersonalizedMailMagazineIdRequestBody,
|
|
95
|
-
PatchPersonalizedMailMagazinesPersonalizedMailMagazineIdResponse,
|
|
96
|
-
GetCampaignsCampaignIdResponse,
|
|
97
|
-
PostCampaignsRequestBody,
|
|
98
|
-
PostCampaignsResponse,
|
|
99
|
-
GetCampaignsResponse
|
|
100
|
-
};
|
package/dist/chunk-GBESGCUB.mjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GetCampaignsCampaignIdResponse
|
|
3
|
-
} from "./chunk-7XSND6KI.mjs";
|
|
4
|
-
|
|
5
|
-
// src/fetch/campaignsId.ts
|
|
6
|
-
import {
|
|
7
|
-
createJsonFetcher,
|
|
8
|
-
__internal__requestUrl
|
|
9
|
-
} from "@readyfor/api-client-base";
|
|
10
|
-
var buildCampaignsIdGetFetcher = (requestInit) => createJsonFetcher(GetCampaignsCampaignIdResponse, { ...requestInit });
|
|
11
|
-
var getCampaignsId = (path, requestInit) => buildCampaignsIdGetFetcher()(
|
|
12
|
-
__internal__requestUrl("/api/campaigns/{id}", path),
|
|
13
|
-
{ ...requestInit, method: "GET" }
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
buildCampaignsIdGetFetcher,
|
|
18
|
-
getCampaignsId
|
|
19
|
-
};
|
package/dist/chunk-V6EPKCC7.mjs
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
PatchPersonalizedMailMagazinesPersonalizedMailMagazineIdResponse
|
|
3
|
-
} from "./chunk-7XSND6KI.mjs";
|
|
4
|
-
|
|
5
|
-
// src/fetch/personalizedMailMagazinesId.ts
|
|
6
|
-
import {
|
|
7
|
-
createJsonFetcher,
|
|
8
|
-
__internal__requestUrl
|
|
9
|
-
} from "@readyfor/api-client-base";
|
|
10
|
-
var buildPersonalizedMailMagazinesIdPatchFetcher = (requestInit) => createJsonFetcher(
|
|
11
|
-
PatchPersonalizedMailMagazinesPersonalizedMailMagazineIdResponse,
|
|
12
|
-
{ ...requestInit }
|
|
13
|
-
);
|
|
14
|
-
var patchPersonalizedMailMagazinesId = (path, requestBody, requestInit) => buildPersonalizedMailMagazinesIdPatchFetcher()(
|
|
15
|
-
__internal__requestUrl("/api/personalized_mail_magazines/{id}", path),
|
|
16
|
-
{
|
|
17
|
-
...requestInit,
|
|
18
|
-
method: "PATCH",
|
|
19
|
-
headers: { ...requestInit?.headers, "Content-Type": "application/json" },
|
|
20
|
-
body: JSON.stringify(requestBody)
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
|
|
24
|
-
export {
|
|
25
|
-
buildPersonalizedMailMagazinesIdPatchFetcher,
|
|
26
|
-
patchPersonalizedMailMagazinesId
|
|
27
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { paths } from '../schemaType.mjs';
|
|
2
|
-
import { ForceDig } from '@readyfor/api-client-base';
|
|
3
|
-
|
|
4
|
-
type PersonalizedMailMagazinesIdPatchOperation = paths["/api/personalized_mail_magazines/{id}"]["patch"];
|
|
5
|
-
type PersonalizedMailMagazinesIdPatchResponse = PersonalizedMailMagazinesIdPatchOperation["responses"]["200"]["content"]["application/json"];
|
|
6
|
-
declare const buildPersonalizedMailMagazinesIdPatchFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
7
|
-
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
8
|
-
__type: "PersonalizedMailMagazineCampaignDetail";
|
|
9
|
-
id: number;
|
|
10
|
-
title: string | null;
|
|
11
|
-
utmCampaign: string | null;
|
|
12
|
-
scheduledDeliveryAt: string | null;
|
|
13
|
-
target: {
|
|
14
|
-
csvFileName: string;
|
|
15
|
-
targetUsersCount: number;
|
|
16
|
-
excludedUsersCount: number;
|
|
17
|
-
} | null;
|
|
18
|
-
}>;
|
|
19
|
-
type PersonalizedMailMagazinesIdPatchPath = ForceDig<PersonalizedMailMagazinesIdPatchOperation, [
|
|
20
|
-
"parameters",
|
|
21
|
-
"path"
|
|
22
|
-
]>;
|
|
23
|
-
type PersonalizedMailMagazinesIdPatchRequestBody = ForceDig<PersonalizedMailMagazinesIdPatchOperation, [
|
|
24
|
-
"requestBody",
|
|
25
|
-
"content",
|
|
26
|
-
"application/json"
|
|
27
|
-
]>;
|
|
28
|
-
declare const patchPersonalizedMailMagazinesId: (path: PersonalizedMailMagazinesIdPatchPath, requestBody: PersonalizedMailMagazinesIdPatchRequestBody, requestInit?: RequestInit) => Promise<{
|
|
29
|
-
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
30
|
-
__type: "PersonalizedMailMagazineCampaignDetail";
|
|
31
|
-
id: number;
|
|
32
|
-
title: string | null;
|
|
33
|
-
utmCampaign: string | null;
|
|
34
|
-
scheduledDeliveryAt: string | null;
|
|
35
|
-
target: {
|
|
36
|
-
csvFileName: string;
|
|
37
|
-
targetUsersCount: number;
|
|
38
|
-
excludedUsersCount: number;
|
|
39
|
-
} | null;
|
|
40
|
-
}>;
|
|
41
|
-
|
|
42
|
-
export { type PersonalizedMailMagazinesIdPatchPath, type PersonalizedMailMagazinesIdPatchRequestBody, type PersonalizedMailMagazinesIdPatchResponse, buildPersonalizedMailMagazinesIdPatchFetcher, patchPersonalizedMailMagazinesId };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { paths } from '../schemaType.js';
|
|
2
|
-
import { ForceDig } from '@readyfor/api-client-base';
|
|
3
|
-
|
|
4
|
-
type PersonalizedMailMagazinesIdPatchOperation = paths["/api/personalized_mail_magazines/{id}"]["patch"];
|
|
5
|
-
type PersonalizedMailMagazinesIdPatchResponse = PersonalizedMailMagazinesIdPatchOperation["responses"]["200"]["content"]["application/json"];
|
|
6
|
-
declare const buildPersonalizedMailMagazinesIdPatchFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
7
|
-
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
8
|
-
__type: "PersonalizedMailMagazineCampaignDetail";
|
|
9
|
-
id: number;
|
|
10
|
-
title: string | null;
|
|
11
|
-
utmCampaign: string | null;
|
|
12
|
-
scheduledDeliveryAt: string | null;
|
|
13
|
-
target: {
|
|
14
|
-
csvFileName: string;
|
|
15
|
-
targetUsersCount: number;
|
|
16
|
-
excludedUsersCount: number;
|
|
17
|
-
} | null;
|
|
18
|
-
}>;
|
|
19
|
-
type PersonalizedMailMagazinesIdPatchPath = ForceDig<PersonalizedMailMagazinesIdPatchOperation, [
|
|
20
|
-
"parameters",
|
|
21
|
-
"path"
|
|
22
|
-
]>;
|
|
23
|
-
type PersonalizedMailMagazinesIdPatchRequestBody = ForceDig<PersonalizedMailMagazinesIdPatchOperation, [
|
|
24
|
-
"requestBody",
|
|
25
|
-
"content",
|
|
26
|
-
"application/json"
|
|
27
|
-
]>;
|
|
28
|
-
declare const patchPersonalizedMailMagazinesId: (path: PersonalizedMailMagazinesIdPatchPath, requestBody: PersonalizedMailMagazinesIdPatchRequestBody, requestInit?: RequestInit) => Promise<{
|
|
29
|
-
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
30
|
-
__type: "PersonalizedMailMagazineCampaignDetail";
|
|
31
|
-
id: number;
|
|
32
|
-
title: string | null;
|
|
33
|
-
utmCampaign: string | null;
|
|
34
|
-
scheduledDeliveryAt: string | null;
|
|
35
|
-
target: {
|
|
36
|
-
csvFileName: string;
|
|
37
|
-
targetUsersCount: number;
|
|
38
|
-
excludedUsersCount: number;
|
|
39
|
-
} | null;
|
|
40
|
-
}>;
|
|
41
|
-
|
|
42
|
-
export { type PersonalizedMailMagazinesIdPatchPath, type PersonalizedMailMagazinesIdPatchRequestBody, type PersonalizedMailMagazinesIdPatchResponse, buildPersonalizedMailMagazinesIdPatchFetcher, patchPersonalizedMailMagazinesId };
|
|
@@ -1,128 +0,0 @@
|
|
|
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 __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/fetch/personalizedMailMagazinesId.ts
|
|
21
|
-
var personalizedMailMagazinesId_exports = {};
|
|
22
|
-
__export(personalizedMailMagazinesId_exports, {
|
|
23
|
-
buildPersonalizedMailMagazinesIdPatchFetcher: () => buildPersonalizedMailMagazinesIdPatchFetcher,
|
|
24
|
-
patchPersonalizedMailMagazinesId: () => patchPersonalizedMailMagazinesId
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(personalizedMailMagazinesId_exports);
|
|
27
|
-
var import_api_client_base = require("@readyfor/api-client-base");
|
|
28
|
-
|
|
29
|
-
// src/components.ts
|
|
30
|
-
var import_zod = require("zod");
|
|
31
|
-
var PersonalizedMailMagazineTargetCsvRecord = import_zod.z.object({
|
|
32
|
-
userId: import_zod.z.number(),
|
|
33
|
-
projectId: import_zod.z.number(),
|
|
34
|
-
slotNumber: import_zod.z.number()
|
|
35
|
-
});
|
|
36
|
-
var PersonalizedMailMagazineCampaignDetailTarget = import_zod.z.object({
|
|
37
|
-
csvFileName: import_zod.z.string(),
|
|
38
|
-
targetUsersCount: import_zod.z.number(),
|
|
39
|
-
excludedUsersCount: import_zod.z.number()
|
|
40
|
-
});
|
|
41
|
-
var CampaignStatus = import_zod.z.union([
|
|
42
|
-
import_zod.z.literal("draft"),
|
|
43
|
-
import_zod.z.literal("scheduled"),
|
|
44
|
-
import_zod.z.literal("delivering"),
|
|
45
|
-
import_zod.z.literal("delivered"),
|
|
46
|
-
import_zod.z.literal("deliveryFailed")
|
|
47
|
-
]);
|
|
48
|
-
var PersonalizedMailMagazineTargetCsv = import_zod.z.object({
|
|
49
|
-
fileName: import_zod.z.string(),
|
|
50
|
-
records: import_zod.z.array(PersonalizedMailMagazineTargetCsvRecord)
|
|
51
|
-
});
|
|
52
|
-
var CurationMailMagazineCampaignDetail = import_zod.z.object({
|
|
53
|
-
__type: import_zod.z.literal("CurationMailMagazineCampaignDetail"),
|
|
54
|
-
id: import_zod.z.number()
|
|
55
|
-
});
|
|
56
|
-
var PersonalizedMailMagazineCampaignDetail = import_zod.z.object({
|
|
57
|
-
__type: import_zod.z.literal("PersonalizedMailMagazineCampaignDetail"),
|
|
58
|
-
id: import_zod.z.number(),
|
|
59
|
-
status: CampaignStatus,
|
|
60
|
-
title: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
61
|
-
utmCampaign: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
62
|
-
scheduledDeliveryAt: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
63
|
-
target: import_zod.z.union([PersonalizedMailMagazineCampaignDetailTarget, import_zod.z.null()])
|
|
64
|
-
});
|
|
65
|
-
var CampaignKind = import_zod.z.union([
|
|
66
|
-
import_zod.z.literal("curationMailMagazine"),
|
|
67
|
-
import_zod.z.literal("personalizedMailMagazine")
|
|
68
|
-
]);
|
|
69
|
-
var PersonalizedMailMagazineFormData = import_zod.z.object({
|
|
70
|
-
title: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
71
|
-
utmCampaign: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
72
|
-
scheduledDeliveryAt: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
73
|
-
targetCsv: import_zod.z.union([PersonalizedMailMagazineTargetCsv, import_zod.z.null()])
|
|
74
|
-
});
|
|
75
|
-
var CampaignDetail = import_zod.z.union([
|
|
76
|
-
PersonalizedMailMagazineCampaignDetail,
|
|
77
|
-
CurationMailMagazineCampaignDetail
|
|
78
|
-
]);
|
|
79
|
-
var Pagination = import_zod.z.object({
|
|
80
|
-
totalPages: import_zod.z.number(),
|
|
81
|
-
totalCount: import_zod.z.number(),
|
|
82
|
-
currentPerPage: import_zod.z.number(),
|
|
83
|
-
currentPage: import_zod.z.number(),
|
|
84
|
-
prevPage: import_zod.z.union([import_zod.z.number(), import_zod.z.null()]),
|
|
85
|
-
nextPage: import_zod.z.union([import_zod.z.number(), import_zod.z.null()]),
|
|
86
|
-
isFirstPage: import_zod.z.boolean(),
|
|
87
|
-
isLastPage: import_zod.z.boolean()
|
|
88
|
-
});
|
|
89
|
-
var Campaign = import_zod.z.object({
|
|
90
|
-
id: import_zod.z.number(),
|
|
91
|
-
title: import_zod.z.optional(import_zod.z.union([import_zod.z.string(), import_zod.z.null()])),
|
|
92
|
-
status: CampaignStatus,
|
|
93
|
-
kind: CampaignKind,
|
|
94
|
-
deliveryAt: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
95
|
-
lastEditorName: import_zod.z.string(),
|
|
96
|
-
lastEditedAt: import_zod.z.string()
|
|
97
|
-
});
|
|
98
|
-
var PatchPersonalizedMailMagazinesPersonalizedMailMagazineIdRequestBody = import_zod.z.object({ formData: PersonalizedMailMagazineFormData });
|
|
99
|
-
var PatchPersonalizedMailMagazinesPersonalizedMailMagazineIdResponse = PersonalizedMailMagazineCampaignDetail;
|
|
100
|
-
var GetCampaignsCampaignIdResponse = import_zod.z.object({
|
|
101
|
-
campaignDetail: CampaignDetail
|
|
102
|
-
});
|
|
103
|
-
var PostCampaignsRequestBody = import_zod.z.object({ kind: CampaignKind });
|
|
104
|
-
var PostCampaignsResponse = import_zod.z.object({ id: import_zod.z.number() });
|
|
105
|
-
var GetCampaignsResponse = import_zod.z.object({
|
|
106
|
-
campaigns: import_zod.z.array(Campaign),
|
|
107
|
-
pagination: Pagination
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
// src/fetch/personalizedMailMagazinesId.ts
|
|
111
|
-
var buildPersonalizedMailMagazinesIdPatchFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(
|
|
112
|
-
PatchPersonalizedMailMagazinesPersonalizedMailMagazineIdResponse,
|
|
113
|
-
{ ...requestInit }
|
|
114
|
-
);
|
|
115
|
-
var patchPersonalizedMailMagazinesId = (path, requestBody, requestInit) => buildPersonalizedMailMagazinesIdPatchFetcher()(
|
|
116
|
-
(0, import_api_client_base.__internal__requestUrl)("/api/personalized_mail_magazines/{id}", path),
|
|
117
|
-
{
|
|
118
|
-
...requestInit,
|
|
119
|
-
method: "PATCH",
|
|
120
|
-
headers: { ...requestInit?.headers, "Content-Type": "application/json" },
|
|
121
|
-
body: JSON.stringify(requestBody)
|
|
122
|
-
}
|
|
123
|
-
);
|
|
124
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
125
|
-
0 && (module.exports = {
|
|
126
|
-
buildPersonalizedMailMagazinesIdPatchFetcher,
|
|
127
|
-
patchPersonalizedMailMagazinesId
|
|
128
|
-
});
|
|
File without changes
|