@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.
- package/bundle/bundle.umd.js +28 -16
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CreditForm/getCreditInfo.d.ts +4 -0
- package/bundle/retail/inputs.d.ts +0 -1
- package/bundle/retail/model/LeadFormState.d.ts +1 -1
- package/bundle/retail/model/NameFieldDef.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/applicationFormData.js +0 -1
- package/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/consents.js +1 -5
- package/dist/components/ApplicationLeadForm/consents.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +0 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -2
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/CreditForm/PendingStatusContent.js +5 -3
- package/dist/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/dist/components/CreditForm/SuccessStatusContent.js +4 -2
- package/dist/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/dist/components/CreditForm/getCreditInfo.d.ts +4 -0
- package/dist/components/CreditForm/getCreditInfo.js +21 -0
- package/dist/components/CreditForm/getCreditInfo.js.map +1 -0
- package/dist/retail/inputs.d.ts +0 -1
- package/dist/retail/inputs.js +0 -1
- package/dist/retail/inputs.js.map +1 -1
- package/dist/retail/model/LeadFormState.d.ts +1 -1
- package/dist/retail/model/NameFieldDef.d.ts +1 -1
- package/lib/components/ApplicationLeadForm/applicationFormData.js +0 -1
- package/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/consents.js +1 -5
- package/lib/components/ApplicationLeadForm/consents.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +0 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -2
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/CreditForm/PendingStatusContent.js +5 -3
- package/lib/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/lib/components/CreditForm/SuccessStatusContent.js +4 -2
- package/lib/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/lib/components/CreditForm/getCreditInfo.d.ts +4 -0
- package/lib/components/CreditForm/getCreditInfo.js +18 -0
- package/lib/components/CreditForm/getCreditInfo.js.map +1 -0
- package/lib/retail/inputs.d.ts +0 -1
- package/lib/retail/inputs.js +0 -1
- package/lib/retail/inputs.js.map +1 -1
- package/lib/retail/model/LeadFormState.d.ts +1 -1
- package/lib/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +28 -16
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CreditForm/getCreditInfo.d.ts +4 -0
- package/mobile/bundle/retail/inputs.d.ts +0 -1
- package/mobile/bundle/retail/model/LeadFormState.d.ts +1 -1
- package/mobile/bundle/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js +0 -1
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/consents.js +1 -5
- package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +0 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -2
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/CreditForm/PendingStatusContent.js +5 -3
- package/mobile/dist/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditForm/SuccessStatusContent.js +4 -2
- package/mobile/dist/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditForm/getCreditInfo.d.ts +4 -0
- package/mobile/dist/components/CreditForm/getCreditInfo.js +21 -0
- package/mobile/dist/components/CreditForm/getCreditInfo.js.map +1 -0
- package/mobile/dist/retail/inputs.d.ts +0 -1
- package/mobile/dist/retail/inputs.js +0 -1
- package/mobile/dist/retail/inputs.js.map +1 -1
- package/mobile/dist/retail/model/LeadFormState.d.ts +1 -1
- package/mobile/dist/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js +0 -1
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/consents.js +1 -5
- package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +0 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -2
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/CreditForm/PendingStatusContent.js +5 -3
- package/mobile/lib/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditForm/SuccessStatusContent.js +4 -2
- package/mobile/lib/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditForm/getCreditInfo.d.ts +4 -0
- package/mobile/lib/components/CreditForm/getCreditInfo.js +18 -0
- package/mobile/lib/components/CreditForm/getCreditInfo.js.map +1 -0
- package/mobile/lib/retail/inputs.d.ts +0 -1
- package/mobile/lib/retail/inputs.js +0 -1
- package/mobile/lib/retail/inputs.js.map +1 -1
- package/mobile/lib/retail/model/LeadFormState.d.ts +1 -1
- package/mobile/lib/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/src/components/ApplicationLeadForm/applicationFormData.tsx +0 -1
- package/mobile/src/components/ApplicationLeadForm/consents.ts +1 -5
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +0 -1
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +0 -2
- package/mobile/src/components/CreditForm/PendingStatusContent.tsx +6 -3
- package/mobile/src/components/CreditForm/SuccessStatusContent.tsx +5 -2
- package/mobile/src/components/CreditForm/getCreditInfo.ts +17 -0
- package/mobile/src/retail/inputs.tsx +0 -1
- package/mobile/src/retail/model/LeadFormState.ts +1 -1
- package/mobile/src/retail/model/NameFieldDef.ts +0 -1
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/applicationFormData.tsx +0 -1
- package/src/components/ApplicationLeadForm/consents.ts +1 -5
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +0 -1
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +0 -2
- package/src/components/CreditForm/PendingStatusContent.tsx +6 -3
- package/src/components/CreditForm/SuccessStatusContent.tsx +5 -2
- package/src/components/CreditForm/getCreditInfo.ts +17 -0
- package/src/retail/inputs.tsx +0 -1
- package/src/retail/model/LeadFormState.ts +1 -1
- 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' | '
|
|
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:
|
|
51
|
-
},
|
|
52
|
-
consentInformMaterialsFlg: {
|
|
53
|
-
text: 'Согласие на получение информационных материалов',
|
|
54
|
-
docId: 18,
|
|
50
|
+
docId: 1,
|
|
55
51
|
},
|
|
56
52
|
};
|
|
57
53
|
|
|
@@ -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
|
+
};
|
|
@@ -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
|
package/package.json
CHANGED
|
@@ -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:
|
|
51
|
-
},
|
|
52
|
-
consentInformMaterialsFlg: {
|
|
53
|
-
text: 'Согласие на получение информационных материалов',
|
|
54
|
-
docId: 18,
|
|
50
|
+
docId: 1,
|
|
55
51
|
},
|
|
56
52
|
};
|
|
57
53
|
|
|
@@ -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
|
+
};
|
package/src/retail/inputs.tsx
CHANGED
|
@@ -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
|