@skmtc/core 0.0.343 → 0.0.345

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.
@@ -27,24 +27,24 @@ export declare const toModelConfig: ({ id, entityType, toName, toExportPath, isS
27
27
  generatorKey: import("../../types/GeneratorKeys.js").GeneratorKey | undefined;
28
28
  };
29
29
  id: string;
30
- type: string;
31
- _class: string;
30
+ type: "model";
31
+ _class: "ModelInsertable";
32
32
  entityType: EntityType;
33
33
  toName: ({ refName, baseSettings }: ToModelNameArgs) => string;
34
34
  toExportPath: ({ refName, baseSettings }: ToModelExportPathArgs) => string;
35
- isSelected: (({ refName, baseSettings }: IsModelSelectedArgs) => boolean) | undefined;
36
- pinnable: boolean;
35
+ isSelected: ({ refName, baseSettings }: IsModelSelectedArgs) => boolean;
37
36
  isSupported: () => boolean;
37
+ pinnable: boolean;
38
38
  };
39
39
  ModelGateway: {
40
40
  new (context: GenerateContext): {
41
41
  context: GenerateContext;
42
42
  };
43
43
  id: string;
44
- type: string;
45
- _class: string;
46
- pinnable: boolean;
44
+ type: "model";
45
+ _class: "ModelGateway";
47
46
  isSupported: () => boolean;
47
+ pinnable: boolean;
48
48
  };
49
49
  };
50
50
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"toModelConfig.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/toModelConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAEvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EAChB,MAAM,sBAAsB,CAAA;AAG7B,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,eA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AAA;IACV,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,eAAe,KAAK,MAAM,CAAA;IAC9D,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,qBAAqB,KAAK,MAAM,CAAA;IAC1E,UAAU,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,mBAAmB,KAAK,OAAO,CAAA;CACzE,CAAA;AAED,eAAO,MAAM,aAAa,yDAMvB,iBAAiB;;mBAYE,mBAAmB;;;;;;;;;;;;;4CAvBH,eAAe,KAAK,MAAM;kDACpB,qBAAqB,KAAK,MAAM;gDACjC,mBAAmB,KAAK,OAAO;;;;;sBAuCjD,eAAe;;;;;;;;;CAMvC,CAAA"}
@@ -60,19 +60,19 @@ export const toModelConfig = ({ id, entityType, toName, toExportPath, isSelected
60
60
  enumerable: true,
61
61
  configurable: true,
62
62
  writable: true,
63
- value: isSelected
63
+ value: isSelected ?? (() => true)
64
64
  }),
