@redneckz/wildless-cms-uni-blocks 0.14.912 → 0.14.913

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 (203) hide show
  1. package/bundle/api/LeadServiceAPI.d.ts +12 -3
  2. package/bundle/bundle.umd.js +714 -682
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationForm/VerifyPhoneDialog.d.ts +10 -0
  5. package/bundle/components/ApplicationForm/useVerifyPhoneDialogSubmit.d.ts +18 -0
  6. package/bundle/components/TariffsTable/TariffsTableCell.d.ts +1 -1
  7. package/bundle/retail/api/checkCode.d.ts +1 -9
  8. package/bundle/retail/api/sendCode.d.ts +1 -1
  9. package/bundle/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +0 -4
  10. package/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -6
  11. package/bundle/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  12. package/bundle/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.d.ts +16 -0
  13. package/bundle/utils/getTimer.d.ts +2 -0
  14. package/dist/api/LeadServiceAPI.d.ts +12 -3
  15. package/dist/api/LeadServiceAPI.js +0 -3
  16. package/dist/api/LeadServiceAPI.js.map +1 -1
  17. package/dist/components/ApplicationForm/ApplicationForm.js +1 -3
  18. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  19. package/dist/components/ApplicationForm/VerifyPhoneDialog.d.ts +10 -0
  20. package/dist/components/ApplicationForm/VerifyPhoneDialog.js +37 -0
  21. package/dist/components/ApplicationForm/VerifyPhoneDialog.js.map +1 -0
  22. package/dist/components/ApplicationForm/useVerifyPhoneDialogSubmit.d.ts +18 -0
  23. package/dist/components/ApplicationForm/useVerifyPhoneDialogSubmit.js +50 -0
  24. package/dist/components/ApplicationForm/useVerifyPhoneDialogSubmit.js.map +1 -0
  25. package/dist/components/TariffsTable/TariffsTableCell.d.ts +1 -1
  26. package/dist/retail/api/checkCode.d.ts +1 -9
  27. package/dist/retail/api/checkCode.js +1 -22
  28. package/dist/retail/api/checkCode.js.map +1 -1
  29. package/dist/retail/api/sendCode.d.ts +1 -1
  30. package/dist/retail/api/sendCode.js +2 -8
  31. package/dist/retail/api/sendCode.js.map +1 -1
  32. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +0 -4
  33. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +5 -24
  34. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  35. package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -6
  36. package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +7 -10
  37. package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  38. package/dist/retail/utils/mockLocalStorage.js +2 -2
  39. package/dist/retail/utils/mockLocalStorage.js.map +1 -1
  40. package/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  41. package/dist/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.d.ts +16 -0
  42. package/dist/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js +17 -0
  43. package/dist/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js.map +1 -0
  44. package/dist/utils/getTimer.d.ts +2 -0
  45. package/dist/utils/getTimer.js +6 -0
  46. package/dist/utils/getTimer.js.map +1 -0
  47. package/lib/api/LeadServiceAPI.d.ts +12 -3
  48. package/lib/api/LeadServiceAPI.js +0 -3
  49. package/lib/api/LeadServiceAPI.js.map +1 -1
  50. package/lib/common.css +1 -1
  51. package/lib/components/ApplicationForm/ApplicationForm.js +1 -3
  52. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  53. package/lib/components/ApplicationForm/VerifyPhoneDialog.d.ts +10 -0
  54. package/lib/components/ApplicationForm/VerifyPhoneDialog.js +35 -0
  55. package/lib/components/ApplicationForm/VerifyPhoneDialog.js.map +1 -0
  56. package/lib/components/ApplicationForm/useVerifyPhoneDialogSubmit.d.ts +18 -0
  57. package/lib/components/ApplicationForm/useVerifyPhoneDialogSubmit.js +47 -0
  58. package/lib/components/ApplicationForm/useVerifyPhoneDialogSubmit.js.map +1 -0
  59. package/lib/components/TariffsTable/TariffsTableCell.d.ts +1 -1
  60. package/lib/retail/api/checkCode.d.ts +1 -9
  61. package/lib/retail/api/checkCode.js +1 -22
  62. package/lib/retail/api/checkCode.js.map +1 -1
  63. package/lib/retail/api/sendCode.d.ts +1 -1
  64. package/lib/retail/api/sendCode.js +1 -7
  65. package/lib/retail/api/sendCode.js.map +1 -1
  66. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +0 -4
  67. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +5 -24
  68. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  69. package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -6
  70. package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +5 -8
  71. package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  72. package/lib/retail/utils/mockLocalStorage.js +2 -2
  73. package/lib/retail/utils/mockLocalStorage.js.map +1 -1
  74. package/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  75. package/lib/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.d.ts +16 -0
  76. package/lib/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js +15 -0
  77. package/lib/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js.map +1 -0
  78. package/lib/utils/getTimer.d.ts +2 -0
  79. package/lib/utils/getTimer.js +3 -0
  80. package/lib/utils/getTimer.js.map +1 -0
  81. package/mobile/bundle/api/LeadServiceAPI.d.ts +12 -3
  82. package/mobile/bundle/bundle.umd.js +714 -682
  83. package/mobile/bundle/bundle.umd.min.js +1 -1
  84. package/mobile/bundle/components/ApplicationForm/VerifyPhoneDialog.d.ts +10 -0
  85. package/mobile/bundle/components/ApplicationForm/useVerifyPhoneDialogSubmit.d.ts +18 -0
  86. package/mobile/bundle/components/TariffsTable/TariffsTableCell.d.ts +1 -1
  87. package/mobile/bundle/retail/api/checkCode.d.ts +1 -9
  88. package/mobile/bundle/retail/api/sendCode.d.ts +1 -1
  89. package/mobile/bundle/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +0 -4
  90. package/mobile/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -6
  91. package/mobile/bundle/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  92. package/mobile/bundle/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.d.ts +16 -0
  93. package/mobile/bundle/utils/getTimer.d.ts +2 -0
  94. package/mobile/dist/api/LeadServiceAPI.d.ts +12 -3
  95. package/mobile/dist/api/LeadServiceAPI.js +0 -3
  96. package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
  97. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +1 -3
  98. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  99. package/mobile/dist/components/ApplicationForm/VerifyPhoneDialog.d.ts +10 -0
  100. package/mobile/dist/components/ApplicationForm/VerifyPhoneDialog.js +37 -0
  101. package/mobile/dist/components/ApplicationForm/VerifyPhoneDialog.js.map +1 -0
  102. package/mobile/dist/components/ApplicationForm/useVerifyPhoneDialogSubmit.d.ts +18 -0
  103. package/mobile/dist/components/ApplicationForm/useVerifyPhoneDialogSubmit.js +50 -0
  104. package/mobile/dist/components/ApplicationForm/useVerifyPhoneDialogSubmit.js.map +1 -0
  105. package/mobile/dist/components/TariffsTable/TariffsTableCell.d.ts +1 -1
  106. package/mobile/dist/retail/api/checkCode.d.ts +1 -9
  107. package/mobile/dist/retail/api/checkCode.js +1 -22
  108. package/mobile/dist/retail/api/checkCode.js.map +1 -1
  109. package/mobile/dist/retail/api/sendCode.d.ts +1 -1
  110. package/mobile/dist/retail/api/sendCode.js +2 -8
  111. package/mobile/dist/retail/api/sendCode.js.map +1 -1
  112. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +0 -4
  113. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +5 -24
  114. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  115. package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -6
  116. package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +7 -10
  117. package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  118. package/mobile/dist/retail/utils/mockLocalStorage.js +2 -2
  119. package/mobile/dist/retail/utils/mockLocalStorage.js.map +1 -1
  120. package/mobile/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  121. package/mobile/dist/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.d.ts +16 -0
  122. package/mobile/dist/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js +17 -0
  123. package/mobile/dist/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js.map +1 -0
  124. package/mobile/dist/utils/getTimer.d.ts +2 -0
  125. package/mobile/dist/utils/getTimer.js +6 -0
  126. package/mobile/dist/utils/getTimer.js.map +1 -0
  127. package/mobile/lib/api/LeadServiceAPI.d.ts +12 -3
  128. package/mobile/lib/api/LeadServiceAPI.js +0 -3
  129. package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
  130. package/mobile/lib/common.css +1 -1
  131. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +1 -3
  132. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  133. package/mobile/lib/components/ApplicationForm/VerifyPhoneDialog.d.ts +10 -0
  134. package/mobile/lib/components/ApplicationForm/VerifyPhoneDialog.js +35 -0
  135. package/mobile/lib/components/ApplicationForm/VerifyPhoneDialog.js.map +1 -0
  136. package/mobile/lib/components/ApplicationForm/useVerifyPhoneDialogSubmit.d.ts +18 -0
  137. package/mobile/lib/components/ApplicationForm/useVerifyPhoneDialogSubmit.js +47 -0
  138. package/mobile/lib/components/ApplicationForm/useVerifyPhoneDialogSubmit.js.map +1 -0
  139. package/mobile/lib/components/TariffsTable/TariffsTableCell.d.ts +1 -1
  140. package/mobile/lib/retail/api/checkCode.d.ts +1 -9
  141. package/mobile/lib/retail/api/checkCode.js +1 -22
  142. package/mobile/lib/retail/api/checkCode.js.map +1 -1
  143. package/mobile/lib/retail/api/sendCode.d.ts +1 -1
  144. package/mobile/lib/retail/api/sendCode.js +1 -7
  145. package/mobile/lib/retail/api/sendCode.js.map +1 -1
  146. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +0 -4
  147. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +5 -24
  148. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  149. package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -6
  150. package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +5 -8
  151. package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  152. package/mobile/lib/retail/utils/mockLocalStorage.js +2 -2
  153. package/mobile/lib/retail/utils/mockLocalStorage.js.map +1 -1
  154. package/mobile/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  155. package/mobile/lib/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.d.ts +16 -0
  156. package/mobile/lib/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js +15 -0
  157. package/mobile/lib/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js.map +1 -0
  158. package/mobile/lib/utils/getTimer.d.ts +2 -0
  159. package/mobile/lib/utils/getTimer.js +3 -0
  160. package/mobile/lib/utils/getTimer.js.map +1 -0
  161. package/mobile/src/api/LeadServiceAPI.ts +13 -7
  162. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +1 -3
  163. package/mobile/src/components/ApplicationForm/VerifyPhoneDialog.tsx +73 -0
  164. package/mobile/src/components/ApplicationForm/useVerifyPhoneDialogSubmit.tsx +63 -0
  165. package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +1 -1
  166. package/mobile/src/retail/api/checkCode.ts +2 -47
  167. package/mobile/src/retail/api/sendCode.ts +1 -9
  168. package/mobile/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +23 -82
  169. package/mobile/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +7 -21
  170. package/mobile/src/retail/utils/mockLocalStorage.ts +9 -15
  171. package/mobile/src/ui-kit/ResponseTypeDialog/ResponseTypeDialog.tsx +1 -1
  172. package/mobile/src/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.tsx +80 -0
  173. package/mobile/src/utils/getTimer.ts +4 -0
  174. package/package.json +1 -1
  175. package/src/api/LeadServiceAPI.ts +13 -7
  176. package/src/components/ApplicationForm/ApplicationForm.tsx +1 -3
  177. package/src/components/ApplicationForm/VerifyPhoneDialog.tsx +73 -0
  178. package/src/components/ApplicationForm/useVerifyPhoneDialogSubmit.tsx +63 -0
  179. package/src/components/TariffsTable/TariffsTableCell.tsx +1 -1
  180. package/src/retail/api/checkCode.ts +2 -47
  181. package/src/retail/api/sendCode.ts +1 -9
  182. package/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +23 -82
  183. package/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +7 -21
  184. package/src/retail/utils/mockLocalStorage.ts +9 -15
  185. package/src/ui-kit/ResponseTypeDialog/ResponseTypeDialog.tsx +1 -1
  186. package/src/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.tsx +80 -0
  187. package/src/utils/getTimer.ts +4 -0
  188. package/bundle/model/onClose.d.ts +0 -3
  189. package/dist/model/onClose.d.ts +0 -3
  190. package/dist/model/onClose.js +0 -2
  191. package/dist/model/onClose.js.map +0 -1
  192. package/lib/model/onClose.d.ts +0 -3
  193. package/lib/model/onClose.js +0 -2
  194. package/lib/model/onClose.js.map +0 -1
  195. package/mobile/bundle/model/onClose.d.ts +0 -3
  196. package/mobile/dist/model/onClose.d.ts +0 -3
  197. package/mobile/dist/model/onClose.js +0 -2
  198. package/mobile/dist/model/onClose.js.map +0 -1
  199. package/mobile/lib/model/onClose.d.ts +0 -3
  200. package/mobile/lib/model/onClose.js +0 -2
  201. package/mobile/lib/model/onClose.js.map +0 -1
  202. package/mobile/src/model/onClose.ts +0 -3
  203. package/src/model/onClose.ts +0 -3
