@puq/type 0.0.25 → 0.0.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/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './lib/common/package-json.js';
2
+ export * from './lib/common/puq-options.js';
2
3
  export * from './lib/dto/count-result.js';
3
4
  export * from './lib/dto/delete-result.js';
4
5
  export * from './lib/dto/relation-param.js';
@@ -15,13 +16,17 @@ export * from './lib/property/database-type.js';
15
16
  export * from './lib/property/date.js';
16
17
  export * from './lib/property/integer-format.js';
17
18
  export * from './lib/property/integer.js';
19
+ export * from './lib/property/model.js';
18
20
  export * from './lib/property/number-format.js';
19
21
  export * from './lib/property/number.js';
20
22
  export * from './lib/property/object.js';
21
23
  export * from './lib/property/property-type.js';
22
24
  export * from './lib/property/property.js';
25
+ export * from './lib/property/relation-options.js';
23
26
  export * from './lib/property/string-format.js';
24
27
  export * from './lib/property/string.js';
28
+ export * from './lib/ui/icon.js';
29
+ export * from './lib/ui/input-type.js';
25
30
  export * from './lib/utils/key-of.js';
26
31
  export * from './lib/utils/keys.js';
27
32
  export * from './lib/utils/pick-optional.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,kC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;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  // @index('./**/*.ts', f => `export * from '${f.path}.js'`)
2
2
  export * from './lib/common/package-json.js';
3
+ export * from './lib/common/puq-options.js';
3
4
  export * from './lib/dto/count-result.js';
4
5
  export * from './lib/dto/delete-result.js';
5
6
  export * from './lib/dto/relation-param.js';
@@ -16,13 +17,17 @@ export * from './lib/property/database-type.js';
16
17
  export * from './lib/property/date.js';
17
18
  export * from './lib/property/integer-format.js';
18
19
  export * from './lib/property/integer.js';
20
+ export * from './lib/property/model.js';
19
21
  export * from './lib/property/number-format.js';
20
22
  export * from './lib/property/number.js';
21
23
  export * from './lib/property/object.js';
22
24
  export * from './lib/property/property-type.js';
23
25
  export * from './lib/property/property.js';
26
+ export * from './lib/property/relation-options.js';
24
27
  export * from './lib/property/string-format.js';
25
28
  export * from './lib/property/string.js';
29
+ export * from './lib/ui/icon.js';
30
+ export * from './lib/ui/input-type.js';
26
31
  export * from './lib/utils/key-of.js';
27
32
  export * from './lib/utils/keys.js';
