namirasoft-cost 1.4.9 → 1.4.10
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/NamirasoftCostServer.js +1 -1
- package/dist/NamirasoftCostServer.js.map +1 -1
- package/dist/NamirasoftCostServerBillWatchAWS.d.ts +2 -2
- package/dist/NamirasoftCostServerBillWatchAWS.js.map +1 -1
- package/dist/NamirasoftCostServerBillWatchAzure.d.ts +2 -2
- package/dist/NamirasoftCostServerBillWatchAzure.js.map +1 -1
- package/dist/NamirasoftCostServerBillWatchGCP.d.ts +2 -2
- package/dist/NamirasoftCostServerBillWatchGCP.js.map +1 -1
- package/package.json +1 -1
- package/src/NamirasoftCostServer.ts +1 -1
- package/src/NamirasoftCostServerBillWatchAWS.ts +2 -2
- package/src/NamirasoftCostServerBillWatchAzure.ts +2 -2
- package/src/NamirasoftCostServerBillWatchGCP.ts +2 -2
@@ -10,7 +10,7 @@ const NamirasoftCostServerHealthz_1 = require("./NamirasoftCostServerHealthz");
|
|
10
10
|
const NamirasoftCostServerValue_1 = require("./NamirasoftCostServerValue");
|
11
11
|
class NamirasoftCostServer extends namirasoft_account_1.NSABaseServer {
|
12
12
|
constructor(base_url, manager, onError) {
|
13
|
-
super(base_url, `1.4.
|
13
|
+
super(base_url, `1.4.10`, manager, onError);
|
14
14
|
this.healthz = new NamirasoftCostServerHealthz_1.NamirasoftCostServerHealthz(this);
|
15
15
|
this.value = new NamirasoftCostServerValue_1.NamirasoftCostServerValue(this);
|
16
16
|
this.bill_watch_a_w_s = new NamirasoftCostServerBillWatchAWS_1.NamirasoftCostServerBillWatchAWS(this);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NamirasoftCostServer.js","sourceRoot":"","sources":["../src/NamirasoftCostServer.ts"],"names":[],"mappings":";;;AAoBA,2DAAmD;AACnD,yFAAsF;AACtF,6FAA0F;AAC1F,yFAAsF;AACtF,yEAAsE;AACtE,+EAA4E;AAC5E,2EAAwE;AAGxE,MAAa,oBAAqB,SAAQ,kCAAa;IAQnD,YAAY,QAAgB,EAAE,OAAqB,EAAE,OAA+B;QAEhF,KAAK,CAAC,QAAQ,EAAE,
|
1
|
+
{"version":3,"file":"NamirasoftCostServer.js","sourceRoot":"","sources":["../src/NamirasoftCostServer.ts"],"names":[],"mappings":";;;AAoBA,2DAAmD;AACnD,yFAAsF;AACtF,6FAA0F;AAC1F,yFAAsF;AACtF,yEAAsE;AACtE,+EAA4E;AAC5E,2EAAwE;AAGxE,MAAa,oBAAqB,SAAQ,kCAAa;IAQnD,YAAY,QAAgB,EAAE,OAAqB,EAAE,OAA+B;QAEhF,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,IAAI,yDAA2B,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,KAAK,GAAG,IAAI,qDAAyB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,gBAAgB,GAAG,IAAI,mEAAgC,CAAC,IAAI,CAAC,CAAC;QACnE,IAAI,CAAC,gBAAgB,GAAG,IAAI,uEAAkC,CAAC,IAAI,CAAC,CAAC;QACrE,IAAI,CAAC,gBAAgB,GAAG,IAAI,mEAAgC,CAAC,IAAI,CAAC,CAAC;QACnE,IAAI,CAAC,IAAI,GAAG,IAAI,mDAAwB,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;CACJ;AAlBD,oDAkBC;AAAA,CAAC"}
|
@@ -6,12 +6,12 @@ import { Period } from "./type/Period";
|
|
6
6
|
export declare class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase {
|
7
7
|
constructor(server: NamirasoftCostServer);
|
8
8
|
Estimation(body: {
|
9
|
-
first_watch_created_at: (
|
9
|
+
first_watch_created_at: (Date | null);
|
10
10
|
period: Period;
|
11
11
|
active: boolean;
|
12
12
|
}): Promise<Estimation>;
|
13
13
|
_CreateFor(user_id: string, body: {
|
14
|
-
first_watch_created_at: (
|
14
|
+
first_watch_created_at: (Date | null);
|
15
15
|
period: Period;
|
16
16
|
active: boolean;
|
17
17
|
workspace_id: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NamirasoftCostServerBillWatchAWS.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAWS.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,yEAAsE;AAGtE,MAAa,gCAAiC,SAAQ,mDAAwB;IAE1E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACK,UAAU,CAAC,
|
1
|
+
{"version":3,"file":"NamirasoftCostServerBillWatchAWS.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAWS.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,yEAAsE;AAGtE,MAAa,gCAAiC,SAAQ,mDAAwB;IAE1E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACK,UAAU,CAAC,IAAgF;;YAE7F,IAAI,IAAI,GAAG,4BAA4B,CAAC;YACxC,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,UAAU,CAAC,OAAe,EAAE,IAA2H;;YAEzJ,IAAI,IAAI,GAAG,qBAAqB,OAAO,sBAAsB,CAAC;YAC9D,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAU,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAChE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,4EAoBC;AAAA,CAAC"}
|
@@ -6,12 +6,12 @@ import { Period } from "./type/Period";
|
|
6
6
|
export declare class NamirasoftCostServerBillWatchAzure extends NamirasoftCostServerBase {
|
7
7
|
constructor(server: NamirasoftCostServer);
|
8
8
|
Estimation(body: {
|
9
|
-
first_watch_created_at: (
|
9
|
+
first_watch_created_at: (Date | null);
|
10
10
|
period: Period;
|
11
11
|
active: boolean;
|
12
12
|
}): Promise<Estimation>;
|
13
13
|
_CreateFor(user_id: string, body: {
|
14
|
-
first_watch_created_at: (
|
14
|
+
first_watch_created_at: (Date | null);
|
15
15
|
period: Period;
|
16
16
|
active: boolean;
|
17
17
|
workspace_id: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NamirasoftCostServerBillWatchAzure.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAzure.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,yEAAsE;AAGtE,MAAa,kCAAmC,SAAQ,mDAAwB;IAE5E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACK,UAAU,CAAC,
|
1
|
+
{"version":3,"file":"NamirasoftCostServerBillWatchAzure.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAzure.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,yEAAsE;AAGtE,MAAa,kCAAmC,SAAQ,mDAAwB;IAE5E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACK,UAAU,CAAC,IAAgF;;YAE7F,IAAI,IAAI,GAAG,8BAA8B,CAAC;YAC1C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,UAAU,CAAC,OAAe,EAAE,IAA2H;;YAEzJ,IAAI,IAAI,GAAG,qBAAqB,OAAO,wBAAwB,CAAC;YAChE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAU,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAChE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,gFAoBC;AAAA,CAAC"}
|
@@ -6,12 +6,12 @@ import { Period } from "./type/Period";
|
|
6
6
|
export declare class NamirasoftCostServerBillWatchGCP extends NamirasoftCostServerBase {
|
7
7
|
constructor(server: NamirasoftCostServer);
|
8
8
|
Estimation(body: {
|
9
|
-
first_watch_created_at: (
|
9
|
+
first_watch_created_at: (Date | null);
|
10
10
|
period: Period;
|
11
11
|
active: boolean;
|
12
12
|
}): Promise<Estimation>;
|
13
13
|
_CreateFor(user_id: string, body: {
|
14
|
-
first_watch_created_at: (
|
14
|
+
first_watch_created_at: (Date | null);
|
15
15
|
period: Period;
|
16
16
|
active: boolean;
|
17
17
|
workspace_id: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NamirasoftCostServerBillWatchGCP.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchGCP.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,yEAAsE;AAGtE,MAAa,gCAAiC,SAAQ,mDAAwB;IAE1E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACK,UAAU,CAAC,
|
1
|
+
{"version":3,"file":"NamirasoftCostServerBillWatchGCP.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchGCP.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,yEAAsE;AAGtE,MAAa,gCAAiC,SAAQ,mDAAwB;IAE1E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACK,UAAU,CAAC,IAAgF;;YAE7F,IAAI,IAAI,GAAG,4BAA4B,CAAC;YACxC,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,UAAU,CAAC,OAAe,EAAE,IAA2H;;YAEzJ,IAAI,IAAI,GAAG,qBAAqB,OAAO,sBAAsB,CAAC;YAC9D,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAU,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAChE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,4EAoBC;AAAA,CAAC"}
|
package/package.json
CHANGED
@@ -37,7 +37,7 @@ export class NamirasoftCostServer extends NSABaseServer
|
|
37
37
|
cost: NamirasoftCostServerCost;
|
38
38
|
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
39
39
|
{
|
40
|
-
super(base_url, `1.4.
|
40
|
+
super(base_url, `1.4.10`, manager, onError);
|
41
41
|
this.healthz = new NamirasoftCostServerHealthz(this);
|
42
42
|
this.value = new NamirasoftCostServerValue(this);
|
43
43
|
this.bill_watch_a_w_s = new NamirasoftCostServerBillWatchAWS(this);
|
@@ -32,13 +32,13 @@ export class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase
|
|
32
32
|
this.Estimation = this.Estimation.bind(this);
|
33
33
|
this._CreateFor = this._CreateFor.bind(this);
|
34
34
|
}
|
35
|
-
async Estimation(body: { first_watch_created_at: (
|
35
|
+
async Estimation(body: { first_watch_created_at: (Date | null), period: Period, active: boolean }): Promise<Estimation>
|
36
36
|
{
|
37
37
|
let path = `/estimation/bill-watch/aws`;
|
38
38
|
let { data } = await this.server._post<Estimation>(path, {}, body);
|
39
39
|
return data;
|
40
40
|
}
|
41
|
-
async _CreateFor(user_id: string, body: { first_watch_created_at: (
|
41
|
+
async _CreateFor(user_id: string, body: { first_watch_created_at: (Date | null), period: Period, active: boolean, workspace_id: string, resource_id: string }): Promise<CostRow>
|
42
42
|
{
|
43
43
|
let path = `/application/user/${user_id}/cost/bill-watch/aws`;
|
44
44
|
let { data } = await this.server._post<CostRow>(path, {}, body);
|
@@ -32,13 +32,13 @@ export class NamirasoftCostServerBillWatchAzure extends NamirasoftCostServerBase
|
|
32
32
|
this.Estimation = this.Estimation.bind(this);
|
33
33
|
this._CreateFor = this._CreateFor.bind(this);
|
34
34
|
}
|
35
|
-
async Estimation(body: { first_watch_created_at: (
|
35
|
+
async Estimation(body: { first_watch_created_at: (Date | null), period: Period, active: boolean }): Promise<Estimation>
|
36
36
|
{
|
37
37
|
let path = `/estimation/bill-watch/azure`;
|
38
38
|
let { data } = await this.server._post<Estimation>(path, {}, body);
|
39
39
|
return data;
|
40
40
|
}
|
41
|
-
async _CreateFor(user_id: string, body: { first_watch_created_at: (
|
41
|
+
async _CreateFor(user_id: string, body: { first_watch_created_at: (Date | null), period: Period, active: boolean, workspace_id: string, resource_id: string }): Promise<CostRow>
|
42
42
|
{
|
43
43
|
let path = `/application/user/${user_id}/cost/bill-watch/azure`;
|
44
44
|
let { data } = await this.server._post<CostRow>(path, {}, body);
|
@@ -32,13 +32,13 @@ export class NamirasoftCostServerBillWatchGCP extends NamirasoftCostServerBase
|
|
32
32
|
this.Estimation = this.Estimation.bind(this);
|
33
33
|
this._CreateFor = this._CreateFor.bind(this);
|
34
34
|
}
|
35
|
-
async Estimation(body: { first_watch_created_at: (
|
35
|
+
async Estimation(body: { first_watch_created_at: (Date | null), period: Period, active: boolean }): Promise<Estimation>
|
36
36
|
{
|
37
37
|
let path = `/estimation/bill-watch/gcp`;
|
38
38
|
let { data } = await this.server._post<Estimation>(path, {}, body);
|
39
39
|
return data;
|
40
40
|
}
|
41
|
-
async _CreateFor(user_id: string, body: { first_watch_created_at: (
|
41
|
+
async _CreateFor(user_id: string, body: { first_watch_created_at: (Date | null), period: Period, active: boolean, workspace_id: string, resource_id: string }): Promise<CostRow>
|
42
42
|
{
|
43
43
|
let path = `/application/user/${user_id}/cost/bill-watch/gcp`;
|
44
44
|
let { data } = await this.server._post<CostRow>(path, {}, body);
|