namirasoft-cost 1.4.25 → 1.4.26
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/.ns-sdkg-file-keep +9 -8
- package/dist/NamirasoftCostServerBillWatchAWS.d.ts +2 -2
- package/dist/NamirasoftCostServerBillWatchAWS.js +4 -4
- package/dist/NamirasoftCostServerBillWatchAzure.d.ts +2 -2
- package/dist/NamirasoftCostServerBillWatchAzure.js +4 -4
- package/dist/NamirasoftCostServerBillWatchGCP.d.ts +2 -2
- package/dist/NamirasoftCostServerBillWatchGCP.js +4 -4
- package/dist/NamirasoftCostServerFieldCategory.d.ts +2 -2
- package/dist/NamirasoftCostServerFieldCategory.js +4 -4
- package/dist/NamirasoftCostServerFieldField.d.ts +2 -2
- package/dist/NamirasoftCostServerFieldField.js +4 -4
- package/dist/NamirasoftCostServerSecretSecret.d.ts +2 -2
- package/dist/NamirasoftCostServerSecretSecret.js +4 -4
- package/dist/index.d.ts +1 -29
- package/dist/index.js +1 -29
- package/dist/index.js.map +1 -1
- package/dist/type/Bonus.d.ts +9 -0
- package/dist/type/Bonus.js +16 -0
- package/dist/type/Bonus.js.map +1 -0
- package/dist/type/Estimation.d.ts +4 -0
- package/dist/type/Estimation.js +22 -0
- package/dist/type/Estimation.js.map +1 -1
- package/dist/type/EstimationOption.d.ts +4 -0
- package/dist/type/EstimationOption.js +20 -0
- package/dist/type/EstimationOption.js.map +1 -1
- package/dist/type/EstimationUsage.d.ts +4 -0
- package/dist/type/EstimationUsage.js +15 -0
- package/dist/type/EstimationUsage.js.map +1 -1
- package/dist/type/Period.d.ts +4 -0
- package/dist/type/Period.js +27 -4
- package/dist/type/Period.js.map +1 -1
- package/package.json +4 -3
- package/src/NamirasoftCostServerBillWatchAWS.ts +4 -4
- package/src/NamirasoftCostServerBillWatchAzure.ts +4 -4
- package/src/NamirasoftCostServerBillWatchGCP.ts +4 -4
- package/src/NamirasoftCostServerFieldCategory.ts +4 -4
- package/src/NamirasoftCostServerFieldField.ts +4 -4
- package/src/NamirasoftCostServerSecretSecret.ts +4 -4
- package/src/index.ts +1 -29
- package/src/type/Bonus.ts +21 -0
- package/src/type/Estimation.ts +24 -3
- package/src/type/EstimationOption.ts +22 -2
- package/src/type/EstimationUsage.ts +18 -1
- package/src/type/Period.ts +27 -3
- package/dist/command/BillWatchAWSCommand.d.ts +0 -4
- package/dist/command/BillWatchAWSCommand.js +0 -17
- package/dist/command/BillWatchAWSCommand.js.map +0 -1
- package/dist/command/BillWatchAWSEstimateHourlyCommand.d.ts +0 -5
- package/dist/command/BillWatchAWSEstimateHourlyCommand.js +0 -76
- package/dist/command/BillWatchAWSEstimateHourlyCommand.js.map +0 -1
- package/dist/command/BillWatchAWS_CreateForHourlyCommand.d.ts +0 -5
- package/dist/command/BillWatchAWS_CreateForHourlyCommand.js +0 -94
- package/dist/command/BillWatchAWS_CreateForHourlyCommand.js.map +0 -1
- package/dist/command/BillWatchAzureCommand.d.ts +0 -4
- package/dist/command/BillWatchAzureCommand.js +0 -17
- package/dist/command/BillWatchAzureCommand.js.map +0 -1
- package/dist/command/BillWatchAzureEstimateHourlyCommand.d.ts +0 -5
- package/dist/command/BillWatchAzureEstimateHourlyCommand.js +0 -76
- package/dist/command/BillWatchAzureEstimateHourlyCommand.js.map +0 -1
- package/dist/command/BillWatchAzure_CreateForHourlyCommand.d.ts +0 -5
- package/dist/command/BillWatchAzure_CreateForHourlyCommand.js +0 -94
- package/dist/command/BillWatchAzure_CreateForHourlyCommand.js.map +0 -1
- package/dist/command/BillWatchGCPCommand.d.ts +0 -4
- package/dist/command/BillWatchGCPCommand.js +0 -17
- package/dist/command/BillWatchGCPCommand.js.map +0 -1
- package/dist/command/BillWatchGCPEstimateHourlyCommand.d.ts +0 -5
- package/dist/command/BillWatchGCPEstimateHourlyCommand.js +0 -76
- package/dist/command/BillWatchGCPEstimateHourlyCommand.js.map +0 -1
- package/dist/command/BillWatchGCP_CreateForHourlyCommand.d.ts +0 -5
- package/dist/command/BillWatchGCP_CreateForHourlyCommand.js +0 -94
- package/dist/command/BillWatchGCP_CreateForHourlyCommand.js.map +0 -1
- package/dist/command/CostCommand.d.ts +0 -4
- package/dist/command/CostCommand.js +0 -17
- package/dist/command/CostCommand.js.map +0 -1
- package/dist/command/CostListCommand.d.ts +0 -5
- package/dist/command/CostListCommand.js +0 -38
- package/dist/command/CostListCommand.js.map +0 -1
- package/dist/command/Cost_CreateForCommand.d.ts +0 -5
- package/dist/command/Cost_CreateForCommand.js +0 -175
- package/dist/command/Cost_CreateForCommand.js.map +0 -1
- package/dist/command/FieldCategoryCommand.d.ts +0 -4
- package/dist/command/FieldCategoryCommand.js +0 -17
- package/dist/command/FieldCategoryCommand.js.map +0 -1
- package/dist/command/FieldCategoryEstimateHourlyCommand.d.ts +0 -5
- package/dist/command/FieldCategoryEstimateHourlyCommand.js +0 -76
- package/dist/command/FieldCategoryEstimateHourlyCommand.js.map +0 -1
- package/dist/command/FieldCategory_CreateForHourlyCommand.d.ts +0 -5
- package/dist/command/FieldCategory_CreateForHourlyCommand.js +0 -94
- package/dist/command/FieldCategory_CreateForHourlyCommand.js.map +0 -1
- package/dist/command/FieldFieldCommand.d.ts +0 -4
- package/dist/command/FieldFieldCommand.js +0 -17
- package/dist/command/FieldFieldCommand.js.map +0 -1
- package/dist/command/FieldFieldEstimateHourlyCommand.d.ts +0 -5
- package/dist/command/FieldFieldEstimateHourlyCommand.js +0 -76
- package/dist/command/FieldFieldEstimateHourlyCommand.js.map +0 -1
- package/dist/command/FieldField_CreateForHourlyCommand.d.ts +0 -5
- package/dist/command/FieldField_CreateForHourlyCommand.js +0 -94
- package/dist/command/FieldField_CreateForHourlyCommand.js.map +0 -1
- package/dist/command/HealthzCommand.d.ts +0 -4
- package/dist/command/HealthzCommand.js +0 -15
- package/dist/command/HealthzCommand.js.map +0 -1
- package/dist/command/HealthzGetCommand.d.ts +0 -5
- package/dist/command/HealthzGetCommand.js +0 -38
- package/dist/command/HealthzGetCommand.js.map +0 -1
- package/dist/command/MetricsCommand.d.ts +0 -4
- package/dist/command/MetricsCommand.js +0 -15
- package/dist/command/MetricsCommand.js.map +0 -1
- package/dist/command/MetricsGetCommand.d.ts +0 -5
- package/dist/command/MetricsGetCommand.js +0 -38
- package/dist/command/MetricsGetCommand.js.map +0 -1
- package/dist/command/SecretSecretCommand.d.ts +0 -4
- package/dist/command/SecretSecretCommand.js +0 -21
- package/dist/command/SecretSecretCommand.js.map +0 -1
- package/dist/command/SecretSecretEstimateHourlyCommand.d.ts +0 -5
- package/dist/command/SecretSecretEstimateHourlyCommand.js +0 -76
- package/dist/command/SecretSecretEstimateHourlyCommand.js.map +0 -1
- package/dist/command/SecretSecretEstimateReadCommand.d.ts +0 -5
- package/dist/command/SecretSecretEstimateReadCommand.js +0 -76
- package/dist/command/SecretSecretEstimateReadCommand.js.map +0 -1
- package/dist/command/SecretSecret_CreateForHourlyCommand.d.ts +0 -5
- package/dist/command/SecretSecret_CreateForHourlyCommand.js +0 -94
- package/dist/command/SecretSecret_CreateForHourlyCommand.js.map +0 -1
- package/dist/command/SecretSecret_CreateForReadCommand.d.ts +0 -5
- package/dist/command/SecretSecret_CreateForReadCommand.js +0 -94
- package/dist/command/SecretSecret_CreateForReadCommand.js.map +0 -1
- package/dist/command/ValueCommand.d.ts +0 -4
- package/dist/command/ValueCommand.js +0 -15
- package/dist/command/ValueCommand.js.map +0 -1
- package/dist/command/ValueListCommand.d.ts +0 -5
- package/dist/command/ValueListCommand.js +0 -38
- package/dist/command/ValueListCommand.js.map +0 -1
- package/dist/command/cli.d.ts +0 -2
- package/dist/command/cli.js +0 -32
- package/dist/command/cli.js.map +0 -1
- package/dist/estimator/BillWatchAWSEstimator.d.ts +0 -3
- package/dist/estimator/BillWatchAWSEstimator.js +0 -8
- package/dist/estimator/BillWatchAWSEstimator.js.map +0 -1
- package/dist/estimator/BillWatchAWSHourlyEstimator.d.ts +0 -3
- package/dist/estimator/BillWatchAWSHourlyEstimator.js +0 -8
- package/dist/estimator/BillWatchAWSHourlyEstimator.js.map +0 -1
- package/dist/estimator/BillWatchAzureEstimator.d.ts +0 -3
- package/dist/estimator/BillWatchAzureEstimator.js +0 -8
- package/dist/estimator/BillWatchAzureEstimator.js.map +0 -1
- package/dist/estimator/BillWatchAzureHourlyEstimator.d.ts +0 -3
- package/dist/estimator/BillWatchAzureHourlyEstimator.js +0 -8
- package/dist/estimator/BillWatchAzureHourlyEstimator.js.map +0 -1
- package/dist/estimator/BillWatchBaseEstimator.d.ts +0 -14
- package/dist/estimator/BillWatchBaseEstimator.js +0 -26
- package/dist/estimator/BillWatchBaseEstimator.js.map +0 -1
- package/dist/estimator/BillWatchBaseHourlyEstimator.d.ts +0 -14
- package/dist/estimator/BillWatchBaseHourlyEstimator.js +0 -26
- package/dist/estimator/BillWatchBaseHourlyEstimator.js.map +0 -1
- package/dist/estimator/BillWatchGCPEstimator.d.ts +0 -3
- package/dist/estimator/BillWatchGCPEstimator.js +0 -8
- package/dist/estimator/BillWatchGCPEstimator.js.map +0 -1
- package/dist/estimator/BillWatchGCPHourlyEstimator.d.ts +0 -3
- package/dist/estimator/BillWatchGCPHourlyEstimator.js +0 -8
- package/dist/estimator/BillWatchGCPHourlyEstimator.js.map +0 -1
- package/dist/estimator/FieldBaseEstimator.d.ts +0 -9
- package/dist/estimator/FieldBaseEstimator.js +0 -22
- package/dist/estimator/FieldBaseEstimator.js.map +0 -1
- package/dist/estimator/FieldBaseHourlyEstimator.d.ts +0 -9
- package/dist/estimator/FieldBaseHourlyEstimator.js +0 -22
- package/dist/estimator/FieldBaseHourlyEstimator.js.map +0 -1
- package/dist/estimator/FieldCategoryEstimator.d.ts +0 -8
- package/dist/estimator/FieldCategoryEstimator.js +0 -12
- package/dist/estimator/FieldCategoryEstimator.js.map +0 -1
- package/dist/estimator/FieldCategoryHourlyEstimator.d.ts +0 -8
- package/dist/estimator/FieldCategoryHourlyEstimator.js +0 -12
- package/dist/estimator/FieldCategoryHourlyEstimator.js.map +0 -1
- package/dist/estimator/FieldFieldEstimator.d.ts +0 -8
- package/dist/estimator/FieldFieldEstimator.js +0 -12
- package/dist/estimator/FieldFieldEstimator.js.map +0 -1
- package/dist/estimator/FieldFieldHourlyEstimator.d.ts +0 -8
- package/dist/estimator/FieldFieldHourlyEstimator.js +0 -12
- package/dist/estimator/FieldFieldHourlyEstimator.js.map +0 -1
- package/dist/estimator/SecretSecretEstimator.d.ts +0 -14
- package/dist/estimator/SecretSecretEstimator.js +0 -25
- package/dist/estimator/SecretSecretEstimator.js.map +0 -1
- package/dist/estimator/SecretSecretHourlyEstimator.d.ts +0 -14
- package/dist/estimator/SecretSecretHourlyEstimator.js +0 -25
- package/dist/estimator/SecretSecretHourlyEstimator.js.map +0 -1
- package/src/command/BillWatchAWSCommand.ts +0 -34
- package/src/command/BillWatchAWSEstimateHourlyCommand.ts +0 -83
- package/src/command/BillWatchAWS_CreateForHourlyCommand.ts +0 -101
- package/src/command/BillWatchAzureCommand.ts +0 -34
- package/src/command/BillWatchAzureEstimateHourlyCommand.ts +0 -83
- package/src/command/BillWatchAzure_CreateForHourlyCommand.ts +0 -101
- package/src/command/BillWatchGCPCommand.ts +0 -34
- package/src/command/BillWatchGCPEstimateHourlyCommand.ts +0 -83
- package/src/command/BillWatchGCP_CreateForHourlyCommand.ts +0 -101
- package/src/command/CostCommand.ts +0 -34
- package/src/command/CostListCommand.ts +0 -45
- package/src/command/Cost_CreateForCommand.ts +0 -182
- package/src/command/FieldCategoryCommand.ts +0 -34
- package/src/command/FieldCategoryEstimateHourlyCommand.ts +0 -83
- package/src/command/FieldCategory_CreateForHourlyCommand.ts +0 -101
- package/src/command/FieldFieldCommand.ts +0 -34
- package/src/command/FieldFieldEstimateHourlyCommand.ts +0 -83
- package/src/command/FieldField_CreateForHourlyCommand.ts +0 -101
- package/src/command/HealthzCommand.ts +0 -32
- package/src/command/HealthzGetCommand.ts +0 -45
- package/src/command/MetricsCommand.ts +0 -32
- package/src/command/MetricsGetCommand.ts +0 -45
- package/src/command/SecretSecretCommand.ts +0 -38
- package/src/command/SecretSecretEstimateHourlyCommand.ts +0 -83
- package/src/command/SecretSecretEstimateReadCommand.ts +0 -83
- package/src/command/SecretSecret_CreateForHourlyCommand.ts +0 -101
- package/src/command/SecretSecret_CreateForReadCommand.ts +0 -101
- package/src/command/ValueCommand.ts +0 -32
- package/src/command/ValueListCommand.ts +0 -45
- package/src/command/cli.ts +0 -51
package/.ns-sdkg-file-keep
CHANGED
@@ -8,15 +8,16 @@ src/bonus/LowTotalCountBonus.ts
|
|
8
8
|
src/bonus/LowTotalValueBonus.ts
|
9
9
|
src/bonus/TrialBonus.ts
|
10
10
|
src/bonus/BaseEstimator.ts
|
11
|
-
src/bonus/
|
12
|
-
src/bonus/
|
13
|
-
src/bonus/
|
14
|
-
src/bonus/
|
15
|
-
src/bonus/
|
16
|
-
src/bonus/
|
17
|
-
src/bonus/
|
18
|
-
src/bonus/
|
11
|
+
src/bonus/BillWatchAWSRecordEstimator.ts
|
12
|
+
src/bonus/BillWatchAzureRecordEstimator.ts
|
13
|
+
src/bonus/BillWatchBaseEstimator.ts
|
14
|
+
src/bonus/BillWatchGCPRecordEstimator.ts
|
15
|
+
src/bonus/FieldBaseEstimator.ts
|
16
|
+
src/bonus/FieldCategoryRecordEstimator.ts
|
17
|
+
src/bonus/FieldFieldRecordEstimator.ts
|
18
|
+
src/bonus/SecretSecretRecordEstimator.ts
|
19
19
|
src/bonus/SecretSecretReadEstimator.ts
|
20
|
+
src/type/Bonus.ts
|
20
21
|
src/type/Estimation.ts
|
21
22
|
src/type/EstimationOption.ts
|
22
23
|
src/type/EstimationUsage.ts
|
@@ -5,13 +5,13 @@ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
|
5
5
|
import { Period } from "./type/Period";
|
6
6
|
export declare class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase {
|
7
7
|
constructor(server: NamirasoftCostServer);
|
8
|
-
|
8
|
+
EstimateRecord(body: {
|
9
9
|
first_entity_created_at: (Date | null);
|
10
10
|
period: Period;
|
11
11
|
row_number: number;
|
12
12
|
active: boolean;
|
13
13
|
}): Promise<Estimation>;
|
14
|
-
|
14
|
+
_CreateForRecord(user_id: string, body: {
|
15
15
|
first_entity_created_at: (Date | null);
|
16
16
|
period: Period;
|
17
17
|
row_number: number;
|
@@ -14,17 +14,17 @@ const NamirasoftCostServerBase_1 = require("./NamirasoftCostServerBase");
|
|
14
14
|
class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase_1.NamirasoftCostServerBase {
|
15
15
|
constructor(server) {
|
16
16
|
super(server);
|
17
|
-
this.
|
18
|
-
this.
|
17
|
+
this.EstimateRecord = this.EstimateRecord.bind(this);
|
18
|
+
this._CreateForRecord = this._CreateForRecord.bind(this);
|
19
19
|
}
|
20
|
-
|
20
|
+
EstimateRecord(body) {
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
22
|
let path = `/estimation/bill-watch/aws/hourly`;
|
23
23
|
let { data } = yield this.server._post(path, {}, body);
|
24
24
|
return data;
|
25
25
|
});
|
26
26
|
}
|
27
|
-
|
27
|
+
_CreateForRecord(user_id, body) {
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
29
29
|
let path = `/application/user/${user_id}/cost/bill-watch/aws/hourly`;
|
30
30
|
let { data } = yield this.server._post(path, {}, body);
|
@@ -5,13 +5,13 @@ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
|
5
5
|
import { Period } from "./type/Period";
|
6
6
|
export declare class NamirasoftCostServerBillWatchAzure extends NamirasoftCostServerBase {
|
7
7
|
constructor(server: NamirasoftCostServer);
|
8
|
-
|
8
|
+
EstimateRecord(body: {
|
9
9
|
first_entity_created_at: (Date | null);
|
10
10
|
period: Period;
|
11
11
|
row_number: number;
|
12
12
|
active: boolean;
|
13
13
|
}): Promise<Estimation>;
|
14
|
-
|
14
|
+
_CreateForRecord(user_id: string, body: {
|
15
15
|
first_entity_created_at: (Date | null);
|
16
16
|
period: Period;
|
17
17
|
row_number: number;
|
@@ -14,17 +14,17 @@ const NamirasoftCostServerBase_1 = require("./NamirasoftCostServerBase");
|
|
14
14
|
class NamirasoftCostServerBillWatchAzure extends NamirasoftCostServerBase_1.NamirasoftCostServerBase {
|
15
15
|
constructor(server) {
|
16
16
|
super(server);
|
17
|
-
this.
|
18
|
-
this.
|
17
|
+
this.EstimateRecord = this.EstimateRecord.bind(this);
|
18
|
+
this._CreateForRecord = this._CreateForRecord.bind(this);
|
19
19
|
}
|
20
|
-
|
20
|
+
EstimateRecord(body) {
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
22
|
let path = `/estimation/bill-watch/azure/hourly`;
|
23
23
|
let { data } = yield this.server._post(path, {}, body);
|
24
24
|
return data;
|
25
25
|
});
|
26
26
|
}
|
27
|
-
|
27
|
+
_CreateForRecord(user_id, body) {
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
29
29
|
let path = `/application/user/${user_id}/cost/bill-watch/azure/hourly`;
|
30
30
|
let { data } = yield this.server._post(path, {}, body);
|
@@ -5,13 +5,13 @@ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
|
5
5
|
import { Period } from "./type/Period";
|
6
6
|
export declare class NamirasoftCostServerBillWatchGCP extends NamirasoftCostServerBase {
|
7
7
|
constructor(server: NamirasoftCostServer);
|
8
|
-
|
8
|
+
EstimateRecord(body: {
|
9
9
|
first_entity_created_at: (Date | null);
|
10
10
|
period: Period;
|
11
11
|
row_number: number;
|
12
12
|
active: boolean;
|
13
13
|
}): Promise<Estimation>;
|
14
|
-
|
14
|
+
_CreateForRecord(user_id: string, body: {
|
15
15
|
first_entity_created_at: (Date | null);
|
16
16
|
period: Period;
|
17
17
|
row_number: number;
|
@@ -14,17 +14,17 @@ const NamirasoftCostServerBase_1 = require("./NamirasoftCostServerBase");
|
|
14
14
|
class NamirasoftCostServerBillWatchGCP extends NamirasoftCostServerBase_1.NamirasoftCostServerBase {
|
15
15
|
constructor(server) {
|
16
16
|
super(server);
|
17
|
-
this.
|
18
|
-
this.
|
17
|
+
this.EstimateRecord = this.EstimateRecord.bind(this);
|
18
|
+
this._CreateForRecord = this._CreateForRecord.bind(this);
|
19
19
|
}
|
20
|
-
|
20
|
+
EstimateRecord(body) {
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
22
|
let path = `/estimation/bill-watch/gcp/hourly`;
|
23
23
|
let { data } = yield this.server._post(path, {}, body);
|
24
24
|
return data;
|
25
25
|
});
|
26
26
|
}
|
27
|
-
|
27
|
+
_CreateForRecord(user_id, body) {
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
29
29
|
let path = `/application/user/${user_id}/cost/bill-watch/gcp/hourly`;
|
30
30
|
let { data } = yield this.server._post(path, {}, body);
|
@@ -5,13 +5,13 @@ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
|
5
5
|
import { Period } from "./type/Period";
|
6
6
|
export declare class NamirasoftCostServerFieldCategory extends NamirasoftCostServerBase {
|
7
7
|
constructor(server: NamirasoftCostServer);
|
8
|
-
|
8
|
+
EstimateRecord(body: {
|
9
9
|
first_entity_created_at: (Date | null);
|
10
10
|
period: Period;
|
11
11
|
row_number: number;
|
12
12
|
active: boolean;
|
13
13
|
}): Promise<Estimation>;
|
14
|
-
|
14
|
+
_CreateForRecord(user_id: string, body: {
|
15
15
|
first_entity_created_at: (Date | null);
|
16
16
|
period: Period;
|
17
17
|
row_number: number;
|
@@ -14,17 +14,17 @@ const NamirasoftCostServerBase_1 = require("./NamirasoftCostServerBase");
|
|
14
14
|
class NamirasoftCostServerFieldCategory extends NamirasoftCostServerBase_1.NamirasoftCostServerBase {
|
15
15
|
constructor(server) {
|
16
16
|
super(server);
|
17
|
-
this.
|
18
|
-
this.
|
17
|
+
this.EstimateRecord = this.EstimateRecord.bind(this);
|
18
|
+
this._CreateForRecord = this._CreateForRecord.bind(this);
|
19
19
|
}
|
20
|
-
|
20
|
+
EstimateRecord(body) {
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
22
|
let path = `/estimation/field/category/hourly`;
|
23
23
|
let { data } = yield this.server._post(path, {}, body);
|
24
24
|
return data;
|
25
25
|
});
|
26
26
|
}
|
27
|
-
|
27
|
+
_CreateForRecord(user_id, body) {
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
29
29
|
let path = `/application/user/${user_id}/cost/field/category/hourly`;
|
30
30
|
let { data } = yield this.server._post(path, {}, body);
|
@@ -5,13 +5,13 @@ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
|
5
5
|
import { Period } from "./type/Period";
|
6
6
|
export declare class NamirasoftCostServerFieldField extends NamirasoftCostServerBase {
|
7
7
|
constructor(server: NamirasoftCostServer);
|
8
|
-
|
8
|
+
EstimateRecord(body: {
|
9
9
|
first_entity_created_at: (Date | null);
|
10
10
|
period: Period;
|
11
11
|
row_number: number;
|
12
12
|
active: boolean;
|
13
13
|
}): Promise<Estimation>;
|
14
|
-
|
14
|
+
_CreateForRecord(user_id: string, body: {
|
15
15
|
first_entity_created_at: (Date | null);
|
16
16
|
period: Period;
|
17
17
|
row_number: number;
|
@@ -14,17 +14,17 @@ const NamirasoftCostServerBase_1 = require("./NamirasoftCostServerBase");
|
|
14
14
|
class NamirasoftCostServerFieldField extends NamirasoftCostServerBase_1.NamirasoftCostServerBase {
|
15
15
|
constructor(server) {
|
16
16
|
super(server);
|
17
|
-
this.
|
18
|
-
this.
|
17
|
+
this.EstimateRecord = this.EstimateRecord.bind(this);
|
18
|
+
this._CreateForRecord = this._CreateForRecord.bind(this);
|
19
19
|
}
|
20
|
-
|
20
|
+
EstimateRecord(body) {
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
22
|
let path = `/estimation/field/field/hourly`;
|
23
23
|
let { data } = yield this.server._post(path, {}, body);
|
24
24
|
return data;
|
25
25
|
});
|
26
26
|
}
|
27
|
-
|
27
|
+
_CreateForRecord(user_id, body) {
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
29
29
|
let path = `/application/user/${user_id}/cost/field/field/hourly`;
|
30
30
|
let { data } = yield this.server._post(path, {}, body);
|
@@ -5,13 +5,13 @@ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
|
5
5
|
import { Period } from "./type/Period";
|
6
6
|
export declare class NamirasoftCostServerSecretSecret extends NamirasoftCostServerBase {
|
7
7
|
constructor(server: NamirasoftCostServer);
|
8
|
-
|
8
|
+
EstimateRecord(body: {
|
9
9
|
first_entity_created_at: (Date | null);
|
10
10
|
period: Period;
|
11
11
|
row_number: number;
|
12
12
|
active: boolean;
|
13
13
|
}): Promise<Estimation>;
|
14
|
-
|
14
|
+
_CreateForRecord(user_id: string, body: {
|
15
15
|
first_entity_created_at: (Date | null);
|
16
16
|
period: Period;
|
17
17
|
row_number: number;
|
@@ -14,19 +14,19 @@ const NamirasoftCostServerBase_1 = require("./NamirasoftCostServerBase");
|
|
14
14
|
class NamirasoftCostServerSecretSecret extends NamirasoftCostServerBase_1.NamirasoftCostServerBase {
|
15
15
|
constructor(server) {
|
16
16
|
super(server);
|
17
|
-
this.
|
18
|
-
this.
|
17
|
+
this.EstimateRecord = this.EstimateRecord.bind(this);
|
18
|
+
this._CreateForRecord = this._CreateForRecord.bind(this);
|
19
19
|
this.EstimateRead = this.EstimateRead.bind(this);
|
20
20
|
this._CreateForRead = this._CreateForRead.bind(this);
|
21
21
|
}
|
22
|
-
|
22
|
+
EstimateRecord(body) {
|
23
23
|
return __awaiter(this, void 0, void 0, function* () {
|
24
24
|
let path = `/estimation/secret/secret/hourly`;
|
25
25
|
let { data } = yield this.server._post(path, {}, body);
|
26
26
|
return data;
|
27
27
|
});
|
28
28
|
}
|
29
|
-
|
29
|
+
_CreateForRecord(user_id, body) {
|
30
30
|
return __awaiter(this, void 0, void 0, function* () {
|
31
31
|
let path = `/application/user/${user_id}/cost/secret/secret/hourly`;
|
32
32
|
let { data } = yield this.server._post(path, {}, body);
|
package/dist/index.d.ts
CHANGED
@@ -21,39 +21,11 @@ export * from "./NamirasoftCostServerHealthz";
|
|
21
21
|
export * from "./NamirasoftCostServerMetrics";
|
22
22
|
export * from "./NamirasoftCostServerSecretSecret";
|
23
23
|
export * from "./NamirasoftCostServerValue";
|
24
|
-
export * from "./command/BillWatchAWSCommand";
|
25
|
-
export * from "./command/BillWatchAWSEstimateHourlyCommand";
|
26
|
-
export * from "./command/BillWatchAWS_CreateForHourlyCommand";
|
27
|
-
export * from "./command/BillWatchAzureCommand";
|
28
|
-
export * from "./command/BillWatchAzureEstimateHourlyCommand";
|
29
|
-
export * from "./command/BillWatchAzure_CreateForHourlyCommand";
|
30
|
-
export * from "./command/BillWatchGCPCommand";
|
31
|
-
export * from "./command/BillWatchGCPEstimateHourlyCommand";
|
32
|
-
export * from "./command/BillWatchGCP_CreateForHourlyCommand";
|
33
|
-
export * from "./command/CostCommand";
|
34
|
-
export * from "./command/CostListCommand";
|
35
|
-
export * from "./command/Cost_CreateForCommand";
|
36
|
-
export * from "./command/FieldCategoryCommand";
|
37
|
-
export * from "./command/FieldCategoryEstimateHourlyCommand";
|
38
|
-
export * from "./command/FieldCategory_CreateForHourlyCommand";
|
39
|
-
export * from "./command/FieldFieldCommand";
|
40
|
-
export * from "./command/FieldFieldEstimateHourlyCommand";
|
41
|
-
export * from "./command/FieldField_CreateForHourlyCommand";
|
42
|
-
export * from "./command/HealthzCommand";
|
43
|
-
export * from "./command/HealthzGetCommand";
|
44
|
-
export * from "./command/MetricsCommand";
|
45
|
-
export * from "./command/MetricsGetCommand";
|
46
|
-
export * from "./command/SecretSecretCommand";
|
47
|
-
export * from "./command/SecretSecretEstimateHourlyCommand";
|
48
|
-
export * from "./command/SecretSecretEstimateReadCommand";
|
49
|
-
export * from "./command/SecretSecret_CreateForHourlyCommand";
|
50
|
-
export * from "./command/SecretSecret_CreateForReadCommand";
|
51
|
-
export * from "./command/ValueCommand";
|
52
|
-
export * from "./command/ValueListCommand";
|
53
24
|
export * from "./meta/CostMetaTable";
|
54
25
|
export * from "./meta/NamirasoftCostMetaDatabase";
|
55
26
|
export * from "./row/CostCreateRow";
|
56
27
|
export * from "./row/CostRow";
|
28
|
+
export * from "./type/Bonus";
|
57
29
|
export * from "./type/Estimation";
|
58
30
|
export * from "./type/EstimationOption";
|
59
31
|
export * from "./type/EstimationUsage";
|
package/dist/index.js
CHANGED
@@ -37,39 +37,11 @@ __exportStar(require("./NamirasoftCostServerHealthz"), exports);
|
|
37
37
|
__exportStar(require("./NamirasoftCostServerMetrics"), exports);
|
38
38
|
__exportStar(require("./NamirasoftCostServerSecretSecret"), exports);
|
39
39
|
__exportStar(require("./NamirasoftCostServerValue"), exports);
|
40
|
-
__exportStar(require("./command/BillWatchAWSCommand"), exports);
|
41
|
-
__exportStar(require("./command/BillWatchAWSEstimateHourlyCommand"), exports);
|
42
|
-
__exportStar(require("./command/BillWatchAWS_CreateForHourlyCommand"), exports);
|
43
|
-
__exportStar(require("./command/BillWatchAzureCommand"), exports);
|
44
|
-
__exportStar(require("./command/BillWatchAzureEstimateHourlyCommand"), exports);
|
45
|
-
__exportStar(require("./command/BillWatchAzure_CreateForHourlyCommand"), exports);
|
46
|
-
__exportStar(require("./command/BillWatchGCPCommand"), exports);
|
47
|
-
__exportStar(require("./command/BillWatchGCPEstimateHourlyCommand"), exports);
|
48
|
-
__exportStar(require("./command/BillWatchGCP_CreateForHourlyCommand"), exports);
|
49
|
-
__exportStar(require("./command/CostCommand"), exports);
|
50
|
-
__exportStar(require("./command/CostListCommand"), exports);
|
51
|
-
__exportStar(require("./command/Cost_CreateForCommand"), exports);
|
52
|
-
__exportStar(require("./command/FieldCategoryCommand"), exports);
|
53
|
-
__exportStar(require("./command/FieldCategoryEstimateHourlyCommand"), exports);
|
54
|
-
__exportStar(require("./command/FieldCategory_CreateForHourlyCommand"), exports);
|
55
|
-
__exportStar(require("./command/FieldFieldCommand"), exports);
|
56
|
-
__exportStar(require("./command/FieldFieldEstimateHourlyCommand"), exports);
|
57
|
-
__exportStar(require("./command/FieldField_CreateForHourlyCommand"), exports);
|
58
|
-
__exportStar(require("./command/HealthzCommand"), exports);
|
59
|
-
__exportStar(require("./command/HealthzGetCommand"), exports);
|
60
|
-
__exportStar(require("./command/MetricsCommand"), exports);
|
61
|
-
__exportStar(require("./command/MetricsGetCommand"), exports);
|
62
|
-
__exportStar(require("./command/SecretSecretCommand"), exports);
|
63
|
-
__exportStar(require("./command/SecretSecretEstimateHourlyCommand"), exports);
|
64
|
-
__exportStar(require("./command/SecretSecretEstimateReadCommand"), exports);
|
65
|
-
__exportStar(require("./command/SecretSecret_CreateForHourlyCommand"), exports);
|
66
|
-
__exportStar(require("./command/SecretSecret_CreateForReadCommand"), exports);
|
67
|
-
__exportStar(require("./command/ValueCommand"), exports);
|
68
|
-
__exportStar(require("./command/ValueListCommand"), exports);
|
69
40
|
__exportStar(require("./meta/CostMetaTable"), exports);
|
70
41
|
__exportStar(require("./meta/NamirasoftCostMetaDatabase"), exports);
|
71
42
|
__exportStar(require("./row/CostCreateRow"), exports);
|
72
43
|
__exportStar(require("./row/CostRow"), exports);
|
44
|
+
__exportStar(require("./type/Bonus"), exports);
|
73
45
|
__exportStar(require("./type/Estimation"), exports);
|
74
46
|
__exportStar(require("./type/EstimationOption"), exports);
|
75
47
|
__exportStar(require("./type/EstimationUsage"), exports);
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,oDAAkC;AAClC,4DAA0C;AAC1C,0EAAwD;AACxD,4EAA0D;AAC1D,2EAAyD;AACzD,0EAAwD;AACxD,uEAAqD;AACrD,2EAAyD;AACzD,wEAAsD;AACtD,0EAAwD;AACxD,wEAAsD;AACtD,yDAAuC;AACvC,6DAA2C;AAC3C,qEAAmD;AACnD,uEAAqD;AACrD,qEAAmD;AACnD,6DAA2C;AAC3C,sEAAoD;AACpD,mEAAiD;AACjD,gEAA8C;AAC9C,gEAA8C;AAC9C,qEAAmD;AACnD,8DAA4C;AAC5C,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,oDAAkC;AAClC,4DAA0C;AAC1C,0EAAwD;AACxD,4EAA0D;AAC1D,2EAAyD;AACzD,0EAAwD;AACxD,uEAAqD;AACrD,2EAAyD;AACzD,wEAAsD;AACtD,0EAAwD;AACxD,wEAAsD;AACtD,yDAAuC;AACvC,6DAA2C;AAC3C,qEAAmD;AACnD,uEAAqD;AACrD,qEAAmD;AACnD,6DAA2C;AAC3C,sEAAoD;AACpD,mEAAiD;AACjD,gEAA8C;AAC9C,gEAA8C;AAC9C,qEAAmD;AACnD,8DAA4C;AAC5C,uDAAqC;AACrC,oEAAkD;AAClD,sDAAoC;AACpC,gDAA8B;AAC9B,+CAA6B;AAC7B,oDAAkC;AAClC,0DAAwC;AACxC,yDAAuC;AACvC,gDAA8B;AAC9B,+CAA6B"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.BonusSchema = void 0;
|
4
|
+
const namirasoft_schema_1 = require("namirasoft-schema");
|
5
|
+
class BonusSchema extends namirasoft_schema_1.ObjectSchema {
|
6
|
+
constructor(required) {
|
7
|
+
super("Bonus", required, [
|
8
|
+
new namirasoft_schema_1.BaseVariableSchema("name", new namirasoft_schema_1.StringSchema(true)),
|
9
|
+
]);
|
10
|
+
this.external = {
|
11
|
+
package: "./type/Bonus"
|
12
|
+
};
|
13
|
+
}
|
14
|
+
}
|
15
|
+
exports.BonusSchema = BonusSchema;
|
16
|
+
//# sourceMappingURL=Bonus.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Bonus.js","sourceRoot":"","sources":["../../src/type/Bonus.ts"],"names":[],"mappings":";;;AAAA,yDAAmF;AASnF,MAAa,WAAY,SAAQ,gCAAY;IAEzC,YAAY,QAAiB;QAEzB,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE;YACrB,IAAI,sCAAkB,CAAC,MAAM,EAAE,IAAI,gCAAY,CAAC,IAAI,CAAC,CAAC;SACzD,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,GAAG;YACZ,OAAO,EAAE,cAAc;SAC1B,CAAC;IACN,CAAC;CACJ;AAXD,kCAWC"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { ObjectSchema } from "namirasoft-schema";
|
1
2
|
import { BaseBonus } from "../bonus/BaseBonus";
|
2
3
|
import { EstimationOption } from "./EstimationOption";
|
3
4
|
import { EstimationUsage } from "./EstimationUsage";
|
@@ -10,3 +11,6 @@ export type Estimation = {
|
|
10
11
|
currency: string;
|
11
12
|
free?: BaseBonus;
|
12
13
|
};
|
14
|
+
export declare class EstimationSchema extends ObjectSchema {
|
15
|
+
constructor(required: boolean);
|
16
|
+
}
|
package/dist/type/Estimation.js
CHANGED
@@ -1,3 +1,25 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EstimationSchema = void 0;
|
4
|
+
const namirasoft_schema_1 = require("namirasoft-schema");
|
5
|
+
const EstimationOption_1 = require("./EstimationOption");
|
6
|
+
const EstimationUsage_1 = require("./EstimationUsage");
|
7
|
+
const Bonus_1 = require("./Bonus");
|
8
|
+
class EstimationSchema extends namirasoft_schema_1.ObjectSchema {
|
9
|
+
constructor(required) {
|
10
|
+
super("Estimation", required, [
|
11
|
+
new namirasoft_schema_1.BaseVariableSchema("option", new EstimationOption_1.EstimationOptionSchema(true)),
|
12
|
+
new namirasoft_schema_1.BaseVariableSchema("seconds", new namirasoft_schema_1.IntegerSchema(true, 1, 3600)),
|
13
|
+
new namirasoft_schema_1.BaseVariableSchema("usage", new EstimationUsage_1.EstimationUsageSchema(true)),
|
14
|
+
new namirasoft_schema_1.BaseVariableSchema("fee", new namirasoft_schema_1.MoneySchema(true)),
|
15
|
+
new namirasoft_schema_1.BaseVariableSchema("amount", new namirasoft_schema_1.MoneySchema(true, 1)),
|
16
|
+
new namirasoft_schema_1.BaseVariableSchema("currency", new namirasoft_schema_1.StringSchema(true)),
|
17
|
+
new namirasoft_schema_1.BaseVariableSchema("free", new Bonus_1.BonusSchema(false)),
|
18
|
+
]);
|
19
|
+
this.external = {
|
20
|
+
package: "./type/Estimation"
|
21
|
+
};
|
22
|
+
}
|
23
|
+
}
|
24
|
+
exports.EstimationSchema = EstimationSchema;
|
3
25
|
//# sourceMappingURL=Estimation.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Estimation.js","sourceRoot":"","sources":["../../src/type/Estimation.ts"],"names":[],"mappings":""}
|
1
|
+
{"version":3,"file":"Estimation.js","sourceRoot":"","sources":["../../src/type/Estimation.ts"],"names":[],"mappings":";;;AAAA,yDAA+G;AAE/G,yDAA8E;AAC9E,uDAA2E;AAC3E,mCAAsC;AAatC,MAAa,gBAAiB,SAAQ,gCAAY;IAE9C,YAAY,QAAiB;QAEzB,KAAK,CAAC,YAAY,EAAE,QAAQ,EAAE;YAC1B,IAAI,sCAAkB,CAAC,QAAQ,EAAE,IAAI,yCAAsB,CAAC,IAAI,CAAC,CAAC;YAClE,IAAI,sCAAkB,CAAC,SAAS,EAAE,IAAI,iCAAa,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC;YACnE,IAAI,sCAAkB,CAAC,OAAO,EAAE,IAAI,uCAAqB,CAAC,IAAI,CAAC,CAAC;YAChE,IAAI,sCAAkB,CAAC,KAAK,EAAE,IAAI,+BAAW,CAAC,IAAI,CAAC,CAAC;YACpD,IAAI,sCAAkB,CAAC,QAAQ,EAAE,IAAI,+BAAW,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;YAC1D,IAAI,sCAAkB,CAAC,UAAU,EAAE,IAAI,gCAAY,CAAC,IAAI,CAAC,CAAC;YAC1D,IAAI,sCAAkB,CAAC,MAAM,EAAE,IAAI,mBAAW,CAAC,KAAK,CAAC,CAAC;SACzD,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,GAAG;YACZ,OAAO,EAAE,mBAAmB;SAC/B,CAAC;IACN,CAAC;CACJ;AAjBD,4CAiBC"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { ObjectSchema } from "namirasoft-schema";
|
1
2
|
import { Period } from "./Period";
|
2
3
|
export interface EstimationOption {
|
3
4
|
period: Period;
|
@@ -8,3 +9,6 @@ export interface EstimationOption {
|
|
8
9
|
active: boolean;
|
9
10
|
trial_started_at: Date | null;
|
10
11
|
}
|
12
|
+
export declare class EstimationOptionSchema extends ObjectSchema {
|
13
|
+
constructor(required: boolean);
|
14
|
+
}
|
@@ -1,4 +1,24 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EstimationOptionSchema = void 0;
|
4
|
+
const namirasoft_schema_1 = require("namirasoft-schema");
|
5
|
+
const Period_1 = require("./Period");
|
3
6
|
;
|
7
|
+
class EstimationOptionSchema extends namirasoft_schema_1.ObjectSchema {
|
8
|
+
constructor(required) {
|
9
|
+
super("EstimationOption", required, [
|
10
|
+
new namirasoft_schema_1.BaseVariableSchema("period", new Period_1.PeriodSchema(true)),
|
11
|
+
new namirasoft_schema_1.BaseVariableSchema("total_count", new namirasoft_schema_1.IntegerSchema(true, 0)),
|
12
|
+
new namirasoft_schema_1.BaseVariableSchema("number", new namirasoft_schema_1.IntegerSchema(true, 1)),
|
13
|
+
new namirasoft_schema_1.BaseVariableSchema("total_value", new namirasoft_schema_1.IntegerSchema(true, 0)),
|
14
|
+
new namirasoft_schema_1.BaseVariableSchema("value", new namirasoft_schema_1.IntegerSchema(true, 1)),
|
15
|
+
new namirasoft_schema_1.BaseVariableSchema("active", new namirasoft_schema_1.BoolSchema(true)),
|
16
|
+
new namirasoft_schema_1.BaseVariableSchema("trial_started_at", new namirasoft_schema_1.DateTimeSchema(false)),
|
17
|
+
]);
|
18
|
+
this.external = {
|
19
|
+
package: "./type/EstimationOption"
|
20
|
+
};
|
21
|
+
}
|
22
|
+
}
|
23
|
+
exports.EstimationOptionSchema = EstimationOptionSchema;
|
4
24
|
//# sourceMappingURL=EstimationOption.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EstimationOption.js","sourceRoot":"","sources":["../../src/type/EstimationOption.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"EstimationOption.js","sourceRoot":"","sources":["../../src/type/EstimationOption.ts"],"names":[],"mappings":";;;AAAA,yDAAgH;AAChH,qCAAgD;AAW/C,CAAC;AAEF,MAAa,sBAAuB,SAAQ,gCAAY;IAEpD,YAAY,QAAiB;QAEzB,KAAK,CAAC,kBAAkB,EAAE,QAAQ,EAAE;YAChC,IAAI,sCAAkB,CAAC,QAAQ,EAAE,IAAI,qBAAY,CAAC,IAAI,CAAC,CAAC;YACxD,IAAI,sCAAkB,CAAC,aAAa,EAAE,IAAI,iCAAa,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;YACjE,IAAI,sCAAkB,CAAC,QAAQ,EAAE,IAAI,iCAAa,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;YAC5D,IAAI,sCAAkB,CAAC,aAAa,EAAE,IAAI,iCAAa,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;YACjE,IAAI,sCAAkB,CAAC,OAAO,EAAE,IAAI,iCAAa,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;YAC3D,IAAI,sCAAkB,CAAC,QAAQ,EAAE,IAAI,8BAAU,CAAC,IAAI,CAAC,CAAC;YACtD,IAAI,sCAAkB,CAAC,kBAAkB,EAAE,IAAI,kCAAc,CAAC,KAAK,CAAC,CAAC;SACxE,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,GAAG;YACZ,OAAO,EAAE,yBAAyB;SACrC,CAAC;IACN,CAAC;CACJ;AAjBD,wDAiBC"}
|
@@ -1,3 +1,18 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EstimationUsageSchema = void 0;
|
4
|
+
const namirasoft_schema_1 = require("namirasoft-schema");
|
5
|
+
class EstimationUsageSchema extends namirasoft_schema_1.ObjectSchema {
|
6
|
+
constructor(required) {
|
7
|
+
super("EstimationUsage", required, [
|
8
|
+
new namirasoft_schema_1.BaseVariableSchema("name", new namirasoft_schema_1.StringSchema(true)),
|
9
|
+
new namirasoft_schema_1.BaseVariableSchema("value", new namirasoft_schema_1.IntegerSchema(true)),
|
10
|
+
new namirasoft_schema_1.BaseVariableSchema("unit", new namirasoft_schema_1.StringSchema(true)),
|
11
|
+
]);
|
12
|
+
this.external = {
|
13
|
+
package: "./type/EstimationUsage"
|
14
|
+
};
|
15
|
+
}
|
16
|
+
}
|
17
|
+
exports.EstimationUsageSchema = EstimationUsageSchema;
|
3
18
|
//# sourceMappingURL=EstimationUsage.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EstimationUsage.js","sourceRoot":"","sources":["../../src/type/EstimationUsage.ts"],"names":[],"mappings":""}
|
1
|
+
{"version":3,"file":"EstimationUsage.js","sourceRoot":"","sources":["../../src/type/EstimationUsage.ts"],"names":[],"mappings":";;;AAAA,yDAAkG;AASlG,MAAa,qBAAsB,SAAQ,gCAAY;IAEnD,YAAY,QAAiB;QAEzB,KAAK,CAAC,iBAAiB,EAAE,QAAQ,EAAE;YAC/B,IAAI,sCAAkB,CAAC,MAAM,EAAE,IAAI,gCAAY,CAAC,IAAI,CAAC,CAAC;YACtD,IAAI,sCAAkB,CAAC,OAAO,EAAE,IAAI,iCAAa,CAAC,IAAI,CAAC,CAAC;YACxD,IAAI,sCAAkB,CAAC,MAAM,EAAE,IAAI,gCAAY,CAAC,IAAI,CAAC,CAAC;SACzD,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,GAAG;YACZ,OAAO,EAAE,wBAAwB;SACpC,CAAC;IACN,CAAC;CACJ;AAbD,sDAaC"}
|
package/dist/type/Period.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { ObjectSchema } from "namirasoft-schema";
|
1
2
|
export type Period = {
|
2
3
|
year: number;
|
3
4
|
month: number;
|
@@ -12,6 +13,9 @@ export type Period = {
|
|
12
13
|
second: number;
|
13
14
|
};
|
14
15
|
};
|
16
|
+
export declare class PeriodSchema extends ObjectSchema {
|
17
|
+
constructor(required: boolean);
|
18
|
+
}
|
15
19
|
export declare class PeriodUtil {
|
16
20
|
static toSeconds(period: Period): number;
|
17
21
|
static toDates(period: Period): {
|
package/dist/type/Period.js
CHANGED
@@ -9,21 +9,44 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
9
9
|
});
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.PeriodUtil = void 0;
|
12
|
+
exports.PeriodUtil = exports.PeriodSchema = void 0;
|
13
13
|
const namirasoft_core_1 = require("namirasoft-core");
|
14
|
+
const namirasoft_schema_1 = require("namirasoft-schema");
|
15
|
+
class PeriodSchema extends namirasoft_schema_1.ObjectSchema {
|
16
|
+
constructor(required) {
|
17
|
+
super("Period", required, [
|
18
|
+
new namirasoft_schema_1.BaseVariableSchema("year", new namirasoft_schema_1.IntegerSchema(true, 0, 9999)),
|
19
|
+
new namirasoft_schema_1.BaseVariableSchema("month", new namirasoft_schema_1.IntegerSchema(true, 1, 12)),
|
20
|
+
new namirasoft_schema_1.BaseVariableSchema("day", new namirasoft_schema_1.IntegerSchema(true, 1, 31)),
|
21
|
+
new namirasoft_schema_1.BaseVariableSchema("hour", new namirasoft_schema_1.IntegerSchema(true, 0, 23)),
|
22
|
+
new namirasoft_schema_1.BaseVariableSchema("start", new namirasoft_schema_1.ObjectSchema("", true, [
|
23
|
+
new namirasoft_schema_1.BaseVariableSchema("minute", new namirasoft_schema_1.IntegerSchema(true, 0, 59)),
|
24
|
+
new namirasoft_schema_1.BaseVariableSchema("second", new namirasoft_schema_1.IntegerSchema(true, 0, 59))
|
25
|
+
])),
|
26
|
+
new namirasoft_schema_1.BaseVariableSchema("end", new namirasoft_schema_1.ObjectSchema("", true, [
|
27
|
+
new namirasoft_schema_1.BaseVariableSchema("minute", new namirasoft_schema_1.IntegerSchema(true, 0, 59)),
|
28
|
+
new namirasoft_schema_1.BaseVariableSchema("second", new namirasoft_schema_1.IntegerSchema(true, 0, 59))
|
29
|
+
])),
|
30
|
+
]);
|
31
|
+
this.external = {
|
32
|
+
package: "./type/Period"
|
33
|
+
};
|
34
|
+
}
|
35
|
+
}
|
36
|
+
exports.PeriodSchema = PeriodSchema;
|
14
37
|
class PeriodUtil {
|
15
38
|
static toSeconds(period) {
|
16
39
|
return (period.end.minute * 60 + period.end.second) - (period.start.minute * 60 + period.start.second) + 1;
|
17
40
|
}
|
18
41
|
static toDates(period) {
|
19
|
-
let start = new Date(period.year, period.month, period.day, period.hour, period.start.minute, period.start.second);
|
20
|
-
let end = new Date(period.year, period.month, period.day, period.hour, period.end.minute, period.end.second);
|
42
|
+
let start = new Date(period.year, period.month - 1, period.day, period.hour, period.start.minute, period.start.second);
|
43
|
+
let end = new Date(period.year, period.month - 1, period.day, period.hour, period.end.minute, period.end.second);
|
21
44
|
return { start, end };
|
22
45
|
}
|
23
46
|
static byDates(start, end) {
|
24
47
|
return {
|
25
48
|
year: start.getFullYear(),
|
26
|
-
month: start.getMonth(),
|
49
|
+
month: start.getMonth() + 1,
|
27
50
|
day: start.getDate(),
|
28
51
|
hour: start.getHours(),
|
29
52
|
start: {
|
package/dist/type/Period.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Period.js","sourceRoot":"","sources":["../../src/type/Period.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgD;
|
1
|
+
{"version":3,"file":"Period.js","sourceRoot":"","sources":["../../src/type/Period.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
"framework": "npm",
|
9
9
|
"application": "package",
|
10
10
|
"private": false,
|
11
|
-
"version": "1.4.
|
11
|
+
"version": "1.4.26",
|
12
12
|
"author": "Amir Abolhasani",
|
13
13
|
"license": "MIT",
|
14
14
|
"main": "./dist/index.js",
|
@@ -17,10 +17,11 @@
|
|
17
17
|
"build": ""
|
18
18
|
},
|
19
19
|
"dependencies": {
|
20
|
+
"namirasoft-account": "^1.4.85",
|
20
21
|
"namirasoft-core": "^1.4.80",
|
21
|
-
"namirasoft-site": "^1.4.39",
|
22
22
|
"namirasoft-node-cli": "^1.4.7",
|
23
|
-
"namirasoft-
|
23
|
+
"namirasoft-schema": "^1.4.25",
|
24
|
+
"namirasoft-site": "^1.4.39"
|
24
25
|
},
|
25
26
|
"bin": {
|
26
27
|
"ns-cost": "./dist/command/cli.js"
|