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.
Files changed (487) hide show
  1. package/dist/NamirasoftErpServer.d.ts +35 -0
  2. package/dist/NamirasoftErpServer.js +42 -0
  3. package/dist/NamirasoftErpServer.js.map +1 -0
  4. package/dist/NamirasoftErpServerAccountPartyType.d.ts +14 -0
  5. package/dist/NamirasoftErpServerAccountPartyType.js +41 -0
  6. package/dist/NamirasoftErpServerAccountPartyType.js.map +1 -0
  7. package/dist/NamirasoftErpServerBase.d.ts +5 -0
  8. package/dist/NamirasoftErpServerBase.js +11 -0
  9. package/dist/NamirasoftErpServerBase.js.map +1 -0
  10. package/dist/NamirasoftErpServerBranch.d.ts +18 -0
  11. package/dist/NamirasoftErpServerBranch.js +64 -0
  12. package/dist/NamirasoftErpServerBranch.js.map +1 -0
  13. package/dist/NamirasoftErpServerCompany.d.ts +18 -0
  14. package/dist/NamirasoftErpServerCompany.js +64 -0
  15. package/dist/NamirasoftErpServerCompany.js.map +1 -0
  16. package/dist/NamirasoftErpServerCurrency.d.ts +18 -0
  17. package/dist/NamirasoftErpServerCurrency.js +64 -0
  18. package/dist/NamirasoftErpServerCurrency.js.map +1 -0
  19. package/dist/NamirasoftErpServerCurrencyExchange.d.ts +18 -0
  20. package/dist/NamirasoftErpServerCurrencyExchange.js +64 -0
  21. package/dist/NamirasoftErpServerCurrencyExchange.js.map +1 -0
  22. package/dist/NamirasoftErpServerERPAccount.d.ts +18 -0
  23. package/dist/NamirasoftErpServerERPAccount.js +64 -0
  24. package/dist/NamirasoftErpServerERPAccount.js.map +1 -0
  25. package/dist/NamirasoftErpServerFiscalYear.d.ts +18 -0
  26. package/dist/NamirasoftErpServerFiscalYear.js +64 -0
  27. package/dist/NamirasoftErpServerFiscalYear.js.map +1 -0
  28. package/dist/NamirasoftErpServerHealth.d.ts +8 -0
  29. package/dist/NamirasoftErpServerHealth.js +35 -0
  30. package/dist/NamirasoftErpServerHealth.js.map +1 -0
  31. package/dist/NamirasoftErpServerHealthz.d.ts +7 -0
  32. package/dist/NamirasoftErpServerHealthz.js +28 -0
  33. package/dist/NamirasoftErpServerHealthz.js.map +1 -0
  34. package/dist/NamirasoftErpServerJournalEntry.d.ts +18 -0
  35. package/dist/NamirasoftErpServerJournalEntry.js +64 -0
  36. package/dist/NamirasoftErpServerJournalEntry.js.map +1 -0
  37. package/dist/NamirasoftErpServerJournalEntryLine.d.ts +14 -0
  38. package/dist/NamirasoftErpServerJournalEntryLine.js +41 -0
  39. package/dist/NamirasoftErpServerJournalEntryLine.js.map +1 -0
  40. package/dist/NamirasoftErpServerMetrics.d.ts +7 -0
  41. package/dist/NamirasoftErpServerMetrics.js +28 -0
  42. package/dist/NamirasoftErpServerMetrics.js.map +1 -0
  43. package/dist/NamirasoftErpServerParty.d.ts +18 -0
  44. package/dist/NamirasoftErpServerParty.js +64 -0
  45. package/dist/NamirasoftErpServerParty.js.map +1 -0
  46. package/dist/NamirasoftErpServerPartyType.d.ts +18 -0
  47. package/dist/NamirasoftErpServerPartyType.js +64 -0
  48. package/dist/NamirasoftErpServerPartyType.js.map +1 -0
  49. package/dist/NamirasoftErpServerValue.d.ts +7 -0
  50. package/dist/NamirasoftErpServerValue.js +29 -0
  51. package/dist/NamirasoftErpServerValue.js.map +1 -0
  52. package/dist/command/AccountPartyTypeCommand.d.ts +4 -0
  53. package/dist/command/AccountPartyTypeCommand.js +17 -0
  54. package/dist/command/AccountPartyTypeCommand.js.map +1 -0
  55. package/dist/command/AccountPartyTypeGetCommand.d.ts +5 -0
  56. package/dist/command/AccountPartyTypeGetCommand.js +38 -0
  57. package/dist/command/AccountPartyTypeGetCommand.js.map +1 -0
  58. package/dist/command/AccountPartyTypeListCommand.d.ts +5 -0
  59. package/dist/command/AccountPartyTypeListCommand.js +38 -0
  60. package/dist/command/AccountPartyTypeListCommand.js.map +1 -0
  61. package/dist/command/BranchCommand.d.ts +4 -0
  62. package/dist/command/BranchCommand.js +23 -0
  63. package/dist/command/BranchCommand.js.map +1 -0
  64. package/dist/command/BranchCreateCommand.d.ts +5 -0
  65. package/dist/command/BranchCreateCommand.js +94 -0
  66. package/dist/command/BranchCreateCommand.js.map +1 -0
  67. package/dist/command/BranchDeleteCommand.d.ts +5 -0
  68. package/dist/command/BranchDeleteCommand.js +38 -0
  69. package/dist/command/BranchDeleteCommand.js.map +1 -0
  70. package/dist/command/BranchGetCommand.d.ts +5 -0
  71. package/dist/command/BranchGetCommand.js +38 -0
  72. package/dist/command/BranchGetCommand.js.map +1 -0
  73. package/dist/command/BranchListCommand.d.ts +5 -0
  74. package/dist/command/BranchListCommand.js +38 -0
  75. package/dist/command/BranchListCommand.js.map +1 -0
  76. package/dist/command/BranchUpdateCommand.d.ts +5 -0
  77. package/dist/command/BranchUpdateCommand.js +94 -0
  78. package/dist/command/BranchUpdateCommand.js.map +1 -0
  79. package/dist/command/CompanyCommand.d.ts +4 -0
  80. package/dist/command/CompanyCommand.js +23 -0
  81. package/dist/command/CompanyCommand.js.map +1 -0
  82. package/dist/command/CompanyCreateCommand.d.ts +5 -0
  83. package/dist/command/CompanyCreateCommand.js +67 -0
  84. package/dist/command/CompanyCreateCommand.js.map +1 -0
  85. package/dist/command/CompanyDeleteCommand.d.ts +5 -0
  86. package/dist/command/CompanyDeleteCommand.js +38 -0
  87. package/dist/command/CompanyDeleteCommand.js.map +1 -0
  88. package/dist/command/CompanyGetCommand.d.ts +5 -0
  89. package/dist/command/CompanyGetCommand.js +38 -0
  90. package/dist/command/CompanyGetCommand.js.map +1 -0
  91. package/dist/command/CompanyListCommand.d.ts +5 -0
  92. package/dist/command/CompanyListCommand.js +38 -0
  93. package/dist/command/CompanyListCommand.js.map +1 -0
  94. package/dist/command/CompanyUpdateCommand.d.ts +5 -0
  95. package/dist/command/CompanyUpdateCommand.js +67 -0
  96. package/dist/command/CompanyUpdateCommand.js.map +1 -0
  97. package/dist/command/CurrencyCommand.d.ts +4 -0
  98. package/dist/command/CurrencyCommand.js +23 -0
  99. package/dist/command/CurrencyCommand.js.map +1 -0
  100. package/dist/command/CurrencyCreateCommand.d.ts +5 -0
  101. package/dist/command/CurrencyCreateCommand.js +94 -0
  102. package/dist/command/CurrencyCreateCommand.js.map +1 -0
  103. package/dist/command/CurrencyDeleteCommand.d.ts +5 -0
  104. package/dist/command/CurrencyDeleteCommand.js +38 -0
  105. package/dist/command/CurrencyDeleteCommand.js.map +1 -0
  106. package/dist/command/CurrencyExchangeCommand.d.ts +4 -0
  107. package/dist/command/CurrencyExchangeCommand.js +23 -0
  108. package/dist/command/CurrencyExchangeCommand.js.map +1 -0
  109. package/dist/command/CurrencyExchangeCreateCommand.d.ts +5 -0
  110. package/dist/command/CurrencyExchangeCreateCommand.js +76 -0
  111. package/dist/command/CurrencyExchangeCreateCommand.js.map +1 -0
  112. package/dist/command/CurrencyExchangeDeleteCommand.d.ts +5 -0
  113. package/dist/command/CurrencyExchangeDeleteCommand.js +38 -0
  114. package/dist/command/CurrencyExchangeDeleteCommand.js.map +1 -0
  115. package/dist/command/CurrencyExchangeGetCommand.d.ts +5 -0
  116. package/dist/command/CurrencyExchangeGetCommand.js +38 -0
  117. package/dist/command/CurrencyExchangeGetCommand.js.map +1 -0
  118. package/dist/command/CurrencyExchangeListCommand.d.ts +5 -0
  119. package/dist/command/CurrencyExchangeListCommand.js +38 -0
  120. package/dist/command/CurrencyExchangeListCommand.js.map +1 -0
  121. package/dist/command/CurrencyExchangeUpdateCommand.d.ts +5 -0
  122. package/dist/command/CurrencyExchangeUpdateCommand.js +76 -0
  123. package/dist/command/CurrencyExchangeUpdateCommand.js.map +1 -0
  124. package/dist/command/CurrencyGetCommand.d.ts +5 -0
  125. package/dist/command/CurrencyGetCommand.js +38 -0
  126. package/dist/command/CurrencyGetCommand.js.map +1 -0
  127. package/dist/command/CurrencyListCommand.d.ts +5 -0
  128. package/dist/command/CurrencyListCommand.js +38 -0
  129. package/dist/command/CurrencyListCommand.js.map +1 -0
  130. package/dist/command/CurrencyUpdateCommand.d.ts +5 -0
  131. package/dist/command/CurrencyUpdateCommand.js +94 -0
  132. package/dist/command/CurrencyUpdateCommand.js.map +1 -0
  133. package/dist/command/ERPAccountCommand.d.ts +4 -0
  134. package/dist/command/ERPAccountCommand.js +23 -0
  135. package/dist/command/ERPAccountCommand.js.map +1 -0
  136. package/dist/command/ERPAccountCreateCommand.d.ts +5 -0
  137. package/dist/command/ERPAccountCreateCommand.js +112 -0
  138. package/dist/command/ERPAccountCreateCommand.js.map +1 -0
  139. package/dist/command/ERPAccountDeleteCommand.d.ts +5 -0
  140. package/dist/command/ERPAccountDeleteCommand.js +38 -0
  141. package/dist/command/ERPAccountDeleteCommand.js.map +1 -0
  142. package/dist/command/ERPAccountGetCommand.d.ts +5 -0
  143. package/dist/command/ERPAccountGetCommand.js +38 -0
  144. package/dist/command/ERPAccountGetCommand.js.map +1 -0
  145. package/dist/command/ERPAccountListCommand.d.ts +5 -0
  146. package/dist/command/ERPAccountListCommand.js +38 -0
  147. package/dist/command/ERPAccountListCommand.js.map +1 -0
  148. package/dist/command/ERPAccountUpdateCommand.d.ts +5 -0
  149. package/dist/command/ERPAccountUpdateCommand.js +112 -0
  150. package/dist/command/ERPAccountUpdateCommand.js.map +1 -0
  151. package/dist/command/FiscalYearCommand.d.ts +4 -0
  152. package/dist/command/FiscalYearCommand.js +23 -0
  153. package/dist/command/FiscalYearCommand.js.map +1 -0
  154. package/dist/command/FiscalYearCreateCommand.d.ts +5 -0
  155. package/dist/command/FiscalYearCreateCommand.js +94 -0
  156. package/dist/command/FiscalYearCreateCommand.js.map +1 -0
  157. package/dist/command/FiscalYearDeleteCommand.d.ts +5 -0
  158. package/dist/command/FiscalYearDeleteCommand.js +38 -0
  159. package/dist/command/FiscalYearDeleteCommand.js.map +1 -0
  160. package/dist/command/FiscalYearGetCommand.d.ts +5 -0
  161. package/dist/command/FiscalYearGetCommand.js +38 -0
  162. package/dist/command/FiscalYearGetCommand.js.map +1 -0
  163. package/dist/command/FiscalYearListCommand.d.ts +5 -0
  164. package/dist/command/FiscalYearListCommand.js +38 -0
  165. package/dist/command/FiscalYearListCommand.js.map +1 -0
  166. package/dist/command/FiscalYearUpdateCommand.d.ts +5 -0
  167. package/dist/command/FiscalYearUpdateCommand.js +94 -0
  168. package/dist/command/FiscalYearUpdateCommand.js.map +1 -0
  169. package/dist/command/HealthCommand.d.ts +4 -0
  170. package/dist/command/HealthCommand.js +17 -0
  171. package/dist/command/HealthCommand.js.map +1 -0
  172. package/dist/command/HealthLivenessCommand.d.ts +5 -0
  173. package/dist/command/HealthLivenessCommand.js +38 -0
  174. package/dist/command/HealthLivenessCommand.js.map +1 -0
  175. package/dist/command/HealthReadinessCommand.d.ts +5 -0
  176. package/dist/command/HealthReadinessCommand.js +38 -0
  177. package/dist/command/HealthReadinessCommand.js.map +1 -0
  178. package/dist/command/HealthzCommand.d.ts +4 -0
  179. package/dist/command/HealthzCommand.js +15 -0
  180. package/dist/command/HealthzCommand.js.map +1 -0
  181. package/dist/command/HealthzGetCommand.d.ts +5 -0
  182. package/dist/command/HealthzGetCommand.js +38 -0
  183. package/dist/command/HealthzGetCommand.js.map +1 -0
  184. package/dist/command/JournalEntryCommand.d.ts +4 -0
  185. package/dist/command/JournalEntryCommand.js +23 -0
  186. package/dist/command/JournalEntryCommand.js.map +1 -0
  187. package/dist/command/JournalEntryCreateCommand.d.ts +5 -0
  188. package/dist/command/JournalEntryCreateCommand.js +121 -0
  189. package/dist/command/JournalEntryCreateCommand.js.map +1 -0
  190. package/dist/command/JournalEntryDeleteCommand.d.ts +5 -0
  191. package/dist/command/JournalEntryDeleteCommand.js +38 -0
  192. package/dist/command/JournalEntryDeleteCommand.js.map +1 -0
  193. package/dist/command/JournalEntryGetCommand.d.ts +5 -0
  194. package/dist/command/JournalEntryGetCommand.js +38 -0
  195. package/dist/command/JournalEntryGetCommand.js.map +1 -0
  196. package/dist/command/JournalEntryLineCommand.d.ts +4 -0
  197. package/dist/command/JournalEntryLineCommand.js +17 -0
  198. package/dist/command/JournalEntryLineCommand.js.map +1 -0
  199. package/dist/command/JournalEntryLineGetCommand.d.ts +5 -0
  200. package/dist/command/JournalEntryLineGetCommand.js +38 -0
  201. package/dist/command/JournalEntryLineGetCommand.js.map +1 -0
  202. package/dist/command/JournalEntryLineListCommand.d.ts +5 -0
  203. package/dist/command/JournalEntryLineListCommand.js +38 -0
  204. package/dist/command/JournalEntryLineListCommand.js.map +1 -0
  205. package/dist/command/JournalEntryListCommand.d.ts +5 -0
  206. package/dist/command/JournalEntryListCommand.js +38 -0
  207. package/dist/command/JournalEntryListCommand.js.map +1 -0
  208. package/dist/command/JournalEntryUpdateCommand.d.ts +5 -0
  209. package/dist/command/JournalEntryUpdateCommand.js +121 -0
  210. package/dist/command/JournalEntryUpdateCommand.js.map +1 -0
  211. package/dist/command/MetricsCommand.d.ts +4 -0
  212. package/dist/command/MetricsCommand.js +15 -0
  213. package/dist/command/MetricsCommand.js.map +1 -0
  214. package/dist/command/MetricsGetCommand.d.ts +5 -0
  215. package/dist/command/MetricsGetCommand.js +38 -0
  216. package/dist/command/MetricsGetCommand.js.map +1 -0
  217. package/dist/command/PartyCommand.d.ts +4 -0
  218. package/dist/command/PartyCommand.js +23 -0
  219. package/dist/command/PartyCommand.js.map +1 -0
  220. package/dist/command/PartyCreateCommand.d.ts +5 -0
  221. package/dist/command/PartyCreateCommand.js +94 -0
  222. package/dist/command/PartyCreateCommand.js.map +1 -0
  223. package/dist/command/PartyDeleteCommand.d.ts +5 -0
  224. package/dist/command/PartyDeleteCommand.js +38 -0
  225. package/dist/command/PartyDeleteCommand.js.map +1 -0
  226. package/dist/command/PartyGetCommand.d.ts +5 -0
  227. package/dist/command/PartyGetCommand.js +38 -0
  228. package/dist/command/PartyGetCommand.js.map +1 -0
  229. package/dist/command/PartyListCommand.d.ts +5 -0
  230. package/dist/command/PartyListCommand.js +38 -0
  231. package/dist/command/PartyListCommand.js.map +1 -0
  232. package/dist/command/PartyTypeCommand.d.ts +4 -0
  233. package/dist/command/PartyTypeCommand.js +23 -0
  234. package/dist/command/PartyTypeCommand.js.map +1 -0
  235. package/dist/command/PartyTypeCreateCommand.d.ts +5 -0
  236. package/dist/command/PartyTypeCreateCommand.js +85 -0
  237. package/dist/command/PartyTypeCreateCommand.js.map +1 -0
  238. package/dist/command/PartyTypeDeleteCommand.d.ts +5 -0
  239. package/dist/command/PartyTypeDeleteCommand.js +38 -0
  240. package/dist/command/PartyTypeDeleteCommand.js.map +1 -0
  241. package/dist/command/PartyTypeGetCommand.d.ts +5 -0
  242. package/dist/command/PartyTypeGetCommand.js +38 -0
  243. package/dist/command/PartyTypeGetCommand.js.map +1 -0
  244. package/dist/command/PartyTypeListCommand.d.ts +5 -0
  245. package/dist/command/PartyTypeListCommand.js +38 -0
  246. package/dist/command/PartyTypeListCommand.js.map +1 -0
  247. package/dist/command/PartyTypeUpdateCommand.d.ts +5 -0
  248. package/dist/command/PartyTypeUpdateCommand.js +85 -0
  249. package/dist/command/PartyTypeUpdateCommand.js.map +1 -0
  250. package/dist/command/PartyUpdateCommand.d.ts +5 -0
  251. package/dist/command/PartyUpdateCommand.js +94 -0
  252. package/dist/command/PartyUpdateCommand.js.map +1 -0
  253. package/dist/command/ValueCommand.d.ts +4 -0
  254. package/dist/command/ValueCommand.js +15 -0
  255. package/dist/command/ValueCommand.js.map +1 -0
  256. package/dist/command/ValueListCommand.d.ts +5 -0
  257. package/dist/command/ValueListCommand.js +38 -0
  258. package/dist/command/ValueListCommand.js.map +1 -0
  259. package/dist/command/cli.d.ts +2 -0
  260. package/dist/command/cli.js +42 -0
  261. package/dist/command/cli.js.map +1 -0
  262. package/dist/enum/AccountType.d.ts +7 -0
  263. package/dist/enum/AccountType.js +12 -0
  264. package/dist/enum/AccountType.js.map +1 -0
  265. package/dist/index.d.ts +119 -0
  266. package/dist/index.js +136 -0
  267. package/dist/index.js.map +1 -0
  268. package/dist/meta/AccountMetaTable.d.ts +21 -0
  269. package/dist/meta/AccountMetaTable.js +31 -0
  270. package/dist/meta/AccountMetaTable.js.map +1 -0
  271. package/dist/meta/AccountPartyTypeMetaTable.d.ts +14 -0
  272. package/dist/meta/AccountPartyTypeMetaTable.js +39 -0
  273. package/dist/meta/AccountPartyTypeMetaTable.js.map +1 -0
  274. package/dist/meta/BranchMetaTable.d.ts +19 -0
  275. package/dist/meta/BranchMetaTable.js +42 -0
  276. package/dist/meta/BranchMetaTable.js.map +1 -0
  277. package/dist/meta/CompanyMetaTable.d.ts +16 -0
  278. package/dist/meta/CompanyMetaTable.js +39 -0
  279. package/dist/meta/CompanyMetaTable.js.map +1 -0
  280. package/dist/meta/CurrencyExchangeMetaTable.d.ts +17 -0
  281. package/dist/meta/CurrencyExchangeMetaTable.js +40 -0
  282. package/dist/meta/CurrencyExchangeMetaTable.js.map +1 -0
  283. package/dist/meta/CurrencyMetaTable.d.ts +19 -0
  284. package/dist/meta/CurrencyMetaTable.js +42 -0
  285. package/dist/meta/CurrencyMetaTable.js.map +1 -0
  286. package/dist/meta/FiscalYearMetaTable.d.ts +19 -0
  287. package/dist/meta/FiscalYearMetaTable.js +42 -0
  288. package/dist/meta/FiscalYearMetaTable.js.map +1 -0
  289. package/dist/meta/JournalEntryLineMetaTable.d.ts +19 -0
  290. package/dist/meta/JournalEntryLineMetaTable.js +44 -0
  291. package/dist/meta/JournalEntryLineMetaTable.js.map +1 -0
  292. package/dist/meta/JournalEntryMetaTable.d.ts +22 -0
  293. package/dist/meta/JournalEntryMetaTable.js +45 -0
  294. package/dist/meta/JournalEntryMetaTable.js.map +1 -0
  295. package/dist/meta/NamirasoftErpMetaDatabase.d.ts +33 -0
  296. package/dist/meta/NamirasoftErpMetaDatabase.js +47 -0
  297. package/dist/meta/NamirasoftErpMetaDatabase.js.map +1 -0
  298. package/dist/meta/PartyMetaTable.d.ts +19 -0
  299. package/dist/meta/PartyMetaTable.js +42 -0
  300. package/dist/meta/PartyMetaTable.js.map +1 -0
  301. package/dist/meta/PartyTypeMetaTable.d.ts +18 -0
  302. package/dist/meta/PartyTypeMetaTable.js +41 -0
  303. package/dist/meta/PartyTypeMetaTable.js.map +1 -0
  304. package/dist/row/AccountInputRow.d.ts +11 -0
  305. package/dist/row/AccountInputRow.js +3 -0
  306. package/dist/row/AccountInputRow.js.map +1 -0
  307. package/dist/row/AccountPartyTypeRow.d.ts +7 -0
  308. package/dist/row/AccountPartyTypeRow.js +3 -0
  309. package/dist/row/AccountPartyTypeRow.js.map +1 -0
  310. package/dist/row/AccountRow.d.ts +15 -0
  311. package/dist/row/AccountRow.js +3 -0
  312. package/dist/row/AccountRow.js.map +1 -0
  313. package/dist/row/BranchInputRow.d.ts +8 -0
  314. package/dist/row/BranchInputRow.js +3 -0
  315. package/dist/row/BranchInputRow.js.map +1 -0
  316. package/dist/row/BranchRow.d.ts +12 -0
  317. package/dist/row/BranchRow.js +3 -0
  318. package/dist/row/BranchRow.js.map +1 -0
  319. package/dist/row/CompanyInputRow.d.ts +5 -0
  320. package/dist/row/CompanyInputRow.js +3 -0
  321. package/dist/row/CompanyInputRow.js.map +1 -0
  322. package/dist/row/CompanyRow.d.ts +9 -0
  323. package/dist/row/CompanyRow.js +3 -0
  324. package/dist/row/CompanyRow.js.map +1 -0
  325. package/dist/row/CurrencyExchangeInputRow.d.ts +6 -0
  326. package/dist/row/CurrencyExchangeInputRow.js +3 -0
  327. package/dist/row/CurrencyExchangeInputRow.js.map +1 -0
  328. package/dist/row/CurrencyExchangeRow.d.ts +10 -0
  329. package/dist/row/CurrencyExchangeRow.js +3 -0
  330. package/dist/row/CurrencyExchangeRow.js.map +1 -0
  331. package/dist/row/CurrencyInputRow.d.ts +8 -0
  332. package/dist/row/CurrencyInputRow.js +3 -0
  333. package/dist/row/CurrencyInputRow.js.map +1 -0
  334. package/dist/row/CurrencyRow.d.ts +12 -0
  335. package/dist/row/CurrencyRow.js +3 -0
  336. package/dist/row/CurrencyRow.js.map +1 -0
  337. package/dist/row/FiscalYearInputRow.d.ts +8 -0
  338. package/dist/row/FiscalYearInputRow.js +3 -0
  339. package/dist/row/FiscalYearInputRow.js.map +1 -0
  340. package/dist/row/FiscalYearRow.d.ts +12 -0
  341. package/dist/row/FiscalYearRow.js +3 -0
  342. package/dist/row/FiscalYearRow.js.map +1 -0
  343. package/dist/row/JournalEntryInputRow.d.ts +11 -0
  344. package/dist/row/JournalEntryInputRow.js +3 -0
  345. package/dist/row/JournalEntryInputRow.js.map +1 -0
  346. package/dist/row/JournalEntryLineRow.d.ts +12 -0
  347. package/dist/row/JournalEntryLineRow.js +3 -0
  348. package/dist/row/JournalEntryLineRow.js.map +1 -0
  349. package/dist/row/JournalEntryRow.d.ts +15 -0
  350. package/dist/row/JournalEntryRow.js +3 -0
  351. package/dist/row/JournalEntryRow.js.map +1 -0
  352. package/dist/row/PartyInputRow.d.ts +8 -0
  353. package/dist/row/PartyInputRow.js +3 -0
  354. package/dist/row/PartyInputRow.js.map +1 -0
  355. package/dist/row/PartyRow.d.ts +12 -0
  356. package/dist/row/PartyRow.js +3 -0
  357. package/dist/row/PartyRow.js.map +1 -0
  358. package/dist/row/PartyTypeInputRow.d.ts +7 -0
  359. package/dist/row/PartyTypeInputRow.js +3 -0
  360. package/dist/row/PartyTypeInputRow.js.map +1 -0
  361. package/dist/row/PartyTypeRow.d.ts +11 -0
  362. package/dist/row/PartyTypeRow.js +3 -0
  363. package/dist/row/PartyTypeRow.js.map +1 -0
  364. package/logo.png +0 -0
  365. package/package.json +28 -0
  366. package/src/NamirasoftErpServer.ts +75 -0
  367. package/src/NamirasoftErpServerAccountPartyType.ts +50 -0
  368. package/src/NamirasoftErpServerBase.ts +30 -0
  369. package/src/NamirasoftErpServerBranch.ts +71 -0
  370. package/src/NamirasoftErpServerCompany.ts +71 -0
  371. package/src/NamirasoftErpServerCurrency.ts +71 -0
  372. package/src/NamirasoftErpServerCurrencyExchange.ts +71 -0
  373. package/src/NamirasoftErpServerERPAccount.ts +71 -0
  374. package/src/NamirasoftErpServerFiscalYear.ts +71 -0
  375. package/src/NamirasoftErpServerHealth.ts +43 -0
  376. package/src/NamirasoftErpServerHealthz.ts +37 -0
  377. package/src/NamirasoftErpServerJournalEntry.ts +71 -0
  378. package/src/NamirasoftErpServerJournalEntryLine.ts +50 -0
  379. package/src/NamirasoftErpServerMetrics.ts +37 -0
  380. package/src/NamirasoftErpServerParty.ts +71 -0
  381. package/src/NamirasoftErpServerPartyType.ts +71 -0
  382. package/src/NamirasoftErpServerValue.ts +38 -0
  383. package/src/command/AccountPartyTypeCommand.ts +34 -0
  384. package/src/command/AccountPartyTypeGetCommand.ts +45 -0
  385. package/src/command/AccountPartyTypeListCommand.ts +45 -0
  386. package/src/command/BranchCommand.ts +40 -0
  387. package/src/command/BranchCreateCommand.ts +101 -0
  388. package/src/command/BranchDeleteCommand.ts +45 -0
  389. package/src/command/BranchGetCommand.ts +45 -0
  390. package/src/command/BranchListCommand.ts +45 -0
  391. package/src/command/BranchUpdateCommand.ts +101 -0
  392. package/src/command/CompanyCommand.ts +40 -0
  393. package/src/command/CompanyCreateCommand.ts +74 -0
  394. package/src/command/CompanyDeleteCommand.ts +45 -0
  395. package/src/command/CompanyGetCommand.ts +45 -0
  396. package/src/command/CompanyListCommand.ts +45 -0
  397. package/src/command/CompanyUpdateCommand.ts +74 -0
  398. package/src/command/CurrencyCommand.ts +40 -0
  399. package/src/command/CurrencyCreateCommand.ts +101 -0
  400. package/src/command/CurrencyDeleteCommand.ts +45 -0
  401. package/src/command/CurrencyExchangeCommand.ts +40 -0
  402. package/src/command/CurrencyExchangeCreateCommand.ts +83 -0
  403. package/src/command/CurrencyExchangeDeleteCommand.ts +45 -0
  404. package/src/command/CurrencyExchangeGetCommand.ts +45 -0
  405. package/src/command/CurrencyExchangeListCommand.ts +45 -0
  406. package/src/command/CurrencyExchangeUpdateCommand.ts +83 -0
  407. package/src/command/CurrencyGetCommand.ts +45 -0
  408. package/src/command/CurrencyListCommand.ts +45 -0
  409. package/src/command/CurrencyUpdateCommand.ts +101 -0
  410. package/src/command/ERPAccountCommand.ts +40 -0
  411. package/src/command/ERPAccountCreateCommand.ts +119 -0
  412. package/src/command/ERPAccountDeleteCommand.ts +45 -0
  413. package/src/command/ERPAccountGetCommand.ts +45 -0
  414. package/src/command/ERPAccountListCommand.ts +45 -0
  415. package/src/command/ERPAccountUpdateCommand.ts +119 -0
  416. package/src/command/FiscalYearCommand.ts +40 -0
  417. package/src/command/FiscalYearCreateCommand.ts +101 -0
  418. package/src/command/FiscalYearDeleteCommand.ts +45 -0
  419. package/src/command/FiscalYearGetCommand.ts +45 -0
  420. package/src/command/FiscalYearListCommand.ts +45 -0
  421. package/src/command/FiscalYearUpdateCommand.ts +101 -0
  422. package/src/command/HealthCommand.ts +34 -0
  423. package/src/command/HealthLivenessCommand.ts +45 -0
  424. package/src/command/HealthReadinessCommand.ts +45 -0
  425. package/src/command/HealthzCommand.ts +32 -0
  426. package/src/command/HealthzGetCommand.ts +45 -0
  427. package/src/command/JournalEntryCommand.ts +40 -0
  428. package/src/command/JournalEntryCreateCommand.ts +128 -0
  429. package/src/command/JournalEntryDeleteCommand.ts +45 -0
  430. package/src/command/JournalEntryGetCommand.ts +45 -0
  431. package/src/command/JournalEntryLineCommand.ts +34 -0
  432. package/src/command/JournalEntryLineGetCommand.ts +45 -0
  433. package/src/command/JournalEntryLineListCommand.ts +45 -0
  434. package/src/command/JournalEntryListCommand.ts +45 -0
  435. package/src/command/JournalEntryUpdateCommand.ts +128 -0
  436. package/src/command/MetricsCommand.ts +32 -0
  437. package/src/command/MetricsGetCommand.ts +45 -0
  438. package/src/command/PartyCommand.ts +40 -0
  439. package/src/command/PartyCreateCommand.ts +101 -0
  440. package/src/command/PartyDeleteCommand.ts +45 -0
  441. package/src/command/PartyGetCommand.ts +45 -0
  442. package/src/command/PartyListCommand.ts +45 -0
  443. package/src/command/PartyTypeCommand.ts +40 -0
  444. package/src/command/PartyTypeCreateCommand.ts +92 -0
  445. package/src/command/PartyTypeDeleteCommand.ts +45 -0
  446. package/src/command/PartyTypeGetCommand.ts +45 -0
  447. package/src/command/PartyTypeListCommand.ts +45 -0
  448. package/src/command/PartyTypeUpdateCommand.ts +92 -0
  449. package/src/command/PartyUpdateCommand.ts +101 -0
  450. package/src/command/ValueCommand.ts +32 -0
  451. package/src/command/ValueListCommand.ts +45 -0
  452. package/src/command/cli.ts +61 -0
  453. package/src/enum/AccountType.ts +28 -0
  454. package/src/index.ts +139 -0
  455. package/src/meta/AccountMetaTable.ts +64 -0
  456. package/src/meta/AccountPartyTypeMetaTable.ts +59 -0
  457. package/src/meta/BranchMetaTable.ts +67 -0
  458. package/src/meta/CompanyMetaTable.ts +61 -0
  459. package/src/meta/CurrencyExchangeMetaTable.ts +63 -0
  460. package/src/meta/CurrencyMetaTable.ts +67 -0
  461. package/src/meta/FiscalYearMetaTable.ts +67 -0
  462. package/src/meta/JournalEntryLineMetaTable.ts +69 -0
  463. package/src/meta/JournalEntryMetaTable.ts +73 -0
  464. package/src/meta/NamirasoftErpMetaDatabase.ts +81 -0
  465. package/src/meta/PartyMetaTable.ts +67 -0
  466. package/src/meta/PartyTypeMetaTable.ts +65 -0
  467. package/src/row/AccountInputRow.ts +33 -0
  468. package/src/row/AccountPartyTypeRow.ts +28 -0
  469. package/src/row/AccountRow.ts +37 -0
  470. package/src/row/BranchInputRow.ts +29 -0
  471. package/src/row/BranchRow.ts +33 -0
  472. package/src/row/CompanyInputRow.ts +26 -0
  473. package/src/row/CompanyRow.ts +30 -0
  474. package/src/row/CurrencyExchangeInputRow.ts +27 -0
  475. package/src/row/CurrencyExchangeRow.ts +31 -0
  476. package/src/row/CurrencyInputRow.ts +29 -0
  477. package/src/row/CurrencyRow.ts +33 -0
  478. package/src/row/FiscalYearInputRow.ts +29 -0
  479. package/src/row/FiscalYearRow.ts +33 -0
  480. package/src/row/JournalEntryInputRow.ts +32 -0
  481. package/src/row/JournalEntryLineRow.ts +33 -0
  482. package/src/row/JournalEntryRow.ts +36 -0
  483. package/src/row/PartyInputRow.ts +29 -0
  484. package/src/row/PartyRow.ts +33 -0
  485. package/src/row/PartyTypeInputRow.ts +28 -0
  486. package/src/row/PartyTypeRow.ts +32 -0
  487. package/tsconfig.json +45 -0
