@utiliread/primitives 1.0.0-85 → 1.0.0-86

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/cjs/index.js CHANGED
@@ -1,22 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.localeDecimalSeparator = exports.invariantDecimalSeparator = exports.TimeOrRule = exports.Step = exports.Repository = exports.RegisterLibrary = exports.RegisterConvention = exports.PrecisionNumber = exports.NumberFormatter = exports.DayOfWeek = void 0;
4
- const register_library_1 = require("./register-library");
5
- Object.defineProperty(exports, "RegisterLibrary", { enumerable: true, get: function () { return register_library_1.RegisterLibrary; } });
4
+ require("./repository"); // We need this to get the Repository namespace exported
5
+ const step_1 = require("./step");
6
+ Object.defineProperty(exports, "DayOfWeek", { enumerable: true, get: function () { return step_1.DayOfWeek; } });
7
+ Object.defineProperty(exports, "Step", { enumerable: true, get: function () { return step_1.Step; } });
6
8
  const number_formatter_1 = require("./number-formatter");
7
9
  Object.defineProperty(exports, "NumberFormatter", { enumerable: true, get: function () { return number_formatter_1.NumberFormatter; } });
8
10
  Object.defineProperty(exports, "invariantDecimalSeparator", { enumerable: true, get: function () { return number_formatter_1.invariantDecimalSeparator; } });
9
11
  Object.defineProperty(exports, "localeDecimalSeparator", { enumerable: true, get: function () { return number_formatter_1.localeDecimalSeparator; } });
10
- const register_convention_1 = require("./register-convention");
11
- Object.defineProperty(exports, "RegisterConvention", { enumerable: true, get: function () { return register_convention_1.RegisterConvention; } });
12
- const step_1 = require("./step");
13
- Object.defineProperty(exports, "Step", { enumerable: true, get: function () { return step_1.Step; } });
14
- Object.defineProperty(exports, "DayOfWeek", { enumerable: true, get: function () { return step_1.DayOfWeek; } });
15
- const time_or_rule_1 = require("./time-or-rule");
16
- Object.defineProperty(exports, "TimeOrRule", { enumerable: true, get: function () { return time_or_rule_1.TimeOrRule; } });
17
12
  const precision_number_1 = require("./precision-number");
18
13
  Object.defineProperty(exports, "PrecisionNumber", { enumerable: true, get: function () { return precision_number_1.PrecisionNumber; } });
19
- require("./repository"); // We need this to get the Repository namespace exported
14
+ const register_convention_1 = require("./register-convention");
15
+ Object.defineProperty(exports, "RegisterConvention", { enumerable: true, get: function () { return register_convention_1.RegisterConvention; } });
16
+ const register_library_1 = require("./register-library");
17
+ Object.defineProperty(exports, "RegisterLibrary", { enumerable: true, get: function () { return register_library_1.RegisterLibrary; } });
20
18
  const repository_1 = require("./repository");
21
19
  Object.defineProperty(exports, "Repository", { enumerable: true, get: function () { return repository_1.Repository; } });
