@qite/tide-client 1.1.33 → 1.1.34
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/build/index.js +12 -2
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/web-agent-client.ts +18 -3
package/package.json
CHANGED
|
@@ -66,7 +66,12 @@ export const getEntryList = (
|
|
|
66
66
|
signal?: AbortSignal
|
|
67
67
|
): Promise<PageResult<DossierViewResult>> => {
|
|
68
68
|
const params = createParams(filterItem, false, gridColumns);
|
|
69
|
-
const
|
|
69
|
+
const queryString = Object.keys(params)
|
|
70
|
+
.map(
|
|
71
|
+
(key) => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`
|
|
72
|
+
)
|
|
73
|
+
.join("&");
|
|
74
|
+
const url = `${config.host}${ENDPOINT}/entry/list?${queryString}`;
|
|
70
75
|
const apiKey = config.apiKey;
|
|
71
76
|
|
|
72
77
|
return get<PageResult<DossierViewResult>>(
|
|
@@ -85,7 +90,12 @@ export const getEntryTotals = (
|
|
|
85
90
|
signal?: AbortSignal
|
|
86
91
|
): Promise<EntryTotals> => {
|
|
87
92
|
const params = createParams(filterItem, false, gridColumns);
|
|
88
|
-
const
|
|
93
|
+
const queryString = Object.keys(params)
|
|
94
|
+
.map(
|
|
95
|
+
(key) => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`
|
|
96
|
+
)
|
|
97
|
+
.join("&");
|
|
98
|
+
const url = `${config.host}${ENDPOINT}/entry/total?${queryString}`;
|
|
89
99
|
const apiKey = config.apiKey;
|
|
90
100
|
|
|
91
101
|
return get<EntryTotals>(url, apiKey, config.token, signal, true);
|
|
@@ -98,7 +108,12 @@ export const getInvoiceList = (
|
|
|
98
108
|
signal?: AbortSignal
|
|
99
109
|
): Promise<PageResult<AgentInvoiceItem>> => {
|
|
100
110
|
const params = createParams(filterItem, false, gridColumns);
|
|
101
|
-
const
|
|
111
|
+
const queryString = Object.keys(params)
|
|
112
|
+
.map(
|
|
113
|
+
(key) => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`
|
|
114
|
+
)
|
|
115
|
+
.join("&");
|
|
116
|
+
const url = `${config.host}${ENDPOINT}/invoice/list?${queryString}`;
|
|
102
117
|
const apiKey = config.apiKey;
|
|
103
118
|
|
|
104
119
|
return get<PageResult<AgentInvoiceItem>>(
|