@readyfor/api-client-pigeon 0.174.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-Z7N5M2RT.mjs +15 -0
- 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 +7 -6
- package/dist/hooks/useCampaigns.js +7 -4
- package/dist/hooks/useCampaigns.mjs +2 -1
- package/dist/hooks/useCampaignsId.js +7 -4
- package/dist/hooks/useCampaignsId.mjs +2 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14 -2
- package/dist/index.mjs +8 -2
- package/dist/schemaType.d.mts +18 -0
- package/dist/schemaType.d.ts +18 -0
- package/package.json +3 -3
- /package/dist/{chunk-KZFT6V6I.mjs → chunk-RD6VKGWI.mjs} +0 -0
|
@@ -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
|
+
};
|
|
@@ -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
|
-
useCampaigns,
|
|
3
|
-
useCampaignsImmutable,
|
|
4
|
-
useCampaignsInfinite
|
|
5
|
-
} from "../chunk-BAZYTXRM.mjs";
|
|
6
1
|
import {
|
|
7
2
|
useCampaignsId,
|
|
8
3
|
useCampaignsIdImmutable,
|
|
9
4
|
useCampaignsIdInfinite
|
|
10
5
|
} from "../chunk-AUDLS557.mjs";
|
|
11
|
-
import
|
|
6
|
+
import {
|
|
7
|
+
useCampaigns,
|
|
8
|
+
useCampaignsImmutable,
|
|
9
|
+
useCampaignsInfinite
|
|
10
|
+
} from "../chunk-BAZYTXRM.mjs";
|
|
11
|
+
import "../chunk-RD6VKGWI.mjs";
|
|
12
12
|
import "../chunk-2CYVMP5Y.mjs";
|
|
13
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
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
|
);
|
|
@@ -3,10 +3,11 @@ import {
|
|
|
3
3
|
useCampaignsIdImmutable,
|
|
4
4
|
useCampaignsIdInfinite
|
|
5
5
|
} from "../chunk-AUDLS557.mjs";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-RD6VKGWI.mjs";
|
|
7
7
|
import "../chunk-2CYVMP5Y.mjs";
|
|
8
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
|
@@ -2,5 +2,6 @@ export { $defs, components, external, operations, paths, webhooks } from './sche
|
|
|
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
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
|
@@ -2,5 +2,6 @@ export { $defs, components, external, operations, paths, webhooks } from './sche
|
|
|
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
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
|
@@ -50,6 +50,7 @@ __export(src_exports, {
|
|
|
50
50
|
PostCampaignsResponse: () => PostCampaignsResponse,
|
|
51
51
|
buildCampaignsGetFetcher: () => buildCampaignsGetFetcher,
|
|
52
52
|
buildCampaignsIdDeleteFetcher: () => buildCampaignsIdDeleteFetcher,
|
|
53
|
+
buildCampaignsIdDeliveryJobPostFetcher: () => buildCampaignsIdDeliveryJobPostFetcher,
|
|
53
54
|
buildCampaignsIdGetFetcher: () => buildCampaignsIdGetFetcher,
|
|
54
55
|
buildCampaignsIdPatchFetcher: () => buildCampaignsIdPatchFetcher,
|
|
55
56
|
buildCampaignsPostFetcher: () => buildCampaignsPostFetcher,
|
|
@@ -57,7 +58,8 @@ __export(src_exports, {
|
|
|
57
58
|
getCampaigns: () => getCampaigns,
|
|
58
59
|
getCampaignsId: () => getCampaignsId,
|
|
59
60
|
patchCampaignsId: () => patchCampaignsId,
|
|
60
|
-
postCampaigns: () => postCampaigns
|
|
61
|
+
postCampaigns: () => postCampaigns,
|
|
62
|
+
postCampaignsIdDeliveryJob: () => postCampaignsIdDeliveryJob
|
|
61
63
|
});
|
|
62
64
|
module.exports = __toCommonJS(src_exports);
|
|
63
65
|
|
|
@@ -207,6 +209,14 @@ var patchCampaignsId = (path, requestBody, requestInit) => buildCampaignsIdPatch
|
|
|
207
209
|
body: JSON.stringify(requestBody)
|
|
208
210
|
}
|
|
209
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
|
+
);
|
|
210
220
|
// Annotate the CommonJS export names for ESM import in node:
|
|
211
221
|
0 && (module.exports = {
|
|
212
222
|
Campaign,
|
|
@@ -239,6 +249,7 @@ var patchCampaignsId = (path, requestBody, requestInit) => buildCampaignsIdPatch
|
|
|
239
249
|
PostCampaignsResponse,
|
|
240
250
|
buildCampaignsGetFetcher,
|
|
241
251
|
buildCampaignsIdDeleteFetcher,
|
|
252
|
+
buildCampaignsIdDeliveryJobPostFetcher,
|
|
242
253
|
buildCampaignsIdGetFetcher,
|
|
243
254
|
buildCampaignsIdPatchFetcher,
|
|
244
255
|
buildCampaignsPostFetcher,
|
|
@@ -246,5 +257,6 @@ var patchCampaignsId = (path, requestBody, requestInit) => buildCampaignsIdPatch
|
|
|
246
257
|
getCampaigns,
|
|
247
258
|
getCampaignsId,
|
|
248
259
|
patchCampaignsId,
|
|
249
|
-
postCampaigns
|
|
260
|
+
postCampaigns,
|
|
261
|
+
postCampaignsIdDeliveryJob
|
|
250
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,
|
|
@@ -43,6 +43,10 @@ import {
|
|
|
43
43
|
PostCampaignsRequestBody,
|
|
44
44
|
PostCampaignsResponse
|
|
45
45
|
} from "./chunk-Z7QYYQ55.mjs";
|
|
46
|
+
import {
|
|
47
|
+
buildCampaignsIdDeliveryJobPostFetcher,
|
|
48
|
+
postCampaignsIdDeliveryJob
|
|
49
|
+
} from "./chunk-Z7N5M2RT.mjs";
|
|
46
50
|
export {
|
|
47
51
|
Campaign,
|
|
48
52
|
CampaignBaseFormData,
|
|
@@ -74,6 +78,7 @@ export {
|
|
|
74
78
|
PostCampaignsResponse,
|
|
75
79
|
buildCampaignsGetFetcher,
|
|
76
80
|
buildCampaignsIdDeleteFetcher,
|
|
81
|
+
buildCampaignsIdDeliveryJobPostFetcher,
|
|
77
82
|
buildCampaignsIdGetFetcher,
|
|
78
83
|
buildCampaignsIdPatchFetcher,
|
|
79
84
|
buildCampaignsPostFetcher,
|
|
@@ -81,5 +86,6 @@ export {
|
|
|
81
86
|
getCampaigns,
|
|
82
87
|
getCampaignsId,
|
|
83
88
|
patchCampaignsId,
|
|
84
|
-
postCampaigns
|
|
89
|
+
postCampaigns,
|
|
90
|
+
postCampaignsIdDeliveryJob
|
|
85
91
|
};
|
package/dist/schemaType.d.mts
CHANGED
|
@@ -17,6 +17,10 @@ interface paths {
|
|
|
17
17
|
/** キャンペーンを更新する */
|
|
18
18
|
patch: operations["PatchCampaignsCampaignId"];
|
|
19
19
|
};
|
|
20
|
+
"/api/campaigns/{id}/delivery_job": {
|
|
21
|
+
/** キャンペーンの配信予約をする */
|
|
22
|
+
post: operations["PostCampaignsCampaignIdDeliveryJob"];
|
|
23
|
+
};
|
|
20
24
|
}
|
|
21
25
|
type webhooks = Record<string, never>;
|
|
22
26
|
interface components {
|
|
@@ -394,6 +398,20 @@ interface operations {
|
|
|
394
398
|
};
|
|
395
399
|
};
|
|
396
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
|
+
};
|
|
397
415
|
}
|
|
398
416
|
|
|
399
417
|
export type { $defs, components, external, operations, paths, webhooks };
|
package/dist/schemaType.d.ts
CHANGED
|
@@ -17,6 +17,10 @@ interface paths {
|
|
|
17
17
|
/** キャンペーンを更新する */
|
|
18
18
|
patch: operations["PatchCampaignsCampaignId"];
|
|
19
19
|
};
|
|
20
|
+
"/api/campaigns/{id}/delivery_job": {
|
|
21
|
+
/** キャンペーンの配信予約をする */
|
|
22
|
+
post: operations["PostCampaignsCampaignIdDeliveryJob"];
|
|
23
|
+
};
|
|
20
24
|
}
|
|
21
25
|
type webhooks = Record<string, never>;
|
|
22
26
|
interface components {
|
|
@@ -394,6 +398,20 @@ interface operations {
|
|
|
394
398
|
};
|
|
395
399
|
};
|
|
396
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
|
+
};
|
|
397
415
|
}
|
|
398
416
|
|
|
399
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
|