@fctc/interface-logic 5.2.1 → 5.2.2

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.
@@ -91,7 +91,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
91
91
  UriConstants2["FUNCTIONAL_MODULES"] = "/functional-modules";
92
92
  UriConstants2["ACTION_SERVER_HOME"] = "/action_server_home";
93
93
  UriConstants2["APP_AUTHENTICATE"] = "/app/authenticate";
94
- UriConstants2["LOYALTY_POINT"] = "loyalty/point";
94
+ UriConstants2["LOYALTY_POINT"] = "/loyalty/point";
95
95
  return UriConstants2;
96
96
  })(UriConstants || {});
97
97
 
@@ -1,8 +1,8 @@
1
1
  import { envStore } from './chunk-B432GFRR.mjs';
2
2
  import { axiosClient } from './chunk-ACSPOGTI.mjs';
3
3
  import { toQueryString, sessionStorageUtils, localStorageUtils, isBase64File, cleanObject } from './chunk-BPJZ3QRN.mjs';
4
- import { BaseModel } from './chunk-QCD4OWFZ.mjs';
5
- import { UriConstants, LoadDataModel, MODEL_TO_TABLE } from './chunk-ILOZTDZF.mjs';
4
+ import { BaseModel } from './chunk-VBVNP77T.mjs';
5
+ import { UriConstants, LoadDataModel, MODEL_TO_TABLE } from './chunk-Q3Y6RCJ4.mjs';
6
6
  import { createContext, useState, useCallback, useMemo, useContext, useEffect } from 'react';
7
7
  import { QueryClient, QueryClientProvider, useQueryClient, useMutation, useQuery } from '@tanstack/react-query';
8
8
  import { jsx, Fragment } from 'react/jsx-runtime';
