@fctc/interface-logic 4.5.11-beta.0 → 4.6.1

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.
Files changed (46) hide show
  1. package/dist/base-model-type-DD8uZnDP.d.ts +8 -0
  2. package/dist/configs.d.ts +12 -0
  3. package/dist/configs.js +2581 -0
  4. package/dist/configs.mjs +2544 -1
  5. package/dist/constants.d.mts +1 -1
  6. package/dist/constants.d.ts +235 -0
  7. package/dist/constants.js +335 -0
  8. package/dist/constants.mjs +293 -1
  9. package/dist/environment.d.mts +1 -1
  10. package/dist/environment.d.ts +56 -0
  11. package/dist/environment.js +2708 -0
  12. package/dist/environment.mjs +2669 -1
  13. package/dist/hooks.d.mts +7 -1
  14. package/dist/hooks.d.ts +828 -0
  15. package/dist/hooks.js +8949 -0
  16. package/dist/hooks.mjs +8792 -1
  17. package/dist/{local-storage-AbiOQTLK.d.mts → local-storage-BPvoMGYJ.d.mts} +1 -1
  18. package/dist/local-storage-BPvoMGYJ.d.ts +10 -0
  19. package/dist/models.d.ts +14 -0
  20. package/dist/models.js +147 -0
  21. package/dist/models.mjs +120 -1
  22. package/dist/provider.d.mts +10 -5
  23. package/dist/provider.d.ts +214 -0
  24. package/dist/provider.js +9535 -0
  25. package/dist/provider.mjs +9489 -1
  26. package/dist/services.d.ts +700 -0
  27. package/dist/services.js +6959 -0
  28. package/dist/services.mjs +6912 -1
  29. package/dist/store.d.mts +382 -0
  30. package/dist/store.d.ts +382 -0
  31. package/dist/store.js +823 -0
  32. package/dist/store.mjs +717 -0
  33. package/dist/types.d.ts +19 -0
  34. package/dist/types.js +18 -0
  35. package/dist/utils.d.mts +61 -38
  36. package/dist/utils.d.ts +112 -0
  37. package/dist/utils.js +3099 -0
  38. package/dist/utils.mjs +3030 -1
  39. package/dist/view-type-CfcWWR0w.d.ts +137 -0
  40. package/package.json +92 -78
  41. package/dist/chunk-5N6LG2T7.mjs +0 -2
  42. package/dist/chunk-CI6PEZ77.mjs +0 -1
  43. package/dist/chunk-KPELPP6F.mjs +0 -1
  44. package/dist/chunk-LCUY2BJU.mjs +0 -1
  45. package/dist/chunk-QGGHYIHF.mjs +0 -1
  46. package/dist/chunk-W5MFEPZ6.mjs +0 -5
