@qite/tide-client 1.1.33 → 1.1.35
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 +28 -3
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/services/odata.service.ts +5 -0
- package/src/utils/web-agent-client.ts +18 -3
package/package.json
CHANGED
|
@@ -143,6 +143,11 @@ const getColumnFilter = (
|
|
|
143
143
|
case "dateRange":
|
|
144
144
|
return `${columnName} ge ${columnValue[0].toISOString()} and ${columnName} le ${columnValue[1].toISOString()}`;
|
|
145
145
|
|
|
146
|
+
case "inList":
|
|
147
|
+
return `(${columnValue
|
|
148
|
+
.map((value: any) => `${columnName} eq ${value}`)
|
|
149
|
+
.join(" or ")})`;
|
|
150
|
+
|
|
146
151
|
default:
|
|
147
152
|
return "";
|
|
148
153
|
}
|
|
@@ -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>>(
|