@pisell/private-materials 6.6.100 → 6.6.101

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.
@@ -52,7 +52,7 @@ var useClientFn = function useClientFn(_params) {
52
52
  num: 5,
53
53
  total: 0,
54
54
  search: '',
55
- with: ['contactsInfo'],
55
+ with: ['formRecord', 'contactsInfo'],
56
56
  relation_form_id: state === null || state === void 0 || (_state$bookingConfig = state.bookingConfig) === null || _state$bookingConfig === void 0 || (_state$bookingConfig = _state$bookingConfig.config) === null || _state$bookingConfig === void 0 || (_state$bookingConfig = _state$bookingConfig.basic) === null || _state$bookingConfig === void 0 || (_state$bookingConfig = _state$bookingConfig.appointment_subject) === null || _state$bookingConfig === void 0 ? void 0 : _state$bookingConfig.form_id
57
57
  }),
58
58
  _useState8 = _slicedToArray(_useState7, 2),
@@ -76,7 +76,6 @@ var useClientFn = function useClientFn(_params) {
76
76
  }, [(_state$client$value2 = state.client.value) === null || _state$client$value2 === void 0 ? void 0 : _state$client$value2.id]);
77
77
  var getClients = /*#__PURE__*/function () {
78
78
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref, returnResult) {
79
- var _state$bookingConfig4;
80
79
  var customer_id, customer_ids, resetParams, _setLoading, _state$client, api, withKey, data, list, _payload, customerItem, totalList;
81
80
  return _regeneratorRuntime().wrap(function _callee$(_context) {
82
81
  while (1) switch (_context.prev = _context.next) {
@@ -110,19 +109,17 @@ var useClientFn = function useClientFn(_params) {
110
109
  abort: true
111
110
  }
112
111
  } : {}), {}, {
113
- with: withKey,
114
- with_form_records: 1,
115
- relation_form_id: state === null || state === void 0 || (_state$bookingConfig4 = state.bookingConfig) === null || _state$bookingConfig4 === void 0 || (_state$bookingConfig4 = _state$bookingConfig4.config) === null || _state$bookingConfig4 === void 0 || (_state$bookingConfig4 = _state$bookingConfig4.basic) === null || _state$bookingConfig4 === void 0 || (_state$bookingConfig4 = _state$bookingConfig4.appointment_subject) === null || _state$bookingConfig4 === void 0 ? void 0 : _state$bookingConfig4.form_id
112
+ with: withKey
116
113
  }));
117
114
  case 8:
118
115
  data = _context.sent;