@@ -0,0 +1,700 @@
1
+ import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, T as TThreadData, h as GetExternalTab, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, f as GetViewParams, c as GetSelectionType } from './view-type-CfcWWR0w.js';
2
+ import * as _supabase_auth_js from '@supabase/auth-js';
3
+
4
+ declare function useActionService(): {
5
+ loadAction: ({ idAction, context, service, xNode, searchParams, }: {
6
+ idAction: any;
7
+ context: ContextApi;
8
+ service?: string;
9
+ xNode?: string;
10
+ searchParams?: Record<string, string | number | boolean>;
11
+ }) => Promise<any>;
12
+ callButton: ({ model, ids, context, method, service, xNode, }: {
13
+ model: string;
14
+ ids: Record<string, any>[] | any;
15
+ context: ContextApi;
16
+ method: any;
17
+ service?: string;
18
+ xNode?: string;
19
+ }) => Promise<any>;
20
+ removeRows: ({ model, ids, context, service, xNode, }: {
21
+ model: string;
22
+ ids: Record<string, any>[] | any;
23
+ context: ContextApi;
24
+ service?: string;
25
+ xNode?: string;
26
+ }) => Promise<any>;
27
+ duplicateRecord: ({ model, id, context, service, xNode, }: {
28
+ model: string;
29
+ id: any;
30
+ context: ContextApi;
31
+ service?: string;
32
+ xNode?: string;
33
+ }) => Promise<any>;
34
+ getPrintReportName: ({ id }: {
35
+ id: number;
36
+ }) => Promise<any>;
37
+ print: ({ id, report, db }: {
38
+ id: number;
39
+ report: any;
40
+ db: any;
41
+ }) => Promise<any>;
42
+ runAction: ({ idAction, context, service, xNode, searchParams, }: {
43
+ idAction: any;
44
+ context: ContextApi;
45
+ service?: string;
46
+ xNode?: string;
47
+ searchParams?: Record<string, string | number | boolean>;
48
+ }) => Promise<any>;
49
+ generateSerialNumber: ({ kwargs, context, service, xNode, }: {
50
+ kwargs: any;
51
+ context: ContextApi;
52
+ service?: string;
53
+ xNode?: string;
54
+ }) => Promise<any>;
55
+ };
56
+
57
+ declare function useAuthService(): {
58
+ login: (body: LoginCredentialBody) => Promise<any>;
59
+ loginSupabase: (body: {
60
+ email: string;
61
+ password: string;
62
+ }) => Promise<{
63
+ data: null;
64
+ error: {
65
+ message: string;
66
+ };
67
+ } | {
68
+ data: {
69
+ user: _supabase_auth_js.User;
70
+ session: _supabase_auth_js.Session;
71
+ weakPassword?: _supabase_auth_js.WeakPassword;
72
+ } | {
73
+ user: null;
74
+ session: null;
75
+ weakPassword?: null | undefined;
76
+ };
77
+ error: _supabase_auth_js.AuthError | null;
78
+ }>;
79
+ forgotPassword: (email: string) => Promise<any>;
80
+ forgotPasswordSSO: ({ email, with_context, method, }: {
81
+ email: string;
82
+ with_context: any;
83
+ method: string;
84
+ }) => Promise<any>;
85
+ resetPassword: (data: ResetPasswordRequest, token: string | null) => Promise<any>;
86
+ resetPasswordSSO: ({ method, password, with_context, }: {
87
+ method: any;
88
+ password: string;
89
+ with_context: any;
90
+ }) => Promise<any>;
91
+ updatePassword: (data: UpdatePasswordRequest, token: string | null) => Promise<any>;
92
+ isValidToken: (token: string | null) => Promise<any>;
93
+ isValidActionToken: (actionToken: string | null) => Promise<any>;
94
+ loginSocial: ({ db, state, access_token, }: {
95
+ db: string;
96
+ state: object;
97
+ access_token: string;
98
+ }) => Promise<any>;
99
+ getProviders: (db?: string) => Promise<any>;
100
+ getAccessByCode: (code: string) => Promise<any>;
101
+ logout: (service?: string) => Promise<any>;
102
+ getTenantMapping: ({ shortName, service }: {
103
+ shortName: string;
104
+ service: string;
105
+ }) => Promise<any>;
106
+ getToken: ({ phone, name, service, xNode, }: {
107
+ phone: string;
108
+ name: string;
109
+ service: string;
110
+ xNode: string;
111
+ }) => Promise<any>;
112
+ };
113
+
114
+ declare function useCompanyService(): {
115
+ getCurrentCompany: (service?: string, extraHeaders?: any) => Promise<any>;
116
+ getInfoCompany: (id: number, service: any) => Promise<any>;
117
+ };
118
+
119
+ declare function useExcelService(): {
120
+ uploadFileExcel: ({ formData, service, xNode, }: {
121
+ formData: any;
122
+ service?: string;
123
+ xNode?: string;
124
+ }) => Promise<any>;
125
+ uploadIdFile: ({ formData, service, xNode, }: {
126
+ formData: any;
127
+ service?: string;
128
+ xNode?: string;
129
+ }) => Promise<any>;
130
+ parsePreview: ({ id, selectedSheet, isHeader, context, service, xNode, }: {
131
+ id: any;
132
+ selectedSheet: any;
133
+ isHeader: boolean;
134
+ context: any;
135
+ service?: string;
136
+ xNode?: string;
137
+ }) => Promise<any>;
138
+ executeImport: ({ columns, fields, idFile, options, dryrun, context, service, xNode, }: {
139
+ columns: any;
140
+ fields: any;
141
+ idFile: any;
142
+ options: any;
143
+ dryrun: any;
144
+ context: any;
145
+ service?: string;
146
+ xNode?: string;
147
+ }) => Promise<any>;
148
+ getFileExcel: ({ model, service, xNode, context, }: {
149
+ model: string;
150
+ service?: string;
151
+ xNode?: string;
152
+ context: any;
153
+ }) => Promise<any>;
154
+ getFieldExport: ({ ids, model, isShow, parentField, fieldType, parentName, prefix, name, context, importCompat, service, xNode, }: {
155
+ ids: any;
156
+ model: string;
157
+ isShow?: boolean;
158
+ parentField?: any;
159
+ fieldType?: any;
160
+ parentName?: any;
161
+ prefix?: any;
162
+ name?: any;
163
+ context: any;
164
+ importCompat?: any;
165
+ service?: string;
166
+ xNode?: string;
167
+ }) => Promise<any>;
168
+ exportExcel: ({ model, domain, ids, fields, type, importCompat, context, groupby, service, xNode, }: {
169
+ model: string;
170
+ domain: any;
171
+ ids: any;
172
+ fields: any;
173
+ type: any;
174
+ importCompat: any;
175
+ context: any;
176
+ groupby: any;
177
+ service?: string;
178
+ xNode?: string;
179
+ }) => Promise<any>;
180
+ };
181
+
182
+ type TFormView = {
183
+ model: string;
184
+ id?: number | null;
185
+ context?: any;
186
+ };
187
+ declare function useFormService(): {
188
+ getComment: ({ data }: {
189
+ data: any;
190
+ }) => Promise<any>;
191
+ sentComment: ({ data }: any) => Promise<any>;
192
+ deleteComment: ({ data }: {
193
+ data: any;
194
+ }) => Promise<any>;
195
+ getImage: ({ data }: {
196
+ data: any;
197
+ }) => Promise<any>;
198
+ uploadImage: ({ formData, service, xNode, }: {
199
+ formData: any;
200
+ service?: string;
201
+ xNode?: string;
202
+ }) => Promise<any>;
203
+ getFormView: ({ data }: {
204
+ data: TFormView;
205
+ }) => Promise<any>;
206
+ changeStatus: ({ data }: any) => Promise<any>;
207
+ uploadFile: ({ formData, service, xNode, path, }: {
208
+ formData: any;
209
+ service?: string;
210
+ xNode?: string;
211
+ path?: string;
212
+ }) => Promise<any>;
213
+ getThreadMessages: ({ data, xNode, service, }: {
214
+ data: TThreadData;
215
+ xNode?: string;
216
+ service?: string;
217
+ }) => Promise<any>;
218
+ getThreadData: ({ data, xNode, service, }: {
219
+ data: TThreadData;
220
+ xNode?: string;
221
+ service?: string;
222
+ }) => Promise<any>;
223
+ getExternalTab: ({ method, context, service, xNode }: GetExternalTab) => Promise<any>;
224
+ };
225
+
226
+ type TGetGroupsParams = {
227
+ model: string;
228
+ width_context: any;
229
+ };
230
+ type TGetProgressBarParams = {
231
+ field: any;
232
+ color: any;
233
+ model: string;
234
+ width_context: any;
235
+ };
236
+ declare function useKanbanService(): {
237
+ getGroups: ({ model, width_context }: TGetGroupsParams) => Promise<any>;
238
+ getProgressBar: ({ field, color, model, width_context }: TGetProgressBarParams) => Promise<any>;
239
+ };
240
+
241
+ declare function useModelService(): {
242
+ getListMyBankAccount: ({ domain, spectification, model, }: {
243
+ domain: any;
244
+ spectification: any;
245
+ model: string;
246
+ }) => Promise<any>;
247
+ getCurrency: () => Promise<any>;
248
+ getConversionRate: () => Promise<any>;
249
+ getAll: ({ data, service, xNode, searchParams, }: {
250
+ data: any;
251
+ service?: string;
252
+ xNode?: string;
253
+ searchParams?: Record<string, string | number | boolean>;
254
+ }) => Promise<any>;
255
+ getListCalendar: ({ data }: {
256
+ data: any;
257
+ }) => Promise<any>;
258
+ getList: ({ model, ids, specification, domain, offset, order, context, limit, }: GetListParams) => Promise<any>;
259
+ getDetail: ({ ids, model, specification, context, service, xNode, }: GetDetailParams) => Promise<any>;
260
+ save: ({ model, ids, data, specification, context, path, service, xNode, }: SaveParams) => Promise<any>;
261
+ deleteApi: ({ ids, model, service }: DeleteParams) => Promise<any>;
262
+ onChange: ({ ids, model, object, specification, context, fieldChange, service, xNode, }: OnChangeParams) => Promise<any>;
263
+ getListFieldsOnchange: ({ model, service, xNode, }: {
264
+ model: string;
265
+ service?: string;
266
+ xNode?: string;
267
+ }) => Promise<any>;
268
+ parseORMOdoo: (data: Record<string, any>) => {
269
+ [x: string]: any;
270
+ };
271
+ toDataJS: (data: Record<string, any>, viewData?: ViewData, model?: string) => {
272
+ [x: string]: any;
273
+ };
274
+ };
275
+
276
+ declare function useUserService(): {
277
+ getProfile: (service?: string, path?: string, extraHeaders?: any) => Promise<any>;
278
+ getUser: ({ context, id }: {
279
+ context: any;
280
+ id: any;
281
+ }) => Promise<any>;
282
+ switchUserLocale: ({ id, values, service }: any) => Promise<any>;
283
+ };
284
+
285
+ declare function useViewService(): {
286
+ getView: ({ model, views, context, options, aid, service, xNode, searchParams, }: GetViewParams) => Promise<any>;
287
+ getMenu: (context: any, specification: any, domain: any, service?: string) => Promise<any>;
288
+ getActionDetail: (aid: number, context: any) => Promise<any>;
289
+ getResequence: ({ model, ids, context, offset, service, xNode, }: {
290
+ model: string;
291
+ ids: any;
292
+ context: any;
293
+ offset: any;
294
+ service?: string;
295
+ xNode?: string;
296
+ }) => Promise<any>;
297
+ getSelectionItem: ({ data, service, xNode, }: {
298
+ data: GetSelectionType;
299
+ service?: string;
300
+ xNode?: string;
301
+ }) => Promise<any>;
302
+ loadMessages: () => Promise<any>;
303
+ getVersion: () => Promise<any>;
304
+ grantAccess: ({ redirect_uri, state, client_id, scopes, }: {
305
+ redirect_uri: string;
306
+ state: string;
307
+ client_id: string;
308
+ scopes: string[];
309
+ }) => Promise<any>;
310
+ removeTotpSetUp: ({ method, token }: {
311
+ method: string;
312
+ token: string;
313
+ }) => Promise<any>;
314
+ requestSetupTotp: ({ method, token }: {
315
+ method: string;
316
+ token: string;
317
+ }) => Promise<any>;
318
+ settingsWebRead2fa: ({ method, model, kwargs, token, }: {
319
+ method: string;
320
+ token: string;
321
+ kwargs: any;
322
+ model: string;
323
+ }) => Promise<any>;
324
+ signInSSO: ({ redirect_uri, state, client_id, response_type, path, scope, }: {
325
+ redirect_uri: string;
326
+ state: string;
327
+ client_id: string;
328
+ response_type: string;
329
+ path: string;
330
+ scope: string;
331
+ }) => Promise<any>;
332
+ verify2FA: ({ method, with_context, code, device, location, }: {
333
+ method: string;
334
+ with_context: any;
335
+ code: string;
336
+ device: string;
337
+ location: string;
338
+ }) => any;
339
+ get2FAMethods: ({ method, with_context }: {
340
+ method: string;
341
+ with_context: any;
342
+ }) => any;
343
+ verifyTotp: ({ method, action_token, code, }: {
344
+ method: string;
345
+ action_token: string;
346
+ code: string;
347
+ }) => any;
348
+ getNotifications: ({ service, xNode, body, }: {
349
+ service?: string;
350
+ body: any;
351
+ xNode?: string;
352
+ }) => Promise<any>;
353
+ getCountry: ({ service, xNode, ids, kwargs, }: {
354
+ service?: string;
355
+ xNode?: string;
356
+ ids: any;
357
+ kwargs: any;
358
+ }) => Promise<any>;
359
+ getCity: ({ service, xNode, ids, kwargs, }: {
360
+ service?: string;
361
+ xNode?: string;
362
+ ids: any;
363
+ kwargs: any;
364
+ }) => Promise<any>;
365
+ getWard: ({ service, xNode, kwargs, }: {
366
+ service?: string;
367
+ xNode?: string;
368
+ kwargs: any;
369
+ }) => Promise<any>;
370
+ getPartnerTitle: ({ service, xNode, kwargs, withContext, }: {
371
+ service?: string;
372
+ xNode?: string;
373
+ kwargs: any;
374
+ withContext?: any;
375
+ }) => Promise<any>;
376
+ };
377
+
378
+ declare function useDashboardService(): {
379
+ readGroup: ({ service, xNode, body, }: {
380
+ service?: string;
381
+ xNode?: string;
382
+ body?: any;
383
+ }) => Promise<any>;
384
+ getDataChart: ({ service, xNode, body, path, method, }: {
385
+ service?: string;
386
+ xNode?: string;
387
+ body?: any;
388
+ path?: string;
389
+ method?: string;
390
+ }) => Promise<any>;
391
+ };
392
+
393
+ declare const serviceFactories: readonly [(env: any) => {
394
+ addEntity: ({ model, values, xNode, service, isCreateEndpoint, isSupa, supaCallback, }: {
395
+ model: string;
396
+ values: any;
397
+ service?: string;
398
+ xNode?: string;
399
+ isCreateEndpoint?: boolean;
400
+ isSupa?: boolean;
401
+ supaCallback?: (values: any) => Promise<any>;
402
+ }) => any;
403
+ }, (env: any) => {
404
+ getASession: ({ model, args, domain, service, xNode, }: {
405
+ model: string;
406
+ args: [];
407
+ domain: [];
408
+ service?: string;
409
+ xNode?: string;
410
+ }) => Promise<any>;
411
+ }, (env: any) => {
412
+ changeOrderPreparationState: ({ orderId, stageId, preparationDisplayId, xNode, service, }: {
413
+ orderId: number;
414
+ stageId: number;
415
+ preparationDisplayId: number;
416
+ service?: string;
417
+ xNode?: string;
418
+ }) => any;
419
+ }, (env: any) => {
420
+ checkPayment: ({ model, ids, withContext, xNode, service, }: {
421
+ model: string;
422
+ ids: any;
423
+ withContext: any;
424
+ service?: string;
425
+ xNode?: string;
426
+ }) => any;
427
+ }, (env: any) => {
428
+ createEInvoice: ({ service, xNode, kwargs, ids, withContext, }: {
429
+ service?: string;
430
+ xNode?: string;
431
+ kwargs?: any;
432
+ ids?: any;
433
+ withContext?: any;
434
+ }) => Promise<any>;
435
+ }, (env: any) => {
436
+ createEntity: ({ model, args, xNode, service, isSupa, supaCallback, }: {
437
+ model: string;
438
+ args: any;
439
+ service?: string;
440
+ xNode?: string;
441
+ isSupa?: boolean;
442
+ supaCallback?: (args: any) => Promise<any>;
443
+ }) => any;
444
+ }, (env: any) => {
445
+ createPosConfig: ({ model, name, modulePosRestaurant, xNode, service, }: {
446
+ model: string;
447
+ name: string;
448
+ modulePosRestaurant: string;
449
+ service?: string;
450
+ xNode?: string;
451
+ }) => any;
452
+ }, (env: any) => {
453
+ createSession: ({ model, configId, xNode, service, }: {
454
+ model: string;
455
+ configId: number;
456
+ service?: string;
457
+ xNode?: string;
458
+ }) => any;
459
+ }, (env: any) => {
460
+ deleteEntity: ({ model, ids, xNode, service, method, isSupa, supaCallback, }: {
461
+ model: string;
462
+ ids: any;
463
+ service?: string;
464
+ xNode?: string;
465
+ method: string;
466
+ isSupa?: boolean;
467
+ supaCallback?: (ids: any) => Promise<any>;
468
+ }) => any;
469
+ }, (env: any) => {
470
+ generatePaymentQRInfo: ({ orderId, amount, posSessionId, xNode, service, }: {
471
+ orderId: number;
472
+ amount: number;
473
+ posSessionId: number;
474
+ service?: string;
475
+ xNode?: string;
476
+ }) => any;
477
+ }, (env: any) => {
478
+ getCurrentUser: ({ service, xNode, oauthUid, extraHeaders, }: {
479
+ service?: string;
480
+ xNode?: string;
481
+ oauthUid?: string;
482
+ extraHeaders?: any;
483
+ }) => Promise<any>;
484
+ }, (env: any) => {
485
+ getList: ({ model, domain, xNode, service, specification, offset, limit, }: {
486
+ model: string;
487
+ domain: any;
488
+ service?: string;
489
+ xNode?: string;
490
+ specification: any;
491
+ offset?: number;
492
+ limit?: number;
493
+ }) => Promise<any>;
494
+ }, (env: any) => {
495
+ getOrderLine: ({ model, ids, specification, xNode, service, }: {
496
+ model: string;
497
+ ids: any;
498
+ specification: any;
499
+ service?: string;
500
+ xNode?: string;
501
+ }) => any;
502
+ }, (env: any) => {
503
+ getPinCode: ({ serialNumber, xNode, service, }: {
504
+ serialNumber: string;
505
+ service?: string;
506
+ xNode?: string;
507
+ }) => any;
508
+ }, (env: any) => {
509
+ getPOS: ({ model, args, domain, xNode, service, }: {
510
+ model: string;
511
+ args: any;
512
+ domain: any;
513
+ service?: string;
514
+ xNode?: string;
515
+ }) => any;
516
+ }, (env: any) => {
517
+ getPreparationDisplayData: ({ ids, xNode, service, withContext, }: {
518
+ ids: any;
519
+ service?: string;
520
+ xNode?: string;
521
+ withContext?: any;
522
+ }) => any;
523
+ }, (env: any) => {
524
+ getProductImage: ({ model, fields, limit, offset, domain, xNode, service, searchParams, }: {
525
+ model: string;
526
+ fields: any;
527
+ limit: number;
528
+ offset: number;
529
+ domain: any;
530
+ service?: string;
531
+ xNode?: string;
532
+ searchParams?: Record<string, string | number | boolean>;
533
+ }) => any;
534
+ }, (env: any) => {
535
+ handleCloseSession: ({ model, ids, xNode, service, method, }: {
536
+ model: string;
537
+ ids: any;
538
+ service?: string;
539
+ xNode?: string;
540
+ method: string;
541
+ }) => any;
542
+ }, (env: any) => {
543
+ handleClosingDetailSession: ({ model, ids, method, xNode, service, kwargs, }: {
544
+ model: string;
545
+ ids: any;
546
+ method: string;
547
+ service?: string;
548
+ xNode?: string;
549
+ kwargs: any;
550
+ }) => any;
551
+ }, (env: any) => {
552
+ handleClosingSession: ({ model, method, ids, kwargs, xNode, service, }: {
553
+ model: string;
554
+ method: string;
555
+ ids: any;
556
+ kwargs: any;
557
+ service?: string;
558
+ xNode?: string;
559
+ }) => any;
560
+ }, (env: any) => {
561
+ loadDataPosSession: ({ model, ids, xNode, service, withContext, modelsToLoad, searchParams, }: {
562
+ model: string;
563
+ ids: any;
564
+ service?: string;
565
+ xNode?: string;
566
+ withContext?: any;
567
+ modelsToLoad?: any;
568
+ searchParams?: Record<string, string | number | boolean>;
569
+ }) => Promise<any>;
570
+ loadDataPosSessionSupabase: () => Promise<{
571
+ [x: string]: {
572
+ data: any[];
573
+ fields: Record<string, any>;
574
+ relations: Record<string, any>;
575
+ };
576
+ }>;
577
+ }, (env: any) => {
578
+ manageOnChange: ({ model, ids, args, xNode, service, }: {
579
+ model: string;
580
+ ids: any;
581
+ args: any;
582
+ service?: string;
583
+ xNode?: string;
584
+ }) => any;
585
+ }, (env: any) => {
586
+ manageSession: ({ model, method, ids, args, kwargs, xNode, service, }: {
587
+ model: string;
588
+ method: string;
589
+ ids: any;
590
+ args: any;
591
+ kwargs: any;
592
+ service?: string;
593
+ xNode?: string;
594
+ }) => any;
595
+ }, (env: any) => {
596
+ processOrder: ({ orderId, xNode, service, }: {
597
+ orderId: number;
598
+ service?: string;
599
+ xNode?: string;
600
+ }) => any;
601
+ }, (env: any) => {
602
+ savePinCode: ({ serialNumber, pinCode, xNode, service, }: {
603
+ serialNumber: string;
604
+ pinCode: string;
605
+ service?: string;
606
+ xNode?: string;
607
+ }) => any;
608
+ }, (env: any) => {
609
+ searchJournal: ({ model, method, args, kwargs, xNode, service, }: {
610
+ model: string;
611
+ method: string;
612
+ args: any;
613
+ kwargs: any;
614
+ service?: string;
615
+ xNode?: string;
616
+ }) => any;
617
+ }, (env: any) => {
618
+ updateClosedSession: ({ model, domain, values, service, xNode, }: {
619
+ model: string;
620
+ domain: [];
621
+ values: {};
622
+ service?: string;
623
+ xNode?: string;
624
+ }) => any;
625
+ }, (env: any) => {
626
+ updateEntity: ({ model, domain, values, isCreateEndpoint, xNode, service, isSupa, supaCallback, }: {
627
+ model: string;
628
+ domain: any;
629
+ values: any;
630
+ isCreateEndpoint?: boolean;
631
+ service?: string;
632
+ xNode?: string;
633
+ isSupa?: boolean;
634
+ supaCallback?: (values: any) => Promise<any>;
635
+ }) => any;
636
+ }, (env: any) => {
637
+ updateOrderStatus: ({ orderId, state, xNode, service, }: {
638
+ orderId: number;
639
+ state: string;
640
+ service?: string;
641
+ xNode?: string;
642
+ }) => any;
643
+ }, (env: any) => {
644
+ completeCurrentStage: ({ ids, withContext, xNode, service, requestStageId, }: {
645
+ ids: number[];
646
+ requestStageId: number;
647
+ withContext: any;
648
+ service?: string;
649
+ xNode?: string;
650
+ }) => any;
651
+ }, () => {
652
+ addFloorSupabase: (values: {
653
+ name: string;
654
+ sequence?: number;
655
+ pos_config_ids?: number[];
656
+ table_ids?: number[];
657
+ }) => Promise<[number, string][] | null>;
658
+ }, () => {
659
+ addTableSupabase: (values: {
660
+ floor_id?: number;
661
+ table_number?: number;
662
+ seats?: number;
663
+ active?: boolean;
664
+ shape?: "square" | "round";
665
+ parent_id?: number;
666
+ }) => Promise<[number, number][] | null>;
667
+ }, () => {
668
+ updateFloorSupabase: (values: {
669
+ id: number;
670
+ name?: string;
671
+ sequence?: number;
672
+ pos_config_ids?: number[];
673
+ table_ids?: number[];
674
+ }) => Promise<boolean>;
675
+ }, () => {
676
+ updateTableSupabase: (values: {
677
+ id: number;
678
+ floor_id?: number;
679
+ table_number?: number;
680
+ seats?: number;
681
+ active?: boolean;
682
+ shape?: "square" | "round";
683
+ parent_id?: number;
684
+ }) => Promise<boolean>;
685
+ }, () => {
686
+ deleteFloorSupabase: (values: {
687
+ id: number;
688
+ }) => Promise<boolean>;
689
+ }, () => {
690
+ deleteTableSupabase: (values: {
691
+ id: number;
692
+ }) => Promise<boolean>;
693
+ }];
694
+ type ServiceFactories = (typeof serviceFactories)[number];
695
+ type ServiceReturn<T extends ServiceFactories> = ReturnType<T>;
696
+ type MergedService = UnionToIntersection<ServiceReturn<ServiceFactories>>;
697
+ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
698
+ declare const usePosService: () => MergedService;
699
+
700
+ export { useActionService, useAuthService, useCompanyService, useDashboardService, useExcelService, useFormService, useKanbanService, useModelService, usePosService, useUserService, useViewService };