@openbox/shared-types 0.5.38 → 0.5.40
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/.github/copilot-instructions.md +93 -0
- package/.github/workflows/npm-publish.yml +105 -0
- package/README.md +48 -0
- package/lib/customers/Customers/customers.types.d.ts +1 -1
- package/lib/invoices/Invoices/CreateSingle/Request.d.ts +1 -0
- package/lib/invoices/Invoices/invoices.types.d.ts +2 -1
- package/lib/invoices/StatusesTypes/GetSingle/Response.d.ts +1 -1
- package/lib/management/Company/management.company.type.d.ts +1 -1
- package/lib/partners/V1/invoices/CreateSingle/Request.d.ts +1 -0
- package/lib/partners/V1/invoices/CreateSingle/Request.js.map +1 -1
- package/lib/system/PersonTypeNaturals/GetSingle/Response.js.map +1 -1
- package/lib/system/PersonTypeNaturals/system.person-types-naturals.types.js.map +1 -1
- package/package.json +1 -1
- package/.eslintignore +0 -8
- package/.eslintrc.json +0 -30
- package/.husky/commit-msg +0 -4
- package/.husky/pre-commit +0 -4
- package/.prettierignore +0 -6
- package/.prettierrc +0 -8
- package/.vscode/settings.json +0 -16
- package/commitlint.config.js +0 -8
- package/scripts/commit-msg.script.ts +0 -31
- package/src/System/Cities/GetMany/Request.ts +0 -5
- package/src/System/Cities/GetMany/Response.ts +0 -5
- package/src/System/Cities/GetSingle/Response.ts +0 -3
- package/src/System/Cities/index.ts +0 -3
- package/src/System/Cities/system.cities.types.ts +0 -12
- package/src/System/Countries/GetMany/Response.ts +0 -5
- package/src/System/Countries/GetSingle/Response.ts +0 -3
- package/src/System/Countries/index.ts +0 -2
- package/src/System/Countries/system.countries.types.ts +0 -9
- package/src/System/Directory/CreateSingle/Request.ts +0 -3
- package/src/System/Directory/CreateSingle/Response.ts +0 -3
- package/src/System/Directory/DeleteSingle/Response.ts +0 -3
- package/src/System/Directory/GetMany/Request.ts +0 -6
- package/src/System/Directory/GetMany/Response.ts +0 -6
- package/src/System/Directory/UpdateSingle/Request.ts +0 -3
- package/src/System/Directory/UpdateSingle/Response.ts +0 -3
- package/src/System/Directory/index.ts +0 -7
- package/src/System/Directory/system.directory.types.ts +0 -38
- package/src/System/Genders/system.genders.types.ts +0 -7
- package/src/System/Logs/CreateSingle/Request.ts +0 -12
- package/src/System/Logs/CreateSingle/Response.ts +0 -3
- package/src/System/Logs/index.ts +0 -3
- package/src/System/Logs/system.logs.types.ts +0 -17
- package/src/System/PersonTypeNaturals/GetMany/Response.ts +0 -5
- package/src/System/PersonTypeNaturals/GetSingle/Response.ts +0 -3
- package/src/System/PersonTypeNaturals/index.ts +0 -3
- package/src/System/PersonTypeNaturals/system.person-types-naturals.types.ts +0 -7
- package/src/System/PersonTypes/GetMany/Response.ts +0 -5
- package/src/System/PersonTypes/GetSingle/Response.ts +0 -3
- package/src/System/PersonTypes/index.ts +0 -3
- package/src/System/PersonTypes/system.person-types.types.ts +0 -7
- package/src/System/SV/EconomicActivities/GetMany/Response.ts +0 -5
- package/src/System/SV/EconomicActivities/GetSingle/Response.ts +0 -3
- package/src/System/SV/EconomicActivities/index.ts +0 -3
- package/src/System/SV/EconomicActivities/system.sv.economic-activities.types.ts +0 -5
- package/src/System/SV/Fields/index.ts +0 -1
- package/src/System/SV/Fields/system.sv.fields.types.ts +0 -18
- package/src/System/SV/index.ts +0 -2
- package/src/System/SellingTypes/GetMany/Response.ts +0 -3
- package/src/System/SellingTypes/GetSingle/Response.ts +0 -3
- package/src/System/SellingTypes/index.ts +0 -1
- package/src/System/SellingTypes/system.selling-types.types.ts +0 -10
- package/src/System/States/GetMany/Request.ts +0 -5
- package/src/System/States/GetMany/Response.ts +0 -5
- package/src/System/States/GetSingle/Response.ts +0 -3
- package/src/System/States/index.ts +0 -3
- package/src/System/States/system.states.types.ts +0 -12
- package/src/System/TaxerTypes/GetMany/Response.ts +0 -5
- package/src/System/TaxerTypes/GetSingle/Response.ts +0 -3
- package/src/System/TaxerTypes/index.ts +0 -3
- package/src/System/TaxerTypes/system.taxer-types.types.ts +0 -7
- package/src/System/index.ts +0 -11
- package/src/System/system.enums.ts +0 -83
- package/src/accounting/Catalogs/CreateMany/Request.ts +0 -5
- package/src/accounting/Catalogs/CreateMany/Response.ts +0 -3
- package/src/accounting/Catalogs/CreateSingle/Request.ts +0 -8
- package/src/accounting/Catalogs/CreateSingle/Response.ts +0 -3
- package/src/accounting/Catalogs/DeleteSingle/Response.ts +0 -3
- package/src/accounting/Catalogs/GetMany/Request.ts +0 -5
- package/src/accounting/Catalogs/GetMany/Response.ts +0 -6
- package/src/accounting/Catalogs/GetSingle/Response.ts +0 -5
- package/src/accounting/Catalogs/SwitchSingleAccountType/Request.ts +0 -3
- package/src/accounting/Catalogs/SwitchSingleAccountType/Response.ts +0 -3
- package/src/accounting/Catalogs/SwitchSingleBalanceType/Request.ts +0 -3
- package/src/accounting/Catalogs/SwitchSingleBalanceType/Response.ts +0 -3
- package/src/accounting/Catalogs/UpdateSingle/Request.ts +0 -3
- package/src/accounting/Catalogs/UpdateSingle/Response.ts +0 -3
- package/src/accounting/Catalogs/accounting.catalogs.types.ts +0 -10
- package/src/accounting/Catalogs/index.ts +0 -15
- package/src/accounting/Entries/CreateSingle/Request.ts +0 -11
- package/src/accounting/Entries/CreateSingle/Response.ts +0 -3
- package/src/accounting/Entries/DeleteSingle/Response.ts +0 -3
- package/src/accounting/Entries/GetMany/Request.ts +0 -8
- package/src/accounting/Entries/GetMany/Response.ts +0 -6
- package/src/accounting/Entries/GetNextSequence/Request.ts +0 -4
- package/src/accounting/Entries/GetNextSequence/Response.ts +0 -3
- package/src/accounting/Entries/GetSingle/Response.ts +0 -3
- package/src/accounting/Entries/UpdateSingle/Request.ts +0 -10
- package/src/accounting/Entries/UpdateSingle/Response.ts +0 -3
- package/src/accounting/Entries/accounting.entries.types.ts +0 -17
- package/src/accounting/Entries/index.ts +0 -11
- package/src/accounting/EntriesDetails/CreateSingle/Request.ts +0 -8
- package/src/accounting/EntriesDetails/GetMany/Request.ts +0 -6
- package/src/accounting/EntriesDetails/GetMany/Response.ts +0 -6
- package/src/accounting/EntriesDetails/GetSingle/Response.ts +0 -3
- package/src/accounting/EntriesDetails/UpdateSingle/Request.ts +0 -8
- package/src/accounting/EntriesDetails/accounting.entries-details.types.ts +0 -10
- package/src/accounting/EntriesDetails/index.ts +0 -6
- package/src/accounting/EntriesStatuses/GetMany/Response.ts +0 -5
- package/src/accounting/EntriesStatuses/GetSingle/Response.ts +0 -3
- package/src/accounting/EntriesStatuses/accounting.entries-statuses.types.ts +0 -4
- package/src/accounting/EntriesStatuses/index.ts +0 -3
- package/src/accounting/EntriesTypes/GetMany/Response.ts +0 -5
- package/src/accounting/EntriesTypes/GetSingle/Response.ts +0 -3
- package/src/accounting/EntriesTypes/accounting.entries-types.types.ts +0 -5
- package/src/accounting/EntriesTypes/index.ts +0 -3
- package/src/accounting/Reports/AccountMovements/Request.ts +0 -6
- package/src/accounting/Reports/AccountMovements/Response.ts +0 -3
- package/src/accounting/Reports/AccountMovementsPreview/Request.ts +0 -6
- package/src/accounting/Reports/AccountMovementsPreview/Response.ts +0 -3
- package/src/accounting/Reports/AccountsCatalog/Request.ts +0 -3
- package/src/accounting/Reports/AccountsCatalog/Response.ts +0 -3
- package/src/accounting/Reports/AccountsCatalogPreview/Request.ts +0 -6
- package/src/accounting/Reports/AccountsCatalogPreview/Response.ts +0 -3
- package/src/accounting/Reports/CheckingBalance/Request.ts +0 -4
- package/src/accounting/Reports/CheckingBalance/Response.ts +0 -3
- package/src/accounting/Reports/CheckingBalancePreview/Request.ts +0 -6
- package/src/accounting/Reports/CheckingBalancePreview/Response.ts +0 -3
- package/src/accounting/Reports/GeneralLedger/Request.ts +0 -4
- package/src/accounting/Reports/GeneralLedger/Response.ts +0 -3
- package/src/accounting/Reports/GeneralLedgerPreview/Request.ts +0 -6
- package/src/accounting/Reports/GeneralLedgerPreview/Response.ts +0 -3
- package/src/accounting/Reports/SubsidiaryLedger/Request.ts +0 -4
- package/src/accounting/Reports/SubsidiaryLedger/Response.ts +0 -3
- package/src/accounting/Reports/SubsidiaryLedgerPreview/Request.ts +0 -6
- package/src/accounting/Reports/SubsidiaryLedgerPreview/Response.ts +0 -3
- package/src/accounting/Reports/index.ts +0 -20
- package/src/accounting/Settings/GetGenerals/Response.ts +0 -6
- package/src/accounting/Settings/GetIncomeStatements/Response.ts +0 -6
- package/src/accounting/Settings/UpdateGenerals/Request.ts +0 -3
- package/src/accounting/Settings/UpdateGenerals/Response.ts +0 -3
- package/src/accounting/Settings/UpdateIncomeStatements/Request.ts +0 -4
- package/src/accounting/Settings/UpdateIncomeStatements/Response.ts +0 -3
- package/src/accounting/Settings/accounting.settings.types.ts +0 -34
- package/src/accounting/Settings/index.ts +0 -8
- package/src/accounting/accounting.enums.ts +0 -16
- package/src/accounting/index.ts +0 -8
- package/src/auth/Auth/GetSingleUser/Response.ts +0 -80
- package/src/auth/Auth/ProcessLogin/Request.ts +0 -5
- package/src/auth/Auth/ProcessLogin/Response.ts +0 -8
- package/src/auth/Auth/ProcessRefresh/Request.ts +0 -3
- package/src/auth/Auth/ProcessRefresh/Response.ts +0 -5
- package/src/auth/Auth/RecoveryPassword/Request.ts +0 -3
- package/src/auth/Auth/RecoveryPassword/Response.ts +0 -3
- package/src/auth/Auth/ResetPassword/Request.ts +0 -4
- package/src/auth/Auth/ResetPassword/Response.ts +0 -3
- package/src/auth/Auth/UpdatePassword/Request.ts +0 -4
- package/src/auth/Auth/UpdatePassword/Response.ts +0 -3
- package/src/auth/Auth/UpdateWorkspace/Request.ts +0 -5
- package/src/auth/Auth/UpdateWorkspace/Response.ts +0 -5
- package/src/auth/Auth/index.ts +0 -13
- package/src/auth/index.ts +0 -1
- package/src/customers/Branches/CreateMany/Request.ts +0 -3
- package/src/customers/Branches/CreateMany/Response.ts +0 -3
- package/src/customers/Branches/CreateSingle/Request.ts +0 -3
- package/src/customers/Branches/CreateSingle/Response.ts +0 -3
- package/src/customers/Branches/DeleteMany/Request.ts +0 -3
- package/src/customers/Branches/DeleteMany/Response.ts +0 -3
- package/src/customers/Branches/DeleteSingle/Response.ts +0 -3
- package/src/customers/Branches/GetMany/Request.ts +0 -5
- package/src/customers/Branches/GetMany/Response.ts +0 -6
- package/src/customers/Branches/GetSingle/Response.ts +0 -3
- package/src/customers/Branches/UpdateMany/Request.ts +0 -7
- package/src/customers/Branches/UpdateMany/Response.ts +0 -3
- package/src/customers/Branches/UpdateSingle/Request.ts +0 -10
- package/src/customers/Branches/UpdateSingle/Response.ts +0 -3
- package/src/customers/Branches/UpdateSingleDefault/Request.ts +0 -3
- package/src/customers/Branches/UpdateSingleDefault/Response.ts +0 -3
- package/src/customers/Branches/customers.branches.types.ts +0 -32
- package/src/customers/Branches/index.ts +0 -16
- package/src/customers/Customers/CreateMany/Request.ts +0 -3
- package/src/customers/Customers/CreateMany/Response.ts +0 -3
- package/src/customers/Customers/CreateSingle/Request.ts +0 -3
- package/src/customers/Customers/CreateSingle/Response.ts +0 -3
- package/src/customers/Customers/DeleteMany/Request.ts +0 -3
- package/src/customers/Customers/DeleteMany/Response.ts +0 -3
- package/src/customers/Customers/DeleteSingle/Response.ts +0 -3
- package/src/customers/Customers/GetMany/Request.ts +0 -5
- package/src/customers/Customers/GetMany/Response.ts +0 -6
- package/src/customers/Customers/GetSingle/Response.ts +0 -6
- package/src/customers/Customers/UpdateMany/Request.ts +0 -7
- package/src/customers/Customers/UpdateMany/Response.ts +0 -3
- package/src/customers/Customers/UpdateManyStatuses/Request.ts +0 -4
- package/src/customers/Customers/UpdateManyStatuses/Response.ts +0 -3
- package/src/customers/Customers/UpdateSingle/Request.ts +0 -16
- package/src/customers/Customers/UpdateSingle/Response.ts +0 -3
- package/src/customers/Customers/UpdateSingleStatus/Request.ts +0 -3
- package/src/customers/Customers/UpdateSingleStatus/Response.ts +0 -3
- package/src/customers/Customers/ValidateExistence/Request.ts +0 -7
- package/src/customers/Customers/ValidateExistence/Response.ts +0 -10
- package/src/customers/Customers/customers.types.ts +0 -47
- package/src/customers/Customers/index.ts +0 -16
- package/src/customers/Type/GetMany/Response.ts +0 -5
- package/src/customers/Type/GetSingle/Response.ts +0 -3
- package/src/customers/Type/customers.type.types.ts +0 -6
- package/src/customers/Type/index.ts +0 -2
- package/src/customers/index.ts +0 -3
- package/src/index.ts +0 -10
- package/src/interfaces.ts +0 -23
- package/src/inventories/Batches/CreateSingle/Request.ts +0 -3
- package/src/inventories/Batches/CreateSingle/Response.ts +0 -3
- package/src/inventories/Batches/GetSingle/Response.ts +0 -3
- package/src/inventories/Batches/UpdateSingle/Request.ts +0 -3
- package/src/inventories/Batches/UpdateSingle/Response.ts +0 -3
- package/src/inventories/Batches/index.ts +0 -6
- package/src/inventories/Batches/inventories.batches.types.ts +0 -9
- package/src/inventories/Categories/CreateSingle/Request.ts +0 -8
- package/src/inventories/Categories/CreateSingle/Response.ts +0 -3
- package/src/inventories/Categories/DeleteSingle/Response.ts +0 -3
- package/src/inventories/Categories/GetMany/Request.ts +0 -5
- package/src/inventories/Categories/GetMany/Response.ts +0 -6
- package/src/inventories/Categories/GetSingle/Response.ts +0 -3
- package/src/inventories/Categories/UpdateSingle/Request.ts +0 -4
- package/src/inventories/Categories/UpdateSingle/Response.ts +0 -3
- package/src/inventories/Categories/UpdateSingleStatus/Request.ts +0 -3
- package/src/inventories/Categories/UpdateSingleStatus/Response.ts +0 -3
- package/src/inventories/Categories/index.ts +0 -11
- package/src/inventories/Categories/inventories.categories.type.ts +0 -10
- package/src/inventories/Products/CreateSingle/Request.ts +0 -3
- package/src/inventories/Products/CreateSingle/Response.ts +0 -3
- package/src/inventories/Products/GetSingle/Response.ts +0 -3
- package/src/inventories/Products/UpdateSingle/Request.ts +0 -3
- package/src/inventories/Products/UpdateSingle/Response.ts +0 -3
- package/src/inventories/Products/index.ts +0 -6
- package/src/inventories/Products/inventories.products.types.ts +0 -29
- package/src/inventories/Units/GetSingle/Response.ts +0 -3
- package/src/inventories/Units/index.ts +0 -3
- package/src/inventories/Units/inventories.units.enum.ts +0 -42
- package/src/inventories/Units/inventories.units.types.ts +0 -8
- package/src/inventories/index.ts +0 -4
- package/src/invoices/Calculation/CalculateSingle/Request.ts +0 -27
- package/src/invoices/Calculation/CalculateSingle/Response.ts +0 -101
- package/src/invoices/Calculation/index.ts +0 -2
- package/src/invoices/Details/index.ts +0 -1
- package/src/invoices/Details/invoices.details.type.ts +0 -26
- package/src/invoices/DocumentTypes/GetMany/Request.ts +0 -6
- package/src/invoices/DocumentTypes/GetMany/Response.ts +0 -5
- package/src/invoices/DocumentTypes/GetSingle/Response.ts +0 -3
- package/src/invoices/DocumentTypes/index.ts +0 -4
- package/src/invoices/DocumentTypes/invoices.document-types.type.ts +0 -5
- package/src/invoices/Documents/CreateMany/Request.ts +0 -3
- package/src/invoices/Documents/CreateMany/Response.ts +0 -3
- package/src/invoices/Documents/CreateSingle/Request.ts +0 -8
- package/src/invoices/Documents/CreateSingle/Response.ts +0 -3
- package/src/invoices/Documents/GetMany/Request.ts +0 -6
- package/src/invoices/Documents/GetMany/Response.ts +0 -6
- package/src/invoices/Documents/GetSingle/Response.ts +0 -3
- package/src/invoices/Documents/Layout/index.ts +0 -65
- package/src/invoices/Documents/UpdateLayout/Request.ts +0 -3
- package/src/invoices/Documents/UpdateLayout/Response.ts +0 -3
- package/src/invoices/Documents/UpdateMany/Request.ts +0 -7
- package/src/invoices/Documents/UpdateMany/Response.ts +0 -3
- package/src/invoices/Documents/UpdateManyStatuses/Request.ts +0 -4
- package/src/invoices/Documents/UpdateManyStatuses/Response.ts +0 -3
- package/src/invoices/Documents/UpdateSingle/Request.ts +0 -3
- package/src/invoices/Documents/UpdateSingle/Response.ts +0 -3
- package/src/invoices/Documents/UpdateSingleStatus/Request.ts +0 -3
- package/src/invoices/Documents/UpdateSingleStatus/Response.ts +0 -3
- package/src/invoices/Documents/index.ts +0 -19
- package/src/invoices/Documents/invoices.documents.type.ts +0 -15
- package/src/invoices/Electronic/SVData/index.ts +0 -22
- package/src/invoices/Electronic/index.ts +0 -1
- package/src/invoices/Invoices/CreateMany/Request.ts +0 -3
- package/src/invoices/Invoices/CreateMany/Response.ts +0 -3
- package/src/invoices/Invoices/CreateReservation/Request.ts +0 -9
- package/src/invoices/Invoices/CreateReservation/Response.ts +0 -3
- package/src/invoices/Invoices/CreateSingle/Request.ts +0 -85
- package/src/invoices/Invoices/CreateSingle/Response.ts +0 -3
- package/src/invoices/Invoices/DeleteMany/Response.ts +0 -3
- package/src/invoices/Invoices/DeleteSingle/Response.ts +0 -3
- package/src/invoices/Invoices/GetDocumentTypes/Response.ts +0 -3
- package/src/invoices/Invoices/GetMany/Request.ts +0 -13
- package/src/invoices/Invoices/GetMany/Response.ts +0 -6
- package/src/invoices/Invoices/GetSingle/Response.ts +0 -3
- package/src/invoices/Invoices/MarkSingleAsPaid/Response.ts +0 -3
- package/src/invoices/Invoices/MarkSingleAsPrinted/Response.ts +0 -3
- package/src/invoices/Invoices/RevertSingle/Response.ts +0 -3
- package/src/invoices/Invoices/UpdateMany/Request.ts +0 -3
- package/src/invoices/Invoices/UpdateMany/Response.ts +0 -3
- package/src/invoices/Invoices/UpdateSingle/Request.ts +0 -22
- package/src/invoices/Invoices/UpdateSingle/Response.ts +0 -3
- package/src/invoices/Invoices/VoidSingle/Response.ts +0 -3
- package/src/invoices/Invoices/index.ts +0 -21
- package/src/invoices/Invoices/invoices.types.ts +0 -64
- package/src/invoices/PaymentConditions/CreateMany/Request.ts +0 -4
- package/src/invoices/PaymentConditions/CreateMany/Response.ts +0 -3
- package/src/invoices/PaymentConditions/CreateSingle/Request.ts +0 -6
- package/src/invoices/PaymentConditions/CreateSingle/Response.ts +0 -3
- package/src/invoices/PaymentConditions/DeleteMany/Request.ts +0 -3
- package/src/invoices/PaymentConditions/DeleteMany/Response.ts +0 -3
- package/src/invoices/PaymentConditions/DeleteSingle/Response.ts +0 -3
- package/src/invoices/PaymentConditions/GetMany/Request.ts +0 -5
- package/src/invoices/PaymentConditions/GetMany/Response.ts +0 -6
- package/src/invoices/PaymentConditions/GetSingle/Response.ts +0 -3
- package/src/invoices/PaymentConditions/UpdateMany/Request.ts +0 -7
- package/src/invoices/PaymentConditions/UpdateMany/Response.ts +0 -3
- package/src/invoices/PaymentConditions/UpdateManyStatuses/Request.ts +0 -4
- package/src/invoices/PaymentConditions/UpdateManyStatuses/Response.ts +0 -3
- package/src/invoices/PaymentConditions/UpdateSingle/Request.ts +0 -4
- package/src/invoices/PaymentConditions/UpdateSingle/Response.ts +0 -3
- package/src/invoices/PaymentConditions/UpdateSingleStatus/Request.ts +0 -3
- package/src/invoices/PaymentConditions/UpdateSingleStatus/Response.ts +0 -3
- package/src/invoices/PaymentConditions/index.ts +0 -19
- package/src/invoices/PaymentConditions/invoices.payment-conditions.type.ts +0 -6
- package/src/invoices/Reports/SalesDetails/Request.ts +0 -12
- package/src/invoices/Reports/SalesDetails/Response.ts +0 -3
- package/src/invoices/Reports/SalesDetailsPreview/Request.ts +0 -6
- package/src/invoices/Reports/SalesDetailsPreview/Response.ts +0 -3
- package/src/invoices/Reports/SalesList/Request.ts +0 -7
- package/src/invoices/Reports/SalesList/Response.ts +0 -3
- package/src/invoices/Reports/SalesListPreview/Request.ts +0 -3
- package/src/invoices/Reports/SalesListPreview/Response.ts +0 -3
- package/src/invoices/Reports/index.ts +0 -8
- package/src/invoices/Sellers/CreateMany/Request.ts +0 -3
- package/src/invoices/Sellers/CreateMany/Response.ts +0 -3
- package/src/invoices/Sellers/CreateSingle/Request.ts +0 -3
- package/src/invoices/Sellers/CreateSingle/Response.ts +0 -3
- package/src/invoices/Sellers/DeleteMany/Request.ts +0 -3
- package/src/invoices/Sellers/DeleteMany/Response.ts +0 -3
- package/src/invoices/Sellers/DeleteSingle/Response.ts +0 -3
- package/src/invoices/Sellers/GetMany/Request.ts +0 -5
- package/src/invoices/Sellers/GetMany/Response.ts +0 -6
- package/src/invoices/Sellers/GetSingle/Response.ts +0 -3
- package/src/invoices/Sellers/UpdateMany/Request.ts +0 -7
- package/src/invoices/Sellers/UpdateMany/Response.ts +0 -3
- package/src/invoices/Sellers/UpdateManyStatuses/Request.ts +0 -4
- package/src/invoices/Sellers/UpdateManyStatuses/Response.ts +0 -3
- package/src/invoices/Sellers/UpdateSingle/Request.ts +0 -3
- package/src/invoices/Sellers/UpdateSingle/Response.ts +0 -3
- package/src/invoices/Sellers/UpdateSingleStatus/Request.ts +0 -3
- package/src/invoices/Sellers/UpdateSingleStatus/Response.ts +0 -3
- package/src/invoices/Sellers/index.ts +0 -19
- package/src/invoices/Sellers/invoices.sellers.type.ts +0 -20
- package/src/invoices/Settings/ElectronincSv/Get/Response.ts +0 -3
- package/src/invoices/Settings/ElectronincSv/Set/Request.ts +0 -6
- package/src/invoices/Settings/ElectronincSv/Set/Response.ts +0 -3
- package/src/invoices/Settings/ElectronincSv/index.ts +0 -4
- package/src/invoices/Settings/ElectronincSv/invoices.settings.electronic-sv.type.ts +0 -13
- package/src/invoices/Settings/GetGenerals/Response.ts +0 -3
- package/src/invoices/Settings/UpdateGenerals/Request.ts +0 -3
- package/src/invoices/Settings/UpdateGenerals/Response.ts +0 -3
- package/src/invoices/Settings/index.ts +0 -5
- package/src/invoices/Settings/invoices.settings.type.ts +0 -9
- package/src/invoices/StatusesTypes/GetMany/Response.ts +0 -5
- package/src/invoices/StatusesTypes/GetSingle/Response.ts +0 -3
- package/src/invoices/StatusesTypes/index.ts +0 -4
- package/src/invoices/StatusesTypes/invoices.statuses-types.type.ts +0 -4
- package/src/invoices/Zones/CreateMany/Request.ts +0 -3
- package/src/invoices/Zones/CreateMany/Response.ts +0 -3
- package/src/invoices/Zones/CreateSingle/Request.ts +0 -3
- package/src/invoices/Zones/CreateSingle/Response.ts +0 -3
- package/src/invoices/Zones/DeleteMany/Request.ts +0 -3
- package/src/invoices/Zones/DeleteMany/Response.ts +0 -3
- package/src/invoices/Zones/DeleteSingle/Response.ts +0 -3
- package/src/invoices/Zones/GetMany/Request.ts +0 -5
- package/src/invoices/Zones/GetMany/Response.ts +0 -6
- package/src/invoices/Zones/GetSingle/Response.ts +0 -3
- package/src/invoices/Zones/UpdateMany/Request.ts +0 -7
- package/src/invoices/Zones/UpdateMany/Response.ts +0 -3
- package/src/invoices/Zones/UpdateManyStatuses/Request.ts +0 -4
- package/src/invoices/Zones/UpdateManyStatuses/Response.ts +0 -3
- package/src/invoices/Zones/UpdateSingle/Request.ts +0 -3
- package/src/invoices/Zones/UpdateSingle/Response.ts +0 -3
- package/src/invoices/Zones/UpdateSingleStatus/Request.ts +0 -3
- package/src/invoices/Zones/UpdateSingleStatus/Response.ts +0 -3
- package/src/invoices/Zones/index.ts +0 -19
- package/src/invoices/Zones/invoices.zones.type.ts +0 -5
- package/src/invoices/index.ts +0 -13
- package/src/invoices/invoices.enums.ts +0 -23
- package/src/legal/Advisories/index.ts +0 -1
- package/src/legal/Advisories/legal.advisories.type.ts +0 -11
- package/src/legal/Appointees/CreateSingle/Request.ts +0 -3
- package/src/legal/Appointees/CreateSingle/Response.ts +0 -3
- package/src/legal/Appointees/DeleteSingle/Response.ts +0 -3
- package/src/legal/Appointees/GetMany/Request.ts +0 -5
- package/src/legal/Appointees/GetMany/Response.ts +0 -6
- package/src/legal/Appointees/GetSingle/Response.ts +0 -3
- package/src/legal/Appointees/UpdateSingle/Request.ts +0 -3
- package/src/legal/Appointees/UpdateSingle/Response.ts +0 -3
- package/src/legal/Appointees/UpdateSingleStatus/Request.ts +0 -3
- package/src/legal/Appointees/UpdateSingleStatus/Response.ts +0 -3
- package/src/legal/Appointees/index.ts +0 -11
- package/src/legal/Appointees/legal.appointees.type.ts +0 -5
- package/src/legal/Lawyers/CreateSingle/Request.ts +0 -3
- package/src/legal/Lawyers/CreateSingle/Response.ts +0 -3
- package/src/legal/Lawyers/DeleteSingle/Response.ts +0 -3
- package/src/legal/Lawyers/GetMany/Request.ts +0 -5
- package/src/legal/Lawyers/GetMany/Response.ts +0 -6
- package/src/legal/Lawyers/GetSingle/Response.ts +0 -3
- package/src/legal/Lawyers/UpdateSingle/Request.ts +0 -3
- package/src/legal/Lawyers/UpdateSingle/Response.ts +0 -3
- package/src/legal/Lawyers/UpdateSingleStatus/Request.ts +0 -3
- package/src/legal/Lawyers/UpdateSingleStatus/Response.ts +0 -3
- package/src/legal/Lawyers/index.ts +0 -11
- package/src/legal/Lawyers/legal.lawyers.type.ts +0 -19
- package/src/legal/PeopleCapacities/CreateSingle/Request.ts +0 -3
- package/src/legal/PeopleCapacities/CreateSingle/Response.ts +0 -3
- package/src/legal/PeopleCapacities/DeleteSingle/Response.ts +0 -3
- package/src/legal/PeopleCapacities/GetMany/Request.ts +0 -5
- package/src/legal/PeopleCapacities/GetMany/Response.ts +0 -6
- package/src/legal/PeopleCapacities/GetSingle/Response.ts +0 -3
- package/src/legal/PeopleCapacities/UpdateSingle/Request.ts +0 -4
- package/src/legal/PeopleCapacities/UpdateSingle/Response.ts +0 -3
- package/src/legal/PeopleCapacities/UpdateSingleStatus/Request.ts +0 -3
- package/src/legal/PeopleCapacities/UpdateSingleStatus/Response.ts +0 -3
- package/src/legal/PeopleCapacities/index.ts +0 -11
- package/src/legal/PeopleCapacities/legal.people-capacities.type.ts +0 -5
- package/src/legal/index.ts +0 -3
- package/src/legal/legal.enum.ts +0 -5
- package/src/management/Branch/index.ts +0 -1
- package/src/management/Branch/management.branch.type.ts +0 -7
- package/src/management/Company/GetCurrent/index.ts +0 -3
- package/src/management/Company/UpdateCurrent/Request.ts +0 -17
- package/src/management/Company/UpdateCurrent/Response.ts +0 -3
- package/src/management/Company/index.ts +0 -4
- package/src/management/Company/management.company.type.ts +0 -14
- package/src/management/Profiles/GetMany/Request.ts +0 -3
- package/src/management/Profiles/GetMany/Response.ts +0 -6
- package/src/management/Profiles/index.ts +0 -3
- package/src/management/Profiles/management.profiles.type.ts +0 -11
- package/src/management/Users/GetMany/Request.ts +0 -5
- package/src/management/Users/GetMany/Response.ts +0 -6
- package/src/management/Users/index.ts +0 -3
- package/src/management/Users/management.users.type.ts +0 -22
- package/src/management/index.ts +0 -4
- package/src/partners/V1/auth/ProcessLogin/Request.ts +0 -4
- package/src/partners/V1/auth/ProcessLogin/Response.ts +0 -7
- package/src/partners/V1/auth/index.ts +0 -2
- package/src/partners/V1/index.ts +0 -2
- package/src/partners/V1/invoices/CreateSingle/Request.ts +0 -177
- package/src/partners/V1/invoices/CreateSingle/Response.ts +0 -24
- package/src/partners/V1/invoices/index.ts +0 -2
- package/src/partners/index.ts +0 -1
- package/src/services/Reports/List/Request.ts +0 -7
- package/src/services/Reports/List/Response.ts +0 -3
- package/src/services/Reports/ListPreview/Request.ts +0 -3
- package/src/services/Reports/ListPreview/Response.ts +0 -3
- package/src/services/Reports/index.ts +0 -4
- package/src/services/SellingTypes/GetMany/Response.ts +0 -5
- package/src/services/SellingTypes/GetSingle/Response.ts +0 -3
- package/src/services/SellingTypes/index.ts +0 -2
- package/src/services/SellingTypes/services.selling-types.types.ts +0 -9
- package/src/services/Services/CreateMany/Request.ts +0 -3
- package/src/services/Services/CreateMany/Response.ts +0 -3
- package/src/services/Services/CreateSingle/Request.ts +0 -3
- package/src/services/Services/CreateSingle/Response.ts +0 -3
- package/src/services/Services/DeleteMany/Request.ts +0 -3
- package/src/services/Services/DeleteMany/Response.ts +0 -3
- package/src/services/Services/DeleteSingle/Response.ts +0 -3
- package/src/services/Services/GetMany/Request.ts +0 -8
- package/src/services/Services/GetMany/Response.ts +0 -6
- package/src/services/Services/GetSingle/Response.ts +0 -3
- package/src/services/Services/UpdateMany/Request.ts +0 -3
- package/src/services/Services/UpdateMany/Response.ts +0 -3
- package/src/services/Services/UpdateManyStatuses/Request.ts +0 -4
- package/src/services/Services/UpdateManyStatuses/Response.ts +0 -3
- package/src/services/Services/UpdateSingle/Request.ts +0 -3
- package/src/services/Services/UpdateSingle/Response.ts +0 -3
- package/src/services/Services/UpdateSingleStatus/Request.ts +0 -3
- package/src/services/Services/UpdateSingleStatus/Response.ts +0 -3
- package/src/services/Services/index.ts +0 -14
- package/src/services/Services/services.types.ts +0 -19
- package/src/services/Settings/GetIntegrations/Response.ts +0 -1
- package/src/services/Settings/UpdateIntegrations/Request.ts +0 -1
- package/src/services/Settings/UpdateIntegrations/Response.ts +0 -1
- package/src/services/Settings/index.ts +0 -3
- package/src/services/index.ts +0 -4
- package/src/tools.ts +0 -34
- package/tsconfig.json +0 -16
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# GitHub Copilot Instructions
|
|
2
|
+
|
|
3
|
+
## Commit Message Format
|
|
4
|
+
Always generate commit messages using Conventional Commits format with these specific types:
|
|
5
|
+
|
|
6
|
+
- **feat**: new features or functionality
|
|
7
|
+
- **fix**: bug fixes and issue resolutions
|
|
8
|
+
- **chore**: maintenance tasks, dependency updates, build changes
|
|
9
|
+
- **refactor**: code restructuring without changing functionality
|
|
10
|
+
- **test**: adding, updating, or fixing tests
|
|
11
|
+
- **wip**: work in progress commits
|
|
12
|
+
|
|
13
|
+
## Format Structure
|
|
14
|
+
```
|
|
15
|
+
<type>[optional scope]: <description>
|
|
16
|
+
|
|
17
|
+
<body>
|
|
18
|
+
|
|
19
|
+
[optional footer]
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Body Requirements
|
|
23
|
+
The body is **required** and should provide a list of changes made in the commit. The list doesn't need to be exhaustive but should give reviewers a clear understanding of what was done:
|
|
24
|
+
|
|
25
|
+
- Use bullet points to list the main changes
|
|
26
|
+
- Focus on the most important modifications
|
|
27
|
+
- Be concise but informative
|
|
28
|
+
- Use present tense verbs
|
|
29
|
+
|
|
30
|
+
## Examples
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
feat: add user authentication middleware
|
|
34
|
+
|
|
35
|
+
- Implement JWT token validation
|
|
36
|
+
- Add role-based access control
|
|
37
|
+
- Create middleware for route protection
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
fix: resolve memory leak in data processor
|
|
42
|
+
|
|
43
|
+
- Fix circular reference in data cache
|
|
44
|
+
- Add proper cleanup in destroy method
|
|
45
|
+
- Update memory management in batch processing
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
fix: resolve createSingle test assertions (#123)
|
|
50
|
+
|
|
51
|
+
- Update test expectations for new validation rules
|
|
52
|
+
- Fix mock data to match schema requirements
|
|
53
|
+
- Add missing async/await handling
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
chore: update TypeScript dependencies
|
|
58
|
+
|
|
59
|
+
- Upgrade TypeScript to v5.2.0
|
|
60
|
+
- Update @types/node to latest version
|
|
61
|
+
- Fix type compatibility issues
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
test: add unit tests for auth service
|
|
66
|
+
|
|
67
|
+
- Create tests for login functionality
|
|
68
|
+
- Add validation test cases
|
|
69
|
+
- Mock external authentication providers
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
refactor: simplify error handling logic
|
|
74
|
+
|
|
75
|
+
- Consolidate error classes into single module
|
|
76
|
+
- Remove duplicate error handling code
|
|
77
|
+
- Standardize error response format
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Requirements
|
|
81
|
+
- Use lowercase for type and description
|
|
82
|
+
- Keep description under 50 characters when possible
|
|
83
|
+
- Reference GitHub issues using (#issue-number) format
|
|
84
|
+
- Use present tense ("add" not "added")
|
|
85
|
+
- Don't capitalize first letter of description
|
|
86
|
+
- Don't end description with period
|
|
87
|
+
|
|
88
|
+
## Code Quality
|
|
89
|
+
- Follow existing code patterns and conventions
|
|
90
|
+
- Add appropriate TypeScript types
|
|
91
|
+
- Include JSDoc comments for public methods
|
|
92
|
+
- Write comprehensive tests for new functionality
|
|
93
|
+
- Follow the existing project structure
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
name: NPM Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- development
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
|
|
12
|
+
strategy:
|
|
13
|
+
matrix:
|
|
14
|
+
node-version: [16.19.0]
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- name: Checkout code
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
|
|
20
|
+
- name: Setup Node.js
|
|
21
|
+
uses: actions/setup-node@v4
|
|
22
|
+
with:
|
|
23
|
+
node-version: ${{ matrix.node-version }}
|
|
24
|
+
cache: 'yarn'
|
|
25
|
+
|
|
26
|
+
- name: Install dependencies
|
|
27
|
+
run: yarn install --frozen-lockfile
|
|
28
|
+
|
|
29
|
+
- name: Run linting
|
|
30
|
+
run: yarn lint
|
|
31
|
+
|
|
32
|
+
- name: Run formatting check
|
|
33
|
+
run: yarn format:check
|
|
34
|
+
|
|
35
|
+
- name: Build package
|
|
36
|
+
run: yarn build
|
|
37
|
+
|
|
38
|
+
- name: Upload build artifacts
|
|
39
|
+
uses: actions/upload-artifact@v4
|
|
40
|
+
with:
|
|
41
|
+
name: build-artifacts
|
|
42
|
+
path: lib/
|
|
43
|
+
retention-days: 1
|
|
44
|
+
|
|
45
|
+
publish:
|
|
46
|
+
needs: build
|
|
47
|
+
runs-on: ubuntu-latest
|
|
48
|
+
if: github.ref == 'refs/heads/development'
|
|
49
|
+
|
|
50
|
+
strategy:
|
|
51
|
+
matrix:
|
|
52
|
+
node-version: [16.19.0]
|
|
53
|
+
|
|
54
|
+
steps:
|
|
55
|
+
- name: Checkout code
|
|
56
|
+
uses: actions/checkout@v4
|
|
57
|
+
|
|
58
|
+
- name: Setup Node.js
|
|
59
|
+
uses: actions/setup-node@v4
|
|
60
|
+
with:
|
|
61
|
+
node-version: ${{ matrix.node-version }}
|
|
62
|
+
cache: 'yarn'
|
|
63
|
+
registry-url: 'https://registry.npmjs.org'
|
|
64
|
+
|
|
65
|
+
- name: Install dependencies
|
|
66
|
+
run: yarn install --frozen-lockfile
|
|
67
|
+
|
|
68
|
+
- name: Download build artifacts
|
|
69
|
+
uses: actions/download-artifact@v4
|
|
70
|
+
with:
|
|
71
|
+
name: build-artifacts
|
|
72
|
+
path: lib/
|
|
73
|
+
|
|
74
|
+
- name: Check if version exists on NPM
|
|
75
|
+
id: version-check
|
|
76
|
+
run: |
|
|
77
|
+
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
78
|
+
PACKAGE_NAME=$(node -p "require('./package.json').name")
|
|
79
|
+
echo "Package: $PACKAGE_NAME"
|
|
80
|
+
echo "Version: $PACKAGE_VERSION"
|
|
81
|
+
|
|
82
|
+
if npm view "$PACKAGE_NAME@$PACKAGE_VERSION" version 2>/dev/null; then
|
|
83
|
+
echo "Version $PACKAGE_VERSION already exists on NPM"
|
|
84
|
+
echo "should_publish=false" >> $GITHUB_OUTPUT
|
|
85
|
+
else
|
|
86
|
+
echo "Version $PACKAGE_VERSION does not exist on NPM"
|
|
87
|
+
echo "should_publish=true" >> $GITHUB_OUTPUT
|
|
88
|
+
fi
|
|
89
|
+
|
|
90
|
+
echo "package_version=$PACKAGE_VERSION" >> $GITHUB_OUTPUT
|
|
91
|
+
echo "package_name=$PACKAGE_NAME" >> $GITHUB_OUTPUT
|
|
92
|
+
|
|
93
|
+
- name: Publish to NPM
|
|
94
|
+
if: steps.version-check.outputs.should_publish == 'true'
|
|
95
|
+
run: |
|
|
96
|
+
echo "Publishing ${{ steps.version-check.outputs.package_name }}@${{ steps.version-check.outputs.package_version }} to NPM..."
|
|
97
|
+
npm publish --access public
|
|
98
|
+
env:
|
|
99
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
100
|
+
|
|
101
|
+
- name: Version already exists
|
|
102
|
+
if: steps.version-check.outputs.should_publish == 'false'
|
|
103
|
+
run: |
|
|
104
|
+
echo "⚠️ Version ${{ steps.version-check.outputs.package_version }} already exists on NPM"
|
|
105
|
+
echo "No publish action taken. Please update the version in package.json before pushing to development branch."
|
package/README.md
CHANGED
|
@@ -18,3 +18,51 @@ Instalar dependencias y inicializar hooks
|
|
|
18
18
|
```bash
|
|
19
19
|
$ yarn install && yarn husky install
|
|
20
20
|
```
|
|
21
|
+
|
|
22
|
+
## CI/CD
|
|
23
|
+
|
|
24
|
+
### Automatic NPM Publishing
|
|
25
|
+
|
|
26
|
+
This repository includes a GitHub Action workflow that automatically publishes the package to NPM when changes are merged into the `development` branch.
|
|
27
|
+
|
|
28
|
+
#### Workflow Overview
|
|
29
|
+
|
|
30
|
+
- **Trigger**: Pushes to `development` branch
|
|
31
|
+
- **Build Process**: Install dependencies, run linting, formatting checks, and build the package
|
|
32
|
+
- **Publishing**: Automatically publishes to NPM registry if the version doesn't already exist
|
|
33
|
+
- **Version Management**: Checks if the current package.json version exists on NPM before publishing
|
|
34
|
+
|
|
35
|
+
#### Setup Requirements
|
|
36
|
+
|
|
37
|
+
1. **NPM Token**: Add `NPM_TOKEN` secret to repository settings with a valid NPM authentication token
|
|
38
|
+
2. **Version Management**: Update version in `package.json` before merging to development branch
|
|
39
|
+
3. **Package Access**: The workflow publishes with `--access public` for scoped packages
|
|
40
|
+
|
|
41
|
+
#### Workflow Steps
|
|
42
|
+
|
|
43
|
+
1. **Build Job**:
|
|
44
|
+
- Checkout code
|
|
45
|
+
- Setup Node.js 16.19.0
|
|
46
|
+
- Install dependencies with frozen lockfile
|
|
47
|
+
- Run linting (`yarn lint`)
|
|
48
|
+
- Run formatting check (`yarn format:check`)
|
|
49
|
+
- Build package (`yarn build`)
|
|
50
|
+
- Upload build artifacts
|
|
51
|
+
|
|
52
|
+
2. **Publish Job**:
|
|
53
|
+
- Download build artifacts
|
|
54
|
+
- Check if version exists on NPM
|
|
55
|
+
- Publish to NPM (if version is new)
|
|
56
|
+
- Skip publishing if version already exists
|
|
57
|
+
|
|
58
|
+
#### Manual Publishing
|
|
59
|
+
|
|
60
|
+
If you need to publish manually:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# Build the package
|
|
64
|
+
yarn build
|
|
65
|
+
|
|
66
|
+
# Publish to NPM
|
|
67
|
+
npm publish --access public
|
|
68
|
+
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SystemPersonTypeNaturalsGetSingleResponse } from '../../System/PersonTypeNaturals/GetSingle/Response';
|
|
2
1
|
import { SystemDirectoryCreateSingleRequest, SystemSvFields, SystemSvFieldsRequest } from '../../system';
|
|
3
2
|
import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types';
|
|
3
|
+
import { SystemPersonTypeNaturalsGetSingleResponse } from '../../system/PersonTypeNaturals/GetSingle/Response';
|
|
4
4
|
import { SystemPersonTypesGetSingleResponse } from '../../system/PersonTypes/GetSingle/Response';
|
|
5
5
|
import { SystemSellingTypeGetSingleResponse } from '../../system/SellingTypes/GetSingle/Response';
|
|
6
6
|
import { CustomersBranchesCreateSingleRequest } from '../Branches';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SystemPersonTypeNaturals } from '../../System/PersonTypeNaturals/system.person-types-naturals.types';
|
|
2
1
|
import { CustomersBranches } from '../../customers/Branches/customers.branches.types';
|
|
3
2
|
import { Customers } from '../../customers/Customers/customers.types';
|
|
3
|
+
import { SystemPersonTypeNaturals } from '../../system/PersonTypeNaturals/system.person-types-naturals.types';
|
|
4
4
|
import { SystemPersonTypes } from '../../system/PersonTypes/system.person-types.types';
|
|
5
5
|
import { InvoicesDetails } from '../Details/invoices.details.type';
|
|
6
6
|
import { InvoicesDocumentTypes } from '../DocumentTypes/invoices.document-types.type';
|
|
@@ -13,6 +13,7 @@ export type Invoices = {
|
|
|
13
13
|
id: string;
|
|
14
14
|
authorization: string;
|
|
15
15
|
sequence: string;
|
|
16
|
+
externalId?: string;
|
|
16
17
|
customerName: string;
|
|
17
18
|
customerAddress1: string;
|
|
18
19
|
customerAddress2: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InvoicesStatusesTypes } from
|
|
1
|
+
import { InvoicesStatusesTypes } from '../invoices.statuses-types.type';
|
|
2
2
|
export type InvoicesStatusesTypesGetSingleResponse = InvoicesStatusesTypes;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SystemPersonTypeNaturals } from '../../System/PersonTypeNaturals/system.person-types-naturals.types';
|
|
2
1
|
import { SystemSvFields } from '../../system';
|
|
2
|
+
import { SystemPersonTypeNaturals } from '../../system/PersonTypeNaturals/system.person-types-naturals.types';
|
|
3
3
|
import { SystemPersonTypes } from '../../system/PersonTypes/system.person-types.types';
|
|
4
4
|
import { ManagementBranch } from '../Branch/management.branch.type';
|
|
5
5
|
export type ManagementCompany = {
|
|
@@ -4,6 +4,7 @@ export declare enum PartnersV1InvoicesCreateSingleRequestSettingsNotify {
|
|
|
4
4
|
}
|
|
5
5
|
export type PartnersV1InvoicesCreateSingleRequestSettings = {
|
|
6
6
|
notify: PartnersV1InvoicesCreateSingleRequestSettingsNotify | null;
|
|
7
|
+
internalId?: string;
|
|
7
8
|
};
|
|
8
9
|
export type PartnersV1InvoicesCreateSingleRequestDataHeaderInvoicesSellerZone = {
|
|
9
10
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../../src/partners/V1/invoices/CreateSingle/Request.ts"],"names":[],"mappings":";;;AAEA,IAAY,mDAEX;AAFD,WAAY,mDAAmD;IAC7D,sEAAe,CAAA;AACjB,CAAC,EAFW,mDAAmD,GAAnD,2DAAmD,KAAnD,2DAAmD,QAE9D;
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../../src/partners/V1/invoices/CreateSingle/Request.ts"],"names":[],"mappings":";;;AAEA,IAAY,mDAEX;AAFD,WAAY,mDAAmD;IAC7D,sEAAe,CAAA;AACjB,CAAC,EAFW,mDAAmD,GAAnD,2DAAmD,KAAnD,2DAAmD,QAE9D;AAkBD,IAAY,2DAIX;AAJD,WAAY,2DAA2D;IACrE,uJAAa,CAAA;IACb,iJAAU,CAAA;IACV,mJAAW,CAAA;AACb,CAAC,EAJW,2DAA2D,GAA3D,mEAA2D,KAA3D,mEAA2D,QAItE;AAED,IAAY,iEAIX;AAJD,WAAY,iEAAiE;IAC3E,iLAAoB,CAAA;IACpB,+KAAmB,CAAA;IACnB,qLAAsB,CAAA;AACxB,CAAC,EAJW,iEAAiE,GAAjE,yEAAiE,KAAjE,yEAAiE,QAI5E;AACD,IAAY,wEAGX;AAHD,WAAY,wEAAwE;IAClF,2LAAkB,CAAA;IAClB,qLAAe,CAAA;AACjB,CAAC,EAHW,wEAAwE,GAAxE,gFAAwE,KAAxE,gFAAwE,QAGnF;AAED,IAAY,wEAIX;AAJD,WAAY,wEAAwE;IAClF,6KAAW,CAAA;IACX,6KAAW,CAAA;IACX,2KAAU,CAAA;AACZ,CAAC,EAJW,wEAAwE,GAAxE,gFAAwE,KAAxE,gFAAwE,QAInF;AAUD,IAAY,oEAIX;AAJD,WAAY,oEAAoE;IAC9E,uFAAe,CAAA;IACf,uFAAe,CAAA;IACf,+FAAuB,CAAA;AACzB,CAAC,EAJW,oEAAoE,GAApE,4EAAoE,KAApE,4EAAoE,QAI/E;AAwCD,IAAY,2DAKX;AALD,WAAY,2DAA2D;IACrE,0EAAW,CAAA;IACX,0EAAW,CAAA;IACX,wEAAS,CAAA;IACT,0EAAW,CAAA;AACb,CAAC,EALW,2DAA2D,GAA3D,mEAA2D,KAA3D,mEAA2D,QAKtE;AAWD,IAAY,2DAIX;AAJD,WAAY,2DAA2D;IACrE,uJAAa,CAAA;IACb,iJAAU,CAAA;IACV,mJAAW,CAAA;AACb,CAAC,EAJW,2DAA2D,GAA3D,mEAA2D,KAA3D,mEAA2D,QAItE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/system/PersonTypeNaturals/GetSingle/Response.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.person-types-naturals.types.js","sourceRoot":"","sources":["../../../src/
|
|
1
|
+
{"version":3,"file":"system.person-types-naturals.types.js","sourceRoot":"","sources":["../../../src/system/PersonTypeNaturals/system.person-types-naturals.types.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
package/.eslintignore
DELETED
package/.eslintrc.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"parser": "@typescript-eslint/parser",
|
|
3
|
-
"parserOptions": {
|
|
4
|
-
"project": "./tsconfig.json"
|
|
5
|
-
},
|
|
6
|
-
"plugins": ["@typescript-eslint/eslint-plugin", "import"],
|
|
7
|
-
"extends": [
|
|
8
|
-
"plugin:@typescript-eslint/recommended",
|
|
9
|
-
"eslint-config-prettier",
|
|
10
|
-
"plugin:prettier/recommended"
|
|
11
|
-
],
|
|
12
|
-
"root": true,
|
|
13
|
-
"rules": {
|
|
14
|
-
"@typescript-eslint/explicit-function-return-type": "off",
|
|
15
|
-
"@typescript-eslint/no-explicit-any": "warn",
|
|
16
|
-
"@typescript-eslint/no-use-before-define": "error",
|
|
17
|
-
"semi": "off",
|
|
18
|
-
"import/order": [
|
|
19
|
-
"error",
|
|
20
|
-
{
|
|
21
|
-
"groups": [["builtin", "external"], "internal", "parent", "sibling", "index"],
|
|
22
|
-
"alphabetize": {"order": "asc"}
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
"import/newline-after-import": ["error", { "count": 1}],
|
|
26
|
-
"linebreak-style": ["error", "unix"],
|
|
27
|
-
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_", "destructuredArrayIgnorePattern": "^_" }],
|
|
28
|
-
"@typescript-eslint/no-empty-interface": "warn"
|
|
29
|
-
}
|
|
30
|
-
}
|
package/.husky/commit-msg
DELETED
package/.husky/pre-commit
DELETED
package/.prettierignore
DELETED
package/.prettierrc
DELETED
package/.vscode/settings.json
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"[vue][javascript][typescript][json][jsonc]": {
|
|
3
|
-
"editor.codeActionsOnSave": {
|
|
4
|
-
"source.fixAll.eslint": "explicit",
|
|
5
|
-
"source.organizeImports": "explicit"
|
|
6
|
-
},
|
|
7
|
-
"editor.tabSize": 2,
|
|
8
|
-
"javascript.preferences.importModuleSpecifier": "project-relative",
|
|
9
|
-
"typescript.preferences.importModuleSpecifier": "project-relative",
|
|
10
|
-
"editor.formatOnSave": true
|
|
11
|
-
},
|
|
12
|
-
"cSpell.words": [
|
|
13
|
-
"Exentas",
|
|
14
|
-
"Percibido"
|
|
15
|
-
]
|
|
16
|
-
}
|
package/commitlint.config.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
extends: ['@commitlint/config-conventional'],
|
|
3
|
-
rules: {
|
|
4
|
-
'type-enum': [2, 'always', ['feat', 'fix', 'chore', 'refactor', 'test', 'wip']],
|
|
5
|
-
'scope-case': [2, 'always', ['upper-case', 'lower-case']],
|
|
6
|
-
'subject-case': [2, 'always', ['sentence-case', 'start-case', 'lower-case', 'upper-case']],
|
|
7
|
-
},
|
|
8
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as fs from 'fs'
|
|
2
|
-
|
|
3
|
-
const startsWithMergeBranch = (str: string) => str.indexOf('Merge branch') === 0
|
|
4
|
-
const startsWithMergePR = (str: string) => str.indexOf('Merge pull request') === 0
|
|
5
|
-
const isValidMessage = (str: string) => !startsWithMergeBranch(str) && !startsWithMergePR(str)
|
|
6
|
-
|
|
7
|
-
const keyMatcher = new RegExp(`[A-Z | a-z]{2}-[0-9]{1,5}`, 'i')
|
|
8
|
-
|
|
9
|
-
const getIssueKeyFromBranchName = (str: string) => {
|
|
10
|
-
const matched = str.match(keyMatcher)
|
|
11
|
-
return matched && matched[0]
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const messageFile = '.git/COMMIT_EDITMSG'
|
|
15
|
-
const message = fs.readFileSync(messageFile, { encoding: 'utf-8' })
|
|
16
|
-
const messageTitle = message.split('\n')[0].split(':')
|
|
17
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
18
|
-
const branchName = require('child_process')
|
|
19
|
-
.execSync('git rev-parse --abbrev-ref HEAD', { encoding: 'utf-8' })
|
|
20
|
-
.split('\n')[0]
|
|
21
|
-
|
|
22
|
-
const issueKey = getIssueKeyFromBranchName(branchName)
|
|
23
|
-
|
|
24
|
-
if (issueKey && isValidMessage(messageTitle.join(':'))) {
|
|
25
|
-
// Apply the issue tag to message title
|
|
26
|
-
const messageLines = message.split('\n')
|
|
27
|
-
messageLines[0] = `${messageTitle[0]}: [${issueKey.toUpperCase()}] - ${messageTitle[1]}`
|
|
28
|
-
fs.writeFileSync(messageFile, messageLines.join('\n'), { encoding: 'utf-8' })
|
|
29
|
-
// eslint-disable-next-line no-console
|
|
30
|
-
console.log(`New message title: ${messageLines[0]}`)
|
|
31
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SystemStates } from '../States/system.states.types'
|
|
2
|
-
|
|
3
|
-
export type SystemCities = {
|
|
4
|
-
id: number
|
|
5
|
-
name: string
|
|
6
|
-
state: SystemStates
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export type SystemCitiesRequest = Omit<SystemCities, 'id' | 'state'> & {
|
|
10
|
-
state: number
|
|
11
|
-
}
|
|
12
|
-
export type SystemCitiesResponse = SystemCities
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from './CreateSingle/Request'
|
|
2
|
-
export * from './CreateSingle/Response'
|
|
3
|
-
export * from './DeleteSingle/Response'
|
|
4
|
-
export * from './GetMany/Request'
|
|
5
|
-
export * from './GetMany/Response'
|
|
6
|
-
export * from './UpdateSingle/Request'
|
|
7
|
-
export * from './UpdateSingle/Response'
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { CustomersBranchesResponse } from '../../customers/Branches/customers.branches.types'
|
|
2
|
-
import { CustomersResponse } from '../../customers/Customers/customers.types'
|
|
3
|
-
|
|
4
|
-
export type SystemDirectoryType = 'phone' | 'cellphone' | 'email'
|
|
5
|
-
|
|
6
|
-
export type SystemDirectoryEntityType =
|
|
7
|
-
| 'warehouse'
|
|
8
|
-
| 'company'
|
|
9
|
-
| 'companyBranch'
|
|
10
|
-
| 'customer'
|
|
11
|
-
| 'customerBranch'
|
|
12
|
-
| 'invoicesSeller'
|
|
13
|
-
| 'legalJurisdiction'
|
|
14
|
-
| 'appointee'
|
|
15
|
-
| 'assignee'
|
|
16
|
-
|
|
17
|
-
export type SystemDirectory = {
|
|
18
|
-
id: string
|
|
19
|
-
type: SystemDirectoryType
|
|
20
|
-
value: string
|
|
21
|
-
hasWhatsapp?: boolean
|
|
22
|
-
// warehouse: InventoryWarehousesEntity
|
|
23
|
-
// appointee: LegalAppointeesEntity
|
|
24
|
-
// assignee: LegalAssigneesEntity
|
|
25
|
-
// legalJurisdiction: LegalJurisdictionsEntity
|
|
26
|
-
customer: CustomersResponse
|
|
27
|
-
customerBranch: CustomersBranchesResponse
|
|
28
|
-
// invoicesSellers: InvoicesSellersResponse
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export type SystemDirectoryRequest = Omit<
|
|
32
|
-
SystemDirectory,
|
|
33
|
-
'id' | 'customer' | 'customerBranch' | 'invoicesSellers'
|
|
34
|
-
> & {
|
|
35
|
-
entityType: SystemDirectoryEntityType
|
|
36
|
-
entityId: string
|
|
37
|
-
}
|
|
38
|
-
export type SystemDirectoryResponse = Omit<SystemDirectory, 'customer' | 'customerBranch'>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SystemLogs } from '../system.logs.types'
|
|
2
|
-
|
|
3
|
-
export type SystemLogsCreateSingleRequest = Omit<
|
|
4
|
-
SystemLogs,
|
|
5
|
-
'id' | 'user' | 'module' | 'company' | 'companyBranch'
|
|
6
|
-
> & {
|
|
7
|
-
user: string
|
|
8
|
-
key: string
|
|
9
|
-
module: string
|
|
10
|
-
company: string
|
|
11
|
-
companyBranch: string
|
|
12
|
-
}
|