119
116
  list = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (d) {
120
- var _d$form_record_list;
117
+ var _d$form_record;
121
118
  return _objectSpread(_objectSpread({}, d), {}, {
122
119
  name: getNickname(d),
123
120
  id: d.franchisee_customer_id || d.id,
124
- form_record: ((_d$form_record_list = d.form_record_list) === null || _d$form_record_list === void 0 ? void 0 : _d$form_record_list.map(function (item) {
125
- return _objectSpread(_objectSpread(_objectSpread({}, item.data), item), {}, {
121
+ form_record: ((_d$form_record = d.form_record) === null || _d$form_record === void 0 ? void 0 : _d$form_record.map(function (item) {
122
+ return _objectSpread(_objectSpread(_objectSpread({}, item), item.data), {}, {
126
123
  form_record_id: item.id
127
124
  });
128
125
  })) || []
@@ -262,7 +262,7 @@ var VerticalClient = /*#__PURE__*/forwardRef(function (props, ref) {
262
262
  case 7:
263
263
  _context.next = 9;
264
264
  return getClients({
265
- with: ['contactsInfo'],
265
+ with: ['formRecord', 'contactsInfo'],
266
266
  relation_form_id: boardConfig === null || boardConfig === void 0 ? void 0 : boardConfig.form_id,
267
267
  skip: 1,
268
268
  num: 20,
@@ -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<"stripe" | "tyro" | "windcave" | "mx51" | "payo" | "linkly" | "huifu" | "adyenpos" | "adyenalipay" | "adyenwechat">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "tyro" | "mx51" | "payo" | "windcave" | "linkly" | "huifu" | "adyenpos" | "adyenalipay" | "adyenwechat">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -301,7 +301,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
301
301
  amount?: string | number | undefined;
302
302
  mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
303
303
  order_id?: string | number | undefined;
304
- eftpos?: "stripe" | "tyro" | "windcave" | "mx51" | "payo" | "linkly" | "huifu" | "adyenpos" | "adyenalipay" | "adyenwechat" | undefined;
304
+ eftpos?: "stripe" | "tyro" | "mx51" | "payo" | "windcave" | "linkly" | "huifu" | "adyenpos" | "adyenalipay" | "adyenwechat" | undefined;
305
305
  action?: "pay" | "amount" | "deviceList" | undefined;
306
306
  key?: number | undefined;
307
307
  step?: number | undefined;
@@ -52,7 +52,7 @@ var useClientFn = (_params) => {
52
52
  num: 5,
53
53
  total: 0,
54
54
  search: "",
55
- with: ["contactsInfo"],
55
+ with: ["formRecord", "contactsInfo"],
56
56
  relation_form_id: (_d = (_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.appointment_subject) == null ? void 0 : _d.form_id
57
57
  });
58
58
  const paramsRef = (0, import_react.useRef)(params);
@@ -77,7 +77,7 @@ var useClientFn = (_params) => {
77
77
  customer_ids,
78
78
  ...resetParams
79
79
  }, returnResult) => {
80
- var _a2, _b2, _c2, _d2, _e2, _f2;
80
+ var _a2, _b2;
81
81
  let _setLoading;
82
82
  if (resetParams.skip === 1) {
83
83
  if (resetParams.search) {
@@ -100,9 +100,7 @@ var useClientFn = (_params) => {
100
100
  ...resetParams.search ? { num: 10 } : {},
101
101
  ...state.isFranchisee ? { franchisee_customer_ids: customer_ids } : { customer_ids },
102
102
  ...!state.isFranchisee && !returnResult ? { _config: { abort: true } } : {},
103
- with: withKey,
104
- with_form_records: 1,
105
- relation_form_id: (_f2 = (_e2 = (_d2 = (_c2 = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _c2.config) == null ? void 0 : _d2.basic) == null ? void 0 : _e2.appointment_subject) == null ? void 0 : _f2.form_id
103
+ with: withKey
106
104
  });
107
105
  const list = ((data == null ? void 0 : data.list) || []).map((d) => {
108
106
  var _a3;
@@ -110,9 +108,9 @@ var useClientFn = (_params) => {
110
108
  ...d,
111
109
  name: getNickname(d),
112
110
  id: d.franchisee_customer_id || d.id,
113
- form_record: ((_a3 = d.form_record_list) == null ? void 0 : _a3.map((item) => ({
114
- ...item.data,
111
+ form_record: ((_a3 = d.form_record) == null ? void 0 : _a3.map((item) => ({
115
112
  ...item,
113
+ ...item.data,
116
114
  form_record_id: item.id
117
115
  }))) || []
118
116
  };
@@ -282,7 +282,7 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
282
282
  } else {
283
283
  const val = await getClients(
284
284
  {
285
- with: ["contactsInfo"],
285
+ with: ["formRecord", "contactsInfo"],
286
286
  relation_form_id: boardConfig == null ? void 0 : boardConfig.form_id,
287
287
  skip: 1,
288
288
  num: 20,
@@ -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<"stripe" | "tyro" | "windcave" | "mx51" | "payo" | "linkly" | "huifu" | "adyenpos" | "adyenalipay" | "adyenwechat">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "tyro" | "mx51" | "payo" | "windcave" | "linkly" | "huifu" | "adyenpos" | "adyenalipay" | "adyenwechat">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -301,7 +301,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
301
301
  amount?: string | number | undefined;
302
302
  mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
303
303
  order_id?: string | number | undefined;
304
- eftpos?: "stripe" | "tyro" | "windcave" | "mx51" | "payo" | "linkly" | "huifu" | "adyenpos" | "adyenalipay" | "adyenwechat" | undefined;
304
+ eftpos?: "stripe" | "tyro" | "mx51" | "payo" | "windcave" | "linkly" | "huifu" | "adyenpos" | "adyenalipay" | "adyenwechat" | undefined;
305
305
  action?: "pay" | "amount" | "deviceList" | undefined;
306
306
  key?: number | undefined;
307
307
  step?: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.6.100",
3
+ "version": "6.6.101",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -64,8 +64,8 @@
64
64
  "@react-spring/web": "^9.6.1",
65
65
  "@use-gesture/react": "^10.3.1",
66
66
  "@pisell/utils": "3.0.2",
67
- "@pisell/materials": "6.6.23",
68
67
  "@pisell/date-picker": "3.0.7",
68
+ "@pisell/materials": "6.6.23",
69
69
  "@pisell/icon": "0.0.11"
70
70
  },
71
71
  "peerDependencies": {