@redneckz/wildless-cms-uni-blocks 0.14.888 → 0.14.889

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 (134) hide show
  1. package/bundle/api/LeadServiceAPI.d.ts +8 -0
  2. package/bundle/api/getSubmitBody.d.ts +494 -0
  3. package/bundle/bundle.umd.js +663 -561
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  6. package/bundle/retail/api/checkCode.d.ts +9 -1
  7. package/bundle/retail/api/sendCode.d.ts +1 -1
  8. package/bundle/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +4 -0
  9. package/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +6 -1
  10. package/dist/api/LeadServiceAPI.d.ts +8 -0
  11. package/dist/api/LeadServiceAPI.js +41 -49
  12. package/dist/api/LeadServiceAPI.js.map +1 -1
  13. package/dist/api/getSubmitBody.d.ts +494 -0
  14. package/dist/api/getSubmitBody.js +59 -0
  15. package/dist/api/getSubmitBody.js.map +1 -0
  16. package/dist/components/ApplicationForm/ApplicationForm.js +30 -5
  17. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  18. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  19. package/dist/retail/api/checkCode.d.ts +9 -1
  20. package/dist/retail/api/checkCode.js +22 -1
  21. package/dist/retail/api/checkCode.js.map +1 -1
  22. package/dist/retail/api/sendCode.d.ts +1 -1
  23. package/dist/retail/api/sendCode.js +8 -2
  24. package/dist/retail/api/sendCode.js.map +1 -1
  25. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +4 -0
  26. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +10 -4
  27. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  28. package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +6 -1
  29. package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +7 -4
  30. package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  31. package/dist/retail/utils/mockLocalStorage.js +2 -2
  32. package/dist/retail/utils/mockLocalStorage.js.map +1 -1
  33. package/lib/api/LeadServiceAPI.d.ts +8 -0
  34. package/lib/api/LeadServiceAPI.js +41 -49
  35. package/lib/api/LeadServiceAPI.js.map +1 -1
  36. package/lib/api/getSubmitBody.d.ts +494 -0
  37. package/lib/api/getSubmitBody.js +54 -0
  38. package/lib/api/getSubmitBody.js.map +1 -0
  39. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
  40. package/lib/components/ApplicationForm/ApplicationForm.js +30 -5
  41. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  42. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  43. package/lib/retail/api/checkCode.d.ts +9 -1
  44. package/lib/retail/api/checkCode.js +22 -1
  45. package/lib/retail/api/checkCode.js.map +1 -1
  46. package/lib/retail/api/sendCode.d.ts +1 -1
  47. package/lib/retail/api/sendCode.js +7 -1
  48. package/lib/retail/api/sendCode.js.map +1 -1
  49. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +4 -0
  50. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +10 -4
  51. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  52. package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +6 -1
  53. package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +6 -3
  54. package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  55. package/lib/retail/utils/mockLocalStorage.js +2 -2
  56. package/lib/retail/utils/mockLocalStorage.js.map +1 -1
  57. package/mobile/bundle/api/LeadServiceAPI.d.ts +8 -0
  58. package/mobile/bundle/api/getSubmitBody.d.ts +494 -0
  59. package/mobile/bundle/bundle.umd.js +663 -561
  60. package/mobile/bundle/bundle.umd.min.js +1 -1
  61. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  62. package/mobile/bundle/retail/api/checkCode.d.ts +9 -1
  63. package/mobile/bundle/retail/api/sendCode.d.ts +1 -1
  64. package/mobile/bundle/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +4 -0
  65. package/mobile/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +6 -1
  66. package/mobile/dist/api/LeadServiceAPI.d.ts +8 -0
  67. package/mobile/dist/api/LeadServiceAPI.js +41 -49
  68. package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
  69. package/mobile/dist/api/getSubmitBody.d.ts +494 -0
  70. package/mobile/dist/api/getSubmitBody.js +59 -0
  71. package/mobile/dist/api/getSubmitBody.js.map +1 -0
  72. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +30 -5
  73. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  74. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  75. package/mobile/dist/retail/api/checkCode.d.ts +9 -1
  76. package/mobile/dist/retail/api/checkCode.js +22 -1
  77. package/mobile/dist/retail/api/checkCode.js.map +1 -1
  78. package/mobile/dist/retail/api/sendCode.d.ts +1 -1
  79. package/mobile/dist/retail/api/sendCode.js +8 -2
  80. package/mobile/dist/retail/api/sendCode.js.map +1 -1
  81. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +4 -0
  82. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +10 -4
  83. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  84. package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +6 -1
  85. package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +7 -4
  86. package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  87. package/mobile/dist/retail/utils/mockLocalStorage.js +2 -2
  88. package/mobile/dist/retail/utils/mockLocalStorage.js.map +1 -1
  89. package/mobile/lib/api/LeadServiceAPI.d.ts +8 -0
  90. package/mobile/lib/api/LeadServiceAPI.js +41 -49
  91. package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
  92. package/mobile/lib/api/getSubmitBody.d.ts +494 -0
  93. package/mobile/lib/api/getSubmitBody.js +54 -0
  94. package/mobile/lib/api/getSubmitBody.js.map +1 -0
  95. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +30 -5
  96. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  97. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  98. package/mobile/lib/retail/api/checkCode.d.ts +9 -1
  99. package/mobile/lib/retail/api/checkCode.js +22 -1
  100. package/mobile/lib/retail/api/checkCode.js.map +1 -1
  101. package/mobile/lib/retail/api/sendCode.d.ts +1 -1
  102. package/mobile/lib/retail/api/sendCode.js +7 -1
  103. package/mobile/lib/retail/api/sendCode.js.map +1 -1
  104. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +4 -0
  105. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +10 -4
  106. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  107. package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +6 -1
  108. package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +6 -3
  109. package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  110. package/mobile/lib/retail/utils/mockLocalStorage.js +2 -2
  111. package/mobile/lib/retail/utils/mockLocalStorage.js.map +1 -1
  112. package/mobile/src/api/LeadServiceAPI.ts +64 -82
  113. package/mobile/src/api/getSubmitBody.ts +94 -0
  114. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +2 -2
  115. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +33 -4
  116. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +1 -1
  117. package/mobile/src/retail/api/checkCode.ts +47 -2
  118. package/mobile/src/retail/api/sendCode.ts +9 -1
  119. package/mobile/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +29 -8
  120. package/mobile/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +18 -5
  121. package/mobile/src/retail/utils/mockLocalStorage.ts +15 -9
  122. package/package.json +1 -1
  123. package/src/api/LeadServiceAPI.ts +64 -82
  124. package/src/api/getSubmitBody.ts +94 -0
  125. package/src/components/ApplicationForm/ApplicationForm.example.json +2 -2
  126. package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +2 -2
  127. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +24 -2
  128. package/src/components/ApplicationForm/ApplicationForm.tsx +33 -4
  129. package/src/components/ApplicationForm/ApplicationFormContent.ts +1 -1
  130. package/src/retail/api/checkCode.ts +47 -2
  131. package/src/retail/api/sendCode.ts +9 -1
  132. package/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +29 -8
  133. package/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +18 -5
  134. package/src/retail/utils/mockLocalStorage.ts +15 -9
