@redneckz/wildless-cms-uni-blocks 0.14.987 → 0.14.989

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 (113) hide show
  1. package/bundle/bundle.umd.js +28 -16
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/CreditForm/getCreditInfo.d.ts +4 -0
  4. package/bundle/retail/inputs.d.ts +0 -1
  5. package/bundle/retail/model/LeadFormState.d.ts +1 -1
  6. package/bundle/retail/model/NameFieldDef.d.ts +1 -1
  7. package/dist/components/ApplicationLeadForm/applicationFormData.js +0 -1
  8. package/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
  9. package/dist/components/ApplicationLeadForm/consents.js +1 -5
  10. package/dist/components/ApplicationLeadForm/consents.js.map +1 -1
  11. package/dist/components/ApplicationLeadForm/getInitialFormState.js +0 -1
  12. package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  13. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -2
  14. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  15. package/dist/components/CreditForm/PendingStatusContent.js +5 -3
  16. package/dist/components/CreditForm/PendingStatusContent.js.map +1 -1
  17. package/dist/components/CreditForm/SuccessStatusContent.js +4 -2
  18. package/dist/components/CreditForm/SuccessStatusContent.js.map +1 -1
  19. package/dist/components/CreditForm/getCreditInfo.d.ts +4 -0
  20. package/dist/components/CreditForm/getCreditInfo.js +21 -0
  21. package/dist/components/CreditForm/getCreditInfo.js.map +1 -0
  22. package/dist/retail/inputs.d.ts +0 -1
  23. package/dist/retail/inputs.js +0 -1
  24. package/dist/retail/inputs.js.map +1 -1
  25. package/dist/retail/model/LeadFormState.d.ts +1 -1
  26. package/dist/retail/model/NameFieldDef.d.ts +1 -1
  27. package/lib/components/ApplicationLeadForm/applicationFormData.js +0 -1
  28. package/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
  29. package/lib/components/ApplicationLeadForm/consents.js +1 -5
  30. package/lib/components/ApplicationLeadForm/consents.js.map +1 -1
  31. package/lib/components/ApplicationLeadForm/getInitialFormState.js +0 -1
  32. package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  33. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -2
  34. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  35. package/lib/components/CreditForm/PendingStatusContent.js +5 -3
  36. package/lib/components/CreditForm/PendingStatusContent.js.map +1 -1
  37. package/lib/components/CreditForm/SuccessStatusContent.js +4 -2
  38. package/lib/components/CreditForm/SuccessStatusContent.js.map +1 -1
  39. package/lib/components/CreditForm/getCreditInfo.d.ts +4 -0
  40. package/lib/components/CreditForm/getCreditInfo.js +18 -0
  41. package/lib/components/CreditForm/getCreditInfo.js.map +1 -0
  42. package/lib/retail/inputs.d.ts +0 -1
  43. package/lib/retail/inputs.js +0 -1
  44. package/lib/retail/inputs.js.map +1 -1
  45. package/lib/retail/model/LeadFormState.d.ts +1 -1
  46. package/lib/retail/model/NameFieldDef.d.ts +1 -1
  47. package/mobile/bundle/bundle.umd.js +28 -16
  48. package/mobile/bundle/bundle.umd.min.js +1 -1
  49. package/mobile/bundle/components/CreditForm/getCreditInfo.d.ts +4 -0
  50. package/mobile/bundle/retail/inputs.d.ts +0 -1
  51. package/mobile/bundle/retail/model/LeadFormState.d.ts +1 -1
  52. package/mobile/bundle/retail/model/NameFieldDef.d.ts +1 -1
  53. package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js +0 -1
  54. package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
  55. package/mobile/dist/components/ApplicationLeadForm/consents.js +1 -5
  56. package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -1
  57. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +0 -1
  58. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  59. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -2
  60. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  61. package/mobile/dist/components/CreditForm/PendingStatusContent.js +5 -3
  62. package/mobile/dist/components/CreditForm/PendingStatusContent.js.map +1 -1
  63. package/mobile/dist/components/CreditForm/SuccessStatusContent.js +4 -2
  64. package/mobile/dist/components/CreditForm/SuccessStatusContent.js.map +1 -1
  65. package/mobile/dist/components/CreditForm/getCreditInfo.d.ts +4 -0
  66. package/mobile/dist/components/CreditForm/getCreditInfo.js +21 -0
  67. package/mobile/dist/components/CreditForm/getCreditInfo.js.map +1 -0
  68. package/mobile/dist/retail/inputs.d.ts +0 -1
  69. package/mobile/dist/retail/inputs.js +0 -1
  70. package/mobile/dist/retail/inputs.js.map +1 -1
  71. package/mobile/dist/retail/model/LeadFormState.d.ts +1 -1
  72. package/mobile/dist/retail/model/NameFieldDef.d.ts +1 -1
  73. package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js +0 -1
  74. package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
  75. package/mobile/lib/components/ApplicationLeadForm/consents.js +1 -5
  76. package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -1
  77. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +0 -1
  78. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  79. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -2
  80. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  81. package/mobile/lib/components/CreditForm/PendingStatusContent.js +5 -3
  82. package/mobile/lib/components/CreditForm/PendingStatusContent.js.map +1 -1
  83. package/mobile/lib/components/CreditForm/SuccessStatusContent.js +4 -2
  84. package/mobile/lib/components/CreditForm/SuccessStatusContent.js.map +1 -1
  85. package/mobile/lib/components/CreditForm/getCreditInfo.d.ts +4 -0
  86. package/mobile/lib/components/CreditForm/getCreditInfo.js +18 -0
  87. package/mobile/lib/components/CreditForm/getCreditInfo.js.map +1 -0
  88. package/mobile/lib/retail/inputs.d.ts +0 -1
  89. package/mobile/lib/retail/inputs.js +0 -1
  90. package/mobile/lib/retail/inputs.js.map +1 -1
  91. package/mobile/lib/retail/model/LeadFormState.d.ts +1 -1
  92. package/mobile/lib/retail/model/NameFieldDef.d.ts +1 -1
  93. package/mobile/src/components/ApplicationLeadForm/applicationFormData.tsx +0 -1
  94. package/mobile/src/components/ApplicationLeadForm/consents.ts +1 -5
  95. package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +0 -1
  96. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +0 -2
  97. package/mobile/src/components/CreditForm/PendingStatusContent.tsx +6 -3
  98. package/mobile/src/components/CreditForm/SuccessStatusContent.tsx +5 -2
  99. package/mobile/src/components/CreditForm/getCreditInfo.ts +17 -0
  100. package/mobile/src/retail/inputs.tsx +0 -1
  101. package/mobile/src/retail/model/LeadFormState.ts +1 -1
  102. package/mobile/src/retail/model/NameFieldDef.ts +0 -1
  103. package/package.json +1 -1
  104. package/src/components/ApplicationLeadForm/applicationFormData.tsx +0 -1
  105. package/src/components/ApplicationLeadForm/consents.ts +1 -5
  106. package/src/components/ApplicationLeadForm/getInitialFormState.tsx +0 -1
  107. package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +0 -2
  108. package/src/components/CreditForm/PendingStatusContent.tsx +6 -3
  109. package/src/components/CreditForm/SuccessStatusContent.tsx +5 -2
  110. package/src/components/CreditForm/getCreditInfo.ts +17 -0
  111. package/src/retail/inputs.tsx +0 -1
  112. package/src/retail/model/LeadFormState.ts +1 -1
  113. package/src/retail/model/NameFieldDef.ts +0 -1
