@pisell/private-materials 3.0.192 → 3.0.193

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.
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"tyro" | "windcave" | "payo" | "stripe">;
22
+ readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  };
25
25
  /**
@@ -17,7 +17,8 @@ export var getStaffList = /*#__PURE__*/function () {
17
17
  case 0:
18
18
  _context.next = 2;
19
19
  return request.getRequest().get('/shop/shop/setting/staff', {}, {
20
- useCache: true
20
+ useCache: true,
21
+ fullResult: true
21
22
  });
22
23
  case 2:
23
24
  _yield$request$getReq = _context.sent;
@@ -54,7 +55,9 @@ export var getProductChannel = /*#__PURE__*/function () {
54
55
  while (1) switch (_context2.prev = _context2.next) {
55
56
  case 0:
56
57
  _context2.next = 2;
57
- return request.getRequest().get('/shop/order/platform-list');
58
+ return request.getRequest().get('/shop/order/platform-list', {}, {
59
+ fullResult: true
60
+ });
58
61
  case 2:
59
62
  _yield$request$getReq2 = _context2.sent;
60
63
  data = _yield$request$getReq2.data;
@@ -87,7 +90,9 @@ export var getOrderTypes = /*#__PURE__*/function () {
87
90
  while (1) switch (_context3.prev = _context3.next) {
88
91
  case 0:
89
92
  _context3.next = 2;
90
- return request.getRequest().get('/shop/order/aggregation-type');
93
+ return request.getRequest().get('/shop/order/aggregation-type', {}, {
94
+ fullResult: true
95
+ });
91
96
  case 2:
92
97
  _yield$request$getReq3 = _context3.sent;
93
98
  data = _yield$request$getReq3.data;
@@ -120,7 +125,9 @@ export var getPaymentTypes = /*#__PURE__*/function () {
120
125
  while (1) switch (_context4.prev = _context4.next) {
121
126
  case 0:
122
127
  _context4.next = 2;
123
- return request.getRequest().get('/shop/till/opened-payment-method');
128
+ return request.getRequest().get('/shop/till/opened-payment-method', {}, {
129
+ fullResult: true
130
+ });
124
131
  case 2:
125
132
  _yield$request$getReq4 = _context4.sent;
126
133
  data = _yield$request$getReq4.data;
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"tyro" | "windcave" | "payo" | "stripe">;
22
+ readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  };
25
25
  /**
@@ -32,7 +32,8 @@ var getStaffList = async () => {
32
32
  "/shop/shop/setting/staff",
33
33
  {},
34
34
  {
35
- useCache: true
35
+ useCache: true,
36
+ fullResult: true
36
37
  }
37
38
  );
38
39
  let _list = ((data == null ? void 0 : data.staff) || []).map((d) => {
@@ -53,7 +54,7 @@ var getStaffList = async () => {
53
54
  return _list;
54
55
  };
55
56
  var getProductChannel = async () => {
56
- const { data } = await import_utils2.request.getRequest().get("/shop/order/platform-list");
57
+ const { data } = await import_utils2.request.getRequest().get("/shop/order/platform-list", {}, { fullResult: true });
57
58
  let _list = (data || []).map((d) => {
58
59
  return {
59
60
  label: d.name,
@@ -68,7 +69,7 @@ var getProductChannel = async () => {
68
69
  };
69
70
  var getOrderTypes = async () => {
70
71
  var _a;
71
- let { data } = await import_utils2.request.getRequest().get("/shop/order/aggregation-type");
72
+ let { data } = await import_utils2.request.getRequest().get("/shop/order/aggregation-type", {}, { fullResult: true });
72
73
  let _list = (_a = data || []) == null ? void 0 : _a.map((d) => {
73
74
  return {
74
75
  ...d,
@@ -84,7 +85,7 @@ var getOrderTypes = async () => {
84
85
  };
85
86
  var getPaymentTypes = async () => {
86
87
  var _a;
87
- let { data } = await import_utils2.request.getRequest().get("/shop/till/opened-payment-method");
88
+ let { data } = await import_utils2.request.getRequest().get("/shop/till/opened-payment-method", {}, { fullResult: true });
88
89
  let _list = (_a = data || []) == null ? void 0 : _a.map((d) => {
89
90
  return {
90
91
  ...d,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.0.192",
3
+ "version": "3.0.193",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -59,10 +59,10 @@
59
59
  "react-infinite-scroll-component": "^6.1.0",
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
- "@pisell/utils": "1.0.42",
63
62
  "@pisell/materials": "3.0.55",
64
- "@pisell/date-picker": "1.0.100",
65
- "@pisell/icon": "0.0.11"
63
+ "@pisell/icon": "0.0.11",
64
+ "@pisell/utils": "1.0.42",
65
+ "@pisell/date-picker": "1.0.100"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",