@@ -0,0 +1,494 @@
1
+ import type { JSONRecord, JSONScalar } from '@redneckz/json-op';
2
+ import type { Router } from '../external/useRouter';
3
+ import { type LeadRequest } from './LeadServiceAPI';
4
+ export declare const getSubmitBody: (body: LeadRequest, isNaturalPerson: boolean, router?: Router) => {
5
+ secondaryPhoneNumber?: string | undefined;
6
+ inn: string | undefined;
7
+ region: string | undefined;
8
+ partnerComments: string | undefined;
9
+ fullname: string | undefined;
10
+ typeForm: string;
11
+ phone: string;
12
+ } | {
13
+ secondaryPhoneNumber?: string | undefined;
14
+ inn?: undefined;
15
+ region?: undefined;
16
+ partnerComments?: undefined;
17
+ fullname?: undefined;
18
+ typeForm: string;
19
+ phone: string;
20
+ } | {
21
+ secondaryPhoneNumber?: string | undefined;
22
+ inn: string | undefined;
23
+ region: string | undefined;
24
+ partnerComments: string | undefined;
25
+ fullname: string | undefined;
26
+ typeForm: string | undefined;
27
+ phone: string;
28
+ } | {
29
+ secondaryPhoneNumber?: string | undefined;
30
+ inn?: undefined;
31
+ region?: undefined;
32
+ partnerComments?: undefined;
33
+ fullname?: undefined;
34
+ typeForm: string | undefined;
35
+ phone: string;
36
+ } | {
37
+ secondaryPhoneNumber?: string | undefined;
38
+ inn: string | undefined;
39
+ region: string | undefined;
40
+ partnerComments: string | undefined;
41
+ fullname: string | undefined;
42
+ typeForm: string;
43
+ addressBranch: string | undefined;
44
+ bankEmpolee: JSONScalar | JSONRecord | null;
45
+ applicationDate: JSONScalar | JSONRecord | null;
46
+ phone: string;
47
+ } | {
48
+ secondaryPhoneNumber?: string | undefined;
49
+ inn?: undefined;
50
+ region?: undefined;
51
+ partnerComments?: undefined;
52
+ fullname?: undefined;
53
+ typeForm: string;
54
+ addressBranch: string | undefined;
55
+ bankEmpolee: JSONScalar | JSONRecord | null;
56
+ applicationDate: JSONScalar | JSONRecord | null;
57
+ phone: string;
58
+ } | {
59
+ secondaryPhoneNumber?: string | undefined;
60
+ inn: string | undefined;
61
+ region: string | undefined;
62
+ partnerComments: string | undefined;
63
+ fullname: string | undefined;
64
+ typeForm: string | undefined;
65
+ addressBranch: string | undefined;
66
+ bankEmpolee: JSONScalar | JSONRecord | null;
67
+ applicationDate: JSONScalar | JSONRecord | null;
68
+ phone: string;
69
+ } | {
70
+ secondaryPhoneNumber?: string | undefined;
71
+ inn?: undefined;
72
+ region?: undefined;
73
+ partnerComments?: undefined;
74
+ fullname?: undefined;
75
+ typeForm: string | undefined;
76
+ addressBranch: string | undefined;
77
+ bankEmpolee: JSONScalar | JSONRecord | null;
78
+ applicationDate: JSONScalar | JSONRecord | null;
79
+ phone: string;
80
+ } | {
81
+ secondaryPhoneNumber: string;
82
+ inn: string | undefined;
83
+ region: string | undefined;
84
+ partnerComments: string | undefined;
85
+ fullname: string | undefined;
86
+ typeForm: string;
87
+ addressBranch: string | undefined;
88
+ bankEmpolee: JSONScalar | JSONRecord | null;
89
+ applicationDate: JSONScalar | JSONRecord | null;
90
+ phone: string;
91
+ } | {
92
+ secondaryPhoneNumber: string;
93
+ inn?: undefined;
94
+ region?: undefined;
95
+ partnerComments?: undefined;
96
+ fullname?: undefined;
97
+ typeForm: string;
98
+ addressBranch: string | undefined;
99
+ bankEmpolee: JSONScalar | JSONRecord | null;
100
+ applicationDate: JSONScalar | JSONRecord | null;
101
+ phone: string;
102
+ } | {
103
+ secondaryPhoneNumber: string;
104
+ inn: string | undefined;
105
+ region: string | undefined;
106
+ partnerComments: string | undefined;
107
+ fullname: string | undefined;
108
+ typeForm: string | undefined;
109
+ addressBranch: string | undefined;
110
+ bankEmpolee: JSONScalar | JSONRecord | null;
111
+ applicationDate: JSONScalar | JSONRecord | null;
112
+ phone: string;
113
+ } | {
114
+ secondaryPhoneNumber: string;
115
+ inn?: undefined;
116
+ region?: undefined;
117
+ partnerComments?: undefined;
118
+ fullname?: undefined;
119
+ typeForm: string | undefined;
120
+ addressBranch: string | undefined;
121
+ bankEmpolee: JSONScalar | JSONRecord | null;
122
+ applicationDate: JSONScalar | JSONRecord | null;
123
+ phone: string;
124
+ } | {
125
+ secondaryPhoneNumber?: string | undefined;
126
+ inn: string | undefined;
127
+ region: string | undefined;
128
+ partnerComments: string | undefined;
129
+ fullname: string | undefined;
130
+ typeForm: string;
131
+ phone: string;
132
+ } | {
133
+ secondaryPhoneNumber?: string | undefined;
134
+ inn: string | undefined;
135
+ region?: undefined;
136
+ partnerComments?: undefined;
137
+ fullname?: undefined;
138
+ typeForm: string;
139
+ phone: string;
140
+ } | {
141
+ secondaryPhoneNumber?: string | undefined;
142
+ inn: string | undefined;
143
+ region: string | undefined;
144
+ partnerComments: string | undefined;
145
+ fullname: string | undefined;
146
+ typeForm: string | undefined;
147
+ phone: string;
148
+ } | {
149
+ secondaryPhoneNumber?: string | undefined;
150
+ inn: string | undefined;
151
+ region?: undefined;
152
+ partnerComments?: undefined;
153
+ fullname?: undefined;
154
+ typeForm: string | undefined;
155
+ phone: string;
156
+ } | {
157
+ secondaryPhoneNumber?: string | undefined;
158
+ inn: string | undefined;
159
+ region: string | undefined;
160
+ partnerComments: string | undefined;
161
+ fullname: string | undefined;
162
+ typeForm: string;
163
+ addressBranch: string | undefined;
164
+ bankEmpolee: JSONScalar | JSONRecord | null;
165
+ applicationDate: JSONScalar | JSONRecord | null;
166
+ phone: string;
167
+ } | {
168
+ secondaryPhoneNumber?: string | undefined;
169
+ inn: string | undefined;
170
+ region?: undefined;
171
+ partnerComments?: undefined;
172
+ fullname?: undefined;
173
+ typeForm: string;
174
+ addressBranch: string | undefined;
175
+ bankEmpolee: JSONScalar | JSONRecord | null;
176
+ applicationDate: JSONScalar | JSONRecord | null;
177
+ phone: string;
178
+ } | {
179
+ secondaryPhoneNumber?: string | undefined;
180
+ inn: string | undefined;
181
+ region: string | undefined;
182
+ partnerComments: string | undefined;
183
+ fullname: string | undefined;
184
+ typeForm: string | undefined;
185
+ addressBranch: string | undefined;
186
+ bankEmpolee: JSONScalar | JSONRecord | null;
187
+ applicationDate: JSONScalar | JSONRecord | null;
188
+ phone: string;
189
+ } | {
190
+ secondaryPhoneNumber?: string | undefined;
191
+ inn: string | undefined;
192
+ region?: undefined;
193
+ partnerComments?: undefined;
194
+ fullname?: undefined;
195
+ typeForm: string | undefined;
196
+ addressBranch: string | undefined;
197
+ bankEmpolee: JSONScalar | JSONRecord | null;
198
+ applicationDate: JSONScalar | JSONRecord | null;
199
+ phone: string;
200
+ } | {
201
+ secondaryPhoneNumber: string;
202
+ inn: string | undefined;
203
+ region: string | undefined;
204
+ partnerComments: string | undefined;
205
+ fullname: string | undefined;
206
+ typeForm: string;
207
+ addressBranch: string | undefined;
208
+ bankEmpolee: JSONScalar | JSONRecord | null;
209
+ applicationDate: JSONScalar | JSONRecord | null;
210
+ phone: string;
211
+ } | {
212
+ secondaryPhoneNumber: string;
213
+ inn: string | undefined;
214
+ region?: undefined;
215
+ partnerComments?: undefined;
216
+ fullname?: undefined;
217
+ typeForm: string;
218
+ addressBranch: string | undefined;
219
+ bankEmpolee: JSONScalar | JSONRecord | null;
220
+ applicationDate: JSONScalar | JSONRecord | null;
221
+ phone: string;
222
+ } | {
223
+ secondaryPhoneNumber: string;
224
+ inn: string | undefined;
225
+ region: string | undefined;
226
+ partnerComments: string | undefined;
227
+ fullname: string | undefined;
228
+ typeForm: string | undefined;
229
+ addressBranch: string | undefined;
230
+ bankEmpolee: JSONScalar | JSONRecord | null;
231
+ applicationDate: JSONScalar | JSONRecord | null;
232
+ phone: string;
233
+ } | {
234
+ secondaryPhoneNumber: string;
235
+ inn: string | undefined;
236
+ region?: undefined;
237
+ partnerComments?: undefined;
238
+ fullname?: undefined;
239
+ typeForm: string | undefined;
240
+ addressBranch: string | undefined;
241
+ bankEmpolee: JSONScalar | JSONRecord | null;
242
+ applicationDate: JSONScalar | JSONRecord | null;
243
+ phone: string;
244
+ } | {
245
+ secondaryPhoneNumber?: string | undefined;
246
+ inn: string | undefined;
247
+ region: string | undefined;
248
+ partnerComments: string | undefined;
249
+ fullname: string | undefined;
250
+ typeForm: string;
251
+ phone?: undefined;
252
+ } | {
253
+ secondaryPhoneNumber?: string | undefined;
254
+ inn?: undefined;
255
+ region?: undefined;
256
+ partnerComments?: undefined;
257
+ fullname?: undefined;
258
+ typeForm: string;
259
+ phone?: undefined;
260
+ } | {
261
+ secondaryPhoneNumber?: string | undefined;
262
+ inn: string | undefined;
263
+ region: string | undefined;
264
+ partnerComments: string | undefined;
265
+ fullname: string | undefined;
266
+ typeForm: string | undefined;
267
+ phone?: undefined;
268
+ } | {
269
+ secondaryPhoneNumber?: string | undefined;
270
+ inn?: undefined;
271
+ region?: undefined;
272
+ partnerComments?: undefined;
273
+ fullname?: undefined;
274
+ typeForm: string | undefined;
275
+ phone?: undefined;
276
+ } | {
277
+ secondaryPhoneNumber?: string | undefined;
278
+ inn: string | undefined;
279
+ region: string | undefined;
280
+ partnerComments: string | undefined;
281
+ fullname: string | undefined;
282
+ typeForm: string;
283
+ addressBranch: string | undefined;
284
+ bankEmpolee: JSONScalar | JSONRecord | null;
285
+ applicationDate: JSONScalar | JSONRecord | null;
286
+ phone?: undefined;
287
+ } | {
288
+ secondaryPhoneNumber?: string | undefined;
289
+ inn?: undefined;
290
+ region?: undefined;
291
+ partnerComments?: undefined;
292
+ fullname?: undefined;
293
+ typeForm: string;
294
+ addressBranch: string | undefined;
295
+ bankEmpolee: JSONScalar | JSONRecord | null;
296
+ applicationDate: JSONScalar | JSONRecord | null;
297
+ phone?: undefined;
298
+ } | {
299
+ secondaryPhoneNumber?: string | undefined;
300
+ inn: string | undefined;
301
+ region: string | undefined;
302
+ partnerComments: string | undefined;
303
+ fullname: string | undefined;
304
+ typeForm: string | undefined;
305
+ addressBranch: string | undefined;
306
+ bankEmpolee: JSONScalar | JSONRecord | null;
307
+ applicationDate: JSONScalar | JSONRecord | null;
308
+ phone?: undefined;
309
+ } | {
310
+ secondaryPhoneNumber?: string | undefined;
311
+ inn?: undefined;
312
+ region?: undefined;
313
+ partnerComments?: undefined;
314
+ fullname?: undefined;
315
+ typeForm: string | undefined;
316
+ addressBranch: string | undefined;
317
+ bankEmpolee: JSONScalar | JSONRecord | null;
318
+ applicationDate: JSONScalar | JSONRecord | null;
319
+ phone?: undefined;
320
+ } | {
321
+ secondaryPhoneNumber: string;
322
+ inn: string | undefined;
323
+ region: string | undefined;
324
+ partnerComments: string | undefined;
325
+ fullname: string | undefined;
326
+ typeForm: string;
327
+ addressBranch: string | undefined;
328
+ bankEmpolee: JSONScalar | JSONRecord | null;
329
+ applicationDate: JSONScalar | JSONRecord | null;
330
+ phone?: undefined;
331
+ } | {
332
+ secondaryPhoneNumber: string;
333
+ inn?: undefined;
334
+ region?: undefined;
335
+ partnerComments?: undefined;
336
+ fullname?: undefined;
337
+ typeForm: string;
338
+ addressBranch: string | undefined;
339
+ bankEmpolee: JSONScalar | JSONRecord | null;
340
+ applicationDate: JSONScalar | JSONRecord | null;
341
+ phone?: undefined;
342
+ } | {
343
+ secondaryPhoneNumber: string;
344
+ inn: string | undefined;
345
+ region: string | undefined;
346
+ partnerComments: string | undefined;
347
+ fullname: string | undefined;
348
+ typeForm: string | undefined;
349
+ addressBranch: string | undefined;
350
+ bankEmpolee: JSONScalar | JSONRecord | null;
351
+ applicationDate: JSONScalar | JSONRecord | null;
352
+ phone?: undefined;
353
+ } | {
354
+ secondaryPhoneNumber: string;
355
+ inn?: undefined;
356
+ region?: undefined;
357
+ partnerComments?: undefined;
358
+ fullname?: undefined;
359
+ typeForm: string | undefined;
360
+ addressBranch: string | undefined;
361
+ bankEmpolee: JSONScalar | JSONRecord | null;
362
+ applicationDate: JSONScalar | JSONRecord | null;
363
+ phone?: undefined;
364
+ } | {
365
+ secondaryPhoneNumber?: string | undefined;
366
+ inn: string | undefined;
367
+ region: string | undefined;
368
+ partnerComments: string | undefined;
369
+ fullname: string | undefined;
370
+ typeForm: string;
371
+ phone?: undefined;
372
+ } | {
373
+ secondaryPhoneNumber?: string | undefined;
374
+ inn: string | undefined;
375
+ region?: undefined;
376
+ partnerComments?: undefined;
377
+ fullname?: undefined;
378
+ typeForm: string;
379
+ phone?: undefined;
380
+ } | {
381
+ secondaryPhoneNumber?: string | undefined;
382
+ inn: string | undefined;
383
+ region: string | undefined;
384
+ partnerComments: string | undefined;
385
+ fullname: string | undefined;
386
+ typeForm: string | undefined;
387
+ phone?: undefined;
388
+ } | {
389
+ secondaryPhoneNumber?: string | undefined;
390
+ inn: string | undefined;
391
+ region?: undefined;
392
+ partnerComments?: undefined;
393
+ fullname?: undefined;
394
+ typeForm: string | undefined;
395
+ phone?: undefined;
396
+ } | {
397
+ secondaryPhoneNumber?: string | undefined;
398
+ inn: string | undefined;
399
+ region: string | undefined;
400
+ partnerComments: string | undefined;
401
+ fullname: string | undefined;
402
+ typeForm: string;
403
+ addressBranch: string | undefined;
404
+ bankEmpolee: JSONScalar | JSONRecord | null;
405
+ applicationDate: JSONScalar | JSONRecord | null;
406
+ phone?: undefined;
407
+ } | {
408
+ secondaryPhoneNumber?: string | undefined;
409
+ inn: string | undefined;
410
+ region?: undefined;
411
+ partnerComments?: undefined;
412
+ fullname?: undefined;
413
+ typeForm: string;
414
+ addressBranch: string | undefined;
415
+ bankEmpolee: JSONScalar | JSONRecord | null;
416
+ applicationDate: JSONScalar | JSONRecord | null;
417
+ phone?: undefined;
418
+ } | {
419
+ secondaryPhoneNumber?: string | undefined;
420
+ inn: string | undefined;
421
+ region: string | undefined;
422
+ partnerComments: string | undefined;
423
+ fullname: string | undefined;
424
+ typeForm: string | undefined;
425
+ addressBranch: string | undefined;
426
+ bankEmpolee: JSONScalar | JSONRecord | null;
427
+ applicationDate: JSONScalar | JSONRecord | null;
428
+ phone?: undefined;
429
+ } | {
430
+ secondaryPhoneNumber?: string | undefined;
431
+ inn: string | undefined;
432
+ region?: undefined;
433
+ partnerComments?: undefined;
434
+ fullname?: undefined;
435
+ typeForm: string | undefined;
436
+ addressBranch: string | undefined;
437
+ bankEmpolee: JSONScalar | JSONRecord | null;
438
+ applicationDate: JSONScalar | JSONRecord | null;
439
+ phone?: undefined;
440
+ } | {
441
+ secondaryPhoneNumber: string;
442
+ inn: string | undefined;
443
+ region: string | undefined;
444
+ partnerComments: string | undefined;
445
+ fullname: string | undefined;
446
+ typeForm: string;
447
+ addressBranch: string | undefined;
448
+ bankEmpolee: JSONScalar | JSONRecord | null;
449
+ applicationDate: JSONScalar | JSONRecord | null;
450
+ phone?: undefined;
451
+ } | {
452
+ secondaryPhoneNumber: string;
453
+ inn: string | undefined;
454
+ region?: undefined;
455
+ partnerComments?: undefined;
456
+ fullname?: undefined;
457
+ typeForm: string;
458
+ addressBranch: string | undefined;
459
+ bankEmpolee: JSONScalar | JSONRecord | null;
460
+ applicationDate: JSONScalar | JSONRecord | null;
461
+ phone?: undefined;
462
+ } | {
463
+ secondaryPhoneNumber: string;
464
+ inn: string | undefined;
465
+ region: string | undefined;
466
+ partnerComments: string | undefined;
467
+ fullname: string | undefined;
468
+ typeForm: string | undefined;
469
+ addressBranch: string | undefined;
470
+ bankEmpolee: JSONScalar | JSONRecord | null;
471
+ applicationDate: JSONScalar | JSONRecord | null;
472
+ phone?: undefined;
473
+ } | {
474
+ secondaryPhoneNumber: string;
475
+ inn: string | undefined;
476
+ region?: undefined;
477
+ partnerComments?: undefined;
478
+ fullname?: undefined;
479
+ typeForm: string | undefined;
480
+ addressBranch: string | undefined;
481
+ bankEmpolee: JSONScalar | JSONRecord | null;
482
+ applicationDate: JSONScalar | JSONRecord | null;
483
+ phone?: undefined;
484
+ };
485
+ export declare const getPhoneBody: (phone?: string) => {
486
+ phone: string;
487
+ } | {
488
+ phone?: undefined;
489
+ };
490
+ export declare const getPhone: (phone?: string) => {
491
+ phone: string;
492
+ } | {
493
+ phone?: undefined;
494
+ };
@@ -0,0 +1,59 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.getPhone = exports.getPhoneBody = exports.getSubmitBody = void 0;
3
+ const formatDate_1 = require("../utils/formatDate");
4
+ const formatPhone_1 = require("../utils/formatPhone");
5
+ const getSubmitBody = (body, isNaturalPerson, router) => {
6
+ const { typeForm, region, phone = '', email, birthday, desiredMeetingDate, inn, innDadata, fullRegion, addressBranch, secondaryPhone = '', bankEmpolee, applicationDate, partnerSymbolCode, companyNameByInn, ...staticBody } = body;
7
+ return {
8
+ typeForm,
9
+ ...getRegion(region, isNaturalPerson),
10
+ ...getEmail(email, isNaturalPerson),
11
+ ...(0, exports.getPhone)(phone),
12
+ ...getFormatDate(desiredMeetingDate, 'desiredMeetingDate'),
13
+ ...(isNaturalPerson ? getFormatDate(birthday) : { inn }),
14
+ ...(typeForm === 'FEEDBACK'
15
+ ? {}
16
+ : {
17
+ addressBranch,
18
+ bankEmpolee,
19
+ applicationDate,
20
+ ...getSecondaryPhone(secondaryPhone),
21
+ }),
22
+ ...addPageSlug(typeForm, router),
23
+ ...formatPFForm(typeForm, { innDadata, fullRegion, partnerSymbolCode, companyNameByInn }),
24
+ ...staticBody,
25
+ };
26
+ };
27
+ exports.getSubmitBody = getSubmitBody;
28
+ const getPhoneBody = (phone) => {
29
+ return {
30
+ ...(0, exports.getPhone)(phone),
31
+ };
32
+ };
33
+ exports.getPhoneBody = getPhoneBody;
34
+ const getPhone = (phone) => (phone ? { phone: (0, formatPhone_1.formatPhone)(phone) } : {});
35
+ exports.getPhone = getPhone;
36
+ const getFormatDate = (date, key = 'birthday') => date ? { [key]: (0, formatDate_1.formatDate)(date) } : {};
37
+ const getRegion = (region, isNaturalPerson = true) => ({
38
+ [isNaturalPerson ? 'regionBranch' : 'region']: region,
39
+ });
40
+ const getEmail = (email, isNaturalPerson = true) => ({
41
+ [isNaturalPerson ? 'email' : 'mail']: email,
42
+ });
43
+ const getSecondaryPhone = (secondaryPhone = '') => !secondaryPhone || secondaryPhone === '+7 ('
44
+ ? {}
45
+ : { secondaryPhoneNumber: (0, formatPhone_1.formatPhone)(secondaryPhone) };
46
+ const formatPFForm = (typeForm, data) => typeForm === 'PF'
47
+ ? {
48
+ inn: data?.innDadata,
49
+ region: data?.fullRegion,
50
+ partnerComments: data?.partnerSymbolCode,
51
+ fullname: data?.companyNameByInn,
52
+ }
53
+ : {};
54
+ const addPageSlug = (typeForm, router) => typeForm === 'UNIVERSAL'
55
+ ? {
56
+ typeForm: router?.pathname?.split('/')?.at(-1) || '/',
57
+ }
58
+ : {};
59
+ //# sourceMappingURL=getSubmitBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSubmitBody.js","sourceRoot":"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,eAAe,EAAE,IAAI,EAAE,iBAAiB;QACxC,QAAQ,EAAE,IAAI,EAAE,gBAAgB;KACjC;IACH,CAAC,CAAC,EAAE,CAAC;AAET,MAAM,WAAW,GAAG,CAAC,QAAiB,EAAE,MAAe,EAAE,EAAE,CACzD,QAAQ,KAAK,WAAW;IACtB,CAAC,CAAC;QACE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG;KACtD;IACH,CAAC,CAAC,EAAE,CAAC"}
@@ -7,6 +7,7 @@ const useRouter_1 = require("../../external/useRouter");
7
7
  const handleAspects_1 = require("../../hooks/useAspects/handleAspects");