28
33
  export * from './lib/utils/pick-optional.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @index('./**/*.ts', f => `export * from '${f.path}.js'`)\nexport * from './lib/common/package-json.js';\nexport * from './lib/dto/count-result.js';\nexport * from './lib/dto/delete-result.js';\nexport * from './lib/dto/relation-param.js';\nexport * from './lib/dto/update-result.js';\nexport * from './lib/model/base.js';\nexport * from './lib/model/id.js';\nexport * from './lib/model/timestamp.js';\nexport * from './lib/property/array.js';\nexport * from './lib/property/big-integer.js';\nexport * from './lib/property/boolean.js';\nexport * from './lib/property/common-number.js';\nexport * from './lib/property/common.js';\nexport * from './lib/property/database-type.js';\nexport * from './lib/property/date.js';\nexport * from './lib/property/integer-format.js';\nexport * from './lib/property/integer.js';\nexport * from './lib/property/number-format.js';\nexport * from './lib/property/number.js';\nexport * from './lib/property/object.js';\nexport * from './lib/property/property-type.js';\nexport * from './lib/property/property.js';\nexport * from './lib/property/string-format.js';\nexport * from './lib/property/string.js';\nexport * from './lib/utils/key-of.js';\nexport * from './lib/utils/keys.js';\nexport * from './lib/utils/pick-optional.js';\nexport * from './lib/utils/pick-required.js';\nexport * from './lib/utils/type.js';\n"],"names":[],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,2DAA2D;AAC3D,cAAc,+BAA+B;AAC7C,cAAc,4BAA4B;AAC1C,cAAc,6BAA6B;AAC3C,cAAc,8BAA8B;AAC5C,cAAc,6BAA6B;AAC3C,cAAc,sBAAsB;AACpC,cAAc,oBAAoB;AAClC,cAAc,2BAA2B;AACzC,cAAc,0BAA0B;AACxC,cAAc,gCAAgC;AAC9C,cAAc,4BAA4B;AAC1C,cAAc,kCAAkC;AAChD,cAAc,2BAA2B;AACzC,cAAc,kCAAkC;AAChD,cAAc,yBAAyB;AACvC,cAAc,mCAAmC;AACjD,cAAc,4BAA4B;AAC1C,cAAc,kCAAkC;AAChD,cAAc,2BAA2B;AACzC,cAAc,2BAA2B;AACzC,cAAc,kCAAkC;AAChD,cAAc,6BAA6B;AAC3C,cAAc,kCAAkC;AAChD,cAAc,2BAA2B;AACzC,cAAc,wBAAwB;AACtC,cAAc,sBAAsB;AACpC,cAAc,+BAA+B;AAC7C,cAAc,+BAA+B;AAC7C,cAAc,sBAAsB"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @index('./**/*.ts', f => `export * from '${f.path}.js'`)\nexport * from './lib/common/package-json.js';\nexport * from './lib/common/puq-options.js';\nexport * from './lib/dto/count-result.js';\nexport * from './lib/dto/delete-result.js';\nexport * from './lib/dto/relation-param.js';\nexport * from './lib/dto/update-result.js';\nexport * from './lib/model/base.js';\nexport * from './lib/model/id.js';\nexport * from './lib/model/timestamp.js';\nexport * from './lib/property/array.js';\nexport * from './lib/property/big-integer.js';\nexport * from './lib/property/boolean.js';\nexport * from './lib/property/common-number.js';\nexport * from './lib/property/common.js';\nexport * from './lib/property/database-type.js';\nexport * from './lib/property/date.js';\nexport * from './lib/property/integer-format.js';\nexport * from './lib/property/integer.js';\nexport * from './lib/property/model.js';\nexport * from './lib/property/number-format.js';\nexport * from './lib/property/number.js';\nexport * from './lib/property/object.js';\nexport * from './lib/property/property-type.js';\nexport * from './lib/property/property.js';\nexport * from './lib/property/relation-options.js';\nexport * from './lib/property/string-format.js';\nexport * from './lib/property/string.js';\nexport * from './lib/ui/icon.js';\nexport * from './lib/ui/input-type.js';\nexport * from './lib/utils/key-of.js';\nexport * from './lib/utils/keys.js';\nexport * from './lib/utils/pick-optional.js';\nexport * from './lib/utils/pick-required.js';\nexport * from './lib/utils/type.js';\n"],"names":[],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,2DAA2D;AAC3D,cAAc,+BAA+B;AAC7C,cAAc,8BAA8B;AAC5C,cAAc,4BAA4B;AAC1C,cAAc,6BAA6B;AAC3C,cAAc,8BAA8B;AAC5C,cAAc,6BAA6B;AAC3C,cAAc,sBAAsB;AACpC,cAAc,oBAAoB;AAClC,cAAc,2BAA2B;AACzC,cAAc,0BAA0B;AACxC,cAAc,gCAAgC;AAC9C,cAAc,4BAA4B;AAC1C,cAAc,kCAAkC;AAChD,cAAc,2BAA2B;AACzC,cAAc,kCAAkC;AAChD,cAAc,yBAAyB;AACvC,cAAc,mCAAmC;AACjD,cAAc,4BAA4B;AAC1C,cAAc,0BAA0B;AACxC,cAAc,kCAAkC;AAChD,cAAc,2BAA2B;AACzC,cAAc,2BAA2B;AACzC,cAAc,kCAAkC;AAChD,cAAc,6BAA6B;AAC3C,cAAc,qCAAqC;AACnD,cAAc,kCAAkC;AAChD,cAAc,2BAA2B;AACzC,cAAc,mBAAmB;AACjC,cAAc,yBAAyB;AACvC,cAAc,wBAAwB;AACtC,cAAc,sBAAsB;AACpC,cAAc,+BAA+B;AAC7C,cAAc,+BAA+B;AAC7C,cAAc,sBAAsB"}
