@open-tender/cloud 0.1.117 → 0.1.118
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.
|
@@ -159,6 +159,7 @@ declare class OpenTenderAPI {
|
|
|
159
159
|
getCustomerThanx(token: string): Promise<unknown>;
|
|
160
160
|
getThanxCardSignature(token: string, acct: string): Promise<unknown>;
|
|
161
161
|
getCustomerTpls(token: string): Promise<unknown>;
|
|
162
|
+
getCustomerTplsHistory(token: string): Promise<unknown>;
|
|
162
163
|
getCustomerHouseAccounts(token: string): Promise<unknown>;
|
|
163
164
|
putCustomerOrderRating(token: string, orderId: number, data: any): Promise<unknown>;
|
|
164
165
|
}
|
package/dist/cjs/services/api.js
CHANGED
|
@@ -693,6 +693,9 @@ class OpenTenderAPI {
|
|
|
693
693
|
getCustomerTpls(token) {
|
|
694
694
|
return this.request(`/customer/tpls`, 'GET', null, null, token);
|
|
695
695
|
}
|
|
696
|
+
getCustomerTplsHistory(token) {
|
|
697
|
+
return this.request(`/customer/tpls/history`, 'GET', null, null, token);
|
|
698
|
+
}
|
|
696
699
|
getCustomerHouseAccounts(token) {
|
|
697
700
|
return this.request(`/customer/house-accounts`, 'GET', null, null, token);
|
|
698
701
|
}
|
|
@@ -23,7 +23,7 @@ exports.fetchCustomerHistory = (0, toolkit_1.createAsyncThunk)(CustomerHistoryAc
|
|
|
23
23
|
const token = (0, account_1.selectToken)(getState());
|
|
24
24
|
if (!token)
|
|
25
25
|
throw new Error(types_2.MISSING_CUSTOMER);
|
|
26
|
-
return yield api.
|
|
26
|
+
return yield api.getCustomerTplsHistory(token);
|
|
27
27
|
}
|
|
28
28
|
catch (err) {
|
|
29
29
|
return rejectWithValue(err);
|
|
@@ -159,6 +159,7 @@ declare class OpenTenderAPI {
|
|
|
159
159
|
getCustomerThanx(token: string): Promise<unknown>;
|
|
160
160
|
getThanxCardSignature(token: string, acct: string): Promise<unknown>;
|
|
161
161
|
getCustomerTpls(token: string): Promise<unknown>;
|
|
162
|
+
getCustomerTplsHistory(token: string): Promise<unknown>;
|
|
162
163
|
getCustomerHouseAccounts(token: string): Promise<unknown>;
|
|
163
164
|
putCustomerOrderRating(token: string, orderId: number, data: any): Promise<unknown>;
|
|
164
165
|
}
|
package/dist/esm/services/api.js
CHANGED
|
@@ -691,6 +691,9 @@ class OpenTenderAPI {
|
|
|
691
691
|
getCustomerTpls(token) {
|
|
692
692
|
return this.request(`/customer/tpls`, 'GET', null, null, token);
|
|
693
693
|
}
|
|
694
|
+
getCustomerTplsHistory(token) {
|
|
695
|
+
return this.request(`/customer/tpls/history`, 'GET', null, null, token);
|
|
696
|
+
}
|
|
694
697
|
getCustomerHouseAccounts(token) {
|
|
695
698
|
return this.request(`/customer/house-accounts`, 'GET', null, null, token);
|
|
696
699
|
}
|
|
@@ -20,7 +20,7 @@ export const fetchCustomerHistory = createAsyncThunk(CustomerHistoryActionType.F
|
|
|
20
20
|
const token = selectToken(getState());
|
|
21
21
|
if (!token)
|
|
22
22
|
throw new Error(MISSING_CUSTOMER);
|
|
23
|
-
return yield api.
|
|
23
|
+
return yield api.getCustomerTplsHistory(token);
|
|
24
24
|
}
|
|
25
25
|
catch (err) {
|
|
26
26
|
return rejectWithValue(err);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/cloud",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.118",
|
|
4
4
|
"description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our cloud-based Order API.",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|