@readyfor/api-client-pigeon 1.22.0-pr1284.dc25e7e → 1.22.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.
Files changed (118) hide show
  1. package/dist/chunk-24W5FWW7.mjs +27 -0
  2. package/dist/chunk-45QYVVV2.mjs +44 -0
  3. package/dist/chunk-5XEJOYX6.mjs +0 -0
  4. package/dist/chunk-6337UNDD.mjs +27 -0
  5. package/dist/chunk-CXALAOMT.mjs +48 -0
  6. package/dist/chunk-GVEIZAMY.mjs +359 -0
  7. package/dist/chunk-JVMIOVIM.mjs +29 -0
  8. package/dist/chunk-LMM3AGZ6.mjs +36 -0
  9. package/dist/chunk-MCYE5BYS.mjs +25 -0
  10. package/dist/chunk-MKV3OPBP.mjs +42 -0
  11. package/dist/chunk-MYQ5EIA6.mjs +50 -0
  12. package/dist/chunk-NA23PDIV.mjs +28 -0
  13. package/dist/chunk-P4EIALGR.mjs +24 -0
  14. package/dist/chunk-RWX2GYF3.mjs +39 -0
  15. package/dist/chunk-SBWG7GGI.mjs +52 -0
  16. package/dist/chunk-THNPXV56.mjs +24 -0
  17. package/dist/chunk-TPXQJS55.mjs +44 -0
  18. package/dist/chunk-UHDD26HF.mjs +44 -0
  19. package/dist/chunk-VUG5S4M4.mjs +42 -0
  20. package/dist/chunk-XNOKTUME.mjs +30 -0
  21. package/dist/components.d.mts +1107 -0
  22. package/dist/components.d.ts +1107 -2
  23. package/dist/components.js +444 -284
  24. package/dist/components.mjs +130 -221
  25. package/dist/fetch/campaigns.d.mts +88 -0
  26. package/dist/fetch/campaigns.d.ts +88 -2
  27. package/dist/fetch/campaigns.js +350 -22
  28. package/dist/fetch/campaigns.mjs +12 -18
  29. package/dist/{campaignsCampaignIdImagesId-BzoZ_38r.d.ts → fetch/campaignsCampaignIdImagesId.d.mts} +8 -6
  30. package/dist/fetch/campaignsCampaignIdImagesId.d.ts +12 -2
  31. package/dist/fetch/campaignsCampaignIdImagesId.js +44 -11
  32. package/dist/fetch/campaignsCampaignIdImagesId.mjs +7 -8
  33. package/dist/fetch/campaignsId.d.mts +321 -0
  34. package/dist/fetch/campaignsId.d.ts +321 -2
  35. package/dist/fetch/campaignsId.js +360 -27
  36. package/dist/fetch/campaignsId.mjs +16 -22
  37. package/dist/{campaignsIdDeliveryJob--2Nogu0k.d.ts → fetch/campaignsIdDeliveryJob.d.mts} +12 -7
  38. package/dist/fetch/campaignsIdDeliveryJob.d.ts +19 -2
  39. package/dist/fetch/campaignsIdDeliveryJob.js +56 -17
  40. package/dist/fetch/campaignsIdDeliveryJob.mjs +11 -13
  41. package/dist/{campaignsIdImages-DMSAp5-N.d.ts → fetch/campaignsIdImages.d.mts} +17 -11
  42. package/dist/fetch/campaignsIdImages.d.ts +24 -2
  43. package/dist/fetch/campaignsIdImages.js +341 -15
  44. package/dist/fetch/campaignsIdImages.mjs +8 -12
  45. package/dist/{campaignsIdPreview-C10ENt3B.d.ts → fetch/campaignsIdPreview.d.mts} +10 -8
  46. package/dist/fetch/campaignsIdPreview.d.ts +17 -2
  47. package/dist/fetch/campaignsIdPreview.js +338 -12
  48. package/dist/fetch/campaignsIdPreview.mjs +8 -9
  49. package/dist/{campaignsIdPreviewDeliveryEmail-BxkiUV8X.d.ts → fetch/campaignsIdPreviewDeliveryEmail.d.mts} +13 -7
  50. package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.ts +17 -2
  51. package/dist/fetch/campaignsIdPreviewDeliveryEmail.js +48 -15
  52. package/dist/fetch/campaignsIdPreviewDeliveryEmail.mjs +7 -12
  53. package/dist/fetch/projectsProjectIdOrKeyword.d.mts +27 -0
  54. package/dist/fetch/projectsProjectIdOrKeyword.d.ts +27 -2
  55. package/dist/fetch/projectsProjectIdOrKeyword.js +338 -12
  56. package/dist/fetch/projectsProjectIdOrKeyword.mjs +8 -9
  57. package/dist/fetch/segmentsBehaviorSegments.d.mts +24 -0
  58. package/dist/fetch/segmentsBehaviorSegments.d.ts +24 -2
  59. package/dist/fetch/segmentsBehaviorSegments.js +335 -12
  60. package/dist/fetch/segmentsBehaviorSegments.mjs +8 -9
  61. package/dist/fetch/segmentsProfileSegments.d.mts +24 -0
  62. package/dist/fetch/segmentsProfileSegments.d.ts +24 -2
  63. package/dist/fetch/segmentsProfileSegments.js +335 -12
  64. package/dist/fetch/segmentsProfileSegments.mjs +8 -9
  65. package/dist/{segmentsTargetUsersCount-CjScWKqF.d.ts → fetch/segmentsTargetUsersCount.d.mts} +10 -8
  66. package/dist/fetch/segmentsTargetUsersCount.d.ts +17 -2
  67. package/dist/fetch/segmentsTargetUsersCount.js +339 -12
  68. package/dist/fetch/segmentsTargetUsersCount.mjs +8 -9
  69. package/dist/hooks/index.d.mts +20 -0
  70. package/dist/hooks/index.d.ts +20 -8
  71. package/dist/hooks/index.js +670 -29
  72. package/dist/hooks/index.mjs +71 -8
  73. package/dist/hooks/useCampaigns.d.mts +44 -0
  74. package/dist/hooks/useCampaigns.d.ts +37 -37
  75. package/dist/hooks/useCampaigns.js +404 -33
  76. package/dist/hooks/useCampaigns.mjs +22 -27
  77. package/dist/hooks/useCampaignsId.d.mts +39 -0
  78. package/dist/hooks/useCampaignsId.d.ts +33 -33
  79. package/dist/hooks/useCampaignsId.js +404 -33
  80. package/dist/hooks/useCampaignsId.mjs +22 -27
  81. package/dist/hooks/useCampaignsIdPreview.d.mts +39 -0
  82. package/dist/hooks/useCampaignsIdPreview.d.ts +33 -32
  83. package/dist/hooks/useCampaignsIdPreview.js +404 -33
  84. package/dist/hooks/useCampaignsIdPreview.mjs +22 -27
  85. package/dist/hooks/useProjectsProjectIdOrKeyword.d.mts +39 -0
  86. package/dist/hooks/useProjectsProjectIdOrKeyword.d.ts +33 -33
  87. package/dist/hooks/useProjectsProjectIdOrKeyword.js +410 -33
  88. package/dist/hooks/useProjectsProjectIdOrKeyword.mjs +22 -27
  89. package/dist/hooks/useSegmentsBehaviorSegments.d.mts +38 -0
  90. package/dist/hooks/useSegmentsBehaviorSegments.d.ts +32 -33
  91. package/dist/hooks/useSegmentsBehaviorSegments.js +402 -33
  92. package/dist/hooks/useSegmentsBehaviorSegments.mjs +22 -27
  93. package/dist/hooks/useSegmentsProfileSegments.d.mts +38 -0
  94. package/dist/hooks/useSegmentsProfileSegments.d.ts +32 -33
  95. package/dist/hooks/useSegmentsProfileSegments.js +402 -33
  96. package/dist/hooks/useSegmentsProfileSegments.mjs +22 -27
  97. package/dist/hooks/useSegmentsTargetUsersCount.d.mts +39 -0
  98. package/dist/hooks/useSegmentsTargetUsersCount.d.ts +33 -32
  99. package/dist/hooks/useSegmentsTargetUsersCount.js +412 -33
  100. package/dist/hooks/useSegmentsTargetUsersCount.mjs +22 -27
  101. package/dist/index.d.mts +15 -0
  102. package/dist/index.d.ts +15 -14
  103. package/dist/index.js +703 -106
  104. package/dist/index.mjs +213 -13
  105. package/dist/schemaType.d.mts +887 -0
  106. package/dist/schemaType.d.ts +887 -2
  107. package/dist/schemaType.js +18 -0
  108. package/dist/schemaType.mjs +0 -1
  109. package/package.json +19 -4
  110. package/dist/campaigns-DZNsI5kN.d.ts +0 -82
  111. package/dist/campaignsId-qIqhKTZn.d.ts +0 -309
  112. package/dist/chunk-8l464Juk.js +0 -28
  113. package/dist/components-CkziYCTx.d.ts +0 -1108
  114. package/dist/index-DRYular4.d.ts +0 -1
  115. package/dist/projectsProjectIdOrKeyword-Cayu4ZMd.d.ts +0 -25
  116. package/dist/schemaType-DcWvaCEH.d.ts +0 -782
  117. package/dist/segmentsBehaviorSegments-B6cq3XGV.d.ts +0 -25
  118. package/dist/segmentsProfileSegments-CMzmpqMd.d.ts +0 -25
