@voplus/morpho-csp 1.2.24 → 1.2.27
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/es/Modules.js.map +1 -1
- package/es/components/CurrencyView/state.d.ts +3 -3
- package/es/components/CurrencyView/state.js +3 -3
- package/es/components/CurrencyView/state.js.map +1 -1
- package/es/components/DragTableRow/FormRowContext.d.ts +4 -0
- package/es/components/DragTableRow/FormRowContext.js +5 -0
- package/es/components/DragTableRow/FormRowContext.js.map +1 -0
- package/es/components/DragTableRow/index.d.ts +3 -0
- package/es/components/DragTableRow/index.js +41 -0
- package/es/components/DragTableRow/index.js.map +1 -0
- package/es/components/LegalContactSelect/index.js +4 -2
- package/es/components/LegalContactSelect/index.js.map +1 -1
- package/es/data/account/hooks.d.ts +2 -2
- package/es/data/account/hooks.js +2 -2
- package/es/data/cart/hooks.d.ts +7 -0
- package/es/data/cart/hooks.js +14 -0
- package/es/data/cart/hooks.js.map +1 -0
- package/es/data/cart/index.d.ts +4 -0
- package/es/data/cart/index.js +5 -0
- package/es/data/cart/index.js.map +1 -0
- package/es/data/cart/interfaces.d.ts +58 -0
- package/es/data/cart/interfaces.js +2 -0
- package/es/data/cart/interfaces.js.map +1 -0
- package/es/data/cart/store.d.ts +22 -0
- package/es/data/cart/store.js +65 -0
- package/es/data/cart/store.js.map +1 -0
- package/es/data/cart/types.d.ts +29 -0
- package/es/data/cart/types.js +2 -0
- package/es/data/cart/types.js.map +1 -0
- package/es/data/corporate/hooks.d.ts +2 -2
- package/es/data/corporate/hooks.js +2 -2
- package/es/data/corporate/types.d.ts +1 -0
- package/es/data/entity/EntityStore.d.ts +17 -0
- package/es/data/entity/EntityStore.js +43 -0
- package/es/data/entity/EntityStore.js.map +1 -0
- package/es/data/entity/hooks.d.ts +7 -0
- package/es/data/entity/hooks.js +14 -0
- package/es/data/entity/hooks.js.map +1 -0
- package/es/data/entity/index.d.ts +3 -0
- package/es/data/entity/index.js +4 -0
- package/es/data/entity/index.js.map +1 -0
- package/es/data/entity/interface.d.ts +26 -0
- package/es/data/entity/interface.js +2 -0
- package/es/data/entity/interface.js.map +1 -0
- package/es/data/entity/types.d.ts +26 -0
- package/es/data/entity/types.js +2 -0
- package/es/data/entity/types.js.map +1 -0
- package/es/data/identity/types.d.ts +17 -0
- package/es/data/incorporation-clda/hooks.d.ts +9 -0
- package/es/data/incorporation-clda/hooks.js +20 -0
- package/es/data/incorporation-clda/hooks.js.map +1 -0
- package/es/data/incorporation-clda/index.d.ts +4 -0
- package/es/data/incorporation-clda/index.js +5 -0
- package/es/data/incorporation-clda/index.js.map +1 -0
- package/es/data/incorporation-clda/interfaces.d.ts +30 -0
- package/es/data/incorporation-clda/interfaces.js +2 -0
- package/es/data/incorporation-clda/interfaces.js.map +1 -0
- package/es/data/incorporation-clda/store.d.ts +13 -0
- package/es/data/incorporation-clda/store.js +28 -0
- package/es/data/incorporation-clda/store.js.map +1 -0
- package/es/data/incorporation-clda/types.d.ts +14 -0
- package/es/data/incorporation-clda/types.js +2 -0
- package/es/data/incorporation-clda/types.js.map +1 -0
- package/es/data/incorporation-form/hooks.d.ts +9 -0
- package/es/data/incorporation-form/hooks.js +20 -0
- package/es/data/incorporation-form/hooks.js.map +1 -0
- package/es/data/incorporation-form/index.d.ts +4 -0
- package/es/data/incorporation-form/index.js +5 -0
- package/es/data/incorporation-form/index.js.map +1 -0
- package/es/data/incorporation-form/interfaces.d.ts +31 -0
- package/es/data/incorporation-form/interfaces.js +2 -0
- package/es/data/incorporation-form/interfaces.js.map +1 -0
- package/es/data/incorporation-form/store.d.ts +13 -0
- package/es/data/incorporation-form/store.js +28 -0
- package/es/data/incorporation-form/store.js.map +1 -0
- package/es/data/incorporation-form/types.d.ts +32 -0
- package/es/data/incorporation-form/types.js +2 -0
- package/es/data/incorporation-form/types.js.map +1 -0
- package/es/data/member/hooks.d.ts +2 -2
- package/es/data/member/hooks.js +2 -2
- package/es/data/member/interfaces.d.ts +12 -0
- package/es/data/officer/hooks.d.ts +2 -2
- package/es/data/officer/hooks.js +2 -2
- package/es/data/order/OrderStore.d.ts +12 -0
- package/es/data/order/OrderStore.js +27 -0
- package/es/data/order/OrderStore.js.map +1 -0
- package/es/data/order/hooks.d.ts +13 -0
- package/es/data/order/hooks.js +24 -0
- package/es/data/order/hooks.js.map +1 -0
- package/es/data/order/index.d.ts +4 -0
- package/es/data/order/index.js +5 -0
- package/es/data/order/index.js.map +1 -0
- package/es/data/order/interfaces.d.ts +25 -0
- package/es/data/order/interfaces.js +2 -0
- package/es/data/order/interfaces.js.map +1 -0
- package/es/data/order/types.d.ts +17 -0
- package/es/data/order/types.js +2 -0
- package/es/data/order/types.js.map +1 -0
- package/es/data/service/hooks.d.ts +2 -2
- package/es/data/service/hooks.js +2 -2
- package/es/data/shareCertificate/hooks.d.ts +1 -1
- package/es/data/shareCertificate/hooks.js +1 -1
- package/es/data/shareOptionsRegister/hooks.d.ts +2 -2
- package/es/data/shareOptionsRegister/hooks.js +2 -2
- package/es/data/shareTransaction/hooks.d.ts +2 -2
- package/es/data/shareTransaction/hooks.js +2 -2
- package/es/data/shareTransaction/interfaces/IShareTransaction.d.ts +3 -3
- package/es/modules/account/AccountDefaultView/index.less +0 -18
- package/es/modules/corporate/CLDA/CLDAClientView/CLDAClientContext.js +2 -1
- package/es/modules/corporate/CLDA/CLDAClientView/CLDAClientContext.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/DigitalPreparationStep/index.js +11 -8
- package/es/modules/corporate/CLDA/CLDAClientView/components/DigitalPreparationStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalPreparationStep/index.js +13 -10
- package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalPreparationStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalSigningStep/index.js +13 -10
- package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalSigningStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/SelectStep/index.js +29 -23
- package/es/modules/corporate/CLDA/CLDAClientView/components/SelectStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/StartStep/index.js +13 -10
- package/es/modules/corporate/CLDA/CLDAClientView/components/StartStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/VerificationStep/index.js +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/VerificationStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/index.d.ts +9 -1
- package/es/modules/corporate/CLDA/CLDAClientView/index.js +21 -12
- package/es/modules/corporate/CLDA/CLDAClientView/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/index.less +10 -12
- package/es/modules/corporate/CLDA/CLDADefaultView/index.js.map +1 -1
- package/es/modules/corporate/CLDA/ChangeAddress2021/index.less +13 -18
- package/es/modules/corporate/LegalGeneration/index.less +0 -6
- package/es/modules/corporate/company/CompanyDefaultView/index.js +1 -1
- package/es/modules/corporate/company/CompanyDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/CompanyDetailsView/index.js +44 -42
- package/es/modules/corporate/company/CompanyDetailsView/index.js.map +1 -1
- package/es/modules/corporate/company/Identity/IdentifyDetail/index.js +13 -5
- package/es/modules/corporate/company/Identity/IdentifyDetail/index.js.map +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.js +4 -2
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.js.map +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.d.ts +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.less +1 -2
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.d.ts +1 -1
- package/es/modules/order/OrderDefaultView/index.d.ts +4 -0
- package/es/modules/order/OrderDefaultView/index.js +52 -0
- package/es/modules/order/OrderDefaultView/index.js.map +1 -0
- package/es/modules/order/OrderDefaultView/index.less +13 -0
- package/es/modules/order/OrderItem/index.d.ts +6 -0
- package/es/modules/order/OrderItem/index.js +13 -0
- package/es/modules/order/OrderItem/index.js.map +1 -0
- package/es/modules/order/OrderItem/index.less +21 -0
- package/es/modules/order/OrderItems/DragTableCell.d.ts +3 -0
- package/es/modules/order/OrderItems/DragTableCell.js +75 -0
- package/es/modules/order/OrderItems/DragTableCell.js.map +1 -0
- package/es/modules/order/OrderItems/index.d.ts +4 -0
- package/es/modules/order/OrderItems/index.js +160 -0
- package/es/modules/order/OrderItems/index.js.map +1 -0
- package/es/modules/order/OrderItems/index.less +48 -0
- package/es/modules/order/OrderItems/state.d.ts +29 -0
- package/es/modules/order/OrderItems/state.js +89 -0
- package/es/modules/order/OrderItems/state.js.map +1 -0
- package/es/modules/order/OrderLabel/index.d.ts +6 -0
- package/es/modules/order/OrderLabel/index.js +40 -0
- package/es/modules/order/OrderLabel/index.js.map +1 -0
- package/es/modules/order/OrderLabel/index.less +21 -0
- package/es/modules/order/OrderLabel/state.d.ts +10 -0
- package/es/modules/order/OrderLabel/state.js +218 -0
- package/es/modules/order/OrderLabel/state.js.map +1 -0
- package/es/modules/order/OrderListView/index.d.ts +5 -0
- package/es/modules/order/OrderListView/index.js +47 -0
- package/es/modules/order/OrderListView/index.js.map +1 -0
- package/es/modules/order/OrderPropertiesView/index.d.ts +6 -0
- package/es/modules/order/OrderPropertiesView/index.js +39 -0
- package/es/modules/order/OrderPropertiesView/index.js.map +1 -0
- package/es/modules/order/OrderPropertiesView/index.less +13 -0
- package/es/modules/order/context/OrderContext.d.ts +31 -0
- package/es/modules/order/context/OrderContext.js +92 -0
- package/es/modules/order/context/OrderContext.js.map +1 -0
- package/es/modules/order/controls/IncorporationStatusLabel/index.d.ts +10 -0
- package/es/modules/order/controls/IncorporationStatusLabel/index.js +16 -0
- package/es/modules/order/controls/IncorporationStatusLabel/index.js.map +1 -0
- package/es/modules/order/controls/IncorporationStatusLabel/index.less +41 -0
- package/es/modules/order/controls/filters/IncorporationStatusFilter/index.d.ts +3 -0
- package/es/modules/order/controls/filters/IncorporationStatusFilter/index.js +21 -0
- package/es/modules/order/controls/filters/IncorporationStatusFilter/index.js.map +1 -0
- package/es/modules/order/controls/filters/IncorporationStatusFilter/state.d.ts +17 -0
- package/es/modules/order/controls/filters/IncorporationStatusFilter/state.js +48 -0
- package/es/modules/order/controls/filters/IncorporationStatusFilter/state.js.map +1 -0
- package/es/modules/self-registration/components/Card/index.d.ts +16 -0
- package/es/modules/self-registration/components/Card/index.js +20 -0
- package/es/modules/self-registration/components/Card/index.js.map +1 -0
- package/es/modules/self-registration/components/Card/index.less +52 -0
- package/es/modules/self-registration/components/CheckSection/index.d.ts +7 -0
- package/es/modules/self-registration/components/CheckSection/index.js +15 -0
- package/es/modules/self-registration/components/CheckSection/index.js.map +1 -0
- package/es/modules/self-registration/components/CheckSection/index.less +20 -0
- package/es/modules/self-registration/components/MemberCard/index.d.ts +11 -0
- package/es/modules/self-registration/components/MemberCard/index.js +58 -0
- package/es/modules/self-registration/components/MemberCard/index.js.map +1 -0
- package/es/modules/self-registration/components/MemberCard/index.less +53 -0
- package/es/modules/self-registration/components/StripeForm/index.d.ts +11 -0
- package/es/modules/self-registration/components/StripeForm/index.js +61 -0
- package/es/modules/self-registration/components/StripeForm/index.js.map +1 -0
- package/es/modules/self-registration/components/StripeForm/index.less +36 -0
- package/es/modules/self-registration/components/StripeForm/state.d.ts +11 -0
- package/es/modules/self-registration/components/StripeForm/state.js +81 -0
- package/es/modules/self-registration/components/StripeForm/state.js.map +1 -0
- package/es/modules/self-registration/components/index.d.ts +1 -0
- package/es/modules/self-registration/components/index.js +2 -0
- package/es/modules/self-registration/components/index.js.map +1 -0
- package/es/modules/self-registration/controls/Blink/index.d.ts +13 -0
- package/es/modules/self-registration/controls/Blink/index.js +13 -0
- package/es/modules/self-registration/controls/Blink/index.js.map +1 -0
- package/es/modules/self-registration/controls/Blink/index.less +27 -0
- package/es/modules/self-registration/controls/BusinessActivityInput/index.d.ts +9 -0
- package/es/modules/self-registration/controls/BusinessActivityInput/index.js +42 -0
- package/es/modules/self-registration/controls/BusinessActivityInput/index.js.map +1 -0
- package/es/modules/self-registration/controls/BusinessActivityInput/state.d.ts +17 -0
- package/es/modules/self-registration/controls/BusinessActivityInput/state.js +48 -0
- package/es/modules/self-registration/controls/BusinessActivityInput/state.js.map +1 -0
- package/es/modules/self-registration/controls/BusinessNameInput/index.d.ts +30 -0
- package/es/modules/self-registration/controls/BusinessNameInput/index.js +115 -0
- package/es/modules/self-registration/controls/BusinessNameInput/index.js.map +1 -0
- package/es/modules/self-registration/controls/BusinessNameInputFormItem/index.d.ts +11 -0
- package/es/modules/self-registration/controls/BusinessNameInputFormItem/index.js +19 -0
- package/es/modules/self-registration/controls/BusinessNameInputFormItem/index.js.map +1 -0
- package/es/modules/self-registration/controls/BusinessNameInputFormItem/state.d.ts +6 -0
- package/es/modules/self-registration/controls/BusinessNameInputFormItem/state.js +23 -0
- package/es/modules/self-registration/controls/BusinessNameInputFormItem/state.js.map +1 -0
- package/es/modules/self-registration/controls/Section/index.d.ts +13 -0
- package/es/modules/self-registration/controls/Section/index.js +15 -0
- package/es/modules/self-registration/controls/Section/index.js.map +1 -0
- package/es/modules/self-registration/controls/Section/index.less +79 -0
- package/es/modules/self-registration/controls/Tips/BusinessActivityTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/BusinessActivityTip.js +30 -0
- package/es/modules/self-registration/controls/Tips/BusinessActivityTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/BusinessNameTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/BusinessNameTip.js +13 -0
- package/es/modules/self-registration/controls/Tips/BusinessNameTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/CapitalTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/CapitalTip.js +11 -0
- package/es/modules/self-registration/controls/Tips/CapitalTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/DirectorTip.d.ts +5 -0
- package/es/modules/self-registration/controls/Tips/DirectorTip.js +25 -0
- package/es/modules/self-registration/controls/Tips/DirectorTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/FYETip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/FYETip.js +13 -0
- package/es/modules/self-registration/controls/Tips/FYETip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/IncorporationTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/IncorporationTip.js +9 -0
- package/es/modules/self-registration/controls/Tips/IncorporationTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/RegisteredAddressTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/RegisteredAddressTip.js +13 -0
- package/es/modules/self-registration/controls/Tips/RegisteredAddressTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/SecretaryTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/SecretaryTip.js +15 -0
- package/es/modules/self-registration/controls/Tips/SecretaryTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/ShareholderTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/ShareholderTip.js +11 -0
- package/es/modules/self-registration/controls/Tips/ShareholderTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/SharesTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/SharesTip.js +9 -0
- package/es/modules/self-registration/controls/Tips/SharesTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/Tip.d.ts +5 -0
- package/es/modules/self-registration/controls/Tips/Tip.js +10 -0
- package/es/modules/self-registration/controls/Tips/Tip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/index.d.ts +10 -0
- package/es/modules/self-registration/controls/Tips/index.js +11 -0
- package/es/modules/self-registration/controls/Tips/index.js.map +1 -0
- package/es/modules/self-registration/controls/index.d.ts +1 -0
- package/es/modules/self-registration/controls/index.js +2 -0
- package/es/modules/self-registration/controls/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationCLDAClientView/IncorporationCLDAClientContext.d.ts +12 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationCLDAClientView/IncorporationCLDAClientContext.js +42 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationCLDAClientView/IncorporationCLDAClientContext.js.map +1 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationCLDAClientView/index.d.ts +3 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationCLDAClientView/index.js +44 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationCLDAClientView/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationCLDAClientView/index.less +9 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationDefaultView/index.d.ts +6 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationDefaultView/index.js +25 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationDefaultView/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationDefaultView/index.less +18 -0
- package/es/modules/self-registration/incorporation-clda/components/DetailsStep/index.d.ts +3 -0
- package/es/modules/self-registration/incorporation-clda/components/DetailsStep/index.js +33 -0
- package/es/modules/self-registration/incorporation-clda/components/DetailsStep/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.js +30 -0
- package/es/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-clda/components/StartStep/index.d.ts +3 -0
- package/es/modules/self-registration/incorporation-clda/components/StartStep/index.js +16 -0
- package/es/modules/self-registration/incorporation-clda/components/StartStep/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/ApplicationProcessing/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/ApplicationProcessing/index.js +54 -0
- package/es/modules/self-registration/incorporation-form/ApplicationProcessing/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/ApplicationProcessing/index.less +37 -0
- package/es/modules/self-registration/incorporation-form/CLDAIncorporationDefaultView/index.d.ts +4 -0
- package/es/modules/self-registration/incorporation-form/CLDAIncorporationDefaultView/index.js +85 -0
- package/es/modules/self-registration/incorporation-form/CLDAIncorporationDefaultView/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CLDAIncorporationDefaultView/index.less +26 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/CompanyInfo/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/CompanyInfo/index.js +91 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/CompanyInfo/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/CompanyInfo/index.less +7 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/OfficerList/index.d.ts +6 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/OfficerList/index.js +92 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/OfficerList/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/OfficerList/state.d.ts +11 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/OfficerList/state.js +45 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/OfficerList/state.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareCapital/index.d.ts +6 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareCapital/index.js +74 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareCapital/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareCapital/index.less +28 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareholderList/index.d.ts +6 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareholderList/index.js +106 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareholderList/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareholderList/state.d.ts +11 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareholderList/state.js +45 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareholderList/state.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/index.d.ts +12 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/index.js +63 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/index.less +25 -0
- package/es/modules/self-registration/incorporation-form/Download/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/Download/index.js +71 -0
- package/es/modules/self-registration/incorporation-form/Download/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/Download/index.less +41 -0
- package/es/modules/self-registration/incorporation-form/IncorporationFormRoutes.d.ts +19 -0
- package/es/modules/self-registration/incorporation-form/IncorporationFormRoutes.js +33 -0
- package/es/modules/self-registration/incorporation-form/IncorporationFormRoutes.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/Upload/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/Upload/index.js +48 -0
- package/es/modules/self-registration/incorporation-form/Upload/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/Upload/index.less +15 -0
- package/es/modules/self-registration/incorporation-form/components/IncorporationFromProperties/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/components/IncorporationFromProperties/index.js +32 -0
- package/es/modules/self-registration/incorporation-form/components/IncorporationFromProperties/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/components/IncorporationFromReview/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/components/IncorporationFromReview/index.js +55 -0
- package/es/modules/self-registration/incorporation-form/components/IncorporationFromReview/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/components/MemberInfo/index.d.ts +11 -0
- package/es/modules/self-registration/incorporation-form/components/MemberInfo/index.js +75 -0
- package/es/modules/self-registration/incorporation-form/components/MemberInfo/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/components/MemberInfo/index.less +74 -0
- package/es/modules/self-registration/incorporation-form/controls/IncorpoationFormMenu/index.d.ts +6 -0
- package/es/modules/self-registration/incorporation-form/controls/IncorpoationFormMenu/index.js +16 -0
- package/es/modules/self-registration/incorporation-form/controls/IncorpoationFormMenu/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/pages/IncoprorationFormClientView/index.d.ts +3 -0
- package/es/modules/self-registration/incorporation-form/pages/IncoprorationFormClientView/index.js +11 -0
- package/es/modules/self-registration/incorporation-form/pages/IncoprorationFormClientView/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/pages/IncorporationFromDefaultView/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/pages/IncorporationFromDefaultView/index.js +23 -0
- package/es/modules/self-registration/incorporation-form/pages/IncorporationFromDefaultView/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/pages/IncorporationFromDefaultView/index.less +28 -0
- package/es/modules/self-registration/shopping-cart/CartState.d.ts +55 -0
- package/es/modules/self-registration/shopping-cart/CartState.js +245 -0
- package/es/modules/self-registration/shopping-cart/CartState.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/ChooseService/index.d.ts +5 -0
- package/es/modules/self-registration/shopping-cart/ChooseService/index.js +79 -0
- package/es/modules/self-registration/shopping-cart/ChooseService/index.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/ChooseService/index.less +12 -0
- package/es/modules/self-registration/shopping-cart/Paid.d.ts +5 -0
- package/es/modules/self-registration/shopping-cart/Paid.js +31 -0
- package/es/modules/self-registration/shopping-cart/Paid.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/Payment/index.d.ts +5 -0
- package/es/modules/self-registration/shopping-cart/Payment/index.js +30 -0
- package/es/modules/self-registration/shopping-cart/Payment/index.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/Payment/index.less +13 -0
- package/es/modules/self-registration/shopping-cart/components/Arrangement.d.ts +5 -0
- package/es/modules/self-registration/shopping-cart/components/Arrangement.js +16 -0
- package/es/modules/self-registration/shopping-cart/components/Arrangement.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/Incorporation.d.ts +3 -0
- package/es/modules/self-registration/shopping-cart/components/Incorporation.js +35 -0
- package/es/modules/self-registration/shopping-cart/components/Incorporation.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/NameAndActivities.d.ts +3 -0
- package/es/modules/self-registration/shopping-cart/components/NameAndActivities.js +37 -0
- package/es/modules/self-registration/shopping-cart/components/NameAndActivities.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/Pay/index.d.ts +3 -0
- package/es/modules/self-registration/shopping-cart/components/Pay/index.js +28 -0
- package/es/modules/self-registration/shopping-cart/components/Pay/index.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/Pay/index.less +14 -0
- package/es/modules/self-registration/shopping-cart/components/Register.d.ts +3 -0
- package/es/modules/self-registration/shopping-cart/components/Register.js +76 -0
- package/es/modules/self-registration/shopping-cart/components/Register.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/Secretary.d.ts +3 -0
- package/es/modules/self-registration/shopping-cart/components/Secretary.js +63 -0
- package/es/modules/self-registration/shopping-cart/components/Secretary.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/ShareHolders/index.d.ts +3 -0
- package/es/modules/self-registration/shopping-cart/components/ShareHolders/index.js +137 -0
- package/es/modules/self-registration/shopping-cart/components/ShareHolders/index.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/ShareHolders/state.d.ts +12 -0
- package/es/modules/self-registration/shopping-cart/components/ShareHolders/state.js +48 -0
- package/es/modules/self-registration/shopping-cart/components/ShareHolders/state.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/TotalCart/index.d.ts +11 -0
- package/es/modules/self-registration/shopping-cart/components/TotalCart/index.js +56 -0
- package/es/modules/self-registration/shopping-cart/components/TotalCart/index.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/TotalCart/index.less +75 -0
- package/es/modules/self-registration/shopping-cart/components/index.d.ts +8 -0
- package/es/modules/self-registration/shopping-cart/components/index.js +9 -0
- package/es/modules/self-registration/shopping-cart/components/index.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/styles.less +23 -0
- package/es/modules/self-registration/shopping-cart/index.d.ts +3 -0
- package/es/modules/self-registration/shopping-cart/index.js +4 -0
- package/es/modules/self-registration/shopping-cart/index.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/pages.less +6 -0
- package/es/routes.d.ts +51 -1
- package/es/routes.js +81 -1
- package/es/routes.js.map +1 -1
- package/es/style/common.less +14 -1
- package/package.json +6 -3
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IAddress } from "@voplus/morpho-org/es/data/interfaces/IAddress";
|
|
2
|
+
import { IBusiness } from "./interface";
|
|
3
|
+
import { IMember } from "../member";
|
|
4
|
+
export declare type LoadEntityOptions = {
|
|
5
|
+
reload: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare type EditEntityOptions = {
|
|
8
|
+
name?: string /**企业名称 */;
|
|
9
|
+
address?: IAddress /**注册地址 */;
|
|
10
|
+
jurisdiction?: string /**司法管辖区类型"HK" | "SG" | "BVI" */;
|
|
11
|
+
registrationDate?: Date;
|
|
12
|
+
newOfficers?: Partial<IMember>[];
|
|
13
|
+
editOfficers?: Partial<IMember>[];
|
|
14
|
+
removeOfficers?: Partial<IMember>[];
|
|
15
|
+
} & Partial<IBusiness>;
|
|
16
|
+
export declare type CreatEntityOptions = {
|
|
17
|
+
Name: string /**企业名称 */;
|
|
18
|
+
address?: IAddress /**注册地址 */;
|
|
19
|
+
jurisdiction?: string /**司法管辖区类型"HK" | "SG" | "BVI" */;
|
|
20
|
+
registrationDate?: Date /**注册时间 */;
|
|
21
|
+
};
|
|
22
|
+
/**经营业务详情 */
|
|
23
|
+
export interface Activity {
|
|
24
|
+
code?: string /**业务代码 */;
|
|
25
|
+
description?: string /**业务描述 */;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/data/entity/types.ts"],"names":[],"mappings":""}
|
|
@@ -24,6 +24,23 @@ export declare type IdentityCreateDataOptions = {
|
|
|
24
24
|
/** Address of the unit */
|
|
25
25
|
Address?: IAddress;
|
|
26
26
|
};
|
|
27
|
+
export declare type IdentityEditDataOptions = {
|
|
28
|
+
/** full name of the identity */
|
|
29
|
+
fullName?: string;
|
|
30
|
+
/** alias of the identity */
|
|
31
|
+
alias?: string;
|
|
32
|
+
/** type of the identity */
|
|
33
|
+
type?: string;
|
|
34
|
+
/** number of the identity */
|
|
35
|
+
number?: number;
|
|
36
|
+
/** country of issued of the identity */
|
|
37
|
+
country?: string;
|
|
38
|
+
/** expiry date of the identity */
|
|
39
|
+
expiryDate?: Date;
|
|
40
|
+
};
|
|
27
41
|
export declare type IdentityCreateOptions = {
|
|
28
42
|
data: IdentityCreateDataOptions;
|
|
29
43
|
} & StoreActionOptions;
|
|
44
|
+
export declare type IdentityEditOptions = {
|
|
45
|
+
data: IdentityEditDataOptions;
|
|
46
|
+
} & StoreActionOptions;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LoadDocumentListOptions, LoadDocumentOptions } from "@voplus/morpho-document-core";
|
|
2
|
+
import { IIncorporationCLDA } from "./interfaces";
|
|
3
|
+
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
|
4
|
+
/** React hook to retrieve a Incorporation CLDA
|
|
5
|
+
* @param {string} id - id of the Incorporation CLDA
|
|
6
|
+
* @param {LoadIncorporationCLDAOptions} options - options
|
|
7
|
+
*/
|
|
8
|
+
export declare const useIncorporationCLDA: (id: string, options?: LoadDocumentOptions | undefined) => IIncorporationCLDA;
|
|
9
|
+
export declare const useIncorporationCLDAListEffect: (list: ListDataContextState<IIncorporationCLDA> | null, effect: (list: IIncorporationCLDA[], total?: number | undefined) => void, options?: LoadDocumentListOptions | undefined) => void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useDocumentListLoaderEffect, useDocumentStore, } from "@voplus/morpho-document-core";
|
|
2
|
+
import { useIncorporationCLDAStore } from "./store";
|
|
3
|
+
import { useLoadCountedMapItem } from "@voplus/morpho-data";
|
|
4
|
+
/** React hook to retrieve a Incorporation CLDA
|
|
5
|
+
* @param {string} id - id of the Incorporation CLDA
|
|
6
|
+
* @param {LoadIncorporationCLDAOptions} options - options
|
|
7
|
+
*/
|
|
8
|
+
export const useIncorporationCLDA = (id, options) => {
|
|
9
|
+
options = options ? options : {};
|
|
10
|
+
const store = useIncorporationCLDAStore();
|
|
11
|
+
const documents = useDocumentStore();
|
|
12
|
+
return useLoadCountedMapItem(id, documents.items, () => store.load(id, options), options);
|
|
13
|
+
};
|
|
14
|
+
export const useIncorporationCLDAListEffect = (list, effect, options) => {
|
|
15
|
+
const deps = options ? options : {};
|
|
16
|
+
const legacy = useIncorporationCLDAStore();
|
|
17
|
+
// Call useDocumentListEffect and ensure won't load twice for same loading options.
|
|
18
|
+
return useDocumentListLoaderEffect(list, effect, () => legacy.loadList(options), [deps]);
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/incorporation-clda/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,2BAA2B,EAC3B,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EAAU,EAAE,OAA6B,EAAE,EAAE;IACjF,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA0B,CAAC;IAC1D,MAAM,KAAK,GAAG,yBAAyB,EAAE,CAAC;IAC1C,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IAErC,OAAO,qBAAqB,CAC3B,EAAE,EACF,SAAS,CAAC,KAAK,EACf,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,OAAQ,CAAC,EAC9B,OAAO,CACe,CAAC;AACzB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAC7C,IAAqD,EACrD,MAAwE,EACxE,OAAiC,EAChC,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IACjE,MAAM,MAAM,GAAG,yBAAyB,EAAE,CAAC;IAE3C,mFAAmF;IACnF,OAAO,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAC1F,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/incorporation-clda/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AssistantStatus } from "../CLDA";
|
|
2
|
+
import { IDocument } from "@voplus/morpho-document-core";
|
|
3
|
+
export interface IIncorporationCLDA extends IDocument {
|
|
4
|
+
/** incorporation form */
|
|
5
|
+
incorporationFormId?: string;
|
|
6
|
+
/** kyc form id */
|
|
7
|
+
kycFormId?: string;
|
|
8
|
+
/** quotation id */
|
|
9
|
+
quotationId?: string;
|
|
10
|
+
/** corporate of the CLDA */
|
|
11
|
+
corporate: {
|
|
12
|
+
id: string;
|
|
13
|
+
contact: {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
mainContact: {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
/** Effective Date DateTime of the CLDA */
|
|
23
|
+
effectiveDate: string;
|
|
24
|
+
/** signing mode of the CLDA */
|
|
25
|
+
signingMode?: "Physical" | "Digital";
|
|
26
|
+
/** status of the CLDA */
|
|
27
|
+
assistantStatus?: AssistantStatus;
|
|
28
|
+
/** id of envelope of the signingMode = 'Digital' */
|
|
29
|
+
envelopeId?: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/incorporation-clda/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CreateIncorporationCLDAOptions, EditIncorporationCLDAOptions } from "./types";
|
|
2
|
+
import { DocumentStore, DocumentTypeStore, LoadDocumentListOptions, LoadDocumentOptions } from "@voplus/morpho-document-core";
|
|
3
|
+
import { ApiEndPoint } from "@voplus/api";
|
|
4
|
+
import { IIncorporationCLDA } from "./interfaces";
|
|
5
|
+
/** Corporate store supply backend functions. */
|
|
6
|
+
export declare class IncorporationCLDAStore extends DocumentTypeStore<IIncorporationCLDA, LoadDocumentOptions, LoadDocumentListOptions, CreateIncorporationCLDAOptions, EditIncorporationCLDAOptions, any> {
|
|
7
|
+
readonly endpoint: ApiEndPoint;
|
|
8
|
+
/** Name of the store */
|
|
9
|
+
readonly name: string;
|
|
10
|
+
constructor(endpoint: ApiEndPoint, documents: DocumentStore);
|
|
11
|
+
}
|
|
12
|
+
/** 响应钩子检索 ServiceStore */
|
|
13
|
+
export declare const useIncorporationCLDAStore: () => IncorporationCLDAStore;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DocumentTypeStore, useDocumentStore, } from "@voplus/morpho-document-core";
|
|
2
|
+
import { useService } from "@voplus/morpho-data";
|
|
3
|
+
const StoreName = "IncorporationCLDAStore";
|
|
4
|
+
/** Corporate store supply backend functions. */
|
|
5
|
+
export class IncorporationCLDAStore extends DocumentTypeStore {
|
|
6
|
+
constructor(endpoint, documents) {
|
|
7
|
+
super(endpoint, "/api/document-assistants/incorporation", documents);
|
|
8
|
+
Object.defineProperty(this, "endpoint", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
configurable: true,
|
|
11
|
+
writable: true,
|
|
12
|
+
value: endpoint
|
|
13
|
+
});
|
|
14
|
+
/** Name of the store */
|
|
15
|
+
Object.defineProperty(this, "name", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true,
|
|
19
|
+
value: StoreName
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
/** 响应钩子检索 ServiceStore */
|
|
24
|
+
export const useIncorporationCLDAStore = () => {
|
|
25
|
+
const documents = useDocumentStore();
|
|
26
|
+
return useService(StoreName, (context) => new IncorporationCLDAStore(context.api.currentEndPoint, documents));
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/data/incorporation-clda/store.ts"],"names":[],"mappings":"AACA,OAAO,EAEN,iBAAiB,EAGjB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,MAAM,SAAS,GAAG,wBAAwB,CAAC;AAE3C,gDAAgD;AAChD,MAAM,OAAO,sBAAuB,SAAQ,iBAO3C;IAIA,YAAmC,QAAqB,EAAE,SAAwB;QACjF,KAAK,CAAC,QAAQ,EAAE,wCAAwC,EAAE,SAAS,CAAC,CAAC;;;;;mBADnC;;QAHnC,wBAAwB;QACxB;;;;mBAA+B,SAAS;WAAC;IAIzC,CAAC;CACD;AAED,0BAA0B;AAC1B,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC7C,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IAErC,OAAO,UAAU,CAChB,SAAS,EACT,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,sBAAsB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,SAAS,CAAC,CAC/E,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IIncorporationCLDA } from "./interfaces";
|
|
2
|
+
import { LoadOptions } from "@voplus/morpho-data";
|
|
3
|
+
/** Custom load contact options type */
|
|
4
|
+
export declare type LoadIncorporationCLDAOptions = {
|
|
5
|
+
/** Comma separated include options e.g. path */
|
|
6
|
+
includes?: string;
|
|
7
|
+
} & LoadOptions<IIncorporationCLDA>;
|
|
8
|
+
export declare type CreateIncorporationCLDAOptions = {
|
|
9
|
+
/** Name of the new Incorporation CLDA. */
|
|
10
|
+
Name: string;
|
|
11
|
+
/** The parent id of the new Incorporation CLDA to be created in. */
|
|
12
|
+
ParentId: string;
|
|
13
|
+
};
|
|
14
|
+
export declare type EditIncorporationCLDAOptions = {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/data/incorporation-clda/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LoadDocumentListOptions, LoadDocumentOptions } from "@voplus/morpho-document-core";
|
|
2
|
+
import { IIncorporationForm } from "./interfaces";
|
|
3
|
+
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
|
4
|
+
/** React hook to retrieve a Incorporation Form
|
|
5
|
+
* @param {string} id - id of the Incorporation Form
|
|
6
|
+
* @param {LoadIncorporationFormOptions} options - options
|
|
7
|
+
*/
|
|
8
|
+
export declare const useIncorporationForm: (id: string, options?: LoadDocumentOptions | undefined) => IIncorporationForm;
|
|
9
|
+
export declare const useIncorporationFormListEffect: (list: ListDataContextState<IIncorporationForm> | null, effect: (list: IIncorporationForm[], total?: number | undefined) => void, options?: LoadDocumentListOptions | undefined) => void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useDocumentListLoaderEffect, useDocumentStore, } from "@voplus/morpho-document-core";
|
|
2
|
+
import { useIncorporationFormStore } from "./store";
|
|
3
|
+
import { useLoadCountedMapItem } from "@voplus/morpho-data";
|
|
4
|
+
/** React hook to retrieve a Incorporation Form
|
|
5
|
+
* @param {string} id - id of the Incorporation Form
|
|
6
|
+
* @param {LoadIncorporationFormOptions} options - options
|
|
7
|
+
*/
|
|
8
|
+
export const useIncorporationForm = (id, options) => {
|
|
9
|
+
options = options ? options : {};
|
|
10
|
+
const store = useIncorporationFormStore();
|
|
11
|
+
const documents = useDocumentStore();
|
|
12
|
+
return useLoadCountedMapItem(id, documents.items, () => store.load(id, options), options);
|
|
13
|
+
};
|
|
14
|
+
export const useIncorporationFormListEffect = (list, effect, options) => {
|
|
15
|
+
const deps = options ? options : {};
|
|
16
|
+
const legacy = useIncorporationFormStore();
|
|
17
|
+
// Call useDocumentListEffect and ensure won't load twice for same loading options.
|
|
18
|
+
return useDocumentListLoaderEffect(list, effect, () => legacy.loadList(options), [deps]);
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/incorporation-form/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,2BAA2B,EAC3B,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EAAU,EAAE,OAA6B,EAAE,EAAE;IACjF,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA0B,CAAC;IAC1D,MAAM,KAAK,GAAG,yBAAyB,EAAE,CAAC;IAC1C,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IAErC,OAAO,qBAAqB,CAC3B,EAAE,EACF,SAAS,CAAC,KAAK,EACf,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,OAAQ,CAAC,EAC9B,OAAO,CACe,CAAC;AACzB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAC7C,IAAqD,EACrD,MAAwE,EACxE,OAAiC,EAChC,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IACjE,MAAM,MAAM,GAAG,yBAAyB,EAAE,CAAC;IAE3C,mFAAmF;IACnF,OAAO,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAC1F,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/incorporation-form/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IAddress } from "@voplus/morpho-org/es/data/interfaces/IAddress";
|
|
2
|
+
import { IDocument } from "@voplus/morpho-document-core";
|
|
3
|
+
import { IdentityEditDataOptions } from "../identity";
|
|
4
|
+
export interface IFormPeopleOptions {
|
|
5
|
+
name?: string;
|
|
6
|
+
email?: string;
|
|
7
|
+
phone?: string;
|
|
8
|
+
address?: IAddress;
|
|
9
|
+
identity?: IdentityEditDataOptions;
|
|
10
|
+
}
|
|
11
|
+
export interface IFormContent {
|
|
12
|
+
/** name of the entity user going to incorporate 实体用户的名称 */
|
|
13
|
+
legalEntityName: string;
|
|
14
|
+
/** business activities of the company 公司经营活动 */
|
|
15
|
+
businessActivities: string[];
|
|
16
|
+
/** capital currency 资本的货币 */
|
|
17
|
+
currency: string;
|
|
18
|
+
/** paid up capital 支付资金 */
|
|
19
|
+
capital: number;
|
|
20
|
+
/** total number of shares 股份总数 */
|
|
21
|
+
shares: number;
|
|
22
|
+
/** list of members */
|
|
23
|
+
officers: IFormPeopleOptions[];
|
|
24
|
+
/** list of members */
|
|
25
|
+
members: IFormPeopleOptions[];
|
|
26
|
+
/** registered address of the company 公司注册地址 */
|
|
27
|
+
address: IAddress | null;
|
|
28
|
+
}
|
|
29
|
+
export interface IIncorporationForm extends IDocument {
|
|
30
|
+
content: IFormContent;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/incorporation-form/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CreateIncorporationFormOptions, EditIncorporationFormOptions } from "./types";
|
|
2
|
+
import { DocumentStore, DocumentTypeStore, LoadDocumentListOptions, LoadDocumentOptions } from "@voplus/morpho-document-core";
|
|
3
|
+
import { ApiEndPoint } from "@voplus/api";
|
|
4
|
+
import { IIncorporationForm } from "./interfaces";
|
|
5
|
+
/** Corporate store supply backend functions. */
|
|
6
|
+
export declare class IncorporationFormStore extends DocumentTypeStore<IIncorporationForm, LoadDocumentOptions, LoadDocumentListOptions, CreateIncorporationFormOptions, EditIncorporationFormOptions, any> {
|
|
7
|
+
readonly endpoint: ApiEndPoint;
|
|
8
|
+
/** Name of the store */
|
|
9
|
+
readonly name: string;
|
|
10
|
+
constructor(endpoint: ApiEndPoint, documents: DocumentStore);
|
|
11
|
+
}
|
|
12
|
+
/** 响应钩子检索 ServiceStore */
|
|
13
|
+
export declare const useIncorporationFormStore: () => IncorporationFormStore;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DocumentTypeStore, useDocumentStore, } from "@voplus/morpho-document-core";
|
|
2
|
+
import { useService } from "@voplus/morpho-data";
|
|
3
|
+
const StoreName = "IncorporationFormStore";
|
|
4
|
+
/** Corporate store supply backend functions. */
|
|
5
|
+
export class IncorporationFormStore extends DocumentTypeStore {
|
|
6
|
+
constructor(endpoint, documents) {
|
|
7
|
+
super(endpoint, "/api/document-assistants/incorporation/form", documents);
|
|
8
|
+
Object.defineProperty(this, "endpoint", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
configurable: true,
|
|
11
|
+
writable: true,
|
|
12
|
+
value: endpoint
|
|
13
|
+
});
|
|
14
|
+
/** Name of the store */
|
|
15
|
+
Object.defineProperty(this, "name", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true,
|
|
19
|
+
value: StoreName
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
/** 响应钩子检索 ServiceStore */
|
|
24
|
+
export const useIncorporationFormStore = () => {
|
|
25
|
+
const documents = useDocumentStore();
|
|
26
|
+
return useService(StoreName, (context) => new IncorporationFormStore(context.api.currentEndPoint, documents));
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/data/incorporation-form/store.ts"],"names":[],"mappings":"AACA,OAAO,EAEN,iBAAiB,EAGjB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,MAAM,SAAS,GAAG,wBAAwB,CAAC;AAE3C,gDAAgD;AAChD,MAAM,OAAO,sBAAuB,SAAQ,iBAO3C;IAIA,YAAmC,QAAqB,EAAE,SAAwB;QACjF,KAAK,CAAC,QAAQ,EAAE,6CAA6C,EAAE,SAAS,CAAC,CAAC;;;;;mBADxC;;QAHnC,wBAAwB;QACxB;;;;mBAA+B,SAAS;WAAC;IAIzC,CAAC;CACD;AAED,0BAA0B;AAC1B,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC7C,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IAErC,OAAO,UAAU,CAChB,SAAS,EACT,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,sBAAsB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,SAAS,CAAC,CAC/E,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IFormPeopleOptions, IIncorporationForm } from "./interfaces";
|
|
2
|
+
import { IAddress } from "@voplus/morpho-org/es/data/interfaces/IAddress";
|
|
3
|
+
import { LoadOptions } from "@voplus/morpho-data";
|
|
4
|
+
/** Custom load contact options type */
|
|
5
|
+
export declare type LoadIncorporationFormOptions = {
|
|
6
|
+
/** Comma separated include options e.g. path */
|
|
7
|
+
includes?: string;
|
|
8
|
+
} & LoadOptions<IIncorporationForm>;
|
|
9
|
+
export declare type CreateIncorporationFormOptions = {
|
|
10
|
+
/** Name of the new Incorporation Form. */
|
|
11
|
+
Name: string;
|
|
12
|
+
/** The parent id of the new Incorporation Form to be created in. */
|
|
13
|
+
ParentId: string;
|
|
14
|
+
};
|
|
15
|
+
export declare type EditIncorporationFormOptions = {
|
|
16
|
+
/** name of the entity user going to incorporate 实体用户的名称 */
|
|
17
|
+
legalEntityName?: string;
|
|
18
|
+
/** business activities of the company 公司经营活动 */
|
|
19
|
+
businessActivities?: string[];
|
|
20
|
+
/** capital currency 资本的货币 */
|
|
21
|
+
currency?: string;
|
|
22
|
+
/** paid up capital 支付资金 */
|
|
23
|
+
capital?: number;
|
|
24
|
+
/** total number of shares 股份总数 */
|
|
25
|
+
shares?: number;
|
|
26
|
+
/** list of members */
|
|
27
|
+
officers?: IFormPeopleOptions[];
|
|
28
|
+
/** list of members */
|
|
29
|
+
members?: IFormPeopleOptions[];
|
|
30
|
+
/** registered address of the company 公司注册地址 */
|
|
31
|
+
address?: IAddress | null;
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/data/incorporation-form/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
|
2
2
|
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
|
3
3
|
import { LoadCompanyMemberOptions } from ".";
|
|
4
|
-
/** React hook to retrieve a
|
|
5
|
-
* @param {string} id - id of the
|
|
4
|
+
/** React hook to retrieve a member
|
|
5
|
+
* @param {string} id - id of the member
|
|
6
6
|
* @param {LoadDocumentOptions} options - options
|
|
7
7
|
*/
|
|
8
8
|
export declare const useMember: (id: string, options?: LoadCompanyMemberOptions | undefined) => import("./interfaces").ICompanyMember;
|
package/es/data/member/hooks.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useDocumentListLoaderEffect, } from "@voplus/morpho-document-core";
|
|
2
2
|
import { useLoadCountedMapItem } from "@voplus/morpho-data";
|
|
3
3
|
import { useMemberStore } from "./MemberStore";
|
|
4
|
-
/** React hook to retrieve a
|
|
5
|
-
* @param {string} id - id of the
|
|
4
|
+
/** React hook to retrieve a member
|
|
5
|
+
* @param {string} id - id of the member
|
|
6
6
|
* @param {LoadDocumentOptions} options - options
|
|
7
7
|
*/
|
|
8
8
|
export const useMember = (id, options) => {
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { ILoadable } from "@voplus/morpho-data";
|
|
2
2
|
import { IShareCertificate } from "../shareCertificate/interfaces";
|
|
3
|
+
import { IUnit } from "@voplus/morpho-org";
|
|
4
|
+
/**
|
|
5
|
+
* (董事秘书股东)成员信息
|
|
6
|
+
*/
|
|
7
|
+
export declare type MemberRole = "Shareholder" | "Director" | "Secretary" | "Nominee Director" | "UBO" | "PEP";
|
|
8
|
+
export interface IMember extends Partial<IUnit> {
|
|
9
|
+
name: string;
|
|
10
|
+
roles: MemberRole[];
|
|
11
|
+
shares?: number;
|
|
12
|
+
capital?: number;
|
|
13
|
+
currency?: string;
|
|
14
|
+
}
|
|
3
15
|
export interface ICompanyMember extends ILoadable {
|
|
4
16
|
/** 企业member id */
|
|
5
17
|
id: string;
|
|
@@ -2,8 +2,8 @@ import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
|
|
2
2
|
import { IOfficer } from "./interfaces";
|
|
3
3
|
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
|
4
4
|
import { LoadOfficerOptions } from ".";
|
|
5
|
-
/** React hook to retrieve a
|
|
6
|
-
* @param {string} id - id of the
|
|
5
|
+
/** React hook to retrieve a officer
|
|
6
|
+
* @param {string} id - id of the officer
|
|
7
7
|
* @param {LoadDocumentOptions} options - options
|
|
8
8
|
*/
|
|
9
9
|
export declare const useOfficer: (id: string, options?: LoadOfficerOptions | undefined) => IOfficer;
|
package/es/data/officer/hooks.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useDocumentListLoaderEffect, } from "@voplus/morpho-document-core";
|
|
2
2
|
import { useLoadCountedMapItem } from "@voplus/morpho-data";
|
|
3
3
|
import { useOfficerStore } from "./OfficerStore";
|
|
4
|
-
/** React hook to retrieve a
|
|
5
|
-
* @param {string} id - id of the
|
|
4
|
+
/** React hook to retrieve a officer
|
|
5
|
+
* @param {string} id - id of the officer
|
|
6
6
|
* @param {LoadDocumentOptions} options - options
|
|
7
7
|
*/
|
|
8
8
|
export const useOfficer = (id, options) => {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CreateOrderOptions, EditOrderOptions } from "./types";
|
|
2
|
+
import { DocumentStore, DocumentTypeStore, LoadDocumentListOptions, LoadDocumentOptions } from "@voplus/morpho-document-core";
|
|
3
|
+
import { ApiEndPoint } from "@voplus/api";
|
|
4
|
+
import { IOrder } from "./interfaces";
|
|
5
|
+
declare class OrderStore extends DocumentTypeStore<IOrder, LoadDocumentOptions, LoadDocumentListOptions, CreateOrderOptions, EditOrderOptions, any> {
|
|
6
|
+
readonly endpoint: ApiEndPoint;
|
|
7
|
+
readonly name: string;
|
|
8
|
+
constructor(endpoint: ApiEndPoint, documents: DocumentStore);
|
|
9
|
+
}
|
|
10
|
+
export default OrderStore;
|
|
11
|
+
/** React hook to retrieve EntityStore */
|
|
12
|
+
export declare const useOrderStore: () => OrderStore;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useService } from "@voplus/morpho-data";
|
|
2
|
+
import { DocumentTypeStore, useDocumentStore, } from "@voplus/morpho-document-core";
|
|
3
|
+
const StoreName = "OrderStore";
|
|
4
|
+
class OrderStore extends DocumentTypeStore {
|
|
5
|
+
constructor(endpoint, documents) {
|
|
6
|
+
super(endpoint, "/api/orders", documents);
|
|
7
|
+
Object.defineProperty(this, "endpoint", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
configurable: true,
|
|
10
|
+
writable: true,
|
|
11
|
+
value: endpoint
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(this, "name", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
writable: true,
|
|
17
|
+
value: StoreName
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export default OrderStore;
|
|
22
|
+
/** React hook to retrieve EntityStore */
|
|
23
|
+
export const useOrderStore = () => {
|
|
24
|
+
const documents = useDocumentStore();
|
|
25
|
+
return useService(StoreName, (context) => new OrderStore(context.api.currentEndPoint, documents));
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=OrderStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrderStore.js","sourceRoot":"","sources":["../../../src/data/order/OrderStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAEN,iBAAiB,EAGjB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAKtC,MAAM,SAAS,GAAG,YAAY,CAAC;AAE/B,MAAM,UAAW,SAAQ,iBAOxB;IAGA,YAAmC,QAAqB,EAAE,SAAwB;QACjF,KAAK,CAAC,QAAQ,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC;;;;;mBADR;;QAFnC;;;;mBAA+B,SAAS;WAAC;IAIzC,CAAC;CACD;AAED,eAAe,UAAU,CAAC;AAE1B,yCAAyC;AACzC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE;IACjC,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,OAAO,UAAU,CAChB,SAAS,EACT,CAAC,OAAmB,EAAE,EAAE,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,SAAS,CAAC,CAC/E,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LoadDocumentListOptions, LoadDocumentOptions } from "@voplus/morpho-document-core";
|
|
2
|
+
import { IOrder } from "./interfaces";
|
|
3
|
+
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
|
4
|
+
/** React hook to retrieve a entity
|
|
5
|
+
* @param {string} id - id of the entity
|
|
6
|
+
* @param {LoadDocumentOptions} options - options
|
|
7
|
+
*/
|
|
8
|
+
export declare const useOrder: (id: string, options?: LoadDocumentOptions | undefined) => IOrder;
|
|
9
|
+
/** React hook to retrieve a list of orders.
|
|
10
|
+
* @param effect - Effect callback to be ran after successful retrieved the list.
|
|
11
|
+
* @param options - Optional list loading options.
|
|
12
|
+
*/
|
|
13
|
+
export declare const useOrderListEffect: (list: ListDataContextState<IOrder> | null, effect: (list: IOrder[], total?: number | undefined) => void, options?: LoadDocumentListOptions | undefined) => void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useDocumentListLoaderEffect, useDocumentStore, } from "@voplus/morpho-document-core";
|
|
2
|
+
import { useLoadCountedMapItem } from "@voplus/morpho-data";
|
|
3
|
+
import { useOrderStore } from "./OrderStore";
|
|
4
|
+
/** React hook to retrieve a entity
|
|
5
|
+
* @param {string} id - id of the entity
|
|
6
|
+
* @param {LoadDocumentOptions} options - options
|
|
7
|
+
*/
|
|
8
|
+
export const useOrder = (id, options) => {
|
|
9
|
+
options = options ? options : {};
|
|
10
|
+
const store = useOrderStore();
|
|
11
|
+
const documents = useDocumentStore();
|
|
12
|
+
return useLoadCountedMapItem(id, documents.items, () => store.load(id, options), options);
|
|
13
|
+
};
|
|
14
|
+
/** React hook to retrieve a list of orders.
|
|
15
|
+
* @param effect - Effect callback to be ran after successful retrieved the list.
|
|
16
|
+
* @param options - Optional list loading options.
|
|
17
|
+
*/
|
|
18
|
+
export const useOrderListEffect = (list, effect, options) => {
|
|
19
|
+
const deps = options ? options : {};
|
|
20
|
+
const store = useOrderStore();
|
|
21
|
+
// Call useDocumentListEffect and ensure won't load twice for same loading options.
|
|
22
|
+
return useDocumentListLoaderEffect(list, effect, () => store.loadList(options), [deps]);
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/order/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,2BAA2B,EAC3B,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C;;;GAGG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAU,EAAE,OAA6B,EAAE,EAAE;IACrE,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA0B,CAAC;IAC1D,MAAM,KAAK,GAAG,aAAa,EAAE,CAAC;IAC9B,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IAErC,OAAO,qBAAqB,CAC3B,EAAE,EACF,SAAS,CAAC,KAAK,EACf,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,OAAQ,CAAC,EAC9B,OAAO,CACG,CAAC;AACb,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CACjC,IAAyC,EACzC,MAA4D,EAC5D,OAAiC,EAChC,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IACjE,MAAM,KAAK,GAAG,aAAa,EAAE,CAAC;IAE9B,mFAAmF;IACnF,OAAO,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AACzF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/order/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IDocument } from "@voplus/morpho-document-core";
|
|
2
|
+
export interface IOrderLine {
|
|
3
|
+
/** the name of the order item */
|
|
4
|
+
description: string;
|
|
5
|
+
/** the total price of the item */
|
|
6
|
+
price: number;
|
|
7
|
+
/** the quantity of the item */
|
|
8
|
+
qty: number;
|
|
9
|
+
/** the discount of the quotation line */
|
|
10
|
+
discount: number;
|
|
11
|
+
/** the sub items of the order item e.g. an order item "Organge/Apple Package"
|
|
12
|
+
* may have following items ["orange", "Apple"]. */
|
|
13
|
+
items?: string[];
|
|
14
|
+
/** the additional note related to the item */
|
|
15
|
+
notes?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IOrder extends IDocument {
|
|
18
|
+
currency: string;
|
|
19
|
+
/** From , 创建order的人,一般为客户 */
|
|
20
|
+
from: {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
};
|
|
24
|
+
lines: IOrderLine[];
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/order/interfaces.ts"],"names":[],"mappings":""}
|