@@ -1,6 +1,5 @@
1
1
  import { type JSONRecord, type JSONScalar } from '@redneckz/json-op';
2
2
  import { type Router } from '../external/useRouter';
3
- import { type MainBody } from '../retail/api/checkCode';
4
3
  export declare type LeadRequest = Record<string, JSONRecord | JSONScalar | null> & {
5
4
  typeForm?: string;
6
5
  addressBranch?: string;
@@ -14,13 +13,23 @@ export declare type LeadRequest = Record<string, JSONRecord | JSONScalar | null>
14
13
  companyNameByInn?: string;
15
14
  partnerName?: string;
16
15
  };
17
- export declare type CheckCodeProps = MainBody;
16
+ export declare type CheckCodeProps = {
17
+ reqId: string;
18
+ code: string;
19
+ body: LeadRequest;
20
+ };
21
+ declare type CheckCodeResponse = {
22
+ errorCode?: string;
23
+ errorDesc?: string;
24
+ reqId?: string;
25
+ status?: string;
26
+ } | null;
18
27
  declare type PhoneOnly = {
19
28
  phone?: string;
20
29
  };
21
30
  export declare function LeadServiceAPI(): {
22
31
  send: (body: LeadRequest, router: Router, isIndividualType?: boolean) => Promise<any>;
23
32
  sendCode: ({ phone }: PhoneOnly) => Promise<string | null>;
24
- checkCode: ({ reqId, code, body }: CheckCodeProps) => Promise<any>;
33
+ checkCode: ({ reqId, code, body }: CheckCodeProps) => Promise<CheckCodeResponse>;
25
34
  };
26
35
  export {};