@@ -0,0 +1,28 @@
1
+ import {
2
+ GetTargetUsersCountResponse
3
+ } from "./chunk-GVEIZAMY.mjs";
4
+
5
+ // src/fetch/segmentsTargetUsersCount.ts
6
+ import {
7
+ createJsonFetcher,
8
+ __internal__requestUrl,
9
+ buildRequestInitWithDefaultConfig,
10
+ mergeRequestInit
11
+ } from "@readyfor/api-client-base";
12
+ var buildSegmentsTargetUsersCountGetFetcher = (requestInit) => createJsonFetcher(GetTargetUsersCountResponse, { ...requestInit });
13
+ var getSegmentsTargetUsersCount = (query, customRequestInit) => {
14
+ const requestInfo = __internal__requestUrl(
15
+ "/api/segments/target_users_count",
16
+ {},
17
+ query
18
+ );
19
+ const requestInit = buildRequestInitWithDefaultConfig(
20
+ mergeRequestInit(customRequestInit ?? {}, { method: "GET" })
21
+ );
22
+ return buildSegmentsTargetUsersCountGetFetcher(requestInit)(requestInfo);
23
+ };
24
+
25
+ export {
26
+ buildSegmentsTargetUsersCountGetFetcher,
27
+ getSegmentsTargetUsersCount
28
+ };
@@ -0,0 +1,24 @@
1
+ import {
2
+ GetProfileSegmentsResponse
3
+ } from "./chunk-GVEIZAMY.mjs";
4
+
5
+ // src/fetch/segmentsProfileSegments.ts
6
+ import {
7
+ createJsonFetcher,
8
+ __internal__requestUrl,
9
+ buildRequestInitWithDefaultConfig,
10
+ mergeRequestInit
11
+ } from "@readyfor/api-client-base";
12
+ var buildSegmentsProfileSegmentsGetFetcher = (requestInit) => createJsonFetcher(GetProfileSegmentsResponse, { ...requestInit });
13
+ var getSegmentsProfileSegments = (customRequestInit) => {
14
+ const requestInfo = __internal__requestUrl("/api/segments/profile_segments");
15
+ const requestInit = buildRequestInitWithDefaultConfig(
16
+ mergeRequestInit(customRequestInit ?? {}, { method: "GET" })
17
+ );
18
+ return buildSegmentsProfileSegmentsGetFetcher(requestInit)(requestInfo);
19
+ };
20
+
21
+ export {
22
+ buildSegmentsProfileSegmentsGetFetcher,
23
+ getSegmentsProfileSegments
24
+ };
@@ -0,0 +1,39 @@
1
+ import {
2
+ GetCampaignsResponse,
3
+ PostCampaignsResponse
4
+ } from "./chunk-GVEIZAMY.mjs";
5
+
6
+ // src/fetch/campaigns.ts
7
+ import {
8
+ createJsonFetcher,
9
+ __internal__requestUrl,
10
+ buildRequestInitWithDefaultConfig,
11
+ mergeRequestInit
12
+ } from "@readyfor/api-client-base";
13
+ var buildCampaignsGetFetcher = (requestInit) => createJsonFetcher(GetCampaignsResponse, { ...requestInit });
14
+ var getCampaigns = (query, customRequestInit) => {
15
+ const requestInfo = __internal__requestUrl("/api/campaigns", {}, query);
16
+ const requestInit = buildRequestInitWithDefaultConfig(
17
+ mergeRequestInit(customRequestInit ?? {}, { method: "GET" })
18
+ );
19
+ return buildCampaignsGetFetcher(requestInit)(requestInfo);
20
+ };
21
+ var buildCampaignsPostFetcher = (requestInit) => createJsonFetcher(PostCampaignsResponse, { ...requestInit });
22
+ var postCampaigns = (requestBody, customRequestInit) => {
23
+ const requestInfo = __internal__requestUrl("/api/campaigns");
24
+ const requestInit = buildRequestInitWithDefaultConfig(
25
+ mergeRequestInit(customRequestInit ?? {}, {
26
+ method: "POST",
27
+ headers: { "Content-Type": "application/json" },
28
+ body: JSON.stringify(requestBody)
29
+ })
30
+ );
31
+ return buildCampaignsPostFetcher(requestInit)(requestInfo);
32
+ };
33
+
34
+ export {
35
+ buildCampaignsGetFetcher,
36
+ getCampaigns,
37
+ buildCampaignsPostFetcher,
38
+ postCampaigns
39
+ };
@@ -0,0 +1,52 @@
1
+ import {
2
+ buildSegmentsTargetUsersCountGetFetcher
3
+ } from "./chunk-NA23PDIV.mjs";
4
+
5
+ // src/hooks/useSegmentsTargetUsersCount.ts
6
+ import useSWRImmutable from "swr/immutable";
7
+ import useSWRInfinite from "swr/infinite";
8
+ import useSWR from "swr";
9
+ import { __internal__requestUrl } from "@readyfor/api-client-base";
10
+ import { useRequestInit } from "@readyfor/api-client-base/react";
11
+ var segmentsTargetUsersCountGetFetcher = buildSegmentsTargetUsersCountGetFetcher();
12
+ var useSegmentsTargetUsersCount = (query, swrConfig = {}) => {
13
+ const key = __internal__requestUrl(
14
+ "/api/segments/target_users_count",
15
+ {},
16
+ query
17
+ );
18
+ const requestInit = useRequestInit();
19
+ const result = useSWR(
20
+ swrConfig?.shouldNotFetch ? null : key,
21
+ buildSegmentsTargetUsersCountGetFetcher(requestInit),
22
+ swrConfig
23
+ );
24
+ return { key, ...result };
25
+ };
26
+ var useSegmentsTargetUsersCountImmutable = (query, swrConfig = {}) => {
27
+ const key = __internal__requestUrl(
28
+ "/api/segments/target_users_count",
29
+ {},
30
+ query
31
+ );
32
+ const requestInit = useRequestInit();
33
+ const result = useSWRImmutable(
34
+ swrConfig?.shouldNotFetch ? null : key,
35
+ buildSegmentsTargetUsersCountGetFetcher(requestInit),
36
+ swrConfig
37
+ );
38
+ return { key, ...result };
39
+ };
40
+ var useSegmentsTargetUsersCountInfinite = (getKey, swrConfig) => useSWRInfinite(
41
+ getKey(
42
+ (query) => __internal__requestUrl("/api/segments/target_users_count", {}, query)
43
+ ),
44
+ segmentsTargetUsersCountGetFetcher,
45
+ swrConfig
46
+ );
47
+
48
+ export {
49
+ useSegmentsTargetUsersCount,
50
+ useSegmentsTargetUsersCountImmutable,
51
+ useSegmentsTargetUsersCountInfinite
52
+ };
@@ -0,0 +1,24 @@
1
+ import {
2
+ GetBehaviorSegmentsResponse
3
+ } from "./chunk-GVEIZAMY.mjs";
4
+
5
+ // src/fetch/segmentsBehaviorSegments.ts
6
+ import {
7
+ createJsonFetcher,
8
+ __internal__requestUrl,
9
+ buildRequestInitWithDefaultConfig,
10
+ mergeRequestInit
11
+ } from "@readyfor/api-client-base";
12
+ var buildSegmentsBehaviorSegmentsGetFetcher = (requestInit) => createJsonFetcher(GetBehaviorSegmentsResponse, { ...requestInit });
13
+ var getSegmentsBehaviorSegments = (customRequestInit) => {
14
+ const requestInfo = __internal__requestUrl("/api/segments/behavior_segments");
15
+ const requestInit = buildRequestInitWithDefaultConfig(
16
+ mergeRequestInit(customRequestInit ?? {}, { method: "GET" })
17
+ );
18
+ return buildSegmentsBehaviorSegmentsGetFetcher(requestInit)(requestInfo);
19
+ };
20
+
21
+ export {
22
+ buildSegmentsBehaviorSegmentsGetFetcher,
23
+ getSegmentsBehaviorSegments
24
+ };
@@ -0,0 +1,44 @@
1
+ import {
2
+ buildCampaignsGetFetcher
3
+ } from "./chunk-RWX2GYF3.mjs";
4
+
5
+ // src/hooks/useCampaigns.ts
6
+ import useSWRImmutable from "swr/immutable";
7
+ import useSWRInfinite from "swr/infinite";
8
+ import useSWR from "swr";
9
+ import { __internal__requestUrl } from "@readyfor/api-client-base";
10
+ import { useRequestInit } from "@readyfor/api-client-base/react";
11
+ var campaignsGetFetcher = buildCampaignsGetFetcher();
12
+ var useCampaigns = (query, swrConfig = {}) => {
13
+ const key = __internal__requestUrl("/api/campaigns", {}, query);
14
+ const requestInit = useRequestInit();
15
+ const result = useSWR(
16
+ swrConfig?.shouldNotFetch ? null : key,
17
+ buildCampaignsGetFetcher(requestInit),
18
+ swrConfig
19
+ );
20
+ return { key, ...result };
21
+ };
22
+ var useCampaignsImmutable = (query, swrConfig = {}) => {
23
+ const key = __internal__requestUrl("/api/campaigns", {}, query);
24
+ const requestInit = useRequestInit();
25
+ const result = useSWRImmutable(
26
+ swrConfig?.shouldNotFetch ? null : key,
27
+ buildCampaignsGetFetcher(requestInit),
28
+ swrConfig
29
+ );
30
+ return { key, ...result };
31
+ };
32
+ var useCampaignsInfinite = (getKey, swrConfig) => useSWRInfinite(
33
+ getKey(
34
+ (query) => __internal__requestUrl("/api/campaigns", {}, query)
35
+ ),
36
+ campaignsGetFetcher,
37
+ swrConfig
38
+ );
39
+
40
+ export {
41
+ useCampaigns,
42
+ useCampaignsImmutable,
43
+ useCampaignsInfinite
44
+ };
@@ -0,0 +1,44 @@
1
+ import {
2
+ buildCampaignsIdGetFetcher
3
+ } from "./chunk-CXALAOMT.mjs";
4
+
5
+ // src/hooks/useCampaignsId.ts
6
+ import useSWRImmutable from "swr/immutable";
7
+ import useSWRInfinite from "swr/infinite";
8
+ import useSWR from "swr";
9
+ import { __internal__requestUrl } from "@readyfor/api-client-base";
10
+ import { useRequestInit } from "@readyfor/api-client-base/react";
11
+ var campaignsIdGetFetcher = buildCampaignsIdGetFetcher();
12
+ var useCampaignsId = (path, swrConfig = {}) => {
13
+ const key = __internal__requestUrl("/api/campaigns/{id}", path);
14
+ const requestInit = useRequestInit();
15
+ const result = useSWR(
16
+ swrConfig?.shouldNotFetch ? null : key,
17
+ buildCampaignsIdGetFetcher(requestInit),
18
+ swrConfig
19
+ );
20
+ return { key, ...result };
21
+ };
22
+ var useCampaignsIdImmutable = (path, swrConfig = {}) => {
23
+ const key = __internal__requestUrl("/api/campaigns/{id}", path);
24
+ const requestInit = useRequestInit();
25
+ const result = useSWRImmutable(
26
+ swrConfig?.shouldNotFetch ? null : key,
27
+ buildCampaignsIdGetFetcher(requestInit),
28
+ swrConfig
29
+ );
30
+ return { key, ...result };
31
+ };
32
+ var useCampaignsIdInfinite = (getKey, swrConfig) => useSWRInfinite(
33
+ getKey(
34
+ (path) => __internal__requestUrl("/api/campaigns/{id}", path)
35
+ ),
36
+ campaignsIdGetFetcher,
37
+ swrConfig
38
+ );
39
+
40
+ export {
41
+ useCampaignsId,
42
+ useCampaignsIdImmutable,
43
+ useCampaignsIdInfinite
44
+ };
@@ -0,0 +1,42 @@
1
+ import {
2
+ buildSegmentsBehaviorSegmentsGetFetcher
3
+ } from "./chunk-THNPXV56.mjs";
4
+
5
+ // src/hooks/useSegmentsBehaviorSegments.ts
6
+ import useSWRImmutable from "swr/immutable";
7
+ import useSWRInfinite from "swr/infinite";
8
+ import useSWR from "swr";
9
+ import { __internal__requestUrl } from "@readyfor/api-client-base";
10
+ import { useRequestInit } from "@readyfor/api-client-base/react";
11
+ var segmentsBehaviorSegmentsGetFetcher = buildSegmentsBehaviorSegmentsGetFetcher();
12
+ var useSegmentsBehaviorSegments = (swrConfig = {}) => {
13
+ const key = __internal__requestUrl("/api/segments/behavior_segments");
14
+ const requestInit = useRequestInit();
15
+ const result = useSWR(
16
+ swrConfig?.shouldNotFetch ? null : key,
17
+ buildSegmentsBehaviorSegmentsGetFetcher(requestInit),
18
+ swrConfig
19
+ );
20
+ return { key, ...result };
21
+ };
22
+ var useSegmentsBehaviorSegmentsImmutable = (swrConfig = {}) => {
23
+ const key = __internal__requestUrl("/api/segments/behavior_segments");
24
+ const requestInit = useRequestInit();
25
+ const result = useSWRImmutable(
26
+ swrConfig?.shouldNotFetch ? null : key,
27
+ buildSegmentsBehaviorSegmentsGetFetcher(requestInit),
28
+ swrConfig
29
+ );
30
+ return { key, ...result };
31
+ };
32
+ var useSegmentsBehaviorSegmentsInfinite = (getKey, swrConfig) => useSWRInfinite(
33
+ getKey(() => __internal__requestUrl("/api/segments/behavior_segments")),
34
+ segmentsBehaviorSegmentsGetFetcher,
35
+ swrConfig
36
+ );
37
+
38
+ export {
39
+ useSegmentsBehaviorSegments,
40
+ useSegmentsBehaviorSegmentsImmutable,
41
+ useSegmentsBehaviorSegmentsInfinite
42
+ };
@@ -0,0 +1,30 @@
1
+ import {
2
+ Image
3
+ } from "./chunk-GVEIZAMY.mjs";
4
+
5
+ // src/fetch/campaignsIdImages.ts
6
+ import {
7
+ createJsonFetcher,
8
+ __internal__requestUrl,
9
+ buildRequestInitWithDefaultConfig,
10
+ mergeRequestInit
11
+ } from "@readyfor/api-client-base";
12
+ var buildCampaignsIdImagesPostFetcher = (requestInit) => createJsonFetcher(Image, { ...requestInit });
13
+ var postCampaignsIdImages = (path, requestBody, customRequestInit) => {
14
+ const requestInfo = __internal__requestUrl(
15
+ "/api/campaigns/{id}/images",
16
+ path
17
+ );
18
+ const requestInit = buildRequestInitWithDefaultConfig(
19
+ mergeRequestInit(customRequestInit ?? {}, {
20
+ method: "POST",
21
+ body: requestBody
22
+ })
23
+ );
24
+ return buildCampaignsIdImagesPostFetcher(requestInit)(requestInfo);
25
+ };
26
+
27
+ export {
28
+ buildCampaignsIdImagesPostFetcher,
29
+ postCampaignsIdImages
30
+ };