20
+ const time_or_rule_1 = require("./time-or-rule");
21
+ Object.defineProperty(exports, "TimeOrRule", { enumerable: true, get: function () { return time_or_rule_1.TimeOrRule; } });
22
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAGA,yDAAqD;AA2BjD,gGA3BK,kCAAe,OA2BL;AAzBnB,yDAI4B;AAgBxB,gGAnBA,kCAAe,OAmBA;AAUf,0GA5BA,4CAAyB,OA4BA;AACzB,uGA5BA,yCAAsB,OA4BA;AA1B1B,+DAA2D;AAiBvD,mGAjBK,wCAAkB,OAiBL;AAdtB,iCAAyC;AAmBrC,qFAnBK,WAAI,OAmBL;AATJ,0FAVW,gBAAS,OAUX;AATb,iDAA4C;AAmBxC,2FAnBK,yBAAU,OAmBL;AAlBd,yDAAqD;AAWjD,gGAXK,kCAAe,OAWL;AAVnB,wBAAsB,CAAC,wDAAwD;AAC/E,6CAA0C;AActC,2FAdK,uBAAU,OAcL"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,wBAAsB,CAAC,wDAAwD;AAE/E,iCAAyC;AAuBrC,0FAvBK,gBAAS,OAuBL;AAST,qFAhCgB,WAAI,OAgChB;AA/BR,yDAI4B;AAoBxB,gGAvBA,kCAAe,OAuBA;AAUf,0GAhCA,4CAAyB,OAgCA;AACzB,uGAhCA,yCAAsB,OAgCA;AAzB1B,yDAAqD;AAejD,gGAfK,kCAAe,OAeL;AAdnB,+DAA2D;AAevD,mGAfK,wCAAkB,OAeL;AAZtB,yDAAqD;AAejD,gGAfK,kCAAe,OAeL;AAdnB,6CAA0C;AAetC,2FAfK,uBAAU,OAeL;AAdd,iDAA4C;AAgBxC,2FAhBK,yBAAU,OAgBL"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=medium.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"medium.js","sourceRoot":"","sources":["../../src/medium.ts"],"names":[],"mappings":""}
@@ -1,16 +1,16 @@
1
- import type { ConsumptionTypeId } from "./consumption-type-id";
2
- import type { RegisterId } from "./register-id";
3
- import type { UnitId } from "./unit-id";
4
- import { RegisterLibrary } from "./register-library";
5
- import type { RegisterDefinition } from "./register-definition";
1
+ import "./repository";
2
+ import { DayOfWeek, Step } from "./step";
6
3
  import { NumberFormatter, invariantDecimalSeparator, localeDecimalSeparator } from "./number-formatter";
7
- import { RegisterConvention } from "./register-convention";
8
4
  import type { AggregateId } from "./aggregate-id";
9
5
  import type { MeasureId } from "./measure-id";
10
- import { Step, DayOfWeek } from "./step";
11
- import { TimeOrRule } from "./time-or-rule";
6
+ import type { Medium } from "./medium";
7
+ import type { Optional } from "./optional";
12
8
  import { PrecisionNumber } from "./precision-number";
13
- import "./repository";
9
+ import { RegisterConvention } from "./register-convention";
10
+ import type { RegisterDefinition } from "./register-definition";
11
+ import type { RegisterId } from "./register-id";
12
+ import { RegisterLibrary } from "./register-library";
14
13
  import { Repository } from "./repository";
15
- import type { Optional } from "./optional";
16
- export { AggregateId, ConsumptionTypeId, DayOfWeek, MeasureId, NumberFormatter, PrecisionNumber, RegisterConvention, RegisterDefinition, RegisterId, RegisterLibrary, Repository, Step, TimeOrRule, UnitId, invariantDecimalSeparator, localeDecimalSeparator, Optional, };
14
+ import { TimeOrRule } from "./time-or-rule";
15
+ import type { UnitId } from "./unit-id";
16
+ export { AggregateId, Medium, DayOfWeek, MeasureId, NumberFormatter, PrecisionNumber, RegisterConvention, RegisterDefinition, RegisterId, RegisterLibrary, Repository, Step, TimeOrRule, UnitId, invariantDecimalSeparator, localeDecimalSeparator, Optional, };
package/dist/esm/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { RegisterLibrary } from "./register-library";
1
+ import "./repository"; // We need this to get the Repository namespace exported
2
+ import { DayOfWeek, Step } from "./step";
2
3
  import { NumberFormatter, invariantDecimalSeparator, localeDecimalSeparator, } from "./number-formatter";
3
- import { RegisterConvention } from "./register-convention";
4
- import { Step, DayOfWeek } from "./step";
5
- import { TimeOrRule } from "./time-or-rule";
6
4
  import { PrecisionNumber } from "./precision-number";
