@skmtc/core 0.0.380 → 0.0.382

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.
Files changed (93) hide show
  1. package/esm/context/CoreContext.d.ts +2 -2
  2. package/esm/context/CoreContext.d.ts.map +1 -1
  3. package/esm/context/CoreContext.js +0 -1
  4. package/esm/context/GenerateContext.d.ts +46 -14
  5. package/esm/context/GenerateContext.d.ts.map +1 -1
  6. package/esm/context/GenerateContext.js +187 -76
  7. package/esm/context/RenderContext.d.ts +3 -3
  8. package/esm/context/RenderContext.d.ts.map +1 -1
  9. package/esm/context/types.d.ts +2 -2
  10. package/esm/context/types.d.ts.map +1 -1
  11. package/esm/dsl/model/ModelBase.d.ts.map +1 -1
  12. package/esm/dsl/model/ModelBase.js +1 -1
  13. package/esm/dsl/model/ModelInsertable.d.ts +13 -5
  14. package/esm/dsl/model/ModelInsertable.d.ts.map +1 -1
  15. package/esm/dsl/model/toModelGateway.d.ts +26 -0
  16. package/esm/dsl/model/toModelGateway.d.ts.map +1 -0
  17. package/esm/dsl/model/toModelGateway.js +70 -0
  18. package/esm/dsl/model/toModelInsertable.d.ts +36 -0
  19. package/esm/dsl/model/toModelInsertable.d.ts.map +1 -0
  20. package/esm/dsl/model/{toModelBase.js → toModelInsertable.js} +3 -41
  21. package/esm/dsl/operation/OperationBase.d.ts.map +1 -1
  22. package/esm/dsl/operation/OperationBase.js +1 -1
  23. package/esm/dsl/operation/OperationInsertable.d.ts +17 -5
  24. package/esm/dsl/operation/OperationInsertable.d.ts.map +1 -1
  25. package/esm/dsl/operation/toOperationGateway.d.ts +28 -0
  26. package/esm/dsl/operation/toOperationGateway.d.ts.map +1 -0
  27. package/esm/dsl/operation/toOperationGateway.js +70 -0
  28. package/esm/dsl/operation/toOperationInsertable.d.ts +43 -0
  29. package/esm/dsl/operation/toOperationInsertable.d.ts.map +1 -0
  30. package/esm/dsl/operation/{toOperationBase.js → toOperationInsertable.js} +3 -41
  31. package/esm/helpers/ResultsLog.d.ts +2 -2
  32. package/esm/helpers/ResultsLog.d.ts.map +1 -1
  33. package/esm/helpers/ResultsLog.js +11 -3
  34. package/esm/mod.d.ts +4 -2
  35. package/esm/mod.d.ts.map +1 -1
  36. package/esm/mod.js +4 -2
  37. package/esm/types/Results.d.ts +3 -3
  38. package/esm/types/Results.d.ts.map +1 -1
  39. package/esm/types/Results.js +2 -2
  40. package/esm/types/Settings.d.ts +24 -12
  41. package/esm/types/Settings.d.ts.map +1 -1
  42. package/esm/types/Settings.js +4 -3
  43. package/package.json +1 -1
  44. package/script/context/CoreContext.d.ts +2 -2
  45. package/script/context/CoreContext.d.ts.map +1 -1
  46. package/script/context/CoreContext.js +0 -1
  47. package/script/context/GenerateContext.d.ts +46 -14
  48. package/script/context/GenerateContext.d.ts.map +1 -1
  49. package/script/context/GenerateContext.js +187 -76
  50. package/script/context/RenderContext.d.ts +3 -3
  51. package/script/context/RenderContext.d.ts.map +1 -1
  52. package/script/context/types.d.ts +2 -2
  53. package/script/context/types.d.ts.map +1 -1
  54. package/script/dsl/model/ModelBase.d.ts.map +1 -1
  55. package/script/dsl/model/ModelBase.js +1 -1
  56. package/script/dsl/model/ModelInsertable.d.ts +13 -5
  57. package/script/dsl/model/ModelInsertable.d.ts.map +1 -1
  58. package/script/dsl/model/toModelGateway.d.ts +26 -0
  59. package/script/dsl/model/toModelGateway.d.ts.map +1 -0
  60. package/script/dsl/model/toModelGateway.js +74 -0
  61. package/script/dsl/model/toModelInsertable.d.ts +36 -0
  62. package/script/dsl/model/toModelInsertable.d.ts.map +1 -0
  63. package/script/dsl/model/{toModelBase.js → toModelInsertable.js} +5 -43
  64. package/script/dsl/operation/OperationBase.d.ts.map +1 -1
  65. package/script/dsl/operation/OperationBase.js +1 -1
  66. package/script/dsl/operation/OperationInsertable.d.ts +17 -5
  67. package/script/dsl/operation/OperationInsertable.d.ts.map +1 -1
  68. package/script/dsl/operation/toOperationGateway.d.ts +28 -0
  69. package/script/dsl/operation/toOperationGateway.d.ts.map +1 -0
  70. package/script/dsl/operation/toOperationGateway.js +74 -0
  71. package/script/dsl/operation/toOperationInsertable.d.ts +43 -0
  72. package/script/dsl/operation/toOperationInsertable.d.ts.map +1 -0
  73. package/script/dsl/operation/{toOperationBase.js → toOperationInsertable.js} +5 -43
  74. package/script/helpers/ResultsLog.d.ts +2 -2
  75. package/script/helpers/ResultsLog.d.ts.map +1 -1
  76. package/script/helpers/ResultsLog.js +11 -3
  77. package/script/mod.d.ts +4 -2
  78. package/script/mod.d.ts.map +1 -1
  79. package/script/mod.js +4 -2
  80. package/script/types/Results.d.ts +3 -3
  81. package/script/types/Results.d.ts.map +1 -1
  82. package/script/types/Results.js +3 -3
  83. package/script/types/Settings.d.ts +24 -12
  84. package/script/types/Settings.d.ts.map +1 -1
  85. package/script/types/Settings.js +4 -3
  86. package/esm/dsl/model/toModelBase.d.ts +0 -48
  87. package/esm/dsl/model/toModelBase.d.ts.map +0 -1
  88. package/esm/dsl/operation/toOperationBase.d.ts +0 -55
  89. package/esm/dsl/operation/toOperationBase.d.ts.map +0 -1
  90. package/script/dsl/model/toModelBase.d.ts +0 -48
  91. package/script/dsl/model/toModelBase.d.ts.map +0 -1
  92. package/script/dsl/operation/toOperationBase.d.ts +0 -55
  93. package/script/dsl/operation/toOperationBase.d.ts.map +0 -1
