@skmtc/core 0.0.944 → 0.0.946

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 (49) hide show
  1. package/esm/context/GenerateContext.d.ts +4 -4
  2. package/esm/context/GenerateContext.d.ts.map +1 -1
  3. package/esm/context/GenerateContext.js +2 -5
  4. package/esm/context/generateTypes.d.ts +5 -10
  5. package/esm/context/generateTypes.d.ts.map +1 -1
  6. package/esm/dsl/GeneratedValue.d.ts +2 -18
  7. package/esm/dsl/GeneratedValue.d.ts.map +1 -1
  8. package/esm/dsl/Inserted.d.ts +13 -33
  9. package/esm/dsl/Inserted.d.ts.map +1 -1
  10. package/esm/dsl/Inserted.js +7 -26
  11. package/esm/dsl/model/ModelBase.d.ts +2 -2
  12. package/esm/dsl/model/ModelBase.d.ts.map +1 -1
  13. package/esm/dsl/model/ModelBase.js +0 -1
  14. package/esm/dsl/model/ModelDriver.d.ts +5 -9
  15. package/esm/dsl/model/ModelDriver.d.ts.map +1 -1
  16. package/esm/dsl/model/ModelDriver.js +3 -10
  17. package/esm/dsl/model/toModelBase.d.ts +2 -2
  18. package/esm/dsl/operation/OperationBase.d.ts +3 -3
  19. package/esm/dsl/operation/OperationBase.d.ts.map +1 -1
  20. package/esm/dsl/operation/OperationBase.js +0 -2
  21. package/esm/dsl/operation/OperationDriver.d.ts +5 -7
  22. package/esm/dsl/operation/OperationDriver.d.ts.map +1 -1
  23. package/esm/dsl/operation/OperationDriver.js +3 -8
  24. package/esm/dsl/operation/toOperationBase.d.ts +3 -3
  25. package/package.json +1 -1
  26. package/script/context/GenerateContext.d.ts +4 -4
  27. package/script/context/GenerateContext.d.ts.map +1 -1
  28. package/script/context/GenerateContext.js +2 -5
  29. package/script/context/generateTypes.d.ts +5 -10
  30. package/script/context/generateTypes.d.ts.map +1 -1
  31. package/script/dsl/GeneratedValue.d.ts +2 -18
  32. package/script/dsl/GeneratedValue.d.ts.map +1 -1
  33. package/script/dsl/Inserted.d.ts +13 -33
  34. package/script/dsl/Inserted.d.ts.map +1 -1
  35. package/script/dsl/Inserted.js +7 -26
  36. package/script/dsl/model/ModelBase.d.ts +2 -2
  37. package/script/dsl/model/ModelBase.d.ts.map +1 -1
  38. package/script/dsl/model/ModelBase.js +0 -1
  39. package/script/dsl/model/ModelDriver.d.ts +5 -9
  40. package/script/dsl/model/ModelDriver.d.ts.map +1 -1
  41. package/script/dsl/model/ModelDriver.js +3 -10
  42. package/script/dsl/model/toModelBase.d.ts +2 -2
  43. package/script/dsl/operation/OperationBase.d.ts +3 -3
  44. package/script/dsl/operation/OperationBase.d.ts.map +1 -1
  45. package/script/dsl/operation/OperationBase.js +0 -2
  46. package/script/dsl/operation/OperationDriver.d.ts +5 -7
  47. package/script/dsl/operation/OperationDriver.d.ts.map +1 -1
  48. package/script/dsl/operation/OperationDriver.js +3 -8
  49. package/script/dsl/operation/toOperationBase.d.ts +3 -3
@@ -1,14 +1,13 @@
1
1
  import type { ModelInsertable } from './types.js';
2
2
  import type { GenerateContextType } from '../../context/generateTypes.js';
3
3
  import type { ContentSettings } from '../ContentSettings.js';
4
- import type { GeneratedDefinition, GenerationType } from '../GeneratedValue.js';
4
+ import type { GeneratedDefinition } from '../GeneratedValue.js';
5
5
  import type { GeneratedValue } from '../GeneratedValue.js';
