@redneckz/wildless-cms-uni-blocks 0.14.758 → 0.14.760

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 (48) hide show
  1. package/bundle/api/RetailAPI/getUserTasks.d.ts +41 -0
  2. package/bundle/bundle.umd.js +6 -3
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
  5. package/dist/api/RetailAPI/getUserTasks.d.ts +41 -0
  6. package/dist/api/RetailAPI/getUserTasks.js +15 -0
  7. package/dist/api/RetailAPI/getUserTasks.js.map +1 -0
  8. package/dist/ui-kit/FormField/getObjectValidator.js +3 -0
  9. package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  10. package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
  11. package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +3 -2
  12. package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  13. package/lib/api/RetailAPI/getUserTasks.d.ts +41 -0
  14. package/lib/api/RetailAPI/getUserTasks.js +12 -0
  15. package/lib/api/RetailAPI/getUserTasks.js.map +1 -0
  16. package/lib/ui-kit/FormField/getObjectValidator.js +3 -0
  17. package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  18. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
  19. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +3 -2
  20. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  21. package/mobile/bundle/api/RetailAPI/getUserTasks.d.ts +41 -0
  22. package/mobile/bundle/bundle.umd.js +6 -3
  23. package/mobile/bundle/bundle.umd.min.js +1 -1
  24. package/mobile/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
  25. package/mobile/dist/api/RetailAPI/getUserTasks.d.ts +41 -0
  26. package/mobile/dist/api/RetailAPI/getUserTasks.js +15 -0
  27. package/mobile/dist/api/RetailAPI/getUserTasks.js.map +1 -0
  28. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +3 -0
  29. package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  30. package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
  31. package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +3 -2
  32. package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  33. package/mobile/lib/api/RetailAPI/getUserTasks.d.ts +41 -0
  34. package/mobile/lib/api/RetailAPI/getUserTasks.js +12 -0
  35. package/mobile/lib/api/RetailAPI/getUserTasks.js.map +1 -0
  36. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +3 -0
  37. package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  38. package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
  39. package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +3 -2
  40. package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  41. package/mobile/src/api/RetailAPI/getUserTasks.ts +50 -0
  42. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +3 -1
  43. package/mobile/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +21 -9
  44. package/package.json +1 -1
  45. package/src/api/RetailAPI/getUserTasks.ts +50 -0
  46. package/src/icons/IconName.ts +4 -4
  47. package/src/ui-kit/FormField/getObjectValidator.tsx +3 -1
  48. package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +21 -9
@@ -0,0 +1,41 @@
1
+ export declare enum EProductType {
2
+ CASH = "CASH",
3
+ CARD = "CARD",
4
+ DEBIT = "DEBIT"
5
+ }
6
+ export declare type UserTask = {
7
+ classCard?: {
8
+ key: string;
9
+ value: string;
10
+ };
11
+ createdDate?: string;
12
+ creditPeriod?: number;
13
+ deliveryAddress?: string;
14
+ extId?: string;
15
+ id?: number;
16
+ loanAmount?: number;
17
+ officeAddress?: string;
18
+ programId?: number;
19
+ programName?: string;
20
+ statusCd?: {
21
+ key: string;
22
+ value: string;
23
+ };
24
+ statusDescription?: string;
25
+ };
26
+ declare type AllTasks = {
27
+ productTypeCd: {
28
+ key: EProductType;
29
+ value: string;
30
+ };
31
+ tasks: Array<UserTask>;
32
+ };
33
+ export declare type GetUserTasksResponse = {
34
+ allTasks?: Array<AllTasks>;
35
+ user?: {
36
+ name: string;
37
+ midname: string;
38
+ };
39
+ };
40
+ export declare const getUserTasks: () => Promise<GetUserTasksResponse | undefined>;
41
+ export {};
@@ -2735,6 +2735,9 @@
2735
2735
  serviceDirection: defaultSelectValidator(),