@@ -0,0 +1,45 @@
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 { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
+ import { NamirasoftErpServer } from "../NamirasoftErpServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class PartyTypeDeleteCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["id"], []);
31
+ }
32
+ override async exec()
33
+ {
34
+ let token = this.app.storage.getNSAToken();
35
+ if (token == null)
36
+ throw new Error("Token is not available. Please login first using:\nns-erp account config \nor \nns-erp account login.");
37
+ let storage = new IStorageMemoryDedicated();
38
+ let token_manager = new TokenManager(storage, () => { });
39
+ token_manager.setValue(token, false);
40
+ let url = this.app.storage.getItem("ns-erp-server-url");
41
+ let server = new NamirasoftErpServer(url, token_manager, e => this.app.logger.error(e.message));
42
+ let ans = await server.party_type.Delete(this.arg_values[0]);
43
+ this.app.logger.success(JSON.stringify(ans));
44
+ }
45
+ };
@@ -0,0 +1,45 @@
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 { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
+ import { NamirasoftErpServer } from "../NamirasoftErpServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class PartyTypeGetCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["id"], []);
31
+ }
32
+ override async exec()
33
+ {
34
+ let token = this.app.storage.getNSAToken();
35
+ if (token == null)
36
+ throw new Error("Token is not available. Please login first using:\nns-erp account config \nor \nns-erp account login.");
37
+ let storage = new IStorageMemoryDedicated();
38
+ let token_manager = new TokenManager(storage, () => { });
39
+ token_manager.setValue(token, false);
40
+ let url = this.app.storage.getItem("ns-erp-server-url");
41
+ let server = new NamirasoftErpServer(url, token_manager, e => this.app.logger.error(e.message));
42
+ let ans = await server.party_type.Get(this.arg_values[0]);
43
+ this.app.logger.success(JSON.stringify(ans));
44
+ }
45
+ };
@@ -0,0 +1,45 @@
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 { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
+ import { NamirasoftErpServer } from "../NamirasoftErpServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class PartyTypeListCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["filters", "page", "size", "sorts"], []);
31
+ }
32
+ override async exec()
33
+ {
34
+ let token = this.app.storage.getNSAToken();
35
+ if (token == null)
36
+ throw new Error("Token is not available. Please login first using:\nns-erp account config \nor \nns-erp account login.");
37
+ let storage = new IStorageMemoryDedicated();
38
+ let token_manager = new TokenManager(storage, () => { });
39
+ token_manager.setValue(token, false);
40
+ let url = this.app.storage.getItem("ns-erp-server-url");
41
+ let server = new NamirasoftErpServer(url, token_manager, e => this.app.logger.error(e.message));
42
+ let ans = await server.party_type.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]);
43
+ this.app.logger.success(JSON.stringify(ans));
44
+ }
45
+ };
@@ -0,0 +1,92 @@
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 { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
+ import { NamirasoftErpServer } from "../NamirasoftErpServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class PartyTypeUpdateCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["id"], [
31
+ {
32
+ name: "company_id",
33
+ short: "",
34
+ description: "Provides the value of 'company_id' in body",
35
+ optional: false,
36
+ args: ["company_id"],
37
+ defaults: [""]
38
+ },
39
+ {
40
+ name: "branch_id",
41
+ short: "",
42
+ description: "Provides the value of 'branch_id' in body",
43
+ optional: true,
44
+ args: ["branch_id"],
45
+ defaults: [""]
46
+ },
47
+ {
48
+ name: "name",
49
+ short: "",
50
+ description: "Provides the value of 'name' in body",
51
+ optional: false,
52
+ args: ["name"],
53
+ defaults: [""]
54
+ },
55
+ {
56
+ name: "description",
57
+ short: "",
58
+ description: "Provides the value of 'description' in body",
59
+ optional: true,
60
+ args: ["description"],
61
+ defaults: [""]
62
+ },
63
+ {
64
+ name: "enabled",
65
+ short: "",
66
+ description: "Provides the value of 'enabled' in body",
67
+ optional: false,
68
+ args: ["enabled"],
69
+ defaults: [""]
70
+ }
71
+ ]);
72
+ }
73
+ override async exec()
74
+ {
75
+ let token = this.app.storage.getNSAToken();
76
+ if (token == null)
77
+ throw new Error("Token is not available. Please login first using:\nns-erp account config \nor \nns-erp account login.");
78
+ let storage = new IStorageMemoryDedicated();
79
+ let token_manager = new TokenManager(storage, () => { });
80
+ token_manager.setValue(token, false);
81
+ let url = this.app.storage.getItem("ns-erp-server-url");
82
+ let server = new NamirasoftErpServer(url, token_manager, e => this.app.logger.error(e.message));
83
+ let ans = await server.party_type.Update(this.arg_values[0], {
84
+ company_id: this.option_values.company_id,
85
+ branch_id: this.option_values.branch_id,
86
+ name: this.option_values.name,
87
+ description: this.option_values.description,
88
+ enabled: this.option_values.enabled
89
+ });
90
+ this.app.logger.success(JSON.stringify(ans));
91
+ }
92
+ };
@@ -0,0 +1,101 @@
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 { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
+ import { NamirasoftErpServer } from "../NamirasoftErpServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class PartyUpdateCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["id"], [
31
+ {
32
+ name: "company_id",
33
+ short: "",
34
+ description: "Provides the value of 'company_id' in body",
35
+ optional: false,
36
+ args: ["company_id"],
37
+ defaults: [""]
38
+ },
39
+ {
40
+ name: "branch_id",
41
+ short: "",
42
+ description: "Provides the value of 'branch_id' in body",
43
+ optional: true,
44
+ args: ["branch_id"],
45
+ defaults: [""]
46
+ },
47
+ {
48
+ name: "party_type_id",
49
+ short: "",
50
+ description: "Provides the value of 'party_type_id' in body",
51
+ optional: false,
52
+ args: ["party_type_id"],
53
+ defaults: [""]
54
+ },
55
+ {
56
+ name: "name",
57
+ short: "",
58
+ description: "Provides the value of 'name' in body",
59
+ optional: false,
60
+ args: ["name"],
61
+ defaults: [""]
62
+ },
63
+ {
64
+ name: "description",
65
+ short: "",
66
+ description: "Provides the value of 'description' in body",
67
+ optional: true,
68
+ args: ["description"],
69
+ defaults: [""]
70
+ },
71
+ {
72
+ name: "enabled",
73
+ short: "",
74
+ description: "Provides the value of 'enabled' in body",
75
+ optional: false,
76
+ args: ["enabled"],
77
+ defaults: [""]
78
+ }
79
+ ]);
80
+ }
81
+ override async exec()
82
+ {
83
+ let token = this.app.storage.getNSAToken();
84
+ if (token == null)
85
+ throw new Error("Token is not available. Please login first using:\nns-erp account config \nor \nns-erp account login.");
86
+ let storage = new IStorageMemoryDedicated();
87
+ let token_manager = new TokenManager(storage, () => { });
88
+ token_manager.setValue(token, false);
89
+ let url = this.app.storage.getItem("ns-erp-server-url");
90
+ let server = new NamirasoftErpServer(url, token_manager, e => this.app.logger.error(e.message));
91
+ let ans = await server.party.Update(this.arg_values[0], {
92
+ company_id: this.option_values.company_id,
93
+ branch_id: this.option_values.branch_id,
94
+ party_type_id: this.option_values.party_type_id,
95
+ name: this.option_values.name,
96
+ description: this.option_values.description,
97
+ enabled: this.option_values.enabled
98
+ });
99
+ this.app.logger.success(JSON.stringify(ans));
100
+ }
101
+ };
@@ -0,0 +1,32 @@
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 { BaseNavigatorCommand } from "namirasoft-node-cli";
22
+ import { ValueListCommand } from "./ValueListCommand";
23
+
24
+ export class ValueCommand extends BaseNavigatorCommand
25
+ {
26
+ constructor(argv: string[])
27
+ {
28
+ super(argv, {
29
+ "list": ValueListCommand,
30
+ });
31
+ }
32
+ };
@@ -0,0 +1,45 @@
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 { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
+ import { NamirasoftErpServer } from "../NamirasoftErpServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class ValueListCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["table", "column", "search", "field_id", "limit"], []);
31
+ }
32
+ override async exec()
33
+ {
34
+ let token = this.app.storage.getNSAToken();
35
+ if (token == null)
36
+ throw new Error("Token is not available. Please login first using:\nns-erp account config \nor \nns-erp account login.");
37
+ let storage = new IStorageMemoryDedicated();
38
+ let token_manager = new TokenManager(storage, () => { });
39
+ token_manager.setValue(token, false);
40
+ let url = this.app.storage.getItem("ns-erp-server-url");
41
+ let server = new NamirasoftErpServer(url, token_manager, e => this.app.logger.error(e.message));
42
+ let ans = await server.value.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3], this.arg_values[4]);
43
+ this.app.logger.success(JSON.stringify(ans));
44
+ }
45
+ };
@@ -0,0 +1,61 @@
1
+ #!/usr/bin/env node
2
+ /****************************************************************/
3
+ /* */
4
+ /* This is an Auto-Generated File */
5
+ /* Made By */
6
+ /* Namirasoft SDK Generator NPM Package */
7
+ /* */
8
+ /****************************************************************/
9
+ /****************************************************************/
10
+ /* */
11
+ /* Please do not make any change to this file */
12
+ /* If any change is required, ns-sdkg command must be used */
13
+ /* */
14
+ /****************************************************************/
15
+ /****************************************************************/
16
+ /* */
17
+ /* Namira Software Corporation */
18
+ /* https://namirasoft.com */
19
+ /* */
20
+ /****************************************************************/
21
+
22
+ import { AccountCommand } from "namirasoft-account";
23
+ import { AccountPartyTypeCommand } from "./AccountPartyTypeCommand";
24
+ import { Application, BaseStorage } from "namirasoft-node-cli";
25
+ import { BranchCommand } from "./BranchCommand";
26
+ import { CompanyCommand } from "./CompanyCommand";
27
+ import { ConfigCommand } from "namirasoft-node-cli";
28
+ import { CurrencyCommand } from "./CurrencyCommand";
29
+ import { CurrencyExchangeCommand } from "./CurrencyExchangeCommand";
30
+ import { ERPAccountCommand } from "./ERPAccountCommand";
31
+ import { FiscalYearCommand } from "./FiscalYearCommand";
32
+ import { HealthCommand } from "./HealthCommand";
33
+ import { HealthzCommand } from "./HealthzCommand";
34
+ import { JournalEntryCommand } from "./JournalEntryCommand";
35
+ import { JournalEntryLineCommand } from "./JournalEntryLineCommand";
36
+ import { MetricsCommand } from "./MetricsCommand";
37
+ import { PartyCommand } from "./PartyCommand";
38
+ import { PartyTypeCommand } from "./PartyTypeCommand";
39
+ import { ValueCommand } from "./ValueCommand";
40
+
41
+ let app = new Application("ns-erp", new BaseStorage(),
42
+ {
43
+ "healthz": HealthzCommand,
44
+ "health": HealthCommand,
45
+ "metrics": MetricsCommand,
46
+ "value": ValueCommand,
47
+ "currency": CurrencyCommand,
48
+ "currencyexchange": CurrencyExchangeCommand,
49
+ "company": CompanyCommand,
50
+ "branch": BranchCommand,
51
+ "fiscalyear": FiscalYearCommand,
52
+ "erpaccount": ERPAccountCommand,
53
+ "partytype": PartyTypeCommand,
54
+ "accountpartytype": AccountPartyTypeCommand,
55
+ "party": PartyCommand,
56
+ "journalentry": JournalEntryCommand,
57
+ "journalentryline": JournalEntryLineCommand,
58
+ "account": AccountCommand,
59
+ "config": (argv: string[]) => new ConfigCommand(argv, ["ns-erp-server-url"])
60
+ });
61
+ app.run();
@@ -0,0 +1,28 @@
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
+ export enum AccountType
22
+ {
23
+ asset = "asset",
24
+ liability = "liability",
25
+ equity = "equity",
26
+ income = "income",
27
+ expense = "expense",
28
+ }
package/src/index.ts ADDED
@@ -0,0 +1,139 @@
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
+ export * from "./NamirasoftErpServer";
22
+ export * from "./NamirasoftErpServerAccountPartyType";
23
+ export * from "./NamirasoftErpServerBase";
24
+ export * from "./NamirasoftErpServerBranch";
25
+ export * from "./NamirasoftErpServerCompany";
26
+ export * from "./NamirasoftErpServerCurrency";
27
+ export * from "./NamirasoftErpServerCurrencyExchange";
28
+ export * from "./NamirasoftErpServerERPAccount";
29
+ export * from "./NamirasoftErpServerFiscalYear";
30
+ export * from "./NamirasoftErpServerHealth";
31
+ export * from "./NamirasoftErpServerHealthz";
32
+ export * from "./NamirasoftErpServerJournalEntry";
33
+ export * from "./NamirasoftErpServerJournalEntryLine";
34
+ export * from "./NamirasoftErpServerMetrics";
35
+ export * from "./NamirasoftErpServerParty";
36
+ export * from "./NamirasoftErpServerPartyType";
37
+ export * from "./NamirasoftErpServerValue";
38
+ export * from "./command/AccountPartyTypeCommand";
39
+ export * from "./command/AccountPartyTypeGetCommand";
40
+ export * from "./command/AccountPartyTypeListCommand";
41
+ export * from "./command/BranchCommand";
42
+ export * from "./command/BranchCreateCommand";
43
+ export * from "./command/BranchDeleteCommand";
44
+ export * from "./command/BranchGetCommand";
45
+ export * from "./command/BranchListCommand";
46
+ export * from "./command/BranchUpdateCommand";
47
+ export * from "./command/CompanyCommand";
48
+ export * from "./command/CompanyCreateCommand";
49
+ export * from "./command/CompanyDeleteCommand";
50
+ export * from "./command/CompanyGetCommand";
51
+ export * from "./command/CompanyListCommand";
52
+ export * from "./command/CompanyUpdateCommand";
53
+ export * from "./command/CurrencyCommand";
54
+ export * from "./command/CurrencyCreateCommand";
55
+ export * from "./command/CurrencyDeleteCommand";
56
+ export * from "./command/CurrencyExchangeCommand";
57
+ export * from "./command/CurrencyExchangeCreateCommand";
58
+ export * from "./command/CurrencyExchangeDeleteCommand";
59
+ export * from "./command/CurrencyExchangeGetCommand";
60
+ export * from "./command/CurrencyExchangeListCommand";
61
+ export * from "./command/CurrencyExchangeUpdateCommand";
62
+ export * from "./command/CurrencyGetCommand";
63
+ export * from "./command/CurrencyListCommand";
64
+ export * from "./command/CurrencyUpdateCommand";
65
+ export * from "./command/ERPAccountCommand";
66
+ export * from "./command/ERPAccountCreateCommand";
67
+ export * from "./command/ERPAccountDeleteCommand";
68
+ export * from "./command/ERPAccountGetCommand";
69
+ export * from "./command/ERPAccountListCommand";
70
+ export * from "./command/ERPAccountUpdateCommand";
71
+ export * from "./command/FiscalYearCommand";
72
+ export * from "./command/FiscalYearCreateCommand";
73
+ export * from "./command/FiscalYearDeleteCommand";
74
+ export * from "./command/FiscalYearGetCommand";
75
+ export * from "./command/FiscalYearListCommand";
76
+ export * from "./command/FiscalYearUpdateCommand";
77
+ export * from "./command/HealthCommand";
78
+ export * from "./command/HealthLivenessCommand";
79
+ export * from "./command/HealthReadinessCommand";
80
+ export * from "./command/HealthzCommand";
81
+ export * from "./command/HealthzGetCommand";
82
+ export * from "./command/JournalEntryCommand";
83
+ export * from "./command/JournalEntryCreateCommand";
84
+ export * from "./command/JournalEntryDeleteCommand";
85
+ export * from "./command/JournalEntryGetCommand";
86
+ export * from "./command/JournalEntryLineCommand";
87
+ export * from "./command/JournalEntryLineGetCommand";
88
+ export * from "./command/JournalEntryLineListCommand";
89
+ export * from "./command/JournalEntryListCommand";
90
+ export * from "./command/JournalEntryUpdateCommand";
91
+ export * from "./command/MetricsCommand";
92
+ export * from "./command/MetricsGetCommand";
93
+ export * from "./command/PartyCommand";
94
+ export * from "./command/PartyCreateCommand";
95
+ export * from "./command/PartyDeleteCommand";
96
+ export * from "./command/PartyGetCommand";
97
+ export * from "./command/PartyListCommand";
98
+ export * from "./command/PartyTypeCommand";
99
+ export * from "./command/PartyTypeCreateCommand";
100
+ export * from "./command/PartyTypeDeleteCommand";
101
+ export * from "./command/PartyTypeGetCommand";
102
+ export * from "./command/PartyTypeListCommand";
103
+ export * from "./command/PartyTypeUpdateCommand";
104
+ export * from "./command/PartyUpdateCommand";
105
+ export * from "./command/ValueCommand";
106
+ export * from "./command/ValueListCommand";
107
+ export * from "./enum/AccountType";
108
+ export * from "./meta/AccountMetaTable";
109
+ export * from "./meta/AccountPartyTypeMetaTable";
110
+ export * from "./meta/BranchMetaTable";
111
+ export * from "./meta/CompanyMetaTable";
112
+ export * from "./meta/CurrencyExchangeMetaTable";
113
+ export * from "./meta/CurrencyMetaTable";
114
+ export * from "./meta/FiscalYearMetaTable";
115
+ export * from "./meta/JournalEntryLineMetaTable";
116
+ export * from "./meta/JournalEntryMetaTable";
117
+ export * from "./meta/NamirasoftErpMetaDatabase";
118
+ export * from "./meta/PartyMetaTable";
119
+ export * from "./meta/PartyTypeMetaTable";
120
+ export * from "./row/AccountInputRow";
121
+ export * from "./row/AccountPartyTypeRow";
122
+ export * from "./row/AccountRow";
123
+ export * from "./row/BranchInputRow";
124
+ export * from "./row/BranchRow";
125
+ export * from "./row/CompanyInputRow";
126
+ export * from "./row/CompanyRow";
127
+ export * from "./row/CurrencyExchangeInputRow";
128
+ export * from "./row/CurrencyExchangeRow";
129
+ export * from "./row/CurrencyInputRow";
130
+ export * from "./row/CurrencyRow";
131
+ export * from "./row/FiscalYearInputRow";
132
+ export * from "./row/FiscalYearRow";
133
+ export * from "./row/JournalEntryInputRow";
134
+ export * from "./row/JournalEntryLineRow";
135
+ export * from "./row/JournalEntryRow";
136
+ export * from "./row/PartyInputRow";
137
+ export * from "./row/PartyRow";
138
+ export * from "./row/PartyTypeInputRow";
139
+ export * from "./row/PartyTypeRow";