@fctc/interface-logic 4.5.2 → 4.5.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/hooks.d.mts CHANGED
@@ -593,6 +593,8 @@ declare const useDeleteEntity: () => _tanstack_react_query.UseMutationResult<unk
593
593
  service?: string;
594
594
  xNode?: string;
595
595
  method: string;
596
+ isSupa?: boolean;
597
+ supaCallback?: (ids: any) => Promise<any>;
596
598
  }, unknown>;
597
599
 
598
600
  declare const useGeneratePaymentQrInfo: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
@@ -751,6 +753,8 @@ declare const useUpdateEntity: () => _tanstack_react_query.UseMutationResult<unk
751
753
  isCreateEndpoint?: boolean;
752
754
  service?: string;
753
755
  xNode?: string;
756
+ isSupa?: boolean;
757
+ supaCallback?: (values: any) => Promise<any>;
754
758
  }, unknown>;
755
759
 
756
760
  declare const useUpdateOrderStatus: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
package/dist/hooks.d.ts CHANGED
@@ -593,6 +593,8 @@ declare const useDeleteEntity: () => _tanstack_react_query.UseMutationResult<unk
593
593
  service?: string;
594
594
  xNode?: string;
595
595
  method: string;
596
+ isSupa?: boolean;
597
+ supaCallback?: (ids: any) => Promise<any>;
596
598
  }, unknown>;
597
599
 
598
600
  declare const useGeneratePaymentQrInfo: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
@@ -751,6 +753,8 @@ declare const useUpdateEntity: () => _tanstack_react_query.UseMutationResult<unk
751
753
  isCreateEndpoint?: boolean;
752
754
  service?: string;
753
755
  xNode?: string;
756
+ isSupa?: boolean;
757
+ supaCallback?: (values: any) => Promise<any>;
754
758
  }, unknown>;
755
759
 
756
760
  declare const useUpdateOrderStatus: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
