namirasoft-cost 1.4.26 → 1.4.27
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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/type/CalculationOption.d.ts +15 -0
- package/dist/type/CalculationOption.js +25 -0
- package/dist/type/CalculationOption.js.map +1 -0
- package/dist/type/SimulationOption.d.ts +13 -0
- package/dist/type/SimulationOption.js +23 -0
- package/dist/type/SimulationOption.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +2 -0
- package/src/type/CalculationOption.ts +34 -0
- package/src/type/EstimationOption.ts +1 -1
- package/src/type/SimulationOption.ts +30 -0
package/.ns-sdkg-file-keep
CHANGED
@@ -18,8 +18,10 @@ src/bonus/FieldFieldRecordEstimator.ts
|
|
18
18
|
src/bonus/SecretSecretRecordEstimator.ts
|
19
19
|
src/bonus/SecretSecretReadEstimator.ts
|
20
20
|
src/type/Bonus.ts
|
21
|
+
src/type/CalculationOption.ts
|
21
22
|
src/type/Estimation.ts
|
22
23
|
src/type/EstimationOption.ts
|
23
24
|
src/type/EstimationUsage.ts
|
24
25
|
src/type/Period.ts
|
26
|
+
src/type/SimulationOption.ts
|
25
27
|
src/type/Usage.ts
|
package/dist/index.d.ts
CHANGED
@@ -26,8 +26,10 @@ export * from "./meta/NamirasoftCostMetaDatabase";
|
|
26
26
|
export * from "./row/CostCreateRow";
|
27
27
|
export * from "./row/CostRow";
|
28
28
|
export * from "./type/Bonus";
|
29
|
+
export * from "./type/CalculationOption";
|
29
30
|
export * from "./type/Estimation";
|
30
31
|
export * from "./type/EstimationOption";
|
31
32
|
export * from "./type/EstimationUsage";
|
32
33
|
export * from "./type/Period";
|
34
|
+
export * from "./type/SimulationOption";
|
33
35
|
export * from "./type/Usage";
|
package/dist/index.js
CHANGED
@@ -42,9 +42,11 @@ __exportStar(require("./meta/NamirasoftCostMetaDatabase"), exports);
|
|
42
42
|
__exportStar(require("./row/CostCreateRow"), exports);
|
43
43
|
__exportStar(require("./row/CostRow"), exports);
|
44
44
|
__exportStar(require("./type/Bonus"), exports);
|
45
|
+
__exportStar(require("./type/CalculationOption"), exports);
|
45
46
|
__exportStar(require("./type/Estimation"), exports);
|
46
47
|
__exportStar(require("./type/EstimationOption"), exports);
|
47
48
|
__exportStar(require("./type/EstimationUsage"), exports);
|
48
49
|
__exportStar(require("./type/Period"), exports);
|
50
|
+
__exportStar(require("./type/SimulationOption"), exports);
|
49
51
|
__exportStar(require("./type/Usage"), exports);
|
50
52
|
//# sourceMappingURL=index.js.map
|
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,uDAAqC;AACrC,oEAAkD;AAClD,sDAAoC;AACpC,gDAA8B;AAC9B,+CAA6B;AAC7B,oDAAkC;AAClC,0DAAwC;AACxC,yDAAuC;AACvC,gDAA8B;AAC9B,+CAA6B"}
|
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,2DAAyC;AACzC,oDAAkC;AAClC,0DAAwC;AACxC,yDAAuC;AACvC,gDAA8B;AAC9B,0DAAwC;AACxC,+CAA6B"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { ObjectSchema } from "namirasoft-schema";
|
2
|
+
import { Period } from "./Period";
|
3
|
+
export interface CalculationOption {
|
4
|
+
period: Period;
|
5
|
+
total_count: number;
|
6
|
+
number: number;
|
7
|
+
total_value: number;
|
8
|
+
value: number;
|
9
|
+
active: boolean;
|
10
|
+
workspace_id: string;
|
11
|
+
resource_id: string;
|
12
|
+
}
|
13
|
+
export declare class CalculationOptionSchema extends ObjectSchema {
|
14
|
+
constructor(required: boolean);
|
15
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CalculationOptionSchema = void 0;
|
4
|
+
const namirasoft_schema_1 = require("namirasoft-schema");
|
5
|
+
const Period_1 = require("./Period");
|
6
|
+
;
|
7
|
+
class CalculationOptionSchema extends namirasoft_schema_1.ObjectSchema {
|
8
|
+
constructor(required) {
|
9
|
+
super("CalculationOption", 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("workspace_id", new namirasoft_schema_1.StringSchema(false, 20, 20)),
|
17
|
+
new namirasoft_schema_1.BaseVariableSchema("resource_id", new namirasoft_schema_1.StringSchema(false, 20, 20)),
|
18
|
+
]);
|
19
|
+
this.external = {
|
20
|
+
package: "./type/CalculationOption"
|
21
|
+
};
|
22
|
+
}
|
23
|
+
}
|
24
|
+
exports.CalculationOptionSchema = CalculationOptionSchema;
|
25
|
+
//# sourceMappingURL=CalculationOption.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CalculationOption.js","sourceRoot":"","sources":["../../src/type/CalculationOption.ts"],"names":[],"mappings":";;;AAAA,yDAA8G;AAC9G,qCAAgD;AAY/C,CAAC;AAEF,MAAa,uBAAwB,SAAQ,gCAAY;IAErD,YAAY,QAAiB;QAEzB,KAAK,CAAC,mBAAmB,EAAE,QAAQ,EAAE;YACjC,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,cAAc,EAAE,IAAI,gCAAY,CAAC,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;YACvE,IAAI,sCAAkB,CAAC,aAAa,EAAE,IAAI,gCAAY,CAAC,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;SACzE,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,GAAG;YACZ,OAAO,EAAE,0BAA0B;SACtC,CAAC;IACN,CAAC;CACJ;AAlBD,0DAkBC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { ObjectSchema } from "namirasoft-schema";
|
2
|
+
import { Period } from "./Period";
|
3
|
+
export interface SimulationOption {
|
4
|
+
period: Period;
|
5
|
+
total_count: number;
|
6
|
+
number: number;
|
7
|
+
total_value: number;
|
8
|
+
value: number;
|
9
|
+
active: boolean;
|
10
|
+
}
|
11
|
+
export declare class SimulationOptionSchema extends ObjectSchema {
|
12
|
+
constructor(required: boolean);
|
13
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SimulationOptionSchema = void 0;
|
4
|
+
const namirasoft_schema_1 = require("namirasoft-schema");
|
5
|
+
const Period_1 = require("./Period");
|
6
|
+
;
|
7
|
+
class SimulationOptionSchema extends namirasoft_schema_1.ObjectSchema {
|
8
|
+
constructor(required) {
|
9
|
+
super("SimulationOption", 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
|
+
]);
|
17
|
+
this.external = {
|
18
|
+
package: "./type/SimulationOption"
|
19
|
+
};
|
20
|
+
}
|
21
|
+
}
|
22
|
+
exports.SimulationOptionSchema = SimulationOptionSchema;
|
23
|
+
//# sourceMappingURL=SimulationOption.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SimulationOption.js","sourceRoot":"","sources":["../../src/type/SimulationOption.ts"],"names":[],"mappings":";;;AAAA,yDAAgG;AAChG,qCAAgD;AAU/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;SACzD,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,GAAG;YACZ,OAAO,EAAE,yBAAyB;SACrC,CAAC;IACN,CAAC;CACJ;AAhBD,wDAgBC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
@@ -46,8 +46,10 @@ export * from "./meta/NamirasoftCostMetaDatabase";
|
|
46
46
|
export * from "./row/CostCreateRow";
|
47
47
|
export * from "./row/CostRow";
|
48
48
|
export * from "./type/Bonus";
|
49
|
+
export * from "./type/CalculationOption";
|
49
50
|
export * from "./type/Estimation";
|
50
51
|
export * from "./type/EstimationOption";
|
51
52
|
export * from "./type/EstimationUsage";
|
52
53
|
export * from "./type/Period";
|
54
|
+
export * from "./type/SimulationOption";
|
53
55
|
export * from "./type/Usage";
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { BaseVariableSchema, BoolSchema, IntegerSchema, ObjectSchema, StringSchema } from "namirasoft-schema";
|
2
|
+
import { Period, PeriodSchema } from "./Period";
|
3
|
+
|
4
|
+
export interface CalculationOption
|
5
|
+
{
|
6
|
+
period: Period;
|
7
|
+
total_count: number;
|
8
|
+
number: number;
|
9
|
+
total_value: number;
|
10
|
+
value: number;
|
11
|
+
active: boolean;
|
12
|
+
workspace_id: string;
|
13
|
+
resource_id: string;
|
14
|
+
};
|
15
|
+
|
16
|
+
export class CalculationOptionSchema extends ObjectSchema
|
17
|
+
{
|
18
|
+
constructor(required: boolean)
|
19
|
+
{
|
20
|
+
super("CalculationOption", required, [
|
21
|
+
new BaseVariableSchema("period", new PeriodSchema(true)),
|
22
|
+
new BaseVariableSchema("total_count", new IntegerSchema(true, 0)),
|
23
|
+
new BaseVariableSchema("number", new IntegerSchema(true, 1)),
|
24
|
+
new BaseVariableSchema("total_value", new IntegerSchema(true, 0)),
|
25
|
+
new BaseVariableSchema("value", new IntegerSchema(true, 1)),
|
26
|
+
new BaseVariableSchema("active", new BoolSchema(true)),
|
27
|
+
new BaseVariableSchema("workspace_id", new StringSchema(false, 20, 20)),
|
28
|
+
new BaseVariableSchema("resource_id", new StringSchema(false, 20, 20)),
|
29
|
+
]);
|
30
|
+
this.external = {
|
31
|
+
package: "./type/CalculationOption"
|
32
|
+
};
|
33
|
+
}
|
34
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { BaseVariableSchema, BoolSchema, IntegerSchema, ObjectSchema } from "namirasoft-schema";
|
2
|
+
import { Period, PeriodSchema } from "./Period";
|
3
|
+
|
4
|
+
export interface SimulationOption
|
5
|
+
{
|
6
|
+
period: Period;
|
7
|
+
total_count: number;
|
8
|
+
number: number;
|
9
|
+
total_value: number;
|
10
|
+
value: number;
|
11
|
+
active: boolean;
|
12
|
+
};
|
13
|
+
|
14
|
+
export class SimulationOptionSchema extends ObjectSchema
|
15
|
+
{
|
16
|
+
constructor(required: boolean)
|
17
|
+
{
|
18
|
+
super("SimulationOption", required, [
|
19
|
+
new BaseVariableSchema("period", new PeriodSchema(true)),
|
20
|
+
new BaseVariableSchema("total_count", new IntegerSchema(true, 0)),
|
21
|
+
new BaseVariableSchema("number", new IntegerSchema(true, 1)),
|
22
|
+
new BaseVariableSchema("total_value", new IntegerSchema(true, 0)),
|
23
|
+
new BaseVariableSchema("value", new IntegerSchema(true, 1)),
|
24
|
+
new BaseVariableSchema("active", new BoolSchema(true)),
|
25
|
+
]);
|
26
|
+
this.external = {
|
27
|
+
package: "./type/SimulationOption"
|
28
|
+
};
|
29
|
+
}
|
30
|
+
}
|