@fctc/interface-logic 2.0.5 → 2.0.7

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.
@@ -1,11 +1,11 @@
1
1
  declare const axiosClient: {
2
2
  init(config: any): {
3
- get: (url: string, headers: any) => Promise<any>;
4
- post: (url: string, body: any, headers: any) => Promise<any>;
5
- post_excel: (url: string, body: any, headers: any) => Promise<any>;
6
- put: (url: string, body: any, headers: any) => Promise<any>;
7
- patch: (url: string, body: any) => Promise<any>;
8
- delete: (url: string, body: any) => Promise<any>;
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: any) => Promise<any>;
4
- post: (url: string, body: any, headers: any) => Promise<any>;
5
- post_excel: (url: string, body: any, headers: any) => Promise<any>;
6
- put: (url: string, body: any, headers: any) => Promise<any>;
7
- patch: (url: string, body: any) => Promise<any>;
8
- delete: (url: string, body: any) => Promise<any>;
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.baseUrl,
2229
+ baseURL: config?.baseUrl,
2231
2230
  timeout: 5e4,
2232
2231
  paramsSerializer: (params) => new URLSearchParams(params).toString()
2233
2232
  });
@@ -2239,7 +2238,6 @@ var axiosClient = {
2239
2238
  if (database) {
2240
2239
  config2.headers["DATABASE"] = database;
2241
2240
  }
2242
- console.log("database", database);
2243
2241
  const getToken = useRefreshToken ? localStorage2.getRefreshToken : localStorage2.getAccessToken;
2244
2242
  const token = await getToken?.();
2245
2243
  if (token) config2.headers["Authorization"] = `Bearer ${token}`;
@@ -2297,7 +2295,7 @@ var axiosClient = {
2297
2295
  );
2298
2296
  return new Promise(function(resolve) {
2299
2297
  import_axios.default.post(
2300
- `${config.baseUrl}${config.refreshTokenEndpoint ?? "/authentication/oauth2/token" /* AUTH_TOKEN_PATH */}`,
2298
+ `${config?.baseUrl}${config.refreshTokenEndpoint ?? "/authentication/oauth2/token" /* AUTH_TOKEN_PATH */}`,
2301
2299
  payload,
2302
2300
  {
2303
2301
  headers: {
@@ -2365,20 +2363,47 @@ var axiosClient = {
2365
2363
  function formatUrl(url, db2) {
2366
2364
  return url + (db2 ? "?db=" + db2 : "");
2367
2365
  }
2366
+ const getBaseUrl = (baseUrl, serviceName) => {
2367
+ const service = serviceName || config?.default_service;
2368
+ return `${baseUrl.replace(/\/$/, "")}/${service}/api/v2`;
2369
+ };
2368
2370
  const responseBody = (response) => response;
2369
2371
  const requests = {
2370
- get: (url, headers) => instance.get(formatUrl(url, db), headers).then(responseBody),
2371
- post: (url, body, headers) => instance.post(formatUrl(url, db), body, headers).then(responseBody),
2372
- post_excel: (url, body, headers) => instance.post(formatUrl(url, db), body, {
2373
- responseType: "arraybuffer",
2374
- headers: {
2375
- "Content-Type": typeof window !== "undefined" ? "application/json" : "application/javascript",
2376
- Accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
2372
+ get: (url, headers, serviceName) => instance.get(
2373
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2374
+ headers
2375
+ ).then(responseBody),
2376
+ post: (url, body, headers, serviceName) => instance.post(
2377
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2378
+ body,
2379
+ headers
2380
+ ).then(responseBody),
2381
+ post_excel: (url, body, headers, serviceName) => instance.post(
2382
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2383
+ body,
2384
+ {
2385
+ responseType: "arraybuffer",
2386
+ headers: {
2387
+ "Content-Type": typeof window !== "undefined" ? "application/json" : "application/javascript",
2388
+ Accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
2389
+ ...headers
2390
+ }
2377
2391
  }
2378
- }).then(responseBody),
2379
- put: (url, body, headers) => instance.put(formatUrl(url, db), body, headers).then(responseBody),
2380
- patch: (url, body) => instance.patch(formatUrl(url, db), body).then(responseBody),
2381
- delete: (url, body) => instance.delete(formatUrl(url, db), body).then(responseBody)
2392
+ ).then(responseBody),
2393
+ put: (url, body, headers, serviceName) => instance.put(
2394
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2395
+ body,
2396
+ headers
2397
+ ).then(responseBody),
2398
+ patch: (url, body, headers, serviceName) => instance.patch(
2399
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2400
+ body,
2401
+ headers
2402
+ ).then(responseBody),
2403
+ delete: (url, headers, serviceName) => instance.delete(
2404
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2405
+ headers
2406
+ ).then(responseBody)
2382
2407
  };
2383
2408
  return requests;
2384
2409
  }
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.baseUrl,
2193
+ baseURL: config?.baseUrl,
2195
2194
  timeout: 5e4,
2196
2195
  paramsSerializer: (params) => new URLSearchParams(params).toString()
2197
2196
  });
@@ -2203,7 +2202,6 @@ var axiosClient = {
2203
2202
  if (database) {
2204
2203
  config2.headers["DATABASE"] = database;
2205
2204
  }
2206
- console.log("database", database);
2207
2205
  const getToken = useRefreshToken ? localStorage2.getRefreshToken : localStorage2.getAccessToken;
2208
2206
  const token = await getToken?.();
2209
2207
  if (token) config2.headers["Authorization"] = `Bearer ${token}`;
@@ -2261,7 +2259,7 @@ var axiosClient = {
2261
2259
  );
2262
2260
  return new Promise(function(resolve) {
2263
2261
  axios.post(
2264
- `${config.baseUrl}${config.refreshTokenEndpoint ?? "/authentication/oauth2/token" /* AUTH_TOKEN_PATH */}`,
2262
+ `${config?.baseUrl}${config.refreshTokenEndpoint ?? "/authentication/oauth2/token" /* AUTH_TOKEN_PATH */}`,
2265
2263
  payload,
2266
2264
  {
2267
2265
  headers: {
@@ -2329,20 +2327,47 @@ var axiosClient = {
2329
2327
  function formatUrl(url, db2) {
2330
2328
  return url + (db2 ? "?db=" + db2 : "");
2331
2329
  }
2330
+ const getBaseUrl = (baseUrl, serviceName) => {
2331
+ const service = serviceName || config?.default_service;
2332
+ return `${baseUrl.replace(/\/$/, "")}/${service}/api/v2`;
2333
+ };
2332
2334
  const responseBody = (response) => response;
2333
2335
  const requests = {
2334
- get: (url, headers) => instance.get(formatUrl(url, db), headers).then(responseBody),
2335
- post: (url, body, headers) => instance.post(formatUrl(url, db), body, headers).then(responseBody),
2336
- post_excel: (url, body, headers) => instance.post(formatUrl(url, db), body, {
2337
- responseType: "arraybuffer",
2338
- headers: {
2339
- "Content-Type": typeof window !== "undefined" ? "application/json" : "application/javascript",
2340
- Accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
2336
+ get: (url, headers, serviceName) => instance.get(
2337
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2338
+ headers
2339
+ ).then(responseBody),
2340
+ post: (url, body, headers, serviceName) => instance.post(
2341
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2342
+ body,
2343
+ headers
2344
+ ).then(responseBody),
2345
+ post_excel: (url, body, headers, serviceName) => instance.post(
2346
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2347
+ body,
2348
+ {
2349
+ responseType: "arraybuffer",
2350
+ headers: {
2351
+ "Content-Type": typeof window !== "undefined" ? "application/json" : "application/javascript",
2352
+ Accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
2353
+ ...headers
2354
+ }
2341
2355
  }
2342
- }).then(responseBody),
2343
- put: (url, body, headers) => instance.put(formatUrl(url, db), body, headers).then(responseBody),
2344
- patch: (url, body) => instance.patch(formatUrl(url, db), body).then(responseBody),
2345
- delete: (url, body) => instance.delete(formatUrl(url, db), body).then(responseBody)
2356
+ ).then(responseBody),
2357
+ put: (url, body, headers, serviceName) => instance.put(
2358
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2359
+ body,
2360
+ headers
2361
+ ).then(responseBody),
2362
+ patch: (url, body, headers, serviceName) => instance.patch(
2363
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2364
+ body,
2365
+ headers
2366
+ ).then(responseBody),
2367
+ delete: (url, headers, serviceName) => instance.delete(
2368
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2369
+ headers
2370
+ ).then(responseBody)
2346
2371
  };
2347
2372
  return requests;
2348
2373
  }
@@ -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.baseUrl,
2231
+ baseURL: config?.baseUrl,
2233
2232
  timeout: 5e4,
2234
2233
  paramsSerializer: (params) => new URLSearchParams(params).toString()
2235
2234
  });
@@ -2241,7 +2240,6 @@ var axiosClient = {
2241
2240
  if (database) {
2242
2241
  config2.headers["DATABASE"] = database;
2243
2242
  }
2244
- console.log("database", database);
2245
2243
  const getToken = useRefreshToken ? localStorage2.getRefreshToken : localStorage2.getAccessToken;
2246
2244
  const token = await getToken?.();
2247
2245
  if (token) config2.headers["Authorization"] = `Bearer ${token}`;
@@ -2299,7 +2297,7 @@ var axiosClient = {
2299
2297
  );
2300
2298
  return new Promise(function(resolve) {
2301
2299
  import_axios.default.post(
2302
- `${config.baseUrl}${config.refreshTokenEndpoint ?? "/authentication/oauth2/token" /* AUTH_TOKEN_PATH */}`,
2300
+ `${config?.baseUrl}${config.refreshTokenEndpoint ?? "/authentication/oauth2/token" /* AUTH_TOKEN_PATH */}`,
2303
2301
  payload,
2304
2302
  {
2305
2303
  headers: {
@@ -2367,20 +2365,47 @@ var axiosClient = {
2367
2365
  function formatUrl(url, db2) {
2368
2366
  return url + (db2 ? "?db=" + db2 : "");
2369
2367
  }
2368
+ const getBaseUrl = (baseUrl, serviceName) => {
2369
+ const service = serviceName || config?.default_service;
2370
+ return `${baseUrl.replace(/\/$/, "")}/${service}/api/v2`;
2371
+ };
2370
2372
  const responseBody = (response) => response;
2371
2373
  const requests = {
2372
- get: (url, headers) => instance.get(formatUrl(url, db), headers).then(responseBody),
2373
- post: (url, body, headers) => instance.post(formatUrl(url, db), body, headers).then(responseBody),
2374
- post_excel: (url, body, headers) => instance.post(formatUrl(url, db), body, {
2375
- responseType: "arraybuffer",
2376
- headers: {
2377
- "Content-Type": typeof window !== "undefined" ? "application/json" : "application/javascript",
2378
- Accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
2374
+ get: (url, headers, serviceName) => instance.get(
2375
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2376
+ headers
2377
+ ).then(responseBody),
2378
+ post: (url, body, headers, serviceName) => instance.post(
2379
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2380
+ body,
2381
+ headers
2382
+ ).then(responseBody),
2383
+ post_excel: (url, body, headers, serviceName) => instance.post(
2384
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2385
+ body,
2386
+ {
2387
+ responseType: "arraybuffer",
2388
+ headers: {
2389
+ "Content-Type": typeof window !== "undefined" ? "application/json" : "application/javascript",
2390
+ Accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
2391
+ ...headers
2392
+ }
2379
2393
  }
2380
- }).then(responseBody),
2381
- put: (url, body, headers) => instance.put(formatUrl(url, db), body, headers).then(responseBody),
2382
- patch: (url, body) => instance.patch(formatUrl(url, db), body).then(responseBody),
2383
- delete: (url, body) => instance.delete(formatUrl(url, db), body).then(responseBody)
2394
+ ).then(responseBody),
2395
+ put: (url, body, headers, serviceName) => instance.put(
2396
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2397
+ body,
2398
+ headers
2399
+ ).then(responseBody),
2400
+ patch: (url, body, headers, serviceName) => instance.patch(
2401
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2402
+ body,
2403
+ headers
2404
+ ).then(responseBody),
2405
+ delete: (url, headers, serviceName) => instance.delete(
2406
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2407
+ headers
2408
+ ).then(responseBody)
2384
2409
  };
2385
2410
  return requests;
2386
2411
  }
@@ -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.baseUrl,
2193
+ baseURL: config?.baseUrl,
2195
2194
  timeout: 5e4,
2196
2195
  paramsSerializer: (params) => new URLSearchParams(params).toString()
2197
2196
  });
@@ -2203,7 +2202,6 @@ var axiosClient = {
2203
2202
  if (database) {
2204
2203
  config2.headers["DATABASE"] = database;
2205
2204
  }
2206
- console.log("database", database);
2207
2205
  const getToken = useRefreshToken ? localStorage2.getRefreshToken : localStorage2.getAccessToken;
2208
2206
  const token = await getToken?.();
2209
2207
  if (token) config2.headers["Authorization"] = `Bearer ${token}`;
@@ -2261,7 +2259,7 @@ var axiosClient = {
2261
2259
  );
2262
2260
  return new Promise(function(resolve) {
2263
2261
  axios.post(
2264
- `${config.baseUrl}${config.refreshTokenEndpoint ?? "/authentication/oauth2/token" /* AUTH_TOKEN_PATH */}`,
2262
+ `${config?.baseUrl}${config.refreshTokenEndpoint ?? "/authentication/oauth2/token" /* AUTH_TOKEN_PATH */}`,
2265
2263
  payload,
2266
2264
  {
2267
2265
  headers: {
@@ -2329,20 +2327,47 @@ var axiosClient = {
2329
2327
  function formatUrl(url, db2) {
2330
2328
  return url + (db2 ? "?db=" + db2 : "");
2331
2329
  }
2330
+ const getBaseUrl = (baseUrl, serviceName) => {
2331
+ const service = serviceName || config?.default_service;
2332
+ return `${baseUrl.replace(/\/$/, "")}/${service}/api/v2`;
2333
+ };
2332
2334
  const responseBody = (response) => response;
2333
2335
  const requests = {
2334
- get: (url, headers) => instance.get(formatUrl(url, db), headers).then(responseBody),
2335
- post: (url, body, headers) => instance.post(formatUrl(url, db), body, headers).then(responseBody),
2336
- post_excel: (url, body, headers) => instance.post(formatUrl(url, db), body, {
2337
- responseType: "arraybuffer",
2338
- headers: {
2339
- "Content-Type": typeof window !== "undefined" ? "application/json" : "application/javascript",
2340
- Accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
2336
+ get: (url, headers, serviceName) => instance.get(
2337
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2338
+ headers
2339
+ ).then(responseBody),
2340
+ post: (url, body, headers, serviceName) => instance.post(
2341
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2342
+ body,
2343
+ headers
2344
+ ).then(responseBody),
2345
+ post_excel: (url, body, headers, serviceName) => instance.post(
2346
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2347
+ body,
2348
+ {
2349
+ responseType: "arraybuffer",
2350
+ headers: {
2351
+ "Content-Type": typeof window !== "undefined" ? "application/json" : "application/javascript",
2352
+ Accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
2353
+ ...headers
2354
+ }
2341
2355
  }
2342
- }).then(responseBody),
2343
- put: (url, body, headers) => instance.put(formatUrl(url, db), body, headers).then(responseBody),
2344
- patch: (url, body) => instance.patch(formatUrl(url, db), body).then(responseBody),
2345
- delete: (url, body) => instance.delete(formatUrl(url, db), body).then(responseBody)
2356
+ ).then(responseBody),
2357
+ put: (url, body, headers, serviceName) => instance.put(
2358
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2359
+ body,
2360
+ headers
2361
+ ).then(responseBody),
2362
+ patch: (url, body, headers, serviceName) => instance.patch(
2363
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2364
+ body,
2365
+ headers
2366
+ ).then(responseBody),
2367
+ delete: (url, headers, serviceName) => instance.delete(
2368
+ formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2369
+ headers
2370
+ ).then(responseBody)
2346
2371
  };
2347
2372
  return requests;
2348
2373
  }
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-BGJfDe73.mjs';
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
 
@@ -140,6 +140,7 @@ declare const useUploadImage: () => _tanstack_react_query.UseMutationResult<any,
140
140
  declare const useDelete: () => _tanstack_react_query.UseMutationResult<any, Error, {
141
141
  ids: any;
142
142
  model: string;
143
+ service?: string;
143
144
  }, unknown>;
144
145
 
145
146
  declare const useGetAll: ({ data, queryKey, viewResponse }: any) => _tanstack_react_query.UseQueryResult<any, Error>;
@@ -153,6 +154,7 @@ declare const useGetDetail: () => _tanstack_react_query.UseMutationResult<any, E
153
154
  ids: any;
154
155
  specification?: any;
155
156
  context?: any;
157
+ service?: string;
156
158
  }, unknown>;
157
159
 
158
160
  declare const useGetFieldOnChange: ({ model }: {
@@ -204,6 +206,7 @@ declare const useOnChangeForm: () => _tanstack_react_query.UseMutationResult<any
204
206
  context: any;
205
207
  object: any;
206
208
  fieldChange?: any;
209
+ service?: string;
207
210
  }, unknown>;
208
211
 
209
212
  declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error, {
@@ -213,6 +216,7 @@ declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error,
213
216
  specification?: any;
214
217
  context: any;
215
218
  path?: string;
219
+ service?: string;
216
220
  }, unknown>;
217
221
 
218
222
  declare const useGetProfile: (path?: string) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
@@ -235,12 +239,14 @@ declare const useButton: () => _tanstack_react_query.UseMutationResult<any, Erro
235
239
  ids: Record<string, any>[] | any;
236
240
  context: ContextApi;
237
241
  method: any;
242
+ service?: string;
238
243
  }, unknown>;
239
244
 
240
245
  declare const useDuplicateRecord: () => _tanstack_react_query.UseMutationResult<any, Error, {
241
246
  id: any;
242
247
  model: string;
243
248
  context: ContextApi;
249
+ service?: string;
244
250
  }, unknown>;
245
251
 
246
252
  declare const useGetActionDetail: ({ aid, context, enabled, id, model, queryKey, }: {
@@ -259,7 +265,7 @@ declare const useGetGroups: ({ model, width_context, }: {
259
265
  width_context: any;
260
266
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
261
267
 
262
- 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>;
263
269
 
264
270
  declare const useGetMenu: (context: any, specification: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
265
271
 
@@ -274,10 +280,11 @@ declare const useGetProGressBar: ({ field, color, model, width_context, }: {
274
280
  width_context: string;
275
281
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
276
282
 
277
- declare const useGetSelection: ({ data, queryKey, enabled, }: {
283
+ declare const useGetSelection: ({ data, queryKey, enabled, service }: {
278
284
  data: GetSelectionType;
279
285
  queryKey: any[];
280
286
  enabled?: boolean;
287
+ service?: string;
281
288
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
282
289
 
283
290
  declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
@@ -285,6 +292,7 @@ declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstac
285
292
  declare const useLoadAction: () => _tanstack_react_query.UseMutationResult<any, Error, {
286
293
  idAction: any;
287
294
  context: ContextApi;
295
+ service?: string;
288
296
  }, unknown>;
289
297
 
290
298
  declare const useLoadMessage: () => _tanstack_react_query.UseQueryResult<any, Error>;
@@ -299,6 +307,7 @@ declare const useRemoveRow: () => _tanstack_react_query.UseMutationResult<any, E
299
307
  model: string;
300
308
  ids: Record<string, any>[] | any;
301
309
  context: ContextApi;
310
+ service?: string;
302
311
  }, unknown>;
303
312
 
304
313
  declare const useGetResequence: (model: string, resIds: any, context: any, offset: any) => _tanstack_react_query.UseQueryResult<any, Error>;
@@ -306,6 +315,7 @@ declare const useGetResequence: (model: string, resIds: any, context: any, offse
306
315
  declare const useRunAction: () => _tanstack_react_query.UseMutationResult<any, Error, {
307
316
  idAction: any;
308
317
  context: ContextApi;
318
+ service?: string;
309
319
  }, unknown>;
310
320
 
311
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-BGJfDe73.js';
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
 
@@ -140,6 +140,7 @@ declare const useUploadImage: () => _tanstack_react_query.UseMutationResult<any,
140
140
  declare const useDelete: () => _tanstack_react_query.UseMutationResult<any, Error, {
141
141
  ids: any;
142
142
  model: string;
143
+ service?: string;
143
144
  }, unknown>;
144
145
 
145
146
  declare const useGetAll: ({ data, queryKey, viewResponse }: any) => _tanstack_react_query.UseQueryResult<any, Error>;
@@ -153,6 +154,7 @@ declare const useGetDetail: () => _tanstack_react_query.UseMutationResult<any, E
153
154
  ids: any;
154
155
  specification?: any;
155
156
  context?: any;
157
+ service?: string;
156
158
  }, unknown>;
157
159
 
158
160
  declare const useGetFieldOnChange: ({ model }: {
@@ -204,6 +206,7 @@ declare const useOnChangeForm: () => _tanstack_react_query.UseMutationResult<any
204
206
  context: any;
205
207
  object: any;
206
208
  fieldChange?: any;
209
+ service?: string;
207
210
  }, unknown>;
208
211
 
209
212
  declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error, {
@@ -213,6 +216,7 @@ declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error,
213
216
  specification?: any;
214
217
  context: any;
215
218
  path?: string;
219
+ service?: string;
216
220
  }, unknown>;
217
221
 
218
222
  declare const useGetProfile: (path?: string) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
@@ -235,12 +239,14 @@ declare const useButton: () => _tanstack_react_query.UseMutationResult<any, Erro
235
239
  ids: Record<string, any>[] | any;
236
240
  context: ContextApi;
237
241
  method: any;
242
+ service?: string;
238
243
  }, unknown>;
239
244
 
240
245
  declare const useDuplicateRecord: () => _tanstack_react_query.UseMutationResult<any, Error, {
241
246
  id: any;
242
247
  model: string;
243
248
  context: ContextApi;
249
+ service?: string;
244
250
  }, unknown>;
245
251
 
246
252
  declare const useGetActionDetail: ({ aid, context, enabled, id, model, queryKey, }: {
@@ -259,7 +265,7 @@ declare const useGetGroups: ({ model, width_context, }: {
259
265
  width_context: any;
260
266
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
261
267
 
262
- 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>;
263
269
 
264
270
  declare const useGetMenu: (context: any, specification: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
265
271
 
@@ -274,10 +280,11 @@ declare const useGetProGressBar: ({ field, color, model, width_context, }: {
274
280
  width_context: string;
275
281
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
276
282
 
277
- declare const useGetSelection: ({ data, queryKey, enabled, }: {
283
+ declare const useGetSelection: ({ data, queryKey, enabled, service }: {
278
284
  data: GetSelectionType;
279
285
  queryKey: any[];
280
286
  enabled?: boolean;
287
+ service?: string;
281
288
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
282
289
 
283
290
  declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
@@ -285,6 +292,7 @@ declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstac
285
292
  declare const useLoadAction: () => _tanstack_react_query.UseMutationResult<any, Error, {
286
293
  idAction: any;
287
294
  context: ContextApi;
295
+ service?: string;
288
296
  }, unknown>;
289
297
 
290
298
  declare const useLoadMessage: () => _tanstack_react_query.UseQueryResult<any, Error>;
@@ -299,6 +307,7 @@ declare const useRemoveRow: () => _tanstack_react_query.UseMutationResult<any, E
299
307
  model: string;
300
308
  ids: Record<string, any>[] | any;
301
309
  context: ContextApi;
310
+ service?: string;
302
311
  }, unknown>;
303
312
 
304
313
  declare const useGetResequence: (model: string, resIds: any, context: any, offset: any) => _tanstack_react_query.UseQueryResult<any, Error>;
@@ -306,6 +315,7 @@ declare const useGetResequence: (model: string, resIds: any, context: any, offse
306
315
  declare const useRunAction: () => _tanstack_react_query.UseMutationResult<any, Error, {
307
316
  idAction: any;
308
317
  context: ContextApi;
318
+ service?: string;
309
319
  }, unknown>;
310
320
 
311
321
  declare const useSignInSSO: () => _tanstack_react_query.UseMutationResult<any, Error, {