7
- import "./repository"; // We need this to get the Repository namespace exported
5
+ import { RegisterConvention } from "./register-convention";
6
+ import { RegisterLibrary } from "./register-library";
8
7
  import { Repository } from "./repository";
8
+ import { TimeOrRule } from "./time-or-rule";
9
9
  export { DayOfWeek, NumberFormatter, PrecisionNumber, RegisterConvention, RegisterLibrary, Repository, Step, TimeOrRule, invariantDecimalSeparator, localeDecimalSeparator, };
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EACH,eAAe,EACf,yBAAyB,EACzB,sBAAsB,GACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,cAAc,CAAC,CAAC,wDAAwD;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,EAGH,SAAS,EAET,eAAe,EACf,eAAe,EACf,kBAAkB,EAGlB,eAAe,EACf,UAAU,EACV,IAAI,EACJ,UAAU,EAEV,yBAAyB,EACzB,sBAAsB,GAEzB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC,CAAC,wDAAwD;AAE/E,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EACH,eAAe,EACf,yBAAyB,EACzB,sBAAsB,GACzB,MAAM,oBAAoB,CAAC;AAM5B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG5C,OAAO,EAGH,SAAS,EAET,eAAe,EACf,eAAe,EACf,kBAAkB,EAGlB,eAAe,EACf,UAAU,EACV,IAAI,EACJ,UAAU,EAEV,yBAAyB,EACzB,sBAAsB,GAEzB,CAAC"}
@@ -0,0 +1 @@
1
+ export type Medium = "none" | "heat" | "water" | "cooling" | "electricity" | "infrastructure" | "all";
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=medium.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"medium.js","sourceRoot":"","sources":["../../src/medium.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utiliread/primitives",
3
- "version": "1.0.0-85",
3
+ "version": "1.0.0-86",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",
package/src/index.ts CHANGED
@@ -1,26 +1,28 @@
1
- import type { ConsumptionTypeId } from "./consumption-type-id";
2
- import type { RegisterId } from "./register-id";
3
- import type { UnitId } from "./unit-id";
4
- import { RegisterLibrary } from "./register-library";
5
- import type { RegisterDefinition } from "./register-definition";
1
+ import "./repository"; // We need this to get the Repository namespace exported
2
+
3
+ import { DayOfWeek, Step } from "./step";
6
4
  import {
7
5
  NumberFormatter,
8
6
  invariantDecimalSeparator,
9
7
  localeDecimalSeparator,
10
8
  } from "./number-formatter";
11
- import { RegisterConvention } from "./register-convention";
9
+
12
10
  import type { AggregateId } from "./aggregate-id";
13
11
  import type { MeasureId } from "./measure-id";
14
- import { Step, DayOfWeek } from "./step";
15
- import { TimeOrRule } from "./time-or-rule";
12
+ import type { Medium } from "./medium";
13
+ import type { Optional } from "./optional";
16
14
  import { PrecisionNumber } from "./precision-number";
17
- import "./repository"; // We need this to get the Repository namespace exported
15
+ import { RegisterConvention } from "./register-convention";
16
+ import type { RegisterDefinition } from "./register-definition";
17
+ import type { RegisterId } from "./register-id";
18
+ import { RegisterLibrary } from "./register-library";
18
19
  import { Repository } from "./repository";
19
- import type { Optional } from "./optional";
20
+ import { TimeOrRule } from "./time-or-rule";
21
+ import type { UnitId } from "./unit-id";
20
22
 
21
23
  export {
22
24
  AggregateId,
23
- ConsumptionTypeId,
25
+ Medium,
24
26
  DayOfWeek,
25
27
  MeasureId,
26
28
  NumberFormatter,
@@ -1,4 +1,4 @@
1
- export type ConsumptionTypeId =
1
+ export type Medium =
2
2
  | "none"
3
3
  | "heat"
4
4
  | "water"