@pisell/private-materials 6.3.20 → 6.3.21

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 (56) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/render/default/view.js +1 -1
  7. package/build/lowcode/view.js +1 -1
  8. package/es/components/booking/addons/model.d.ts +10 -1
  9. package/es/components/booking/components/footer/index.d.ts +0 -1
  10. package/es/components/booking/forms/model.d.ts +10 -1
  11. package/es/components/booking/info/model.d.ts +10 -1
  12. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  13. package/es/components/booking/info/service2/utils.d.ts +1 -1
  14. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  15. package/es/components/booking/model.d.ts +9 -1
  16. package/es/components/booking/notes/model.d.ts +10 -1
  17. package/es/components/booking/payments/model.d.ts +10 -1
  18. package/es/components/eftposPay/hooks.d.ts +2 -2
  19. package/es/components/eftposPay/linkly/hooks/normal.js +2 -2
  20. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +25 -4
  21. package/es/components/eftposPay/store/index.d.ts +6 -6
  22. package/es/components/pay/toC/model.d.ts +9 -1
  23. package/es/components/schedules/model.d.ts +9 -1
  24. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  25. package/es/components/ticketBooking/components/ticketBooking/index.js +43 -9
  26. package/es/components/wallet/Detail/model.d.ts +13 -1
  27. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  28. package/es/components/wallet/PointCard/model.d.ts +13 -1
  29. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  30. package/es/components/wallet/Voucher/model.d.ts +13 -1
  31. package/es/components/wallet/model.d.ts +9 -1
  32. package/lib/components/booking/addons/model.d.ts +10 -1
  33. package/lib/components/booking/components/footer/index.d.ts +0 -1
  34. package/lib/components/booking/forms/model.d.ts +10 -1
  35. package/lib/components/booking/info/model.d.ts +10 -1
  36. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  37. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  38. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  39. package/lib/components/booking/model.d.ts +9 -1
  40. package/lib/components/booking/notes/model.d.ts +10 -1
  41. package/lib/components/booking/payments/model.d.ts +10 -1
  42. package/lib/components/eftposPay/hooks.d.ts +2 -2
  43. package/lib/components/eftposPay/linkly/hooks/normal.js +2 -2
  44. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +16 -4
  45. package/lib/components/eftposPay/store/index.d.ts +6 -6
  46. package/lib/components/pay/toC/model.d.ts +9 -1
  47. package/lib/components/schedules/model.d.ts +9 -1
  48. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  49. package/lib/components/ticketBooking/components/ticketBooking/index.js +26 -5
  50. package/lib/components/wallet/Detail/model.d.ts +13 -1
  51. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  52. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  53. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  54. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  55. package/lib/components/wallet/model.d.ts +9 -1
  56. package/package.json +1 -1
@@ -63,7 +63,7 @@ var useLinklyPayOrRefund = (handleCheck) => {
63
63
  content: [{ key: "response", value: JSON.stringify(res) }]
64
64
  });
65
65
  const status = (_a = res == null ? void 0 : res.data) == null ? void 0 : _a.status;
