@skmtc/core 0.0.337 → 0.0.338

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.
@@ -1,6 +1,6 @@
1
1
  export declare class EntityType {
2
- type: 'value' | 'type';
3
- constructor(type: 'value' | 'type');
2
+ type: 'variable' | 'type';
3
+ constructor(type: 'variable' | 'type');
4
4
  toString(): string;
5
5
  }
6
6
  //# sourceMappingURL=EntityType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EntityType.d.ts","sourceRoot":"","sources":["../../src/dsl/EntityType.ts"],"names":[],"mappings":"AAEA,qBAAa,UAAU;IACrB,IAAI,EAAE,OAAO,GAAG,MAAM,CAAA;gBACV,IAAI,EAAE,OAAO,GAAG,MAAM;IAIlC,QAAQ,IAAI,MAAM;CAMnB"}
1
+ {"version":3,"file":"EntityType.d.ts","sourceRoot":"","sources":["../../src/dsl/EntityType.ts"],"names":[],"mappings":"AAEA,qBAAa,UAAU;IACrB,IAAI,EAAE,UAAU,GAAG,MAAM,CAAA;gBACb,IAAI,EAAE,UAAU,GAAG,MAAM;IAIrC,QAAQ,IAAI,MAAM;CAMnB"}
@@ -11,7 +11,7 @@ export class EntityType {
11
11
  }
12
12
  toString() {
13
13
  return match(this.type)
14
- .with('value', () => 'const')
14
+ .with('variable', () => 'const')
15
15
  .with('type', () => 'type')
16
16
  .exhaustive();
17
17
  }
@@ -29,14 +29,14 @@ export class Identifier {
29
29
  .with(P.string, name => {
30
30
  return new Identifier({
31
31
  name,
32
- entityType: new EntityType('value')
32
+ entityType: new EntityType('variable')
33
33
  });
34
34
  })
35
35
  .otherwise(({ name, tsType }) => {
36
36
  return new Identifier({
37
37
  name,
38
38
  tsType,
39
- entityType: new EntityType('value')
39
+ entityType: new EntityType('variable')
40
40
  });
41
41
  });
42
42
  }
@@ -94,7 +94,7 @@ export class ModelDriver {
94
94
  ? value.tsType
95
95
  : undefined;
96
96
  const identifier = match(this.insertable.entityType.type)
97
- .with('value', () => Identifier.createValue({ name, tsType }))
97
+ .with('variable', () => Identifier.createValue({ name, tsType }))
98
98
  .with('type', () => Identifier.createType(name))
99
99
  .exhaustive();
100
100
  const definition = new Definition({
@@ -93,7 +93,7 @@ export class OperationDriver {
93
93
  ? value.tsType
94
94
  : undefined;
95
95
  const identifier = match(this.insertable.entityType.type)
96
- .with('value', () => Identifier.createValue({ name, tsType }))
96
+ .with('variable', () => Identifier.createValue({ name, tsType }))
97
97
  .with('type', () => Identifier.createType(name))
98
98
  .exhaustive();
99
99
  const definition = new Definition({
@@ -24,7 +24,7 @@ export const toOperationInsertable = (config) => {
24
24
  enumerable: true,
25
25
  configurable: true,
26
26
  writable: true,
27
- value: config.entityType ?? new EntityType('value')
27
+ value: config.entityType ?? new EntityType('variable')
28
28
  }),
29
29
  Object.defineProperty(_a, "toName", {
30
30
  enumerable: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skmtc/core",
3
- "version": "0.0.337",
3
+ "version": "0.0.338",
4
4
  "main": "./script/mod.js",
5
5
  "module": "./esm/mod.js",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  export declare class EntityType {
2
- type: 'value' | 'type';
3
- constructor(type: 'value' | 'type');
2
+ type: 'variable' | 'type';
3
+ constructor(type: 'variable' | 'type');
4
4
  toString(): string;
5
5
  }
6
6
  //# sourceMappingURL=EntityType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EntityType.d.ts","sourceRoot":"","sources":["../../src/dsl/EntityType.ts"],"names":[],"mappings":"AAEA,qBAAa,UAAU;IACrB,IAAI,EAAE,OAAO,GAAG,MAAM,CAAA;gBACV,IAAI,EAAE,OAAO,GAAG,MAAM;IAIlC,QAAQ,IAAI,MAAM;CAMnB"}
1
+ {"version":3,"file":"EntityType.d.ts","sourceRoot":"","sources":["../../src/dsl/EntityType.ts"],"names":[],"mappings":"AAEA,qBAAa,UAAU;IACrB,IAAI,EAAE,UAAU,GAAG,MAAM,CAAA;gBACb,IAAI,EAAE,UAAU,GAAG,MAAM;IAIrC,QAAQ,IAAI,MAAM;CAMnB"}
@@ -14,7 +14,7 @@ class EntityType {
14
14
  }
15
15
  toString() {
16
16
  return (0, ts_pattern_1.match)(this.type)
17
- .with('value', () => 'const')
17
+ .with('variable', () => 'const')
18
18
  .with('type', () => 'type')
19
19
  .exhaustive();
20
20
  }
@@ -32,14 +32,14 @@ class Identifier {
32
32
  .with(ts_pattern_1.P.string, name => {
33
33
  return new Identifier({
34
34
  name,
35
- entityType: new EntityType_js_1.EntityType('value')
35
+ entityType: new EntityType_js_1.EntityType('variable')
36
36
  });
37
37
  })
38
38
  .otherwise(({ name, tsType }) => {
39
39
  return new Identifier({
40
40
  name,
41
41
  tsType,
42
- entityType: new EntityType_js_1.EntityType('value')
42
+ entityType: new EntityType_js_1.EntityType('variable')
43
43
  });
44
44
  });
45
45
  }
@@ -97,7 +97,7 @@ class ModelDriver {
97
97
  ? value.tsType
98
98
  : undefined;
99
99
  const identifier = (0, ts_pattern_1.match)(this.insertable.entityType.type)
100
- .with('value', () => Identifier_js_1.Identifier.createValue({ name, tsType }))
100
+ .with('variable', () => Identifier_js_1.Identifier.createValue({ name, tsType }))
101
101
  .with('type', () => Identifier_js_1.Identifier.createType(name))
102
102
  .exhaustive();
103
103
  const definition = new Definition_js_1.Definition({
@@ -96,7 +96,7 @@ class OperationDriver {
96
96
  ? value.tsType
97
97
  : undefined;
98
98
  const identifier = (0, ts_pattern_1.match)(this.insertable.entityType.type)
99
- .with('value', () => Identifier_js_1.Identifier.createValue({ name, tsType }))
99
+ .with('variable', () => Identifier_js_1.Identifier.createValue({ name, tsType }))
100
100
  .with('type', () => Identifier_js_1.Identifier.createType(name))
101
101
  .exhaustive();
102
102
  const definition = new Definition_js_1.Definition({
@@ -27,7 +27,7 @@ const toOperationInsertable = (config) => {
27
27
  enumerable: true,
28
28
  configurable: true,
29
29
  writable: true,
30
- value: config.entityType ?? new EntityType_js_1.EntityType('value')
30
+ value: config.entityType ?? new EntityType_js_1.EntityType('variable')
31
31
  }),
32
32
  Object.defineProperty(_a, "toName", {
33
33
  enumerable: true,