8
8
  const useAspects_1 = require("../../hooks/useAspects/useAspects");
9
9
  const useForm_1 = require("../../hooks/useForm/useForm");
10
+ const VerifyPhoneDialog_1 = require("../../retail/components/VerifyPhoneDialog/VerifyPhoneDialog");
10
11
  const ApplicationFormLayout_1 = require("../../ui-kit/ApplicationFormLayout/ApplicationFormLayout");
11
12
  const useDialog_1 = require("../../ui-kit/DialogManager/useDialog");
12
13
  const getConsentDataProcessing_1 = require("../../ui-kit/FormField/getConsentDataProcessing");
@@ -22,19 +23,43 @@ const getInitialFormState_1 = require("./getInitialFormState");
22
23
  const renderAgreementSubmit_1 = require("./renderAgreementSubmit");
23
24
  const renderContacts_1 = require("./renderContacts");
24
25
  const API = (0, LeadServiceAPI_1.LeadServiceAPI)();
25
- exports.ApplicationForm = (0, UniBlock_1.UniBlock)(({ className, title, typeForm = '', sections = [], button, link, endpoint, additionalParams, isContacts, data, ...rest }) => {
26
+ exports.ApplicationForm = (0, UniBlock_1.UniBlock)(
27
+ // eslint-disable-next-line max-lines-per-function
28
+ ({ className, title, typeForm = '', sections = [], button, link, endpoint, additionalParams, isContacts, data, ...rest }) => {
26
29
  const inputs = (0, hooks_1.useMemo)(() => (sections?.flatMap((_) => _?.inputs) || []), [sections]);
27
30
  const initialFormState = (0, hooks_1.useMemo)(() => (0, getInitialFormState_1.getInitialFormState)(inputs, typeForm), [inputs, typeForm]);
28
31
  const router = (0, useRouter_1.useRouter)();
29
32
  const formValidator = (0, hooks_1.useMemo)(() => (0, getObjectValidator_1.getFormValidator)(inputs), [inputs]);
30
33
  const responseTypeDialog = (0, useDialog_1.useDialog)(ResponseTypeDialog_1.ResponseTypeDialog);
31
34
  const aspects = (0, useAspects_1.useAspects)();
35
+ const verifyPhoneDialog = (0, useDialog_1.useDialog)(VerifyPhoneDialog_1.VerifyPhoneDialog);
32
36
  const handleSubmit = (0, hooks_1.useCallback)(async (formData, ev) => {
33
37
  const formatData = (0, getFormatData_1.getFormatData)({ ...formData, ...additionalParams });
34
- const ok = Boolean(await API.send(formatData, router, endpoint === 'lead'));
35
- responseTypeDialog.open({ ok, typeForm });
36
- if (ok) {
37
- (0, handleAspects_1.handleAspects)({ aspectsAttributes: data, aspects, ev });
38
+ if (endpoint === 'initcorporatelead') {
39
+ const { phone } = formatData;
40
+ const response = await API.sendCode({ phone: String(phone) });
41
+ if (!response) {
42
+ responseTypeDialog.open({ ok: Boolean(response), typeForm });
43
+ return;
44
+ }
45
+ verifyPhoneDialog.open({
46
+ phone,
47
+ withDescription: false,
48
+ formatData,
49
+ reqId: String(response),
50
+ isRetail: false,
51
+ onSuccess: () => {
52
+ verifyPhoneDialog.close();
53
+ responseTypeDialog.open({ ok: true, typeForm });
54
+ },
55
+ });
56
+ }
57
+ else {
58
+ const ok = Boolean(await API.send(formatData, router, endpoint === 'lead'));
59
+ responseTypeDialog.open({ ok, typeForm });
60
+ if (ok) {
61
+ (0, handleAspects_1.handleAspects)({ aspectsAttributes: data, aspects, ev });
62
+ }
38
63
  }
39
64
  }, [typeForm]);
40
65
  const [, { field, onSubmit }] = (0, useForm_1.useForm)(initialFormState, {
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationForm.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationForm.tsx"],"names":[],"mappings":";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qBACT,CAAC,IACG,EACN,UAAU,CAAC,CAAC,CAAC,IAAA,+BAAc,GAAE,CAAC,CAAC,CAAC,IAAI,IACf,CACzB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,CACrB,QAAyB,EACzB,KAA+C,EAC/C,EAAE,QAAQ,EAAE,gBAAgB,EAAsB,EAClD,EAAE,CACF,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,iCAA0B,SAAS,EAAE,IAAA,aAAK,EAAC,IAAA,oCAAiB,EAAC,CAAC,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,aACrF,IAAA,yBAAW,EAAC,CAAC,CAAC,KAAK,CAAC,EACpB,CAAC,CAAC,EAAE,MAAM,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,IAAA,mBAAQ,EAAW,KAAK,EAAE,EAAE,QAAQ,EAAE,GAAG,gBAAgB,EAAE,CAAC,CAAC,KAF7E,WAAW,CAAC,EAAE,CAGlB,CACP,CAAC,CAAC"}
1
+ {"version":3,"file":"ApplicationForm.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationForm.tsx"],"names":[],"mappings":";;;AAAA,uDAAmE;AACnE,6DAA0D;AAC1D,wDAAqD;AACrD,wEAAqE;AACrE,kEAA+D;AAC/D,yDAAgF;AAGhF,mGAAgG;AAChG,oGAAiG;AACjG,oEAAiE;AACjE,8FAA2F;AAC3F,8DAA2D;AAC3D,kFAA6E;AAC7E,8EAA4E;AAC5E,oEAAiE;AAEjE,2FAAwF;AACxF,sDAAmD;AAEnD,6CAA0C;AAM1C,mDAAgD;AAChD,+DAA4E;AAC5E,mEAAgE;AAChE,qDAAkD;AASlD,MAAM,GAAG,GAAG,IAAA,+BAAc,GAAE,CAAC;AAEhB,QAAA,eAAe,GAAG,IAAA,mBAAQ;AACrC,kDAAkD;AAClD,CAAC,EACC,SAAS,EACT,KAAK,EACL,QAAQ,GAAG,EA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,qBAAqB,EAAE,SAAS,CAAC,EAClD,KAAK,EAAE,KAAK,KACR,IAAI,aAER,kCAAM,QAAQ,EAAE,QAAQ,aACrB,cAAc,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC,EAC/D,IAAA,6CAAqB,EAAC;wBACrB,qBAAqB,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,SAAS;wBAC7E,IAAI;wBACJ,MAAM;wBACN,QAAQ;qBACT,CAAC,IACG,EACN,UAAU,CAAC,CAAC,CAAC,IAAA,+BAAc,GAAE,CAAC,CAAC,CAAC,IAAI,IACf,CACzB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,CACrB,QAAyB,EACzB,KAA+C,EAC/C,EAAE,QAAQ,EAAE,gBAAgB,EAAsB,EAClD,EAAE,CACF,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,iCAA0B,SAAS,EAAE,IAAA,aAAK,EAAC,IAAA,oCAAiB,EAAC,CAAC,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,aACrF,IAAA,yBAAW,EAAC,CAAC,CAAC,KAAK,CAAC,EACpB,CAAC,CAAC,EAAE,MAAM,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,IAAA,mBAAQ,EAAW,KAAK,EAAE,EAAE,QAAQ,EAAE,GAAG,gBAAgB,EAAE,CAAC,CAAC,KAF7E,WAAW,CAAC,EAAE,CAGlB,CACP,CAAC,CAAC"}
@@ -32,7 +32,7 @@ export declare type FieldDef = Required & LabelProps & ConditionFieldProps & Fil
32
32
  defaultValue?: string;
33
33
  };
34
34
  /** @hidden */
35
- export declare type EndpointType = 'lead' | 'sendcorporatelead';
35
+ export declare type EndpointType = 'lead' | 'sendcorporatelead' | 'initcorporatelead';
36
36
  /**
37
37
  * @title Секция полей ввода
38
38
  */
@@ -1,13 +1,21 @@
1
+ import { type LeadRequest } from '../../api/LeadServiceAPI';
1
2
  export declare type CheckCodeBody = {
2
3
  smsText: string;
3
4
  smsCodesSetName: {
4
5
  key: 'AUTHENTICATION' | 'SEND_TASK';
5
6
  };
7
+ reqId?: string;
8
+ body?: LeadRequest;
6
9
  };
7
10
  export declare type CheckCodeResponse = {
8
11
  access_token: string;
9
12
  expires_in: number;
10
13
  refresh_token: string;
11
14
  };
12
- export declare const checkCode: (body: CheckCodeBody) => Promise<void>;
15
+ export declare type MainBody = {
16
+ code: string;
17
+ reqId: string;
18
+ body: LeadRequest;
19
+ };
20
+ export declare const checkCode: (body: CheckCodeBody, isRetail: boolean) => Promise<void>;
13
21
  export declare const saveToken: (data: CheckCodeResponse | null) => void;