package/dist/hooks.js CHANGED
@@ -5601,8 +5601,13 @@ var deleteEntityService = (env) => {
5601
5601
  ids,
5602
5602
  xNode,
5603
5603
  service,
5604
- method
5604
+ method,
5605
+ isSupa = false,
5606
+ supaCallback
5605
5607
  }) => {
5608
+ if (isSupa && supaCallback) {
5609
+ return supaCallback(ids);
5610
+ }
5606
5611
  const jsonData = {
5607
5612
  model,
5608
5613
  ids,
@@ -6360,8 +6365,13 @@ var updateEntityService = (env) => {
6360
6365
  values,
6361
6366
  isCreateEndpoint = true,
6362
6367
  xNode,
6363
- service
6368
+ service,
6369
+ isSupa = false,
6370
+ supaCallback
6364
6371
  }) => {
6372
+ if (isSupa && supaCallback) {
6373
+ return supaCallback(values);
6374
+ }
6365
6375
  const jsonData = {
6366
6376
  model,
6367
6377
  domain,
package/dist/hooks.mjs CHANGED
@@ -5445,8 +5445,13 @@ var deleteEntityService = (env) => {
5445
5445
  ids,
5446
5446
  xNode,
5447
5447
  service,
5448
- method
5448
+ method,
5449
+ isSupa = false,
5450
+ supaCallback
5449
5451
  }) => {
5452
+ if (isSupa && supaCallback) {
5453
+ return supaCallback(ids);
5454
+ }
5450
5455
  const jsonData = {
5451
5456
  model,
5452
5457
  ids,
@@ -6204,8 +6209,13 @@ var updateEntityService = (env) => {
6204
6209
  values,
6205
6210
  isCreateEndpoint = true,
6206
6211
  xNode,
6207
- service
6212
+ service,
6213
+ isSupa = false,
6214
+ supaCallback
6208
6215
  }) => {
6216
+ if (isSupa && supaCallback) {
6217
+ return supaCallback(values);
6218
+ }
6209
6219
  const jsonData = {
6210
6220
  model,
6211
6221
  domain,
package/dist/provider.js CHANGED
@@ -5604,8 +5604,13 @@ var deleteEntityService = (env) => {
5604
5604
  ids,
5605
5605
  xNode,
5606
5606
  service,
5607
- method
5607
+ method,
5608
+ isSupa = false,
5609
+ supaCallback
5608
5610
  }) => {
5611
+ if (isSupa && supaCallback) {
5612
+ return supaCallback(ids);
5613
+ }
5609
5614
  const jsonData = {
5610
5615
  model,
5611
5616
  ids,
@@ -6363,8 +6368,13 @@ var updateEntityService = (env) => {
6363
6368
  values,
6364
6369
  isCreateEndpoint = true,
6365
6370
  xNode,
6366
- service
6371
+ service,
6372
+ isSupa = false,
6373
+ supaCallback
6367
6374
  }) => {
6375
+ if (isSupa && supaCallback) {
6376
+ return supaCallback(values);
6377
+ }
6368
6378
  const jsonData = {
6369
6379
  model,
6370
6380
  domain,
package/dist/provider.mjs CHANGED
@@ -5559,8 +5559,13 @@ var deleteEntityService = (env) => {
5559
5559
  ids,
5560
5560
  xNode,
5561
5561
  service,
5562
- method
5562
+ method,
5563
+ isSupa = false,
5564
+ supaCallback
5563
5565
  }) => {
5566
+ if (isSupa && supaCallback) {
5567
+ return supaCallback(ids);
5568
+ }
5564
5569
  const jsonData = {
5565
5570
  model,
5566
5571
  ids,
@@ -6318,8 +6323,13 @@ var updateEntityService = (env) => {
6318
6323
  values,
6319
6324
  isCreateEndpoint = true,
6320
6325
  xNode,
6321
- service
6326
+ service,
6327
+ isSupa = false,
6328
+ supaCallback
6322
6329
  }) => {
6330
+ if (isSupa && supaCallback) {
6331
+ return supaCallback(values);
6332
+ }
6323
6333
  const jsonData = {
6324
6334
  model,
6325
6335
  domain,
@@ -457,12 +457,14 @@ declare const serviceFactories: readonly [(env: any) => {
457
457
  xNode?: string;
458
458
  }) => any;
459
459
  }, (env: any) => {
460
- deleteEntity: ({ model, ids, xNode, service, method, }: {
460
+ deleteEntity: ({ model, ids, xNode, service, method, isSupa, supaCallback, }: {
461
461
  model: string;
462
462
  ids: any;
463
463
  service?: string;
464
464
  xNode?: string;
465
465
  method: string;
466
+ isSupa?: boolean;
467
+ supaCallback?: (ids: any) => Promise<any>;
466
468
  }) => any;
467
469
  }, (env: any) => {
468
470
  generatePaymentQRInfo: ({ orderId, amount, posSessionId, xNode, service, }: {
@@ -621,13 +623,15 @@ declare const serviceFactories: readonly [(env: any) => {
621
623
  xNode?: string;
622
624
  }) => any;
623
625
  }, (env: any) => {
624
- updateEntity: ({ model, domain, values, isCreateEndpoint, xNode, service, }: {
626
+ updateEntity: ({ model, domain, values, isCreateEndpoint, xNode, service, isSupa, supaCallback, }: {
625
627
  model: string;
626
628
  domain: any;
627
629
  values: any;
628
630
  isCreateEndpoint?: boolean;
629
631
  service?: string;
630
632
  xNode?: string;
633
+ isSupa?: boolean;
634
+ supaCallback?: (values: any) => Promise<any>;
631
635
  }) => any;
632
636
  }, (env: any) => {
633
637
  updateOrderStatus: ({ orderId, state, xNode, service, }: {
@@ -457,12 +457,14 @@ declare const serviceFactories: readonly [(env: any) => {
457
457
  xNode?: string;
458
458
  }) => any;
459
459
  }, (env: any) => {
460
- deleteEntity: ({ model, ids, xNode, service, method, }: {
460
+ deleteEntity: ({ model, ids, xNode, service, method, isSupa, supaCallback, }: {
461
461
  model: string;
462
462
  ids: any;
463
463
  service?: string;
464
464
  xNode?: string;
465
465
  method: string;
466
+ isSupa?: boolean;
467
+ supaCallback?: (ids: any) => Promise<any>;
466
468
  }) => any;
467
469
  }, (env: any) => {
468
470
  generatePaymentQRInfo: ({ orderId, amount, posSessionId, xNode, service, }: {
@@ -621,13 +623,15 @@ declare const serviceFactories: readonly [(env: any) => {
621
623
  xNode?: string;
622
624
  }) => any;
623
625
  }, (env: any) => {
624
- updateEntity: ({ model, domain, values, isCreateEndpoint, xNode, service, }: {
626
+ updateEntity: ({ model, domain, values, isCreateEndpoint, xNode, service, isSupa, supaCallback, }: {
625
627
  model: string;
626
628
  domain: any;
627
629
  values: any;
628
630
  isCreateEndpoint?: boolean;
629
631
  service?: string;
630
632
  xNode?: string;
633
+ isSupa?: boolean;
634
+ supaCallback?: (values: any) => Promise<any>;
631
635
  }) => any;
632
636
  }, (env: any) => {
633
637
  updateOrderStatus: ({ orderId, state, xNode, service, }: {
package/dist/services.js CHANGED
@@ -3534,8 +3534,13 @@ var deleteEntityService = (env) => {
3534
3534
  ids,
3535
3535
  xNode,
3536
3536
  service,
3537
- method
3537
+ method,
3538
+ isSupa = false,
3539
+ supaCallback
3538
3540
  }) => {
3541
+ if (isSupa && supaCallback) {
3542
+ return supaCallback(ids);
3543
+ }
3539
3544
  const jsonData = {
3540
3545
  model,
3541
3546
  ids,
@@ -4304,8 +4309,13 @@ var updateEntityService = (env) => {
4304
4309
  values,
4305
4310
  isCreateEndpoint = true,
4306
4311
  xNode,
4307
- service
4312
+ service,
4313
+ isSupa = false,
4314
+ supaCallback
4308
4315
  }) => {
4316
+ if (isSupa && supaCallback) {
4317
+ return supaCallback(values);
4318
+ }
4309
4319
  const jsonData = {
4310
4320
  model,
4311
4321
  domain,
package/dist/services.mjs CHANGED
@@ -3488,8 +3488,13 @@ var deleteEntityService = (env) => {
3488
3488
  ids,
3489
3489
  xNode,
3490
3490
  service,
3491
- method
3491
+ method,
3492
+ isSupa = false,
3493
+ supaCallback
3492
3494
  }) => {
3495
+ if (isSupa && supaCallback) {
3496
+ return supaCallback(ids);
3497
+ }
3493
3498
  const jsonData = {
3494
3499
  model,
3495
3500
  ids,
@@ -4258,8 +4263,13 @@ var updateEntityService = (env) => {
4258
4263
  values,
4259
4264
  isCreateEndpoint = true,
4260
4265
  xNode,
4261
- service
4266
+ service,
4267
+ isSupa = false,
4268
+ supaCallback
4262
4269
  }) => {
4270
+ if (isSupa && supaCallback) {
4271
+ return supaCallback(values);
4272
+ }
4263
4273
  const jsonData = {
4264
4274
  model,
4265
4275
  domain,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "4.5.2",
3
+ "version": "4.5.3",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",