65
- Object.defineProperty(_a, "pinnable", {
65
+ Object.defineProperty(_a, "isSupported", {
66
66
  enumerable: true,
67
67
  configurable: true,
68
68
  writable: true,
69
- value: false
69
+ value: () => true
70
70
  }),
71
- Object.defineProperty(_a, "isSupported", {
71
+ Object.defineProperty(_a, "pinnable", {
72
72
  enumerable: true,
73
73
  configurable: true,
74
74
  writable: true,
75
- value: () => true
75
+ value: false
76
76
  }),
77
77
  _a);
78
78
  const ModelGateway = (_b = class extends GatewayBase {
@@ -99,17 +99,17 @@ export const toModelConfig = ({ id, entityType, toName, toExportPath, isSelected
99
99
  writable: true,
100
100
  value: 'ModelGateway'
101
101
  }),
102
- Object.defineProperty(_b, "pinnable", {
102
+ Object.defineProperty(_b, "isSupported", {
103
103
  enumerable: true,
104
104
  configurable: true,
105
105
  writable: true,
106
- value: false
106
+ value: () => true
107
107
  }),
108
- Object.defineProperty(_b, "isSupported", {
108
+ Object.defineProperty(_b, "pinnable", {
109
109
  enumerable: true,
110
110
  configurable: true,
111
111
  writable: true,
112
- value: () => true
112
+ value: false
113
113
  }),
114
114
  _b);
115
115
  return { ModelInsertable, ModelGateway };
@@ -37,8 +37,8 @@ export declare const toOperationConfig: ({ id, entityType, toName, toExportPath,
37
37
  generatorKey: import("../../types/GeneratorKeys.js").GeneratorKey | undefined;
38
38
  };
39
39
  id: string;
40
- type: string;
41
- _class: string;
40
+ type: "operation";
41
+ _class: "OperationInsertable";
42
42
  entityType: EntityType;
43
43
  toName: ({ operation, baseSettings }: ToOperationNameArgs) => string;
44
44
  toExportPath: ({ operation, baseSettings }: ToOperationExportPathArgs) => string;
@@ -51,8 +51,8 @@ export declare const toOperationConfig: ({ id, entityType, toName, toExportPath,
51
51
  context: GenerateContext;
52
52
  };
53
53
  id: string;
54
- type: string;
55
- _class: string;
54
+ type: "operation";
55
+ _class: "OperationGateway";
56
56
  isSupported: (operation: OasOperation) => boolean;
57
57
  pinnable: boolean;
58
58
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skmtc/core",
3
- "version": "0.0.343",
3
+ "version": "0.0.345",
4
4
  "main": "./script/mod.js",
5
5
  "module": "./esm/mod.js",
6
6
  "exports": {
@@ -27,24 +27,24 @@ export declare const toModelConfig: ({ id, entityType, toName, toExportPath, isS
27
27
  generatorKey: import("../../types/GeneratorKeys.js").GeneratorKey | undefined;
28
28
  };
29
29
  id: string;
30
- type: string;
31
- _class: string;
30
+ type: "model";
31
+ _class: "ModelInsertable";
32
32
  entityType: EntityType;
33
33
  toName: ({ refName, baseSettings }: ToModelNameArgs) => string;
34
34
  toExportPath: ({ refName, baseSettings }: ToModelExportPathArgs) => string;
35
- isSelected: (({ refName, baseSettings }: IsModelSelectedArgs) => boolean) | undefined;
36
- pinnable: boolean;
35
+ isSelected: ({ refName, baseSettings }: IsModelSelectedArgs) => boolean;
37
36
  isSupported: () => boolean;
37
+ pinnable: boolean;
38
38
  };
39
39
  ModelGateway: {
40
40
  new (context: GenerateContext): {
41
41
  context: GenerateContext;
42
42
  };
43
43
  id: string;
44
- type: string;
45
- _class: string;
46
- pinnable: boolean;
44
+ type: "model";
45
+ _class: "ModelGateway";
47
46
  isSupported: () => boolean;
47
+ pinnable: boolean;
48
48
  };
49
49
  };
50
50
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"toModelConfig.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/toModelConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAEvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EAChB,MAAM,sBAAsB,CAAA;AAG7B,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,eAAe,CAAA;IACxB,QAAQ,EAAE,eAAe,CAAA;IACzB,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,eAAe,KAAK,MAAM,CAAA;IAC9D,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,qBAAqB,KAAK,MAAM,CAAA;IAC1E,UAAU,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,mBAAmB,KAAK,OAAO,CAAA;CACzE,CAAA;AAED,eAAO,MAAM,aAAa,yDAMvB,iBAAiB;;mBAYE,mBAAmB;;;;;;;;;;;;;4CAvBH,eAAe,KAAK,MAAM;kDACpB,qBAAqB,KAAK,MAAM;iDACjC,mBAAmB,KAAK,OAAO;;;;;sBAuCjD,eAAe;;;;;;;;;CAMvC,CAAA"}
1
+ {"version":3,"file":"toModelConfig.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/toModelConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAEvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EAChB,MAAM,sBAAsB,CAAA;AAG7B,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,eAAe,CAAA;IACxB,QAAQ,EAAE,eAAe,CAAA;IACzB,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,eAAe,KAAK,MAAM,CAAA;IAC9D,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,qBAAqB,KAAK,MAAM,CAAA;IAC1E,UAAU,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,mBAAmB,KAAK,OAAO,CAAA;CACzE,CAAA;AAED,eAAO,MAAM,aAAa,yDAMvB,iBAAiB;;mBAYE,mBAAmB;;;;;;;;;;;;;4CAvBH,eAAe,KAAK,MAAM;kDACpB,qBAAqB,KAAK,MAAM;gDACjC,mBAAmB,KAAK,OAAO;;;;;sBAuCjD,eAAe;;;;;;;;;CAMvC,CAAA"}
@@ -63,19 +63,19 @@ const toModelConfig = ({ id, entityType, toName, toExportPath, isSelected }) =>
63
63
  enumerable: true,
64
64
  configurable: true,
65
65
  writable: true,
66
- value: isSelected
66
+ value: isSelected ?? (() => true)
67
67
  }),
68
- Object.defineProperty(_a, "pinnable", {
68
+ Object.defineProperty(_a, "isSupported", {
69
69
  enumerable: true,
70
70
  configurable: true,
71
71
  writable: true,
72
- value: false
72
+ value: () => true
73
73
  }),
74
- Object.defineProperty(_a, "isSupported", {
74
+ Object.defineProperty(_a, "pinnable", {
75
75
  enumerable: true,
76
76
  configurable: true,
77
77
  writable: true,
78
- value: () => true
78
+ value: false
79
79
  }),
80
80
  _a);
81
81
  const ModelGateway = (_b = class extends GeneratorBase_js_1.GatewayBase {
@@ -102,17 +102,17 @@ const toModelConfig = ({ id, entityType, toName, toExportPath, isSelected }) =>
102
102
  writable: true,
103
103
  value: 'ModelGateway'
104
104
  }),
105
- Object.defineProperty(_b, "pinnable", {
105
+ Object.defineProperty(_b, "isSupported", {
106
106
  enumerable: true,
107
107
  configurable: true,
108
108
  writable: true,
109
- value: false
109
+ value: () => true
110
110
  }),
111
- Object.defineProperty(_b, "isSupported", {
111
+ Object.defineProperty(_b, "pinnable", {
112
112
  enumerable: true,
113
113
  configurable: true,
114
114
  writable: true,
115
- value: () => true
115
+ value: false
116
116
  }),
117
117
  _b);
118
118
  return { ModelInsertable, ModelGateway };
@@ -37,8 +37,8 @@ export declare const toOperationConfig: ({ id, entityType, toName, toExportPath,
37
37
  generatorKey: import("../../types/GeneratorKeys.js").GeneratorKey | undefined;
38
38
  };
39
39
  id: string;
40
- type: string;
41
- _class: string;
40
+ type: "operation";
41
+ _class: "OperationInsertable";
42
42
  entityType: EntityType;
43
43
  toName: ({ operation, baseSettings }: ToOperationNameArgs) => string;
44
44
  toExportPath: ({ operation, baseSettings }: ToOperationExportPathArgs) => string;
@@ -51,8 +51,8 @@ export declare const toOperationConfig: ({ id, entityType, toName, toExportPath,
51
51
  context: GenerateContext;
52
52
  };
53
53
  id: string;
54
- type: string;
55
- _class: string;
54
+ type: "operation";
55
+ _class: "OperationGateway";
56
56
  isSupported: (operation: OasOperation) => boolean;
57
57
  pinnable: boolean;
58
58
  };