@@ -1,5 +1,5 @@
1
1
  declare type NameFieldApplicationBaseDef = 'surname' | 'name' | 'middleName' | 'limitedBirthday' | 'email' | 'phone' | 'inn';
2
- declare type NameFieldConsentDef = 'processPersonalDataFlg' | 'consentProviderFlg' | 'consentInformFlg' | 'consentPfrFlg' | 'consentOthersFlg' | 'consentInformMaterialsFlg' | 'consentPhotoFlg' | 'consentFATCA';
2
+ declare type NameFieldConsentDef = 'processPersonalDataFlg' | 'consentProviderFlg' | 'consentInformFlg' | 'consentPfrFlg' | 'consentOthersFlg' | 'consentPhotoFlg' | 'consentFATCA';
3
3
  declare type NameFieldCreditCardDef = 'addressCourier' | 'paymentSystem' | 'currency' | 'cardCategory' | 'codeWord' | 'confirmationIncome' | 'methodObtain' | 'deliveryDate' | 'regionHasDelivery' | 'latinName' | 'isMomentDebitCard' | 'latinSurname';
4
4
  declare type NameFieldRetailDef = 'organization' | 'organizationAddress' | 'organizationPhone' | 'organizationName' | 'isDadataOrganization' | 'legalForm' | 'generalSeniority' | 'lastJobExperience' | 'experience5Years' | 'jobsNumber' | 'beginDate' | 'addressFact' | 'addressRegistration' | 'addressRetail' | 'addressMatch' | 'sex' | 'birthPlace' | 'education' | 'housing' | 'amountWorkers' | 'employment' | 'employerActivities' | 'employerOrganization' | 'positionOrganization' | 'familyStatus' | 'familyMembers' | 'children' | 'dependents' | 'snils' | 'conscription' | 'armyIdFlg' | 'dulSerie' | 'dulNumber' | 'dulIssueDate' | 'dulSubdivisionCode' | 'dulIssuedBy' | 'participantDateRegistration' | 'retirementIncome' | 'rentalIncome' | 'otherIncome' | 'otherPayments' | 'additionalIncome' | 'wages' | 'mandatoryPayments' | 'bankruptcyFlg' | 'initiateBankruptcyFlg' | 'shareholderFlg' | 'legalEntityName' | 'creditInRshbCd' | 'bankEmployeeCode' | 'partInBusiness' | 'regionRetail' | 'calculator' | 'infoCard' | 'deliveryTime' | 'esiaAccountTypeCd' | 'comment';
