randmar-api-client 1.40.0 → 1.41.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PostV4PartnerByApplicationIdAccountAboutApiArg, PutV4PartnerByApplicationIdAccountBillingApiArg, PostV4PartnerByApplicationIdAccountLogoApiArg } from './randmarApi';
|
|
1
|
+
import { PostV4PartnerByApplicationIdAccountAboutApiArg, PutV4PartnerByApplicationIdAccountBillingApiArg, PostV4PartnerByApplicationIdAccountLogoApiArg, PutV4PartnerByApplicationIdAccountSocialAndSocialNetworkApiArg } from './randmarApi';
|
|
2
2
|
declare const enhancedApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, import("@reduxjs/toolkit/query").UpdateDefinitions<{
|
|
3
3
|
getV4ShopifyByShopifyHostNameAccount: import("@reduxjs/toolkit/query").QueryDefinition<import("./randmarApi").GetV4ShopifyByShopifyHostNameAccountApiArg, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, never, unknown, "randmarApi", unknown>;
|
|
4
4
|
postV4ShopifyByShopifyHostNameAccountSynchronizationAndSynchronizationType: import("@reduxjs/toolkit/query").MutationDefinition<import("./randmarApi").PostV4ShopifyByShopifyHostNameAccountSynchronizationAndSynchronizationTypeApiArg, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, never, unknown, "randmarApi", unknown>;
|
|
@@ -30,7 +30,7 @@ declare const enhancedApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs
|
|
|
30
30
|
postV4PartnerByApplicationIdAccountResellerCreditLimit: import("@reduxjs/toolkit/query").MutationDefinition<import("./randmarApi").PostV4PartnerByApplicationIdAccountResellerCreditLimitApiArg, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, never, unknown, "randmarApi", unknown>;
|
|
31
31
|
postV4PartnerByApplicationIdAccountResellerPriority: import("@reduxjs/toolkit/query").MutationDefinition<import("./randmarApi").PostV4PartnerByApplicationIdAccountResellerPriorityApiArg, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, never, unknown, "randmarApi", unknown>;
|
|
32
32
|
postV4PartnerByApplicationIdAccountResellerTier: import("@reduxjs/toolkit/query").MutationDefinition<import("./randmarApi").PostV4PartnerByApplicationIdAccountResellerTierApiArg, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, never, unknown, "randmarApi", unknown>;
|
|
33
|
-
putV4PartnerByApplicationIdAccountSocialAndSocialNetwork: import("@reduxjs/toolkit/query").MutationDefinition<
|
|
33
|
+
putV4PartnerByApplicationIdAccountSocialAndSocialNetwork: import("@reduxjs/toolkit/query").MutationDefinition<PutV4PartnerByApplicationIdAccountSocialAndSocialNetworkApiArg, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, never, unknown, "randmarApi", unknown>;
|
|
34
34
|
deleteV4PartnerByApplicationIdAccountSocialAndSocialNetwork: import("@reduxjs/toolkit/query").MutationDefinition<import("./randmarApi").DeleteV4PartnerByApplicationIdAccountSocialAndSocialNetworkApiArg, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, never, unknown, "randmarApi", unknown>;
|
|
35
35
|
getV4ManufacturerByRouteManufacturerIdAccount: import("@reduxjs/toolkit/query").QueryDefinition<import("./randmarApi").GetV4ManufacturerByRouteManufacturerIdAccountApiArg, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, never, unknown, "randmarApi", unknown>;
|
|
36
36
|
getV4AgencyByRouteAgencyId: import("@reduxjs/toolkit/query").QueryDefinition<import("./randmarApi").GetV4AgencyByRouteAgencyIdApiArg, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, never, unknown, "randmarApi", unknown>;
|
|
@@ -97,7 +97,23 @@ const enhancedApi = randmarApi.enhanceEndpoints({
|
|
|
97
97
|
return true;
|
|
98
98
|
},
|
|
99
99
|
invalidatesTags: ['Account'],
|
|
100
|
-
}
|
|
100
|
+
},
|
|
101
|
+
putV4PartnerByApplicationIdAccountSocialAndSocialNetwork: {
|
|
102
|
+
query: (arg) => ({
|
|
103
|
+
url: `/V4/Partner/${arg.applicationId}/Account/Social/${arg.socialNetwork}`,
|
|
104
|
+
method: 'PUT',
|
|
105
|
+
params: {
|
|
106
|
+
tag: arg.tag,
|
|
107
|
+
},
|
|
108
|
+
responseHandler: (response) => response.text(),
|
|
109
|
+
}),
|
|
110
|
+
transformResponse: (responseText) => {
|
|
111
|
+
if (responseText.trim() === "false")
|
|
112
|
+
throw new Error("Failed to create social");
|
|
113
|
+
return true;
|
|
114
|
+
},
|
|
115
|
+
invalidatesTags: ['Account'],
|
|
116
|
+
},
|
|
101
117
|
},
|
|
102
118
|
});
|
|
103
119
|
export { enhancedApi as randmarApiWithTags };
|