66
- if (status === 0) {
66
+ if (status == 0) {
67
67
  numRef.current = (_b = res == null ? void 0 : res.data) == null ? void 0 : _b.session_id;
68
68
  dispatch((0, import_store.updateState)({ number: numRef.current }));
69
69
  dispatch((0, import_store.updateCustom)({ actionStatus: import_const2.LinklyActionStatus.Cancel }));
@@ -74,7 +74,7 @@ var useLinklyPayOrRefund = (handleCheck) => {
74
74
  return;
75
75
  }
76
76
  dispatch((0, import_store.updateCustom)({ actionStatus: import_const2.LinklyActionStatus.Empty }));
77
- if (status === 1) {
77
+ if (status == 1) {
78
78
  (_c = handleLinklySuccessRef.current) == null ? void 0 : _c.call(handleLinklySuccessRef, res);
79
79
  return;
80
80
  }
@@ -83,13 +83,17 @@ var useTimeResultQuery = (api, resultCheck, handleLinklySuccess) => {
83
83
  _log("Success" /* Success */, result);
84
84
  isQueryFinishedRef.current = true;
85
85
  const data = (result == null ? void 0 : result.data) || {};
86
- if (data.status === 1) {
86
+ if (data.status == 1) {
87
87
  console.log("交易成功,终止查询");
88
+ (0, import_utils.sendWarningLog)({
89
+ title: `Linkly-${isPay ? "Pay" : "Refund"}-交易成功`,
90
+ content: [{ key: "response", value: JSON.stringify(result) }]
91
+ });
88
92
  reset();
89
93
  handleLinklySuccess(result);
90
94
  return;
91
95
  }
92
- if (data.status !== void 0 && (data == null ? void 0 : data.status) === 0) {
96
+ if ((data == null ? void 0 : data.status) == 0 && (data == null ? void 0 : data.signature_flag) != 1) {
93
97
  console.log("交易状态为0需要继续查询");
94
98
  isQueryFinishedRef.current = false;
95
99
  _resultQuery();
@@ -97,13 +101,21 @@ var useTimeResultQuery = (api, resultCheck, handleLinklySuccess) => {
97
101
  }
98
102
  if (data.status < 0) {
99
103
  console.log("交易失败,终止查询");
104
+ (0, import_utils.sendWarningLog)({
105
+ title: `Linkly-${isPay ? "Pay" : "Refund"}-交易失败`,
106
+ content: [{ key: "response", value: JSON.stringify(result) }]
107
+ });
100
108
  reset();
101
109
  result.code = import_const.PayStatus.Unknown;
102
110
  (_a2 = failRef.current) == null ? void 0 : _a2.call(failRef, result, false);
103
111
  return;
104
112
  }
105
- if (data.signature_flag === 1) {
113
+ if (data.signature_flag == 1) {
106
114
  console.log("交易需要签名,终止查询");
115
+ (0, import_utils.sendWarningLog)({
116
+ title: `Linkly-${isPay ? "Pay" : "Refund"}-交易需要签名`,
117
+ content: [{ key: "response", value: JSON.stringify(result) }]
118
+ });
107
119
  reset();
108
120
  gotoSignature();
109
121
  return;
@@ -194,7 +206,7 @@ var useTimeResultQuery = (api, resultCheck, handleLinklySuccess) => {
194
206
  content.push({ key: "error", value: JSON.stringify(res) });
195
207
  }
196
208
  (0, import_utils.sendWarningLog)({
197
- title: `Linkly-${isPay ? "Pay" : "Refund"}-结果查询--${type}`,
209
+ title: `Linkly-${isPay ? "Pay" : "Refund"}-交易结果轮询`,
198
210
  content
199
211
  });
200
212
  };
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "warn" | "loading" | "fail" | "question";
177
+ status: "success" | "loading" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,20 +295,20 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
298
+ mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
301
- action?: "amount" | "deviceList" | "pay" | undefined;
300
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
+ action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "step" | "unset" | undefined;
306
+ type?: "unset" | "step" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  platform: 'pc' | 'h5' | '' | undefined;
3
4
  order: any;
@@ -28,4 +29,11 @@ export interface PayGroup {
28
29
  pay_number?: string;
29
30
  _order: any;
30
31
  }
31
- export declare const Provider: any, Context: any;
32
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
33
+ state: FormState;
34
+ } & {
35
+ dispatch: (params: {
36
+ type: string;
37
+ payload: any;
38
+ }) => void;
39
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem, ScheduleItem } from "./type";
2
3
  import dayjs from "dayjs";
3
4
  export interface FormState {
@@ -68,4 +69,11 @@ export interface FormState {
68
69
  };
69
70
  setGlobalState: Function | null;
70
71
  }
71
- export declare const Provider: any, Context: any;
72
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
+ state: FormState;
74
+ } & {
75
+ dispatch: (params: {
76
+ type: string;
77
+ payload: any;
78
+ }) => void;
79
+ }>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export declare const _formatBookingDetail: (data: any, modalState: any) => any;
4
3
  declare const TicketBooking: () => JSX.Element;
@@ -248,11 +248,32 @@ var TicketBooking = () => {
248
248
  "booking",
249
249
  "refreshBookingDetail",
250
250
  (type, orderId) => {
251
- _initFn(() => {
252
- });
253
- setState({
254
- createCount: state.createCount + 1
255
- });
251
+ var _a3, _b3, _c3, _d2, _e2, _f2, _g, _h;
252
+ try {
253
+ _initFn(() => {
254
+ });
255
+ setState({
256
+ createCount: state.createCount + 1
257
+ });
258
+ (0, import_utils.sendWarningLog)({
259
+ title: "清空购物车",
260
+ content: [
261
+ { key: "店铺id", value: (_d2 = (_c3 = (_b3 = (_a3 = store == null ? void 0 : store.getState) == null ? void 0 : _a3.call(store)) == null ? void 0 : _b3.global) == null ? void 0 : _c3.globalConfig) == null ? void 0 : _d2.id },
262
+ { key: "订单id", value: orderId },
263
+ { key: "类型", value: type }
264
+ ]
265
+ });
266
+ } catch (err) {
267
+ (0, import_utils.sendWarningLog)({
268
+ title: "清空购物车失败",
269
+ content: [
270
+ { key: "店铺id", value: (_h = (_g = (_f2 = (_e2 = store == null ? void 0 : store.getState) == null ? void 0 : _e2.call(store)) == null ? void 0 : _f2.global) == null ? void 0 : _g.globalConfig) == null ? void 0 : _h.id },
271
+ { key: "订单id", value: orderId },
272
+ { key: "类型", value: type },
273
+ { key: "error", value: err == null ? void 0 : err.message }
274
+ ]
275
+ });
276
+ }
256
277
  }
257
278
  );
258
279
  (_f = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _f.mountFunction(
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ addWalletCard: any;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ walletDetailState: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1 +1,14 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: number;
4
+ setup?: 'menu' | 'list' | 'detail' | string;
5
+ }
6
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
+ state: RechargeState;
8
+ } & {
9
+ dispatch: (params: {
10
+ type: string;
11
+ payload: any;
12
+ }) => void;
13
+ }>;
14
+ export {};
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: number;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ state: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1 +1,29 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ selectedGiftOptionId: string | null;
4
+ cardList: Array<{
5
+ id: string;
6
+ name: string;
7
+ price: number;
8
+ }>;
9
+ selectedItem: {
10
+ id?: string;
11
+ gift_price?: number;
12
+ price?: number;
13
+ name?: string;
14
+ variant_id?: string;
15
+ };
16
+ productId?: string;
17
+ detailId?: string;
18
+ total: string | number;
19
+ rechargeModalOpen: boolean;
20
+ }
21
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
+ state: RechargeState;
23
+ } & {
24
+ dispatch: (params: {
25
+ type: string;
26
+ payload: any;
27
+ }) => void;
28
+ }>;
29
+ export {};
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: 0;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ state: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IWalletListItemProps } from './serve';
2
3
  export interface WalletCardItemProps {
3
4
  id: string;
@@ -26,4 +27,11 @@ export interface WalletListProps {
26
27
  currentSearchListItemCode?: string;
27
28
  [key: string]: any;
28
29
  }
29
- export declare const Provider: any, Context: any;
30
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
+ global_wallet: WalletListProps;
32
+ } & {
33
+ dispatch: (params: {
34
+ type: string;
35
+ payload: any;
36
+ }) => void;
37
+ }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.3.20",
3
+ "version": "6.3.21",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",