5
5
  export declare type NameFieldDef = NameFieldApplicationBaseDef | NameFieldConsentDef | NameFieldRetailDef | NameFieldCreditCardDef;
@@ -11,7 +11,6 @@ export const getApplicationFormData = (productType: ProductType): SectionsRetail
11
11
  { name: 'consentOthersFlg', required: true },
12
12
  { name: 'consentInformFlg' },
13
13
  { name: 'consentPfrFlg' },
14
- { name: 'consentInformMaterialsFlg' },
15
14
  { name: 'consentFATCA', required: true },
16
15
  ];
17
16
 
@@ -47,11 +47,7 @@ const CREDIT_CARD_CONSENTS: Record<keyof CreditCardFormConsents, ConsentData> =
47
47
  },
48
48
  consentOthersFlg: {
49
49
  text: 'Прочие согласия',
50
- docId: 19,
51
- },
52
- consentInformMaterialsFlg: {
53
- text: 'Согласие на получение информационных материалов',
54
- docId: 18,
50
+ docId: 1,
55
51
  },
56
52
  };
57
53
 
@@ -13,7 +13,6 @@ const initialFormState = {
13
13
  consentOthersFlg: false,
14
14
  consentInformFlg: false,
15
15
  consentPfrFlg: false,
16
- consentInformMaterialsFlg: false,
17
16
  consentPhotoFlg: false,
18
17
  consentFATCA: false,
19
18
  };
@@ -352,7 +352,6 @@ const transformConsentsFields = (
352
352
  processPersonalDataFlg,
353
353
  consentInformFlg,
354
354
  consentProviderFlg,
355
- consentInformMaterialsFlg,
356
355
  consentFATCA,
357
356
  } = formData;
358
357
 
@@ -366,7 +365,6 @@ const transformConsentsFields = (
366
365
  };
