@postrun/js 2.21.0 → 2.23.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/query.js CHANGED
@@ -1281,6 +1281,23 @@ var googleGetAccount = (options) => (options.client ?? client).get({
1281
1281
  url: "/google/{connection_id}/account",
1282
1282
  ...options
1283
1283
  });
1284
+ var googleEditAccount = (options) => (options.client ?? client).patch({
1285
+ security: [{
1286
+ key: "secretKey",
1287
+ scheme: "bearer",
1288
+ type: "http"
1289
+ }, {
1290
+ key: "frontendToken",
1291
+ scheme: "bearer",
1292
+ type: "http"
1293
+ }],
1294
+ url: "/google/{connection_id}/url-settings",
1295
+ ...options,
1296
+ headers: {
1297
+ "Content-Type": "application/json",
1298
+ ...options.headers
1299
+ }
1300
+ });
1284
1301
  var googleGetInsights = (options) => (options.client ?? client).post({
1285
1302
  security: [{
1286
1303
  key: "secretKey",
@@ -2021,7 +2038,7 @@ var googleGetConversionAction = (options) => (options.client ?? client).get({
2021
2038
  url: "/google/{connection_id}/conversion-actions/{id}",
2022
2039
  ...options
2023
2040
  });
2024
- var googleListConversionGoals = (options) => (options.client ?? client).get({
2041
+ var googleSendConversions = (options) => (options.client ?? client).post({
2025
2042
  security: [{
2026
2043
  key: "secretKey",
2027
2044
  scheme: "bearer",
@@ -2031,10 +2048,27 @@ var googleListConversionGoals = (options) => (options.client ?? client).get({
2031
2048
  scheme: "bearer",
2032
2049
  type: "http"
2033
2050
  }],
2034
- url: "/google/{connection_id}/conversion-goals",
2051
+ url: "/google/{connection_id}/conversions:send",
2052
+ ...options,
2053
+ headers: {
2054
+ "Content-Type": "application/json",
2055
+ ...options.headers
2056
+ }
2057
+ });
2058
+ var googleGetConversionStatus = (options) => (options.client ?? client).get({
2059
+ security: [{
2060
+ key: "secretKey",
2061
+ scheme: "bearer",
2062
+ type: "http"
2063
+ }, {
2064
+ key: "frontendToken",
2065
+ scheme: "bearer",
2066
+ type: "http"
2067
+ }],
2068
+ url: "/google/{connection_id}/conversions/status",
2035
2069
  ...options
2036
2070
  });
2037
- var googleSetConversionGoal = (options) => (options.client ?? client).post({
2071
+ var googleListConversionGoals = (options) => (options.client ?? client).get({
2038
2072
  security: [{
2039
2073
  key: "secretKey",
2040
2074
  scheme: "bearer",
@@ -2045,13 +2079,9 @@ var googleSetConversionGoal = (options) => (options.client ?? client).post({
2045
2079
  type: "http"
2046
2080
  }],
2047
2081
  url: "/google/{connection_id}/conversion-goals",
2048
- ...options,
2049
- headers: {
2050
- "Content-Type": "application/json",
2051
- ...options.headers
2052
- }
2082
+ ...options
2053
2083
  });
2054
- var googleUploadConversions = (options) => (options.client ?? client).post({
2084
+ var googleSetConversionGoal = (options) => (options.client ?? client).post({
2055
2085
  security: [{
2056
2086
  key: "secretKey",
2057
2087
  scheme: "bearer",
@@ -2061,7 +2091,7 @@ var googleUploadConversions = (options) => (options.client ?? client).post({
2061
2091
  scheme: "bearer",
2062
2092
  type: "http"
2063
2093
  }],
2064
- url: "/google/{connection_id}/conversion-uploads",
2094
+ url: "/google/{connection_id}/conversion-goals",
2065
2095
  ...options,
2066
2096
  headers: {
2067
2097
  "Content-Type": "application/json",
@@ -2805,6 +2835,19 @@ var googleGetAccountOptions = (options) => queryOptions({
2805
2835
  },
2806
2836
  queryKey: googleGetAccountQueryKey(options)
2807
2837
  });
2838
+ var googleEditAccountMutation = (options) => {
2839
+ const mutationOptions = {
2840
+ mutationFn: async (fnOptions) => {
2841
+ const { data } = await googleEditAccount({
2842
+ ...options,
2843
+ ...fnOptions,
2844
+ throwOnError: true
2845
+ });
2846
+ return data;
2847
+ }
2848
+ };
2849
+ return mutationOptions;
2850
+ };
2808
2851
  var googleGetInsightsMutation = (options) => {
2809
2852
  const mutationOptions = {
2810
2853
  mutationFn: async (fnOptions) => {
@@ -3429,6 +3472,32 @@ var googleGetConversionActionOptions = (options) => queryOptions({
3429
3472
  },
3430
3473
  queryKey: googleGetConversionActionQueryKey(options)
3431
3474
  });
3475
+ var googleSendConversionsMutation = (options) => {
3476
+ const mutationOptions = {
3477
+ mutationFn: async (fnOptions) => {
3478
+ const { data } = await googleSendConversions({
3479
+ ...options,
3480
+ ...fnOptions,
3481
+ throwOnError: true
3482
+ });
3483
+ return data;
3484
+ }
3485
+ };
3486
+ return mutationOptions;
3487
+ };
3488
+ var googleGetConversionStatusQueryKey = (options) => createQueryKey("googleGetConversionStatus", options);
3489
+ var googleGetConversionStatusOptions = (options) => queryOptions({
3490
+ queryFn: async ({ queryKey, signal }) => {
3491
+ const { data } = await googleGetConversionStatus({
3492
+ ...options,
3493
+ ...queryKey[0],
3494
+ signal,
3495
+ throwOnError: true
3496
+ });
3497
+ return data;
3498
+ },
3499
+ queryKey: googleGetConversionStatusQueryKey(options)
3500
+ });
3432
3501
  var googleListConversionGoalsQueryKey = (options) => createQueryKey("googleListConversionGoals", options);
3433
3502
  var googleListConversionGoalsOptions = (options) => queryOptions({
3434
3503
  queryFn: async ({ queryKey, signal }) => {
@@ -3455,19 +3524,6 @@ var googleSetConversionGoalMutation = (options) => {
3455
3524
  };
3456
3525
  return mutationOptions;
3457
3526
  };
3458
- var googleUploadConversionsMutation = (options) => {
3459
- const mutationOptions = {
3460
- mutationFn: async (fnOptions) => {
3461
- const { data } = await googleUploadConversions({
3462
- ...options,
3463
- ...fnOptions,
3464
- throwOnError: true
3465
- });
3466
- return data;
3467
- }
3468
- };
3469
- return mutationOptions;
3470
- };
3471
3527
  var googleUploadImageAssetMutation = (options) => {
3472
3528
  const mutationOptions = {
3473
3529
  mutationFn: async (fnOptions) => {
@@ -3682,6 +3738,6 @@ var tokensMintMutation = (options) => {
3682
3738
  return mutationOptions;
3683
3739
  };
3684
3740
 
3685
- export { connectionsConnectMutation, connectionsDeleteMutation, connectionsGetOptions, connectionsGetQueryKey, connectionsListAccountsOptions, connectionsListAccountsQueryKey, connectionsListByProfileInfiniteOptions, connectionsListByProfileInfiniteQueryKey, connectionsListByProfileOptions, connectionsListByProfileQueryKey, connectionsSelectMutation, googleCreateAdGroupCriterionMutation, googleCreateAdGroupMutation, googleCreateAdMutation, googleCreateBudgetMutation, googleCreateCampaignCriterionMutation, googleCreateCampaignMutation, googleCreateConversionActionMutation, googleCreateDisplayAdMutation, googleCreateKeywordMutation, googleEditAdGroupMutation, googleEditBudgetMutation, googleEditCampaignMutation, googleEnableAdGroupMutation, googleEnableAdMutation, googleEnableCampaignMutation, googleEnableKeywordMutation, googleGetAccountOptions, googleGetAccountQueryKey, googleGetAdGroupOptions, googleGetAdGroupQueryKey, googleGetAdOptions, googleGetAdQueryKey, googleGetAdTreeOptions, googleGetAdTreeQueryKey, googleGetCampaignOptions, googleGetCampaignQueryKey, googleGetConversionActionOptions, googleGetConversionActionQueryKey, googleGetInsightsMutation, googleGetKeywordOptions, googleGetKeywordQueryKey, googleListAdGroupCriteriaOptions, googleListAdGroupCriteriaQueryKey, googleListAdGroupsOptions, googleListAdGroupsQueryKey, googleListAdsOptions, googleListAdsQueryKey, googleListAudiencesOptions, googleListAudiencesQueryKey, googleListCampaignCriteriaOptions, googleListCampaignCriteriaQueryKey, googleListCampaignsOptions, googleListCampaignsQueryKey, googleListConversionActionsOptions, googleListConversionActionsQueryKey, googleListConversionGoalsOptions, googleListConversionGoalsQueryKey, googleListKeywordsOptions, googleListKeywordsQueryKey, googlePauseAdGroupMutation, googlePauseAdMutation, googlePauseCampaignMutation, googlePauseKeywordMutation, googleRemoveAdGroupCriterionMutation, googleRemoveAdGroupMutation, googleRemoveAdMutation, googleRemoveBudgetMutation, googleRemoveCampaignCriterionMutation, googleRemoveCampaignMutation, googleRemoveKeywordMutation, googleRunGaqlMutation, googleSearchGeoTargetsOptions, googleSearchGeoTargetsQueryKey, googleSetAdGroupBidsMutation, googleSetCampaignGeoSettingsMutation, googleSetCampaignTargetingSettingMutation, googleSetConversionGoalMutation, googleSetKeywordBidMutation, googleUploadConversionsMutation, googleUploadImageAssetMutation, logsGetOptions, logsGetQueryKey, logsListInfiniteOptions, logsListInfiniteQueryKey, logsListOptions, logsListQueryKey, mediaAbortMutation, mediaCompleteMutation, mediaCreateMutation, mediaDeleteMutation, mediaGetOptions, mediaGetQueryKey, mediaListInfiniteOptions, mediaListInfiniteQueryKey, mediaListOptions, mediaListPartsOptions, mediaListPartsQueryKey, mediaListQueryKey, mediaSignPartMutation, mediaUpdateMutation, metaAccountOptions, metaAccountQueryKey, metaAdOptions, metaAdQueryKey, metaAdsOptions, metaAdsQueryKey, metaAdsetOptions, metaAdsetQueryKey, metaAdsetsOptions, metaAdsetsQueryKey, metaCampaignOptions, metaCampaignQueryKey, metaCampaignsOptions, metaCampaignsQueryKey, metaInsightsOptions, metaInsightsQueryKey, postsCreateMutation, postsDeleteMutation, postsGetOptions, postsGetQueryKey, postsListInfiniteOptions, postsListInfiniteQueryKey, postsListOptions, postsListQueryKey, postsUpdateMutation, postsValidateMutation, profilesCreateMutation, profilesDeleteMutation, profilesGetOptions, profilesGetQueryKey, profilesListInfiniteOptions, profilesListInfiniteQueryKey, profilesListOptions, profilesListQueryKey, profilesUpdateMutation, tiktokCreatorInfoOptions, tiktokCreatorInfoQueryKey, tokensMintMutation, webhooksCreateEndpointMutation, webhooksCreatePortalMutation, webhooksDeleteEndpointMutation, webhooksGetEndpointOptions, webhooksGetEndpointQueryKey, webhooksListEndpointsInfiniteOptions, webhooksListEndpointsInfiniteQueryKey, webhooksListEndpointsOptions, webhooksListEndpointsQueryKey, webhooksListEventTypesOptions, webhooksListEventTypesQueryKey, webhooksPingMutation, webhooksUpdateEndpointMutation };
3741
+ export { connectionsConnectMutation, connectionsDeleteMutation, connectionsGetOptions, connectionsGetQueryKey, connectionsListAccountsOptions, connectionsListAccountsQueryKey, connectionsListByProfileInfiniteOptions, connectionsListByProfileInfiniteQueryKey, connectionsListByProfileOptions, connectionsListByProfileQueryKey, connectionsSelectMutation, googleCreateAdGroupCriterionMutation, googleCreateAdGroupMutation, googleCreateAdMutation, googleCreateBudgetMutation, googleCreateCampaignCriterionMutation, googleCreateCampaignMutation, googleCreateConversionActionMutation, googleCreateDisplayAdMutation, googleCreateKeywordMutation, googleEditAccountMutation, googleEditAdGroupMutation, googleEditBudgetMutation, googleEditCampaignMutation, googleEnableAdGroupMutation, googleEnableAdMutation, googleEnableCampaignMutation, googleEnableKeywordMutation, googleGetAccountOptions, googleGetAccountQueryKey, googleGetAdGroupOptions, googleGetAdGroupQueryKey, googleGetAdOptions, googleGetAdQueryKey, googleGetAdTreeOptions, googleGetAdTreeQueryKey, googleGetCampaignOptions, googleGetCampaignQueryKey, googleGetConversionActionOptions, googleGetConversionActionQueryKey, googleGetConversionStatusOptions, googleGetConversionStatusQueryKey, googleGetInsightsMutation, googleGetKeywordOptions, googleGetKeywordQueryKey, googleListAdGroupCriteriaOptions, googleListAdGroupCriteriaQueryKey, googleListAdGroupsOptions, googleListAdGroupsQueryKey, googleListAdsOptions, googleListAdsQueryKey, googleListAudiencesOptions, googleListAudiencesQueryKey, googleListCampaignCriteriaOptions, googleListCampaignCriteriaQueryKey, googleListCampaignsOptions, googleListCampaignsQueryKey, googleListConversionActionsOptions, googleListConversionActionsQueryKey, googleListConversionGoalsOptions, googleListConversionGoalsQueryKey, googleListKeywordsOptions, googleListKeywordsQueryKey, googlePauseAdGroupMutation, googlePauseAdMutation, googlePauseCampaignMutation, googlePauseKeywordMutation, googleRemoveAdGroupCriterionMutation, googleRemoveAdGroupMutation, googleRemoveAdMutation, googleRemoveBudgetMutation, googleRemoveCampaignCriterionMutation, googleRemoveCampaignMutation, googleRemoveKeywordMutation, googleRunGaqlMutation, googleSearchGeoTargetsOptions, googleSearchGeoTargetsQueryKey, googleSendConversionsMutation, googleSetAdGroupBidsMutation, googleSetCampaignGeoSettingsMutation, googleSetCampaignTargetingSettingMutation, googleSetConversionGoalMutation, googleSetKeywordBidMutation, googleUploadImageAssetMutation, logsGetOptions, logsGetQueryKey, logsListInfiniteOptions, logsListInfiniteQueryKey, logsListOptions, logsListQueryKey, mediaAbortMutation, mediaCompleteMutation, mediaCreateMutation, mediaDeleteMutation, mediaGetOptions, mediaGetQueryKey, mediaListInfiniteOptions, mediaListInfiniteQueryKey, mediaListOptions, mediaListPartsOptions, mediaListPartsQueryKey, mediaListQueryKey, mediaSignPartMutation, mediaUpdateMutation, metaAccountOptions, metaAccountQueryKey, metaAdOptions, metaAdQueryKey, metaAdsOptions, metaAdsQueryKey, metaAdsetOptions, metaAdsetQueryKey, metaAdsetsOptions, metaAdsetsQueryKey, metaCampaignOptions, metaCampaignQueryKey, metaCampaignsOptions, metaCampaignsQueryKey, metaInsightsOptions, metaInsightsQueryKey, postsCreateMutation, postsDeleteMutation, postsGetOptions, postsGetQueryKey, postsListInfiniteOptions, postsListInfiniteQueryKey, postsListOptions, postsListQueryKey, postsUpdateMutation, postsValidateMutation, profilesCreateMutation, profilesDeleteMutation, profilesGetOptions, profilesGetQueryKey, profilesListInfiniteOptions, profilesListInfiniteQueryKey, profilesListOptions, profilesListQueryKey, profilesUpdateMutation, tiktokCreatorInfoOptions, tiktokCreatorInfoQueryKey, tokensMintMutation, webhooksCreateEndpointMutation, webhooksCreatePortalMutation, webhooksDeleteEndpointMutation, webhooksGetEndpointOptions, webhooksGetEndpointQueryKey, webhooksListEndpointsInfiniteOptions, webhooksListEndpointsInfiniteQueryKey, webhooksListEndpointsOptions, webhooksListEndpointsQueryKey, webhooksListEventTypesOptions, webhooksListEventTypesQueryKey, webhooksPingMutation, webhooksUpdateEndpointMutation };
3686
3742
  //# sourceMappingURL=query.js.map
3687
3743
  //# sourceMappingURL=query.js.map