namirasoft-erp 1.4.2 → 1.4.3
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.js +1 -1
- package/dist/NamirasoftErpServerJournalEntry.d.ts +2 -1
- package/dist/NamirasoftErpServerJournalEntry.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/row/JournalEntryFullRow.d.ts +18 -0
- package/dist/row/JournalEntryFullRow.js +3 -0
- package/dist/row/JournalEntryFullRow.js.map +1 -0
- package/package.json +1 -1
- package/src/NamirasoftErpServer.ts +1 -1
- package/src/NamirasoftErpServerJournalEntry.ts +3 -2
- package/src/index.ts +1 -0
- package/src/row/JournalEntryFullRow.ts +40 -0
|
@@ -19,7 +19,7 @@ const NamirasoftErpServerPartyType_1 = require("./NamirasoftErpServerPartyType")
|
|
|
19
19
|
const NamirasoftErpServerValue_1 = require("./NamirasoftErpServerValue");
|
|
20
20
|
class NamirasoftErpServer extends namirasoft_account_1.NSABaseServer {
|
|
21
21
|
constructor(base_url, token_manager, onError) {
|
|
22
|
-
super(base_url, `1.4.
|
|
22
|
+
super(base_url, `1.4.3`, token_manager, onError);
|
|
23
23
|
this.healthz = new NamirasoftErpServerHealthz_1.NamirasoftErpServerHealthz(this);
|
|
24
24
|
this.health = new NamirasoftErpServerHealth_1.NamirasoftErpServerHealth(this);
|
|
25
25
|
this.metrics = new NamirasoftErpServerMetrics_1.NamirasoftErpServerMetrics(this);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseServerConfig } from "namirasoft-core";
|
|
2
2
|
import { FilterItem } from "namirasoft-core";
|
|
3
|
+
import { JournalEntryFullRow } from "./row/JournalEntryFullRow";
|
|
3
4
|
import { JournalEntryInputRow } from "./row/JournalEntryInputRow";
|
|
4
5
|
import { JournalEntryRow } from "./row/JournalEntryRow";
|
|
5
6
|
import { NamirasoftErpServer } from "./NamirasoftErpServer";
|
|
@@ -11,7 +12,7 @@ export declare class NamirasoftErpServerJournalEntry extends NamirasoftErpServer
|
|
|
11
12
|
rows: JournalEntryRow[];
|
|
12
13
|
count: number;
|
|
13
14
|
}>;
|
|
14
|
-
Get(id: (string | null), config?: BaseServerConfig<any>): Promise<
|
|
15
|
+
Get(id: (string | null), config?: BaseServerConfig<any>): Promise<JournalEntryFullRow>;
|
|
15
16
|
Create(body: JournalEntryInputRow, config?: BaseServerConfig<any>): Promise<JournalEntryRow>;
|
|
16
17
|
Update(id: (string | null), body: JournalEntryInputRow, config?: BaseServerConfig<any>): Promise<JournalEntryRow>;
|
|
17
18
|
Delete(id: (string | null), config?: BaseServerConfig<any>): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftErpServerJournalEntry.js","sourceRoot":"","sources":["../src/NamirasoftErpServerJournalEntry.ts"],"names":[],"mappings":";;;;;;;;;;;;AAqBA,qDAA6C;
|
|
1
|
+
{"version":3,"file":"NamirasoftErpServerJournalEntry.js","sourceRoot":"","sources":["../src/NamirasoftErpServerJournalEntry.ts"],"names":[],"mappings":";;;;;;;;;;;;AAqBA,qDAA6C;AAK7C,uEAAoE;AACpE,qDAA2C;AAE3C,MAAa,+BAAgC,SAAQ,iDAAuB;IAExE,YAAY,MAA2B;QAEnC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG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AC,MAAM,CAAC,IAAI,CAAkB,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;YAC/E,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,EAAmB,EAAE,MAA8B;;YAE5D,IAAI,IAAI,GAAG,kBAAkB,EAAE,EAAE,CAAC;YAClC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAO,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;QACtD,CAAC;KAAA;CACJ;AA1CD,0EA0CC;AAAA,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -111,6 +111,7 @@ export * from "./row/CurrencyInputRow";
|
|
|
111
111
|
export * from "./row/CurrencyRow";
|
|
112
112
|
export * from "./row/FiscalYearInputRow";
|
|
113
113
|
export * from "./row/FiscalYearRow";
|
|
114
|
+
export * from "./row/JournalEntryFullRow";
|
|
114
115
|
export * from "./row/JournalEntryInputRow";
|
|
115
116
|
export * from "./row/JournalEntryLineInputRow";
|
|
116
117
|
export * from "./row/JournalEntryLineRow";
|
package/dist/index.js
CHANGED
|
@@ -127,6 +127,7 @@ __exportStar(require("./row/CurrencyInputRow"), exports);
|
|
|
127
127
|
__exportStar(require("./row/CurrencyRow"), exports);
|
|
128
128
|
__exportStar(require("./row/FiscalYearInputRow"), exports);
|
|
129
129
|
__exportStar(require("./row/FiscalYearRow"), exports);
|
|
130
|
+
__exportStar(require("./row/JournalEntryFullRow"), exports);
|
|
130
131
|
__exportStar(require("./row/JournalEntryInputRow"), exports);
|
|
131
132
|
__exportStar(require("./row/JournalEntryLineInputRow"), exports);
|
|
132
133
|
__exportStar(require("./row/JournalEntryLineRow"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,wDAAsC;AACtC,wEAAsD;AACtD,4DAA0C;AAC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
|
|
|
1
|
+
import { JournalEntryLineRow } from "./JournalEntryLineRow";
|
|
2
|
+
export type JournalEntryFullRow = {
|
|
3
|
+
id: string;
|
|
4
|
+
user_id: string;
|
|
5
|
+
company_id: string;
|
|
6
|
+
branch_id: string;
|
|
7
|
+
fiscal_year_id: string;
|
|
8
|
+
currency_id: string;
|
|
9
|
+
number: string;
|
|
10
|
+
date_time: Date;
|
|
11
|
+
reference_number: (string | null);
|
|
12
|
+
reference_date_time: (Date | null);
|
|
13
|
+
description: (string | null);
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
created_at: Date;
|
|
16
|
+
updated_at: Date;
|
|
17
|
+
lines: JournalEntryLineRow[];
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JournalEntryFullRow.js","sourceRoot":"","sources":["../../src/row/JournalEntryFullRow.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -55,7 +55,7 @@ export class NamirasoftErpServer extends NSABaseServer
|
|
|
55
55
|
journal_entry_line: NamirasoftErpServerJournalEntryLine;
|
|
56
56
|
constructor(base_url: string, token_manager: TokenManager, onError: (error: Error) => void)
|
|
57
57
|
{
|
|
58
|
-
super(base_url, `1.4.
|
|
58
|
+
super(base_url, `1.4.3`, token_manager, onError);
|
|
59
59
|
this.healthz = new NamirasoftErpServerHealthz(this);
|
|
60
60
|
this.health = new NamirasoftErpServerHealth(this);
|
|
61
61
|
this.metrics = new NamirasoftErpServerMetrics(this);
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
import { BaseServerConfig } from "namirasoft-core";
|
|
22
22
|
import { FilterItem } from "namirasoft-core";
|
|
23
|
+
import { JournalEntryFullRow } from "./row/JournalEntryFullRow";
|
|
23
24
|
import { JournalEntryInputRow } from "./row/JournalEntryInputRow";
|
|
24
25
|
import { JournalEntryRow } from "./row/JournalEntryRow";
|
|
25
26
|
import { NamirasoftErpServer } from "./NamirasoftErpServer";
|
|
@@ -45,10 +46,10 @@ export class NamirasoftErpServerJournalEntry extends NamirasoftErpServerBase
|
|
|
45
46
|
let { data } = await this.server._get<{ rows: JournalEntryRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
46
47
|
return data;
|
|
47
48
|
}
|
|
48
|
-
async Get(id: (string | null), config?: BaseServerConfig<any>): Promise<
|
|
49
|
+
async Get(id: (string | null), config?: BaseServerConfig<any>): Promise<JournalEntryFullRow>
|
|
49
50
|
{
|
|
50
51
|
let path = `/journal/entry/${id}`;
|
|
51
|
-
let { data } = await this.server._get<
|
|
52
|
+
let { data } = await this.server._get<JournalEntryFullRow>(path, {}, config);
|
|
52
53
|
return data;
|
|
53
54
|
}
|
|
54
55
|
async Create(body: JournalEntryInputRow, config?: BaseServerConfig<any>): Promise<JournalEntryRow>
|
package/src/index.ts
CHANGED
|
@@ -131,6 +131,7 @@ export * from "./row/CurrencyInputRow";
|
|
|
131
131
|
export * from "./row/CurrencyRow";
|
|
132
132
|
export * from "./row/FiscalYearInputRow";
|
|
133
133
|
export * from "./row/FiscalYearRow";
|
|
134
|
+
export * from "./row/JournalEntryFullRow";
|
|
134
135
|
export * from "./row/JournalEntryInputRow";
|
|
135
136
|
export * from "./row/JournalEntryLineInputRow";
|
|
136
137
|
export * from "./row/JournalEntryLineRow";
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { JournalEntryLineRow } from "./JournalEntryLineRow";
|
|
22
|
+
|
|
23
|
+
export type JournalEntryFullRow =
|
|
24
|
+
{
|
|
25
|
+
id: string;
|
|
26
|
+
user_id: string;
|
|
27
|
+
company_id: string;
|
|
28
|
+
branch_id: string;
|
|
29
|
+
fiscal_year_id: string;
|
|
30
|
+
currency_id: string;
|
|
31
|
+
number: string;
|
|
32
|
+
date_time: Date;
|
|
33
|
+
reference_number: (string | null);
|
|
34
|
+
reference_date_time: (Date | null);
|
|
35
|
+
description: (string | null);
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
created_at: Date;
|
|
38
|
+
updated_at: Date;
|
|
39
|
+
lines: JournalEntryLineRow[];
|
|
40
|
+
}
|