namirasoft-erp 1.4.0
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/dist/NamirasoftErpServer.d.ts +35 -0
- package/dist/NamirasoftErpServer.js +42 -0
- package/dist/NamirasoftErpServer.js.map +1 -0
- package/dist/NamirasoftErpServerAccountPartyType.d.ts +14 -0
- package/dist/NamirasoftErpServerAccountPartyType.js +41 -0
- package/dist/NamirasoftErpServerAccountPartyType.js.map +1 -0
- package/dist/NamirasoftErpServerBase.d.ts +5 -0
- package/dist/NamirasoftErpServerBase.js +11 -0
- package/dist/NamirasoftErpServerBase.js.map +1 -0
- package/dist/NamirasoftErpServerBranch.d.ts +18 -0
- package/dist/NamirasoftErpServerBranch.js +64 -0
- package/dist/NamirasoftErpServerBranch.js.map +1 -0
- package/dist/NamirasoftErpServerCompany.d.ts +18 -0
- package/dist/NamirasoftErpServerCompany.js +64 -0
- package/dist/NamirasoftErpServerCompany.js.map +1 -0
- package/dist/NamirasoftErpServerCurrency.d.ts +18 -0
- package/dist/NamirasoftErpServerCurrency.js +64 -0
- package/dist/NamirasoftErpServerCurrency.js.map +1 -0
- package/dist/NamirasoftErpServerCurrencyExchange.d.ts +18 -0
- package/dist/NamirasoftErpServerCurrencyExchange.js +64 -0
- package/dist/NamirasoftErpServerCurrencyExchange.js.map +1 -0
- package/dist/NamirasoftErpServerERPAccount.d.ts +18 -0
- package/dist/NamirasoftErpServerERPAccount.js +64 -0
- package/dist/NamirasoftErpServerERPAccount.js.map +1 -0
- package/dist/NamirasoftErpServerFiscalYear.d.ts +18 -0
- package/dist/NamirasoftErpServerFiscalYear.js +64 -0
- package/dist/NamirasoftErpServerFiscalYear.js.map +1 -0
- package/dist/NamirasoftErpServerHealth.d.ts +8 -0
- package/dist/NamirasoftErpServerHealth.js +35 -0
- package/dist/NamirasoftErpServerHealth.js.map +1 -0
- package/dist/NamirasoftErpServerHealthz.d.ts +7 -0
- package/dist/NamirasoftErpServerHealthz.js +28 -0
- package/dist/NamirasoftErpServerHealthz.js.map +1 -0
- package/dist/NamirasoftErpServerJournalEntry.d.ts +18 -0
- package/dist/NamirasoftErpServerJournalEntry.js +64 -0
- package/dist/NamirasoftErpServerJournalEntry.js.map +1 -0
- package/dist/NamirasoftErpServerJournalEntryLine.d.ts +14 -0
- package/dist/NamirasoftErpServerJournalEntryLine.js +41 -0
- package/dist/NamirasoftErpServerJournalEntryLine.js.map +1 -0
- package/dist/NamirasoftErpServerMetrics.d.ts +7 -0
- package/dist/NamirasoftErpServerMetrics.js +28 -0
- package/dist/NamirasoftErpServerMetrics.js.map +1 -0
- package/dist/NamirasoftErpServerParty.d.ts +18 -0
- package/dist/NamirasoftErpServerParty.js +64 -0
- package/dist/NamirasoftErpServerParty.js.map +1 -0
- package/dist/NamirasoftErpServerPartyType.d.ts +18 -0
- package/dist/NamirasoftErpServerPartyType.js +64 -0
- package/dist/NamirasoftErpServerPartyType.js.map +1 -0
- package/dist/NamirasoftErpServerValue.d.ts +7 -0
- package/dist/NamirasoftErpServerValue.js +29 -0
- package/dist/NamirasoftErpServerValue.js.map +1 -0
- package/dist/command/AccountPartyTypeCommand.d.ts +4 -0
- package/dist/command/AccountPartyTypeCommand.js +17 -0
- package/dist/command/AccountPartyTypeCommand.js.map +1 -0
- package/dist/command/AccountPartyTypeGetCommand.d.ts +5 -0
- package/dist/command/AccountPartyTypeGetCommand.js +38 -0
- package/dist/command/AccountPartyTypeGetCommand.js.map +1 -0
- package/dist/command/AccountPartyTypeListCommand.d.ts +5 -0
- package/dist/command/AccountPartyTypeListCommand.js +38 -0
- package/dist/command/AccountPartyTypeListCommand.js.map +1 -0
- package/dist/command/BranchCommand.d.ts +4 -0
- package/dist/command/BranchCommand.js +23 -0
- package/dist/command/BranchCommand.js.map +1 -0
- package/dist/command/BranchCreateCommand.d.ts +5 -0
- package/dist/command/BranchCreateCommand.js +94 -0
- package/dist/command/BranchCreateCommand.js.map +1 -0
- package/dist/command/BranchDeleteCommand.d.ts +5 -0
- package/dist/command/BranchDeleteCommand.js +38 -0
- package/dist/command/BranchDeleteCommand.js.map +1 -0
- package/dist/command/BranchGetCommand.d.ts +5 -0
- package/dist/command/BranchGetCommand.js +38 -0
- package/dist/command/BranchGetCommand.js.map +1 -0
- package/dist/command/BranchListCommand.d.ts +5 -0
- package/dist/command/BranchListCommand.js +38 -0
- package/dist/command/BranchListCommand.js.map +1 -0
- package/dist/command/BranchUpdateCommand.d.ts +5 -0
- package/dist/command/BranchUpdateCommand.js +94 -0
- package/dist/command/BranchUpdateCommand.js.map +1 -0
- package/dist/command/CompanyCommand.d.ts +4 -0
- package/dist/command/CompanyCommand.js +23 -0
- package/dist/command/CompanyCommand.js.map +1 -0
- package/dist/command/CompanyCreateCommand.d.ts +5 -0
- package/dist/command/CompanyCreateCommand.js +67 -0
- package/dist/command/CompanyCreateCommand.js.map +1 -0
- package/dist/command/CompanyDeleteCommand.d.ts +5 -0
- package/dist/command/CompanyDeleteCommand.js +38 -0
- package/dist/command/CompanyDeleteCommand.js.map +1 -0
- package/dist/command/CompanyGetCommand.d.ts +5 -0
- package/dist/command/CompanyGetCommand.js +38 -0
- package/dist/command/CompanyGetCommand.js.map +1 -0
- package/dist/command/CompanyListCommand.d.ts +5 -0
- package/dist/command/CompanyListCommand.js +38 -0
- package/dist/command/CompanyListCommand.js.map +1 -0
- package/dist/command/CompanyUpdateCommand.d.ts +5 -0
- package/dist/command/CompanyUpdateCommand.js +67 -0
- package/dist/command/CompanyUpdateCommand.js.map +1 -0
- package/dist/command/CurrencyCommand.d.ts +4 -0
- package/dist/command/CurrencyCommand.js +23 -0
- package/dist/command/CurrencyCommand.js.map +1 -0
- package/dist/command/CurrencyCreateCommand.d.ts +5 -0
- package/dist/command/CurrencyCreateCommand.js +94 -0
- package/dist/command/CurrencyCreateCommand.js.map +1 -0
- package/dist/command/CurrencyDeleteCommand.d.ts +5 -0
- package/dist/command/CurrencyDeleteCommand.js +38 -0
- package/dist/command/CurrencyDeleteCommand.js.map +1 -0
- package/dist/command/CurrencyExchangeCommand.d.ts +4 -0
- package/dist/command/CurrencyExchangeCommand.js +23 -0
- package/dist/command/CurrencyExchangeCommand.js.map +1 -0
- package/dist/command/CurrencyExchangeCreateCommand.d.ts +5 -0
- package/dist/command/CurrencyExchangeCreateCommand.js +76 -0
- package/dist/command/CurrencyExchangeCreateCommand.js.map +1 -0
- package/dist/command/CurrencyExchangeDeleteCommand.d.ts +5 -0
- package/dist/command/CurrencyExchangeDeleteCommand.js +38 -0
- package/dist/command/CurrencyExchangeDeleteCommand.js.map +1 -0
- package/dist/command/CurrencyExchangeGetCommand.d.ts +5 -0
- package/dist/command/CurrencyExchangeGetCommand.js +38 -0
- package/dist/command/CurrencyExchangeGetCommand.js.map +1 -0
- package/dist/command/CurrencyExchangeListCommand.d.ts +5 -0
- package/dist/command/CurrencyExchangeListCommand.js +38 -0
- package/dist/command/CurrencyExchangeListCommand.js.map +1 -0
- package/dist/command/CurrencyExchangeUpdateCommand.d.ts +5 -0
- package/dist/command/CurrencyExchangeUpdateCommand.js +76 -0
- package/dist/command/CurrencyExchangeUpdateCommand.js.map +1 -0
- package/dist/command/CurrencyGetCommand.d.ts +5 -0
- package/dist/command/CurrencyGetCommand.js +38 -0
- package/dist/command/CurrencyGetCommand.js.map +1 -0
- package/dist/command/CurrencyListCommand.d.ts +5 -0
- package/dist/command/CurrencyListCommand.js +38 -0
- package/dist/command/CurrencyListCommand.js.map +1 -0
- package/dist/command/CurrencyUpdateCommand.d.ts +5 -0
- package/dist/command/CurrencyUpdateCommand.js +94 -0
- package/dist/command/CurrencyUpdateCommand.js.map +1 -0
- package/dist/command/ERPAccountCommand.d.ts +4 -0
- package/dist/command/ERPAccountCommand.js +23 -0
- package/dist/command/ERPAccountCommand.js.map +1 -0
- package/dist/command/ERPAccountCreateCommand.d.ts +5 -0
- package/dist/command/ERPAccountCreateCommand.js +112 -0
- package/dist/command/ERPAccountCreateCommand.js.map +1 -0
- package/dist/command/ERPAccountDeleteCommand.d.ts +5 -0
- package/dist/command/ERPAccountDeleteCommand.js +38 -0
- package/dist/command/ERPAccountDeleteCommand.js.map +1 -0
- package/dist/command/ERPAccountGetCommand.d.ts +5 -0
- package/dist/command/ERPAccountGetCommand.js +38 -0
- package/dist/command/ERPAccountGetCommand.js.map +1 -0
- package/dist/command/ERPAccountListCommand.d.ts +5 -0
- package/dist/command/ERPAccountListCommand.js +38 -0
- package/dist/command/ERPAccountListCommand.js.map +1 -0
- package/dist/command/ERPAccountUpdateCommand.d.ts +5 -0
- package/dist/command/ERPAccountUpdateCommand.js +112 -0
- package/dist/command/ERPAccountUpdateCommand.js.map +1 -0
- package/dist/command/FiscalYearCommand.d.ts +4 -0
- package/dist/command/FiscalYearCommand.js +23 -0
- package/dist/command/FiscalYearCommand.js.map +1 -0
- package/dist/command/FiscalYearCreateCommand.d.ts +5 -0
- package/dist/command/FiscalYearCreateCommand.js +94 -0
- package/dist/command/FiscalYearCreateCommand.js.map +1 -0
- package/dist/command/FiscalYearDeleteCommand.d.ts +5 -0
- package/dist/command/FiscalYearDeleteCommand.js +38 -0
- package/dist/command/FiscalYearDeleteCommand.js.map +1 -0
- package/dist/command/FiscalYearGetCommand.d.ts +5 -0
- package/dist/command/FiscalYearGetCommand.js +38 -0
- package/dist/command/FiscalYearGetCommand.js.map +1 -0
- package/dist/command/FiscalYearListCommand.d.ts +5 -0
- package/dist/command/FiscalYearListCommand.js +38 -0
- package/dist/command/FiscalYearListCommand.js.map +1 -0
- package/dist/command/FiscalYearUpdateCommand.d.ts +5 -0
- package/dist/command/FiscalYearUpdateCommand.js +94 -0
- package/dist/command/FiscalYearUpdateCommand.js.map +1 -0
- package/dist/command/HealthCommand.d.ts +4 -0
- package/dist/command/HealthCommand.js +17 -0
- package/dist/command/HealthCommand.js.map +1 -0
- package/dist/command/HealthLivenessCommand.d.ts +5 -0
- package/dist/command/HealthLivenessCommand.js +38 -0
- package/dist/command/HealthLivenessCommand.js.map +1 -0
- package/dist/command/HealthReadinessCommand.d.ts +5 -0
- package/dist/command/HealthReadinessCommand.js +38 -0
- package/dist/command/HealthReadinessCommand.js.map +1 -0
- package/dist/command/HealthzCommand.d.ts +4 -0
- package/dist/command/HealthzCommand.js +15 -0
- package/dist/command/HealthzCommand.js.map +1 -0
- package/dist/command/HealthzGetCommand.d.ts +5 -0
- package/dist/command/HealthzGetCommand.js +38 -0
- package/dist/command/HealthzGetCommand.js.map +1 -0
- package/dist/command/JournalEntryCommand.d.ts +4 -0
- package/dist/command/JournalEntryCommand.js +23 -0
- package/dist/command/JournalEntryCommand.js.map +1 -0
- package/dist/command/JournalEntryCreateCommand.d.ts +5 -0
- package/dist/command/JournalEntryCreateCommand.js +121 -0
- package/dist/command/JournalEntryCreateCommand.js.map +1 -0
- package/dist/command/JournalEntryDeleteCommand.d.ts +5 -0
- package/dist/command/JournalEntryDeleteCommand.js +38 -0
- package/dist/command/JournalEntryDeleteCommand.js.map +1 -0
- package/dist/command/JournalEntryGetCommand.d.ts +5 -0
- package/dist/command/JournalEntryGetCommand.js +38 -0
- package/dist/command/JournalEntryGetCommand.js.map +1 -0
- package/dist/command/JournalEntryLineCommand.d.ts +4 -0
- package/dist/command/JournalEntryLineCommand.js +17 -0
- package/dist/command/JournalEntryLineCommand.js.map +1 -0
- package/dist/command/JournalEntryLineGetCommand.d.ts +5 -0
- package/dist/command/JournalEntryLineGetCommand.js +38 -0
- package/dist/command/JournalEntryLineGetCommand.js.map +1 -0
- package/dist/command/JournalEntryLineListCommand.d.ts +5 -0
- package/dist/command/JournalEntryLineListCommand.js +38 -0
- package/dist/command/JournalEntryLineListCommand.js.map +1 -0
- package/dist/command/JournalEntryListCommand.d.ts +5 -0
- package/dist/command/JournalEntryListCommand.js +38 -0
- package/dist/command/JournalEntryListCommand.js.map +1 -0
- package/dist/command/JournalEntryUpdateCommand.d.ts +5 -0
- package/dist/command/JournalEntryUpdateCommand.js +121 -0
- package/dist/command/JournalEntryUpdateCommand.js.map +1 -0
- package/dist/command/MetricsCommand.d.ts +4 -0
- package/dist/command/MetricsCommand.js +15 -0
- package/dist/command/MetricsCommand.js.map +1 -0
- package/dist/command/MetricsGetCommand.d.ts +5 -0
- package/dist/command/MetricsGetCommand.js +38 -0
- package/dist/command/MetricsGetCommand.js.map +1 -0
- package/dist/command/PartyCommand.d.ts +4 -0
- package/dist/command/PartyCommand.js +23 -0
- package/dist/command/PartyCommand.js.map +1 -0
- package/dist/command/PartyCreateCommand.d.ts +5 -0
- package/dist/command/PartyCreateCommand.js +94 -0
- package/dist/command/PartyCreateCommand.js.map +1 -0
- package/dist/command/PartyDeleteCommand.d.ts +5 -0
- package/dist/command/PartyDeleteCommand.js +38 -0
- package/dist/command/PartyDeleteCommand.js.map +1 -0
- package/dist/command/PartyGetCommand.d.ts +5 -0
- package/dist/command/PartyGetCommand.js +38 -0
- package/dist/command/PartyGetCommand.js.map +1 -0
- package/dist/command/PartyListCommand.d.ts +5 -0
- package/dist/command/PartyListCommand.js +38 -0
- package/dist/command/PartyListCommand.js.map +1 -0
- package/dist/command/PartyTypeCommand.d.ts +4 -0
- package/dist/command/PartyTypeCommand.js +23 -0
- package/dist/command/PartyTypeCommand.js.map +1 -0
- package/dist/command/PartyTypeCreateCommand.d.ts +5 -0
- package/dist/command/PartyTypeCreateCommand.js +85 -0
- package/dist/command/PartyTypeCreateCommand.js.map +1 -0
- package/dist/command/PartyTypeDeleteCommand.d.ts +5 -0
- package/dist/command/PartyTypeDeleteCommand.js +38 -0
- package/dist/command/PartyTypeDeleteCommand.js.map +1 -0
- package/dist/command/PartyTypeGetCommand.d.ts +5 -0
- package/dist/command/PartyTypeGetCommand.js +38 -0
- package/dist/command/PartyTypeGetCommand.js.map +1 -0
- package/dist/command/PartyTypeListCommand.d.ts +5 -0
- package/dist/command/PartyTypeListCommand.js +38 -0
- package/dist/command/PartyTypeListCommand.js.map +1 -0
- package/dist/command/PartyTypeUpdateCommand.d.ts +5 -0
- package/dist/command/PartyTypeUpdateCommand.js +85 -0
- package/dist/command/PartyTypeUpdateCommand.js.map +1 -0
- package/dist/command/PartyUpdateCommand.d.ts +5 -0
- package/dist/command/PartyUpdateCommand.js +94 -0
- package/dist/command/PartyUpdateCommand.js.map +1 -0
- package/dist/command/ValueCommand.d.ts +4 -0
- package/dist/command/ValueCommand.js +15 -0
- package/dist/command/ValueCommand.js.map +1 -0
- package/dist/command/ValueListCommand.d.ts +5 -0
- package/dist/command/ValueListCommand.js +38 -0
- package/dist/command/ValueListCommand.js.map +1 -0
- package/dist/command/cli.d.ts +2 -0
- package/dist/command/cli.js +42 -0
- package/dist/command/cli.js.map +1 -0
- package/dist/enum/AccountType.d.ts +7 -0
- package/dist/enum/AccountType.js +12 -0
- package/dist/enum/AccountType.js.map +1 -0
- package/dist/index.d.ts +119 -0
- package/dist/index.js +136 -0
- package/dist/index.js.map +1 -0
- package/dist/meta/AccountMetaTable.d.ts +21 -0
- package/dist/meta/AccountMetaTable.js +31 -0
- package/dist/meta/AccountMetaTable.js.map +1 -0
- package/dist/meta/AccountPartyTypeMetaTable.d.ts +14 -0
- package/dist/meta/AccountPartyTypeMetaTable.js +39 -0
- package/dist/meta/AccountPartyTypeMetaTable.js.map +1 -0
- package/dist/meta/BranchMetaTable.d.ts +19 -0
- package/dist/meta/BranchMetaTable.js +42 -0
- package/dist/meta/BranchMetaTable.js.map +1 -0
- package/dist/meta/CompanyMetaTable.d.ts +16 -0
- package/dist/meta/CompanyMetaTable.js +39 -0
- package/dist/meta/CompanyMetaTable.js.map +1 -0
- package/dist/meta/CurrencyExchangeMetaTable.d.ts +17 -0
- package/dist/meta/CurrencyExchangeMetaTable.js +40 -0
- package/dist/meta/CurrencyExchangeMetaTable.js.map +1 -0
- package/dist/meta/CurrencyMetaTable.d.ts +19 -0
- package/dist/meta/CurrencyMetaTable.js +42 -0
- package/dist/meta/CurrencyMetaTable.js.map +1 -0
- package/dist/meta/FiscalYearMetaTable.d.ts +19 -0
- package/dist/meta/FiscalYearMetaTable.js +42 -0
- package/dist/meta/FiscalYearMetaTable.js.map +1 -0
- package/dist/meta/JournalEntryLineMetaTable.d.ts +19 -0
- package/dist/meta/JournalEntryLineMetaTable.js +44 -0
- package/dist/meta/JournalEntryLineMetaTable.js.map +1 -0
- package/dist/meta/JournalEntryMetaTable.d.ts +22 -0
- package/dist/meta/JournalEntryMetaTable.js +45 -0
- package/dist/meta/JournalEntryMetaTable.js.map +1 -0
- package/dist/meta/NamirasoftErpMetaDatabase.d.ts +33 -0
- package/dist/meta/NamirasoftErpMetaDatabase.js +47 -0
- package/dist/meta/NamirasoftErpMetaDatabase.js.map +1 -0
- package/dist/meta/PartyMetaTable.d.ts +19 -0
- package/dist/meta/PartyMetaTable.js +42 -0
- package/dist/meta/PartyMetaTable.js.map +1 -0
- package/dist/meta/PartyTypeMetaTable.d.ts +18 -0
- package/dist/meta/PartyTypeMetaTable.js +41 -0
- package/dist/meta/PartyTypeMetaTable.js.map +1 -0
- package/dist/row/AccountInputRow.d.ts +11 -0
- package/dist/row/AccountInputRow.js +3 -0
- package/dist/row/AccountInputRow.js.map +1 -0
- package/dist/row/AccountPartyTypeRow.d.ts +7 -0
- package/dist/row/AccountPartyTypeRow.js +3 -0
- package/dist/row/AccountPartyTypeRow.js.map +1 -0
- package/dist/row/AccountRow.d.ts +15 -0
- package/dist/row/AccountRow.js +3 -0
- package/dist/row/AccountRow.js.map +1 -0
- package/dist/row/BranchInputRow.d.ts +8 -0
- package/dist/row/BranchInputRow.js +3 -0
- package/dist/row/BranchInputRow.js.map +1 -0
- package/dist/row/BranchRow.d.ts +12 -0
- package/dist/row/BranchRow.js +3 -0
- package/dist/row/BranchRow.js.map +1 -0
- package/dist/row/CompanyInputRow.d.ts +5 -0
- package/dist/row/CompanyInputRow.js +3 -0
- package/dist/row/CompanyInputRow.js.map +1 -0
- package/dist/row/CompanyRow.d.ts +9 -0
- package/dist/row/CompanyRow.js +3 -0
- package/dist/row/CompanyRow.js.map +1 -0
- package/dist/row/CurrencyExchangeInputRow.d.ts +6 -0
- package/dist/row/CurrencyExchangeInputRow.js +3 -0
- package/dist/row/CurrencyExchangeInputRow.js.map +1 -0
- package/dist/row/CurrencyExchangeRow.d.ts +10 -0
- package/dist/row/CurrencyExchangeRow.js +3 -0
- package/dist/row/CurrencyExchangeRow.js.map +1 -0
- package/dist/row/CurrencyInputRow.d.ts +8 -0
- package/dist/row/CurrencyInputRow.js +3 -0
- package/dist/row/CurrencyInputRow.js.map +1 -0
- package/dist/row/CurrencyRow.d.ts +12 -0
- package/dist/row/CurrencyRow.js +3 -0
- package/dist/row/CurrencyRow.js.map +1 -0
- package/dist/row/FiscalYearInputRow.d.ts +8 -0
- package/dist/row/FiscalYearInputRow.js +3 -0
- package/dist/row/FiscalYearInputRow.js.map +1 -0
- package/dist/row/FiscalYearRow.d.ts +12 -0
- package/dist/row/FiscalYearRow.js +3 -0
- package/dist/row/FiscalYearRow.js.map +1 -0
- package/dist/row/JournalEntryInputRow.d.ts +11 -0
- package/dist/row/JournalEntryInputRow.js +3 -0
- package/dist/row/JournalEntryInputRow.js.map +1 -0
- package/dist/row/JournalEntryLineRow.d.ts +12 -0
- package/dist/row/JournalEntryLineRow.js +3 -0
- package/dist/row/JournalEntryLineRow.js.map +1 -0
- package/dist/row/JournalEntryRow.d.ts +15 -0
- package/dist/row/JournalEntryRow.js +3 -0
- package/dist/row/JournalEntryRow.js.map +1 -0
- package/dist/row/PartyInputRow.d.ts +8 -0
- package/dist/row/PartyInputRow.js +3 -0
- package/dist/row/PartyInputRow.js.map +1 -0
- package/dist/row/PartyRow.d.ts +12 -0
- package/dist/row/PartyRow.js +3 -0
- package/dist/row/PartyRow.js.map +1 -0
- package/dist/row/PartyTypeInputRow.d.ts +7 -0
- package/dist/row/PartyTypeInputRow.js +3 -0
- package/dist/row/PartyTypeInputRow.js.map +1 -0
- package/dist/row/PartyTypeRow.d.ts +11 -0
- package/dist/row/PartyTypeRow.js +3 -0
- package/dist/row/PartyTypeRow.js.map +1 -0
- package/logo.png +0 -0
- package/package.json +28 -0
- package/src/NamirasoftErpServer.ts +75 -0
- package/src/NamirasoftErpServerAccountPartyType.ts +50 -0
- package/src/NamirasoftErpServerBase.ts +30 -0
- package/src/NamirasoftErpServerBranch.ts +71 -0
- package/src/NamirasoftErpServerCompany.ts +71 -0
- package/src/NamirasoftErpServerCurrency.ts +71 -0
- package/src/NamirasoftErpServerCurrencyExchange.ts +71 -0
- package/src/NamirasoftErpServerERPAccount.ts +71 -0
- package/src/NamirasoftErpServerFiscalYear.ts +71 -0
- package/src/NamirasoftErpServerHealth.ts +43 -0
- package/src/NamirasoftErpServerHealthz.ts +37 -0
- package/src/NamirasoftErpServerJournalEntry.ts +71 -0
- package/src/NamirasoftErpServerJournalEntryLine.ts +50 -0
- package/src/NamirasoftErpServerMetrics.ts +37 -0
- package/src/NamirasoftErpServerParty.ts +71 -0
- package/src/NamirasoftErpServerPartyType.ts +71 -0
- package/src/NamirasoftErpServerValue.ts +38 -0
- package/src/command/AccountPartyTypeCommand.ts +34 -0
- package/src/command/AccountPartyTypeGetCommand.ts +45 -0
- package/src/command/AccountPartyTypeListCommand.ts +45 -0
- package/src/command/BranchCommand.ts +40 -0
- package/src/command/BranchCreateCommand.ts +101 -0
- package/src/command/BranchDeleteCommand.ts +45 -0
- package/src/command/BranchGetCommand.ts +45 -0
- package/src/command/BranchListCommand.ts +45 -0
- package/src/command/BranchUpdateCommand.ts +101 -0
- package/src/command/CompanyCommand.ts +40 -0
- package/src/command/CompanyCreateCommand.ts +74 -0
- package/src/command/CompanyDeleteCommand.ts +45 -0
- package/src/command/CompanyGetCommand.ts +45 -0
- package/src/command/CompanyListCommand.ts +45 -0
- package/src/command/CompanyUpdateCommand.ts +74 -0
- package/src/command/CurrencyCommand.ts +40 -0
- package/src/command/CurrencyCreateCommand.ts +101 -0
- package/src/command/CurrencyDeleteCommand.ts +45 -0
- package/src/command/CurrencyExchangeCommand.ts +40 -0
- package/src/command/CurrencyExchangeCreateCommand.ts +83 -0
- package/src/command/CurrencyExchangeDeleteCommand.ts +45 -0
- package/src/command/CurrencyExchangeGetCommand.ts +45 -0
- package/src/command/CurrencyExchangeListCommand.ts +45 -0
- package/src/command/CurrencyExchangeUpdateCommand.ts +83 -0
- package/src/command/CurrencyGetCommand.ts +45 -0
- package/src/command/CurrencyListCommand.ts +45 -0
- package/src/command/CurrencyUpdateCommand.ts +101 -0
- package/src/command/ERPAccountCommand.ts +40 -0
- package/src/command/ERPAccountCreateCommand.ts +119 -0
- package/src/command/ERPAccountDeleteCommand.ts +45 -0
- package/src/command/ERPAccountGetCommand.ts +45 -0
- package/src/command/ERPAccountListCommand.ts +45 -0
- package/src/command/ERPAccountUpdateCommand.ts +119 -0
- package/src/command/FiscalYearCommand.ts +40 -0
- package/src/command/FiscalYearCreateCommand.ts +101 -0
- package/src/command/FiscalYearDeleteCommand.ts +45 -0
- package/src/command/FiscalYearGetCommand.ts +45 -0
- package/src/command/FiscalYearListCommand.ts +45 -0
- package/src/command/FiscalYearUpdateCommand.ts +101 -0
- package/src/command/HealthCommand.ts +34 -0
- package/src/command/HealthLivenessCommand.ts +45 -0
- package/src/command/HealthReadinessCommand.ts +45 -0
- package/src/command/HealthzCommand.ts +32 -0
- package/src/command/HealthzGetCommand.ts +45 -0
- package/src/command/JournalEntryCommand.ts +40 -0
- package/src/command/JournalEntryCreateCommand.ts +128 -0
- package/src/command/JournalEntryDeleteCommand.ts +45 -0
- package/src/command/JournalEntryGetCommand.ts +45 -0
- package/src/command/JournalEntryLineCommand.ts +34 -0
- package/src/command/JournalEntryLineGetCommand.ts +45 -0
- package/src/command/JournalEntryLineListCommand.ts +45 -0
- package/src/command/JournalEntryListCommand.ts +45 -0
- package/src/command/JournalEntryUpdateCommand.ts +128 -0
- package/src/command/MetricsCommand.ts +32 -0
- package/src/command/MetricsGetCommand.ts +45 -0
- package/src/command/PartyCommand.ts +40 -0
- package/src/command/PartyCreateCommand.ts +101 -0
- package/src/command/PartyDeleteCommand.ts +45 -0
- package/src/command/PartyGetCommand.ts +45 -0
- package/src/command/PartyListCommand.ts +45 -0
- package/src/command/PartyTypeCommand.ts +40 -0
- package/src/command/PartyTypeCreateCommand.ts +92 -0
- package/src/command/PartyTypeDeleteCommand.ts +45 -0
- package/src/command/PartyTypeGetCommand.ts +45 -0
- package/src/command/PartyTypeListCommand.ts +45 -0
- package/src/command/PartyTypeUpdateCommand.ts +92 -0
- package/src/command/PartyUpdateCommand.ts +101 -0
- package/src/command/ValueCommand.ts +32 -0
- package/src/command/ValueListCommand.ts +45 -0
- package/src/command/cli.ts +61 -0
- package/src/enum/AccountType.ts +28 -0
- package/src/index.ts +139 -0
- package/src/meta/AccountMetaTable.ts +64 -0
- package/src/meta/AccountPartyTypeMetaTable.ts +59 -0
- package/src/meta/BranchMetaTable.ts +67 -0
- package/src/meta/CompanyMetaTable.ts +61 -0
- package/src/meta/CurrencyExchangeMetaTable.ts +63 -0
- package/src/meta/CurrencyMetaTable.ts +67 -0
- package/src/meta/FiscalYearMetaTable.ts +67 -0
- package/src/meta/JournalEntryLineMetaTable.ts +69 -0
- package/src/meta/JournalEntryMetaTable.ts +73 -0
- package/src/meta/NamirasoftErpMetaDatabase.ts +81 -0
- package/src/meta/PartyMetaTable.ts +67 -0
- package/src/meta/PartyTypeMetaTable.ts +65 -0
- package/src/row/AccountInputRow.ts +33 -0
- package/src/row/AccountPartyTypeRow.ts +28 -0
- package/src/row/AccountRow.ts +37 -0
- package/src/row/BranchInputRow.ts +29 -0
- package/src/row/BranchRow.ts +33 -0
- package/src/row/CompanyInputRow.ts +26 -0
- package/src/row/CompanyRow.ts +30 -0
- package/src/row/CurrencyExchangeInputRow.ts +27 -0
- package/src/row/CurrencyExchangeRow.ts +31 -0
- package/src/row/CurrencyInputRow.ts +29 -0
- package/src/row/CurrencyRow.ts +33 -0
- package/src/row/FiscalYearInputRow.ts +29 -0
- package/src/row/FiscalYearRow.ts +33 -0
- package/src/row/JournalEntryInputRow.ts +32 -0
- package/src/row/JournalEntryLineRow.ts +33 -0
- package/src/row/JournalEntryRow.ts +36 -0
- package/src/row/PartyInputRow.ts +29 -0
- package/src/row/PartyRow.ts +33 -0
- package/src/row/PartyTypeInputRow.ts +28 -0
- package/src/row/PartyTypeRow.ts +32 -0
- package/tsconfig.json +45 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompanyRow.js","sourceRoot":"","sources":["../../src/row/CompanyRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrencyExchangeInputRow.js","sourceRoot":"","sources":["../../src/row/CurrencyExchangeInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrencyExchangeRow.js","sourceRoot":"","sources":["../../src/row/CurrencyExchangeRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrencyInputRow.js","sourceRoot":"","sources":["../../src/row/CurrencyInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrencyRow.js","sourceRoot":"","sources":["../../src/row/CurrencyRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FiscalYearInputRow.js","sourceRoot":"","sources":["../../src/row/FiscalYearInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FiscalYearRow.js","sourceRoot":"","sources":["../../src/row/FiscalYearRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type JournalEntryInputRow = {
|
|
2
|
+
company_id: string;
|
|
3
|
+
branch_id: (string | null);
|
|
4
|
+
currency_id: string;
|
|
5
|
+
number: string;
|
|
6
|
+
date_time: Date;
|
|
7
|
+
reference_number: (string | null);
|
|
8
|
+
reference_date_time: (Date | null);
|
|
9
|
+
description: (string | null);
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JournalEntryInputRow.js","sourceRoot":"","sources":["../../src/row/JournalEntryInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type JournalEntryLineRow = {
|
|
2
|
+
id: string;
|
|
3
|
+
journal_entry_id: string;
|
|
4
|
+
number: number;
|
|
5
|
+
account_id: string;
|
|
6
|
+
party_type_id: (string | null);
|
|
7
|
+
party_id: (string | null);
|
|
8
|
+
debit: number;
|
|
9
|
+
credit: number;
|
|
10
|
+
created_at: Date;
|
|
11
|
+
updated_at: Date;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JournalEntryLineRow.js","sourceRoot":"","sources":["../../src/row/JournalEntryLineRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type JournalEntryRow = {
|
|
2
|
+
id: string;
|
|
3
|
+
user_id: string;
|
|
4
|
+
company_id: string;
|
|
5
|
+
branch_id: (string | null);
|
|
6
|
+
currency_id: string;
|
|
7
|
+
number: string;
|
|
8
|
+
date_time: Date;
|
|
9
|
+
reference_number: (string | null);
|
|
10
|
+
reference_date_time: (Date | null);
|
|
11
|
+
description: (string | null);
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
created_at: Date;
|
|
14
|
+
updated_at: Date;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JournalEntryRow.js","sourceRoot":"","sources":["../../src/row/JournalEntryRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PartyInputRow.js","sourceRoot":"","sources":["../../src/row/PartyInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PartyRow.js","sourceRoot":"","sources":["../../src/row/PartyRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PartyTypeInputRow.js","sourceRoot":"","sources":["../../src/row/PartyTypeInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PartyTypeRow.js","sourceRoot":"","sources":["../../src/row/PartyTypeRow.ts"],"names":[],"mappings":""}
|
package/logo.png
ADDED
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "namirasoft-erp",
|
|
3
|
+
"title": "Namirasoft ERP NPM Package",
|
|
4
|
+
"description": "Namira Software Corporation ERP NPM Package",
|
|
5
|
+
"icon": "logo.png",
|
|
6
|
+
"logo": "https://static.namirasoft.com/image/namirasoft/erp/logo/base.png",
|
|
7
|
+
"language": "ts",
|
|
8
|
+
"framework": "npm",
|
|
9
|
+
"application": "package",
|
|
10
|
+
"private": false,
|
|
11
|
+
"version": "1.4.0",
|
|
12
|
+
"author": "Amir Abolhasani",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"main": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": ""
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"namirasoft-core": "^1.4.116",
|
|
21
|
+
"namirasoft-site": "^1.4.45",
|
|
22
|
+
"namirasoft-node-cli": "^1.4.13",
|
|
23
|
+
"namirasoft-account": "^1.4.108"
|
|
24
|
+
},
|
|
25
|
+
"bin": {
|
|
26
|
+
"ns-erp": "./dist/command/cli.js"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { NSABaseServer } from "namirasoft-account";
|
|
22
|
+
import { NamirasoftErpServerAccountPartyType } from "./NamirasoftErpServerAccountPartyType";
|
|
23
|
+
import { NamirasoftErpServerBranch } from "./NamirasoftErpServerBranch";
|
|
24
|
+
import { NamirasoftErpServerCompany } from "./NamirasoftErpServerCompany";
|
|
25
|
+
import { NamirasoftErpServerCurrency } from "./NamirasoftErpServerCurrency";
|
|
26
|
+
import { NamirasoftErpServerCurrencyExchange } from "./NamirasoftErpServerCurrencyExchange";
|
|
27
|
+
import { NamirasoftErpServerERPAccount } from "./NamirasoftErpServerERPAccount";
|
|
28
|
+
import { NamirasoftErpServerFiscalYear } from "./NamirasoftErpServerFiscalYear";
|
|
29
|
+
import { NamirasoftErpServerHealth } from "./NamirasoftErpServerHealth";
|
|
30
|
+
import { NamirasoftErpServerHealthz } from "./NamirasoftErpServerHealthz";
|
|
31
|
+
import { NamirasoftErpServerJournalEntry } from "./NamirasoftErpServerJournalEntry";
|
|
32
|
+
import { NamirasoftErpServerJournalEntryLine } from "./NamirasoftErpServerJournalEntryLine";
|
|
33
|
+
import { NamirasoftErpServerMetrics } from "./NamirasoftErpServerMetrics";
|
|
34
|
+
import { NamirasoftErpServerParty } from "./NamirasoftErpServerParty";
|
|
35
|
+
import { NamirasoftErpServerPartyType } from "./NamirasoftErpServerPartyType";
|
|
36
|
+
import { NamirasoftErpServerValue } from "./NamirasoftErpServerValue";
|
|
37
|
+
import { TokenManager } from "namirasoft-account";
|
|
38
|
+
|
|
39
|
+
export class NamirasoftErpServer extends NSABaseServer
|
|
40
|
+
{
|
|
41
|
+
healthz: NamirasoftErpServerHealthz;
|
|
42
|
+
health: NamirasoftErpServerHealth;
|
|
43
|
+
metrics: NamirasoftErpServerMetrics;
|
|
44
|
+
value: NamirasoftErpServerValue;
|
|
45
|
+
currency: NamirasoftErpServerCurrency;
|
|
46
|
+
currency_exchange: NamirasoftErpServerCurrencyExchange;
|
|
47
|
+
company: NamirasoftErpServerCompany;
|
|
48
|
+
branch: NamirasoftErpServerBranch;
|
|
49
|
+
fiscal_year: NamirasoftErpServerFiscalYear;
|
|
50
|
+
erp_account: NamirasoftErpServerERPAccount;
|
|
51
|
+
party_type: NamirasoftErpServerPartyType;
|
|
52
|
+
account_party_type: NamirasoftErpServerAccountPartyType;
|
|
53
|
+
party: NamirasoftErpServerParty;
|
|
54
|
+
journal_entry: NamirasoftErpServerJournalEntry;
|
|
55
|
+
journal_entry_line: NamirasoftErpServerJournalEntryLine;
|
|
56
|
+
constructor(base_url: string, token_manager: TokenManager, onError: (error: Error) => void)
|
|
57
|
+
{
|
|
58
|
+
super(base_url, `1.4.0`, token_manager, onError);
|
|
59
|
+
this.healthz = new NamirasoftErpServerHealthz(this);
|
|
60
|
+
this.health = new NamirasoftErpServerHealth(this);
|
|
61
|
+
this.metrics = new NamirasoftErpServerMetrics(this);
|
|
62
|
+
this.value = new NamirasoftErpServerValue(this);
|
|
63
|
+
this.currency = new NamirasoftErpServerCurrency(this);
|
|
64
|
+
this.currency_exchange = new NamirasoftErpServerCurrencyExchange(this);
|
|
65
|
+
this.company = new NamirasoftErpServerCompany(this);
|
|
66
|
+
this.branch = new NamirasoftErpServerBranch(this);
|
|
67
|
+
this.fiscal_year = new NamirasoftErpServerFiscalYear(this);
|
|
68
|
+
this.erp_account = new NamirasoftErpServerERPAccount(this);
|
|
69
|
+
this.party_type = new NamirasoftErpServerPartyType(this);
|
|
70
|
+
this.account_party_type = new NamirasoftErpServerAccountPartyType(this);
|
|
71
|
+
this.party = new NamirasoftErpServerParty(this);
|
|
72
|
+
this.journal_entry = new NamirasoftErpServerJournalEntry(this);
|
|
73
|
+
this.journal_entry_line = new NamirasoftErpServerJournalEntryLine(this);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { AccountPartyTypeRow } from "./row/AccountPartyTypeRow";
|
|
22
|
+
import { BaseServerConfig } from "namirasoft-core";
|
|
23
|
+
import { FilterItem } from "namirasoft-core";
|
|
24
|
+
import { NamirasoftErpServer } from "./NamirasoftErpServer";
|
|
25
|
+
import { NamirasoftErpServerBase } from "./NamirasoftErpServerBase";
|
|
26
|
+
import { SortItem } from "namirasoft-core";
|
|
27
|
+
|
|
28
|
+
export class NamirasoftErpServerAccountPartyType extends NamirasoftErpServerBase
|
|
29
|
+
{
|
|
30
|
+
constructor(server: NamirasoftErpServer)
|
|
31
|
+
{
|
|
32
|
+
super(server);
|
|
33
|
+
this.List = this.List.bind(this);
|
|
34
|
+
this.Get = this.Get.bind(this);
|
|
35
|
+
}
|
|
36
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: AccountPartyTypeRow[], count: number }>
|
|
37
|
+
{
|
|
38
|
+
let filters_string_value: string = FilterItem.stringify(filters);
|
|
39
|
+
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
40
|
+
let path = `/account/party/type/list`;
|
|
41
|
+
let { data } = await this.server._get<{ rows: AccountPartyTypeRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
42
|
+
return data;
|
|
43
|
+
}
|
|
44
|
+
async Get(id: (string | null), config?: BaseServerConfig<any>): Promise<AccountPartyTypeRow>
|
|
45
|
+
{
|
|
46
|
+
let path = `/account/party/type/${id}`;
|
|
47
|
+
let { data } = await this.server._get<AccountPartyTypeRow>(path, {}, config);
|
|
48
|
+
return data;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { NamirasoftErpServer } from "./NamirasoftErpServer";
|
|
22
|
+
|
|
23
|
+
export class NamirasoftErpServerBase
|
|
24
|
+
{
|
|
25
|
+
public server: NamirasoftErpServer;
|
|
26
|
+
constructor(server: NamirasoftErpServer)
|
|
27
|
+
{
|
|
28
|
+
this.server = server;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseServerConfig } from "namirasoft-core";
|
|
22
|
+
import { BranchInputRow } from "./row/BranchInputRow";
|
|
23
|
+
import { BranchRow } from "./row/BranchRow";
|
|
24
|
+
import { FilterItem } from "namirasoft-core";
|
|
25
|
+
import { NamirasoftErpServer } from "./NamirasoftErpServer";
|
|
26
|
+
import { NamirasoftErpServerBase } from "./NamirasoftErpServerBase";
|
|
27
|
+
import { SortItem } from "namirasoft-core";
|
|
28
|
+
|
|
29
|
+
export class NamirasoftErpServerBranch extends NamirasoftErpServerBase
|
|
30
|
+
{
|
|
31
|
+
constructor(server: NamirasoftErpServer)
|
|
32
|
+
{
|
|
33
|
+
super(server);
|
|
34
|
+
this.List = this.List.bind(this);
|
|
35
|
+
this.Get = this.Get.bind(this);
|
|
36
|
+
this.Create = this.Create.bind(this);
|
|
37
|
+
this.Update = this.Update.bind(this);
|
|
38
|
+
this.Delete = this.Delete.bind(this);
|
|
39
|
+
}
|
|
40
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: BranchRow[], count: number }>
|
|
41
|
+
{
|
|
42
|
+
let filters_string_value: string = FilterItem.stringify(filters);
|
|
43
|
+
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
44
|
+
let path = `/branch/list`;
|
|
45
|
+
let { data } = await this.server._get<{ rows: BranchRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
46
|
+
return data;
|
|
47
|
+
}
|
|
48
|
+
async Get(id: (string | null), config?: BaseServerConfig<any>): Promise<BranchRow>
|
|
49
|
+
{
|
|
50
|
+
let path = `/branch/${id}`;
|
|
51
|
+
let { data } = await this.server._get<BranchRow>(path, {}, config);
|
|
52
|
+
return data;
|
|
53
|
+
}
|
|
54
|
+
async Create(body: BranchInputRow, config?: BaseServerConfig<any>): Promise<BranchRow>
|
|
55
|
+
{
|
|
56
|
+
let path = `/branch`;
|
|
57
|
+
let { data } = await this.server._post<BranchRow>(path, {}, body, config);
|
|
58
|
+
return data;
|
|
59
|
+
}
|
|
60
|
+
async Update(id: (string | null), body: BranchInputRow, config?: BaseServerConfig<any>): Promise<BranchRow>
|
|
61
|
+
{
|
|
62
|
+
let path = `/branch/${id}`;
|
|
63
|
+
let { data } = await this.server._put<BranchRow>(path, {}, body, config);
|
|
64
|
+
return data;
|
|
65
|
+
}
|
|
66
|
+
async Delete(id: (string | null), config?: BaseServerConfig<any>): Promise<void>
|
|
67
|
+
{
|
|
68
|
+
let path = `/branch/${id}`;
|
|
69
|
+
await this.server._delete<void>(path, {}, config);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseServerConfig } from "namirasoft-core";
|
|
22
|
+
import { CompanyInputRow } from "./row/CompanyInputRow";
|
|
23
|
+
import { CompanyRow } from "./row/CompanyRow";
|
|
24
|
+
import { FilterItem } from "namirasoft-core";
|
|
25
|
+
import { NamirasoftErpServer } from "./NamirasoftErpServer";
|
|
26
|
+
import { NamirasoftErpServerBase } from "./NamirasoftErpServerBase";
|
|
27
|
+
import { SortItem } from "namirasoft-core";
|
|
28
|
+
|
|
29
|
+
export class NamirasoftErpServerCompany extends NamirasoftErpServerBase
|
|
30
|
+
{
|
|
31
|
+
constructor(server: NamirasoftErpServer)
|
|
32
|
+
{
|
|
33
|
+
super(server);
|
|
34
|
+
this.List = this.List.bind(this);
|
|
35
|
+
this.Get = this.Get.bind(this);
|
|
36
|
+
this.Create = this.Create.bind(this);
|
|
37
|
+
this.Update = this.Update.bind(this);
|
|
38
|
+
this.Delete = this.Delete.bind(this);
|
|
39
|
+
}
|
|
40
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: CompanyRow[], count: number }>
|
|
41
|
+
{
|
|
42
|
+
let filters_string_value: string = FilterItem.stringify(filters);
|
|
43
|
+
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
44
|
+
let path = `/company/list`;
|
|
45
|
+
let { data } = await this.server._get<{ rows: CompanyRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
46
|
+
return data;
|
|
47
|
+
}
|
|
48
|
+
async Get(id: (string | null), config?: BaseServerConfig<any>): Promise<CompanyRow>
|
|
49
|
+
{
|
|
50
|
+
let path = `/company/${id}`;
|
|
51
|
+
let { data } = await this.server._get<CompanyRow>(path, {}, config);
|
|
52
|
+
return data;
|
|
53
|
+
}
|
|
54
|
+
async Create(body: CompanyInputRow, config?: BaseServerConfig<any>): Promise<CompanyRow>
|
|
55
|
+
{
|
|
56
|
+
let path = `/company`;
|
|
57
|
+
let { data } = await this.server._post<CompanyRow>(path, {}, body, config);
|
|
58
|
+
return data;
|
|
59
|
+
}
|
|
60
|
+
async Update(id: (string | null), body: CompanyInputRow, config?: BaseServerConfig<any>): Promise<CompanyRow>
|
|
61
|
+
{
|
|
62
|
+
let path = `/company/${id}`;
|
|
63
|
+
let { data } = await this.server._put<CompanyRow>(path, {}, body, config);
|
|
64
|
+
return data;
|
|
65
|
+
}
|
|
66
|
+
async Delete(id: (string | null), config?: BaseServerConfig<any>): Promise<void>
|
|
67
|
+
{
|
|
68
|
+
let path = `/company/${id}`;
|
|
69
|
+
await this.server._delete<void>(path, {}, config);
|
|
70
|
+
}
|
|
71
|
+
};
|