@redneckz/wildless-cms-uni-blocks 0.14.700 → 0.14.702

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 (193) hide show
  1. package/bundle/api/RetailAPI/draftTasksKZO.d.ts +26 -0
  2. package/bundle/api/RetailAPI/getLastTaskStatus.d.ts +6 -0
  3. package/bundle/api/RetailAPI/getTaskById.d.ts +6 -0
  4. package/bundle/api/RetailAPI/updateUserTask.d.ts +8 -8
  5. package/bundle/bundle.umd.js +252 -30
  6. package/bundle/bundle.umd.min.js +1 -1
  7. package/bundle/components/ApplicationLeadForm/LeadFormState.d.ts +6 -6
  8. package/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +9 -0
  9. package/bundle/ui-kit/DraftDialog/DraftActionButton.d.ts +7 -0
  10. package/bundle/ui-kit/DraftDialog/DraftDialog.d.ts +7 -0
  11. package/bundle/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +4 -0
  12. package/bundle/ui-kit/DraftDialog/parseDraftTask.d.ts +3 -0
  13. package/bundle/ui-kit/DraftDialog/useDraftDialog.d.ts +10 -0
  14. package/bundle/ui-kit/DraftDialog/utils.d.ts +138 -0
  15. package/dist/api/RetailAPI/draftTasksKZO.d.ts +26 -0
  16. package/dist/api/RetailAPI/draftTasksKZO.js +9 -0
  17. package/dist/api/RetailAPI/draftTasksKZO.js.map +1 -0
  18. package/dist/api/RetailAPI/getLastTaskStatus.d.ts +6 -0
  19. package/dist/api/RetailAPI/getLastTaskStatus.js +9 -0
  20. package/dist/api/RetailAPI/getLastTaskStatus.js.map +1 -0
  21. package/dist/api/RetailAPI/getTaskById.d.ts +6 -0
  22. package/dist/api/RetailAPI/getTaskById.js +9 -0
  23. package/dist/api/RetailAPI/getTaskById.js.map +1 -0
  24. package/dist/api/RetailAPI/updateUserTask.d.ts +8 -8
  25. package/dist/components/ApplicationLeadForm/LeadFormState.d.ts +6 -6
  26. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +32 -21
  27. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  28. package/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +9 -0
  29. package/dist/components/ApplicationLeadForm/useSaveUserData.js +19 -0
  30. package/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -0
  31. package/dist/ui-kit/DraftDialog/DraftActionButton.d.ts +7 -0
  32. package/dist/ui-kit/DraftDialog/DraftActionButton.js +10 -0
  33. package/dist/ui-kit/DraftDialog/DraftActionButton.js.map +1 -0
  34. package/dist/ui-kit/DraftDialog/DraftDialog.d.ts +7 -0
  35. package/dist/ui-kit/DraftDialog/DraftDialog.js +43 -0
  36. package/dist/ui-kit/DraftDialog/DraftDialog.js.map +1 -0
  37. package/dist/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +4 -0
  38. package/dist/ui-kit/DraftDialog/EmptyDraftDialog.js +22 -0
  39. package/dist/ui-kit/DraftDialog/EmptyDraftDialog.js.map +1 -0
  40. package/dist/ui-kit/DraftDialog/parseDraftTask.d.ts +3 -0
  41. package/dist/ui-kit/DraftDialog/parseDraftTask.js +65 -0
  42. package/dist/ui-kit/DraftDialog/parseDraftTask.js.map +1 -0
  43. package/dist/ui-kit/DraftDialog/useDraftDialog.d.ts +10 -0
  44. package/dist/ui-kit/DraftDialog/useDraftDialog.js +16 -0
  45. package/dist/ui-kit/DraftDialog/useDraftDialog.js.map +1 -0
  46. package/dist/ui-kit/DraftDialog/utils.d.ts +138 -0
  47. package/dist/ui-kit/DraftDialog/utils.js +85 -0
  48. package/dist/ui-kit/DraftDialog/utils.js.map +1 -0
  49. package/lib/api/RetailAPI/draftTasksKZO.d.ts +26 -0
  50. package/lib/api/RetailAPI/draftTasksKZO.js +6 -0
  51. package/lib/api/RetailAPI/draftTasksKZO.js.map +1 -0
  52. package/lib/api/RetailAPI/getLastTaskStatus.d.ts +6 -0
  53. package/lib/api/RetailAPI/getLastTaskStatus.js +6 -0
  54. package/lib/api/RetailAPI/getLastTaskStatus.js.map +1 -0
  55. package/lib/api/RetailAPI/getTaskById.d.ts +6 -0
  56. package/lib/api/RetailAPI/getTaskById.js +6 -0
  57. package/lib/api/RetailAPI/getTaskById.js.map +1 -0
  58. package/lib/api/RetailAPI/updateUserTask.d.ts +8 -8
  59. package/lib/common.css +1 -1
  60. package/lib/components/ApplicationLeadForm/LeadFormState.d.ts +6 -6
  61. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +32 -21
  62. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  63. package/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +9 -0
  64. package/lib/components/ApplicationLeadForm/useSaveUserData.js +16 -0
  65. package/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -0
  66. package/lib/ui-kit/DraftDialog/DraftActionButton.d.ts +7 -0
  67. package/lib/ui-kit/DraftDialog/DraftActionButton.js +8 -0
  68. package/lib/ui-kit/DraftDialog/DraftActionButton.js.map +1 -0
  69. package/lib/ui-kit/DraftDialog/DraftDialog.d.ts +7 -0
  70. package/lib/ui-kit/DraftDialog/DraftDialog.js +41 -0
  71. package/lib/ui-kit/DraftDialog/DraftDialog.js.map +1 -0
  72. package/lib/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +4 -0
  73. package/lib/ui-kit/DraftDialog/EmptyDraftDialog.js +20 -0
  74. package/lib/ui-kit/DraftDialog/EmptyDraftDialog.js.map +1 -0
  75. package/lib/ui-kit/DraftDialog/parseDraftTask.d.ts +3 -0
  76. package/lib/ui-kit/DraftDialog/parseDraftTask.js +62 -0
  77. package/lib/ui-kit/DraftDialog/parseDraftTask.js.map +1 -0
  78. package/lib/ui-kit/DraftDialog/useDraftDialog.d.ts +10 -0
  79. package/lib/ui-kit/DraftDialog/useDraftDialog.js +13 -0
  80. package/lib/ui-kit/DraftDialog/useDraftDialog.js.map +1 -0
  81. package/lib/ui-kit/DraftDialog/utils.d.ts +138 -0
  82. package/lib/ui-kit/DraftDialog/utils.js +78 -0
  83. package/lib/ui-kit/DraftDialog/utils.js.map +1 -0
  84. package/mobile/bundle/api/RetailAPI/draftTasksKZO.d.ts +26 -0
  85. package/mobile/bundle/api/RetailAPI/getLastTaskStatus.d.ts +6 -0
  86. package/mobile/bundle/api/RetailAPI/getTaskById.d.ts +6 -0
  87. package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +8 -8
  88. package/mobile/bundle/bundle.umd.js +252 -30
  89. package/mobile/bundle/bundle.umd.min.js +1 -1
  90. package/mobile/bundle/components/ApplicationLeadForm/LeadFormState.d.ts +6 -6
  91. package/mobile/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +9 -0
  92. package/mobile/bundle/ui-kit/DraftDialog/DraftActionButton.d.ts +7 -0
  93. package/mobile/bundle/ui-kit/DraftDialog/DraftDialog.d.ts +7 -0
  94. package/mobile/bundle/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +4 -0
  95. package/mobile/bundle/ui-kit/DraftDialog/parseDraftTask.d.ts +3 -0
  96. package/mobile/bundle/ui-kit/DraftDialog/useDraftDialog.d.ts +10 -0
  97. package/mobile/bundle/ui-kit/DraftDialog/utils.d.ts +138 -0
  98. package/mobile/dist/api/RetailAPI/draftTasksKZO.d.ts +26 -0
  99. package/mobile/dist/api/RetailAPI/draftTasksKZO.js +9 -0
  100. package/mobile/dist/api/RetailAPI/draftTasksKZO.js.map +1 -0
  101. package/mobile/dist/api/RetailAPI/getLastTaskStatus.d.ts +6 -0
  102. package/mobile/dist/api/RetailAPI/getLastTaskStatus.js +9 -0
  103. package/mobile/dist/api/RetailAPI/getLastTaskStatus.js.map +1 -0
  104. package/mobile/dist/api/RetailAPI/getTaskById.d.ts +6 -0
  105. package/mobile/dist/api/RetailAPI/getTaskById.js +9 -0
  106. package/mobile/dist/api/RetailAPI/getTaskById.js.map +1 -0
  107. package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +8 -8
  108. package/mobile/dist/components/ApplicationLeadForm/LeadFormState.d.ts +6 -6
  109. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +32 -21
  110. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  111. package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +9 -0
  112. package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js +19 -0
  113. package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -0
  114. package/mobile/dist/ui-kit/DraftDialog/DraftActionButton.d.ts +7 -0
  115. package/mobile/dist/ui-kit/DraftDialog/DraftActionButton.js +10 -0
  116. package/mobile/dist/ui-kit/DraftDialog/DraftActionButton.js.map +1 -0
  117. package/mobile/dist/ui-kit/DraftDialog/DraftDialog.d.ts +7 -0
  118. package/mobile/dist/ui-kit/DraftDialog/DraftDialog.js +43 -0
  119. package/mobile/dist/ui-kit/DraftDialog/DraftDialog.js.map +1 -0
  120. package/mobile/dist/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +4 -0
  121. package/mobile/dist/ui-kit/DraftDialog/EmptyDraftDialog.js +22 -0
  122. package/mobile/dist/ui-kit/DraftDialog/EmptyDraftDialog.js.map +1 -0
  123. package/mobile/dist/ui-kit/DraftDialog/parseDraftTask.d.ts +3 -0
  124. package/mobile/dist/ui-kit/DraftDialog/parseDraftTask.js +65 -0
  125. package/mobile/dist/ui-kit/DraftDialog/parseDraftTask.js.map +1 -0
  126. package/mobile/dist/ui-kit/DraftDialog/useDraftDialog.d.ts +10 -0
  127. package/mobile/dist/ui-kit/DraftDialog/useDraftDialog.js +16 -0
  128. package/mobile/dist/ui-kit/DraftDialog/useDraftDialog.js.map +1 -0
  129. package/mobile/dist/ui-kit/DraftDialog/utils.d.ts +138 -0
  130. package/mobile/dist/ui-kit/DraftDialog/utils.js +85 -0
  131. package/mobile/dist/ui-kit/DraftDialog/utils.js.map +1 -0
  132. package/mobile/lib/api/RetailAPI/draftTasksKZO.d.ts +26 -0
  133. package/mobile/lib/api/RetailAPI/draftTasksKZO.js +6 -0
  134. package/mobile/lib/api/RetailAPI/draftTasksKZO.js.map +1 -0
  135. package/mobile/lib/api/RetailAPI/getLastTaskStatus.d.ts +6 -0
  136. package/mobile/lib/api/RetailAPI/getLastTaskStatus.js +6 -0
  137. package/mobile/lib/api/RetailAPI/getLastTaskStatus.js.map +1 -0
  138. package/mobile/lib/api/RetailAPI/getTaskById.d.ts +6 -0
  139. package/mobile/lib/api/RetailAPI/getTaskById.js +6 -0
  140. package/mobile/lib/api/RetailAPI/getTaskById.js.map +1 -0
  141. package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +8 -8
  142. package/mobile/lib/common.css +1 -1
  143. package/mobile/lib/components/ApplicationLeadForm/LeadFormState.d.ts +6 -6
  144. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +32 -21
  145. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  146. package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +9 -0
  147. package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js +16 -0
  148. package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -0
  149. package/mobile/lib/ui-kit/DraftDialog/DraftActionButton.d.ts +7 -0
  150. package/mobile/lib/ui-kit/DraftDialog/DraftActionButton.js +8 -0
  151. package/mobile/lib/ui-kit/DraftDialog/DraftActionButton.js.map +1 -0
  152. package/mobile/lib/ui-kit/DraftDialog/DraftDialog.d.ts +7 -0
  153. package/mobile/lib/ui-kit/DraftDialog/DraftDialog.js +41 -0
  154. package/mobile/lib/ui-kit/DraftDialog/DraftDialog.js.map +1 -0
  155. package/mobile/lib/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +4 -0
  156. package/mobile/lib/ui-kit/DraftDialog/EmptyDraftDialog.js +20 -0
  157. package/mobile/lib/ui-kit/DraftDialog/EmptyDraftDialog.js.map +1 -0
  158. package/mobile/lib/ui-kit/DraftDialog/parseDraftTask.d.ts +3 -0
  159. package/mobile/lib/ui-kit/DraftDialog/parseDraftTask.js +62 -0
  160. package/mobile/lib/ui-kit/DraftDialog/parseDraftTask.js.map +1 -0
  161. package/mobile/lib/ui-kit/DraftDialog/useDraftDialog.d.ts +10 -0
  162. package/mobile/lib/ui-kit/DraftDialog/useDraftDialog.js +13 -0
  163. package/mobile/lib/ui-kit/DraftDialog/useDraftDialog.js.map +1 -0
  164. package/mobile/lib/ui-kit/DraftDialog/utils.d.ts +138 -0
  165. package/mobile/lib/ui-kit/DraftDialog/utils.js +78 -0
  166. package/mobile/lib/ui-kit/DraftDialog/utils.js.map +1 -0
  167. package/mobile/src/api/RetailAPI/draftTasksKZO.ts +33 -0
  168. package/mobile/src/api/RetailAPI/getLastTaskStatus.ts +21 -0
  169. package/mobile/src/api/RetailAPI/getTaskById.ts +12 -0
  170. package/mobile/src/api/RetailAPI/updateUserTask.ts +8 -8
  171. package/mobile/src/components/ApplicationLeadForm/LeadFormState.ts +6 -6
  172. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +31 -33
  173. package/mobile/src/components/ApplicationLeadForm/useSaveUserData.ts +29 -0
  174. package/mobile/src/ui-kit/DraftDialog/DraftActionButton.tsx +32 -0
  175. package/mobile/src/ui-kit/DraftDialog/DraftDialog.tsx +91 -0
  176. package/mobile/src/ui-kit/DraftDialog/EmptyDraftDialog.tsx +47 -0
  177. package/mobile/src/ui-kit/DraftDialog/parseDraftTask.ts +123 -0
  178. package/mobile/src/ui-kit/DraftDialog/useDraftDialog.tsx +21 -0
  179. package/mobile/src/ui-kit/DraftDialog/utils.ts +148 -0
  180. package/package.json +1 -1
  181. package/src/api/RetailAPI/draftTasksKZO.ts +33 -0
  182. package/src/api/RetailAPI/getLastTaskStatus.ts +21 -0
  183. package/src/api/RetailAPI/getTaskById.ts +12 -0
  184. package/src/api/RetailAPI/updateUserTask.ts +8 -8
  185. package/src/components/ApplicationLeadForm/LeadFormState.ts +6 -6
  186. package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +31 -33
  187. package/src/components/ApplicationLeadForm/useSaveUserData.ts +29 -0
  188. package/src/ui-kit/DraftDialog/DraftActionButton.tsx +32 -0
  189. package/src/ui-kit/DraftDialog/DraftDialog.tsx +91 -0
  190. package/src/ui-kit/DraftDialog/EmptyDraftDialog.tsx +47 -0
  191. package/src/ui-kit/DraftDialog/parseDraftTask.ts +123 -0
  192. package/src/ui-kit/DraftDialog/useDraftDialog.tsx +21 -0
  193. package/src/ui-kit/DraftDialog/utils.ts +148 -0
