@fctc/interface-logic 2.2.2 → 2.2.3
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/dist/configs.d.mts +6 -6
- package/dist/configs.d.ts +6 -6
- package/dist/configs.js +41 -14
- package/dist/configs.mjs +41 -14
- package/dist/environment.js +41 -14
- package/dist/environment.mjs +41 -14
- package/dist/hooks.d.mts +15 -4
- package/dist/hooks.d.ts +15 -4
- package/dist/hooks.js +194 -99
- package/dist/hooks.mjs +194 -99
- package/dist/provider.d.mts +2 -1
- package/dist/provider.d.ts +2 -1
- package/dist/provider.js +235 -113
- package/dist/provider.mjs +235 -113
- package/dist/services.d.mts +22 -14
- package/dist/services.d.ts +22 -14
- package/dist/services.js +151 -76
- package/dist/services.mjs +151 -76
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/{view-type-BGJfDe73.d.mts → view-type-p4JdAOsz.d.mts} +5 -0
- package/dist/{view-type-BGJfDe73.d.ts → view-type-p4JdAOsz.d.ts} +5 -0
- package/package.json +85 -85
package/dist/configs.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const axiosClient: {
|
|
2
2
|
init(config: any): {
|
|
3
|
-
get: (url: string, headers
|
|
4
|
-
post: (url: string, body: any, headers
|
|
5
|
-
post_excel: (url: string, body: any, headers
|
|
6
|
-
put: (url: string, body: any, headers
|
|
7
|
-
patch: (url: string, body: any) => Promise<any>;
|
|
8
|
-
delete: (url: string,
|
|
3
|
+
get: (url: string, headers?: any, serviceName?: string) => Promise<any>;
|
|
4
|
+
post: (url: string, body: any, headers?: any, serviceName?: string) => Promise<any>;
|
|
5
|
+
post_excel: (url: string, body: any, headers?: any, serviceName?: string) => Promise<any>;
|
|
6
|
+
put: (url: string, body: any, headers?: any, serviceName?: string) => Promise<any>;
|
|
7
|
+
patch: (url: string, body: any, headers?: any, serviceName?: string) => Promise<any>;
|
|
8
|
+
delete: (url: string, headers?: any, serviceName?: string) => Promise<any>;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
|
package/dist/configs.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const axiosClient: {
|
|
2
2
|
init(config: any): {
|
|
3
|
-
get: (url: string, headers
|
|
4
|
-
post: (url: string, body: any, headers
|
|
5
|
-
post_excel: (url: string, body: any, headers
|
|
6
|
-
put: (url: string, body: any, headers
|
|
7
|
-
patch: (url: string, body: any) => Promise<any>;
|
|
8
|
-
delete: (url: string,
|
|
3
|
+
get: (url: string, headers?: any, serviceName?: string) => Promise<any>;
|
|
4
|
+
post: (url: string, body: any, headers?: any, serviceName?: string) => Promise<any>;
|
|
5
|
+
post_excel: (url: string, body: any, headers?: any, serviceName?: string) => Promise<any>;
|
|
6
|
+
put: (url: string, body: any, headers?: any, serviceName?: string) => Promise<any>;
|
|
7
|
+
patch: (url: string, body: any, headers?: any, serviceName?: string) => Promise<any>;
|
|
8
|
+
delete: (url: string, headers?: any, serviceName?: string) => Promise<any>;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
|
package/dist/configs.js
CHANGED
|
@@ -2208,7 +2208,6 @@ var sessionStorageUtils = () => {
|
|
|
2208
2208
|
// src/configs/axios-client.ts
|
|
2209
2209
|
var axiosClient = {
|
|
2210
2210
|
init(config) {
|
|
2211
|
-
console.log("config", config);
|
|
2212
2211
|
const localStorage2 = config?.localStorageUtils ?? localStorageUtils();
|
|
2213
2212
|
const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils();
|
|
2214
2213
|
const db = config?.db;
|
|
@@ -2227,7 +2226,7 @@ var axiosClient = {
|
|
|
2227
2226
|
};
|
|
2228
2227
|
const instance = import_axios.default.create({
|
|
2229
2228
|
adapter: import_axios.default.defaults.adapter,
|
|
2230
|
-
baseURL: config
|
|
2229
|
+
baseURL: config?.baseUrl,
|
|
2231
2230
|
timeout: 5e4,
|
|
2232
2231
|
paramsSerializer: (params) => new URLSearchParams(params).toString()
|
|
2233
2232
|
});
|
|
@@ -2246,6 +2245,7 @@ var axiosClient = {
|
|
|
2246
2245
|
if (database) {
|
|
2247
2246
|
config2.headers["DATABASE"] = database;
|
|
2248
2247
|
}
|
|
2248
|
+
if (token) config2.headers["Authorization"] = `Bearer ${token}`;
|
|
2249
2249
|
return config2;
|
|
2250
2250
|
}, Promise.reject);
|
|
2251
2251
|
instance.interceptors.response.use(
|
|
@@ -2300,7 +2300,7 @@ var axiosClient = {
|
|
|
2300
2300
|
);
|
|
2301
2301
|
return new Promise(function(resolve) {
|
|
2302
2302
|
import_axios.default.post(
|
|
2303
|
-
`${config
|
|
2303
|
+
`${config?.baseUrl}${config.refreshTokenEndpoint ?? "/authentication/oauth2/token" /* AUTH_TOKEN_PATH */}`,
|
|
2304
2304
|
payload,
|
|
2305
2305
|
{
|
|
2306
2306
|
headers: {
|
|
@@ -2368,20 +2368,47 @@ var axiosClient = {
|
|
|
2368
2368
|
function formatUrl(url, db2) {
|
|
2369
2369
|
return url + (db2 ? "?db=" + db2 : "");
|
|
2370
2370
|
}
|
|
2371
|
+
const getBaseUrl = (baseUrl, serviceName) => {
|
|
2372
|
+
const service = serviceName || config?.default_service;
|
|
2373
|
+
return `${baseUrl.replace(/\/$/, "")}/${service}/api/v2`;
|
|
2374
|
+
};
|
|
2371
2375
|
const responseBody = (response) => response;
|
|
2372
2376
|
const requests = {
|
|
2373
|
-
get: (url, headers) => instance.get(
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2377
|
+
get: (url, headers, serviceName) => instance.get(
|
|
2378
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2379
|
+
headers
|
|
2380
|
+
).then(responseBody),
|
|
2381
|
+
post: (url, body, headers, serviceName) => instance.post(
|
|
2382
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2383
|
+
body,
|
|
2384
|
+
headers
|
|
2385
|
+
).then(responseBody),
|
|
2386
|
+
post_excel: (url, body, headers, serviceName) => instance.post(
|
|
2387
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2388
|
+
body,
|
|
2389
|
+
{
|
|
2390
|
+
responseType: "arraybuffer",
|
|
2391
|
+
headers: {
|
|
2392
|
+
"Content-Type": typeof window !== "undefined" ? "application/json" : "application/javascript",
|
|
2393
|
+
Accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
2394
|
+
...headers
|
|
2395
|
+
}
|
|
2380
2396
|
}
|
|
2381
|
-
|
|
2382
|
-
put: (url, body, headers) => instance.put(
|
|
2383
|
-
|
|
2384
|
-
|
|
2397
|
+
).then(responseBody),
|
|
2398
|
+
put: (url, body, headers, serviceName) => instance.put(
|
|
2399
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2400
|
+
body,
|
|
2401
|
+
headers
|
|
2402
|
+
).then(responseBody),
|
|
2403
|
+
patch: (url, body, headers, serviceName) => instance.patch(
|
|
2404
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2405
|
+
body,
|
|
2406
|
+
headers
|
|
2407
|
+
).then(responseBody),
|
|
2408
|
+
delete: (url, headers, serviceName) => instance.delete(
|
|
2409
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2410
|
+
headers
|
|
2411
|
+
).then(responseBody)
|
|
2385
2412
|
};
|
|
2386
2413
|
return requests;
|
|
2387
2414
|
}
|
package/dist/configs.mjs
CHANGED
|
@@ -2172,7 +2172,6 @@ var sessionStorageUtils = () => {
|
|
|
2172
2172
|
// src/configs/axios-client.ts
|
|
2173
2173
|
var axiosClient = {
|
|
2174
2174
|
init(config) {
|
|
2175
|
-
console.log("config", config);
|
|
2176
2175
|
const localStorage2 = config?.localStorageUtils ?? localStorageUtils();
|
|
2177
2176
|
const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils();
|
|
2178
2177
|
const db = config?.db;
|
|
@@ -2191,7 +2190,7 @@ var axiosClient = {
|
|
|
2191
2190
|
};
|
|
2192
2191
|
const instance = axios.create({
|
|
2193
2192
|
adapter: axios.defaults.adapter,
|
|
2194
|
-
baseURL: config
|
|
2193
|
+
baseURL: config?.baseUrl,
|
|
2195
2194
|
timeout: 5e4,
|
|
2196
2195
|
paramsSerializer: (params) => new URLSearchParams(params).toString()
|
|
2197
2196
|
});
|
|
@@ -2210,6 +2209,7 @@ var axiosClient = {
|
|
|
2210
2209
|
if (database) {
|
|
2211
2210
|
config2.headers["DATABASE"] = database;
|
|
2212
2211
|
}
|
|
2212
|
+
if (token) config2.headers["Authorization"] = `Bearer ${token}`;
|
|
2213
2213
|
return config2;
|
|
2214
2214
|
}, Promise.reject);
|
|
2215
2215
|
instance.interceptors.response.use(
|
|
@@ -2264,7 +2264,7 @@ var axiosClient = {
|
|
|
2264
2264
|
);
|
|
2265
2265
|
return new Promise(function(resolve) {
|
|
2266
2266
|
axios.post(
|
|
2267
|
-
`${config
|
|
2267
|
+
`${config?.baseUrl}${config.refreshTokenEndpoint ?? "/authentication/oauth2/token" /* AUTH_TOKEN_PATH */}`,
|
|
2268
2268
|
payload,
|
|
2269
2269
|
{
|
|
2270
2270
|
headers: {
|
|
@@ -2332,20 +2332,47 @@ var axiosClient = {
|
|
|
2332
2332
|
function formatUrl(url, db2) {
|
|
2333
2333
|
return url + (db2 ? "?db=" + db2 : "");
|
|
2334
2334
|
}
|
|
2335
|
+
const getBaseUrl = (baseUrl, serviceName) => {
|
|
2336
|
+
const service = serviceName || config?.default_service;
|
|
2337
|
+
return `${baseUrl.replace(/\/$/, "")}/${service}/api/v2`;
|
|
2338
|
+
};
|
|
2335
2339
|
const responseBody = (response) => response;
|
|
2336
2340
|
const requests = {
|
|
2337
|
-
get: (url, headers) => instance.get(
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2341
|
+
get: (url, headers, serviceName) => instance.get(
|
|
2342
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2343
|
+
headers
|
|
2344
|
+
).then(responseBody),
|
|
2345
|
+
post: (url, body, headers, serviceName) => instance.post(
|
|
2346
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2347
|
+
body,
|
|
2348
|
+
headers
|
|
2349
|
+
).then(responseBody),
|
|
2350
|
+
post_excel: (url, body, headers, serviceName) => instance.post(
|
|
2351
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2352
|
+
body,
|
|
2353
|
+
{
|
|
2354
|
+
responseType: "arraybuffer",
|
|
2355
|
+
headers: {
|
|
2356
|
+
"Content-Type": typeof window !== "undefined" ? "application/json" : "application/javascript",
|
|
2357
|
+
Accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
2358
|
+
...headers
|
|
2359
|
+
}
|
|
2344
2360
|
}
|
|
2345
|
-
|
|
2346
|
-
put: (url, body, headers) => instance.put(
|
|
2347
|
-
|
|
2348
|
-
|
|
2361
|
+
).then(responseBody),
|
|
2362
|
+
put: (url, body, headers, serviceName) => instance.put(
|
|
2363
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2364
|
+
body,
|
|
2365
|
+
headers
|
|
2366
|
+
).then(responseBody),
|
|
2367
|
+
patch: (url, body, headers, serviceName) => instance.patch(
|
|
2368
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2369
|
+
body,
|
|
2370
|
+
headers
|
|
2371
|
+
).then(responseBody),
|
|
2372
|
+
delete: (url, headers, serviceName) => instance.delete(
|
|
2373
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2374
|
+
headers
|
|
2375
|
+
).then(responseBody)
|
|
2349
2376
|
};
|
|
2350
2377
|
return requests;
|
|
2351
2378
|
}
|
package/dist/environment.js
CHANGED
|
@@ -2210,7 +2210,6 @@ var sessionStorageUtils = () => {
|
|
|
2210
2210
|
// src/configs/axios-client.ts
|
|
2211
2211
|
var axiosClient = {
|
|
2212
2212
|
init(config) {
|
|
2213
|
-
console.log("config", config);
|
|
2214
2213
|
const localStorage2 = config?.localStorageUtils ?? localStorageUtils();
|
|
2215
2214
|
const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils();
|
|
2216
2215
|
const db = config?.db;
|
|
@@ -2229,7 +2228,7 @@ var axiosClient = {
|
|
|
2229
2228
|
};
|
|
2230
2229
|
const instance = import_axios.default.create({
|
|
2231
2230
|
adapter: import_axios.default.defaults.adapter,
|
|
2232
|
-
baseURL: config
|
|
2231
|
+
baseURL: config?.baseUrl,
|
|
2233
2232
|
timeout: 5e4,
|
|
2234
2233
|
paramsSerializer: (params) => new URLSearchParams(params).toString()
|
|
2235
2234
|
});
|
|
@@ -2248,6 +2247,7 @@ var axiosClient = {
|
|
|
2248
2247
|
if (database) {
|
|
2249
2248
|
config2.headers["DATABASE"] = database;
|
|
2250
2249
|
}
|
|
2250
|
+
if (token) config2.headers["Authorization"] = `Bearer ${token}`;
|
|
2251
2251
|
return config2;
|
|
2252
2252
|
}, Promise.reject);
|
|
2253
2253
|
instance.interceptors.response.use(
|
|
@@ -2302,7 +2302,7 @@ var axiosClient = {
|
|
|
2302
2302
|
);
|
|
2303
2303
|
return new Promise(function(resolve) {
|
|
2304
2304
|
import_axios.default.post(
|
|
2305
|
-
`${config
|
|
2305
|
+
`${config?.baseUrl}${config.refreshTokenEndpoint ?? "/authentication/oauth2/token" /* AUTH_TOKEN_PATH */}`,
|
|
2306
2306
|
payload,
|
|
2307
2307
|
{
|
|
2308
2308
|
headers: {
|
|
@@ -2370,20 +2370,47 @@ var axiosClient = {
|
|
|
2370
2370
|
function formatUrl(url, db2) {
|
|
2371
2371
|
return url + (db2 ? "?db=" + db2 : "");
|
|
2372
2372
|
}
|
|
2373
|
+
const getBaseUrl = (baseUrl, serviceName) => {
|
|
2374
|
+
const service = serviceName || config?.default_service;
|
|
2375
|
+
return `${baseUrl.replace(/\/$/, "")}/${service}/api/v2`;
|
|
2376
|
+
};
|
|
2373
2377
|
const responseBody = (response) => response;
|
|
2374
2378
|
const requests = {
|
|
2375
|
-
get: (url, headers) => instance.get(
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2379
|
+
get: (url, headers, serviceName) => instance.get(
|
|
2380
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2381
|
+
headers
|
|
2382
|
+
).then(responseBody),
|
|
2383
|
+
post: (url, body, headers, serviceName) => instance.post(
|
|
2384
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2385
|
+
body,
|
|
2386
|
+
headers
|
|
2387
|
+
).then(responseBody),
|
|
2388
|
+
post_excel: (url, body, headers, serviceName) => instance.post(
|
|
2389
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2390
|
+
body,
|
|
2391
|
+
{
|
|
2392
|
+
responseType: "arraybuffer",
|
|
2393
|
+
headers: {
|
|
2394
|
+
"Content-Type": typeof window !== "undefined" ? "application/json" : "application/javascript",
|
|
2395
|
+
Accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
2396
|
+
...headers
|
|
2397
|
+
}
|
|
2382
2398
|
}
|
|
2383
|
-
|
|
2384
|
-
put: (url, body, headers) => instance.put(
|
|
2385
|
-
|
|
2386
|
-
|
|
2399
|
+
).then(responseBody),
|
|
2400
|
+
put: (url, body, headers, serviceName) => instance.put(
|
|
2401
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2402
|
+
body,
|
|
2403
|
+
headers
|
|
2404
|
+
).then(responseBody),
|
|
2405
|
+
patch: (url, body, headers, serviceName) => instance.patch(
|
|
2406
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2407
|
+
body,
|
|
2408
|
+
headers
|
|
2409
|
+
).then(responseBody),
|
|
2410
|
+
delete: (url, headers, serviceName) => instance.delete(
|
|
2411
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2412
|
+
headers
|
|
2413
|
+
).then(responseBody)
|
|
2387
2414
|
};
|
|
2388
2415
|
return requests;
|
|
2389
2416
|
}
|
package/dist/environment.mjs
CHANGED
|
@@ -2172,7 +2172,6 @@ var sessionStorageUtils = () => {
|
|
|
2172
2172
|
// src/configs/axios-client.ts
|
|
2173
2173
|
var axiosClient = {
|
|
2174
2174
|
init(config) {
|
|
2175
|
-
console.log("config", config);
|
|
2176
2175
|
const localStorage2 = config?.localStorageUtils ?? localStorageUtils();
|
|
2177
2176
|
const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils();
|
|
2178
2177
|
const db = config?.db;
|
|
@@ -2191,7 +2190,7 @@ var axiosClient = {
|
|
|
2191
2190
|
};
|
|
2192
2191
|
const instance = axios.create({
|
|
2193
2192
|
adapter: axios.defaults.adapter,
|
|
2194
|
-
baseURL: config
|
|
2193
|
+
baseURL: config?.baseUrl,
|
|
2195
2194
|
timeout: 5e4,
|
|
2196
2195
|
paramsSerializer: (params) => new URLSearchParams(params).toString()
|
|
2197
2196
|
});
|
|
@@ -2210,6 +2209,7 @@ var axiosClient = {
|
|
|
2210
2209
|
if (database) {
|
|
2211
2210
|
config2.headers["DATABASE"] = database;
|
|
2212
2211
|
}
|
|
2212
|
+
if (token) config2.headers["Authorization"] = `Bearer ${token}`;
|
|
2213
2213
|
return config2;
|
|
2214
2214
|
}, Promise.reject);
|
|
2215
2215
|
instance.interceptors.response.use(
|
|
@@ -2264,7 +2264,7 @@ var axiosClient = {
|
|
|
2264
2264
|
);
|
|
2265
2265
|
return new Promise(function(resolve) {
|
|
2266
2266
|
axios.post(
|
|
2267
|
-
`${config
|
|
2267
|
+
`${config?.baseUrl}${config.refreshTokenEndpoint ?? "/authentication/oauth2/token" /* AUTH_TOKEN_PATH */}`,
|
|
2268
2268
|
payload,
|
|
2269
2269
|
{
|
|
2270
2270
|
headers: {
|
|
@@ -2332,20 +2332,47 @@ var axiosClient = {
|
|
|
2332
2332
|
function formatUrl(url, db2) {
|
|
2333
2333
|
return url + (db2 ? "?db=" + db2 : "");
|
|
2334
2334
|
}
|
|
2335
|
+
const getBaseUrl = (baseUrl, serviceName) => {
|
|
2336
|
+
const service = serviceName || config?.default_service;
|
|
2337
|
+
return `${baseUrl.replace(/\/$/, "")}/${service}/api/v2`;
|
|
2338
|
+
};
|
|
2335
2339
|
const responseBody = (response) => response;
|
|
2336
2340
|
const requests = {
|
|
2337
|
-
get: (url, headers) => instance.get(
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2341
|
+
get: (url, headers, serviceName) => instance.get(
|
|
2342
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2343
|
+
headers
|
|
2344
|
+
).then(responseBody),
|
|
2345
|
+
post: (url, body, headers, serviceName) => instance.post(
|
|
2346
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2347
|
+
body,
|
|
2348
|
+
headers
|
|
2349
|
+
).then(responseBody),
|
|
2350
|
+
post_excel: (url, body, headers, serviceName) => instance.post(
|
|
2351
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2352
|
+
body,
|
|
2353
|
+
{
|
|
2354
|
+
responseType: "arraybuffer",
|
|
2355
|
+
headers: {
|
|
2356
|
+
"Content-Type": typeof window !== "undefined" ? "application/json" : "application/javascript",
|
|
2357
|
+
Accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
2358
|
+
...headers
|
|
2359
|
+
}
|
|
2344
2360
|
}
|
|
2345
|
-
|
|
2346
|
-
put: (url, body, headers) => instance.put(
|
|
2347
|
-
|
|
2348
|
-
|
|
2361
|
+
).then(responseBody),
|
|
2362
|
+
put: (url, body, headers, serviceName) => instance.put(
|
|
2363
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2364
|
+
body,
|
|
2365
|
+
headers
|
|
2366
|
+
).then(responseBody),
|
|
2367
|
+
patch: (url, body, headers, serviceName) => instance.patch(
|
|
2368
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2369
|
+
body,
|
|
2370
|
+
headers
|
|
2371
|
+
).then(responseBody),
|
|
2372
|
+
delete: (url, headers, serviceName) => instance.delete(
|
|
2373
|
+
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2374
|
+
headers
|
|
2375
|
+
).then(responseBody)
|
|
2349
2376
|
};
|
|
2350
2377
|
return requests;
|
|
2351
2378
|
}
|
package/dist/hooks.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, V as ViewData, C as ContextApi, c as GetSelectionType, f as GetViewParams } from './view-type-
|
|
2
|
+
import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, V as ViewData, C as ContextApi, c as GetSelectionType, f as GetViewParams } from './view-type-p4JdAOsz.mjs';
|
|
3
3
|
|
|
4
4
|
declare const useForgotPassword: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
|
|
5
5
|
|
|
@@ -139,6 +139,7 @@ declare const useUploadImage: () => _tanstack_react_query.UseMutationResult<any,
|
|
|
139
139
|
declare const useDelete: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
140
140
|
ids: any;
|
|
141
141
|
model: string;
|
|
142
|
+
service?: string;
|
|
142
143
|
}, unknown>;
|
|
143
144
|
|
|
144
145
|
declare const useGetAll: ({ data, queryKey, viewResponse }: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
@@ -152,10 +153,12 @@ declare const useGetDetail: () => _tanstack_react_query.UseMutationResult<any, E
|
|
|
152
153
|
ids: any;
|
|
153
154
|
specification?: any;
|
|
154
155
|
context?: any;
|
|
156
|
+
service?: string;
|
|
155
157
|
}, unknown>;
|
|
156
158
|
|
|
157
|
-
declare const useGetFieldOnChange: ({ model }: {
|
|
159
|
+
declare const useGetFieldOnChange: ({ model, service, }: {
|
|
158
160
|
model: string;
|
|
161
|
+
service?: string;
|
|
159
162
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
160
163
|
|
|
161
164
|
declare const useGetListMyBankAccount: ({ domain, spectification, model, }: {
|
|
@@ -203,6 +206,7 @@ declare const useOnChangeForm: () => _tanstack_react_query.UseMutationResult<any
|
|
|
203
206
|
context: any;
|
|
204
207
|
object: any;
|
|
205
208
|
fieldChange?: any;
|
|
209
|
+
service?: string;
|
|
206
210
|
}, unknown>;
|
|
207
211
|
|
|
208
212
|
declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
@@ -212,6 +216,7 @@ declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error,
|
|
|
212
216
|
specification?: any;
|
|
213
217
|
context: any;
|
|
214
218
|
path?: string;
|
|
219
|
+
service?: string;
|
|
215
220
|
}, unknown>;
|
|
216
221
|
|
|
217
222
|
declare const useGetProfile: (path?: string) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
@@ -234,12 +239,14 @@ declare const useButton: () => _tanstack_react_query.UseMutationResult<any, Erro
|
|
|
234
239
|
ids: Record<string, any>[] | any;
|
|
235
240
|
context: ContextApi;
|
|
236
241
|
method: any;
|
|
242
|
+
service?: string;
|
|
237
243
|
}, unknown>;
|
|
238
244
|
|
|
239
245
|
declare const useDuplicateRecord: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
240
246
|
id: any;
|
|
241
247
|
model: string;
|
|
242
248
|
context: ContextApi;
|
|
249
|
+
service?: string;
|
|
243
250
|
}, unknown>;
|
|
244
251
|
|
|
245
252
|
declare const useGetActionDetail: ({ aid, context, enabled, id, model, queryKey, }: {
|
|
@@ -258,7 +265,7 @@ declare const useGetGroups: ({ model, width_context, }: {
|
|
|
258
265
|
width_context: any;
|
|
259
266
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
260
267
|
|
|
261
|
-
declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
268
|
+
declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any, service?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
262
269
|
|
|
263
270
|
declare const useGetMenu: (context: any, specification: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
264
271
|
|
|
@@ -273,10 +280,11 @@ declare const useGetProGressBar: ({ field, color, model, width_context, }: {
|
|
|
273
280
|
width_context: string;
|
|
274
281
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
275
282
|
|
|
276
|
-
declare const useGetSelection: ({ data, queryKey, enabled, }: {
|
|
283
|
+
declare const useGetSelection: ({ data, queryKey, enabled, service }: {
|
|
277
284
|
data: GetSelectionType;
|
|
278
285
|
queryKey: any[];
|
|
279
286
|
enabled?: boolean;
|
|
287
|
+
service?: string;
|
|
280
288
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
281
289
|
|
|
282
290
|
declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
@@ -284,6 +292,7 @@ declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstac
|
|
|
284
292
|
declare const useLoadAction: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
285
293
|
idAction: any;
|
|
286
294
|
context: ContextApi;
|
|
295
|
+
service?: string;
|
|
287
296
|
}, unknown>;
|
|
288
297
|
|
|
289
298
|
declare const useLoadMessage: () => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
@@ -298,6 +307,7 @@ declare const useRemoveRow: () => _tanstack_react_query.UseMutationResult<any, E
|
|
|
298
307
|
model: string;
|
|
299
308
|
ids: Record<string, any>[] | any;
|
|
300
309
|
context: ContextApi;
|
|
310
|
+
service?: string;
|
|
301
311
|
}, unknown>;
|
|
302
312
|
|
|
303
313
|
declare const useGetResequence: (model: string, resIds: any, context: any, offset: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
@@ -305,6 +315,7 @@ declare const useGetResequence: (model: string, resIds: any, context: any, offse
|
|
|
305
315
|
declare const useRunAction: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
306
316
|
idAction: any;
|
|
307
317
|
context: ContextApi;
|
|
318
|
+
service?: string;
|
|
308
319
|
}, unknown>;
|
|
309
320
|
|
|
310
321
|
declare const useSignInSSO: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, V as ViewData, C as ContextApi, c as GetSelectionType, f as GetViewParams } from './view-type-
|
|
2
|
+
import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, V as ViewData, C as ContextApi, c as GetSelectionType, f as GetViewParams } from './view-type-p4JdAOsz.js';
|
|
3
3
|
|
|
4
4
|
declare const useForgotPassword: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
|
|
5
5
|
|
|
@@ -139,6 +139,7 @@ declare const useUploadImage: () => _tanstack_react_query.UseMutationResult<any,
|
|
|
139
139
|
declare const useDelete: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
140
140
|
ids: any;
|
|
141
141
|
model: string;
|
|
142
|
+
service?: string;
|
|
142
143
|
}, unknown>;
|
|
143
144
|
|
|
144
145
|
declare const useGetAll: ({ data, queryKey, viewResponse }: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
@@ -152,10 +153,12 @@ declare const useGetDetail: () => _tanstack_react_query.UseMutationResult<any, E
|
|
|
152
153
|
ids: any;
|
|
153
154
|
specification?: any;
|
|
154
155
|
context?: any;
|
|
156
|
+
service?: string;
|
|
155
157
|
}, unknown>;
|
|
156
158
|
|
|
157
|
-
declare const useGetFieldOnChange: ({ model }: {
|
|
159
|
+
declare const useGetFieldOnChange: ({ model, service, }: {
|
|
158
160
|
model: string;
|
|
161
|
+
service?: string;
|
|
159
162
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
160
163
|
|
|
161
164
|
declare const useGetListMyBankAccount: ({ domain, spectification, model, }: {
|
|
@@ -203,6 +206,7 @@ declare const useOnChangeForm: () => _tanstack_react_query.UseMutationResult<any
|
|
|
203
206
|
context: any;
|
|
204
207
|
object: any;
|
|
205
208
|
fieldChange?: any;
|
|
209
|
+
service?: string;
|
|
206
210
|
}, unknown>;
|
|
207
211
|
|
|
208
212
|
declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
@@ -212,6 +216,7 @@ declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error,
|
|
|
212
216
|
specification?: any;
|
|
213
217
|
context: any;
|
|
214
218
|
path?: string;
|
|
219
|
+
service?: string;
|
|
215
220
|
}, unknown>;
|
|
216
221
|
|
|
217
222
|
declare const useGetProfile: (path?: string) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
@@ -234,12 +239,14 @@ declare const useButton: () => _tanstack_react_query.UseMutationResult<any, Erro
|
|
|
234
239
|
ids: Record<string, any>[] | any;
|
|
235
240
|
context: ContextApi;
|
|
236
241
|
method: any;
|
|
242
|
+
service?: string;
|
|
237
243
|
}, unknown>;
|
|
238
244
|
|
|
239
245
|
declare const useDuplicateRecord: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
240
246
|
id: any;
|
|
241
247
|
model: string;
|
|
242
248
|
context: ContextApi;
|
|
249
|
+
service?: string;
|
|
243
250
|
}, unknown>;
|
|
244
251
|
|
|
245
252
|
declare const useGetActionDetail: ({ aid, context, enabled, id, model, queryKey, }: {
|
|
@@ -258,7 +265,7 @@ declare const useGetGroups: ({ model, width_context, }: {
|
|
|
258
265
|
width_context: any;
|
|
259
266
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
260
267
|
|
|
261
|
-
declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
268
|
+
declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any, service?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
262
269
|
|
|
263
270
|
declare const useGetMenu: (context: any, specification: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
264
271
|
|
|
@@ -273,10 +280,11 @@ declare const useGetProGressBar: ({ field, color, model, width_context, }: {
|
|
|
273
280
|
width_context: string;
|
|
274
281
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
275
282
|
|
|
276
|
-
declare const useGetSelection: ({ data, queryKey, enabled, }: {
|
|
283
|
+
declare const useGetSelection: ({ data, queryKey, enabled, service }: {
|
|
277
284
|
data: GetSelectionType;
|
|
278
285
|
queryKey: any[];
|
|
279
286
|
enabled?: boolean;
|
|
287
|
+
service?: string;
|
|
280
288
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
281
289
|
|
|
282
290
|
declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
@@ -284,6 +292,7 @@ declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstac
|
|
|
284
292
|
declare const useLoadAction: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
285
293
|
idAction: any;
|
|
286
294
|
context: ContextApi;
|
|
295
|
+
service?: string;
|
|
287
296
|
}, unknown>;
|
|
288
297
|
|
|
289
298
|
declare const useLoadMessage: () => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
@@ -298,6 +307,7 @@ declare const useRemoveRow: () => _tanstack_react_query.UseMutationResult<any, E
|
|
|
298
307
|
model: string;
|
|
299
308
|
ids: Record<string, any>[] | any;
|
|
300
309
|
context: ContextApi;
|
|
310
|
+
service?: string;
|
|
301
311
|
}, unknown>;
|
|
302
312
|
|
|
303
313
|
declare const useGetResequence: (model: string, resIds: any, context: any, offset: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
@@ -305,6 +315,7 @@ declare const useGetResequence: (model: string, resIds: any, context: any, offse
|
|
|
305
315
|
declare const useRunAction: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
306
316
|
idAction: any;
|
|
307
317
|
context: ContextApi;
|
|
318
|
+
service?: string;
|
|
308
319
|
}, unknown>;
|
|
309
320
|
|
|
310
321
|
declare const useSignInSSO: () => _tanstack_react_query.UseMutationResult<any, Error, {
|