@@ -3531,7 +3531,7 @@ var getCustomerLoyaltyPointService = (env) => {
3531
3531
  partnerId
3532
3532
  }) => {
3533
3533
  return env?.requests.get(
3534
- `${"loyalty/point" /* LOYALTY_POINT */}/${partnerId}`,
3534
+ `${"/loyalty/point" /* LOYALTY_POINT */}/${partnerId}`,
3535
3535
  {
3536
3536
  headers: {
3537
3537
  "Content-Type": "application/json",
@@ -89,7 +89,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
89
89
  UriConstants2["FUNCTIONAL_MODULES"] = "/functional-modules";
90
90
  UriConstants2["ACTION_SERVER_HOME"] = "/action_server_home";
91
91
  UriConstants2["APP_AUTHENTICATE"] = "/app/authenticate";
92
- UriConstants2["LOYALTY_POINT"] = "loyalty/point";
92
+ UriConstants2["LOYALTY_POINT"] = "/loyalty/point";
93
93
  return UriConstants2;
94
94
  })(UriConstants || {});
95
95
 
@@ -3,8 +3,8 @@
3
3
  var chunk6LSKTACC_js = require('./chunk-6LSKTACC.js');
4
4
  var chunkQ5YXX4OR_js = require('./chunk-Q5YXX4OR.js');
5
5
  var chunkJDXUTKMX_js = require('./chunk-JDXUTKMX.js');
6
- var chunkTAAYUKBZ_js = require('./chunk-TAAYUKBZ.js');
7
- var chunk4YRVIZRO_js = require('./chunk-4YRVIZRO.js');
6
+ var chunkWTPKTZQC_js = require('./chunk-WTPKTZQC.js');
7
+ var chunkCOC7NGXP_js = require('./chunk-COC7NGXP.js');
8
8
  var react = require('react');
9
9
  var reactQuery = require('@tanstack/react-query');
10
10
  var jsxRuntime = require('react/jsx-runtime');
@@ -1600,7 +1600,7 @@ function useUserService() {
1600
1600
  values
1601
1601
  };
1602
1602
  return env?.requests.post(
1603
- chunk4YRVIZRO_js.UriConstants?.CREATE_UPDATE_PATH,
1603
+ chunkCOC7NGXP_js.UriConstants?.CREATE_UPDATE_PATH,
1604
1604
  jsonData,
1605
1605
  {
1606
1606
  headers: {
@@ -2977,10 +2977,10 @@ var loadDataPosSessionService = (env) => {
2977
2977
  const loadDataPosSessionSupabase = react.useCallback(async () => {
2978
2978
  if (!supabase) return {};
2979
2979
  try {
2980
- const allModels = Object.values(chunk4YRVIZRO_js.LoadDataModel);
2980
+ const allModels = Object.values(chunkCOC7NGXP_js.LoadDataModel);
2981
2981
  const results = await Promise.all(
2982
2982
  allModels.map(async (modelName) => {
2983
- const tableName = chunk4YRVIZRO_js.MODEL_TO_TABLE[modelName];
2983
+ const tableName = chunkCOC7NGXP_js.MODEL_TO_TABLE[modelName];
2984
2984
  if (!tableName) return createModelResult(modelName);
2985
2985
  const { data, error } = await supabase.from(tableName).select("*");
2986
2986
  if (error) {
@@ -3533,7 +3533,7 @@ var getCustomerLoyaltyPointService = (env) => {
3533
3533
  partnerId
3534
3534
  }) => {
3535
3535
  return env?.requests.get(
3536
- `${"loyalty/point" /* LOYALTY_POINT */}/${partnerId}`,
3536
+ `${"/loyalty/point" /* LOYALTY_POINT */}/${partnerId}`,
3537
3537
  {
3538
3538
  headers: {
3539
3539
  "Content-Type": "application/json",
@@ -5393,7 +5393,7 @@ var useModel = () => {
5393
5393
  const initModel = react.useCallback((modelData) => {
5394
5394
  switch (modelData?.name) {
5395
5395
  default:
5396
- return new chunkTAAYUKBZ_js.BaseModel(modelData);
5396
+ return new chunkWTPKTZQC_js.BaseModel(modelData);
5397
5397
  }
5398
5398
  }, []);
5399
5399
  return {
@@ -1,4 +1,4 @@
1
- import { WIDGETAVATAR } from './chunk-ILOZTDZF.mjs';
1
+ import { WIDGETAVATAR } from './chunk-Q3Y6RCJ4.mjs';
2
2
 
3
3
  // src/models/base-model/index.ts
4
4
  var BaseModel = class {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk4YRVIZRO_js = require('./chunk-4YRVIZRO.js');
3
+ var chunkCOC7NGXP_js = require('./chunk-COC7NGXP.js');
4
4
 
5
5
  // src/models/base-model/index.ts
6
6
  var BaseModel = class {
@@ -57,7 +57,7 @@ var BaseModel = class {
57
57
  fields: {
58
58
  id: {},
59
59
  display_name: {},
60
- ...chunk4YRVIZRO_js.WIDGETAVATAR[field?.widget] ? { image_256: {} } : {},
60
+ ...chunkCOC7NGXP_js.WIDGETAVATAR[field?.widget] ? { image_256: {} } : {},
61
61
  ...field?.name === "currency_id" && fields?.find((item) => item?.widget === "monetary") ? { symbol: {} } : {},
62
62
  ...field?.widget === "many2many_binary" ? { mimetype: {} } : {}
63
63
  }
package/dist/configs.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  var chunkQ5YXX4OR_js = require('./chunk-Q5YXX4OR.js');
4
4
  require('./chunk-JDXUTKMX.js');
5
- require('./chunk-4YRVIZRO.js');
5
+ require('./chunk-COC7NGXP.js');
6
6
 
7
7
 
8
8
 
package/dist/configs.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  export { axiosClient } from './chunk-ACSPOGTI.mjs';
2
2
  import './chunk-BPJZ3QRN.mjs';
3
- import './chunk-ILOZTDZF.mjs';
3
+ import './chunk-Q3Y6RCJ4.mjs';
@@ -84,7 +84,7 @@ declare enum UriConstants {
84
84
  FUNCTIONAL_MODULES = "/functional-modules",
85
85
  ACTION_SERVER_HOME = "/action_server_home",
86
86
  APP_AUTHENTICATE = "/app/authenticate",
87
- LOYALTY_POINT = "loyalty/point"
87
+ LOYALTY_POINT = "/loyalty/point"
88
88
  }
89
89
 
90
90
  declare enum FieldTypeConstants {
@@ -84,7 +84,7 @@ declare enum UriConstants {
84
84
  FUNCTIONAL_MODULES = "/functional-modules",
85
85
  ACTION_SERVER_HOME = "/action_server_home",
86
86
  APP_AUTHENTICATE = "/app/authenticate",
87
- LOYALTY_POINT = "loyalty/point"
87
+ LOYALTY_POINT = "/loyalty/point"
88
88
  }
89
89
 
90
90
  declare enum FieldTypeConstants {
package/dist/constants.js CHANGED
@@ -1,70 +1,70 @@
1
1
  'use strict';
2
2
 
3
- var chunk4YRVIZRO_js = require('./chunk-4YRVIZRO.js');
3
+ var chunkCOC7NGXP_js = require('./chunk-COC7NGXP.js');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "ComponentType", {
8
8
  enumerable: true,
9
- get: function () { return chunk4YRVIZRO_js.ComponentType; }
9
+ get: function () { return chunkCOC7NGXP_js.ComponentType; }
10
10
  });
11
11
  Object.defineProperty(exports, "FieldTypeConstants", {
12
12
  enumerable: true,
13
- get: function () { return chunk4YRVIZRO_js.FieldTypeConstants; }
13
+ get: function () { return chunkCOC7NGXP_js.FieldTypeConstants; }
14
14
  });
15
15
  Object.defineProperty(exports, "KeyConstants", {
16
16
  enumerable: true,
17
- get: function () { return chunk4YRVIZRO_js.KeyConstants; }
17
+ get: function () { return chunkCOC7NGXP_js.KeyConstants; }
18
18
  });
19
19
  Object.defineProperty(exports, "LoadDataModel", {
20
20
  enumerable: true,
21
- get: function () { return chunk4YRVIZRO_js.LoadDataModel; }
21
+ get: function () { return chunkCOC7NGXP_js.LoadDataModel; }
22
22
  });
23
23
  Object.defineProperty(exports, "LoadDataModelSupa", {
24
24
  enumerable: true,
25
- get: function () { return chunk4YRVIZRO_js.LoadDataModelSupa; }
25
+ get: function () { return chunkCOC7NGXP_js.LoadDataModelSupa; }
26
26
  });
27
27
  Object.defineProperty(exports, "MODEL_TO_TABLE", {
28
28
  enumerable: true,
29
- get: function () { return chunk4YRVIZRO_js.MODEL_TO_TABLE; }
29
+ get: function () { return chunkCOC7NGXP_js.MODEL_TO_TABLE; }
30
30
  });
31
31
  Object.defineProperty(exports, "MethodConstants", {
32
32
  enumerable: true,
33
- get: function () { return chunk4YRVIZRO_js.MethodConstants; }
33
+ get: function () { return chunkCOC7NGXP_js.MethodConstants; }
34
34
  });
35
35
  Object.defineProperty(exports, "MethodType", {
36
36
  enumerable: true,
37
- get: function () { return chunk4YRVIZRO_js.MethodType; }
37
+ get: function () { return chunkCOC7NGXP_js.MethodType; }
38
38
  });
39
39
  Object.defineProperty(exports, "ModelConstants", {
40
40
  enumerable: true,
41
- get: function () { return chunk4YRVIZRO_js.ModelConstants; }
41
+ get: function () { return chunkCOC7NGXP_js.ModelConstants; }
42
42
  });
43
43
  Object.defineProperty(exports, "SearchType", {
44
44
  enumerable: true,
45
- get: function () { return chunk4YRVIZRO_js.SearchType; }
45
+ get: function () { return chunkCOC7NGXP_js.SearchType; }
46
46
  });
47
47
  Object.defineProperty(exports, "UriConstants", {
48
48
  enumerable: true,
49
- get: function () { return chunk4YRVIZRO_js.UriConstants; }
49
+ get: function () { return chunkCOC7NGXP_js.UriConstants; }
50
50
  });
51
51
  Object.defineProperty(exports, "WIDGETAVATAR", {
52
52
  enumerable: true,
53
- get: function () { return chunk4YRVIZRO_js.WIDGETAVATAR; }
53
+ get: function () { return chunkCOC7NGXP_js.WIDGETAVATAR; }
54
54
  });
55
55
  Object.defineProperty(exports, "WIDGETCOLOR", {
56
56
  enumerable: true,
57
- get: function () { return chunk4YRVIZRO_js.WIDGETCOLOR; }
57
+ get: function () { return chunkCOC7NGXP_js.WIDGETCOLOR; }
58
58
  });
59
59
  Object.defineProperty(exports, "WIDGETCURRENCY", {
60
60
  enumerable: true,
61
- get: function () { return chunk4YRVIZRO_js.WIDGETCURRENCY; }
61
+ get: function () { return chunkCOC7NGXP_js.WIDGETCURRENCY; }
62
62
  });
63
63
  Object.defineProperty(exports, "WIDGETNOSTRING", {
64
64
  enumerable: true,
65
- get: function () { return chunk4YRVIZRO_js.WIDGETNOSTRING; }
65
+ get: function () { return chunkCOC7NGXP_js.WIDGETNOSTRING; }
66
66
  });
67
67
  Object.defineProperty(exports, "WIDGETSTATUS", {
68
68
  enumerable: true,
69
- get: function () { return chunk4YRVIZRO_js.WIDGETSTATUS; }
69
+ get: function () { return chunkCOC7NGXP_js.WIDGETSTATUS; }
70
70
  });
@@ -1 +1 @@
1
- export { ComponentType, FieldTypeConstants, KeyConstants, LoadDataModel, LoadDataModelSupa, MODEL_TO_TABLE, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS } from './chunk-ILOZTDZF.mjs';
1
+ export { ComponentType, FieldTypeConstants, KeyConstants, LoadDataModel, LoadDataModelSupa, MODEL_TO_TABLE, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS } from './chunk-Q3Y6RCJ4.mjs';
@@ -3,7 +3,7 @@
3
3
  var chunkC5QQGBN4_js = require('./chunk-C5QQGBN4.js');
4
4
  require('./chunk-Q5YXX4OR.js');
5
5
  require('./chunk-JDXUTKMX.js');
6
- require('./chunk-4YRVIZRO.js');
6
+ require('./chunk-COC7NGXP.js');
7
7
 
8
8
 
9
9
 
@@ -1,4 +1,4 @@
1
1
  export { EnvStore, getEnv, initEnv } from './chunk-6ARYI77N.mjs';
2
2
  import './chunk-ACSPOGTI.mjs';
3
3
  import './chunk-BPJZ3QRN.mjs';
4
- import './chunk-ILOZTDZF.mjs';
4
+ import './chunk-Q3Y6RCJ4.mjs';