6
6
  import type { RefName } from '../../types/RefName.js';
7
- type CreateModelArgs<V extends GeneratedValue, T extends GenerationType, EnrichmentType> = {
7
+ type CreateModelArgs<V extends GeneratedValue, EnrichmentType> = {
8
8
  context: GenerateContextType;
9
9
  insertable: ModelInsertable<V, EnrichmentType>;
10
10
  refName: RefName;
11
- generation?: T;
12
11
  destinationPath?: string;
13
12
  rootRef?: RefName;
14
13
  noExport?: boolean;
@@ -20,7 +19,7 @@ type CreateModelArgs<V extends GeneratedValue, T extends GenerationType, Enrichm
20
19
  * @template T - The generation type
21
20
  * @template EnrichmentType - Optional enrichment type
22
21
  */
23
- export declare class ModelDriver<V extends GeneratedValue, T extends GenerationType, EnrichmentType> {
22
+ export declare class ModelDriver<V extends GeneratedValue, EnrichmentType> {
24
23
  /** The generation context */
25
24
  context: GenerateContextType;
26
25
  /** The insertable model configuration */
@@ -32,7 +31,7 @@ export declare class ModelDriver<V extends GeneratedValue, T extends GenerationT
32
31
  /** Optional destination path for the generated file */
33
32
  destinationPath?: string;
34
33
  /** The generated definition */
35
- definition: GeneratedDefinition<V, T>;
34
+ definition: GeneratedDefinition<V>;
36
35
  /** Optional root reference name */
37
36
  rootRef?: RefName;
38
37
  /** Whether to skip export declaration */
@@ -44,21 +43,18 @@ export declare class ModelDriver<V extends GeneratedValue, T extends GenerationT
44
43
  * @param args.context - Generation context
45
44
  * @param args.insertable - Model insertable configuration
46
45
  * @param args.refName - Reference name for the model
47
- * @param args.generation - Optional generation type
48
46
  * @param args.destinationPath - Optional destination path
49
47
  * @param args.rootRef - Optional root reference name
50
48
  * @param args.noExport - Whether to skip export declaration
51
49
  */
52
- constructor({ context, insertable, refName, generation, destinationPath, rootRef, noExport }: CreateModelArgs<V, T, EnrichmentType>);
50
+ constructor({ context, insertable, refName, destinationPath, rootRef, noExport }: CreateModelArgs<V, EnrichmentType>);
53
51
  /**
54
52
  * Applies generation configuration to create the model definition.
55
53
  *
56
54
  * This method handles the core generation logic, including identifier resolution,
57
55
  * export path management, and import registration for cross-file dependencies.
58
56
  *
59
- * @template T - The generation type
60
57
  * @param args - Apply configuration arguments
61
- * @param args.generation - Optional generation type (unused currently)
62
58
  * @param args.destinationPath - Optional destination path for imports
63
59
  * @returns Generated definition for the model
64
60
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ModelDriver.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/ModelDriver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB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,eAAe,CAAC,cAAc,CAAC,CAAA;IACzC,uDAAuD;IACvD,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,+BAA+B;IAC/B,UAAU,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAA;IAClC,mCAAmC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;;;;;;;OAUG;gBACS,EACV,OAAO,EACP,UAAU,EACV,OAAO,EACP,eAAe,EACf,OAAO,EACP,QAAQ,EACT,EAAE,eAAe,CAAC,CAAC,EAAE,cAAc,CAAC;IAgBrC;;;;;;;;;OASG;IACH,OAAO,CAAC,KAAK;IAeb;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,aAAa;IA2CrB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,gBAAgB;CAqBzB"}
@@ -19,12 +19,11 @@ class ModelDriver {
19
19
  * @param args.context - Generation context
20
20
  * @param args.insertable - Model insertable configuration
21
21
  * @param args.refName - Reference name for the model
22
- * @param args.generation - Optional generation type
23
22
  * @param args.destinationPath - Optional destination path
24
23
  * @param args.rootRef - Optional root reference name
25
24
  * @param args.noExport - Whether to skip export declaration
26
25
  */
27
- constructor({ context, insertable, refName, generation, destinationPath, rootRef, noExport }) {
26
+ constructor({ context, insertable, refName, destinationPath, rootRef, noExport }) {
28
27
  /** The generation context */
29
28
  Object.defineProperty(this, "context", {
30
29
  enumerable: true,
@@ -89,7 +88,7 @@ class ModelDriver {
89
88
  this.noExport = noExport;
90
89
  this.context.modelDepth[`${insertable.id}:${refName}`] = 0;
91
90
  this.settings = this.context.toModelContentSettings({ refName, insertable });
92
- this.definition = this.apply({ generation, destinationPath });
91
+ this.definition = this.apply({ destinationPath });
93
92
  this.context.modelDepth[`${insertable.id}:${refName}`] = 0;
94
93
  }
95
94
  /**
@@ -98,18 +97,12 @@ class ModelDriver {
98
97
  * This method handles the core generation logic, including identifier resolution,
99
98
  * export path management, and import registration for cross-file dependencies.
100
99
  *
101
- * @template T - The generation type
102
100
  * @param args - Apply configuration arguments
103
- * @param args.generation - Optional generation type (unused currently)
104
101
  * @param args.destinationPath - Optional destination path for imports
105
102
  * @returns Generated definition for the model
106
103
  */
107
- apply({ generation: _generation, destinationPath } = {}) {
104
+ apply({ destinationPath } = {}) {
108
105
  const { identifier, exportPath } = this.settings;
109
- // Everything is selected (for now)
110
- // if (/*!selected && */ generation !== 'force') {
111
- // return undefined as GeneratedDefinition<V, T>
112
- // }
113
106
  const definition = this.getDefinition({ identifier, exportPath });
114
107
  if (destinationPath && (0, normalize_js_1.normalize)(exportPath) !== (0, normalize_js_1.normalize)(destinationPath)) {
115
108
  this.context.register({
@@ -89,8 +89,8 @@ export declare const toModelBase: <EnrichmentType = undefined>(config: BaseModel
89
89
  settings: ContentSettings<EnrichmentType>;
90
90
  refName: RefName;
91
91
  generatorKey: import("../GeneratorKeys.js").GeneratorKey;
92
- insertModel<V extends import("../GeneratedValue.js").GeneratedValue, EnrichmentType_1 = undefined>(insertable: import("./types.js").ModelInsertable<V, EnrichmentType_1>, refName: RefName, options?: Pick<import("../../context/generateTypes.js").InsertModelOptions<"force">, "noExport">): import("../Inserted.js").Inserted<V, "force", EnrichmentType_1>;
93
- insertNormalizedModel<V extends import("../GeneratedValue.js").GeneratedValue, Schema extends import("../../mod.js").OasSchema | import("../../mod.js").OasRef<"schema"> | import("../../mod.js").OasVoid, EnrichmentType_2 = undefined>(insertable: import("./types.js").ModelInsertable<V, EnrichmentType_2>, { schema, fallbackName }: Omit<import("../../context/generateTypes.js").InsertNormalisedModelArgs<Schema>, "destinationPath">, options?: Pick<import("../../context/generateTypes.js").InsertModelOptions<"force">, "noExport">): import("../../context/generateTypes.js").InsertNormalisedModelReturn<V, Schema>;
92
+ insertModel<V extends import("../GeneratedValue.js").GeneratedValue, EnrichmentType_1 = undefined>(insertable: import("./types.js").ModelInsertable<V, EnrichmentType_1>, refName: RefName, options?: Pick<import("../../context/generateTypes.js").InsertModelOptions, "noExport">): import("../Inserted.js").Inserted<V, EnrichmentType_1>;
93
+ insertNormalizedModel<V extends import("../GeneratedValue.js").GeneratedValue, Schema extends import("../../mod.js").OasSchema | import("../../mod.js").OasRef<"schema"> | import("../../mod.js").OasVoid, EnrichmentType_2 = undefined>(insertable: import("./types.js").ModelInsertable<V, EnrichmentType_2>, { schema, fallbackName }: Omit<import("../../context/generateTypes.js").InsertNormalisedModelArgs<Schema>, "destinationPath">, options?: Pick<import("../../context/generateTypes.js").InsertModelOptions, "noExport">): import("../../context/generateTypes.js").InsertNormalisedModelReturn<V, Schema>;
94
94
  register(args: import("../../context/generateTypes.js").BaseRegisterArgs): void;
95
95
  context: GenerateContextType;
96
96
  skipped: boolean;
@@ -198,7 +198,7 @@ export declare class OperationBase<EnrichmentType = undefined> extends ContentBa
198
198
  * }
199
199
  * ```
200
200
  */
201
- insertOperation<V extends GeneratedValue, EnrichmentType = undefined>(insertable: OperationInsertable<V, EnrichmentType>, operation: OasOperation, options?: Pick<InsertOperationOptions<'force'>, 'noExport'>): Inserted<V, 'force', EnrichmentType>;
201
+ insertOperation<V extends GeneratedValue, EnrichmentType = undefined>(insertable: OperationInsertable<V, EnrichmentType>, operation: OasOperation, options?: Pick<InsertOperationOptions, 'noExport'>): Inserted<V, EnrichmentType>;
202
202
  /**
203
203
  * Inserts a related model with forced generation.
204
204
  *
@@ -240,7 +240,7 @@ export declare class OperationBase<EnrichmentType = undefined> extends ContentBa
240
240
  * }
241
241
  * ```
242
242
  */
243
- insertModel<V extends GeneratedValue, EnrichmentType = undefined>(insertable: ModelInsertable<V, EnrichmentType>, refName: RefName, options?: Pick<InsertModelOptions<'force'>, 'noExport'>): Inserted<V, 'force', EnrichmentType>;
243
+ insertModel<V extends GeneratedValue, EnrichmentType = undefined>(insertable: ModelInsertable<V, EnrichmentType>, refName: RefName, options?: Pick<InsertModelOptions, 'noExport'>): Inserted<V, EnrichmentType>;
244
244
  /**
245
245
  * Inserts a related model with automatic schema normalization and reference resolution.
246
246
  *
@@ -297,7 +297,7 @@ export declare class OperationBase<EnrichmentType = undefined> extends ContentBa
297
297
  * }
298
298
  * ```
299
299
  */
300
- insertNormalizedModel<V extends GeneratedValue, Schema extends OasSchema | OasRef<'schema'> | OasVoid, EnrichmentType = undefined>(insertable: ModelInsertable<V, EnrichmentType>, { schema, fallbackName }: Omit<InsertNormalisedModelArgs<Schema>, 'destinationPath'>, options?: Pick<InsertModelOptions<'force'>, 'noExport'>): InsertNormalisedModelReturn<V, Schema>;
300
+ insertNormalizedModel<V extends GeneratedValue, Schema extends OasSchema | OasRef<'schema'> | OasVoid, EnrichmentType = undefined>(insertable: ModelInsertable<V, EnrichmentType>, { schema, fallbackName }: Omit<InsertNormalisedModelArgs<Schema>, 'destinationPath'>, options?: Pick<InsertModelOptions, 'noExport'>): InsertNormalisedModelReturn<V, Schema>;
301
301
  /**
302
302
  * Defines and registers a new definition in the generation context.
303
303
  *
@@ -1 +1 @@
1
- {"version":3,"file":"OperationBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/OperationBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAClB,yBAAyB,EACzB,2BAA2B,EAC3B,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,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AAQ,CAAC,CAAC,EAAE,cAAc,CAAC;IAO9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuDG;IACH,qBAAqB,CACnB,CAAC,SAAS,cAAc,EACxB,MAAM,SAAS,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,OAAO,EACrD,cAAc,GAAG,SAAS,EAE1B,UAAU,EAAE,eAAe,CAAC,CAAC,EAAE,cAAc,CAAC,EAC9C,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC,EAAE,iBAAiB,CAAC,EACpF,OAAO,GAAE,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAM,GACjD,2BAA2B,CAAC,CAAC,EAAE,MAAM,CAAC;IAYzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,iBAAiB,CAAC,CAAC,SAAS,cAAc,EAAE,EAC1C,UAAU,EACV,KAAK,EACL,QAAQ,EACT,EAAE,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,iBAAiB,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;IASpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACM,QAAQ,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI;CAMhD"}
@@ -195,7 +195,6 @@ class OperationBase extends ContentBase_js_1.ContentBase {
195
195
  */
196
196
  insertOperation(insertable, operation, options = {}) {
197
197
  return this.context.insertOperation(insertable, operation, {
198
- generation: 'force',
199
198
  destinationPath: this.settings.exportPath,
200
199
  noExport: options.noExport
201
200
  });
@@ -243,7 +242,6 @@ class OperationBase extends ContentBase_js_1.ContentBase {
243
242
  */
244
243
  insertModel(insertable, refName, options = {}) {
245
244
  return this.context.insertModel(insertable, refName, {
246
- generation: 'force',
247
245
  destinationPath: this.settings.exportPath,
248
246
  noExport: options.noExport
249
247
  });
@@ -1,14 +1,13 @@
1
1
  import type { OperationInsertable } from './types.js';
2
2
  import type { OasOperation } from '../../oas/operation/Operation.js';
3
3
  import type { ContentSettings } from '../ContentSettings.js';
4
- import type { GeneratedDefinition, GenerationType } from '../GeneratedValue.js';
4
+ import type { GeneratedDefinition } from '../GeneratedValue.js';
5
5
  import type { GeneratedValue } from '../GeneratedValue.js';
6
6
  import type { GenerateContextType } from '../../context/generateTypes.js';
7
- type CreateOperationArgs<V extends GeneratedValue, T extends GenerationType, EnrichmentType = undefined> = {
7
+ type CreateOperationArgs<V extends GeneratedValue, EnrichmentType = undefined> = {
8
8
  context: GenerateContextType;
9
9
  insertable: OperationInsertable<V, EnrichmentType>;
10
10
  operation: OasOperation;
11
- generation?: T;
12
11
  destinationPath?: string;
13
12
  noExport?: boolean;
14
13
  };
@@ -42,7 +41,7 @@ type CreateOperationArgs<V extends GeneratedValue, T extends GenerationType, Enr
42
41
  * }
43
42
  * ```
44
43
  */
45
- export declare class OperationDriver<V extends GeneratedValue, T extends GenerationType, EnrichmentType = undefined> {
44
+ export declare class OperationDriver<V extends GeneratedValue, EnrichmentType = undefined> {
46
45
  /** The generation context providing access to OAS objects and utilities */
47
46
  context: GenerateContextType;
48
47
  /** The insertable object that provides generation configuration */
@@ -54,7 +53,7 @@ export declare class OperationDriver<V extends GeneratedValue, T extends Generat
54
53
  /** Optional custom destination path for generated files */
55
54
  destinationPath?: string;
56
55
  /** The generated definition containing the transformed operation */
57
- definition: GeneratedDefinition<V, T>;
56
+ definition: GeneratedDefinition<V>;
58
57
  /** Whether to exclude this operation from exports */
59
58
  noExport?: boolean;
60
59
  /**
@@ -64,11 +63,10 @@ export declare class OperationDriver<V extends GeneratedValue, T extends Generat
64
63
  * @param args.context - Generation context
65
64
  * @param args.insertable - Insertable providing generation configuration
66
65
  * @param args.operation - OpenAPI operation to process
67
- * @param args.generation - Optional generation type
68
66
  * @param args.destinationPath - Optional custom destination path
69
67
  * @param args.noExport - Whether to exclude from exports
70
68
  */
71
- constructor({ context, insertable, operation, generation, destinationPath, noExport }: CreateOperationArgs<V, T, EnrichmentType>);
69
+ constructor({ context, insertable, operation, destinationPath, noExport }: CreateOperationArgs<V, EnrichmentType>);
72
70
  /**
73
71
  * Applies generation configuration to create the operation definition.
74
72
  *
@@ -1 +1 @@
1
- {"version":3,"file":"OperationDriver.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/OperationDriver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAI5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AAEzE,KAAK,mBAAmB,CACtB,CAAC,SAAS,cAAc,EACxB,CAAC,SAAS,cAAc,EACxB,cAAc,GAAG,SAAS,IACxB;IACF,OAAO,EAAE,mBAAmB,CAAA;IAC5B,UAAU,EAAE,mBAAmB,CAAC,CAAC,EAAE,cAAc,CAAC,CAAA;IAClD,SAAS,EAAE,YAAY,CAAA;IACvB,UAAU,CAAC,EAAE,CAAC,CAAA;IACd,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAYD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBAAa,eAAe,CAC1B,CAAC,SAAS,cAAc,EACxB,CAAC,SAAS,cAAc,EACxB,cAAc,GAAG,SAAS;IAE1B,2EAA2E;IAC3E,OAAO,EAAE,mBAAmB,CAAA;IAC5B,mEAAmE;IACnE,UAAU,EAAE,mBAAmB,CAAC,CAAC,EAAE,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IAClD,SAAS,EAAE,YAAY,CAAA;IACvB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAWD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBAAa,eAAe,CAAC,CAAC,SAAS,cAAc,EAAE,cAAc,GAAG,SAAS;IAC/E,2EAA2E;IAC3E,OAAO,EAAE,mBAAmB,CAAA;IAC5B,mEAAmE;IACnE,UAAU,EAAE,mBAAmB,CAAC,CAAC,EAAE,cAAc,CAAC,CAAA;IAClD,mDAAmD;IACnD,SAAS,EAAE,YAAY,CAAA;IACvB,2DAA2D;IAC3D,QAAQ,EAAE,eAAe,CAAC,cAAc,CAAC,CAAA;IACzC,2DAA2D;IAC3D,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,oEAAoE;IACpE,UAAU,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAA;IAClC,qDAAqD;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;;;;;;OASG;gBACS,EACV,OAAO,EACP,UAAU,EACV,SAAS,EACT,eAAe,EACf,QAAQ,EACT,EAAE,mBAAmB,CAAC,CAAC,EAAE,cAAc,CAAC;IAczC;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,KAAK;IAeb;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,aAAa;IA+BrB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,gBAAgB;CAqBzB"}
@@ -42,11 +42,10 @@ class OperationDriver {
42
42
  * @param args.context - Generation context
43
43
  * @param args.insertable - Insertable providing generation configuration
44
44
  * @param args.operation - OpenAPI operation to process
45
- * @param args.generation - Optional generation type
46
45
  * @param args.destinationPath - Optional custom destination path
47
46
  * @param args.noExport - Whether to exclude from exports
48
47
  */
49
- constructor({ context, insertable, operation, generation, destinationPath, noExport }) {
48
+ constructor({ context, insertable, operation, destinationPath, noExport }) {
50
49
  /** The generation context providing access to OAS objects and utilities */
51
50
  Object.defineProperty(this, "context", {
52
51
  enumerable: true,
@@ -105,7 +104,7 @@ class OperationDriver {
105
104
  operation,
106
105
  insertable
107
106
  });
108
- this.definition = this.apply({ generation, destinationPath });
107
+ this.definition = this.apply({ destinationPath });
109
108
  }
110
109
  /**
111
110
  * Applies generation configuration to create the operation definition.
@@ -120,12 +119,8 @@ class OperationDriver {
120
119
  * @param args.destinationPath - Optional destination path for imports
121
120
  * @returns Generated definition for the operation
122
121
  */
123
- apply({ generation: _generation, destinationPath } = {}) {
122
+ apply({ destinationPath } = {}) {
124
123
  const { identifier, exportPath } = this.settings;
125
- // Everything is selected (for now)
126
- // if (/*!selected && */ generation !== 'force') {
127
- // return undefined as GeneratedDefinition<V, T>
128
- // }
129
124
  const definition = this.getDefinition({ identifier, exportPath });
130
125
  if (destinationPath && (0, normalize_js_1.normalize)(exportPath) !== (0, normalize_js_1.normalize)(destinationPath)) {
131
126
  this.context.register({
@@ -76,9 +76,9 @@ export declare const toOperationBase: <EnrichmentType = undefined>(config: BaseO
76
76
  settings: import("../ContentSettings.js").ContentSettings<EnrichmentType>;
77
77
  operation: OasOperation;
78
78
  generatorKey: import("../GeneratorKeys.js").GeneratorKey;
79
- insertOperation<V extends import("../GeneratedValue.js").GeneratedValue, EnrichmentType_1 = undefined>(insertable: import("./types.js").OperationInsertable<V, EnrichmentType_1>, operation: OasOperation, options?: Pick<import("../../context/generateTypes.js").InsertOperationOptions<"force">, "noExport">): import("../Inserted.js").Inserted<V, "force", EnrichmentType_1>;
80
- insertModel<V extends import("../GeneratedValue.js").GeneratedValue, EnrichmentType_2 = undefined>(insertable: import("../model/types.js").ModelInsertable<V, EnrichmentType_2>, refName: import("../../mod.js").RefName, options?: Pick<import("../../context/generateTypes.js").InsertModelOptions<"force">, "noExport">): import("../Inserted.js").Inserted<V, "force", EnrichmentType_2>;
81
- insertNormalizedModel<V extends import("../GeneratedValue.js").GeneratedValue, Schema extends import("../../mod.js").OasSchema | import("../../mod.js").OasRef<"schema"> | import("../../mod.js").OasVoid, EnrichmentType_3 = undefined>(insertable: import("../model/types.js").ModelInsertable<V, EnrichmentType_3>, { schema, fallbackName }: Omit<import("../../context/generateTypes.js").InsertNormalisedModelArgs<Schema>, "destinationPath">, options?: Pick<import("../../context/generateTypes.js").InsertModelOptions<"force">, "noExport">): import("../../context/generateTypes.js").InsertNormalisedModelReturn<V, Schema>;
79
+ insertOperation<V extends import("../GeneratedValue.js").GeneratedValue, EnrichmentType_1 = undefined>(insertable: import("./types.js").OperationInsertable<V, EnrichmentType_1>, operation: OasOperation, options?: Pick<import("../../context/generateTypes.js").InsertOperationOptions, "noExport">): import("../Inserted.js").Inserted<V, EnrichmentType_1>;
80
+ insertModel<V extends import("../GeneratedValue.js").GeneratedValue, EnrichmentType_2 = undefined>(insertable: import("../model/types.js").ModelInsertable<V, EnrichmentType_2>, refName: import("../../mod.js").RefName, options?: Pick<import("../../context/generateTypes.js").InsertModelOptions, "noExport">): import("../Inserted.js").Inserted<V, EnrichmentType_2>;
81
+ insertNormalizedModel<V extends import("../GeneratedValue.js").GeneratedValue, Schema extends import("../../mod.js").OasSchema | import("../../mod.js").OasRef<"schema"> | import("../../mod.js").OasVoid, EnrichmentType_3 = undefined>(insertable: import("../model/types.js").ModelInsertable<V, EnrichmentType_3>, { schema, fallbackName }: Omit<import("../../context/generateTypes.js").InsertNormalisedModelArgs<Schema>, "destinationPath">, options?: Pick<import("../../context/generateTypes.js").InsertModelOptions, "noExport">): import("../../context/generateTypes.js").InsertNormalisedModelReturn<V, Schema>;
82
82
  defineAndRegister<V extends import("../GeneratedValue.js").GeneratedValue>({ identifier, value, noExport }: Omit<import("../../context/generateTypes.js").DefineAndRegisterArgs<V>, "destinationPath">): import("../Definition.js").Definition<V>;
83
83
  register(args: import("../../context/generateTypes.js").BaseRegisterArgs): void;
84
84
  context: GenerateContextType;