2736
2736
  secondaryPhone: phoneValidator('Укажите номер телефона'),
2737
2737
  region: defaultSelectValidator(),
2738
+ situationDescription: defaultValidator(),
2739
+ sufferedFrom: defaultValidator(),
2740
+ applierType: defaultValidator(),
2738
2741
  surname: nameValidator('Укажите свою фамилию на кириллице'),
2739
2742
  name: nameValidator('Укажите своё имя на кириллице'),
2740
2743
  middleName: nameValidator('Укажите своё отчество на кириллице'),
@@ -4759,7 +4762,7 @@
4759
4762
  };
4760
4763
  };
4761
4764
 
4762
- const VerifyPhoneDialog = JSX(({ phone, code = true, codeLength = 4, consents, onSuccess = noop, onClose = noop }) => {
4765
+ const VerifyPhoneDialog = JSX(({ phone, code = true, withDescription = true, codeLength = 4, consents, onSuccess = noop, onClose = noop, }) => {
4763
4766
  const [values, setValues] = useState(Array(codeLength).fill(''));
4764
4767
  const { handleSubmit, hasError, errorText, isLoading, timeNextReq, isSubmitButtonDisabled, setTimeNextReq, setIsTimerStarted, setAttempts, } = useVerifyPhoneDialogSubmit({ values, onSuccess });
4765
4768
  const captchaDialog = useDialog(CaptchaDialog);
@@ -4781,7 +4784,7 @@
4781
4784
  useEffect(() => {
4782
4785
  handleSendCode();
4783
4786
  }, []);
4784
- return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl p-m", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [jsx(Headline, { className: "w-full", title: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430", description: `Мы отправили код на ${phone}`, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText$1(timeNextReq, setTimeNextReq, handleSendCode), jsxs(RichText, { itemSize: "list-s", children: [jsx("span", { children: "\u0412\u0432\u043E\u0434\u044F \u043A\u043E\u0434, \u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E, \u0447\u0442\u043E \u043E\u0437\u043D\u0430\u043A\u043E\u043C\u043B\u0435\u043D \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u044B\u0432\u0430\u044E: " }), jsx("ul", { children: consents?.map((_, i) => (jsx("li", { children: _ }, `${_}-${i}`))) })] }), renderNextButton(isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
4787
+ return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl p-m", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [jsx(Headline, { className: "w-full", title: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430", description: `Мы отправили код на ${phone}`, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText$1(timeNextReq, setTimeNextReq, handleSendCode), withDescription ? (jsxs(RichText, { itemSize: "list-s", children: [jsx("span", { children: "\u0412\u0432\u043E\u0434\u044F \u043A\u043E\u0434, \u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E, \u0447\u0442\u043E \u043E\u0437\u043D\u0430\u043A\u043E\u043C\u043B\u0435\u043D \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u044B\u0432\u0430\u044E: " }), jsx("ul", { children: consents?.map((_, i) => (jsx("li", { children: _ }, `${_}-${i}`))) })] })) : null, renderNextButton(isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
4785
4788
  });
4786
4789
  const renderNextButton = (isDisabled, onClick) => (jsx(SubmitButton, { text: "\u0414\u0430\u043B\u0435\u0435", isDisabled: isDisabled, onClick: onClick }));
4787
4790
  const renderText$1 = (timeNextReq, setTimeNextReq, handleSendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-base", children: ["\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437", jsx(Timer, { className: "text-base ml-1", time: timeNextReq, setTime: setTimeNextReq })] })) : (jsx(LinkButton, { onClick: handleSendCode, className: "text-primary-main", children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }));
@@ -10517,7 +10520,7 @@
10517
10520
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
10518
10521
  });
10519
10522
 
10520
- const packageVersion = "0.14.757";
10523
+ const packageVersion = "0.14.759";
10521
10524
 
10522
10525
  exports.Blocks = Blocks;
10523
10526
  exports.ContentPage = ContentPage;