@fctc/interface-logic 4.6.7 → 4.6.9

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 +824 -0
  15. package/dist/hooks.js +8939 -0
  16. package/dist/hooks.mjs +8782 -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 +8 -3
  23. package/dist/provider.d.ts +214 -0
  24. package/dist/provider.js +9525 -0
  25. package/dist/provider.mjs +9479 -1
  26. package/dist/services.d.ts +696 -0
  27. package/dist/services.js +6949 -0
  28. package/dist/services.mjs +6902 -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 -33
  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 +28 -14
  41. package/dist/chunk-CI6PEZ77.mjs +0 -1
  42. package/dist/chunk-MDTMAAKX.mjs +0 -1
  43. package/dist/chunk-MULIHGQM.mjs +0 -1
  44. package/dist/chunk-MVCP5COC.mjs +0 -2
  45. package/dist/chunk-V2FKQ7ES.mjs +0 -1
  46. package/dist/chunk-YWHIWJB6.mjs +0 -5
@@ -0,0 +1,696 @@
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, supaCallback, }: {
395
+ model: string;
396
+ values: any;
397
+ service?: string;
398
+ xNode?: string;
399
+ isCreateEndpoint?: boolean;
400
+ supaCallback?: (values: any) => Promise<any>;
401
+ }) => any;
402
+ }, (env: any) => {
403
+ getASession: ({ model, args, domain, service, xNode, }: {
404
+ model: string;
405
+ args: [];
406
+ domain: [];
407
+ service?: string;
408
+ xNode?: string;
409
+ }) => Promise<any>;
410
+ }, (env: any) => {
411
+ changeOrderPreparationState: ({ orderId, stageId, preparationDisplayId, xNode, service, }: {
412
+ orderId: number;
413
+ stageId: number;
414
+ preparationDisplayId: number;
415
+ service?: string;
416
+ xNode?: string;
417
+ }) => any;
418
+ }, (env: any) => {
419
+ checkPayment: ({ model, ids, withContext, xNode, service, }: {
420
+ model: string;
421
+ ids: any;
422
+ withContext: any;
423
+ service?: string;
424
+ xNode?: string;
425
+ }) => any;
426
+ }, (env: any) => {
427
+ createEInvoice: ({ service, xNode, kwargs, ids, withContext, }: {
428
+ service?: string;
429
+ xNode?: string;
430
+ kwargs?: any;
431
+ ids?: any;
432
+ withContext?: any;
433
+ }) => Promise<any>;
434
+ }, (env: any) => {
435
+ createEntity: ({ model, args, xNode, service, supaCallback }: {
436
+ model: string;
437
+ args: any;
438
+ service?: string;
439
+ xNode?: string;
440
+ supaCallback?: (args: any) => Promise<any>;
441
+ }) => any;
442
+ }, (env: any) => {
443
+ createPosConfig: ({ model, name, modulePosRestaurant, xNode, service, }: {
444
+ model: string;
445
+ name: string;
446
+ modulePosRestaurant: string;
447
+ service?: string;
448
+ xNode?: string;
449
+ }) => any;
450
+ }, (env: any) => {
451
+ createSession: ({ model, configId, xNode, service, }: {
452
+ model: string;
453
+ configId: number;
454
+ service?: string;
455
+ xNode?: string;
456
+ }) => any;
457
+ }, (env: any) => {
458
+ deleteEntity: ({ model, ids, xNode, service, method, supaCallback, }: {
459
+ model: string;
460
+ ids: any;
461
+ service?: string;
462
+ xNode?: string;
463
+ method: string;
464
+ supaCallback?: (ids: any) => Promise<any>;
465
+ }) => any;
466
+ }, (env: any) => {
467
+ generatePaymentQRInfo: ({ orderId, amount, posSessionId, xNode, service, }: {
468
+ orderId: number;
469
+ amount: number;
470
+ posSessionId: number;
471
+ service?: string;
472
+ xNode?: string;
473
+ }) => any;
474
+ }, (env: any) => {
475
+ getCurrentUser: ({ service, xNode, oauthUid, extraHeaders, }: {
476
+ service?: string;
477
+ xNode?: string;
478
+ oauthUid?: string;
479
+ extraHeaders?: any;
480
+ }) => Promise<any>;
481
+ }, (env: any) => {
482
+ getList: ({ model, domain, xNode, service, specification, offset, limit, }: {
483
+ model: string;
484
+ domain: any;
485
+ service?: string;
486
+ xNode?: string;
487
+ specification: any;
488
+ offset?: number;
489
+ limit?: number;
490
+ }) => Promise<any>;
491
+ }, (env: any) => {
492
+ getOrderLine: ({ model, ids, specification, xNode, service, }: {
493
+ model: string;
494
+ ids: any;
495
+ specification: any;
496
+ service?: string;
497
+ xNode?: string;
498
+ }) => any;
499
+ }, (env: any) => {
500
+ getPinCode: ({ serialNumber, xNode, service, }: {
501
+ serialNumber: string;
502
+ service?: string;
503
+ xNode?: string;
504
+ }) => any;
505
+ }, (env: any) => {
506
+ getPOS: ({ model, args, domain, xNode, service, }: {
507
+ model: string;
508
+ args: any;
509
+ domain: any;
510
+ service?: string;
511
+ xNode?: string;
512
+ }) => any;
513
+ }, (env: any) => {
514
+ getPreparationDisplayData: ({ ids, xNode, service, withContext, }: {
515
+ ids: any;
516
+ service?: string;
517
+ xNode?: string;
518
+ withContext?: any;
519
+ }) => any;
520
+ }, (env: any) => {
521
+ getProductImage: ({ model, fields, limit, offset, domain, xNode, service, searchParams, }: {
522
+ model: string;
523
+ fields: any;
524
+ limit: number;
525
+ offset: number;
526
+ domain: any;
527
+ service?: string;
528
+ xNode?: string;
529
+ searchParams?: Record<string, string | number | boolean>;
530
+ }) => any;
531
+ }, (env: any) => {
532
+ handleCloseSession: ({ model, ids, xNode, service, method, }: {
533
+ model: string;
534
+ ids: any;
535
+ service?: string;
536
+ xNode?: string;
537
+ method: string;
538
+ }) => any;
539
+ }, (env: any) => {
540
+ handleClosingDetailSession: ({ model, ids, method, xNode, service, kwargs, }: {
541
+ model: string;
542
+ ids: any;
543
+ method: string;
544
+ service?: string;
545
+ xNode?: string;
546
+ kwargs: any;
547
+ }) => any;
548
+ }, (env: any) => {
549
+ handleClosingSession: ({ model, method, ids, kwargs, xNode, service, }: {
550
+ model: string;
551
+ method: string;
552
+ ids: any;
553
+ kwargs: any;
554
+ service?: string;
555
+ xNode?: string;
556
+ }) => any;
557
+ }, (env: any) => {
558
+ loadDataPosSession: ({ model, ids, xNode, service, withContext, modelsToLoad, searchParams, }: {
559
+ model: string;
560
+ ids: any;
561
+ service?: string;
562
+ xNode?: string;
563
+ withContext?: any;
564
+ modelsToLoad?: any;
565
+ searchParams?: Record<string, string | number | boolean>;
566
+ }) => Promise<any>;
567
+ loadDataPosSessionSupabase: () => Promise<{
568
+ [x: string]: {
569
+ data: any[];
570
+ fields: Record<string, any>;
571
+ relations: Record<string, any>;
572
+ };
573
+ }>;
574
+ }, (env: any) => {
575
+ manageOnChange: ({ model, ids, args, xNode, service, }: {
576
+ model: string;
577
+ ids: any;
578
+ args: any;
579
+ service?: string;
580
+ xNode?: string;
581
+ }) => any;
582
+ }, (env: any) => {
583
+ manageSession: ({ model, method, ids, args, kwargs, xNode, service, }: {
584
+ model: string;
585
+ method: string;
586
+ ids: any;
587
+ args: any;
588
+ kwargs: any;
589
+ service?: string;
590
+ xNode?: string;
591
+ }) => any;
592
+ }, (env: any) => {
593
+ processOrder: ({ orderId, xNode, service, }: {
594
+ orderId: number;
595
+ service?: string;
596
+ xNode?: string;
597
+ }) => any;
598
+ }, (env: any) => {
599
+ savePinCode: ({ serialNumber, pinCode, xNode, service, }: {
600
+ serialNumber: string;
601
+ pinCode: string;
602
+ service?: string;
603
+ xNode?: string;
604
+ }) => any;
605
+ }, (env: any) => {
606
+ searchJournal: ({ model, method, args, kwargs, xNode, service, }: {
607
+ model: string;
608
+ method: string;
609
+ args: any;
610
+ kwargs: any;
611
+ service?: string;
612
+ xNode?: string;
613
+ }) => any;
614
+ }, (env: any) => {
615
+ updateClosedSession: ({ model, domain, values, service, xNode, }: {
616
+ model: string;
617
+ domain: [];
618
+ values: {};
619
+ service?: string;
620
+ xNode?: string;
621
+ }) => any;
622
+ }, (env: any) => {
623
+ updateEntity: ({ model, domain, values, isCreateEndpoint, xNode, service, supaCallback, }: {
624
+ model: string;
625
+ domain: any;
626
+ values: any;
627
+ isCreateEndpoint?: boolean;
628
+ service?: string;
629
+ xNode?: string;
630
+ supaCallback?: (values: any) => Promise<any>;
631
+ }) => any;
632
+ }, (env: any) => {
633
+ updateOrderStatus: ({ orderId, state, xNode, service, }: {
634
+ orderId: number;
635
+ state: string;
636
+ service?: string;
637
+ xNode?: string;
638
+ }) => any;
639
+ }, (env: any) => {
640
+ completeCurrentStage: ({ ids, withContext, xNode, service, requestStageId, }: {
641
+ ids: number[];
642
+ requestStageId: number;
643
+ withContext: any;
644
+ service?: string;
645
+ xNode?: string;
646
+ }) => any;
647
+ }, () => {
648
+ addFloorSupabase: (values: {
649
+ name: string;
650
+ sequence?: number;
651
+ pos_config_ids?: number[];
652
+ table_ids?: number[];
653
+ }) => Promise<[number, string][] | null>;
654
+ }, () => {
655
+ addTableSupabase: (values: {
656
+ floor_id?: number;
657
+ table_number?: number;
658
+ seats?: number;
659
+ active?: boolean;
660
+ shape?: "square" | "round";
661
+ parent_id?: number;
662
+ }) => Promise<[number, number][] | null>;
663
+ }, () => {
664
+ updateFloorSupabase: (values: {
665
+ id: number;
666
+ name?: string;
667
+ sequence?: number;
668
+ pos_config_ids?: number[];
669
+ table_ids?: number[];
670
+ }) => Promise<boolean>;
671
+ }, () => {
672
+ updateTableSupabase: (values: {
673
+ id: number;
674
+ floor_id?: number;
675
+ table_number?: number;
676
+ seats?: number;
677
+ active?: boolean;
678
+ shape?: "square" | "round";
679
+ parent_id?: number;
680
+ }) => Promise<boolean>;
681
+ }, () => {
682
+ deleteFloorSupabase: (values: {
683
+ id: number;
684
+ }) => Promise<boolean>;
685
+ }, () => {
686
+ deleteTableSupabase: (values: {
687
+ id: number;
688
+ }) => Promise<boolean>;
689
+ }];
690
+ type ServiceFactories = (typeof serviceFactories)[number];
691
+ type ServiceReturn<T extends ServiceFactories> = ReturnType<T>;
692
+ type MergedService = UnionToIntersection<ServiceReturn<ServiceFactories>>;
693
+ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
694
+ declare const usePosService: () => MergedService;
695
+
696
+ export { useActionService, useAuthService, useCompanyService, useDashboardService, useExcelService, useFormService, useKanbanService, useModelService, usePosService, useUserService, useViewService };