@@ -11,38 +11,41 @@ export type BaseSettings = {
11
11
  export type BaseSettingsKeyType = 'selected' | 'name' | 'importFrom' | 'exportPath';
12
12
  export declare const operationsGeneratorSettings: z.ZodObject<{
13
13
  id: z.ZodString;
14
- exportPath: z.ZodOptional<z.ZodString>;
15
14
  description: z.ZodOptional<z.ZodString>;
16
15
  operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>;
16
+ baseSettings: z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>;
17
17
  }, "strip", z.ZodTypeAny, {
18
18
  id: string;
19
19
  operations: Record<string, Partial<Record<Method, BaseSettings>>>;
20
+ baseSettings: BaseSettings;
20
21
  description?: string | undefined;
21
- exportPath?: string | undefined;
22
22
  }, {
23
23
  id: string;
24
24
  operations: Record<string, Partial<Record<Method, BaseSettings>>>;
25
+ baseSettings: BaseSettings;
25
26
  description?: string | undefined;
26
- exportPath?: string | undefined;
27
27
  }>;
28
28
  export type OperationsGeneratorSettings = {
29
29
  id: string;
30
- exportPath?: string;
31
30
  description?: string;
32
31
  operations: Record<string, Partial<Record<Method, BaseSettings>>>;
32
+ baseSettings: BaseSettings;
33
33
  };
34
34
  export declare const modelsGeneratorSettings: z.ZodObject<{
35
35
  id: z.ZodString;
36
36
  exportPath: z.ZodOptional<z.ZodString>;
37
37
  description: z.ZodOptional<z.ZodString>;
38
38
  models: z.ZodRecord<z.ZodString, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>;
39
+ baseSettings: z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>;
39
40
  }, "strip", z.ZodTypeAny, {
40
41
  id: string;
42
+ baseSettings: BaseSettings;
41
43
  models: Record<string, BaseSettings>;
42
44
  description?: string | undefined;
43
45
  exportPath?: string | undefined;
44
46
  }, {
45
47
  id: string;
48
+ baseSettings: BaseSettings;
46
49
  models: Record<string, BaseSettings>;
47
50
  description?: string | undefined;
48
51
  exportPath?: string | undefined;
@@ -52,34 +55,38 @@ export type ModelsGeneratorSettings = {
52
55
  exportPath?: string;
53
56
  description?: string;
54
57
  models: Record<string, BaseSettings>;
58
+ baseSettings: BaseSettings;
55
59
  };
56
60
  export declare const clientGeneratorSettings: z.ZodUnion<[z.ZodObject<{
57
61
  id: z.ZodString;
58
- exportPath: z.ZodOptional<z.ZodString>;
59
62
  description: z.ZodOptional<z.ZodString>;
60
63
  operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>;
64
+ baseSettings: z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>;
61
65
  }, "strip", z.ZodTypeAny, {
62
66
  id: string;
63
67
  operations: Record<string, Partial<Record<Method, BaseSettings>>>;
68
+ baseSettings: BaseSettings;
64
69
  description?: string | undefined;
65
- exportPath?: string | undefined;
66
70
  }, {
67
71
  id: string;
68
72
  operations: Record<string, Partial<Record<Method, BaseSettings>>>;
73
+ baseSettings: BaseSettings;
69
74
  description?: string | undefined;
70
- exportPath?: string | undefined;
71
75
  }>, z.ZodObject<{
72
76
  id: z.ZodString;
73
77
  exportPath: z.ZodOptional<z.ZodString>;
74
78
  description: z.ZodOptional<z.ZodString>;
75
79
  models: z.ZodRecord<z.ZodString, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>;
80
+ baseSettings: z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>;
76
81
  }, "strip", z.ZodTypeAny, {
77
82
  id: string;
83
+ baseSettings: BaseSettings;
78
84
  models: Record<string, BaseSettings>;
79
85
  description?: string | undefined;
80
86
  exportPath?: string | undefined;
81
87
  }, {
82
88
  id: string;
89
+ baseSettings: BaseSettings;
83
90
  models: Record<string, BaseSettings>;
84
91
  description?: string | undefined;
85
92
  exportPath?: string | undefined;
@@ -89,31 +96,34 @@ export declare const clientSettings: z.ZodObject<{
89
96
  basePath: z.ZodOptional<z.ZodString>;
90
97
  generators: z.ZodArray<z.ZodUnion<[z.ZodObject<{
91
98
  id: z.ZodString;
92
- exportPath: z.ZodOptional<z.ZodString>;
93
99
  description: z.ZodOptional<z.ZodString>;
94
100
  operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>;
101
+ baseSettings: z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>;
95
102
  }, "strip", z.ZodTypeAny, {
96
103
  id: string;
97
104
  operations: Record<string, Partial<Record<Method, BaseSettings>>>;
105
+ baseSettings: BaseSettings;
98
106
  description?: string | undefined;
99
- exportPath?: string | undefined;
100
107
  }, {
101
108
  id: string;
102
109
  operations: Record<string, Partial<Record<Method, BaseSettings>>>;
110
+ baseSettings: BaseSettings;
103
111
  description?: string | undefined;
104
- exportPath?: string | undefined;
105
112
  }>, z.ZodObject<{
106
113
  id: z.ZodString;
107
114
  exportPath: z.ZodOptional<z.ZodString>;
108
115
  description: z.ZodOptional<z.ZodString>;
109
116
  models: z.ZodRecord<z.ZodString, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>;
117
+ baseSettings: z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>;
110
118
  }, "strip", z.ZodTypeAny, {
111
119
  id: string;
120
+ baseSettings: BaseSettings;
112
121
  models: Record<string, BaseSettings>;
113
122
  description?: string | undefined;
114
123
  exportPath?: string | undefined;
115
124
  }, {
116
125
  id: string;
126
+ baseSettings: BaseSettings;
117
127
  models: Record<string, BaseSettings>;
118
128
  description?: string | undefined;
119
129
  exportPath?: string | undefined;
@@ -122,10 +132,11 @@ export declare const clientSettings: z.ZodObject<{
122
132
  generators: ({
123
133
  id: string;
124
134
  operations: Record<string, Partial<Record<Method, BaseSettings>>>;
135
+ baseSettings: BaseSettings;
125
136
  description?: string | undefined;
126
- exportPath?: string | undefined;
127
137
  } | {
128
138
  id: string;
139
+ baseSettings: BaseSettings;
129
140
  models: Record<string, BaseSettings>;
130
141
  description?: string | undefined;
131
142
  exportPath?: string | undefined;
@@ -135,10 +146,11 @@ export declare const clientSettings: z.ZodObject<{
135
146
  generators: ({
136
147
  id: string;
137
148
  operations: Record<string, Partial<Record<Method, BaseSettings>>>;
149
+ baseSettings: BaseSettings;
138
150
  description?: string | undefined;
139
- exportPath?: string | undefined;
140
151
  } | {
141
152
  id: string;
153
+ baseSettings: BaseSettings;
142
154
  models: Record<string, BaseSettings>;
143
155
  description?: string | undefined;
144
156
  exportPath?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Settings.d.ts","sourceRo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AAA;AAED,eAAO,MAAM,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAKzD,CAAA;AAEF,eAAO,MAAM,aAAa,mCAAiC,CAAA;AAE3D,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,OAAO,CAAA;AAEjD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAI5B,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB,CAAA"}
@@ -12,15 +12,16 @@ exports.baseSettings = zod_1.z.object({
12
12
  });
13
13
  exports.operationsGeneratorSettings = zod_1.z.object({
14
14
  id: zod_1.z.string(),
15
- exportPath: zod_1.z.string().optional(),
16
15
  description: zod_1.z.string().optional(),
17
- operations: zod_1.z.record(zod_1.z.record(Method_js_1.method, exports.baseSettings))
16
+ operations: zod_1.z.record(zod_1.z.record(Method_js_1.method, exports.baseSettings)),
17
+ baseSettings: exports.baseSettings
18
18
  });
19
19
  exports.modelsGeneratorSettings = zod_1.z.object({
20
20
  id: zod_1.z.string(),
21
21
  exportPath: zod_1.z.string().optional(),
22
22
  description: zod_1.z.string().optional(),
23
- models: zod_1.z.record(exports.baseSettings)
23
+ models: zod_1.z.record(exports.baseSettings),
24
+ baseSettings: exports.baseSettings
24
25
  });
25
26
  exports.clientGeneratorSettings = zod_1.z.union([
26
27
  exports.operationsGeneratorSettings,
@@ -1,48 +0,0 @@
1
- import type { GenerateContext } from '../../context/GenerateContext.js';
2
- import type { RefName } from '../../types/RefName.js';
3
- import type { ContentSettings } from '../ContentSettings.js';
4
- import type { IsModelSelectedArgs, ToModelExportPathArgs, ToModelInsertableArgs } from './ModelInsertable.js';
5
- import type { Identifier } from '../Identifier.js';
6
- export type ModelInsertableArgs = {
7
- context: GenerateContext;
8
- settings: ContentSettings;
9
- refName: RefName;
10
- };
11
- export type ModelConfig = {
12
- id: string;
13
- toIdentifier: ({ refName, baseSettings }: ToModelInsertableArgs) => Identifier;
14
- toExportPath: ({ refName, baseSettings }: ToModelExportPathArgs) => string;
15
- isSelected?: ({ refName, baseSettings }: IsModelSelectedArgs) => boolean;
16
- };
17
- export declare const toModelBase: (config: ModelConfig) => {
18
- ModelInsertable: {
19
- new (args: ModelInsertableArgs): {
20
- settings: ContentSettings;
21
- refName: RefName;
22
- generatorKey: import("../../types/GeneratorKeys.js").GeneratorKey;
23
- transform<V extends import("../../mod.js").GeneratedValue>(insertable: import("./ModelInsertable.js").ModelInsertable<V>, refName: RefName): import("../Inserted.js").Inserted<V, "force">;
24
- register(args: Partial<import("../../context/GenerateContext.js").RegisterArgs>): void;
25
- context: GenerateContext;
26
- skipped: boolean;
27
- };
28
- id: string;
29
- type: "model";
30
- _class: "ModelInsertable";
31
- toIdentifier: ({ refName, baseSettings }: ToModelInsertableArgs) => Identifier;
32
- toExportPath: ({ refName, baseSettings }: ToModelExportPathArgs) => string;
33
- isSelected: ({ refName, baseSettings }: IsModelSelectedArgs) => boolean;
34
- isSupported: () => boolean;
35
- pinnable: boolean;
36
- };
37
- ModelGateway: {
38
- new (context: GenerateContext): {
39
- context: GenerateContext;
40
- };
41
- id: string;
42
- type: "model";
43
- _class: "ModelGateway";
44
- isSupported: () => boolean;
45
- pinnable: boolean;
46
- };
47
- };
48
- //# sourceMappingURL=toModelBase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toModelBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/toModelBase.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;AAE5D,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,eAAe,CAAA;IACxB,QAAQ,EAAE,eAAe,CAAA;IACzB,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,qBAAqB,KAAK,UAAU,CAAA;IAC9E,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,WAAW,WAAY,WAAW;;mBAWzB,mBAAmB;;;;;;;;;;;;kDAhBG,qBAAqB,KAAK,UAAU;kDACpC,qBAAqB,KAAK,MAAM;gDACjC,mBAAmB,KAAK,OAAO;;;;;sBAgCjD,eAAe;;;;;;;;;CAMvC,CAAA"}
@@ -1,55 +0,0 @@
1
- import type { GenerateContext } from '../../context/GenerateContext.js';
2
- import type { OasOperation } from '../../oas/operation/Operation.js';
3
- import type { ContentSettings } from '../ContentSettings.js';
4
- import type { ToOperationInsertableArgs, ToOperationExportPathArgs, IsOperationSelectedArgs } from './OperationInsertable.js';
5
- import type { Identifier } from '../Identifier.js';
6
- export type OperationInsertableArgs = {
7
- context: GenerateContext;
8
- settings: ContentSettings;
9
- operation: OasOperation;
10
- };
11
- export type OperationConfig = {
12
- id: string;
13
- toIdentifier: ({ operation, baseSettings }: ToOperationInsertableArgs) => Identifier;
14
- toExportPath: ({ operation, baseSettings }: ToOperationExportPathArgs) => string;
15
- isSelected?: ({ operation, baseSettings }: IsOperationSelectedArgs) => boolean;
16
- isSupported?: (operation: OasOperation) => boolean;
17
- pinnable?: boolean;
18
- };
19
- export declare const toOperationBase: (config: OperationConfig) => {
20
- OperationInsertable: {
21
- new (args: OperationInsertableArgs): {
22
- settings: ContentSettings;
23
- operation: OasOperation;
24
- generatorKey: import("../../types/GeneratorKeys.js").GeneratorKey;
25
- insert<V extends import("../../mod.js").GeneratedValue>(insertable: import("./OperationInsertable.js").OperationInsertable<V>, operation: OasOperation): import("../Inserted.js").Inserted<V, "force">;
26
- createAndRegisterDefinition<Schema extends import("../../mod.js").SchemaType>({ schema, identifier, schemaToValueFn }: {
27
- schema: Schema;
28
- identifier: Identifier;
29
- schemaToValueFn: import("../../mod.js").SchemaToValueFn;
30
- }): import("../Definition.js").Definition<import("../../mod.js").TypeSystemOutput<Schema["type"]>>;
31
- register(args: Partial<import("../../context/GenerateContext.js").RegisterArgs>): void;
32
- context: GenerateContext;
33
- skipped: boolean;
34
- };
35
- id: string;
36
- type: "operation";
37
- _class: "OperationInsertable";
38
- toIdentifier: ({ operation, baseSettings }: ToOperationInsertableArgs) => Identifier;
39
- toExportPath: ({ operation, baseSettings }: ToOperationExportPathArgs) => string;
40
- isSelected: ({ operation, baseSettings }: IsOperationSelectedArgs) => boolean;
41
- isSupported: (operation: OasOperation) => boolean;
42
- pinnable: boolean;
43
- };
44
- OperationGateway: {
45
- new (context: GenerateContext): {
46
- context: GenerateContext;
47
- };
48
- id: string;
49
- type: "operation";
50
- _class: "OperationGateway";
51
- isSupported: (operation: OasOperation) => boolean;
52
- pinnable: boolean;
53
- };
54
- };
55
- //# sourceMappingURL=toOperationBase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toOperationBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/toOperationBase.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EACV,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,0BAA0B,CAAA;AAGjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,eAAe,CAAA;IACxB,QAAQ,EAAE,eAAe,CAAA;IACzB,SAAS,EAAE,YAAY,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,CAAC,EACb,SAAS,EACT,YAAY,EACb,EAAE,yBAAyB,KAAK,UAAU,CAAA;IAC3C,YAAY,EAAE,CAAC,EACb,SAAS,EACT,YAAY,EACb,EAAE,yBAAyB,KAAK,MAAM,CAAA;IACvC,UAAU,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,uBAAuB,KAAK,OAAO,CAAA;IAC9E,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,OAAO,CAAA;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,eAAe,WAAY,eAAe;;mBAWjC,uBAAuB;;;;;;;;;;;;;;;;;oDArBxC,yBAAyB,KAAK,UAAU;oDAIxC,yBAAyB,KAAK,MAAM;kDACI,uBAAuB,KAAK,OAAO;iCACpD,YAAY,KAAK,OAAO;;;;sBAiC3B,eAAe;;;;;;iCAjCZ,YAAY,KAAK,OAAO;;;CAuCnD,CAAA"}
@@ -1,48 +0,0 @@
1
- import type { GenerateContext } from '../../context/GenerateContext.js';
2
- import type { RefName } from '../../types/RefName.js';
3
- import type { ContentSettings } from '../ContentSettings.js';
4
- import type { IsModelSelectedArgs, ToModelExportPathArgs, ToModelInsertableArgs } from './ModelInsertable.js';
5
- import type { Identifier } from '../Identifier.js';
6
- export type ModelInsertableArgs = {
7
- context: GenerateContext;
8
- settings: ContentSettings;
9
- refName: RefName;
10
- };
11
- export type ModelConfig = {
12
- id: string;
13
- toIdentifier: ({ refName, baseSettings }: ToModelInsertableArgs) => Identifier;
14
- toExportPath: ({ refName, baseSettings }: ToModelExportPathArgs) => string;
15
- isSelected?: ({ refName, baseSettings }: IsModelSelectedArgs) => boolean;
16
- };
17
- export declare const toModelBase: (config: ModelConfig) => {
18
- ModelInsertable: {
19
- new (args: ModelInsertableArgs): {
20
- settings: ContentSettings;
21
- refName: RefName;
22
- generatorKey: import("../../types/GeneratorKeys.js").GeneratorKey;
23
- transform<V extends import("../../mod.js").GeneratedValue>(insertable: import("./ModelInsertable.js").ModelInsertable<V>, refName: RefName): import("../Inserted.js").Inserted<V, "force">;
24
- register(args: Partial<import("../../context/GenerateContext.js").RegisterArgs>): void;
25
- context: GenerateContext;
26
- skipped: boolean;
27
- };
28
- id: string;
29
- type: "model";
30
- _class: "ModelInsertable";
31
- toIdentifier: ({ refName, baseSettings }: ToModelInsertableArgs) => Identifier;
32
- toExportPath: ({ refName, baseSettings }: ToModelExportPathArgs) => string;
33
- isSelected: ({ refName, baseSettings }: IsModelSelectedArgs) => boolean;
34
- isSupported: () => boolean;
35
- pinnable: boolean;
36
- };
37
- ModelGateway: {
38
- new (context: GenerateContext): {
39
- context: GenerateContext;
40
- };
41
- id: string;
42
- type: "model";
43
- _class: "ModelGateway";
44
- isSupported: () => boolean;
45
- pinnable: boolean;
46
- };
47
- };
48
- //# sourceMappingURL=toModelBase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toModelBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/toModelBase.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;AAE5D,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,eAAe,CAAA;IACxB,QAAQ,EAAE,eAAe,CAAA;IACzB,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,qBAAqB,KAAK,UAAU,CAAA;IAC9E,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,WAAW,WAAY,WAAW;;mBAWzB,mBAAmB;;;;;;;;;;;;kDAhBG,qBAAqB,KAAK,UAAU;kDACpC,qBAAqB,KAAK,MAAM;gDACjC,mBAAmB,KAAK,OAAO;;;;;sBAgCjD,eAAe;;;;;;;;;CAMvC,CAAA"}
@@ -1,55 +0,0 @@
1
- import type { GenerateContext } from '../../context/GenerateContext.js';
2
- import type { OasOperation } from '../../oas/operation/Operation.js';
3
- import type { ContentSettings } from '../ContentSettings.js';
4
- import type { ToOperationInsertableArgs, ToOperationExportPathArgs, IsOperationSelectedArgs } from './OperationInsertable.js';
5
- import type { Identifier } from '../Identifier.js';
6
- export type OperationInsertableArgs = {
7
- context: GenerateContext;
8
- settings: ContentSettings;
9
- operation: OasOperation;
10
- };
11
- export type OperationConfig = {
12
- id: string;
13
- toIdentifier: ({ operation, baseSettings }: ToOperationInsertableArgs) => Identifier;
14
- toExportPath: ({ operation, baseSettings }: ToOperationExportPathArgs) => string;
15
- isSelected?: ({ operation, baseSettings }: IsOperationSelectedArgs) => boolean;
16
- isSupported?: (operation: OasOperation) => boolean;
17
- pinnable?: boolean;
18
- };
19
- export declare const toOperationBase: (config: OperationConfig) => {
20
- OperationInsertable: {
21
- new (args: OperationInsertableArgs): {
22
- settings: ContentSettings;
23
- operation: OasOperation;
24
- generatorKey: import("../../types/GeneratorKeys.js").GeneratorKey;
25
- insert<V extends import("../../mod.js").GeneratedValue>(insertable: import("./OperationInsertable.js").OperationInsertable<V>, operation: OasOperation): import("../Inserted.js").Inserted<V, "force">;
26
- createAndRegisterDefinition<Schema extends import("../../mod.js").SchemaType>({ schema, identifier, schemaToValueFn }: {
27
- schema: Schema;
28
- identifier: Identifier;
29
- schemaToValueFn: import("../../mod.js").SchemaToValueFn;
30
- }): import("../Definition.js").Definition<import("../../mod.js").TypeSystemOutput<Schema["type"]>>;
31
- register(args: Partial<import("../../context/GenerateContext.js").RegisterArgs>): void;
32
- context: GenerateContext;
33
- skipped: boolean;
34
- };
35
- id: string;
36
- type: "operation";
37
- _class: "OperationInsertable";
38
- toIdentifier: ({ operation, baseSettings }: ToOperationInsertableArgs) => Identifier;
39
- toExportPath: ({ operation, baseSettings }: ToOperationExportPathArgs) => string;
40
- isSelected: ({ operation, baseSettings }: IsOperationSelectedArgs) => boolean;
41
- isSupported: (operation: OasOperation) => boolean;
42
- pinnable: boolean;
43
- };
44
- OperationGateway: {
45
- new (context: GenerateContext): {
46
- context: GenerateContext;
47
- };
48
- id: string;
49
- type: "operation";
50
- _class: "OperationGateway";
51
- isSupported: (operation: OasOperation) => boolean;
52
- pinnable: boolean;
53
- };
54
- };
55
- //# sourceMappingURL=toOperationBase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toOperationBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/toOperationBase.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAk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