@@ -0,0 +1,62 @@
1
+ import { getParticipantAddresses, getParticipantContacts, getParticipantGender, getParticipantIncomes, getSelectValue, } from './utils.js';
2
+ export const parseDraftTask = (task) => {
3
+ const participant = task.participants[0];
4
+ const { loanAmount: moneyValue, creditPeriod: monthsValue, paymentTypeCd } = task;
5
+ const { currencyCode: currency, paymentSystemTypeCd: paymentSystem, classCard: cardCategory, codeWord, birthDate: limitedBirthday, midname: middleName, name, surname, birthPlace, dulIssueDate: dulIssueDateField, dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, educationLevelCd: education, registrationDate: participantDateRegistration, houseTypeCd: housing, genderCd, participantContacts = [], participantAddresses = [], employmentContractDate: beginDate, employmentTypeCd: employment, organizationName, organizationInn: inn, organizationActivityTypeCd: employerActivities, organizationTypeCd: organization, organizationKindCd: employerOrganization, employeesNumberCd: amountWorkers, opf: legalForm, seniority: generalSeniority, generalSeniority: experience5Years, jobsNumber, lastWorkDuration: lastJobExperience, positionCd: positionOrganization, maritalStatusCd: familyStatus, childrenDependents: children, totalDependents: familyMembers, otherDependents: dependents, militaryStatusCd: conscription, participantIncomes, snils, armyIdFlg, bankruptcyFlg, shareholderFlg, nameLegalEntity: legalEntityName, creditInRshbCd, payrollCardRshbFlg: isInsurance, consentInsuranceFlg: isSalaryClient, } = participant;
6
+ return {
7
+ currency: currency?.key,
8
+ paymentSystem,
9
+ cardCategory: getSelectValue(cardCategory),
10
+ codeWord,
11
+ limitedBirthday,
12
+ middleName,
13
+ name,
14
+ surname,
15
+ birthPlace,
16
+ dulIssueDateField,
17
+ dulIssuedBy,
18
+ dulNumber,
19
+ dulSerie,
20
+ dulSubdivisionCode,
21
+ education: getSelectValue(education),
22
+ participantDateRegistration,
23
+ housing: getSelectValue(housing),
24
+ beginDate,
25
+ employment: getSelectValue(employment),
26
+ organizationName,
27
+ inn,
28
+ employerActivities: getSelectValue(employerActivities),
29
+ organization: getSelectValue(organization),
30
+ employerOrganization: getSelectValue(employerOrganization),
31
+ amountWorkers: getSelectValue(amountWorkers),
32
+ legalForm,
33
+ generalSeniority: generalSeniority?.toString(),
34
+ experience5Years: experience5Years?.toString(),
35
+ jobsNumber: jobsNumber?.toString(),
36
+ lastJobExperience: lastJobExperience?.toString(),
37
+ positionOrganization: getSelectValue(positionOrganization),
38
+ familyStatus: getSelectValue(familyStatus),
39
+ children: children?.toString(),
40
+ familyMembers: familyMembers?.toString(),
41
+ dependents: dependents?.toString(),
42
+ conscription: getSelectValue(conscription),
43
+ snils,
44
+ armyIdFlg,
45
+ bankruptcyFlg,
46
+ shareholderFlg,
47
+ legalEntityName,
48
+ creditInRshbCd: getSelectValue(creditInRshbCd),
49
+ calculator: {
50
+ isInsurance,
51
+ isSalaryClient,
52
+ moneyValue,
53
+ monthsValue,
54
+ isAnnuity: paymentTypeCd?.key === 'ANNUITY',
55
+ },
56
+ ...getParticipantIncomes(participantIncomes),
57
+ ...getParticipantAddresses(participantAddresses),
58
+ ...getParticipantContacts(participantContacts),
59
+ ...getParticipantGender(genderCd),
60
+ };
61
+ };
62
+ //# sourceMappingURL=parseDraftTask.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseDraftTask.js","sourceRoot":"","sources":["../../../src/ui-kit/DraftDialog/parseDraftTask.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,GACf,MAAM,SAAS,CAAC;AAEjB,MAAM,CAAC,M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c;YACd,UAAU;YACV,WAAW;YACX,SAAS,EAAE,aAAa,EAAE,GAAG,KAAK,SAAS;SAC5C;QACD,GAAG,qBAAqB,CAAC,kBAAkB,CAAC;QAC5C,GAAG,uBAAuB,CAAC,oBAAoB,CAAC;QAChD,GAAG,sBAAsB,CAAC,mBAAmB,CAAC;QAC9C,GAAG,oBAAoB,CAAC,QAAQ,CAAC;KAClC,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { type Task } from '../../api/RetailAPI/draftTasksKZO';
2
+ declare type useDraftDialogOpenProps = {
3
+ task?: Task;
4
+ isFromLead?: boolean;
5
+ onClose?: () => void;
6
+ };
7
+ export declare const useDraftDialog: () => {
8
+ open: ({ task, isFromLead, onClose }: useDraftDialogOpenProps) => void;
9
+ };
10
+ export {};
@@ -0,0 +1,13 @@
1
+ import { useDialog } from '../DialogManager/useDialog.js';
2
+ import { DraftDialog } from './DraftDialog.js';
3
+ import { EmptyDraftDialog } from './EmptyDraftDialog.js';
4
+ export const useDraftDialog = () => {
5
+ const { open: openDraftDialog } = useDialog(DraftDialog);
6
+ const { open: openEmptyDraftDialog } = useDialog(EmptyDraftDialog);
7
+ return {
8
+ open: ({ task, isFromLead, onClose }) => {
9
+ task ? openDraftDialog({ task, isFromLead, onClose }) : openEmptyDraftDialog({});
10
+ },
11
+ };
12
+ };
13
+ //# sourceMappingURL=useDraftDialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDraftDialog.js","sourceRoot":"","sources":["../../../src/ui-kit/DraftDialog/useDraftDialog.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQtD,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;IACzD,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,GAAG,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAEnE,OAAO;QACL,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAA2B,EAAE,EAAE;YAC/D,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;QACnF,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,138 @@
1
+ import { type LeadProps } from '../../api/RetailAPI/model/LeadFormData';
2
+ import { type Participant } from '../../api/RetailAPI/updateUserTask';
3
+ import { type Option } from '../Select/Option';
4
+ export declare const enum EContactType {
5
+ MainPhone = "MAIN_PHONE",
6
+ SecondPhone = "SECOND_PHONE",
7
+ HomePhoneFact = "HOME_PHONE_FACT",
8
+ HomePhoneReg = "HOME_PHONE_REG",
9
+ OrganizationPhone = "ORGANIZATION_PHONE",
10
+ EMail = "EMAIL"
11
+ }
12
+ export declare const enum EAddressType {
13
+ REGISTRATION = "REGISTRATION",
14
+ RESIDENTAL = "RESIDENTAL",
15
+ WORK = "WORK"
16
+ }
17
+ export declare const enum EIncomesType {
18
+ INCOME_AVERAGE = "INCOME_AVERAGE",
19
+ MANDATORY_PAYMENTS = "MANDATORY_PAYMENTS",
20
+ ADDITIONAL_INCOME = "ADDITIONAL_INCOME",
21
+ OTHER_INCOME = "OTHER_INCOME",
22
+ OTHER_PAYMENTS = "OTHER_PAYMENTS",
23
+ RENTAL_INCOME = "RENTAL_INCOME",
24
+ WAGES = "WAGES",
25
+ RETIREMENT_INCOME = "RETIREMENT_INCOME"
26
+ }
27
+ export declare const creditCodesToProgrammIdMap: {
28
+ credit_cash: string;
29
+ credit_cash_single_doc: string;
30
+ credit_mcx: string;
31
+ family_offer_credit: string;
32
+ gas_engine_fuel: string;
33
+ pension_credit: string;
34
+ ref_credit: string;
35
+ ref_credit_single_doc: string;
36
+ self_employed: string;
37
+ summer_cash: string;
38
+ summer_cash_pens: string;
39
+ };
40
+ export declare const cardCodesToProgrammIdMap: {
41
+ amur_card: string;
42
+ owner_card: string;
43
+ travel_card: string;
44
+ };
45
+ export declare const creditProgramCodeToProductIdMap: {
46
+ amur_card: string;
47
+ owner_card: string;
48
+ travel_card: string;
49
+ credit_cash: string;
50
+ credit_cash_single_doc: string;
51
+ credit_mcx: string;
52
+ family_offer_credit: string;
53
+ gas_engine_fuel: string;
54
+ pension_credit: string;
55
+ ref_credit: string;
56
+ ref_credit_single_doc: string;
57
+ self_employed: string;
58
+ summer_cash: string;
59
+ summer_cash_pens: string;
60
+ };
61
+ export declare const getParticipantIncomes: (participantIncomes: Participant['participantIncomes']) => {
62
+ wages: number | undefined;
63
+ mandatoryPayments: number | undefined;
64
+ incomeAverage: number | undefined;
65
+ additionalIncome: number | undefined;
66
+ otherIncome: number | undefined;
67
+ otherPayments: number | undefined;
68
+ rentalIncome: number | undefined;
69
+ retirementIncome: number | undefined;
70
+ };
71
+ export declare const getParticipantAddresses: (participantAddresses: Participant['participantAddresses']) => {
72
+ addressRegistration: {
73
+ addressType: {
74
+ key: "REGISTRATION" | "RESIDENTAL" | "WORK";
75
+ };
76
+ apartment: string;
77
+ block: string;
78
+ building: string;
79
+ city: string;
80
+ district: string;
81
+ fiasCode: string;
82
+ fullAddress: string;
83
+ house: string;
84
+ locality: string;
85
+ okatoRegionCode: string;
86
+ postcode: string;
87
+ region: string;
88
+ regionCode: string;
89
+ street: string;
90
+ } | undefined;
91
+ addressFact: {
92
+ addressType: {
93
+ key: "REGISTRATION" | "RESIDENTAL" | "WORK";
94
+ };
95
+ apartment: string;
96
+ block: string;
97
+ building: string;
98
+ city: string;
99
+ district: string;
100
+ fiasCode: string;
101
+ fullAddress: string;
102
+ house: string;
103
+ locality: string;
104
+ okatoRegionCode: string;
105
+ postcode: string;
106
+ region: string;
107
+ regionCode: string;
108
+ street: string;
109
+ } | undefined;
110
+ organizationAddress: {
111
+ addressType: {
112
+ key: "REGISTRATION" | "RESIDENTAL" | "WORK";
113
+ };
114
+ apartment: string;
115
+ block: string;
116
+ building: string;
117
+ city: string;
118
+ district: string;
119
+ fiasCode: string;
120
+ fullAddress: string;
121
+ house: string;
122
+ locality: string;
123
+ okatoRegionCode: string;
124
+ postcode: string;
125
+ region: string;
126
+ regionCode: string;
127
+ street: string;
128
+ } | undefined;
129
+ };
130
+ export declare const getParticipantContacts: (participantContacts: Participant['participantContacts']) => {
131
+ email: string | undefined;
132
+ phone: string | undefined;
133
+ organizationPhone: string | undefined;
134
+ };
135
+ export declare const getParticipantGender: (gender: Participant['genderCd']) => {
136
+ sex: string;
137
+ } | null;
138
+ export declare const getSelectValue: (option?: LeadProps) => Option | undefined;
@@ -0,0 +1,78 @@
1
+ export const creditCodesToProgrammIdMap = {
2
+ credit_cash: '10',
3
+ credit_cash_single_doc: '28',
4
+ credit_mcx: '39',
5
+ family_offer_credit: '41',
6
+ gas_engine_fuel: '33',
7
+ pension_credit: '12',
8
+ ref_credit: '11',
9
+ ref_credit_single_doc: '29',
10
+ self_employed: '34',
11
+ summer_cash: '35',
12
+ summer_cash_pens: '36',
13
+ };
14
+ export const cardCodesToProgrammIdMap = {
15
+ amur_card: '14',
16
+ owner_card: '13',
17
+ travel_card: '15',
18
+ };
19
+ export const creditProgramCodeToProductIdMap = {
20
+ ...creditCodesToProgrammIdMap,
21
+ ...cardCodesToProgrammIdMap,
22
+ };
23
+ export const getParticipantIncomes = (participantIncomes) => {
24
+ const wages = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "WAGES" /* EIncomesType.WAGES */)?.value;
25
+ const mandatoryPayments = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "MANDATORY_PAYMENTS" /* EIncomesType.MANDATORY_PAYMENTS */)?.value;
26
+ const incomeAverage = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "INCOME_AVERAGE" /* EIncomesType.INCOME_AVERAGE */)?.value;
27
+ const additionalIncome = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "ADDITIONAL_INCOME" /* EIncomesType.ADDITIONAL_INCOME */)?.value;
28
+ const otherIncome = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "OTHER_INCOME" /* EIncomesType.OTHER_INCOME */)?.value;
29
+ const otherPayments = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "OTHER_PAYMENTS" /* EIncomesType.OTHER_PAYMENTS */)?.value;
30
+ const rentalIncome = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "RENTAL_INCOME" /* EIncomesType.RENTAL_INCOME */)?.value;
31
+ const retirementIncome = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "RETIREMENT_INCOME" /* EIncomesType.RETIREMENT_INCOME */)?.value;
32
+ return {
33
+ wages,
34
+ mandatoryPayments,
35
+ incomeAverage,
36
+ additionalIncome,
37
+ otherIncome,
38
+ otherPayments,
39
+ rentalIncome,
40
+ retirementIncome,
41
+ };
42
+ };
43
+ export const getParticipantAddresses = (participantAddresses) => {
44
+ const addressRegistration = participantAddresses?.find((address) => address.addressType.key === "REGISTRATION" /* EAddressType.REGISTRATION */);
45
+ const addressFact = participantAddresses?.find((address) => address.addressType.key === "RESIDENTAL" /* EAddressType.RESIDENTAL */);
46
+ const organizationAddress = participantAddresses?.find((address) => address.addressType.key === "WORK" /* EAddressType.WORK */);
47
+ return {
48
+ addressRegistration,
49
+ addressFact,
50
+ organizationAddress,
51
+ };
52
+ };
53
+ export const getParticipantContacts = (participantContacts) => {
54
+ const email = participantContacts?.find((contact) => contact.contactTypeCd.key === "EMAIL" /* EContactType.EMail */)?.value;
55
+ const phone = participantContacts?.find((contact) => contact.contactTypeCd.key === "MAIN_PHONE" /* EContactType.MainPhone */)?.value;
56
+ const organizationPhone = participantContacts?.find((contact) => contact.contactTypeCd.key === "ORGANIZATION_PHONE" /* EContactType.OrganizationPhone */)?.value;
57
+ return {
58
+ email,
59
+ phone,
60
+ organizationPhone,
61
+ };
62
+ };
63
+ export const getParticipantGender = (gender) => {
64
+ return gender?.key
65
+ ? {
66
+ sex: gender.key === 'MAN' ? 'male' : 'female',
67
+ }
68
+ : null;
69
+ };
70
+ export const getSelectValue = (option) => {
71
+ return option?.key
72
+ ? {
73
+ key: option.key,
74
+ text: option.value,
75
+ }
76
+ : undefined;
77
+ };
78
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/ui-kit/DraftDialog/utils.ts"],"names":[],"mappings":"AA+BA,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,WAAW,EAAE,IAAI;IACjB,sBAAsB,EAAE,IAAI;IAC5B,UAAU,EAAE,IAAI;IAChB,mBAAmB,EAAE,IAAI;IACzB,eAAe,EAAE,IAAI;IACrB,cAAc,EAAE,IAAI;IACpB,UAAU,EAAE,IAAI;IAChB,qBAAqB,EAAE,IAAI;IAC3B,aAAa,EAAE,IAAI;IACnB,WAAW,EAAE,IAAI;IACjB,gBAAgB,EAAE,IAAI;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,IAAI;IAChB,WAAW,EAAE,IAAI;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,GAAG,0BAA0B;IAC7B,GAAG,wBAAwB;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,kBAAqD,EAAE,EAAE;IAC7F,MAAM,KAAK,GAAG,kBAAkB,EAAE,IAAI,CACpC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,GAAG,qCAAuB,CAC7D,EAAE,KAAK,CAAC;IACT,MAAM,iBAAiB,GAAG,kBAAkB,EAAE,IAAI,CAChD,CAAC,OAAO,EAAE,EAAE,CAAC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AM,cAAc,GAAG,CAAC,MAAkB,EAAsB,EAAE;IACvE,OAAO,MAAM,EAAE,GAAG;QAChB,CAAC,CAAC;YACE,GAAG,EAAE,MAAM,CAAC,GAAG;YACf,IAAI,EAAE,MAAM,CAAC,KAAK;SACnB;QACH,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { type Participant, type PaymentType } from './updateUserTask';
2
+ export declare type Task = {
3
+ courierDeliveryFlg?: boolean;
4
+ creditPeriod?: number;
5
+ creditProgram: {
6
+ code: string;
7
+ name: string;
8
+ };
9
+ deliveryComment?: string;
10
+ deliveryDate?: string;
11
+ deliveryTimeCd?: {
12
+ value: string;
13
+ };
14
+ id: number;
15
+ loanAmount?: number;
16
+ office?: {
17
+ id: string;
18
+ };
19
+ participants: Participant[];
20
+ paymentTypeCd?: PaymentType;
21
+ };
22
+ declare type DraftTaskKZOResponse = {
23
+ tasks: Array<Task>;
24
+ };
25
+ export declare const draftTasksKZO: () => Promise<DraftTaskKZOResponse['tasks']>;
26
+ export {};
@@ -0,0 +1,6 @@
1
+ declare type GetLastTaskStatusBody = {
2
+ profileId: number;
3
+ programId: string;
4
+ };
5
+ export declare const getLastTaskStatus: (body: GetLastTaskStatusBody) => Promise<number | null>;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { type Task } from './draftTasksKZO';
2
+ declare type GetTaskByIdBody = {
3
+ taskId: number;
4
+ };
5
+ export declare const getTaskById: (body: GetTaskByIdBody) => Promise<Task | undefined>;
6
+ export {};
@@ -38,12 +38,12 @@ export declare type Participant = {
38
38
  midname?: string;
39
39
  name?: string;
40
40
  surname?: string;
41
- profile?: {
41
+ profile: {
42
42
  id: number;
43
43
  };
44
44
  armyIdFlg?: boolean;
45
45
  birthPlace?: string;
46
- childrenDependents?: number;
46
+ childrenDependents?: string;
47
47
  genderCd?: Option;
48
48
  dulIssueDate?: string;
49
49
  dulIssuedBy?: string;
@@ -54,13 +54,13 @@ export declare type Participant = {
54
54
  employeesNumberCd?: Option;
55
55
  employmentContractDate?: string;
56
56
  employmentTypeCd?: Option;
57
- generalSeniority?: number;
57
+ generalSeniority?: string;
58
58
  homeMatchFlg?: boolean;
59
59
  houseTypeCd?: Option;
60
60
  incomeCertificateCd?: Option;
61
61
  initiateBankruptcyFlg?: boolean;
62
- jobsNumber?: number;
63
- lastWorkDuration?: number;
62
+ jobsNumber?: string;
63
+ lastWorkDuration?: string;
64
64
  maritalStatusCd?: Option;
65
65
  militaryStatusCd?: Option;
66
66
  organizationActivityTypeCd?: Option;
@@ -68,7 +68,7 @@ export declare type Participant = {
68
68
  organizationKindCd?: Option;
69
69
  organizationName?: string;
70
70
  organizationTypeCd?: Option;
71
- otherDependents?: number;
71
+ otherDependents?: string;
72
72
  ownershipShare?: string;
73
73
  opf?: string;
74
74
  participantAddresses?: ParticipantAddress[];
@@ -80,14 +80,14 @@ export declare type Participant = {
80
80
  seniority?: string;
81
81
  seniorityInterruptionsFlg?: boolean;
82
82
  snils?: string;
83
- totalDependents?: number;
83
+ totalDependents?: string;
84
84
  bankruptcyFlg?: boolean;
85
85
  shareholderFlg?: boolean;
86
86
  nameLegalEntity?: string;
87
87
  creditInRshbCd?: Option;
88
88
  participantContacts?: Array<{
89
89
  contactTypeCd: {
90
- key: 'EMAIL' | 'MAIN_PHONE';
90
+ key: 'EMAIL' | 'MAIN_PHONE' | 'ORGANIZATION_PHONE';
91
91
  };
92
92
  value: string;
93
93
  }>;