@readyfor/api-client-pigeon 1.75.0-pr1467.6fe45ba → 1.75.0-pr1469.346fa0c
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/fetch/campaigns.js +1 -1
- package/dist/fetch/campaigns.mjs +1 -1
- package/dist/fetch/campaignsCampaignIdImagesId.js +1 -1
- package/dist/fetch/campaignsCampaignIdImagesId.mjs +1 -1
- package/dist/fetch/campaignsId.js +3 -3
- package/dist/fetch/campaignsId.mjs +3 -3
- package/dist/fetch/campaignsIdDeliveryJob.js +2 -2
- package/dist/fetch/campaignsIdDeliveryJob.mjs +2 -2
- package/dist/fetch/campaignsIdImages.js +1 -1
- package/dist/fetch/campaignsIdImages.mjs +1 -1
- package/dist/fetch/campaignsIdPreview.js +1 -1
- package/dist/fetch/campaignsIdPreview.mjs +1 -1
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.js +1 -1
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.mjs +1 -1
- package/dist/fetch/campaignsIdUtmCampaignConflicts.js +1 -4
- package/dist/fetch/campaignsIdUtmCampaignConflicts.mjs +1 -4
- package/dist/fetch/projectsProjectIdOrKeyword.js +1 -1
- package/dist/fetch/projectsProjectIdOrKeyword.mjs +1 -1
- package/dist/fetch/segmentsTargetUsersCount.js +1 -1
- package/dist/fetch/segmentsTargetUsersCount.mjs +1 -1
- package/dist/hooks/useCampaigns.js +3 -3
- package/dist/hooks/useCampaigns.mjs +3 -3
- package/dist/hooks/useCampaignsId.js +3 -3
- package/dist/hooks/useCampaignsId.mjs +3 -3
- package/dist/hooks/useCampaignsIdPreview.js +3 -3
- package/dist/hooks/useCampaignsIdPreview.mjs +3 -3
- package/dist/hooks/useCampaignsIdUtmCampaignConflicts.js +3 -12
- package/dist/hooks/useCampaignsIdUtmCampaignConflicts.mjs +3 -12
- package/dist/hooks/useProjectsProjectIdOrKeyword.js +3 -3
- package/dist/hooks/useProjectsProjectIdOrKeyword.mjs +3 -3
- package/dist/hooks/useSegmentsTargetUsersCount.js +3 -3
- package/dist/hooks/useSegmentsTargetUsersCount.mjs +3 -3
- package/package.json +5 -4
package/dist/fetch/campaigns.js
CHANGED
|
@@ -4,7 +4,7 @@ let _readyfor_api_client_base = require("@readyfor/api-client-base");
|
|
|
4
4
|
//#region src/fetch/campaigns.ts
|
|
5
5
|
const buildCampaignsGetFetcher = (requestInit, options) => (0, _readyfor_api_client_base.createJsonFetcher)(require_components.GetCampaignsResponse, { ...requestInit }, options);
|
|
6
6
|
const getCampaigns = (query, customRequestInit, options) => {
|
|
7
|
-
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns", { query
|
|
7
|
+
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns", {}, query);
|
|
8
8
|
const requestInit = (0, _readyfor_api_client_base.buildRequestInitWithDefaultConfig)((0, _readyfor_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" }));
|
|
9
9
|
return buildCampaignsGetFetcher(requestInit, options)(requestInfo);
|
|
10
10
|
};
|
package/dist/fetch/campaigns.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { __internal__requestUrl, buildRequestInitWithDefaultConfig, createJsonFe
|
|
|
3
3
|
//#region src/fetch/campaigns.ts
|
|
4
4
|
const buildCampaignsGetFetcher = (requestInit, options) => createJsonFetcher(GetCampaignsResponse, { ...requestInit }, options);
|
|
5
5
|
const getCampaigns = (query, customRequestInit, options) => {
|
|
6
|
-
const requestInfo = __internal__requestUrl("/api/campaigns", { query
|
|
6
|
+
const requestInfo = __internal__requestUrl("/api/campaigns", {}, query);
|
|
7
7
|
const requestInit = buildRequestInitWithDefaultConfig(mergeRequestInit(customRequestInit ?? {}, { method: "GET" }));
|
|
8
8
|
return buildCampaignsGetFetcher(requestInit, options)(requestInfo);
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ let _readyfor_api_client_base = require("@readyfor/api-client-base");
|
|
|
3
3
|
//#region src/fetch/campaignsCampaignIdImagesId.ts
|
|
4
4
|
const buildCampaignsCampaignIdImagesIdDeleteFetcher = (requestInit, options) => (0, _readyfor_api_client_base.createVoidFetcher)({ ...requestInit }, options);
|
|
5
5
|
const deleteCampaignsCampaignIdImagesId = (path, customRequestInit, options) => {
|
|
6
|
-
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{campaign_id}/images/{id}",
|
|
6
|
+
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{campaign_id}/images/{id}", path);
|
|
7
7
|
const requestInit = (0, _readyfor_api_client_base.buildRequestInitWithDefaultConfig)((0, _readyfor_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "DELETE" }));
|
|
8
8
|
return buildCampaignsCampaignIdImagesIdDeleteFetcher(requestInit, options)(requestInfo);
|
|
9
9
|
};
|
|
@@ -2,7 +2,7 @@ import { __internal__requestUrl, buildRequestInitWithDefaultConfig, createVoidFe
|
|
|
2
2
|
//#region src/fetch/campaignsCampaignIdImagesId.ts
|
|
3
3
|
const buildCampaignsCampaignIdImagesIdDeleteFetcher = (requestInit, options) => createVoidFetcher({ ...requestInit }, options);
|
|
4
4
|
const deleteCampaignsCampaignIdImagesId = (path, customRequestInit, options) => {
|
|
5
|
-
const requestInfo = __internal__requestUrl("/api/campaigns/{campaign_id}/images/{id}",
|
|
5
|
+
const requestInfo = __internal__requestUrl("/api/campaigns/{campaign_id}/images/{id}", path);
|
|
6
6
|
const requestInit = buildRequestInitWithDefaultConfig(mergeRequestInit(customRequestInit ?? {}, { method: "DELETE" }));
|
|
7
7
|
return buildCampaignsCampaignIdImagesIdDeleteFetcher(requestInit, options)(requestInfo);
|
|
8
8
|
};
|
|
@@ -4,19 +4,19 @@ let _readyfor_api_client_base = require("@readyfor/api-client-base");
|
|
|
4
4
|
//#region src/fetch/campaignsId.ts
|
|
5
5
|
const buildCampaignsIdGetFetcher = (requestInit, options) => (0, _readyfor_api_client_base.createJsonFetcher)(require_components.CampaignsCampaignIdResponse, { ...requestInit }, options);
|
|
6
6
|
const getCampaignsId = (path, customRequestInit, options) => {
|
|
7
|
-
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}",
|
|
7
|
+
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
8
8
|
const requestInit = (0, _readyfor_api_client_base.buildRequestInitWithDefaultConfig)((0, _readyfor_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" }));
|
|
9
9
|
return buildCampaignsIdGetFetcher(requestInit, options)(requestInfo);
|
|
10
10
|
};
|
|
11
11
|
const buildCampaignsIdDeleteFetcher = (requestInit, options) => (0, _readyfor_api_client_base.createVoidFetcher)({ ...requestInit }, options);
|
|
12
12
|
const deleteCampaignsId = (path, customRequestInit, options) => {
|
|
13
|
-
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}",
|
|
13
|
+
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
14
14
|
const requestInit = (0, _readyfor_api_client_base.buildRequestInitWithDefaultConfig)((0, _readyfor_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "DELETE" }));
|
|
15
15
|
return buildCampaignsIdDeleteFetcher(requestInit, options)(requestInfo);
|
|
16
16
|
};
|
|
17
17
|
const buildCampaignsIdPatchFetcher = (requestInit, options) => (0, _readyfor_api_client_base.createJsonFetcher)(require_components.CampaignsCampaignIdResponse, { ...requestInit }, options);
|
|
18
18
|
const patchCampaignsId = (path, requestBody, customRequestInit, options) => {
|
|
19
|
-
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}",
|
|
19
|
+
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
20
20
|
const requestInit = (0, _readyfor_api_client_base.buildRequestInitWithDefaultConfig)((0, _readyfor_api_client_base.mergeRequestInit)(customRequestInit ?? {}, {
|
|
21
21
|
method: "PATCH",
|
|
22
22
|
body: requestBody
|
|
@@ -3,19 +3,19 @@ import { __internal__requestUrl, buildRequestInitWithDefaultConfig, createJsonFe
|
|
|
3
3
|
//#region src/fetch/campaignsId.ts
|
|
4
4
|
const buildCampaignsIdGetFetcher = (requestInit, options) => createJsonFetcher(CampaignsCampaignIdResponse, { ...requestInit }, options);
|
|
5
5
|
const getCampaignsId = (path, customRequestInit, options) => {
|
|
6
|
-
const requestInfo = __internal__requestUrl("/api/campaigns/{id}",
|
|
6
|
+
const requestInfo = __internal__requestUrl("/api/campaigns/{id}", path);
|
|
7
7
|
const requestInit = buildRequestInitWithDefaultConfig(mergeRequestInit(customRequestInit ?? {}, { method: "GET" }));
|
|
8
8
|
return buildCampaignsIdGetFetcher(requestInit, options)(requestInfo);
|
|
9
9
|
};
|
|
10
10
|
const buildCampaignsIdDeleteFetcher = (requestInit, options) => createVoidFetcher({ ...requestInit }, options);
|
|
11
11
|
const deleteCampaignsId = (path, customRequestInit, options) => {
|
|
12
|
-
const requestInfo = __internal__requestUrl("/api/campaigns/{id}",
|
|
12
|
+
const requestInfo = __internal__requestUrl("/api/campaigns/{id}", path);
|
|
13
13
|
const requestInit = buildRequestInitWithDefaultConfig(mergeRequestInit(customRequestInit ?? {}, { method: "DELETE" }));
|
|
14
14
|
return buildCampaignsIdDeleteFetcher(requestInit, options)(requestInfo);
|
|
15
15
|
};
|
|
16
16
|
const buildCampaignsIdPatchFetcher = (requestInit, options) => createJsonFetcher(CampaignsCampaignIdResponse, { ...requestInit }, options);
|
|
17
17
|
const patchCampaignsId = (path, requestBody, customRequestInit, options) => {
|
|
18
|
-
const requestInfo = __internal__requestUrl("/api/campaigns/{id}",
|
|
18
|
+
const requestInfo = __internal__requestUrl("/api/campaigns/{id}", path);
|
|
19
19
|
const requestInit = buildRequestInitWithDefaultConfig(mergeRequestInit(customRequestInit ?? {}, {
|
|
20
20
|
method: "PATCH",
|
|
21
21
|
body: requestBody
|
|
@@ -3,13 +3,13 @@ let _readyfor_api_client_base = require("@readyfor/api-client-base");
|
|
|
3
3
|
//#region src/fetch/campaignsIdDeliveryJob.ts
|
|
4
4
|
const buildCampaignsIdDeliveryJobPostFetcher = (requestInit, options) => (0, _readyfor_api_client_base.createVoidFetcher)({ ...requestInit }, options);
|
|
5
5
|
const postCampaignsIdDeliveryJob = (path, customRequestInit, options) => {
|
|
6
|
-
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/delivery_job",
|
|
6
|
+
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/delivery_job", path);
|
|
7
7
|
const requestInit = (0, _readyfor_api_client_base.buildRequestInitWithDefaultConfig)((0, _readyfor_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "POST" }));
|
|
8
8
|
return buildCampaignsIdDeliveryJobPostFetcher(requestInit, options)(requestInfo);
|
|
9
9
|
};
|
|
10
10
|
const buildCampaignsIdDeliveryJobDeleteFetcher = (requestInit, options) => (0, _readyfor_api_client_base.createVoidFetcher)({ ...requestInit }, options);
|
|
11
11
|
const deleteCampaignsIdDeliveryJob = (path, customRequestInit, options) => {
|
|
12
|
-
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/delivery_job",
|
|
12
|
+
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/delivery_job", path);
|
|
13
13
|
const requestInit = (0, _readyfor_api_client_base.buildRequestInitWithDefaultConfig)((0, _readyfor_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "DELETE" }));
|
|
14
14
|
return buildCampaignsIdDeliveryJobDeleteFetcher(requestInit, options)(requestInfo);
|
|
15
15
|
};
|
|
@@ -2,13 +2,13 @@ import { __internal__requestUrl, buildRequestInitWithDefaultConfig, createVoidFe
|
|
|
2
2
|
//#region src/fetch/campaignsIdDeliveryJob.ts
|
|
3
3
|
const buildCampaignsIdDeliveryJobPostFetcher = (requestInit, options) => createVoidFetcher({ ...requestInit }, options);
|
|
4
4
|
const postCampaignsIdDeliveryJob = (path, customRequestInit, options) => {
|
|
5
|
-
const requestInfo = __internal__requestUrl("/api/campaigns/{id}/delivery_job",
|
|
5
|
+
const requestInfo = __internal__requestUrl("/api/campaigns/{id}/delivery_job", path);
|
|
6
6
|
const requestInit = buildRequestInitWithDefaultConfig(mergeRequestInit(customRequestInit ?? {}, { method: "POST" }));
|
|
7
7
|
return buildCampaignsIdDeliveryJobPostFetcher(requestInit, options)(requestInfo);
|
|
8
8
|
};
|
|
9
9
|
const buildCampaignsIdDeliveryJobDeleteFetcher = (requestInit, options) => createVoidFetcher({ ...requestInit }, options);
|
|
10
10
|
const deleteCampaignsIdDeliveryJob = (path, customRequestInit, options) => {
|
|
11
|
-
const requestInfo = __internal__requestUrl("/api/campaigns/{id}/delivery_job",
|
|
11
|
+
const requestInfo = __internal__requestUrl("/api/campaigns/{id}/delivery_job", path);
|
|
12
12
|
const requestInit = buildRequestInitWithDefaultConfig(mergeRequestInit(customRequestInit ?? {}, { method: "DELETE" }));
|
|
13
13
|
return buildCampaignsIdDeliveryJobDeleteFetcher(requestInit, options)(requestInfo);
|
|
14
14
|
};
|
|
@@ -4,7 +4,7 @@ let _readyfor_api_client_base = require("@readyfor/api-client-base");
|
|
|
4
4
|
//#region src/fetch/campaignsIdImages.ts
|
|
5
5
|
const buildCampaignsIdImagesPostFetcher = (requestInit, options) => (0, _readyfor_api_client_base.createJsonFetcher)(require_components.Image, { ...requestInit }, options);
|
|
6
6
|
const postCampaignsIdImages = (path, requestBody, customRequestInit, options) => {
|
|
7
|
-
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/images",
|
|
7
|
+
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/images", path);
|
|
8
8
|
const requestInit = (0, _readyfor_api_client_base.buildRequestInitWithDefaultConfig)((0, _readyfor_api_client_base.mergeRequestInit)(customRequestInit ?? {}, {
|
|
9
9
|
method: "POST",
|
|
10
10
|
body: requestBody
|
|
@@ -3,7 +3,7 @@ import { __internal__requestUrl, buildRequestInitWithDefaultConfig, createJsonFe
|
|
|
3
3
|
//#region src/fetch/campaignsIdImages.ts
|
|
4
4
|
const buildCampaignsIdImagesPostFetcher = (requestInit, options) => createJsonFetcher(Image, { ...requestInit }, options);
|
|
5
5
|
const postCampaignsIdImages = (path, requestBody, customRequestInit, options) => {
|
|
6
|
-
const requestInfo = __internal__requestUrl("/api/campaigns/{id}/images",
|
|
6
|
+
const requestInfo = __internal__requestUrl("/api/campaigns/{id}/images", path);
|
|
7
7
|
const requestInit = buildRequestInitWithDefaultConfig(mergeRequestInit(customRequestInit ?? {}, {
|
|
8
8
|
method: "POST",
|
|
9
9
|
body: requestBody
|
|
@@ -4,7 +4,7 @@ let _readyfor_api_client_base = require("@readyfor/api-client-base");
|
|
|
4
4
|
//#region src/fetch/campaignsIdPreview.ts
|
|
5
5
|
const buildCampaignsIdPreviewGetFetcher = (requestInit, options) => (0, _readyfor_api_client_base.createJsonFetcher)(require_components.GetCampaignsCampaignIdPreviewResponse, { ...requestInit }, options);
|
|
6
6
|
const getCampaignsIdPreview = (path, customRequestInit, options) => {
|
|
7
|
-
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/preview",
|
|
7
|
+
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/preview", path);
|
|
8
8
|
const requestInit = (0, _readyfor_api_client_base.buildRequestInitWithDefaultConfig)((0, _readyfor_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" }));
|
|
9
9
|
return buildCampaignsIdPreviewGetFetcher(requestInit, options)(requestInfo);
|
|
10
10
|
};
|
|
@@ -3,7 +3,7 @@ import { __internal__requestUrl, buildRequestInitWithDefaultConfig, createJsonFe
|
|
|
3
3
|
//#region src/fetch/campaignsIdPreview.ts
|
|
4
4
|
const buildCampaignsIdPreviewGetFetcher = (requestInit, options) => createJsonFetcher(GetCampaignsCampaignIdPreviewResponse, { ...requestInit }, options);
|
|
5
5
|
const getCampaignsIdPreview = (path, customRequestInit, options) => {
|
|
6
|
-
const requestInfo = __internal__requestUrl("/api/campaigns/{id}/preview",
|
|
6
|
+
const requestInfo = __internal__requestUrl("/api/campaigns/{id}/preview", path);
|
|
7
7
|
const requestInit = buildRequestInitWithDefaultConfig(mergeRequestInit(customRequestInit ?? {}, { method: "GET" }));
|
|
8
8
|
return buildCampaignsIdPreviewGetFetcher(requestInit, options)(requestInfo);
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ let _readyfor_api_client_base = require("@readyfor/api-client-base");
|
|
|
3
3
|
//#region src/fetch/campaignsIdPreviewDeliveryEmail.ts
|
|
4
4
|
const buildCampaignsIdPreviewDeliveryEmailPostFetcher = (requestInit, options) => (0, _readyfor_api_client_base.createVoidFetcher)({ ...requestInit }, options);
|
|
5
5
|
const postCampaignsIdPreviewDeliveryEmail = (path, requestBody, customRequestInit, options) => {
|
|
6
|
-
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/preview_delivery_email",
|
|
6
|
+
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/preview_delivery_email", path);
|
|
7
7
|
const requestInit = (0, _readyfor_api_client_base.buildRequestInitWithDefaultConfig)((0, _readyfor_api_client_base.mergeRequestInit)(customRequestInit ?? {}, {
|
|
8
8
|
method: "POST",
|
|
9
9
|
headers: { "Content-Type": "application/json" },
|
|
@@ -2,7 +2,7 @@ import { __internal__requestUrl, buildRequestInitWithDefaultConfig, createVoidFe
|
|
|
2
2
|
//#region src/fetch/campaignsIdPreviewDeliveryEmail.ts
|
|
3
3
|
const buildCampaignsIdPreviewDeliveryEmailPostFetcher = (requestInit, options) => createVoidFetcher({ ...requestInit }, options);
|
|
4
4
|
const postCampaignsIdPreviewDeliveryEmail = (path, requestBody, customRequestInit, options) => {
|
|
5
|
-
const requestInfo = __internal__requestUrl("/api/campaigns/{id}/preview_delivery_email",
|
|
5
|
+
const requestInfo = __internal__requestUrl("/api/campaigns/{id}/preview_delivery_email", path);
|
|
6
6
|
const requestInit = buildRequestInitWithDefaultConfig(mergeRequestInit(customRequestInit ?? {}, {
|
|
7
7
|
method: "POST",
|
|
8
8
|
headers: { "Content-Type": "application/json" },
|
|
@@ -4,10 +4,7 @@ let _readyfor_api_client_base = require("@readyfor/api-client-base");
|
|
|
4
4
|
//#region src/fetch/campaignsIdUtmCampaignConflicts.ts
|
|
5
5
|
const buildCampaignsIdUtmCampaignConflictsGetFetcher = (requestInit, options) => (0, _readyfor_api_client_base.createJsonFetcher)(require_components.GetCampaignsCampaignIdUtmCampaignConflictsResponse, { ...requestInit }, options);
|
|
6
6
|
const getCampaignsIdUtmCampaignConflicts = (path, query, customRequestInit, options) => {
|
|
7
|
-
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/utm_campaign_conflicts",
|
|
8
|
-
path,
|
|
9
|
-
query
|
|
10
|
-
});
|
|
7
|
+
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/utm_campaign_conflicts", path, query);
|
|
11
8
|
const requestInit = (0, _readyfor_api_client_base.buildRequestInitWithDefaultConfig)((0, _readyfor_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" }));
|
|
12
9
|
return buildCampaignsIdUtmCampaignConflictsGetFetcher(requestInit, options)(requestInfo);
|
|
13
10
|
};
|
|
@@ -3,10 +3,7 @@ import { __internal__requestUrl, buildRequestInitWithDefaultConfig, createJsonFe
|
|
|
3
3
|
//#region src/fetch/campaignsIdUtmCampaignConflicts.ts
|
|
4
4
|
const buildCampaignsIdUtmCampaignConflictsGetFetcher = (requestInit, options) => createJsonFetcher(GetCampaignsCampaignIdUtmCampaignConflictsResponse, { ...requestInit }, options);
|
|
5
5
|
const getCampaignsIdUtmCampaignConflicts = (path, query, customRequestInit, options) => {
|
|
6
|
-
const requestInfo = __internal__requestUrl("/api/campaigns/{id}/utm_campaign_conflicts",
|
|
7
|
-
path,
|
|
8
|
-
query
|
|
9
|
-
});
|
|
6
|
+
const requestInfo = __internal__requestUrl("/api/campaigns/{id}/utm_campaign_conflicts", path, query);
|
|
10
7
|
const requestInit = buildRequestInitWithDefaultConfig(mergeRequestInit(customRequestInit ?? {}, { method: "GET" }));
|
|
11
8
|
return buildCampaignsIdUtmCampaignConflictsGetFetcher(requestInit, options)(requestInfo);
|
|
12
9
|
};
|
|
@@ -4,7 +4,7 @@ let _readyfor_api_client_base = require("@readyfor/api-client-base");
|
|
|
4
4
|
//#region src/fetch/projectsProjectIdOrKeyword.ts
|
|
5
5
|
const buildProjectsProjectIdOrKeywordGetFetcher = (requestInit, options) => (0, _readyfor_api_client_base.createJsonFetcher)(require_components.GetProjectsProjectIdOrKeywordResponse, { ...requestInit }, options);
|
|
6
6
|
const getProjectsProjectIdOrKeyword = (path, customRequestInit, options) => {
|
|
7
|
-
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/projects/{project_id_or_keyword}",
|
|
7
|
+
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/projects/{project_id_or_keyword}", path);
|
|
8
8
|
const requestInit = (0, _readyfor_api_client_base.buildRequestInitWithDefaultConfig)((0, _readyfor_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" }));
|
|
9
9
|
return buildProjectsProjectIdOrKeywordGetFetcher(requestInit, options)(requestInfo);
|
|
10
10
|
};
|
|
@@ -3,7 +3,7 @@ import { __internal__requestUrl, buildRequestInitWithDefaultConfig, createJsonFe
|
|
|
3
3
|
//#region src/fetch/projectsProjectIdOrKeyword.ts
|
|
4
4
|
const buildProjectsProjectIdOrKeywordGetFetcher = (requestInit, options) => createJsonFetcher(GetProjectsProjectIdOrKeywordResponse, { ...requestInit }, options);
|
|
5
5
|
const getProjectsProjectIdOrKeyword = (path, customRequestInit, options) => {
|
|
6
|
-
const requestInfo = __internal__requestUrl("/api/projects/{project_id_or_keyword}",
|
|
6
|
+
const requestInfo = __internal__requestUrl("/api/projects/{project_id_or_keyword}", path);
|
|
7
7
|
const requestInit = buildRequestInitWithDefaultConfig(mergeRequestInit(customRequestInit ?? {}, { method: "GET" }));
|
|
8
8
|
return buildProjectsProjectIdOrKeywordGetFetcher(requestInit, options)(requestInfo);
|
|
9
9
|
};
|
|
@@ -4,7 +4,7 @@ let _readyfor_api_client_base = require("@readyfor/api-client-base");
|
|
|
4
4
|
//#region src/fetch/segmentsTargetUsersCount.ts
|
|
5
5
|
const buildSegmentsTargetUsersCountGetFetcher = (requestInit, options) => (0, _readyfor_api_client_base.createJsonFetcher)(require_components.GetTargetUsersCountResponse, { ...requestInit }, options);
|
|
6
6
|
const getSegmentsTargetUsersCount = (query, customRequestInit, options) => {
|
|
7
|
-
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/segments/target_users_count", { query
|
|
7
|
+
const requestInfo = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/segments/target_users_count", {}, query);
|
|
8
8
|
const requestInit = (0, _readyfor_api_client_base.buildRequestInitWithDefaultConfig)((0, _readyfor_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" }));
|
|
9
9
|
return buildSegmentsTargetUsersCountGetFetcher(requestInit, options)(requestInfo);
|
|
10
10
|
};
|
|
@@ -3,7 +3,7 @@ import { __internal__requestUrl, buildRequestInitWithDefaultConfig, createJsonFe
|
|
|
3
3
|
//#region src/fetch/segmentsTargetUsersCount.ts
|
|
4
4
|
const buildSegmentsTargetUsersCountGetFetcher = (requestInit, options) => createJsonFetcher(GetTargetUsersCountResponse, { ...requestInit }, options);
|
|
5
5
|
const getSegmentsTargetUsersCount = (query, customRequestInit, options) => {
|
|
6
|
-
const requestInfo = __internal__requestUrl("/api/segments/target_users_count", { query
|
|
6
|
+
const requestInfo = __internal__requestUrl("/api/segments/target_users_count", {}, query);
|
|
7
7
|
const requestInit = buildRequestInitWithDefaultConfig(mergeRequestInit(customRequestInit ?? {}, { method: "GET" }));
|
|
8
8
|
return buildSegmentsTargetUsersCountGetFetcher(requestInit, options)(requestInfo);
|
|
9
9
|
};
|
|
@@ -13,7 +13,7 @@ let _readyfor_api_client_base_react = require("@readyfor/api-client-base/react")
|
|
|
13
13
|
//#region src/hooks/useCampaigns.ts
|
|
14
14
|
const campaignsGetFetcher = require_fetch_campaigns.buildCampaignsGetFetcher();
|
|
15
15
|
const useCampaigns = (query, swrConfig = {}) => {
|
|
16
|
-
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns", { query
|
|
16
|
+
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns", {}, query);
|
|
17
17
|
const requestInit = (0, _readyfor_api_client_base_react.useRequestInit)();
|
|
18
18
|
return {
|
|
19
19
|
key,
|
|
@@ -21,14 +21,14 @@ const useCampaigns = (query, swrConfig = {}) => {
|
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
const useCampaignsImmutable = (query, swrConfig = {}) => {
|
|
24
|
-
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns", { query
|
|
24
|
+
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns", {}, query);
|
|
25
25
|
const requestInit = (0, _readyfor_api_client_base_react.useRequestInit)();
|
|
26
26
|
return {
|
|
27
27
|
key,
|
|
28
28
|
...(0, swr_immutable.default)(swrConfig?.shouldNotFetch ? null : key, require_fetch_campaigns.buildCampaignsGetFetcher(requestInit), swrConfig)
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
const useCampaignsInfinite = (getKey, swrConfig) => (0, swr_infinite.default)(getKey((query) => (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns", { query
|
|
31
|
+
const useCampaignsInfinite = (getKey, swrConfig) => (0, swr_infinite.default)(getKey((query) => (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns", {}, query)), campaignsGetFetcher, swrConfig);
|
|
32
32
|
//#endregion
|
|
33
33
|
exports.useCampaigns = useCampaigns;
|
|
34
34
|
exports.useCampaignsImmutable = useCampaignsImmutable;
|
|
@@ -8,7 +8,7 @@ import { useRequestInit } from "@readyfor/api-client-base/react";
|
|
|
8
8
|
//#region src/hooks/useCampaigns.ts
|
|
9
9
|
const campaignsGetFetcher = buildCampaignsGetFetcher();
|
|
10
10
|
const useCampaigns = (query, swrConfig = {}) => {
|
|
11
|
-
const key = __internal__requestUrl("/api/campaigns", { query
|
|
11
|
+
const key = __internal__requestUrl("/api/campaigns", {}, query);
|
|
12
12
|
const requestInit = useRequestInit();
|
|
13
13
|
return {
|
|
14
14
|
key,
|
|
@@ -16,13 +16,13 @@ const useCampaigns = (query, swrConfig = {}) => {
|
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
const useCampaignsImmutable = (query, swrConfig = {}) => {
|
|
19
|
-
const key = __internal__requestUrl("/api/campaigns", { query
|
|
19
|
+
const key = __internal__requestUrl("/api/campaigns", {}, query);
|
|
20
20
|
const requestInit = useRequestInit();
|
|
21
21
|
return {
|
|
22
22
|
key,
|
|
23
23
|
...useSWRImmutable(swrConfig?.shouldNotFetch ? null : key, buildCampaignsGetFetcher(requestInit), swrConfig)
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
-
const useCampaignsInfinite = (getKey, swrConfig) => useSWRInfinite(getKey((query) => __internal__requestUrl("/api/campaigns", { query
|
|
26
|
+
const useCampaignsInfinite = (getKey, swrConfig) => useSWRInfinite(getKey((query) => __internal__requestUrl("/api/campaigns", {}, query)), campaignsGetFetcher, swrConfig);
|
|
27
27
|
//#endregion
|
|
28
28
|
export { useCampaigns, useCampaignsImmutable, useCampaignsInfinite };
|
|
@@ -13,7 +13,7 @@ let _readyfor_api_client_base_react = require("@readyfor/api-client-base/react")
|
|
|
13
13
|
//#region src/hooks/useCampaignsId.ts
|
|
14
14
|
const campaignsIdGetFetcher = require_fetch_campaignsId.buildCampaignsIdGetFetcher();
|
|
15
15
|
const useCampaignsId = (path, swrConfig = {}) => {
|
|
16
|
-
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}",
|
|
16
|
+
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
17
17
|
const requestInit = (0, _readyfor_api_client_base_react.useRequestInit)();
|
|
18
18
|
return {
|
|
19
19
|
key,
|
|
@@ -21,14 +21,14 @@ const useCampaignsId = (path, swrConfig = {}) => {
|
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
const useCampaignsIdImmutable = (path, swrConfig = {}) => {
|
|
24
|
-
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}",
|
|
24
|
+
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
25
25
|
const requestInit = (0, _readyfor_api_client_base_react.useRequestInit)();
|
|
26
26
|
return {
|
|
27
27
|
key,
|
|
28
28
|
...(0, swr_immutable.default)(swrConfig?.shouldNotFetch ? null : key, require_fetch_campaignsId.buildCampaignsIdGetFetcher(requestInit), swrConfig)
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
const useCampaignsIdInfinite = (getKey, swrConfig) => (0, swr_infinite.default)(getKey((path) => (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}",
|
|
31
|
+
const useCampaignsIdInfinite = (getKey, swrConfig) => (0, swr_infinite.default)(getKey((path) => (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path)), campaignsIdGetFetcher, swrConfig);
|
|
32
32
|
//#endregion
|
|
33
33
|
exports.useCampaignsId = useCampaignsId;
|
|
34
34
|
exports.useCampaignsIdImmutable = useCampaignsIdImmutable;
|
|
@@ -8,7 +8,7 @@ import { useRequestInit } from "@readyfor/api-client-base/react";
|
|
|
8
8
|
//#region src/hooks/useCampaignsId.ts
|
|
9
9
|
const campaignsIdGetFetcher = buildCampaignsIdGetFetcher();
|
|
10
10
|
const useCampaignsId = (path, swrConfig = {}) => {
|
|
11
|
-
const key = __internal__requestUrl("/api/campaigns/{id}",
|
|
11
|
+
const key = __internal__requestUrl("/api/campaigns/{id}", path);
|
|
12
12
|
const requestInit = useRequestInit();
|
|
13
13
|
return {
|
|
14
14
|
key,
|
|
@@ -16,13 +16,13 @@ const useCampaignsId = (path, swrConfig = {}) => {
|
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
const useCampaignsIdImmutable = (path, swrConfig = {}) => {
|
|
19
|
-
const key = __internal__requestUrl("/api/campaigns/{id}",
|
|
19
|
+
const key = __internal__requestUrl("/api/campaigns/{id}", path);
|
|
20
20
|
const requestInit = useRequestInit();
|
|
21
21
|
return {
|
|
22
22
|
key,
|
|
23
23
|
...useSWRImmutable(swrConfig?.shouldNotFetch ? null : key, buildCampaignsIdGetFetcher(requestInit), swrConfig)
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
-
const useCampaignsIdInfinite = (getKey, swrConfig) => useSWRInfinite(getKey((path) => __internal__requestUrl("/api/campaigns/{id}",
|
|
26
|
+
const useCampaignsIdInfinite = (getKey, swrConfig) => useSWRInfinite(getKey((path) => __internal__requestUrl("/api/campaigns/{id}", path)), campaignsIdGetFetcher, swrConfig);
|
|
27
27
|
//#endregion
|
|
28
28
|
export { useCampaignsId, useCampaignsIdImmutable, useCampaignsIdInfinite };
|
|
@@ -13,7 +13,7 @@ let _readyfor_api_client_base_react = require("@readyfor/api-client-base/react")
|
|
|
13
13
|
//#region src/hooks/useCampaignsIdPreview.ts
|
|
14
14
|
const campaignsIdPreviewGetFetcher = require_fetch_campaignsIdPreview.buildCampaignsIdPreviewGetFetcher();
|
|
15
15
|
const useCampaignsIdPreview = (path, swrConfig = {}) => {
|
|
16
|
-
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/preview",
|
|
16
|
+
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/preview", path);
|
|
17
17
|
const requestInit = (0, _readyfor_api_client_base_react.useRequestInit)();
|
|
18
18
|
return {
|
|
19
19
|
key,
|
|
@@ -21,14 +21,14 @@ const useCampaignsIdPreview = (path, swrConfig = {}) => {
|
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
const useCampaignsIdPreviewImmutable = (path, swrConfig = {}) => {
|
|
24
|
-
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/preview",
|
|
24
|
+
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/preview", path);
|
|
25
25
|
const requestInit = (0, _readyfor_api_client_base_react.useRequestInit)();
|
|
26
26
|
return {
|
|
27
27
|
key,
|
|
28
28
|
...(0, swr_immutable.default)(swrConfig?.shouldNotFetch ? null : key, require_fetch_campaignsIdPreview.buildCampaignsIdPreviewGetFetcher(requestInit), swrConfig)
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
const useCampaignsIdPreviewInfinite = (getKey, swrConfig) => (0, swr_infinite.default)(getKey((path) => (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/preview",
|
|
31
|
+
const useCampaignsIdPreviewInfinite = (getKey, swrConfig) => (0, swr_infinite.default)(getKey((path) => (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/preview", path)), campaignsIdPreviewGetFetcher, swrConfig);
|
|
32
32
|
//#endregion
|
|
33
33
|
exports.useCampaignsIdPreview = useCampaignsIdPreview;
|
|
34
34
|
exports.useCampaignsIdPreviewImmutable = useCampaignsIdPreviewImmutable;
|
|
@@ -8,7 +8,7 @@ import { useRequestInit } from "@readyfor/api-client-base/react";
|
|
|
8
8
|
//#region src/hooks/useCampaignsIdPreview.ts
|
|
9
9
|
const campaignsIdPreviewGetFetcher = buildCampaignsIdPreviewGetFetcher();
|
|
10
10
|
const useCampaignsIdPreview = (path, swrConfig = {}) => {
|
|
11
|
-
const key = __internal__requestUrl("/api/campaigns/{id}/preview",
|
|
11
|
+
const key = __internal__requestUrl("/api/campaigns/{id}/preview", path);
|
|
12
12
|
const requestInit = useRequestInit();
|
|
13
13
|
return {
|
|
14
14
|
key,
|
|
@@ -16,13 +16,13 @@ const useCampaignsIdPreview = (path, swrConfig = {}) => {
|
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
const useCampaignsIdPreviewImmutable = (path, swrConfig = {}) => {
|
|
19
|
-
const key = __internal__requestUrl("/api/campaigns/{id}/preview",
|
|
19
|
+
const key = __internal__requestUrl("/api/campaigns/{id}/preview", path);
|
|
20
20
|
const requestInit = useRequestInit();
|
|
21
21
|
return {
|
|
22
22
|
key,
|
|
23
23
|
...useSWRImmutable(swrConfig?.shouldNotFetch ? null : key, buildCampaignsIdPreviewGetFetcher(requestInit), swrConfig)
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
-
const useCampaignsIdPreviewInfinite = (getKey, swrConfig) => useSWRInfinite(getKey((path) => __internal__requestUrl("/api/campaigns/{id}/preview",
|
|
26
|
+
const useCampaignsIdPreviewInfinite = (getKey, swrConfig) => useSWRInfinite(getKey((path) => __internal__requestUrl("/api/campaigns/{id}/preview", path)), campaignsIdPreviewGetFetcher, swrConfig);
|
|
27
27
|
//#endregion
|
|
28
28
|
export { useCampaignsIdPreview, useCampaignsIdPreviewImmutable, useCampaignsIdPreviewInfinite };
|
|
@@ -13,10 +13,7 @@ let _readyfor_api_client_base_react = require("@readyfor/api-client-base/react")
|
|
|
13
13
|
//#region src/hooks/useCampaignsIdUtmCampaignConflicts.ts
|
|
14
14
|
const campaignsIdUtmCampaignConflictsGetFetcher = require_fetch_campaignsIdUtmCampaignConflicts.buildCampaignsIdUtmCampaignConflictsGetFetcher();
|
|
15
15
|
const useCampaignsIdUtmCampaignConflicts = (path, query, swrConfig = {}) => {
|
|
16
|
-
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/utm_campaign_conflicts",
|
|
17
|
-
path,
|
|
18
|
-
query
|
|
19
|
-
});
|
|
16
|
+
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/utm_campaign_conflicts", path, query);
|
|
20
17
|
const requestInit = (0, _readyfor_api_client_base_react.useRequestInit)();
|
|
21
18
|
return {
|
|
22
19
|
key,
|
|
@@ -24,20 +21,14 @@ const useCampaignsIdUtmCampaignConflicts = (path, query, swrConfig = {}) => {
|
|
|
24
21
|
};
|
|
25
22
|
};
|
|
26
23
|
const useCampaignsIdUtmCampaignConflictsImmutable = (path, query, swrConfig = {}) => {
|
|
27
|
-
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/utm_campaign_conflicts",
|
|
28
|
-
path,
|
|
29
|
-
query
|
|
30
|
-
});
|
|
24
|
+
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/utm_campaign_conflicts", path, query);
|
|
31
25
|
const requestInit = (0, _readyfor_api_client_base_react.useRequestInit)();
|
|
32
26
|
return {
|
|
33
27
|
key,
|
|
34
28
|
...(0, swr_immutable.default)(swrConfig?.shouldNotFetch ? null : key, require_fetch_campaignsIdUtmCampaignConflicts.buildCampaignsIdUtmCampaignConflictsGetFetcher(requestInit), swrConfig)
|
|
35
29
|
};
|
|
36
30
|
};
|
|
37
|
-
const useCampaignsIdUtmCampaignConflictsInfinite = (getKey, swrConfig) => (0, swr_infinite.default)(getKey((path, query) => (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/utm_campaign_conflicts",
|
|
38
|
-
path,
|
|
39
|
-
query
|
|
40
|
-
})), campaignsIdUtmCampaignConflictsGetFetcher, swrConfig);
|
|
31
|
+
const useCampaignsIdUtmCampaignConflictsInfinite = (getKey, swrConfig) => (0, swr_infinite.default)(getKey((path, query) => (0, _readyfor_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/utm_campaign_conflicts", path, query)), campaignsIdUtmCampaignConflictsGetFetcher, swrConfig);
|
|
41
32
|
//#endregion
|
|
42
33
|
exports.useCampaignsIdUtmCampaignConflicts = useCampaignsIdUtmCampaignConflicts;
|
|
43
34
|
exports.useCampaignsIdUtmCampaignConflictsImmutable = useCampaignsIdUtmCampaignConflictsImmutable;
|
|
@@ -8,10 +8,7 @@ import { useRequestInit } from "@readyfor/api-client-base/react";
|
|
|
8
8
|
//#region src/hooks/useCampaignsIdUtmCampaignConflicts.ts
|
|
9
9
|
const campaignsIdUtmCampaignConflictsGetFetcher = buildCampaignsIdUtmCampaignConflictsGetFetcher();
|
|
10
10
|
const useCampaignsIdUtmCampaignConflicts = (path, query, swrConfig = {}) => {
|
|
11
|
-
const key = __internal__requestUrl("/api/campaigns/{id}/utm_campaign_conflicts",
|
|
12
|
-
path,
|
|
13
|
-
query
|
|
14
|
-
});
|
|
11
|
+
const key = __internal__requestUrl("/api/campaigns/{id}/utm_campaign_conflicts", path, query);
|
|
15
12
|
const requestInit = useRequestInit();
|
|
16
13
|
return {
|
|
17
14
|
key,
|
|
@@ -19,19 +16,13 @@ const useCampaignsIdUtmCampaignConflicts = (path, query, swrConfig = {}) => {
|
|
|
19
16
|
};
|
|
20
17
|
};
|
|
21
18
|
const useCampaignsIdUtmCampaignConflictsImmutable = (path, query, swrConfig = {}) => {
|
|
22
|
-
const key = __internal__requestUrl("/api/campaigns/{id}/utm_campaign_conflicts",
|
|
23
|
-
path,
|
|
24
|
-
query
|
|
25
|
-
});
|
|
19
|
+
const key = __internal__requestUrl("/api/campaigns/{id}/utm_campaign_conflicts", path, query);
|
|
26
20
|
const requestInit = useRequestInit();
|
|
27
21
|
return {
|
|
28
22
|
key,
|
|
29
23
|
...useSWRImmutable(swrConfig?.shouldNotFetch ? null : key, buildCampaignsIdUtmCampaignConflictsGetFetcher(requestInit), swrConfig)
|
|
30
24
|
};
|
|
31
25
|
};
|
|
32
|
-
const useCampaignsIdUtmCampaignConflictsInfinite = (getKey, swrConfig) => useSWRInfinite(getKey((path, query) => __internal__requestUrl("/api/campaigns/{id}/utm_campaign_conflicts",
|
|
33
|
-
path,
|
|
34
|
-
query
|
|
35
|
-
})), campaignsIdUtmCampaignConflictsGetFetcher, swrConfig);
|
|
26
|
+
const useCampaignsIdUtmCampaignConflictsInfinite = (getKey, swrConfig) => useSWRInfinite(getKey((path, query) => __internal__requestUrl("/api/campaigns/{id}/utm_campaign_conflicts", path, query)), campaignsIdUtmCampaignConflictsGetFetcher, swrConfig);
|
|
36
27
|
//#endregion
|
|
37
28
|
export { useCampaignsIdUtmCampaignConflicts, useCampaignsIdUtmCampaignConflictsImmutable, useCampaignsIdUtmCampaignConflictsInfinite };
|
|
@@ -13,7 +13,7 @@ let _readyfor_api_client_base_react = require("@readyfor/api-client-base/react")
|
|
|
13
13
|
//#region src/hooks/useProjectsProjectIdOrKeyword.ts
|
|
14
14
|
const projectsProjectIdOrKeywordGetFetcher = require_fetch_projectsProjectIdOrKeyword.buildProjectsProjectIdOrKeywordGetFetcher();
|
|
15
15
|
const useProjectsProjectIdOrKeyword = (path, swrConfig = {}) => {
|
|
16
|
-
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/projects/{project_id_or_keyword}",
|
|
16
|
+
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/projects/{project_id_or_keyword}", path);
|
|
17
17
|
const requestInit = (0, _readyfor_api_client_base_react.useRequestInit)();
|
|
18
18
|
return {
|
|
19
19
|
key,
|
|
@@ -21,14 +21,14 @@ const useProjectsProjectIdOrKeyword = (path, swrConfig = {}) => {
|
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
const useProjectsProjectIdOrKeywordImmutable = (path, swrConfig = {}) => {
|
|
24
|
-
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/projects/{project_id_or_keyword}",
|
|
24
|
+
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/projects/{project_id_or_keyword}", path);
|
|
25
25
|
const requestInit = (0, _readyfor_api_client_base_react.useRequestInit)();
|
|
26
26
|
return {
|
|
27
27
|
key,
|
|
28
28
|
...(0, swr_immutable.default)(swrConfig?.shouldNotFetch ? null : key, require_fetch_projectsProjectIdOrKeyword.buildProjectsProjectIdOrKeywordGetFetcher(requestInit), swrConfig)
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
const useProjectsProjectIdOrKeywordInfinite = (getKey, swrConfig) => (0, swr_infinite.default)(getKey((path) => (0, _readyfor_api_client_base.__internal__requestUrl)("/api/projects/{project_id_or_keyword}",
|
|
31
|
+
const useProjectsProjectIdOrKeywordInfinite = (getKey, swrConfig) => (0, swr_infinite.default)(getKey((path) => (0, _readyfor_api_client_base.__internal__requestUrl)("/api/projects/{project_id_or_keyword}", path)), projectsProjectIdOrKeywordGetFetcher, swrConfig);
|
|
32
32
|
//#endregion
|
|
33
33
|
exports.useProjectsProjectIdOrKeyword = useProjectsProjectIdOrKeyword;
|
|
34
34
|
exports.useProjectsProjectIdOrKeywordImmutable = useProjectsProjectIdOrKeywordImmutable;
|
|
@@ -8,7 +8,7 @@ import { useRequestInit } from "@readyfor/api-client-base/react";
|
|
|
8
8
|
//#region src/hooks/useProjectsProjectIdOrKeyword.ts
|
|
9
9
|
const projectsProjectIdOrKeywordGetFetcher = buildProjectsProjectIdOrKeywordGetFetcher();
|
|
10
10
|
const useProjectsProjectIdOrKeyword = (path, swrConfig = {}) => {
|
|
11
|
-
const key = __internal__requestUrl("/api/projects/{project_id_or_keyword}",
|
|
11
|
+
const key = __internal__requestUrl("/api/projects/{project_id_or_keyword}", path);
|
|
12
12
|
const requestInit = useRequestInit();
|
|
13
13
|
return {
|
|
14
14
|
key,
|
|
@@ -16,13 +16,13 @@ const useProjectsProjectIdOrKeyword = (path, swrConfig = {}) => {
|
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
const useProjectsProjectIdOrKeywordImmutable = (path, swrConfig = {}) => {
|
|
19
|
-
const key = __internal__requestUrl("/api/projects/{project_id_or_keyword}",
|
|
19
|
+
const key = __internal__requestUrl("/api/projects/{project_id_or_keyword}", path);
|
|
20
20
|
const requestInit = useRequestInit();
|
|
21
21
|
return {
|
|
22
22
|
key,
|
|
23
23
|
...useSWRImmutable(swrConfig?.shouldNotFetch ? null : key, buildProjectsProjectIdOrKeywordGetFetcher(requestInit), swrConfig)
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
-
const useProjectsProjectIdOrKeywordInfinite = (getKey, swrConfig) => useSWRInfinite(getKey((path) => __internal__requestUrl("/api/projects/{project_id_or_keyword}",
|
|
26
|
+
const useProjectsProjectIdOrKeywordInfinite = (getKey, swrConfig) => useSWRInfinite(getKey((path) => __internal__requestUrl("/api/projects/{project_id_or_keyword}", path)), projectsProjectIdOrKeywordGetFetcher, swrConfig);
|
|
27
27
|
//#endregion
|
|
28
28
|
export { useProjectsProjectIdOrKeyword, useProjectsProjectIdOrKeywordImmutable, useProjectsProjectIdOrKeywordInfinite };
|
|
@@ -13,7 +13,7 @@ let _readyfor_api_client_base_react = require("@readyfor/api-client-base/react")
|
|
|
13
13
|
//#region src/hooks/useSegmentsTargetUsersCount.ts
|
|
14
14
|
const segmentsTargetUsersCountGetFetcher = require_fetch_segmentsTargetUsersCount.buildSegmentsTargetUsersCountGetFetcher();
|
|
15
15
|
const useSegmentsTargetUsersCount = (query, swrConfig = {}) => {
|
|
16
|
-
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/segments/target_users_count", { query
|
|
16
|
+
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/segments/target_users_count", {}, query);
|
|
17
17
|
const requestInit = (0, _readyfor_api_client_base_react.useRequestInit)();
|
|
18
18
|
return {
|
|
19
19
|
key,
|
|
@@ -21,14 +21,14 @@ const useSegmentsTargetUsersCount = (query, swrConfig = {}) => {
|
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
const useSegmentsTargetUsersCountImmutable = (query, swrConfig = {}) => {
|
|
24
|
-
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/segments/target_users_count", { query
|
|
24
|
+
const key = (0, _readyfor_api_client_base.__internal__requestUrl)("/api/segments/target_users_count", {}, query);
|
|
25
25
|
const requestInit = (0, _readyfor_api_client_base_react.useRequestInit)();
|
|
26
26
|
return {
|
|
27
27
|
key,
|
|
28
28
|
...(0, swr_immutable.default)(swrConfig?.shouldNotFetch ? null : key, require_fetch_segmentsTargetUsersCount.buildSegmentsTargetUsersCountGetFetcher(requestInit), swrConfig)
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
const useSegmentsTargetUsersCountInfinite = (getKey, swrConfig) => (0, swr_infinite.default)(getKey((query) => (0, _readyfor_api_client_base.__internal__requestUrl)("/api/segments/target_users_count", { query
|
|
31
|
+
const useSegmentsTargetUsersCountInfinite = (getKey, swrConfig) => (0, swr_infinite.default)(getKey((query) => (0, _readyfor_api_client_base.__internal__requestUrl)("/api/segments/target_users_count", {}, query)), segmentsTargetUsersCountGetFetcher, swrConfig);
|
|
32
32
|
//#endregion
|
|
33
33
|
exports.useSegmentsTargetUsersCount = useSegmentsTargetUsersCount;
|
|
34
34
|
exports.useSegmentsTargetUsersCountImmutable = useSegmentsTargetUsersCountImmutable;
|
|
@@ -8,7 +8,7 @@ import { useRequestInit } from "@readyfor/api-client-base/react";
|
|
|
8
8
|
//#region src/hooks/useSegmentsTargetUsersCount.ts
|
|
9
9
|
const segmentsTargetUsersCountGetFetcher = buildSegmentsTargetUsersCountGetFetcher();
|
|
10
10
|
const useSegmentsTargetUsersCount = (query, swrConfig = {}) => {
|
|
11
|
-
const key = __internal__requestUrl("/api/segments/target_users_count", { query
|
|
11
|
+
const key = __internal__requestUrl("/api/segments/target_users_count", {}, query);
|
|
12
12
|
const requestInit = useRequestInit();
|
|
13
13
|
return {
|
|
14
14
|
key,
|
|
@@ -16,13 +16,13 @@ const useSegmentsTargetUsersCount = (query, swrConfig = {}) => {
|
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
const useSegmentsTargetUsersCountImmutable = (query, swrConfig = {}) => {
|
|
19
|
-
const key = __internal__requestUrl("/api/segments/target_users_count", { query
|
|
19
|
+
const key = __internal__requestUrl("/api/segments/target_users_count", {}, query);
|
|
20
20
|
const requestInit = useRequestInit();
|
|
21
21
|
return {
|
|
22
22
|
key,
|
|
23
23
|
...useSWRImmutable(swrConfig?.shouldNotFetch ? null : key, buildSegmentsTargetUsersCountGetFetcher(requestInit), swrConfig)
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
-
const useSegmentsTargetUsersCountInfinite = (getKey, swrConfig) => useSWRInfinite(getKey((query) => __internal__requestUrl("/api/segments/target_users_count", { query
|
|
26
|
+
const useSegmentsTargetUsersCountInfinite = (getKey, swrConfig) => useSWRInfinite(getKey((query) => __internal__requestUrl("/api/segments/target_users_count", {}, query)), segmentsTargetUsersCountGetFetcher, swrConfig);
|
|
27
27
|
//#endregion
|
|
28
28
|
export { useSegmentsTargetUsersCount, useSegmentsTargetUsersCountImmutable, useSegmentsTargetUsersCountInfinite };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@readyfor/api-client-pigeon",
|
|
3
|
-
"version": "1.75.0-
|
|
3
|
+
"version": "1.75.0-pr1469.346fa0c",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"swr": "2.5.1",
|
|
37
37
|
"use-sync-external-store": "1.6.0",
|
|
38
38
|
"zod": "^4.3.6",
|
|
39
|
-
"@readyfor/api-client-base": "1.75.0-
|
|
39
|
+
"@readyfor/api-client-base": "1.75.0-pr1469.346fa0c"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"qs": "^6",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"swr": "^2.3.3",
|
|
45
45
|
"use-sync-external-store": "^1.2.2",
|
|
46
46
|
"zod": "^4",
|
|
47
|
-
"@readyfor/api-client-base": "1.75.0-
|
|
47
|
+
"@readyfor/api-client-base": "1.75.0-pr1469.346fa0c"
|
|
48
48
|
},
|
|
49
49
|
"peerDependenciesMeta": {
|
|
50
50
|
"react": {
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
|
-
"build": "tsdown"
|
|
61
|
+
"build": "tsdown",
|
|
62
|
+
"check-types": "tsc --noEmit"
|
|
62
63
|
}
|
|
63
64
|
}
|