@redneckz/wildless-cms-uni-blocks 0.14.622 → 0.14.623
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/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +9 -8
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/dist/api/RetailAPI/utils/getUpdateUserProfile.js +2 -2
- package/dist/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
- package/dist/api/dadataHints/hintsListsOptions.js +1 -0
- package/dist/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/dist/components/ApplicationLeadForm/consents.js +1 -1
- package/dist/components/ApplicationLeadForm/consents.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/CreditForm/creditFormStepsData.js +1 -1
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/ui-kit/FormField/getField.js +1 -1
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/lib/api/RetailAPI/utils/getUpdateUserProfile.js +2 -2
- package/lib/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
- package/lib/api/dadataHints/hintsListsOptions.js +1 -0
- package/lib/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/lib/components/ApplicationLeadForm/consents.js +1 -1
- package/lib/components/ApplicationLeadForm/consents.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/CreditForm/creditFormStepsData.js +1 -1
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/lib/ui-kit/FormField/getField.js +1 -1
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/bundle/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +9 -8
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserProfile.js +2 -2
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
- package/mobile/dist/api/dadataHints/hintsListsOptions.js +1 -0
- package/mobile/dist/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/consents.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +1 -1
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserProfile.js +2 -2
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
- package/mobile/lib/api/dadataHints/hintsListsOptions.js +1 -0
- package/mobile/lib/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/consents.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +1 -1
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/src/api/RetailAPI/updateUserProfile.ts +1 -1
- package/mobile/src/api/RetailAPI/utils/getUpdateUserProfile.ts +2 -2
- package/mobile/src/api/dadataHints/hintsListsOptions.ts +1 -0
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +1 -1
- package/mobile/src/components/ApplicationLeadForm/consents.ts +1 -1
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +2 -2
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +1 -1
- package/mobile/src/ui-kit/FormField/NameFieldDef.ts +1 -1
- package/mobile/src/ui-kit/FormField/getField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +1 -1
- package/package.json +1 -1
- package/src/api/RetailAPI/updateUserProfile.ts +1 -1
- package/src/api/RetailAPI/utils/getUpdateUserProfile.ts +2 -2
- package/src/api/dadataHints/hintsListsOptions.ts +1 -0
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +1 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.mobile.tsx +1 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +1 -1
- package/src/components/ApplicationLeadForm/consents.ts +1 -1
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +2 -2
- package/src/components/CreditForm/creditFormStepsData.tsx +1 -1
- package/src/ui-kit/FormField/NameFieldDef.ts +1 -1
- package/src/ui-kit/FormField/getField.tsx +1 -1
- package/src/ui-kit/FormField/getObjectValidator.tsx +1 -1
|
@@ -120,7 +120,7 @@ export const stepsSectionsMap: SectionsProps[][] = [
|
|
|
120
120
|
inputs: [],
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
|
-
inputs: [{ fieldType: 'common', name: 'fullAddress', required: true }],
|
|
123
|
+
inputs: [{ fieldType: 'common', name: 'fullAddress', required: true, dadata: true }],
|
|
124
124
|
},
|
|
125
125
|
],
|
|
126
126
|
[
|
|
@@ -130,7 +130,7 @@ export const getField =
|
|
|
130
130
|
bankEmpolee: <BankEmpoleeField field={field} />,
|
|
131
131
|
secondaryPhone: <SecondaryPhoneField field={field} />,
|
|
132
132
|
consentToReceiveMaterials: <ConsentField field={field} input={input} />,
|
|
133
|
-
|
|
133
|
+
processPersonalDataFlg: <ConsentField field={field} input={input} />,
|
|
134
134
|
consentProviderFlg: <ConsentField field={field} input={input} />,
|
|
135
135
|
consentOthersFlg: <ConsentField field={field} input={input} />,
|
|
136
136
|
consentInformFlg: <ConsentField field={field} input={input} />,
|
|
@@ -64,7 +64,7 @@ export const validatorObj: Record<string, Validator> = {
|
|
|
64
64
|
consentDataProcessing: agreementValidator,
|
|
65
65
|
annualRevenue: defaultValidator(),
|
|
66
66
|
consentToReceiveMaterials: agreementValidator,
|
|
67
|
-
|
|
67
|
+
processPersonalDataFlg: agreementValidator,
|
|
68
68
|
consentProviderFlg: agreementValidator,
|
|
69
69
|
consentPfrFlg: agreementValidator,
|
|
70
70
|
consentOthersFlg: agreementValidator,
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ export type UpdateUserProfileBody = {
|
|
|
10
10
|
surname?: string;
|
|
11
11
|
midname?: string;
|
|
12
12
|
birthDate?: string;
|
|
13
|
-
|
|
13
|
+
processPersonalDataFlg?: boolean;
|
|
14
14
|
consentProviderFlg?: boolean;
|
|
15
15
|
consentPfrFlg?: boolean;
|
|
16
16
|
consentPhotoFlg?: boolean;
|
|
@@ -14,7 +14,7 @@ export const getUpdateUserProfileData = (
|
|
|
14
14
|
birthday = '',
|
|
15
15
|
phone = '',
|
|
16
16
|
email = '',
|
|
17
|
-
|
|
17
|
+
processPersonalDataFlg,
|
|
18
18
|
consentProviderFlg,
|
|
19
19
|
consentPfrFlg,
|
|
20
20
|
consentPhotoFlg,
|
|
@@ -32,7 +32,7 @@ export const getUpdateUserProfileData = (
|
|
|
32
32
|
birthDate: birthday && formatDate(birthday, true),
|
|
33
33
|
email,
|
|
34
34
|
phone: formatPhone(phone),
|
|
35
|
-
|
|
35
|
+
processPersonalDataFlg: Boolean(processPersonalDataFlg),
|
|
36
36
|
consentProviderFlg: Boolean(consentProviderFlg),
|
|
37
37
|
consentPfrFlg: Boolean(consentPfrFlg),
|
|
38
38
|
consentPhotoFlg: Boolean(consentPhotoFlg),
|
|
@@ -62,6 +62,7 @@ export const hintsListsOptions: HintsListOptions = {
|
|
|
62
62
|
organizationName: ORGANIZATION_NAME_HINTS_LIST_OPTIONS,
|
|
63
63
|
inn: ORGANIZATION_INN_HINTS_LIST_OPTIONS,
|
|
64
64
|
participantAddress: ADDRESS_HINTS_LIST_OPTIONS,
|
|
65
|
+
fullAddress: ADDRESS_HINTS_LIST_OPTIONS,
|
|
65
66
|
};
|
|
66
67
|
|
|
67
68
|
export type HintOption = {
|
|
@@ -31,7 +31,7 @@ export default {
|
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
inputs: [
|
|
34
|
-
{ fieldType: 'common', name: '
|
|
34
|
+
{ fieldType: 'common', name: 'processPersonalDataFlg', required: true },
|
|
35
35
|
{ fieldType: 'common', name: 'consentProviderFlg', required: true },
|
|
36
36
|
{ fieldType: 'common', name: 'consentInformFlg', required: true },
|
|
37
37
|
{ fieldType: 'common', name: 'consentOthersFlg', required: true },
|
|
@@ -33,7 +33,7 @@ export default {
|
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
inputs: [
|
|
36
|
-
{ fieldType: 'common', name: '
|
|
36
|
+
{ fieldType: 'common', name: 'processPersonalDataFlg', required: true },
|
|
37
37
|
{ fieldType: 'common', name: 'consentInformFlg', required: true },
|
|
38
38
|
{ fieldType: 'common', name: 'consentProviderFlg', required: true },
|
|
39
39
|
{ fieldType: 'common', name: 'consentOthersFlg', required: true },
|
|
@@ -10,7 +10,7 @@ import { type Option } from '../../ui-kit/Select/Option';
|
|
|
10
10
|
import { type FieldDef } from './ApplicationLeadFormContent';
|
|
11
11
|
|
|
12
12
|
export interface FormConsents {
|
|
13
|
-
|
|
13
|
+
processPersonalDataFlg?: boolean;
|
|
14
14
|
consentProviderFlg?: boolean;
|
|
15
15
|
consentPfrFlg?: boolean;
|
|
16
16
|
consentInformFlg?: boolean;
|
|
@@ -127,7 +127,7 @@ const initialFormState = {
|
|
|
127
127
|
posTerminal: false,
|
|
128
128
|
consentToReceiveMaterials: false,
|
|
129
129
|
consentDataProcessing: false,
|
|
130
|
-
|
|
130
|
+
processPersonalDataFlg: false,
|
|
131
131
|
consentProviderFlg: false,
|
|
132
132
|
consentOthersFlg: false,
|
|
133
133
|
consentInformFlg: false,
|
|
@@ -120,7 +120,7 @@ export const stepsSectionsMap: SectionsProps[][] = [
|
|
|
120
120
|
inputs: [],
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
|
-
inputs: [{ fieldType: 'common', name: 'fullAddress', required: true }],
|
|
123
|
+
inputs: [{ fieldType: 'common', name: 'fullAddress', required: true, dadata: true }],
|
|
124
124
|
},
|
|
125
125
|
],
|
|
126
126
|
[
|
|
@@ -130,7 +130,7 @@ export const getField =
|
|
|
130
130
|
bankEmpolee: <BankEmpoleeField field={field} />,
|
|
131
131
|
secondaryPhone: <SecondaryPhoneField field={field} />,
|
|
132
132
|
consentToReceiveMaterials: <ConsentField field={field} input={input} />,
|
|
133
|
-
|
|
133
|
+
processPersonalDataFlg: <ConsentField field={field} input={input} />,
|
|
134
134
|
consentProviderFlg: <ConsentField field={field} input={input} />,
|
|
135
135
|
consentOthersFlg: <ConsentField field={field} input={input} />,
|
|
136
136
|
consentInformFlg: <ConsentField field={field} input={input} />,
|
|
@@ -64,7 +64,7 @@ export const validatorObj: Record<string, Validator> = {
|
|
|
64
64
|
consentDataProcessing: agreementValidator,
|
|
65
65
|
annualRevenue: defaultValidator(),
|
|
66
66
|
consentToReceiveMaterials: agreementValidator,
|
|
67
|
-
|
|
67
|
+
processPersonalDataFlg: agreementValidator,
|
|
68
68
|
consentProviderFlg: agreementValidator,
|
|
69
69
|
consentPfrFlg: agreementValidator,
|
|
70
70
|
consentOthersFlg: agreementValidator,
|