@readyfor/api-client-pigeon 0.173.0 → 0.175.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-2FYAHTET.mjs → chunk-7JKGCVP4.mjs} +9 -1
- package/dist/{chunk-SE465IBN.mjs → chunk-AUDLS557.mjs} +1 -1
- package/dist/chunk-Z7N5M2RT.mjs +15 -0
- package/dist/fetch/campaignsId.d.mts +8 -1
- package/dist/fetch/campaignsId.d.ts +8 -1
- package/dist/fetch/campaignsId.js +9 -0
- package/dist/fetch/campaignsId.mjs +5 -1
- package/dist/fetch/campaignsIdDeliveryJob.d.mts +12 -0
- package/dist/fetch/campaignsIdDeliveryJob.d.ts +12 -0
- package/dist/fetch/campaignsIdDeliveryJob.js +37 -0
- package/dist/fetch/campaignsIdDeliveryJob.mjs +8 -0
- package/dist/hooks/index.js +11 -8
- package/dist/hooks/index.mjs +8 -7
- package/dist/hooks/useCampaigns.js +7 -4
- package/dist/hooks/useCampaigns.mjs +3 -2
- package/dist/hooks/useCampaignsId.js +7 -4
- package/dist/hooks/useCampaignsId.mjs +4 -3
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +23 -2
- package/dist/index.mjs +13 -3
- package/dist/schemaType.d.mts +34 -0
- package/dist/schemaType.d.ts +34 -0
- package/package.json +3 -3
- /package/dist/{chunk-KZFT6V6I.mjs → chunk-RD6VKGWI.mjs} +0 -0
|
@@ -5,13 +5,19 @@ import {
|
|
|
5
5
|
// src/fetch/campaignsId.ts
|
|
6
6
|
import {
|
|
7
7
|
createJsonFetcher,
|
|
8
|
-
__internal__requestUrl
|
|
8
|
+
__internal__requestUrl,
|
|
9
|
+
createVoidFetcher
|
|
9
10
|
} from "@readyfor/api-client-base";
|
|
10
11
|
var buildCampaignsIdGetFetcher = (requestInit) => createJsonFetcher(CampaignsCampaignIdResponse, { ...requestInit });
|
|
11
12
|
var getCampaignsId = (path, requestInit) => buildCampaignsIdGetFetcher()(
|
|
12
13
|
__internal__requestUrl("/api/campaigns/{id}", path),
|
|
13
14
|
{ ...requestInit, method: "GET" }
|
|
14
15
|
);
|
|
16
|
+
var buildCampaignsIdDeleteFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
|
|
17
|
+
var deleteCampaignsId = (path, requestInit) => buildCampaignsIdDeleteFetcher()(
|
|
18
|
+
__internal__requestUrl("/api/campaigns/{id}", path),
|
|
19
|
+
{ ...requestInit, method: "DELETE" }
|
|
20
|
+
);
|
|
15
21
|
var buildCampaignsIdPatchFetcher = (requestInit) => createJsonFetcher(CampaignsCampaignIdResponse, { ...requestInit });
|
|
16
22
|
var patchCampaignsId = (path, requestBody, requestInit) => buildCampaignsIdPatchFetcher()(
|
|
17
23
|
__internal__requestUrl("/api/campaigns/{id}", path),
|
|
@@ -26,6 +32,8 @@ var patchCampaignsId = (path, requestBody, requestInit) => buildCampaignsIdPatch
|
|
|
26
32
|
export {
|
|
27
33
|
buildCampaignsIdGetFetcher,
|
|
28
34
|
getCampaignsId,
|
|
35
|
+
buildCampaignsIdDeleteFetcher,
|
|
36
|
+
deleteCampaignsId,
|
|
29
37
|
buildCampaignsIdPatchFetcher,
|
|
30
38
|
patchCampaignsId
|
|
31
39
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// src/fetch/campaignsIdDeliveryJob.ts
|
|
2
|
+
import {
|
|
3
|
+
createVoidFetcher,
|
|
4
|
+
__internal__requestUrl
|
|
5
|
+
} from "@readyfor/api-client-base";
|
|
6
|
+
var buildCampaignsIdDeliveryJobPostFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
|
|
7
|
+
var postCampaignsIdDeliveryJob = (path, requestInit) => buildCampaignsIdDeliveryJobPostFetcher()(
|
|
8
|
+
__internal__requestUrl("/api/campaigns/{id}/delivery_job", path),
|
|
9
|
+
{ ...requestInit, method: "POST" }
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
buildCampaignsIdDeliveryJobPostFetcher,
|
|
14
|
+
postCampaignsIdDeliveryJob
|
|
15
|
+
};
|
|
@@ -55,6 +55,13 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, requestInit?: RequestIn
|
|
|
55
55
|
id: number;
|
|
56
56
|
};
|
|
57
57
|
}>;
|
|
58
|
+
type CampaignsIdDeleteOperation = paths["/api/campaigns/{id}"]["delete"];
|
|
59
|
+
declare const buildCampaignsIdDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
60
|
+
type CampaignsIdDeletePath = ForceDig<CampaignsIdDeleteOperation, [
|
|
61
|
+
"parameters",
|
|
62
|
+
"path"
|
|
63
|
+
]>;
|
|
64
|
+
declare const deleteCampaignsId: (path: CampaignsIdDeletePath, requestInit?: RequestInit) => Promise<void>;
|
|
58
65
|
type CampaignsIdPatchOperation = paths["/api/campaigns/{id}"]["patch"];
|
|
59
66
|
type CampaignsIdPatchResponse = CampaignsIdPatchOperation["responses"]["200"]["content"]["application/json"];
|
|
60
67
|
declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
@@ -115,4 +122,4 @@ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: Campai
|
|
|
115
122
|
};
|
|
116
123
|
}>;
|
|
117
124
|
|
|
118
|
-
export { type CampaignsIdGetPath, type CampaignsIdGetResponse, type CampaignsIdPatchPath, type CampaignsIdPatchRequestBody, type CampaignsIdPatchResponse, buildCampaignsIdGetFetcher, buildCampaignsIdPatchFetcher, getCampaignsId, patchCampaignsId };
|
|
125
|
+
export { type CampaignsIdDeletePath, type CampaignsIdGetPath, type CampaignsIdGetResponse, type CampaignsIdPatchPath, type CampaignsIdPatchRequestBody, type CampaignsIdPatchResponse, buildCampaignsIdDeleteFetcher, buildCampaignsIdGetFetcher, buildCampaignsIdPatchFetcher, deleteCampaignsId, getCampaignsId, patchCampaignsId };
|
|
@@ -55,6 +55,13 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, requestInit?: RequestIn
|
|
|
55
55
|
id: number;
|
|
56
56
|
};
|
|
57
57
|
}>;
|
|
58
|
+
type CampaignsIdDeleteOperation = paths["/api/campaigns/{id}"]["delete"];
|
|
59
|
+
declare const buildCampaignsIdDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
60
|
+
type CampaignsIdDeletePath = ForceDig<CampaignsIdDeleteOperation, [
|
|
61
|
+
"parameters",
|
|
62
|
+
"path"
|
|
63
|
+
]>;
|
|
64
|
+
declare const deleteCampaignsId: (path: CampaignsIdDeletePath, requestInit?: RequestInit) => Promise<void>;
|
|
58
65
|
type CampaignsIdPatchOperation = paths["/api/campaigns/{id}"]["patch"];
|
|
59
66
|
type CampaignsIdPatchResponse = CampaignsIdPatchOperation["responses"]["200"]["content"]["application/json"];
|
|
60
67
|
declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
@@ -115,4 +122,4 @@ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: Campai
|
|
|
115
122
|
};
|
|
116
123
|
}>;
|
|
117
124
|
|
|
118
|
-
export { type CampaignsIdGetPath, type CampaignsIdGetResponse, type CampaignsIdPatchPath, type CampaignsIdPatchRequestBody, type CampaignsIdPatchResponse, buildCampaignsIdGetFetcher, buildCampaignsIdPatchFetcher, getCampaignsId, patchCampaignsId };
|
|
125
|
+
export { type CampaignsIdDeletePath, type CampaignsIdGetPath, type CampaignsIdGetResponse, type CampaignsIdPatchPath, type CampaignsIdPatchRequestBody, type CampaignsIdPatchResponse, buildCampaignsIdDeleteFetcher, buildCampaignsIdGetFetcher, buildCampaignsIdPatchFetcher, deleteCampaignsId, getCampaignsId, patchCampaignsId };
|
|
@@ -20,8 +20,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/fetch/campaignsId.ts
|
|
21
21
|
var campaignsId_exports = {};
|
|
22
22
|
__export(campaignsId_exports, {
|
|
23
|
+
buildCampaignsIdDeleteFetcher: () => buildCampaignsIdDeleteFetcher,
|
|
23
24
|
buildCampaignsIdGetFetcher: () => buildCampaignsIdGetFetcher,
|
|
24
25
|
buildCampaignsIdPatchFetcher: () => buildCampaignsIdPatchFetcher,
|
|
26
|
+
deleteCampaignsId: () => deleteCampaignsId,
|
|
25
27
|
getCampaignsId: () => getCampaignsId,
|
|
26
28
|
patchCampaignsId: () => patchCampaignsId
|
|
27
29
|
});
|
|
@@ -143,6 +145,11 @@ var getCampaignsId = (path, requestInit) => buildCampaignsIdGetFetcher()(
|
|
|
143
145
|
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path),
|
|
144
146
|
{ ...requestInit, method: "GET" }
|
|
145
147
|
);
|
|
148
|
+
var buildCampaignsIdDeleteFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
|
|
149
|
+
var deleteCampaignsId = (path, requestInit) => buildCampaignsIdDeleteFetcher()(
|
|
150
|
+
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path),
|
|
151
|
+
{ ...requestInit, method: "DELETE" }
|
|
152
|
+
);
|
|
146
153
|
var buildCampaignsIdPatchFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
|
|
147
154
|
var patchCampaignsId = (path, requestBody, requestInit) => buildCampaignsIdPatchFetcher()(
|
|
148
155
|
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path),
|
|
@@ -155,8 +162,10 @@ var patchCampaignsId = (path, requestBody, requestInit) => buildCampaignsIdPatch
|
|
|
155
162
|
);
|
|
156
163
|
// Annotate the CommonJS export names for ESM import in node:
|
|
157
164
|
0 && (module.exports = {
|
|
165
|
+
buildCampaignsIdDeleteFetcher,
|
|
158
166
|
buildCampaignsIdGetFetcher,
|
|
159
167
|
buildCampaignsIdPatchFetcher,
|
|
168
|
+
deleteCampaignsId,
|
|
160
169
|
getCampaignsId,
|
|
161
170
|
patchCampaignsId
|
|
162
171
|
});
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
+
buildCampaignsIdDeleteFetcher,
|
|
2
3
|
buildCampaignsIdGetFetcher,
|
|
3
4
|
buildCampaignsIdPatchFetcher,
|
|
5
|
+
deleteCampaignsId,
|
|
4
6
|
getCampaignsId,
|
|
5
7
|
patchCampaignsId
|
|
6
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-7JKGCVP4.mjs";
|
|
7
9
|
import "../chunk-Z7QYYQ55.mjs";
|
|
8
10
|
export {
|
|
11
|
+
buildCampaignsIdDeleteFetcher,
|
|
9
12
|
buildCampaignsIdGetFetcher,
|
|
10
13
|
buildCampaignsIdPatchFetcher,
|
|
14
|
+
deleteCampaignsId,
|
|
11
15
|
getCampaignsId,
|
|
12
16
|
patchCampaignsId
|
|
13
17
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { paths } from '../schemaType.mjs';
|
|
2
|
+
import { ForceDig } from '@readyfor/api-client-base';
|
|
3
|
+
|
|
4
|
+
type CampaignsIdDeliveryJobPostOperation = paths["/api/campaigns/{id}/delivery_job"]["post"];
|
|
5
|
+
declare const buildCampaignsIdDeliveryJobPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
6
|
+
type CampaignsIdDeliveryJobPostPath = ForceDig<CampaignsIdDeliveryJobPostOperation, [
|
|
7
|
+
"parameters",
|
|
8
|
+
"path"
|
|
9
|
+
]>;
|
|
10
|
+
declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath, requestInit?: RequestInit) => Promise<void>;
|
|
11
|
+
|
|
12
|
+
export { type CampaignsIdDeliveryJobPostPath, buildCampaignsIdDeliveryJobPostFetcher, postCampaignsIdDeliveryJob };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { paths } from '../schemaType.js';
|
|
2
|
+
import { ForceDig } from '@readyfor/api-client-base';
|
|
3
|
+
|
|
4
|
+
type CampaignsIdDeliveryJobPostOperation = paths["/api/campaigns/{id}/delivery_job"]["post"];
|
|
5
|
+
declare const buildCampaignsIdDeliveryJobPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
6
|
+
type CampaignsIdDeliveryJobPostPath = ForceDig<CampaignsIdDeliveryJobPostOperation, [
|
|
7
|
+
"parameters",
|
|
8
|
+
"path"
|
|
9
|
+
]>;
|
|
10
|
+
declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath, requestInit?: RequestInit) => Promise<void>;
|
|
11
|
+
|
|
12
|
+
export { type CampaignsIdDeliveryJobPostPath, buildCampaignsIdDeliveryJobPostFetcher, postCampaignsIdDeliveryJob };
|
|
@@ -0,0 +1,37 @@
|
|
|
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/campaignsIdDeliveryJob.ts
|
|
21
|
+
var campaignsIdDeliveryJob_exports = {};
|
|
22
|
+
__export(campaignsIdDeliveryJob_exports, {
|
|
23
|
+
buildCampaignsIdDeliveryJobPostFetcher: () => buildCampaignsIdDeliveryJobPostFetcher,
|
|
24
|
+
postCampaignsIdDeliveryJob: () => postCampaignsIdDeliveryJob
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(campaignsIdDeliveryJob_exports);
|
|
27
|
+
var import_api_client_base = require("@readyfor/api-client-base");
|
|
28
|
+
var buildCampaignsIdDeliveryJobPostFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
|
|
29
|
+
var postCampaignsIdDeliveryJob = (path, requestInit) => buildCampaignsIdDeliveryJobPostFetcher()(
|
|
30
|
+
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/delivery_job", path),
|
|
31
|
+
{ ...requestInit, method: "POST" }
|
|
32
|
+
);
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {
|
|
35
|
+
buildCampaignsIdDeliveryJobPostFetcher,
|
|
36
|
+
postCampaignsIdDeliveryJob
|
|
37
|
+
});
|
package/dist/hooks/index.js
CHANGED
|
@@ -43,7 +43,7 @@ module.exports = __toCommonJS(hooks_exports);
|
|
|
43
43
|
var import_immutable = __toESM(require("swr/immutable"));
|
|
44
44
|
var import_infinite = __toESM(require("swr/infinite"));
|
|
45
45
|
var import_swr = __toESM(require("swr"));
|
|
46
|
-
var
|
|
46
|
+
var import_api_client_base4 = require("@readyfor/api-client-base");
|
|
47
47
|
var import_react = require("@readyfor/api-client-base/react");
|
|
48
48
|
|
|
49
49
|
// src/components.ts
|
|
@@ -163,10 +163,13 @@ var buildCampaignsGetFetcher = (requestInit) => (0, import_api_client_base.creat
|
|
|
163
163
|
var import_api_client_base2 = require("@readyfor/api-client-base");
|
|
164
164
|
var buildCampaignsIdGetFetcher = (requestInit) => (0, import_api_client_base2.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
|
|
165
165
|
|
|
166
|
+
// src/fetch/campaignsIdDeliveryJob.ts
|
|
167
|
+
var import_api_client_base3 = require("@readyfor/api-client-base");
|
|
168
|
+
|
|
166
169
|
// src/hooks/useCampaigns.ts
|
|
167
170
|
var campaignsGetFetcher = buildCampaignsGetFetcher();
|
|
168
171
|
var useCampaigns = (query, swrConfig) => {
|
|
169
|
-
const key = (0,
|
|
172
|
+
const key = (0, import_api_client_base4.__internal__requestUrl)("/api/campaigns", {}, query);
|
|
170
173
|
const requestInit = (0, import_react.useRequestInit)();
|
|
171
174
|
const result = (0, import_swr.default)(
|
|
172
175
|
swrConfig?.shouldNotFetch ? null : key,
|
|
@@ -176,7 +179,7 @@ var useCampaigns = (query, swrConfig) => {
|
|
|
176
179
|
return { key, ...result };
|
|
177
180
|
};
|
|
178
181
|
var useCampaignsImmutable = (query, swrConfig) => {
|
|
179
|
-
const key = (0,
|
|
182
|
+
const key = (0, import_api_client_base4.__internal__requestUrl)("/api/campaigns", {}, query);
|
|
180
183
|
const requestInit = (0, import_react.useRequestInit)();
|
|
181
184
|
const result = (0, import_immutable.default)(
|
|
182
185
|
swrConfig?.shouldNotFetch ? null : key,
|
|
@@ -186,7 +189,7 @@ var useCampaignsImmutable = (query, swrConfig) => {
|
|
|
186
189
|
return { key, ...result };
|
|
187
190
|
};
|
|
188
191
|
var useCampaignsInfinite = (getKey, swrConfig) => (0, import_infinite.default)(
|
|
189
|
-
getKey((query) => (0,
|
|
192
|
+
getKey((query) => (0, import_api_client_base4.__internal__requestUrl)({}, query)),
|
|
190
193
|
campaignsGetFetcher,
|
|
191
194
|
swrConfig
|
|
192
195
|
);
|
|
@@ -195,11 +198,11 @@ var useCampaignsInfinite = (getKey, swrConfig) => (0, import_infinite.default)(
|
|
|
195
198
|
var import_immutable2 = __toESM(require("swr/immutable"));
|
|
196
199
|
var import_infinite2 = __toESM(require("swr/infinite"));
|
|
197
200
|
var import_swr2 = __toESM(require("swr"));
|
|
198
|
-
var
|
|
201
|
+
var import_api_client_base5 = require("@readyfor/api-client-base");
|
|
199
202
|
var import_react2 = require("@readyfor/api-client-base/react");
|
|
200
203
|
var campaignsIdGetFetcher = buildCampaignsIdGetFetcher();
|
|
201
204
|
var useCampaignsId = (path, swrConfig) => {
|
|
202
|
-
const key = (0,
|
|
205
|
+
const key = (0, import_api_client_base5.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
203
206
|
const requestInit = (0, import_react2.useRequestInit)();
|
|
204
207
|
const result = (0, import_swr2.default)(
|
|
205
208
|
swrConfig?.shouldNotFetch ? null : key,
|
|
@@ -209,7 +212,7 @@ var useCampaignsId = (path, swrConfig) => {
|
|
|
209
212
|
return { key, ...result };
|
|
210
213
|
};
|
|
211
214
|
var useCampaignsIdImmutable = (path, swrConfig) => {
|
|
212
|
-
const key = (0,
|
|
215
|
+
const key = (0, import_api_client_base5.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
213
216
|
const requestInit = (0, import_react2.useRequestInit)();
|
|
214
217
|
const result = (0, import_immutable2.default)(
|
|
215
218
|
swrConfig?.shouldNotFetch ? null : key,
|
|
@@ -219,7 +222,7 @@ var useCampaignsIdImmutable = (path, swrConfig) => {
|
|
|
219
222
|
return { key, ...result };
|
|
220
223
|
};
|
|
221
224
|
var useCampaignsIdInfinite = (getKey, swrConfig) => (0, import_infinite2.default)(
|
|
222
|
-
getKey((path) => (0,
|
|
225
|
+
getKey((path) => (0, import_api_client_base5.__internal__requestUrl)(path)),
|
|
223
226
|
campaignsIdGetFetcher,
|
|
224
227
|
swrConfig
|
|
225
228
|
);
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useCampaignsId,
|
|
3
|
+
useCampaignsIdImmutable,
|
|
4
|
+
useCampaignsIdInfinite
|
|
5
|
+
} from "../chunk-AUDLS557.mjs";
|
|
1
6
|
import {
|
|
2
7
|
useCampaigns,
|
|
3
8
|
useCampaignsImmutable,
|
|
4
9
|
useCampaignsInfinite
|
|
5
10
|
} from "../chunk-BAZYTXRM.mjs";
|
|
6
|
-
import
|
|
7
|
-
useCampaignsId,
|
|
8
|
-
useCampaignsIdImmutable,
|
|
9
|
-
useCampaignsIdInfinite
|
|
10
|
-
} from "../chunk-SE465IBN.mjs";
|
|
11
|
-
import "../chunk-KZFT6V6I.mjs";
|
|
11
|
+
import "../chunk-RD6VKGWI.mjs";
|
|
12
12
|
import "../chunk-2CYVMP5Y.mjs";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-7JKGCVP4.mjs";
|
|
14
14
|
import "../chunk-Z7QYYQ55.mjs";
|
|
15
|
+
import "../chunk-Z7N5M2RT.mjs";
|
|
15
16
|
export {
|
|
16
17
|
useCampaigns,
|
|
17
18
|
useCampaignsId,
|
|
@@ -38,7 +38,7 @@ module.exports = __toCommonJS(useCampaigns_exports);
|
|
|
38
38
|
var import_immutable = __toESM(require("swr/immutable"));
|
|
39
39
|
var import_infinite = __toESM(require("swr/infinite"));
|
|
40
40
|
var import_swr = __toESM(require("swr"));
|
|
41
|
-
var
|
|
41
|
+
var import_api_client_base4 = require("@readyfor/api-client-base");
|
|
42
42
|
var import_react = require("@readyfor/api-client-base/react");
|
|
43
43
|
|
|
44
44
|
// src/components.ts
|
|
@@ -157,10 +157,13 @@ var buildCampaignsGetFetcher = (requestInit) => (0, import_api_client_base.creat
|
|
|
157
157
|
// src/fetch/campaignsId.ts
|
|
158
158
|
var import_api_client_base2 = require("@readyfor/api-client-base");
|
|
159
159
|
|
|
160
|
+
// src/fetch/campaignsIdDeliveryJob.ts
|
|
161
|
+
var import_api_client_base3 = require("@readyfor/api-client-base");
|
|
162
|
+
|
|
160
163
|
// src/hooks/useCampaigns.ts
|
|
161
164
|
var campaignsGetFetcher = buildCampaignsGetFetcher();
|
|
162
165
|
var useCampaigns = (query, swrConfig) => {
|
|
163
|
-
const key = (0,
|
|
166
|
+
const key = (0, import_api_client_base4.__internal__requestUrl)("/api/campaigns", {}, query);
|
|
164
167
|
const requestInit = (0, import_react.useRequestInit)();
|
|
165
168
|
const result = (0, import_swr.default)(
|
|
166
169
|
swrConfig?.shouldNotFetch ? null : key,
|
|
@@ -170,7 +173,7 @@ var useCampaigns = (query, swrConfig) => {
|
|
|
170
173
|
return { key, ...result };
|
|
171
174
|
};
|
|
172
175
|
var useCampaignsImmutable = (query, swrConfig) => {
|
|
173
|
-
const key = (0,
|
|
176
|
+
const key = (0, import_api_client_base4.__internal__requestUrl)("/api/campaigns", {}, query);
|
|
174
177
|
const requestInit = (0, import_react.useRequestInit)();
|
|
175
178
|
const result = (0, import_immutable.default)(
|
|
176
179
|
swrConfig?.shouldNotFetch ? null : key,
|
|
@@ -180,7 +183,7 @@ var useCampaignsImmutable = (query, swrConfig) => {
|
|
|
180
183
|
return { key, ...result };
|
|
181
184
|
};
|
|
182
185
|
var useCampaignsInfinite = (getKey, swrConfig) => (0, import_infinite.default)(
|
|
183
|
-
getKey((query) => (0,
|
|
186
|
+
getKey((query) => (0, import_api_client_base4.__internal__requestUrl)({}, query)),
|
|
184
187
|
campaignsGetFetcher,
|
|
185
188
|
swrConfig
|
|
186
189
|
);
|
|
@@ -3,10 +3,11 @@ import {
|
|
|
3
3
|
useCampaignsImmutable,
|
|
4
4
|
useCampaignsInfinite
|
|
5
5
|
} from "../chunk-BAZYTXRM.mjs";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-RD6VKGWI.mjs";
|
|
7
7
|
import "../chunk-2CYVMP5Y.mjs";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-7JKGCVP4.mjs";
|
|
9
9
|
import "../chunk-Z7QYYQ55.mjs";
|
|
10
|
+
import "../chunk-Z7N5M2RT.mjs";
|
|
10
11
|
export {
|
|
11
12
|
useCampaigns,
|
|
12
13
|
useCampaignsImmutable,
|
|
@@ -38,7 +38,7 @@ module.exports = __toCommonJS(useCampaignsId_exports);
|
|
|
38
38
|
var import_immutable = __toESM(require("swr/immutable"));
|
|
39
39
|
var import_infinite = __toESM(require("swr/infinite"));
|
|
40
40
|
var import_swr = __toESM(require("swr"));
|
|
41
|
-
var
|
|
41
|
+
var import_api_client_base4 = require("@readyfor/api-client-base");
|
|
42
42
|
var import_react = require("@readyfor/api-client-base/react");
|
|
43
43
|
|
|
44
44
|
// src/components.ts
|
|
@@ -157,10 +157,13 @@ var import_api_client_base = require("@readyfor/api-client-base");
|
|
|
157
157
|
var import_api_client_base2 = require("@readyfor/api-client-base");
|
|
158
158
|
var buildCampaignsIdGetFetcher = (requestInit) => (0, import_api_client_base2.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
|
|
159
159
|
|
|
160
|
+
// src/fetch/campaignsIdDeliveryJob.ts
|
|
161
|
+
var import_api_client_base3 = require("@readyfor/api-client-base");
|
|
162
|
+
|
|
160
163
|
// src/hooks/useCampaignsId.ts
|
|
161
164
|
var campaignsIdGetFetcher = buildCampaignsIdGetFetcher();
|
|
162
165
|
var useCampaignsId = (path, swrConfig) => {
|
|
163
|
-
const key = (0,
|
|
166
|
+
const key = (0, import_api_client_base4.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
164
167
|
const requestInit = (0, import_react.useRequestInit)();
|
|
165
168
|
const result = (0, import_swr.default)(
|
|
166
169
|
swrConfig?.shouldNotFetch ? null : key,
|
|
@@ -170,7 +173,7 @@ var useCampaignsId = (path, swrConfig) => {
|
|
|
170
173
|
return { key, ...result };
|
|
171
174
|
};
|
|
172
175
|
var useCampaignsIdImmutable = (path, swrConfig) => {
|
|
173
|
-
const key = (0,
|
|
176
|
+
const key = (0, import_api_client_base4.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
174
177
|
const requestInit = (0, import_react.useRequestInit)();
|
|
175
178
|
const result = (0, import_immutable.default)(
|
|
176
179
|
swrConfig?.shouldNotFetch ? null : key,
|
|
@@ -180,7 +183,7 @@ var useCampaignsIdImmutable = (path, swrConfig) => {
|
|
|
180
183
|
return { key, ...result };
|
|
181
184
|
};
|
|
182
185
|
var useCampaignsIdInfinite = (getKey, swrConfig) => (0, import_infinite.default)(
|
|
183
|
-
getKey((path) => (0,
|
|
186
|
+
getKey((path) => (0, import_api_client_base4.__internal__requestUrl)(path)),
|
|
184
187
|
campaignsIdGetFetcher,
|
|
185
188
|
swrConfig
|
|
186
189
|
);
|
|
@@ -2,11 +2,12 @@ import {
|
|
|
2
2
|
useCampaignsId,
|
|
3
3
|
useCampaignsIdImmutable,
|
|
4
4
|
useCampaignsIdInfinite
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-AUDLS557.mjs";
|
|
6
|
+
import "../chunk-RD6VKGWI.mjs";
|
|
7
7
|
import "../chunk-2CYVMP5Y.mjs";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-7JKGCVP4.mjs";
|
|
9
9
|
import "../chunk-Z7QYYQ55.mjs";
|
|
10
|
+
import "../chunk-Z7N5M2RT.mjs";
|
|
10
11
|
export {
|
|
11
12
|
useCampaignsId,
|
|
12
13
|
useCampaignsIdImmutable,
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { $defs, components, external, operations, paths, webhooks } from './schemaType.mjs';
|
|
2
2
|
export { Campaign, CampaignBaseFormData, CampaignDetail, CampaignDetailBase, CampaignDetailKindDataCurationMailMagazine, CampaignDetailKindDataPersonalizedMailMagazine, CampaignDetailWithCurationMailMagazine, CampaignDetailWithPersonalizedMailMagazine, CampaignFormData, CampaignKind, CampaignKindDataCurationMailMagazineFormData, CampaignKindDataPersonalizedMailMagazineFormData, CampaignStatus, CampaignWithCurationMailMagazineFormData, CampaignWithPersonalizedMailMagazineFormData, CampaignsCampaignIdResponse, CurationMailMagazineDetail, CurationMailMagazineFormData, GetCampaignsResponse, Pagination, PatchCampaignsCampaignIdRequestBody, PersonalizedMailMagazineDetail, PersonalizedMailMagazineDetailTarget, PersonalizedMailMagazineFormData, PersonalizedMailMagazineTargetCsvFormData, PersonalizedMailMagazineTargetCsvRecordFormData, PostCampaignsRequestBody, PostCampaignsResponse } from './components.mjs';
|
|
3
3
|
export { CampaignsGetQuery, CampaignsGetResponse, CampaignsPostRequestBody, CampaignsPostResponse, buildCampaignsGetFetcher, buildCampaignsPostFetcher, getCampaigns, postCampaigns } from './fetch/campaigns.mjs';
|
|
4
|
-
export { CampaignsIdGetPath, CampaignsIdGetResponse, CampaignsIdPatchPath, CampaignsIdPatchRequestBody, CampaignsIdPatchResponse, buildCampaignsIdGetFetcher, buildCampaignsIdPatchFetcher, getCampaignsId, patchCampaignsId } from './fetch/campaignsId.mjs';
|
|
4
|
+
export { CampaignsIdDeletePath, CampaignsIdGetPath, CampaignsIdGetResponse, CampaignsIdPatchPath, CampaignsIdPatchRequestBody, CampaignsIdPatchResponse, buildCampaignsIdDeleteFetcher, buildCampaignsIdGetFetcher, buildCampaignsIdPatchFetcher, deleteCampaignsId, getCampaignsId, patchCampaignsId } from './fetch/campaignsId.mjs';
|
|
5
|
+
export { CampaignsIdDeliveryJobPostPath, buildCampaignsIdDeliveryJobPostFetcher, postCampaignsIdDeliveryJob } from './fetch/campaignsIdDeliveryJob.mjs';
|
|
5
6
|
import 'zod';
|
|
6
7
|
import '@readyfor/api-client-base';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { $defs, components, external, operations, paths, webhooks } from './schemaType.js';
|
|
2
2
|
export { Campaign, CampaignBaseFormData, CampaignDetail, CampaignDetailBase, CampaignDetailKindDataCurationMailMagazine, CampaignDetailKindDataPersonalizedMailMagazine, CampaignDetailWithCurationMailMagazine, CampaignDetailWithPersonalizedMailMagazine, CampaignFormData, CampaignKind, CampaignKindDataCurationMailMagazineFormData, CampaignKindDataPersonalizedMailMagazineFormData, CampaignStatus, CampaignWithCurationMailMagazineFormData, CampaignWithPersonalizedMailMagazineFormData, CampaignsCampaignIdResponse, CurationMailMagazineDetail, CurationMailMagazineFormData, GetCampaignsResponse, Pagination, PatchCampaignsCampaignIdRequestBody, PersonalizedMailMagazineDetail, PersonalizedMailMagazineDetailTarget, PersonalizedMailMagazineFormData, PersonalizedMailMagazineTargetCsvFormData, PersonalizedMailMagazineTargetCsvRecordFormData, PostCampaignsRequestBody, PostCampaignsResponse } from './components.js';
|
|
3
3
|
export { CampaignsGetQuery, CampaignsGetResponse, CampaignsPostRequestBody, CampaignsPostResponse, buildCampaignsGetFetcher, buildCampaignsPostFetcher, getCampaigns, postCampaigns } from './fetch/campaigns.js';
|
|
4
|
-
export { CampaignsIdGetPath, CampaignsIdGetResponse, CampaignsIdPatchPath, CampaignsIdPatchRequestBody, CampaignsIdPatchResponse, buildCampaignsIdGetFetcher, buildCampaignsIdPatchFetcher, getCampaignsId, patchCampaignsId } from './fetch/campaignsId.js';
|
|
4
|
+
export { CampaignsIdDeletePath, CampaignsIdGetPath, CampaignsIdGetResponse, CampaignsIdPatchPath, CampaignsIdPatchRequestBody, CampaignsIdPatchResponse, buildCampaignsIdDeleteFetcher, buildCampaignsIdGetFetcher, buildCampaignsIdPatchFetcher, deleteCampaignsId, getCampaignsId, patchCampaignsId } from './fetch/campaignsId.js';
|
|
5
|
+
export { CampaignsIdDeliveryJobPostPath, buildCampaignsIdDeliveryJobPostFetcher, postCampaignsIdDeliveryJob } from './fetch/campaignsIdDeliveryJob.js';
|
|
5
6
|
import 'zod';
|
|
6
7
|
import '@readyfor/api-client-base';
|
package/dist/index.js
CHANGED
|
@@ -49,13 +49,17 @@ __export(src_exports, {
|
|
|
49
49
|
PostCampaignsRequestBody: () => PostCampaignsRequestBody,
|
|
50
50
|
PostCampaignsResponse: () => PostCampaignsResponse,
|
|
51
51
|
buildCampaignsGetFetcher: () => buildCampaignsGetFetcher,
|
|
52
|
+
buildCampaignsIdDeleteFetcher: () => buildCampaignsIdDeleteFetcher,
|
|
53
|
+
buildCampaignsIdDeliveryJobPostFetcher: () => buildCampaignsIdDeliveryJobPostFetcher,
|
|
52
54
|
buildCampaignsIdGetFetcher: () => buildCampaignsIdGetFetcher,
|
|
53
55
|
buildCampaignsIdPatchFetcher: () => buildCampaignsIdPatchFetcher,
|
|
54
56
|
buildCampaignsPostFetcher: () => buildCampaignsPostFetcher,
|
|
57
|
+
deleteCampaignsId: () => deleteCampaignsId,
|
|
55
58
|
getCampaigns: () => getCampaigns,
|
|
56
59
|
getCampaignsId: () => getCampaignsId,
|
|
57
60
|
patchCampaignsId: () => patchCampaignsId,
|
|
58
|
-
postCampaigns: () => postCampaigns
|
|
61
|
+
postCampaigns: () => postCampaigns,
|
|
62
|
+
postCampaignsIdDeliveryJob: () => postCampaignsIdDeliveryJob
|
|
59
63
|
});
|
|
60
64
|
module.exports = __toCommonJS(src_exports);
|
|
61
65
|
|
|
@@ -190,6 +194,11 @@ var getCampaignsId = (path, requestInit) => buildCampaignsIdGetFetcher()(
|
|
|
190
194
|
(0, import_api_client_base2.__internal__requestUrl)("/api/campaigns/{id}", path),
|
|
191
195
|
{ ...requestInit, method: "GET" }
|
|
192
196
|
);
|
|
197
|
+
var buildCampaignsIdDeleteFetcher = (requestInit) => (0, import_api_client_base2.createVoidFetcher)({ ...requestInit });
|
|
198
|
+
var deleteCampaignsId = (path, requestInit) => buildCampaignsIdDeleteFetcher()(
|
|
199
|
+
(0, import_api_client_base2.__internal__requestUrl)("/api/campaigns/{id}", path),
|
|
200
|
+
{ ...requestInit, method: "DELETE" }
|
|
201
|
+
);
|
|
193
202
|
var buildCampaignsIdPatchFetcher = (requestInit) => (0, import_api_client_base2.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
|
|
194
203
|
var patchCampaignsId = (path, requestBody, requestInit) => buildCampaignsIdPatchFetcher()(
|
|
195
204
|
(0, import_api_client_base2.__internal__requestUrl)("/api/campaigns/{id}", path),
|
|
@@ -200,6 +209,14 @@ var patchCampaignsId = (path, requestBody, requestInit) => buildCampaignsIdPatch
|
|
|
200
209
|
body: JSON.stringify(requestBody)
|
|
201
210
|
}
|
|
202
211
|
);
|
|
212
|
+
|
|
213
|
+
// src/fetch/campaignsIdDeliveryJob.ts
|
|
214
|
+
var import_api_client_base3 = require("@readyfor/api-client-base");
|
|
215
|
+
var buildCampaignsIdDeliveryJobPostFetcher = (requestInit) => (0, import_api_client_base3.createVoidFetcher)({ ...requestInit });
|
|
216
|
+
var postCampaignsIdDeliveryJob = (path, requestInit) => buildCampaignsIdDeliveryJobPostFetcher()(
|
|
217
|
+
(0, import_api_client_base3.__internal__requestUrl)("/api/campaigns/{id}/delivery_job", path),
|
|
218
|
+
{ ...requestInit, method: "POST" }
|
|
219
|
+
);
|
|
203
220
|
// Annotate the CommonJS export names for ESM import in node:
|
|
204
221
|
0 && (module.exports = {
|
|
205
222
|
Campaign,
|
|
@@ -231,11 +248,15 @@ var patchCampaignsId = (path, requestBody, requestInit) => buildCampaignsIdPatch
|
|
|
231
248
|
PostCampaignsRequestBody,
|
|
232
249
|
PostCampaignsResponse,
|
|
233
250
|
buildCampaignsGetFetcher,
|
|
251
|
+
buildCampaignsIdDeleteFetcher,
|
|
252
|
+
buildCampaignsIdDeliveryJobPostFetcher,
|
|
234
253
|
buildCampaignsIdGetFetcher,
|
|
235
254
|
buildCampaignsIdPatchFetcher,
|
|
236
255
|
buildCampaignsPostFetcher,
|
|
256
|
+
deleteCampaignsId,
|
|
237
257
|
getCampaigns,
|
|
238
258
|
getCampaignsId,
|
|
239
259
|
patchCampaignsId,
|
|
240
|
-
postCampaigns
|
|
260
|
+
postCampaigns,
|
|
261
|
+
postCampaignsIdDeliveryJob
|
|
241
262
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-RD6VKGWI.mjs";
|
|
2
2
|
import {
|
|
3
3
|
buildCampaignsGetFetcher,
|
|
4
4
|
buildCampaignsPostFetcher,
|
|
@@ -6,11 +6,13 @@ import {
|
|
|
6
6
|
postCampaigns
|
|
7
7
|
} from "./chunk-2CYVMP5Y.mjs";
|
|
8
8
|
import {
|
|
9
|
+
buildCampaignsIdDeleteFetcher,
|
|
9
10
|
buildCampaignsIdGetFetcher,
|
|
10
11
|
buildCampaignsIdPatchFetcher,
|
|
12
|
+
deleteCampaignsId,
|
|
11
13
|
getCampaignsId,
|
|
12
14
|
patchCampaignsId
|
|
13
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7JKGCVP4.mjs";
|
|
14
16
|
import {
|
|
15
17
|
Campaign,
|
|
16
18
|
CampaignBaseFormData,
|
|
@@ -41,6 +43,10 @@ import {
|
|
|
41
43
|
PostCampaignsRequestBody,
|
|
42
44
|
PostCampaignsResponse
|
|
43
45
|
} from "./chunk-Z7QYYQ55.mjs";
|
|
46
|
+
import {
|
|
47
|
+
buildCampaignsIdDeliveryJobPostFetcher,
|
|
48
|
+
postCampaignsIdDeliveryJob
|
|
49
|
+
} from "./chunk-Z7N5M2RT.mjs";
|
|
44
50
|
export {
|
|
45
51
|
Campaign,
|
|
46
52
|
CampaignBaseFormData,
|
|
@@ -71,11 +77,15 @@ export {
|
|
|
71
77
|
PostCampaignsRequestBody,
|
|
72
78
|
PostCampaignsResponse,
|
|
73
79
|
buildCampaignsGetFetcher,
|
|
80
|
+
buildCampaignsIdDeleteFetcher,
|
|
81
|
+
buildCampaignsIdDeliveryJobPostFetcher,
|
|
74
82
|
buildCampaignsIdGetFetcher,
|
|
75
83
|
buildCampaignsIdPatchFetcher,
|
|
76
84
|
buildCampaignsPostFetcher,
|
|
85
|
+
deleteCampaignsId,
|
|
77
86
|
getCampaigns,
|
|
78
87
|
getCampaignsId,
|
|
79
88
|
patchCampaignsId,
|
|
80
|
-
postCampaigns
|
|
89
|
+
postCampaigns,
|
|
90
|
+
postCampaignsIdDeliveryJob
|
|
81
91
|
};
|
package/dist/schemaType.d.mts
CHANGED
|
@@ -12,9 +12,15 @@ interface paths {
|
|
|
12
12
|
"/api/campaigns/{id}": {
|
|
13
13
|
/** キャンペーン詳細を取得する */
|
|
14
14
|
get: operations["GetCampaignsCampaignId"];
|
|
15
|
+
/** キャンペーンを削除する */
|
|
16
|
+
delete: operations["DeleteCampaignsCampaignId"];
|
|
15
17
|
/** キャンペーンを更新する */
|
|
16
18
|
patch: operations["PatchCampaignsCampaignId"];
|
|
17
19
|
};
|
|
20
|
+
"/api/campaigns/{id}/delivery_job": {
|
|
21
|
+
/** キャンペーンの配信予約をする */
|
|
22
|
+
post: operations["PostCampaignsCampaignIdDeliveryJob"];
|
|
23
|
+
};
|
|
18
24
|
}
|
|
19
25
|
type webhooks = Record<string, never>;
|
|
20
26
|
interface components {
|
|
@@ -357,6 +363,20 @@ interface operations {
|
|
|
357
363
|
};
|
|
358
364
|
};
|
|
359
365
|
};
|
|
366
|
+
/** キャンペーンを削除する */
|
|
367
|
+
DeleteCampaignsCampaignId: {
|
|
368
|
+
parameters: {
|
|
369
|
+
path: {
|
|
370
|
+
id: number;
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
responses: {
|
|
374
|
+
/** @description No Content */
|
|
375
|
+
204: {
|
|
376
|
+
content: never;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
};
|
|
360
380
|
/** キャンペーンを更新する */
|
|
361
381
|
PatchCampaignsCampaignId: {
|
|
362
382
|
parameters: {
|
|
@@ -378,6 +398,20 @@ interface operations {
|
|
|
378
398
|
};
|
|
379
399
|
};
|
|
380
400
|
};
|
|
401
|
+
/** キャンペーンの配信予約をする */
|
|
402
|
+
PostCampaignsCampaignIdDeliveryJob: {
|
|
403
|
+
parameters: {
|
|
404
|
+
path: {
|
|
405
|
+
id: number;
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
responses: {
|
|
409
|
+
/** @description Created */
|
|
410
|
+
201: {
|
|
411
|
+
content: never;
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
};
|
|
381
415
|
}
|
|
382
416
|
|
|
383
417
|
export type { $defs, components, external, operations, paths, webhooks };
|
package/dist/schemaType.d.ts
CHANGED
|
@@ -12,9 +12,15 @@ interface paths {
|
|
|
12
12
|
"/api/campaigns/{id}": {
|
|
13
13
|
/** キャンペーン詳細を取得する */
|
|
14
14
|
get: operations["GetCampaignsCampaignId"];
|
|
15
|
+
/** キャンペーンを削除する */
|
|
16
|
+
delete: operations["DeleteCampaignsCampaignId"];
|
|
15
17
|
/** キャンペーンを更新する */
|
|
16
18
|
patch: operations["PatchCampaignsCampaignId"];
|
|
17
19
|
};
|
|
20
|
+
"/api/campaigns/{id}/delivery_job": {
|
|
21
|
+
/** キャンペーンの配信予約をする */
|
|
22
|
+
post: operations["PostCampaignsCampaignIdDeliveryJob"];
|
|
23
|
+
};
|
|
18
24
|
}
|
|
19
25
|
type webhooks = Record<string, never>;
|
|
20
26
|
interface components {
|
|
@@ -357,6 +363,20 @@ interface operations {
|
|
|
357
363
|
};
|
|
358
364
|
};
|
|
359
365
|
};
|
|
366
|
+
/** キャンペーンを削除する */
|
|
367
|
+
DeleteCampaignsCampaignId: {
|
|
368
|
+
parameters: {
|
|
369
|
+
path: {
|
|
370
|
+
id: number;
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
responses: {
|
|
374
|
+
/** @description No Content */
|
|
375
|
+
204: {
|
|
376
|
+
content: never;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
};
|
|
360
380
|
/** キャンペーンを更新する */
|
|
361
381
|
PatchCampaignsCampaignId: {
|
|
362
382
|
parameters: {
|
|
@@ -378,6 +398,20 @@ interface operations {
|
|
|
378
398
|
};
|
|
379
399
|
};
|
|
380
400
|
};
|
|
401
|
+
/** キャンペーンの配信予約をする */
|
|
402
|
+
PostCampaignsCampaignIdDeliveryJob: {
|
|
403
|
+
parameters: {
|
|
404
|
+
path: {
|
|
405
|
+
id: number;
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
responses: {
|
|
409
|
+
/** @description Created */
|
|
410
|
+
201: {
|
|
411
|
+
content: never;
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
};
|
|
381
415
|
}
|
|
382
416
|
|
|
383
417
|
export type { $defs, components, external, operations, paths, webhooks };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@readyfor/api-client-pigeon",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.175.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.175.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": "5214fb827d24aae6f543d2912223e14c0e1761b9"
|
|
69
69
|
}
|
|
File without changes
|