@@ -1,3 +1,4 @@
1
+ import { PuqOptions } from './puq-options.js';
1
2
  export type PackageJSON = {
2
3
  name: string;
3
4
  version: string;
@@ -68,5 +69,6 @@ export type PackageJSON = {
68
69
  dependencies: Record<string, string>;
69
70
  devDependencies: Record<string, string>;
70
71
  peerDependencies: Record<string, string>;
72
+ puq: PuqOptions;
71
73
  };
72
74
  //# sourceMappingURL=package-json.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../../src/lib/common/package-json.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,UAAU,EAAE;QACV,SAAS,EAAE,MAAM,CAAC;QAClB,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,aAAa,EAAE;QACb,MAAM,EAAE,MAAM,CAAC;QACf,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,YAAY,EAAE;QACZ;YACE,KAAK,EAAE,MAAM,CAAC;YACd,IAAI,EAAE,MAAM,CAAC;YACb,GAAG,EAAE,MAAM,CAAC;SACb;KACF,CAAC;IACF,OAAO,EAAE;QACP,gBAAgB,EAAE,MAAM,CAAC;QACzB,GAAG,EAAE;YACH,KAAK,EAAE,MAAM,CAAC;YACd,MAAM,EAAE,MAAM,CAAC;YACf,OAAO,EAAE,MAAM,CAAC;SACjB,CAAC;KACH,CAAC;IACF,EAAE,EAAE;QACF,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE;YACP,KAAK,EAAE;gBACL,QAAQ,EAAE,MAAM,CAAC;gBACjB,OAAO,EAAE,MAAM,EAAE,CAAC;gBAClB,OAAO,EAAE;oBACP,UAAU,EAAE,MAAM,CAAC;oBACnB,IAAI,EAAE,MAAM,CAAC;oBACb,QAAQ,EAAE,MAAM,CAAC;oBACjB,aAAa,EAAE,IAAI,CAAC;oBACpB,iBAAiB,EAAE,IAAI,CAAC;iBACzB,CAAC;aACH,CAAC;YACF,GAAG,EAAE;gBACH,OAAO,EAAE,MAAM,CAAC;aACjB,CAAC;SACH,CAAC;KACH,CAAC;IACF,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1C,CAAC"}
1
+ {"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../../src/lib/common/package-json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,C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E,CAAC;gBAClB,OAAO,EAAE;oBACP,UAAU,EAAE,MAAM,CAAC;oBACnB,IAAI,EAAE,MAAM,CAAC;oBACb,QAAQ,EAAE,MAAM,CAAC;oBACjB,aAAa,EAAE,IAAI,CAAC;oBACpB,iBAAiB,EAAE,IAAI,CAAC;iBACzB,CAAC;aACH,CAAC;YACF,GAAG,EAAE;gBACH,OAAO,EAAE,MAAM,CAAC;aACjB,CAAC;SACH,CAAC;KACH,CAAC;IACF,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,GAAG,EAAE,UAAU,CAAC;CACjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/common/package-json.ts"],"sourcesContent":["export type PackageJSON = {\r\n name: string;\r\n version: string;\r\n license: string;\r\n description: string;\r\n keywords: string[];\r\n homepage: string;\r\n categories: string[];\r\n funding: string[];\r\n icon: string;\r\n type: string;\r\n main: string;\r\n module: string;\r\n types: string;\r\n author: {\r\n email: string;\r\n name: string;\r\n url: string;\r\n };\r\n repository: {\r\n directory: string;\r\n url: string;\r\n type: string;\r\n };\r\n bugs: {\r\n email: string;\r\n url: string;\r\n };\r\n publishConfig: {\r\n access: string;\r\n tag: string;\r\n };\r\n files: string[];\r\n contributors: [\r\n {\r\n email: string;\r\n name: string;\r\n url: string;\r\n }\r\n ];\r\n exports: {\r\n './package.json': string;\r\n '.': {\r\n types: string;\r\n import: string;\r\n default: string;\r\n };\r\n };\r\n nx: {\r\n sourceRoot: string;\r\n targets: {\r\n build: {\r\n executor: string;\r\n outputs: string[];\r\n options: {\r\n outputPath: string;\r\n main: string;\r\n tsConfig: string;\r\n skipTypeCheck: true;\r\n stripLeadingPaths: true;\r\n };\r\n };\r\n doc: {\r\n command: string;\r\n };\r\n };\r\n };\r\n dependencies: Record<string, string>;\r\n devDependencies: Record<string, string>;\r\n peerDependencies: Record<string, string>;\r\n};\r\n"],"names":[],"rangeMappings":"","mappings":"AAAA,WAsEE"}
1
+ {"version":3,"sources":["../../../src/lib/common/package-json.ts"],"sourcesContent":["import { PuqOptions } from './puq-options.js';\r\n\r\nexport type PackageJSON = {\r\n name: string;\r\n version: string;\r\n license: string;\r\n description: string;\r\n keywords: string[];\r\n homepage: string;\r\n categories: string[];\r\n funding: string[];\r\n icon: string;\r\n type: string;\r\n main: string;\r\n module: string;\r\n types: string;\r\n author: {\r\n email: string;\r\n name: string;\r\n url: string;\r\n };\r\n repository: {\r\n directory: string;\r\n url: string;\r\n type: string;\r\n };\r\n bugs: {\r\n email: string;\r\n url: string;\r\n };\r\n publishConfig: {\r\n access: string;\r\n tag: string;\r\n };\r\n files: string[];\r\n contributors: [\r\n {\r\n email: string;\r\n name: string;\r\n url: string;\r\n }\r\n ];\r\n exports: {\r\n './package.json': string;\r\n '.': {\r\n types: string;\r\n import: string;\r\n default: string;\r\n };\r\n };\r\n nx: {\r\n sourceRoot: string;\r\n targets: {\r\n build: {\r\n executor: string;\r\n outputs: string[];\r\n options: {\r\n outputPath: string;\r\n main: string;\r\n tsConfig: string;\r\n skipTypeCheck: true;\r\n stripLeadingPaths: true;\r\n };\r\n };\r\n doc: {\r\n command: string;\r\n };\r\n };\r\n };\r\n dependencies: Record<string, string>;\r\n devDependencies: Record<string, string>;\r\n peerDependencies: Record<string, string>;\r\n puq: PuqOptions;\r\n};\r\n"],"names":[],"rangeMappings":"","mappings":"AAEA,WAuEE"}
@@ -0,0 +1,27 @@
1
+ export type PuqOptions = {
2
+ /**
3
+ * Library directory such as `./libs`, `./packages`
4
+ */
5
+ libsRoot: string;
6
+ /**
7
+ * Servce directory such as `./services`, `./apis`, `./apps`
8
+ */
9
+ servicesRoot: string;
10
+ /**
11
+ * Model library name such as `model`
12
+ */
13
+ modelLibrary: string;
14
+ /**
15
+ * Entity library name such as `entity`, `tables`, `database`
16
+ */
17
+ entityLibrary: string;
18
+ /**
19
+ * Resource library name such as `resource`, `controllers`, `modules`
20
+ */
21
+ resourceLibrary: string;
22
+ /**
23
+ * Metadata files directory that contains the `.model.yaml` model metadata files
24
+ */
25
+ metadataRoot: string;
26
+ };
27
+ //# sourceMappingURL=puq-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"puq-options.d.ts","sourceRoot":"","sources":["../../../src/lib/common/puq-options.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { };
2
+
3
+ //# sourceMappingURL=puq-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/lib/common/puq-options.ts"],"sourcesContent":["export type PuqOptions = {\r\n /**\r\n * Library directory such as `./libs`, `./packages`\r\n */\r\n libsRoot: string;\r\n\r\n /**\r\n * Servce directory such as `./services`, `./apis`, `./apps`\r\n */\r\n servicesRoot: string;\r\n\r\n /**\r\n * Model library name such as `model`\r\n */\r\n modelLibrary: string;\r\n /**\r\n * Entity library name such as `entity`, `tables`, `database`\r\n */\r\n entityLibrary: string;\r\n\r\n /**\r\n * Resource library name such as `resource`, `controllers`, `modules`\r\n */\r\n resourceLibrary: string;\r\n\r\n /**\r\n * Metadata files directory that contains the `.model.yaml` model metadata files\r\n */\r\n metadataRoot: string;\r\n};\r\n"],"names":[],"rangeMappings":"","mappings":"AAAA,WA6BE"}
@@ -0,0 +1,12 @@
1
+ import { DatabaseType } from './database-type.js';
2
+ import { PropertyOptions } from './property.js';
3
+ import { RelationOptions } from './relation-options.js';
4
+ export type Model = {
5
+ databaseType?: DatabaseType;
6
+ description?: string;
7
+ properties?: Record<string, PropertyOptions>;
8
+ relations?: Record<string, RelationOptions>;
9
+ uniques?: string[];
10
+ required?: string[];
11
+ };
12
+ //# sourceMappingURL=model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/lib/property/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,MAAM,KAAK,GAAG;IAClB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC5C,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { };
2
+
3
+ //# sourceMappingURL=model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/lib/property/model.ts"],"sourcesContent":["import { DatabaseType } from './database-type.js';\r\nimport { PropertyOptions } from './property.js';\r\nimport { RelationOptions } from './relation-options.js';\r\n\r\nexport type Model = {\r\n databaseType?: DatabaseType;\r\n description?: string;\r\n properties?: Record<string, PropertyOptions>;\r\n relations?: Record<string, RelationOptions>;\r\n uniques?: string[];\r\n required?: string[];\r\n};\r\n"],"names":[],"rangeMappings":"","mappings":"AAIA,WAOE"}
@@ -0,0 +1,16 @@
1
+ export type RelationType = 'many-to-many' | 'many-to-one' | 'one-to-one' | 'one-to-many';
2
+ export type OnDelete = 'RESTRICT' | 'CASCADE' | 'SET NULL' | 'DEFAULT' | 'NO ACTION';
3
+ export type OnUpdate = OnDelete;
4
+ export type Cascade = boolean | ('insert' | 'update' | 'remove' | 'soft-remove' | 'recover')[];
5
+ export type RelationOptions = {
6
+ type: RelationType;
7
+ description?: string;
8
+ target: string;
9
+ nullable?: boolean;
10
+ eager?: boolean;
11
+ join?: boolean;
12
+ cascade?: Cascade;
13
+ onDelete?: OnDelete;
14
+ onUpdate?: OnUpdate;
15
+ };
16
+ //# sourceMappingURL=relation-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relation-options.d.ts","sourceRoot":"","sources":["../../../src/lib/property/relation-options.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GACpB,cAAc,GACd,aAAa,GACb,YAAY,GACZ,aAAa,CAAC;AAElB,MAAM,MAAM,QAAQ,GAChB,UAAU,GACV,SAAS,GACT,UAAU,GACV,SAAS,GACT,WAAW,CAAC;AAChB,MAAM,MAAM,QAAQ,GAAG,QAAQ,CAAC;AAEhC,MAAM,MAAM,OAAO,GACf,OAAO,GACP,CAAC,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC;AAEnE,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,YAAY,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { };
2
+
3
+ //# sourceMappingURL=relation-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/lib/property/relation-options.ts"],"sourcesContent":["export type RelationType =\r\n | 'many-to-many'\r\n | 'many-to-one'\r\n | 'one-to-one'\r\n | 'one-to-many';\r\n\r\nexport type OnDelete =\r\n | 'RESTRICT'\r\n | 'CASCADE'\r\n | 'SET NULL'\r\n | 'DEFAULT'\r\n | 'NO ACTION';\r\nexport type OnUpdate = OnDelete;\r\n\r\nexport type Cascade =\r\n | boolean\r\n | ('insert' | 'update' | 'remove' | 'soft-remove' | 'recover')[];\r\n\r\nexport type RelationOptions = {\r\n type: RelationType;\r\n description?: string;\r\n target: string;\r\n nullable?: boolean;\r\n eager?: boolean;\r\n join?: boolean;\r\n cascade?: Cascade;\r\n onDelete?: OnDelete;\r\n onUpdate?: OnUpdate;\r\n};\r\n"],"names":[],"rangeMappings":"","mappings":"AAkBA,WAUE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@puq/type",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public",