367
366
  } else if (productType === 'creditCard') {
368
367
  consents = {
369
- consentInformMaterialsFlg,
370
368
  consentPhotoFlg: false,
371
369
  };
372
370
  } else {
@@ -1,9 +1,12 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { FormStatus } from '../../retail/components/FormStatus/FormStatus';
3
3
  import { useRetailFormStore } from '../../retail/hooks/useRetailFormStore';
4
+ import { getCreditInfo } from './getCreditInfo';
4
5
 
5
6
  export const PendingStatusContent = JSX(({ onExpire }: { onExpire: () => void }) => {
6
- const { statusInfo } = useRetailFormStore();
7
+ const { statusInfo, programId } = useRetailFormStore();
8
+
9
+ const creditInfo = getCreditInfo(programId);
7
10
 
8
11
  return (
9
12
  <FormStatus
@@ -14,11 +17,11 @@ export const PendingStatusContent = JSX(({ onExpire }: { onExpire: () => void })
14
17
  sectionInfo={[
15
18
  {
16
19
  label: 'Название продукта',
17
- description: 'Кредит на любые цели',
20
+ description: creditInfo.name,
18
21
  },
19
22
  {
20
23
  label: 'Цель кредита',
21
- description: 'На любые цели',
24
+ description: creditInfo.description,
22
25
  },
23
26
  {
24
27
  label: 'Сумма',
@@ -1,9 +1,12 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { FormStatus } from '../../retail/components/FormStatus/FormStatus';
3
3
  import { useRetailFormStore } from '../../retail/hooks/useRetailFormStore';
4
+ import { getCreditInfo } from './getCreditInfo';
4
5
 
5
6
  export const SuccessStatusContent = JSX(() => {
6
- const { statusInfo } = useRetailFormStore();
7
+ const { statusInfo, programId } = useRetailFormStore();
8
+
9
+ const creditInfo = getCreditInfo(programId);
7
10
 
8
11
  return (
9
12
  <FormStatus
@@ -12,7 +15,7 @@ export const SuccessStatusContent = JSX(() => {
12
15
  sectionInfo={[
13
16
  {
14
17
  label: 'Название продукта',
15
- description: 'Кредит на любые цели',
18
+ description: creditInfo.name,
16
19
  },
17
20
  {
18
21
  label: 'Ставка',
@@ -0,0 +1,17 @@
1
+ export const getCreditInfo = (programmId: string | null) => {
2
+ switch (programmId) {
3
+ case '11': {
4
+ return {
5
+ name: 'Потребительский кредит на рефинансирование',
6
+ description: 'Погашение основного долга по кредиту, иные цели и оплату страхования',
7
+ };
8
+ }
9
+ case '10':
10
+ default: {
11
+ return {
12
+ name: 'Кредит на любые цели',
13
+ description: 'На любые цели',
14
+ };
15
+ }
16
+ }
17
+ };
@@ -86,7 +86,6 @@ export const InputsConsentsMap = {
86
86
  consentOthersFlg: ConsentField,
87
87
  consentInformFlg: ConsentField,
88
88
  consentPfrFlg: ConsentField,
89
- consentInformMaterialsFlg: ConsentField,
90
89
  consentFATCA: ConsentField,
91
90
  };
92
91
 
@@ -15,7 +15,6 @@ export interface CreditCardFormConsents {
15
15
  consentProviderFlg?: boolean;
16
16
  consentOthersFlg?: boolean;
17
17
  consentInformFlg?: boolean;
18
- consentInformMaterialsFlg?: boolean;
19
18
  }
20
19
 
21
20
  export interface DebitCardFormConsents {
@@ -86,6 +85,7 @@ export type FormRetailConsents = CreditFormConsents &
86
85
  consentPhotoFlg?: boolean;
87
86
  consentAssignmentClaimsFlg?: boolean;
88
87
  consentCollectionFlg?: boolean;
88
+ consentInformMaterialsFlg?: boolean;
89
89
  };
90
90
 
91
91
  // TODO Какая то часть должна быть взята из RetailAPI
@@ -13,7 +13,6 @@ type NameFieldConsentDef =
13
13
  | 'consentInformFlg'
14
14
  | 'consentPfrFlg'
15
15
  | 'consentOthersFlg'
16
- | 'consentInformMaterialsFlg'
17
16
  | 'consentPhotoFlg'
18
17
  | 'consentFATCA';
19
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.987",
3
+ "version": "0.14.989",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -11,7 +11,6 @@ export const getApplicationFormData = (productType: ProductType): SectionsRetail
11
11
  { name: 'consentOthersFlg', required: true },
12
12
  { name: 'consentInformFlg' },
13
13
  { name: 'consentPfrFlg' },
14
- { name: 'consentInformMaterialsFlg' },
15
14
  { name: 'consentFATCA', required: true },
16
15
  ];
17
16
 
@@ -47,11 +47,7 @@ const CREDIT_CARD_CONSENTS: Record<keyof CreditCardFormConsents, ConsentData> =
47
47
  },
48
48
  consentOthersFlg: {
49
49
  text: 'Прочие согласия',
50
- docId: 19,
51
- },
52
- consentInformMaterialsFlg: {
53
- text: 'Согласие на получение информационных материалов',
54
- docId: 18,
50
+ docId: 1,
55
51
  },
56
52
  };
57
53
 
@@ -13,7 +13,6 @@ const initialFormState = {
13
13
  consentOthersFlg: false,
14
14
  consentInformFlg: false,
15
15
  consentPfrFlg: false,
16
- consentInformMaterialsFlg: false,
17
16
  consentPhotoFlg: false,
18
17
  consentFATCA: false,
19
18
  };
@@ -352,7 +352,6 @@ const transformConsentsFields = (
352
352
  processPersonalDataFlg,
353
353
  consentInformFlg,
354
354
  consentProviderFlg,
355
- consentInformMaterialsFlg,
356
355
  consentFATCA,
357
356
  } = formData;
358
357
 
@@ -366,7 +365,6 @@ const transformConsentsFields = (
366
365
  };
367
366
  } else if (productType === 'creditCard') {
368
367
  consents = {
369
- consentInformMaterialsFlg,
370
368
  consentPhotoFlg: false,
371
369
  };
372
370
  } else {
@@ -1,9 +1,12 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { FormStatus } from '../../retail/components/FormStatus/FormStatus';
3
3
  import { useRetailFormStore } from '../../retail/hooks/useRetailFormStore';
4
+ import { getCreditInfo } from './getCreditInfo';
4
5
 
5
6
  export const PendingStatusContent = JSX(({ onExpire }: { onExpire: () => void }) => {
6
- const { statusInfo } = useRetailFormStore();
7
+ const { statusInfo, programId } = useRetailFormStore();
8
+
9
+ const creditInfo = getCreditInfo(programId);
7
10
 
8
11
  return (
9
12
  <FormStatus
@@ -14,11 +17,11 @@ export const PendingStatusContent = JSX(({ onExpire }: { onExpire: () => void })
14
17
  sectionInfo={[
15
18
  {
16
19
  label: 'Название продукта',
17
- description: 'Кредит на любые цели',
20
+ description: creditInfo.name,
18
21
  },
19
22
  {
20
23
  label: 'Цель кредита',
21
- description: 'На любые цели',
24
+ description: creditInfo.description,
22
25
  },
23
26
  {
24
27
  label: 'Сумма',
@@ -1,9 +1,12 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { FormStatus } from '../../retail/components/FormStatus/FormStatus';
3
3
  import { useRetailFormStore } from '../../retail/hooks/useRetailFormStore';
4
+ import { getCreditInfo } from './getCreditInfo';
4
5
 
5
6
  export const SuccessStatusContent = JSX(() => {
6
- const { statusInfo } = useRetailFormStore();
7
+ const { statusInfo, programId } = useRetailFormStore();
8
+
9
+ const creditInfo = getCreditInfo(programId);
7
10
 
8
11
  return (
9
12
  <FormStatus
@@ -12,7 +15,7 @@ export const SuccessStatusContent = JSX(() => {
12
15
  sectionInfo={[
13
16
  {
14
17
  label: 'Название продукта',
15
- description: 'Кредит на любые цели',
18
+ description: creditInfo.name,
16
19
  },
17
20
  {
18
21
  label: 'Ставка',
@@ -0,0 +1,17 @@
1
+ export const getCreditInfo = (programmId: string | null) => {
2
+ switch (programmId) {
3
+ case '11': {
4
+ return {
5
+ name: 'Потребительский кредит на рефинансирование',
6
+ description: 'Погашение основного долга по кредиту, иные цели и оплату страхования',
7
+ };
8
+ }
9
+ case '10':
10
+ default: {
11
+ return {
12
+ name: 'Кредит на любые цели',
13
+ description: 'На любые цели',
14
+ };
15
+ }
16
+ }
17
+ };
@@ -86,7 +86,6 @@ export const InputsConsentsMap = {
86
86
  consentOthersFlg: ConsentField,
87
87
  consentInformFlg: ConsentField,
88
88
  consentPfrFlg: ConsentField,
89
- consentInformMaterialsFlg: ConsentField,
90
89
  consentFATCA: ConsentField,
91
90
  };
92
91
 
@@ -15,7 +15,6 @@ export interface CreditCardFormConsents {
15
15
  consentProviderFlg?: boolean;
16
16
  consentOthersFlg?: boolean;
17
17
  consentInformFlg?: boolean;
18
- consentInformMaterialsFlg?: boolean;
19
18
  }
20
19
 
21
20
  export interface DebitCardFormConsents {
@@ -86,6 +85,7 @@ export type FormRetailConsents = CreditFormConsents &
86
85
  consentPhotoFlg?: boolean;
87
86
  consentAssignmentClaimsFlg?: boolean;
88
87
  consentCollectionFlg?: boolean;
88
+ consentInformMaterialsFlg?: boolean;
89
89
  };
90
90
 
91
91
  // TODO Какая то часть должна быть взята из RetailAPI
@@ -13,7 +13,6 @@ type NameFieldConsentDef =
13
13
  | 'consentInformFlg'
14
14
  | 'consentPfrFlg'
15
15
  | 'consentOthersFlg'
16
- | 'consentInformMaterialsFlg'
17
16
  | 'consentPhotoFlg'
18
17
  | 'consentFATCA';
19
18