randmar-api-client 1.37.0 → 1.39.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.
|
@@ -2261,6 +2261,7 @@ export type Inventory = {
|
|
|
2261
2261
|
export type Distribution = {
|
|
2262
2262
|
ExchangeRate?: number;
|
|
2263
2263
|
MAP?: number;
|
|
2264
|
+
MSRP?: number;
|
|
2264
2265
|
Price?: number;
|
|
2265
2266
|
RegularPrice?: number;
|
|
2266
2267
|
Cost?: number | null;
|
|
@@ -2497,6 +2498,7 @@ export type Product = {
|
|
|
2497
2498
|
LastMaintainedDate?: number;
|
|
2498
2499
|
UnitWeight?: number;
|
|
2499
2500
|
MAP?: number | null;
|
|
2501
|
+
MSRP?: number | null;
|
|
2500
2502
|
UnitHeight?: number | null;
|
|
2501
2503
|
UnitLength?: number | null;
|
|
2502
2504
|
UnitWidth?: number | null;
|
|
@@ -3012,6 +3014,7 @@ export type InsertProduct = {
|
|
|
3012
3014
|
SkidQuantity?: number | null;
|
|
3013
3015
|
BodyHTML?: string | null;
|
|
3014
3016
|
MAP?: number | null;
|
|
3017
|
+
MSRP?: number | null;
|
|
3015
3018
|
Title?: string | null;
|
|
3016
3019
|
UPC?: string | null;
|
|
3017
3020
|
MPN?: string | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PostV4PartnerByApplicationIdAccountAboutApiArg } from './randmarApi';
|
|
1
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<{
|
|
2
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>;
|
|
3
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>;
|
|
@@ -7,7 +8,7 @@ declare const enhancedApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs
|
|
|
7
8
|
getV4ResellerByRouteResellerIdAccountGeneral: import("@reduxjs/toolkit/query").QueryDefinition<import("./randmarApi").GetV4ResellerByRouteResellerIdAccountGeneralApiArg, 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>;
|
|
8
9
|
getV4PartnerByApplicationIdAccount: import("@reduxjs/toolkit/query").QueryDefinition<import("./randmarApi").GetV4PartnerByApplicationIdAccountApiArg, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, never, import("./randmarApi").Account, "randmarApi", unknown>;
|
|
9
10
|
postV4PartnerByApplicationIdAccountAndFieldName: import("@reduxjs/toolkit/query").MutationDefinition<import("./randmarApi").PostV4PartnerByApplicationIdAccountAndFieldNameApiArg, 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>;
|
|
10
|
-
postV4PartnerByApplicationIdAccountAbout: import("@reduxjs/toolkit/query").MutationDefinition<
|
|
11
|
+
postV4PartnerByApplicationIdAccountAbout: import("@reduxjs/toolkit/query").MutationDefinition<PostV4PartnerByApplicationIdAccountAboutApiArg, 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>;
|
|
11
12
|
getV4PartnerByApplicationIdAccountLogo: import("@reduxjs/toolkit/query").QueryDefinition<import("./randmarApi").GetV4PartnerByApplicationIdAccountLogoApiArg, 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>;
|
|
12
13
|
postV4PartnerByApplicationIdAccountLogo: import("@reduxjs/toolkit/query").MutationDefinition<import("./randmarApi").PostV4PartnerByApplicationIdAccountLogoApiArg, 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>;
|
|
13
14
|
getV4PartnerByApplicationIdAccountLogoExists: import("@reduxjs/toolkit/query").QueryDefinition<import("./randmarApi").GetV4PartnerByApplicationIdAccountLogoExistsApiArg, 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>;
|
|
@@ -27,7 +27,22 @@ const enhancedApi = randmarApi.enhanceEndpoints({
|
|
|
27
27
|
providesTags: ['Account'],
|
|
28
28
|
},
|
|
29
29
|
postV4PartnerByApplicationIdAccountAbout: {
|
|
30
|
+
query: (q) => ({
|
|
31
|
+
url: `/V4/Partner/${q.applicationId}/Account/About`,
|
|
32
|
+
method: 'POST',
|
|
33
|
+
body: JSON.stringify(q.body),
|
|
34
|
+
headers: {
|
|
35
|
+
"Content-Type": "application/json",
|
|
36
|
+
},
|
|
37
|
+
responseHandler: (response) => response.text(),
|
|
38
|
+
}),
|
|
30
39
|
invalidatesTags: ['Account'],
|
|
40
|
+
transformResponse: (responseText) => {
|
|
41
|
+
if (responseText.trim() === "false") {
|
|
42
|
+
throw new Error("Failed to update account about field");
|
|
43
|
+
}
|
|
44
|
+
return true;
|
|
45
|
+
},
|
|
31
46
|
},
|
|
32
47
|
postV4PartnerByApplicationIdAccountAndFieldName: {
|
|
33
48
|
invalidatesTags: ['Account'],
|