@readyfor/api-client-pigeon 0.164.0 → 0.165.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-MAHZKOWV.mjs → chunk-IP4VOBPR.mjs} +1 -1
- package/dist/{chunk-L4D5MI7T.mjs → chunk-NPGTR3T2.mjs} +3 -3
- package/dist/{chunk-BZW5HHND.mjs → chunk-W3XGHP3T.mjs} +1 -1
- package/dist/components.d.mts +10 -10
- package/dist/components.d.ts +10 -10
- package/dist/components.js +4 -4
- package/dist/components.mjs +3 -3
- package/dist/fetch/campaigns.d.mts +2 -2
- package/dist/fetch/campaigns.d.ts +2 -2
- package/dist/fetch/campaigns.js +2 -2
- package/dist/fetch/campaigns.mjs +2 -2
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/index.mjs +3 -3
- package/dist/hooks/useCampaigns.js +2 -2
- package/dist/hooks/useCampaigns.mjs +3 -3
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/dist/schemaType.d.mts +7 -7
- package/dist/schemaType.d.ts +7 -7
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/components.ts
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
var
|
|
3
|
+
var CampaignKind = z.union([
|
|
4
4
|
z.literal("curationMailMagazine"),
|
|
5
5
|
z.literal("personalizedMailMagazine")
|
|
6
6
|
]);
|
|
@@ -25,7 +25,7 @@ var Campaign = z.object({
|
|
|
25
25
|
id: z.number(),
|
|
26
26
|
title: z.optional(z.union([z.string(), z.null()])),
|
|
27
27
|
status: CampaignStatus,
|
|
28
|
-
|
|
28
|
+
kind: CampaignKind,
|
|
29
29
|
deliveryAt: z.union([z.string(), z.null()]),
|
|
30
30
|
lastEditorName: z.string(),
|
|
31
31
|
lastEditedAt: z.string()
|
|
@@ -36,7 +36,7 @@ var GetCampaigns = z.object({
|
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
CampaignKind,
|
|
40
40
|
CampaignStatus,
|
|
41
41
|
Pagination,
|
|
42
42
|
Campaign,
|
package/dist/components.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
-
declare const
|
|
3
|
+
declare const CampaignKind: z.ZodUnion<[z.ZodLiteral<"curationMailMagazine">, z.ZodLiteral<"personalizedMailMagazine">]>;
|
|
4
4
|
declare const CampaignStatus: z.ZodUnion<[z.ZodLiteral<"draft">, z.ZodLiteral<"scheduled">, z.ZodLiteral<"delivering">, z.ZodLiteral<"delivered">, z.ZodLiteral<"deliveryFailed">]>;
|
|
5
5
|
declare const Pagination: z.ZodObject<{
|
|
6
6
|
totalPages: z.ZodNumber;
|
|
@@ -34,22 +34,22 @@ declare const Campaign: z.ZodObject<{
|
|
|
34
34
|
id: z.ZodNumber;
|
|
35
35
|
title: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
36
36
|
status: z.ZodUnion<[z.ZodLiteral<"draft">, z.ZodLiteral<"scheduled">, z.ZodLiteral<"delivering">, z.ZodLiteral<"delivered">, z.ZodLiteral<"deliveryFailed">]>;
|
|
37
|
-
|
|
37
|
+
kind: z.ZodUnion<[z.ZodLiteral<"curationMailMagazine">, z.ZodLiteral<"personalizedMailMagazine">]>;
|
|
38
38
|
deliveryAt: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
39
39
|
lastEditorName: z.ZodString;
|
|
40
40
|
lastEditedAt: z.ZodString;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
42
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
43
|
-
type: "curationMailMagazine" | "personalizedMailMagazine";
|
|
44
43
|
id: number;
|
|
44
|
+
kind: "curationMailMagazine" | "personalizedMailMagazine";
|
|
45
45
|
deliveryAt: string | null;
|
|
46
46
|
lastEditorName: string;
|
|
47
47
|
lastEditedAt: string;
|
|
48
48
|
title?: string | null | undefined;
|
|
49
49
|
}, {
|
|
50
50
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
51
|
-
type: "curationMailMagazine" | "personalizedMailMagazine";
|
|
52
51
|
id: number;
|
|
52
|
+
kind: "curationMailMagazine" | "personalizedMailMagazine";
|
|
53
53
|
deliveryAt: string | null;
|
|
54
54
|
lastEditorName: string;
|
|
55
55
|
lastEditedAt: string;
|
|
@@ -60,22 +60,22 @@ declare const GetCampaigns: z.ZodObject<{
|
|
|
60
60
|
id: z.ZodNumber;
|
|
61
61
|
title: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
62
62
|
status: z.ZodUnion<[z.ZodLiteral<"draft">, z.ZodLiteral<"scheduled">, z.ZodLiteral<"delivering">, z.ZodLiteral<"delivered">, z.ZodLiteral<"deliveryFailed">]>;
|
|
63
|
-
|
|
63
|
+
kind: z.ZodUnion<[z.ZodLiteral<"curationMailMagazine">, z.ZodLiteral<"personalizedMailMagazine">]>;
|
|
64
64
|
deliveryAt: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
65
65
|
lastEditorName: z.ZodString;
|
|
66
66
|
lastEditedAt: z.ZodString;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
68
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
69
|
-
type: "curationMailMagazine" | "personalizedMailMagazine";
|
|
70
69
|
id: number;
|
|
70
|
+
kind: "curationMailMagazine" | "personalizedMailMagazine";
|
|
71
71
|
deliveryAt: string | null;
|
|
72
72
|
lastEditorName: string;
|
|
73
73
|
lastEditedAt: string;
|
|
74
74
|
title?: string | null | undefined;
|
|
75
75
|
}, {
|
|
76
76
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
77
|
-
type: "curationMailMagazine" | "personalizedMailMagazine";
|
|
78
77
|
id: number;
|
|
78
|
+
kind: "curationMailMagazine" | "personalizedMailMagazine";
|
|
79
79
|
deliveryAt: string | null;
|
|
80
80
|
lastEditorName: string;
|
|
81
81
|
lastEditedAt: string;
|
|
@@ -112,8 +112,8 @@ declare const GetCampaigns: z.ZodObject<{
|
|
|
112
112
|
}, "strip", z.ZodTypeAny, {
|
|
113
113
|
campaigns: {
|
|
114
114
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
115
|
-
type: "curationMailMagazine" | "personalizedMailMagazine";
|
|
116
115
|
id: number;
|
|
116
|
+
kind: "curationMailMagazine" | "personalizedMailMagazine";
|
|
117
117
|
deliveryAt: string | null;
|
|
118
118
|
lastEditorName: string;
|
|
119
119
|
lastEditedAt: string;
|
|
@@ -132,8 +132,8 @@ declare const GetCampaigns: z.ZodObject<{
|
|
|
132
132
|
}, {
|
|
133
133
|
campaigns: {
|
|
134
134
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
135
|
-
type: "curationMailMagazine" | "personalizedMailMagazine";
|
|
136
135
|
id: number;
|
|
136
|
+
kind: "curationMailMagazine" | "personalizedMailMagazine";
|
|
137
137
|
deliveryAt: string | null;
|
|
138
138
|
lastEditorName: string;
|
|
139
139
|
lastEditedAt: string;
|
|
@@ -151,4 +151,4 @@ declare const GetCampaigns: z.ZodObject<{
|
|
|
151
151
|
};
|
|
152
152
|
}>;
|
|
153
153
|
|
|
154
|
-
export { Campaign,
|
|
154
|
+
export { Campaign, CampaignKind, CampaignStatus, GetCampaigns, Pagination };
|
package/dist/components.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
-
declare const
|
|
3
|
+
declare const CampaignKind: z.ZodUnion<[z.ZodLiteral<"curationMailMagazine">, z.ZodLiteral<"personalizedMailMagazine">]>;
|
|
4
4
|
declare const CampaignStatus: z.ZodUnion<[z.ZodLiteral<"draft">, z.ZodLiteral<"scheduled">, z.ZodLiteral<"delivering">, z.ZodLiteral<"delivered">, z.ZodLiteral<"deliveryFailed">]>;
|
|
5
5
|
declare const Pagination: z.ZodObject<{
|
|
6
6
|
totalPages: z.ZodNumber;
|
|
@@ -34,22 +34,22 @@ declare const Campaign: z.ZodObject<{
|
|
|
34
34
|
id: z.ZodNumber;
|
|
35
35
|
title: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
36
36
|
status: z.ZodUnion<[z.ZodLiteral<"draft">, z.ZodLiteral<"scheduled">, z.ZodLiteral<"delivering">, z.ZodLiteral<"delivered">, z.ZodLiteral<"deliveryFailed">]>;
|
|
37
|
-
|
|
37
|
+
kind: z.ZodUnion<[z.ZodLiteral<"curationMailMagazine">, z.ZodLiteral<"personalizedMailMagazine">]>;
|
|
38
38
|
deliveryAt: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
39
39
|
lastEditorName: z.ZodString;
|
|
40
40
|
lastEditedAt: z.ZodString;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
42
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
43
|
-
type: "curationMailMagazine" | "personalizedMailMagazine";
|
|
44
43
|
id: number;
|
|
44
|
+
kind: "curationMailMagazine" | "personalizedMailMagazine";
|
|
45
45
|
deliveryAt: string | null;
|
|
46
46
|
lastEditorName: string;
|
|
47
47
|
lastEditedAt: string;
|
|
48
48
|
title?: string | null | undefined;
|
|
49
49
|
}, {
|
|
50
50
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
51
|
-
type: "curationMailMagazine" | "personalizedMailMagazine";
|
|
52
51
|
id: number;
|
|
52
|
+
kind: "curationMailMagazine" | "personalizedMailMagazine";
|
|
53
53
|
deliveryAt: string | null;
|
|
54
54
|
lastEditorName: string;
|
|
55
55
|
lastEditedAt: string;
|
|
@@ -60,22 +60,22 @@ declare const GetCampaigns: z.ZodObject<{
|
|
|
60
60
|
id: z.ZodNumber;
|
|
61
61
|
title: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
62
62
|
status: z.ZodUnion<[z.ZodLiteral<"draft">, z.ZodLiteral<"scheduled">, z.ZodLiteral<"delivering">, z.ZodLiteral<"delivered">, z.ZodLiteral<"deliveryFailed">]>;
|
|
63
|
-
|
|
63
|
+
kind: z.ZodUnion<[z.ZodLiteral<"curationMailMagazine">, z.ZodLiteral<"personalizedMailMagazine">]>;
|
|
64
64
|
deliveryAt: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
65
65
|
lastEditorName: z.ZodString;
|
|
66
66
|
lastEditedAt: z.ZodString;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
68
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
69
|
-
type: "curationMailMagazine" | "personalizedMailMagazine";
|
|
70
69
|
id: number;
|
|
70
|
+
kind: "curationMailMagazine" | "personalizedMailMagazine";
|
|
71
71
|
deliveryAt: string | null;
|
|
72
72
|
lastEditorName: string;
|
|
73
73
|
lastEditedAt: string;
|
|
74
74
|
title?: string | null | undefined;
|
|
75
75
|
}, {
|
|
76
76
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
77
|
-
type: "curationMailMagazine" | "personalizedMailMagazine";
|
|
78
77
|
id: number;
|
|
78
|
+
kind: "curationMailMagazine" | "personalizedMailMagazine";
|
|
79
79
|
deliveryAt: string | null;
|
|
80
80
|
lastEditorName: string;
|
|
81
81
|
lastEditedAt: string;
|
|
@@ -112,8 +112,8 @@ declare const GetCampaigns: z.ZodObject<{
|
|
|
112
112
|
}, "strip", z.ZodTypeAny, {
|
|
113
113
|
campaigns: {
|
|
114
114
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
115
|
-
type: "curationMailMagazine" | "personalizedMailMagazine";
|
|
116
115
|
id: number;
|
|
116
|
+
kind: "curationMailMagazine" | "personalizedMailMagazine";
|
|
117
117
|
deliveryAt: string | null;
|
|
118
118
|
lastEditorName: string;
|
|
119
119
|
lastEditedAt: string;
|
|
@@ -132,8 +132,8 @@ declare const GetCampaigns: z.ZodObject<{
|
|
|
132
132
|
}, {
|
|
133
133
|
campaigns: {
|
|
134
134
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
135
|
-
type: "curationMailMagazine" | "personalizedMailMagazine";
|
|
136
135
|
id: number;
|
|
136
|
+
kind: "curationMailMagazine" | "personalizedMailMagazine";
|
|
137
137
|
deliveryAt: string | null;
|
|
138
138
|
lastEditorName: string;
|
|
139
139
|
lastEditedAt: string;
|
|
@@ -151,4 +151,4 @@ declare const GetCampaigns: z.ZodObject<{
|
|
|
151
151
|
};
|
|
152
152
|
}>;
|
|
153
153
|
|
|
154
|
-
export { Campaign,
|
|
154
|
+
export { Campaign, CampaignKind, CampaignStatus, GetCampaigns, Pagination };
|
package/dist/components.js
CHANGED
|
@@ -21,14 +21,14 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var components_exports = {};
|
|
22
22
|
__export(components_exports, {
|
|
23
23
|
Campaign: () => Campaign,
|
|
24
|
+
CampaignKind: () => CampaignKind,
|
|
24
25
|
CampaignStatus: () => CampaignStatus,
|
|
25
|
-
CampaignType: () => CampaignType,
|
|
26
26
|
GetCampaigns: () => GetCampaigns,
|
|
27
27
|
Pagination: () => Pagination
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(components_exports);
|
|
30
30
|
var import_zod = require("zod");
|
|
31
|
-
var
|
|
31
|
+
var CampaignKind = import_zod.z.union([
|
|
32
32
|
import_zod.z.literal("curationMailMagazine"),
|
|
33
33
|
import_zod.z.literal("personalizedMailMagazine")
|
|
34
34
|
]);
|
|
@@ -53,7 +53,7 @@ var Campaign = import_zod.z.object({
|
|
|
53
53
|
id: import_zod.z.number(),
|
|
54
54
|
title: import_zod.z.optional(import_zod.z.union([import_zod.z.string(), import_zod.z.null()])),
|
|
55
55
|
status: CampaignStatus,
|
|
56
|
-
|
|
56
|
+
kind: CampaignKind,
|
|
57
57
|
deliveryAt: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
58
58
|
lastEditorName: import_zod.z.string(),
|
|
59
59
|
lastEditedAt: import_zod.z.string()
|
|
@@ -65,8 +65,8 @@ var GetCampaigns = import_zod.z.object({
|
|
|
65
65
|
// Annotate the CommonJS export names for ESM import in node:
|
|
66
66
|
0 && (module.exports = {
|
|
67
67
|
Campaign,
|
|
68
|
+
CampaignKind,
|
|
68
69
|
CampaignStatus,
|
|
69
|
-
CampaignType,
|
|
70
70
|
GetCampaigns,
|
|
71
71
|
Pagination
|
|
72
72
|
});
|
package/dist/components.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Campaign,
|
|
3
|
+
CampaignKind,
|
|
3
4
|
CampaignStatus,
|
|
4
|
-
CampaignType,
|
|
5
5
|
GetCampaigns,
|
|
6
6
|
Pagination
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NPGTR3T2.mjs";
|
|
8
8
|
export {
|
|
9
9
|
Campaign,
|
|
10
|
+
CampaignKind,
|
|
10
11
|
CampaignStatus,
|
|
11
|
-
CampaignType,
|
|
12
12
|
GetCampaigns,
|
|
13
13
|
Pagination
|
|
14
14
|
};
|
|
@@ -6,8 +6,8 @@ type CampaignsGetResponse = CampaignsGetOperation["responses"]["200"]["content"]
|
|
|
6
6
|
declare const buildCampaignsGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
7
7
|
campaigns: {
|
|
8
8
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
9
|
-
type: "curationMailMagazine" | "personalizedMailMagazine";
|
|
10
9
|
id: number;
|
|
10
|
+
kind: "curationMailMagazine" | "personalizedMailMagazine";
|
|
11
11
|
deliveryAt: string | null;
|
|
12
12
|
lastEditorName: string;
|
|
13
13
|
lastEditedAt: string;
|
|
@@ -31,8 +31,8 @@ type CampaignsGetQuery = ForceDig<CampaignsGetOperation, [
|
|
|
31
31
|
declare const getCampaigns: (query: CampaignsGetQuery, requestInit?: RequestInit) => Promise<{
|
|
32
32
|
campaigns: {
|
|
33
33
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
34
|
-
type: "curationMailMagazine" | "personalizedMailMagazine";
|
|
35
34
|
id: number;
|
|
35
|
+
kind: "curationMailMagazine" | "personalizedMailMagazine";
|
|
36
36
|
deliveryAt: string | null;
|
|
37
37
|
lastEditorName: string;
|
|
38
38
|
lastEditedAt: string;
|
|
@@ -6,8 +6,8 @@ type CampaignsGetResponse = CampaignsGetOperation["responses"]["200"]["content"]
|
|
|
6
6
|
declare const buildCampaignsGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
7
7
|
campaigns: {
|
|
8
8
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
9
|
-
type: "curationMailMagazine" | "personalizedMailMagazine";
|
|
10
9
|
id: number;
|
|
10
|
+
kind: "curationMailMagazine" | "personalizedMailMagazine";
|
|
11
11
|
deliveryAt: string | null;
|
|
12
12
|
lastEditorName: string;
|
|
13
13
|
lastEditedAt: string;
|
|
@@ -31,8 +31,8 @@ type CampaignsGetQuery = ForceDig<CampaignsGetOperation, [
|
|
|
31
31
|
declare const getCampaigns: (query: CampaignsGetQuery, requestInit?: RequestInit) => Promise<{
|
|
32
32
|
campaigns: {
|
|
33
33
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
34
|
-
type: "curationMailMagazine" | "personalizedMailMagazine";
|
|
35
34
|
id: number;
|
|
35
|
+
kind: "curationMailMagazine" | "personalizedMailMagazine";
|
|
36
36
|
deliveryAt: string | null;
|
|
37
37
|
lastEditorName: string;
|
|
38
38
|
lastEditedAt: string;
|
package/dist/fetch/campaigns.js
CHANGED
|
@@ -28,7 +28,7 @@ var import_api_client_base = require("@readyfor/api-client-base");
|
|
|
28
28
|
|
|
29
29
|
// src/components.ts
|
|
30
30
|
var import_zod = require("zod");
|
|
31
|
-
var
|
|
31
|
+
var CampaignKind = import_zod.z.union([
|
|
32
32
|
import_zod.z.literal("curationMailMagazine"),
|
|
33
33
|
import_zod.z.literal("personalizedMailMagazine")
|
|
34
34
|
]);
|
|
@@ -53,7 +53,7 @@ var Campaign = import_zod.z.object({
|
|
|
53
53
|
id: import_zod.z.number(),
|
|
54
54
|
title: import_zod.z.optional(import_zod.z.union([import_zod.z.string(), import_zod.z.null()])),
|
|
55
55
|
status: CampaignStatus,
|
|
56
|
-
|
|
56
|
+
kind: CampaignKind,
|
|
57
57
|
deliveryAt: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
58
58
|
lastEditorName: import_zod.z.string(),
|
|
59
59
|
lastEditedAt: import_zod.z.string()
|
package/dist/fetch/campaigns.mjs
CHANGED
package/dist/hooks/index.js
CHANGED
|
@@ -45,7 +45,7 @@ var import_react = require("@readyfor/api-client-base/react");
|
|
|
45
45
|
|
|
46
46
|
// src/components.ts
|
|
47
47
|
var import_zod = require("zod");
|
|
48
|
-
var
|
|
48
|
+
var CampaignKind = import_zod.z.union([
|
|
49
49
|
import_zod.z.literal("curationMailMagazine"),
|
|
50
50
|
import_zod.z.literal("personalizedMailMagazine")
|
|
51
51
|
]);
|
|
@@ -70,7 +70,7 @@ var Campaign = import_zod.z.object({
|
|
|
70
70
|
id: import_zod.z.number(),
|
|
71
71
|
title: import_zod.z.optional(import_zod.z.union([import_zod.z.string(), import_zod.z.null()])),
|
|
72
72
|
status: CampaignStatus,
|
|
73
|
-
|
|
73
|
+
kind: CampaignKind,
|
|
74
74
|
deliveryAt: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
75
75
|
lastEditorName: import_zod.z.string(),
|
|
76
76
|
lastEditedAt: import_zod.z.string()
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
useCampaigns,
|
|
3
3
|
useCampaignsImmutable,
|
|
4
4
|
useCampaignsInfinite
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-W3XGHP3T.mjs";
|
|
6
6
|
import "../chunk-WY7GF7TX.mjs";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-IP4VOBPR.mjs";
|
|
8
|
+
import "../chunk-NPGTR3T2.mjs";
|
|
9
9
|
export {
|
|
10
10
|
useCampaigns,
|
|
11
11
|
useCampaignsImmutable,
|
|
@@ -43,7 +43,7 @@ var import_react = require("@readyfor/api-client-base/react");
|
|
|
43
43
|
|
|
44
44
|
// src/components.ts
|
|
45
45
|
var import_zod = require("zod");
|
|
46
|
-
var
|
|
46
|
+
var CampaignKind = import_zod.z.union([
|
|
47
47
|
import_zod.z.literal("curationMailMagazine"),
|
|
48
48
|
import_zod.z.literal("personalizedMailMagazine")
|
|
49
49
|
]);
|
|
@@ -68,7 +68,7 @@ var Campaign = import_zod.z.object({
|
|
|
68
68
|
id: import_zod.z.number(),
|
|
69
69
|
title: import_zod.z.optional(import_zod.z.union([import_zod.z.string(), import_zod.z.null()])),
|
|
70
70
|
status: CampaignStatus,
|
|
71
|
-
|
|
71
|
+
kind: CampaignKind,
|
|
72
72
|
deliveryAt: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
73
73
|
lastEditorName: import_zod.z.string(),
|
|
74
74
|
lastEditedAt: import_zod.z.string()
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
useCampaigns,
|
|
3
3
|
useCampaignsImmutable,
|
|
4
4
|
useCampaignsInfinite
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-W3XGHP3T.mjs";
|
|
6
6
|
import "../chunk-WY7GF7TX.mjs";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-IP4VOBPR.mjs";
|
|
8
|
+
import "../chunk-NPGTR3T2.mjs";
|
|
9
9
|
export {
|
|
10
10
|
useCampaigns,
|
|
11
11
|
useCampaignsImmutable,
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { $defs, components, external, operations, paths, webhooks } from './schemaType.mjs';
|
|
2
|
-
export { Campaign,
|
|
2
|
+
export { Campaign, CampaignKind, CampaignStatus, GetCampaigns, Pagination } from './components.mjs';
|
|
3
3
|
export { CampaignsGetQuery, CampaignsGetResponse, buildCampaignsGetFetcher, getCampaigns } from './fetch/campaigns.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '@readyfor/api-client-base';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { $defs, components, external, operations, paths, webhooks } from './schemaType.js';
|
|
2
|
-
export { Campaign,
|
|
2
|
+
export { Campaign, CampaignKind, CampaignStatus, GetCampaigns, Pagination } from './components.js';
|
|
3
3
|
export { CampaignsGetQuery, CampaignsGetResponse, buildCampaignsGetFetcher, getCampaigns } from './fetch/campaigns.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '@readyfor/api-client-base';
|
package/dist/index.js
CHANGED
|
@@ -21,8 +21,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var src_exports = {};
|
|
22
22
|
__export(src_exports, {
|
|
23
23
|
Campaign: () => Campaign,
|
|
24
|
+
CampaignKind: () => CampaignKind,
|
|
24
25
|
CampaignStatus: () => CampaignStatus,
|
|
25
|
-
CampaignType: () => CampaignType,
|
|
26
26
|
GetCampaigns: () => GetCampaigns,
|
|
27
27
|
Pagination: () => Pagination,
|
|
28
28
|
buildCampaignsGetFetcher: () => buildCampaignsGetFetcher,
|
|
@@ -32,7 +32,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
32
32
|
|
|
33
33
|
// src/components.ts
|
|
34
34
|
var import_zod = require("zod");
|
|
35
|
-
var
|
|
35
|
+
var CampaignKind = import_zod.z.union([
|
|
36
36
|
import_zod.z.literal("curationMailMagazine"),
|
|
37
37
|
import_zod.z.literal("personalizedMailMagazine")
|
|
38
38
|
]);
|
|
@@ -57,7 +57,7 @@ var Campaign = import_zod.z.object({
|
|
|
57
57
|
id: import_zod.z.number(),
|
|
58
58
|
title: import_zod.z.optional(import_zod.z.union([import_zod.z.string(), import_zod.z.null()])),
|
|
59
59
|
status: CampaignStatus,
|
|
60
|
-
|
|
60
|
+
kind: CampaignKind,
|
|
61
61
|
deliveryAt: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
62
62
|
lastEditorName: import_zod.z.string(),
|
|
63
63
|
lastEditedAt: import_zod.z.string()
|
|
@@ -77,8 +77,8 @@ var getCampaigns = (query, requestInit) => buildCampaignsGetFetcher()(
|
|
|
77
77
|
// Annotate the CommonJS export names for ESM import in node:
|
|
78
78
|
0 && (module.exports = {
|
|
79
79
|
Campaign,
|
|
80
|
+
CampaignKind,
|
|
80
81
|
CampaignStatus,
|
|
81
|
-
CampaignType,
|
|
82
82
|
GetCampaigns,
|
|
83
83
|
Pagination,
|
|
84
84
|
buildCampaignsGetFetcher,
|
package/dist/index.mjs
CHANGED
|
@@ -2,18 +2,18 @@ import "./chunk-WY7GF7TX.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
buildCampaignsGetFetcher,
|
|
4
4
|
getCampaigns
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IP4VOBPR.mjs";
|
|
6
6
|
import {
|
|
7
7
|
Campaign,
|
|
8
|
+
CampaignKind,
|
|
8
9
|
CampaignStatus,
|
|
9
|
-
CampaignType,
|
|
10
10
|
GetCampaigns,
|
|
11
11
|
Pagination
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NPGTR3T2.mjs";
|
|
13
13
|
export {
|
|
14
14
|
Campaign,
|
|
15
|
+
CampaignKind,
|
|
15
16
|
CampaignStatus,
|
|
16
|
-
CampaignType,
|
|
17
17
|
GetCampaigns,
|
|
18
18
|
Pagination,
|
|
19
19
|
buildCampaignsGetFetcher,
|
package/dist/schemaType.d.mts
CHANGED
|
@@ -27,20 +27,20 @@ interface components {
|
|
|
27
27
|
* "campaigns": [
|
|
28
28
|
* {
|
|
29
29
|
* "lastEditorName": "lastEditorName",
|
|
30
|
+
* "kind": "curationMailMagazine",
|
|
30
31
|
* "deliveryAt": "2000-01-23T04:56:07.000Z",
|
|
31
32
|
* "lastEditedAt": "2000-01-23T04:56:07.000Z",
|
|
32
33
|
* "id": 0,
|
|
33
34
|
* "title": "title",
|
|
34
|
-
* "type": "curationMailMagazine",
|
|
35
35
|
* "status": "draft"
|
|
36
36
|
* },
|
|
37
37
|
* {
|
|
38
38
|
* "lastEditorName": "lastEditorName",
|
|
39
|
+
* "kind": "curationMailMagazine",
|
|
39
40
|
* "deliveryAt": "2000-01-23T04:56:07.000Z",
|
|
40
41
|
* "lastEditedAt": "2000-01-23T04:56:07.000Z",
|
|
41
42
|
* "id": 0,
|
|
42
43
|
* "title": "title",
|
|
43
|
-
* "type": "curationMailMagazine",
|
|
44
44
|
* "status": "draft"
|
|
45
45
|
* }
|
|
46
46
|
* ]
|
|
@@ -54,11 +54,11 @@ interface components {
|
|
|
54
54
|
* Campaign
|
|
55
55
|
* @example {
|
|
56
56
|
* "lastEditorName": "lastEditorName",
|
|
57
|
+
* "kind": "curationMailMagazine",
|
|
57
58
|
* "deliveryAt": "2000-01-23T04:56:07.000Z",
|
|
58
59
|
* "lastEditedAt": "2000-01-23T04:56:07.000Z",
|
|
59
60
|
* "id": 0,
|
|
60
61
|
* "title": "title",
|
|
61
|
-
* "type": "curationMailMagazine",
|
|
62
62
|
* "status": "draft"
|
|
63
63
|
* }
|
|
64
64
|
*/
|
|
@@ -66,7 +66,7 @@ interface components {
|
|
|
66
66
|
id: number;
|
|
67
67
|
title?: string | null;
|
|
68
68
|
status: components["schemas"]["CampaignStatus"];
|
|
69
|
-
|
|
69
|
+
kind: components["schemas"]["CampaignKind"];
|
|
70
70
|
/** Format: date-time */
|
|
71
71
|
deliveryAt: string | null;
|
|
72
72
|
lastEditorName: string;
|
|
@@ -79,10 +79,10 @@ interface components {
|
|
|
79
79
|
*/
|
|
80
80
|
CampaignStatus: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* CampaignKind
|
|
83
83
|
* @enum {string}
|
|
84
84
|
*/
|
|
85
|
-
|
|
85
|
+
CampaignKind: "curationMailMagazine" | "personalizedMailMagazine";
|
|
86
86
|
/**
|
|
87
87
|
* Pagination
|
|
88
88
|
* @description ページネーション
|
|
@@ -131,7 +131,7 @@ interface operations {
|
|
|
131
131
|
query?: {
|
|
132
132
|
title?: string;
|
|
133
133
|
status?: components["schemas"]["CampaignStatus"];
|
|
134
|
-
|
|
134
|
+
kind?: components["schemas"]["CampaignKind"];
|
|
135
135
|
deliveryAtFrom?: string;
|
|
136
136
|
deliveryAtTo?: string;
|
|
137
137
|
page?: number;
|
package/dist/schemaType.d.ts
CHANGED
|
@@ -27,20 +27,20 @@ interface components {
|
|
|
27
27
|
* "campaigns": [
|
|
28
28
|
* {
|
|
29
29
|
* "lastEditorName": "lastEditorName",
|
|
30
|
+
* "kind": "curationMailMagazine",
|
|
30
31
|
* "deliveryAt": "2000-01-23T04:56:07.000Z",
|
|
31
32
|
* "lastEditedAt": "2000-01-23T04:56:07.000Z",
|
|
32
33
|
* "id": 0,
|
|
33
34
|
* "title": "title",
|
|
34
|
-
* "type": "curationMailMagazine",
|
|
35
35
|
* "status": "draft"
|
|
36
36
|
* },
|
|
37
37
|
* {
|
|
38
38
|
* "lastEditorName": "lastEditorName",
|
|
39
|
+
* "kind": "curationMailMagazine",
|
|
39
40
|
* "deliveryAt": "2000-01-23T04:56:07.000Z",
|
|
40
41
|
* "lastEditedAt": "2000-01-23T04:56:07.000Z",
|
|
41
42
|
* "id": 0,
|
|
42
43
|
* "title": "title",
|
|
43
|
-
* "type": "curationMailMagazine",
|
|
44
44
|
* "status": "draft"
|
|
45
45
|
* }
|
|
46
46
|
* ]
|
|
@@ -54,11 +54,11 @@ interface components {
|
|
|
54
54
|
* Campaign
|
|
55
55
|
* @example {
|
|
56
56
|
* "lastEditorName": "lastEditorName",
|
|
57
|
+
* "kind": "curationMailMagazine",
|
|
57
58
|
* "deliveryAt": "2000-01-23T04:56:07.000Z",
|
|
58
59
|
* "lastEditedAt": "2000-01-23T04:56:07.000Z",
|
|
59
60
|
* "id": 0,
|
|
60
61
|
* "title": "title",
|
|
61
|
-
* "type": "curationMailMagazine",
|
|
62
62
|
* "status": "draft"
|
|
63
63
|
* }
|
|
64
64
|
*/
|
|
@@ -66,7 +66,7 @@ interface components {
|
|
|
66
66
|
id: number;
|
|
67
67
|
title?: string | null;
|
|
68
68
|
status: components["schemas"]["CampaignStatus"];
|
|
69
|
-
|
|
69
|
+
kind: components["schemas"]["CampaignKind"];
|
|
70
70
|
/** Format: date-time */
|
|
71
71
|
deliveryAt: string | null;
|
|
72
72
|
lastEditorName: string;
|
|
@@ -79,10 +79,10 @@ interface components {
|
|
|
79
79
|
*/
|
|
80
80
|
CampaignStatus: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* CampaignKind
|
|
83
83
|
* @enum {string}
|
|
84
84
|
*/
|
|
85
|
-
|
|
85
|
+
CampaignKind: "curationMailMagazine" | "personalizedMailMagazine";
|
|
86
86
|
/**
|
|
87
87
|
* Pagination
|
|
88
88
|
* @description ページネーション
|
|
@@ -131,7 +131,7 @@ interface operations {
|
|
|
131
131
|
query?: {
|
|
132
132
|
title?: string;
|
|
133
133
|
status?: components["schemas"]["CampaignStatus"];
|
|
134
|
-
|
|
134
|
+
kind?: components["schemas"]["CampaignKind"];
|
|
135
135
|
deliveryAtFrom?: string;
|
|
136
136
|
deliveryAtTo?: string;
|
|
137
137
|
page?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@readyfor/api-client-pigeon",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.165.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.165.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": "a2b42a2950481299e43342ce0d3fd3f54bbd0582"
|
|
69
69
|
}
|