@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.
- package/bundle/api/RetailAPI/draftTasksKZO.d.ts +26 -0
- package/bundle/api/RetailAPI/getLastTaskStatus.d.ts +6 -0
- package/bundle/api/RetailAPI/getTaskById.d.ts +6 -0
- package/bundle/api/RetailAPI/updateUserTask.d.ts +8 -8
- package/bundle/bundle.umd.js +252 -30
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/LeadFormState.d.ts +6 -6
- package/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +9 -0
- package/bundle/ui-kit/DraftDialog/DraftActionButton.d.ts +7 -0
- package/bundle/ui-kit/DraftDialog/DraftDialog.d.ts +7 -0
- package/bundle/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +4 -0
- package/bundle/ui-kit/DraftDialog/parseDraftTask.d.ts +3 -0
- package/bundle/ui-kit/DraftDialog/useDraftDialog.d.ts +10 -0
- package/bundle/ui-kit/DraftDialog/utils.d.ts +138 -0
- package/dist/api/RetailAPI/draftTasksKZO.d.ts +26 -0
- package/dist/api/RetailAPI/draftTasksKZO.js +9 -0
- package/dist/api/RetailAPI/draftTasksKZO.js.map +1 -0
- package/dist/api/RetailAPI/getLastTaskStatus.d.ts +6 -0
- package/dist/api/RetailAPI/getLastTaskStatus.js +9 -0
- package/dist/api/RetailAPI/getLastTaskStatus.js.map +1 -0
- package/dist/api/RetailAPI/getTaskById.d.ts +6 -0
- package/dist/api/RetailAPI/getTaskById.js +9 -0
- package/dist/api/RetailAPI/getTaskById.js.map +1 -0
- package/dist/api/RetailAPI/updateUserTask.d.ts +8 -8
- package/dist/components/ApplicationLeadForm/LeadFormState.d.ts +6 -6
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +32 -21
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +9 -0
- package/dist/components/ApplicationLeadForm/useSaveUserData.js +19 -0
- package/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -0
- package/dist/ui-kit/DraftDialog/DraftActionButton.d.ts +7 -0
- package/dist/ui-kit/DraftDialog/DraftActionButton.js +10 -0
- package/dist/ui-kit/DraftDialog/DraftActionButton.js.map +1 -0
- package/dist/ui-kit/DraftDialog/DraftDialog.d.ts +7 -0
- package/dist/ui-kit/DraftDialog/DraftDialog.js +43 -0
- package/dist/ui-kit/DraftDialog/DraftDialog.js.map +1 -0
- package/dist/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +4 -0
- package/dist/ui-kit/DraftDialog/EmptyDraftDialog.js +22 -0
- package/dist/ui-kit/DraftDialog/EmptyDraftDialog.js.map +1 -0
- package/dist/ui-kit/DraftDialog/parseDraftTask.d.ts +3 -0
- package/dist/ui-kit/DraftDialog/parseDraftTask.js +65 -0
- package/dist/ui-kit/DraftDialog/parseDraftTask.js.map +1 -0
- package/dist/ui-kit/DraftDialog/useDraftDialog.d.ts +10 -0
- package/dist/ui-kit/DraftDialog/useDraftDialog.js +16 -0
- package/dist/ui-kit/DraftDialog/useDraftDialog.js.map +1 -0
- package/dist/ui-kit/DraftDialog/utils.d.ts +138 -0
- package/dist/ui-kit/DraftDialog/utils.js +85 -0
- package/dist/ui-kit/DraftDialog/utils.js.map +1 -0
- package/lib/api/RetailAPI/draftTasksKZO.d.ts +26 -0
- package/lib/api/RetailAPI/draftTasksKZO.js +6 -0
- package/lib/api/RetailAPI/draftTasksKZO.js.map +1 -0
- package/lib/api/RetailAPI/getLastTaskStatus.d.ts +6 -0
- package/lib/api/RetailAPI/getLastTaskStatus.js +6 -0
- package/lib/api/RetailAPI/getLastTaskStatus.js.map +1 -0
- package/lib/api/RetailAPI/getTaskById.d.ts +6 -0
- package/lib/api/RetailAPI/getTaskById.js +6 -0
- package/lib/api/RetailAPI/getTaskById.js.map +1 -0
- package/lib/api/RetailAPI/updateUserTask.d.ts +8 -8
- package/lib/common.css +1 -1
- package/lib/components/ApplicationLeadForm/LeadFormState.d.ts +6 -6
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +32 -21
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +9 -0
- package/lib/components/ApplicationLeadForm/useSaveUserData.js +16 -0
- package/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -0
- package/lib/ui-kit/DraftDialog/DraftActionButton.d.ts +7 -0
- package/lib/ui-kit/DraftDialog/DraftActionButton.js +8 -0
- package/lib/ui-kit/DraftDialog/DraftActionButton.js.map +1 -0
- package/lib/ui-kit/DraftDialog/DraftDialog.d.ts +7 -0
- package/lib/ui-kit/DraftDialog/DraftDialog.js +41 -0
- package/lib/ui-kit/DraftDialog/DraftDialog.js.map +1 -0
- package/lib/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +4 -0
- package/lib/ui-kit/DraftDialog/EmptyDraftDialog.js +20 -0
- package/lib/ui-kit/DraftDialog/EmptyDraftDialog.js.map +1 -0
- package/lib/ui-kit/DraftDialog/parseDraftTask.d.ts +3 -0
- package/lib/ui-kit/DraftDialog/parseDraftTask.js +62 -0
- package/lib/ui-kit/DraftDialog/parseDraftTask.js.map +1 -0
- package/lib/ui-kit/DraftDialog/useDraftDialog.d.ts +10 -0
- package/lib/ui-kit/DraftDialog/useDraftDialog.js +13 -0
- package/lib/ui-kit/DraftDialog/useDraftDialog.js.map +1 -0
- package/lib/ui-kit/DraftDialog/utils.d.ts +138 -0
- package/lib/ui-kit/DraftDialog/utils.js +78 -0
- package/lib/ui-kit/DraftDialog/utils.js.map +1 -0
- package/mobile/bundle/api/RetailAPI/draftTasksKZO.d.ts +26 -0
- package/mobile/bundle/api/RetailAPI/getLastTaskStatus.d.ts +6 -0
- package/mobile/bundle/api/RetailAPI/getTaskById.d.ts +6 -0
- package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +8 -8
- package/mobile/bundle/bundle.umd.js +252 -30
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/LeadFormState.d.ts +6 -6
- package/mobile/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +9 -0
- package/mobile/bundle/ui-kit/DraftDialog/DraftActionButton.d.ts +7 -0
- package/mobile/bundle/ui-kit/DraftDialog/DraftDialog.d.ts +7 -0
- package/mobile/bundle/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +4 -0
- package/mobile/bundle/ui-kit/DraftDialog/parseDraftTask.d.ts +3 -0
- package/mobile/bundle/ui-kit/DraftDialog/useDraftDialog.d.ts +10 -0
- package/mobile/bundle/ui-kit/DraftDialog/utils.d.ts +138 -0
- package/mobile/dist/api/RetailAPI/draftTasksKZO.d.ts +26 -0
- package/mobile/dist/api/RetailAPI/draftTasksKZO.js +9 -0
- package/mobile/dist/api/RetailAPI/draftTasksKZO.js.map +1 -0
- package/mobile/dist/api/RetailAPI/getLastTaskStatus.d.ts +6 -0
- package/mobile/dist/api/RetailAPI/getLastTaskStatus.js +9 -0
- package/mobile/dist/api/RetailAPI/getLastTaskStatus.js.map +1 -0
- package/mobile/dist/api/RetailAPI/getTaskById.d.ts +6 -0
- package/mobile/dist/api/RetailAPI/getTaskById.js +9 -0
- package/mobile/dist/api/RetailAPI/getTaskById.js.map +1 -0
- package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +8 -8
- package/mobile/dist/components/ApplicationLeadForm/LeadFormState.d.ts +6 -6
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +32 -21
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +9 -0
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js +19 -0
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -0
- package/mobile/dist/ui-kit/DraftDialog/DraftActionButton.d.ts +7 -0
- package/mobile/dist/ui-kit/DraftDialog/DraftActionButton.js +10 -0
- package/mobile/dist/ui-kit/DraftDialog/DraftActionButton.js.map +1 -0
- package/mobile/dist/ui-kit/DraftDialog/DraftDialog.d.ts +7 -0
- package/mobile/dist/ui-kit/DraftDialog/DraftDialog.js +43 -0
- package/mobile/dist/ui-kit/DraftDialog/DraftDialog.js.map +1 -0
- package/mobile/dist/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +4 -0
- package/mobile/dist/ui-kit/DraftDialog/EmptyDraftDialog.js +22 -0
- package/mobile/dist/ui-kit/DraftDialog/EmptyDraftDialog.js.map +1 -0
- package/mobile/dist/ui-kit/DraftDialog/parseDraftTask.d.ts +3 -0
- package/mobile/dist/ui-kit/DraftDialog/parseDraftTask.js +65 -0
- package/mobile/dist/ui-kit/DraftDialog/parseDraftTask.js.map +1 -0
- package/mobile/dist/ui-kit/DraftDialog/useDraftDialog.d.ts +10 -0
- package/mobile/dist/ui-kit/DraftDialog/useDraftDialog.js +16 -0
- package/mobile/dist/ui-kit/DraftDialog/useDraftDialog.js.map +1 -0
- package/mobile/dist/ui-kit/DraftDialog/utils.d.ts +138 -0
- package/mobile/dist/ui-kit/DraftDialog/utils.js +85 -0
- package/mobile/dist/ui-kit/DraftDialog/utils.js.map +1 -0
- package/mobile/lib/api/RetailAPI/draftTasksKZO.d.ts +26 -0
- package/mobile/lib/api/RetailAPI/draftTasksKZO.js +6 -0
- package/mobile/lib/api/RetailAPI/draftTasksKZO.js.map +1 -0
- package/mobile/lib/api/RetailAPI/getLastTaskStatus.d.ts +6 -0
- package/mobile/lib/api/RetailAPI/getLastTaskStatus.js +6 -0
- package/mobile/lib/api/RetailAPI/getLastTaskStatus.js.map +1 -0
- package/mobile/lib/api/RetailAPI/getTaskById.d.ts +6 -0
- package/mobile/lib/api/RetailAPI/getTaskById.js +6 -0
- package/mobile/lib/api/RetailAPI/getTaskById.js.map +1 -0
- package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +8 -8
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationLeadForm/LeadFormState.d.ts +6 -6
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +32 -21
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +9 -0
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js +16 -0
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -0
- package/mobile/lib/ui-kit/DraftDialog/DraftActionButton.d.ts +7 -0
- package/mobile/lib/ui-kit/DraftDialog/DraftActionButton.js +8 -0
- package/mobile/lib/ui-kit/DraftDialog/DraftActionButton.js.map +1 -0
- package/mobile/lib/ui-kit/DraftDialog/DraftDialog.d.ts +7 -0
- package/mobile/lib/ui-kit/DraftDialog/DraftDialog.js +41 -0
- package/mobile/lib/ui-kit/DraftDialog/DraftDialog.js.map +1 -0
- package/mobile/lib/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +4 -0
- package/mobile/lib/ui-kit/DraftDialog/EmptyDraftDialog.js +20 -0
- package/mobile/lib/ui-kit/DraftDialog/EmptyDraftDialog.js.map +1 -0
- package/mobile/lib/ui-kit/DraftDialog/parseDraftTask.d.ts +3 -0
- package/mobile/lib/ui-kit/DraftDialog/parseDraftTask.js +62 -0
- package/mobile/lib/ui-kit/DraftDialog/parseDraftTask.js.map +1 -0
- package/mobile/lib/ui-kit/DraftDialog/useDraftDialog.d.ts +10 -0
- package/mobile/lib/ui-kit/DraftDialog/useDraftDialog.js +13 -0
- package/mobile/lib/ui-kit/DraftDialog/useDraftDialog.js.map +1 -0
- package/mobile/lib/ui-kit/DraftDialog/utils.d.ts +138 -0
- package/mobile/lib/ui-kit/DraftDialog/utils.js +78 -0
- package/mobile/lib/ui-kit/DraftDialog/utils.js.map +1 -0
- package/mobile/src/api/RetailAPI/draftTasksKZO.ts +33 -0
- package/mobile/src/api/RetailAPI/getLastTaskStatus.ts +21 -0
- package/mobile/src/api/RetailAPI/getTaskById.ts +12 -0
- package/mobile/src/api/RetailAPI/updateUserTask.ts +8 -8
- package/mobile/src/components/ApplicationLeadForm/LeadFormState.ts +6 -6
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +31 -33
- package/mobile/src/components/ApplicationLeadForm/useSaveUserData.ts +29 -0
- package/mobile/src/ui-kit/DraftDialog/DraftActionButton.tsx +32 -0
- package/mobile/src/ui-kit/DraftDialog/DraftDialog.tsx +91 -0
- package/mobile/src/ui-kit/DraftDialog/EmptyDraftDialog.tsx +47 -0
- package/mobile/src/ui-kit/DraftDialog/parseDraftTask.ts +123 -0
- package/mobile/src/ui-kit/DraftDialog/useDraftDialog.tsx +21 -0
- package/mobile/src/ui-kit/DraftDialog/utils.ts +148 -0
- package/package.json +1 -1
- package/src/api/RetailAPI/draftTasksKZO.ts +33 -0
- package/src/api/RetailAPI/getLastTaskStatus.ts +21 -0
- package/src/api/RetailAPI/getTaskById.ts +12 -0
- package/src/api/RetailAPI/updateUserTask.ts +8 -8
- package/src/components/ApplicationLeadForm/LeadFormState.ts +6 -6
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +31 -33
- package/src/components/ApplicationLeadForm/useSaveUserData.ts +29 -0
- package/src/ui-kit/DraftDialog/DraftActionButton.tsx +32 -0
- package/src/ui-kit/DraftDialog/DraftDialog.tsx +91 -0
- package/src/ui-kit/DraftDialog/EmptyDraftDialog.tsx +47 -0
- package/src/ui-kit/DraftDialog/parseDraftTask.ts +123 -0
- package/src/ui-kit/DraftDialog/useDraftDialog.tsx +21 -0
- package/src/ui-kit/DraftDialog/utils.ts +148 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.EmptyDraftDialog = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
+
const locationNavigator_1 = require("../../external/locationNavigator");
|
|
7
|
+
const noop_1 = require("../../utils/noop");
|
|
8
|
+
const Button_1 = require("../Button/Button");
|
|
9
|
+
const Dialog_1 = require("../DialogManager/Dialog");
|
|
10
|
+
const Heading_1 = require("../Heading/Heading");
|
|
11
|
+
const Paragraph_1 = require("../Paragraph/Paragraph");
|
|
12
|
+
exports.EmptyDraftDialog = (0, uni_jsx_1.JSX)(function ({ onClose = noop_1.noop }) {
|
|
13
|
+
const navigator = (0, locationNavigator_1.locationNavigator)();
|
|
14
|
+
const handleGoNewTask = (0, hooks_1.useCallback)(() => {
|
|
15
|
+
navigator.assign('/natural/loans/all-goals');
|
|
16
|
+
}, []);
|
|
17
|
+
const handleGoMainPage = (0, hooks_1.useCallback)(() => {
|
|
18
|
+
navigator.assign('/');
|
|
19
|
+
}, []);
|
|
20
|
+
return ((0, jsx_runtime_1.jsx)(Dialog_1.Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-lg py-0 px-5xl", onClose: onClose, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-lg", children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: "text-center", title: "\u0417\u0430\u044F\u0432\u043A\u0438 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u044B", headingType: "h3" }), (0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-l", align: "text-center", children: "\u041F\u043E \u0434\u0430\u043D\u043D\u043E\u043C\u0443 \u043D\u043E\u043C\u0435\u0440\u0443 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u043D\u0435\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044B\u0445 \u0437\u0430\u044F\u0432\u043E\u043A. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043D\u043E\u0432\u0443\u044E \u0437\u0430\u044F\u0432\u043A\u0443 \u0438\u043B\u0438 \u0432\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443" }), (0, jsx_runtime_1.jsx)(Button_1.Button, { type: "button", className: "w-full", onClick: handleGoNewTask, children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043D\u043E\u0432\u0443\u044E \u0437\u0430\u044F\u0432\u043A\u0443" }), (0, jsx_runtime_1.jsx)(Button_1.Button, { type: "button", version: "secondary", className: "w-full", onClick: handleGoMainPage, children: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" })] }) }));
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=EmptyDraftDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyDraftDialog.js","sourceRoot":"","sources":["../../../src/ui-kit/DraftDialog/EmptyDraftDialog.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAC1D,wEAAqE;AACrE,2CAAwC;AACxC,6CAA0C;AAC1C,oDAAiD;AACjD,gDAA6C;AAC7C,sDAAmD;AAMtC,QAAA,gBAAgB,GAAG,IAAA,aAAG,EAAwB,UAAU,EAAE,OAAO,GAAG,WAAI,EAAE;IACrF,MAAM,SAAS,GAAG,IAAA,qCAAiB,GAAE,CAAC;IAEtC,MAAM,eAAe,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACvC,SAAS,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC;IAC/C,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,gBAAgB,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACxC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACxB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,uBAAC,eAAM,IACL,SAAS,EAAC,kEAAkE,EAC5E,OAAO,EAAE,OAAO,YAEhB,iCAAK,SAAS,EAAC,sBAAsB,aACnC,uBAAC,iBAAO,IAAC,SAAS,EAAC,aAAa,EAAC,KAAK,EAAC,8FAAmB,EAAC,WAAW,EAAC,IAAI,GAAG,EAC9E,uBAAC,qBAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,aAAa,0nBAGhC,EAEZ,uBAAC,eAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,OAAO,EAAE,eAAe,2IAExD,EAET,uBAAC,eAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAC,WAAW,EAAC,SAAS,EAAC,QAAQ,EAAC,OAAO,EAAE,gBAAgB,+HAE7E,IACL,GACC,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.parseDraftTask = void 0;
|
|
3
|
+
const utils_1 = require("./utils");
|
|
4
|
+
const parseDraftTask = (task) => {
|
|
5
|
+
const participant = task.participants[0];
|
|
6
|
+
const { loanAmount: moneyValue, creditPeriod: monthsValue, paymentTypeCd } = task;
|
|
7
|
+
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;
|
|
8
|
+
return {
|
|
9
|
+
currency: currency?.key,
|
|
10
|
+
paymentSystem,
|
|
11
|
+
cardCategory: (0, utils_1.getSelectValue)(cardCategory),
|
|
12
|
+
codeWord,
|
|
13
|
+
limitedBirthday,
|
|
14
|
+
middleName,
|
|
15
|
+
name,
|
|
16
|
+
surname,
|
|
17
|
+
birthPlace,
|
|
18
|
+
dulIssueDateField,
|
|
19
|
+
dulIssuedBy,
|
|
20
|
+
dulNumber,
|
|
21
|
+
dulSerie,
|
|
22
|
+
dulSubdivisionCode,
|
|
23
|
+
education: (0, utils_1.getSelectValue)(education),
|
|
24
|
+
participantDateRegistration,
|
|
25
|
+
housing: (0, utils_1.getSelectValue)(housing),
|
|
26
|
+
beginDate,
|
|
27
|
+
employment: (0, utils_1.getSelectValue)(employment),
|
|
28
|
+
organizationName,
|
|
29
|
+
inn,
|
|
30
|
+
employerActivities: (0, utils_1.getSelectValue)(employerActivities),
|
|
31
|
+
organization: (0, utils_1.getSelectValue)(organization),
|
|
32
|
+
employerOrganization: (0, utils_1.getSelectValue)(employerOrganization),
|
|
33
|
+
amountWorkers: (0, utils_1.getSelectValue)(amountWorkers),
|
|
34
|
+
legalForm,
|
|
35
|
+
generalSeniority: generalSeniority?.toString(),
|
|
36
|
+
experience5Years: experience5Years?.toString(),
|
|
37
|
+
jobsNumber: jobsNumber?.toString(),
|
|
38
|
+
lastJobExperience: lastJobExperience?.toString(),
|
|
39
|
+
positionOrganization: (0, utils_1.getSelectValue)(positionOrganization),
|
|
40
|
+
familyStatus: (0, utils_1.getSelectValue)(familyStatus),
|
|
41
|
+
children: children?.toString(),
|
|
42
|
+
familyMembers: familyMembers?.toString(),
|
|
43
|
+
dependents: dependents?.toString(),
|
|
44
|
+
conscription: (0, utils_1.getSelectValue)(conscription),
|
|
45
|
+
snils,
|
|
46
|
+
armyIdFlg,
|
|
47
|
+
bankruptcyFlg,
|
|
48
|
+
shareholderFlg,
|
|
49
|
+
legalEntityName,
|
|
50
|
+
creditInRshbCd: (0, utils_1.getSelectValue)(creditInRshbCd),
|
|
51
|
+
calculator: {
|
|
52
|
+
isInsurance,
|
|
53
|
+
isSalaryClient,
|
|
54
|
+
moneyValue,
|
|
55
|
+
monthsValue,
|
|
56
|
+
isAnnuity: paymentTypeCd?.key === 'ANNUITY',
|
|
57
|
+
},
|
|
58
|
+
...(0, utils_1.getParticipantIncomes)(participantIncomes),
|
|
59
|
+
...(0, utils_1.getParticipantAddresses)(participantAddresses),
|
|
60
|
+
...(0, utils_1.getParticipantContacts)(participantContacts),
|
|
61
|
+
...(0, utils_1.getParticipantGender)(genderCd),
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
exports.parseDraftTask = parseDraftTask;
|
|
65
|
+
//# sourceMappingURL=parseDraftTask.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseDraftTask.js","sourceRoot":"","sources":["../../../src/ui-kit/DraftDialog/parseDraftTask.ts"],"names":[],"mappings":";;AAGA,mCAMiB;AAEV,MAAM,cAAc,GAAG,CAAC,IAAU,EAAiB,EAAE;IAC1D,MAAM,WAAW,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;IAEzC,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;IAElF,MAAM,EACJ,YAAY,EAAE,QAAQ,EACtB,mBAAmB,EAAE,aAAa,EAClC,SAAS,EAAE,YAAY,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AmB,CAAC;QAC9C,GAAG,IAAA,4BAAoB,EAAC,QAAQ,CAAC;KAClC,CAAC;AACJ,CAAC,CAAC;AA/GW,QAAA,cAAc,kBA+GzB"}
|
|
@@ -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,16 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.useDraftDialog = void 0;
|
|
3
|
+
const useDialog_1 = require("../DialogManager/useDialog");
|
|
4
|
+
const DraftDialog_1 = require("./DraftDialog");
|
|
5
|
+
const EmptyDraftDialog_1 = require("./EmptyDraftDialog");
|
|
6
|
+
const useDraftDialog = () => {
|
|
7
|
+
const { open: openDraftDialog } = (0, useDialog_1.useDialog)(DraftDialog_1.DraftDialog);
|
|
8
|
+
const { open: openEmptyDraftDialog } = (0, useDialog_1.useDialog)(EmptyDraftDialog_1.EmptyDraftDialog);
|
|
9
|
+
return {
|
|
10
|
+
open: ({ task, isFromLead, onClose }) => {
|
|
11
|
+
task ? openDraftDialog({ task, isFromLead, onClose }) : openEmptyDraftDialog({});
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.useDraftDialog = useDraftDialog;
|
|
16
|
+
//# sourceMappingURL=useDraftDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDraftDialog.js","sourceRoot":"","sources":["../../../src/ui-kit/DraftDialog/useDraftDialog.tsx"],"names":[],"mappings":";;AACA,0DAAuD;AACvD,+CAA4C;AAC5C,yDAAsD;AAQ/C,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,IAAA,qBAAS,EAAC,yBAAW,CAAC,CAAC;IACzD,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,GAAG,IAAA,qBAAS,EAAC,mCAAgB,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;AATW,QAAA,cAAc,kBASzB"}
|
|
@@ -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,85 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.getSelectValue = exports.getParticipantGender = exports.getParticipantContacts = exports.getParticipantAddresses = exports.getParticipantIncomes = exports.creditProgramCodeToProductIdMap = exports.cardCodesToProgrammIdMap = exports.creditCodesToProgrammIdMap = void 0;
|
|
3
|
+
exports.creditCodesToProgrammIdMap = {
|
|
4
|
+
credit_cash: '10',
|
|
5
|
+
credit_cash_single_doc: '28',
|
|
6
|
+
credit_mcx: '39',
|
|
7
|
+
family_offer_credit: '41',
|
|
8
|
+
gas_engine_fuel: '33',
|
|
9
|
+
pension_credit: '12',
|
|
10
|
+
ref_credit: '11',
|
|
11
|
+
ref_credit_single_doc: '29',
|
|
12
|
+
self_employed: '34',
|
|
13
|
+
summer_cash: '35',
|
|
14
|
+
summer_cash_pens: '36',
|
|
15
|
+
};
|
|
16
|
+
exports.cardCodesToProgrammIdMap = {
|
|
17
|
+
amur_card: '14',
|
|
18
|
+
owner_card: '13',
|
|
19
|
+
travel_card: '15',
|
|
20
|
+
};
|
|
21
|
+
exports.creditProgramCodeToProductIdMap = {
|
|
22
|
+
...exports.creditCodesToProgrammIdMap,
|
|
23
|
+
...exports.cardCodesToProgrammIdMap,
|
|
24
|
+
};
|
|
25
|
+
const getParticipantIncomes = (participantIncomes) => {
|
|
26
|
+
const wages = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "WAGES" /* EIncomesType.WAGES */)?.value;
|
|
27
|
+
const mandatoryPayments = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "MANDATORY_PAYMENTS" /* EIncomesType.MANDATORY_PAYMENTS */)?.value;
|
|
28
|
+
const incomeAverage = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "INCOME_AVERAGE" /* EIncomesType.INCOME_AVERAGE */)?.value;
|
|
29
|
+
const additionalIncome = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "ADDITIONAL_INCOME" /* EIncomesType.ADDITIONAL_INCOME */)?.value;
|
|
30
|
+
const otherIncome = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "OTHER_INCOME" /* EIncomesType.OTHER_INCOME */)?.value;
|
|
31
|
+
const otherPayments = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "OTHER_PAYMENTS" /* EIncomesType.OTHER_PAYMENTS */)?.value;
|
|
32
|
+
const rentalIncome = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "RENTAL_INCOME" /* EIncomesType.RENTAL_INCOME */)?.value;
|
|
33
|
+
const retirementIncome = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "RETIREMENT_INCOME" /* EIncomesType.RETIREMENT_INCOME */)?.value;
|
|
34
|
+
return {
|
|
35
|
+
wages,
|
|
36
|
+
mandatoryPayments,
|
|
37
|
+
incomeAverage,
|
|
38
|
+
additionalIncome,
|
|
39
|
+
otherIncome,
|
|
40
|
+
otherPayments,
|
|
41
|
+
rentalIncome,
|
|
42
|
+
retirementIncome,
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
exports.getParticipantIncomes = getParticipantIncomes;
|
|
46
|
+
const getParticipantAddresses = (participantAddresses) => {
|
|
47
|
+
const addressRegistration = participantAddresses?.find((address) => address.addressType.key === "REGISTRATION" /* EAddressType.REGISTRATION */);
|
|
48
|
+
const addressFact = participantAddresses?.find((address) => address.addressType.key === "RESIDENTAL" /* EAddressType.RESIDENTAL */);
|
|
49
|
+
const organizationAddress = participantAddresses?.find((address) => address.addressType.key === "WORK" /* EAddressType.WORK */);
|
|
50
|
+
return {
|
|
51
|
+
addressRegistration,
|
|
52
|
+
addressFact,
|
|
53
|
+
organizationAddress,
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
exports.getParticipantAddresses = getParticipantAddresses;
|
|
57
|
+
const getParticipantContacts = (participantContacts) => {
|
|
58
|
+
const email = participantContacts?.find((contact) => contact.contactTypeCd.key === "EMAIL" /* EContactType.EMail */)?.value;
|
|
59
|
+
const phone = participantContacts?.find((contact) => contact.contactTypeCd.key === "MAIN_PHONE" /* EContactType.MainPhone */)?.value;
|
|
60
|
+
const organizationPhone = participantContacts?.find((contact) => contact.contactTypeCd.key === "ORGANIZATION_PHONE" /* EContactType.OrganizationPhone */)?.value;
|
|
61
|
+
return {
|
|
62
|
+
email,
|
|
63
|
+
phone,
|
|
64
|
+
organizationPhone,
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
exports.getParticipantContacts = getParticipantContacts;
|
|
68
|
+
const getParticipantGender = (gender) => {
|
|
69
|
+
return gender?.key
|
|
70
|
+
? {
|
|
71
|
+
sex: gender.key === 'MAN' ? 'male' : 'female',
|
|
72
|
+
}
|
|
73
|
+
: null;
|
|
74
|
+
};
|
|
75
|
+
exports.getParticipantGender = getParticipantGender;
|
|
76
|
+
const getSelectValue = (option) => {
|
|
77
|
+
return option?.key
|
|
78
|
+
? {
|
|
79
|
+
key: option.key,
|
|
80
|
+
text: option.value,
|
|
81
|
+
}
|
|
82
|
+
: undefined;
|
|
83
|
+
};
|
|
84
|
+
exports.getSelectValue = getSelectValue;
|
|
85
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/ui-kit/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
+
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 @@
|
|
|
1
|
+
{"version":3,"file":"draftTasksKZO.js","sourceRoot":"","sources":["../../../src/api/RetailAPI/draftTasksKZO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AA4B9C,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,IAA4C,EAAE;IAC9E,MAAM,GAAG,GAAG,MAAM,eAAe,CAAuB,0BAA0B,EAAE,KAAK,CAAC,CAAC;IAE3F,OAAO,GAAG,EAAE,KAAK,IAAI,EAAE,CAAC;AAC1B,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { fetchRetailJSON } from './doRequest.js';
|
|
2
|
+
export const getLastTaskStatus = async (body) => {
|
|
3
|
+
const res = await fetchRetailJSON('/user-data/getLastStatus', 'POST', body);
|
|
4
|
+
return res?.statusCd === 'DRAFT' ? res?.taskId : null;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=getLastTaskStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLastTaskStatus.js","sourceRoot":"","sources":["../../../src/api/RetailAPI/getLastTaskStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAY9C,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,EAAE,IAA2B,EAA0B,EAAE;IAC7F,MAAM,GAAG,GAAG,MAAM,eAAe,CAC/B,0BAA0B,EAC1B,MAAM,EACN,IAAI,CACL,CAAC;IAEF,OAAO,GAAG,EAAE,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;AACxD,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTaskById.js","sourceRoot":"","sources":["../../../src/api/RetailAPI/getTaskById.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAO9C,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,EAAE,IAAqB,EAA6B,EAAE;IACpF,MAAM,GAAG,GAAG,MAAM,eAAe,CAAO,wBAAwB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAEhF,OAAO,GAAG,IAAI,SAAS,CAAC;AAC1B,CAAC,CAAC"}
|
|
@@ -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?:
|
|
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?:
|
|
57
|
+
generalSeniority?: string;
|
|
58
58
|
homeMatchFlg?: boolean;
|
|
59
59
|
houseTypeCd?: Option;
|
|
60
60
|
incomeCertificateCd?: Option;
|
|
61
61
|
initiateBankruptcyFlg?: boolean;
|
|
62
|
-
jobsNumber?:
|
|
63
|
-
lastWorkDuration?:
|
|
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?:
|
|
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?:
|
|
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
|
}>;
|