@platecms/delta-types 0.3.0 → 0.4.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platecms/delta-types",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "This package contains various utility types.",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {
@@ -17,8 +17,8 @@
17
17
  "src/**/*"
18
18
  ],
19
19
  "peerDependencies": {
20
- "@platecms/delta-cast": "*",
21
- "@platecms/delta-plate-resource-notation": "*",
20
+ "@platecms/delta-cast": "0.4.0",
21
+ "@platecms/delta-plate-resource-notation": "0.4.0",
22
22
  "class-transformer": "0.5.1",
23
23
  "reflect-metadata": "0.2.2",
24
24
  "tslib": "2.8.1"
package/src/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
- export * from "./lib/return-constructor-function.type";
2
- export * from "./lib/constructor.type";
1
+ export type * from "./lib/return-constructor-function.type";
2
+ export type * from "./lib/constructor.type";
3
3
  export * from "./lib/content-value-type.type";
4
4
  export * from "./lib/primitive.type";
5
5
  export * from "./lib/stage.enum";
6
6
  export * from "./lib/header-keys.enum";
7
+ export * from "./lib/action-type.enum";
package/src/index.js CHANGED
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./lib/return-constructor-function.type"), exports);
5
- tslib_1.__exportStar(require("./lib/constructor.type"), exports);
6
4
  tslib_1.__exportStar(require("./lib/content-value-type.type"), exports);
7
5
  tslib_1.__exportStar(require("./lib/primitive.type"), exports);
8
6
  tslib_1.__exportStar(require("./lib/stage.enum"), exports);
9
7
  tslib_1.__exportStar(require("./lib/header-keys.enum"), exports);
8
+ tslib_1.__exportStar(require("./lib/action-type.enum"), exports);
10
9
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/types/src/index.ts"],"names":[],"mappings":";;;AAAA,iFAAuD;AACvD,iEAAuC;AACvC,wEAA8C;AAC9C,+DAAqC;AACrC,2DAAiC;AACjC,iEAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/types/src/index.ts"],"names":[],"mappings":";;;AAEA,wEAA8C;AAC9C,+DAAqC;AACrC,2DAAiC;AACjC,iEAAuC;AACvC,iEAAuC"}
@@ -0,0 +1,6 @@
1
+ export declare const enum ActionType {
2
+ CREATE = "create",
3
+ READ = "read",
4
+ UPDATE = "update",
5
+ REMOVE = "remove"
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=action-type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-type.enum.js","sourceRoot":"","sources":["../../../../../../packages/types/src/lib/action-type.enum.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
1
  import { Constructor } from "./constructor.type";
2
2
  export type Primitive = Date | boolean | number | string;
3
- export type PrimitiveConstructor = Boolean | BooleanConstructor | Date | DateConstructor | Number | NumberConstructor | String | StringConstructor;
3
+ export type PrimitiveConstructor = Boolean | BooleanConstructor | Date | DateConstructor | Number | NumberConstructor | String | StringConstructor | boolean | number | string;
4
4
  export declare function isPrimitiveType(type: Constructor): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"primitive.type.js","sourceRoot":"","sources":["../../../../../../packages/types/src/lib/primitive.type.ts"],"names":[],"mappings":";;AAgBA,0CAEC;AAFD,SAAgB,eAAe,CAAC,IAAiB;IAC/C,OAAO,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,OAAO,IAAI,IAAI,KAAK,IAAI,CAAC;AACjF,CAAC"}
1
+ {"version":3,"file":"primitive.type.js","sourceRoot":"","sources":["../../../../../../packages/types/src/lib/primitive.type.ts"],"names":[],"mappings":";;AAiBA,0CAEC;AAFD,SAAgB,eAAe,CAAC,IAAiB;IAC/C,OAAO,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,OAAO,IAAI,IAAI,KAAK,IAAI,CAAC;AACjF,CAAC"}