@skmtc/core 0.0.782 → 0.0.785

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 (61) hide show
  1. package/esm/context/CoreContext.d.ts +175 -0
  2. package/esm/context/CoreContext.d.ts.map +1 -1
  3. package/esm/context/CoreContext.js +178 -0
  4. package/esm/dsl/ContentBase.d.ts +115 -0
  5. package/esm/dsl/ContentBase.d.ts.map +1 -1
  6. package/esm/dsl/ContentBase.js +110 -0
  7. package/esm/dsl/File.d.ts +208 -0
  8. package/esm/dsl/File.d.ts.map +1 -1
  9. package/esm/dsl/File.js +197 -0
  10. package/esm/dsl/model/ModelBase.d.ts +257 -0
  11. package/esm/dsl/model/ModelBase.d.ts.map +1 -1
  12. package/esm/dsl/model/ModelBase.js +248 -0
  13. package/esm/dsl/operation/OperationBase.d.ts +175 -0
  14. package/esm/dsl/operation/OperationBase.d.ts.map +1 -1
  15. package/esm/dsl/operation/OperationBase.js +166 -0
  16. package/esm/helpers/strings.d.ts +63 -0
  17. package/esm/helpers/strings.d.ts.map +1 -1
  18. package/esm/helpers/strings.js +59 -0
  19. package/esm/mod.d.ts +66 -0
  20. package/esm/mod.d.ts.map +1 -1
  21. package/esm/mod.js +66 -0
  22. package/esm/run/toArtifacts.d.ts +114 -0
  23. package/esm/run/toArtifacts.d.ts.map +1 -1
  24. package/esm/run/toArtifacts.js +86 -0
  25. package/esm/types/Settings.d.ts +129 -0
  26. package/esm/types/Settings.d.ts.map +1 -1
  27. package/esm/types/Settings.js +3 -0
  28. package/esm/typescript/List.d.ts +111 -0
  29. package/esm/typescript/List.d.ts.map +1 -1
  30. package/esm/typescript/List.js +106 -0
  31. package/package.json +5 -1
  32. package/script/context/CoreContext.d.ts +175 -0
  33. package/script/context/CoreContext.d.ts.map +1 -1
  34. package/script/context/CoreContext.js +178 -0
  35. package/script/dsl/ContentBase.d.ts +115 -0
  36. package/script/dsl/ContentBase.d.ts.map +1 -1
  37. package/script/dsl/ContentBase.js +110 -0
  38. package/script/dsl/File.d.ts +208 -0
  39. package/script/dsl/File.d.ts.map +1 -1
  40. package/script/dsl/File.js +197 -0
  41. package/script/dsl/model/ModelBase.d.ts +257 -0
  42. package/script/dsl/model/ModelBase.d.ts.map +1 -1
  43. package/script/dsl/model/ModelBase.js +248 -0
  44. package/script/dsl/operation/OperationBase.d.ts +175 -0
  45. package/script/dsl/operation/OperationBase.d.ts.map +1 -1
  46. package/script/dsl/operation/OperationBase.js +166 -0
  47. package/script/helpers/strings.d.ts +63 -0
  48. package/script/helpers/strings.d.ts.map +1 -1
  49. package/script/helpers/strings.js +59 -0
  50. package/script/mod.d.ts +66 -0
  51. package/script/mod.d.ts.map +1 -1
  52. package/script/mod.js +66 -0
  53. package/script/run/toArtifacts.d.ts +114 -0
  54. package/script/run/toArtifacts.d.ts.map +1 -1
  55. package/script/run/toArtifacts.js +86 -0
  56. package/script/types/Settings.d.ts +129 -0
  57. package/script/types/Settings.d.ts.map +1 -1
  58. package/script/types/Settings.js +3 -0
  59. package/script/typescript/List.d.ts +111 -0
  60. package/script/typescript/List.d.ts.map +1 -1
  61. package/script/typescript/List.js +106 -0
@@ -12,17 +12,192 @@ import type { RefName } from '../../types/RefName.js';
12
12
  import { OasSchema } from '../../oas/schema/Schema.js';
13
13
  import { OasRef } from '../../oas/ref/Ref.js';
14
14
  import { OasVoid } from '../../oas/void/Void.js';
15
+ /**
16
+ * Constructor arguments for {@link OperationBase}.
17
+ *
18
+ * @template EnrichmentType - Optional type for custom enrichment data
19
+ */
15
20
  export type OperationBaseArgs<EnrichmentType = undefined> = {
21
+ /** The generation context providing access to the processing pipeline */
16
22
  context: GenerateContext;
23
+ /** Content settings including export path and enrichment configuration */
17
24
  settings: ContentSettings<EnrichmentType>;
25
+ /** Unique identifier for this generator type */
18
26
  generatorKey: GeneratorKey;
27
+ /** The OpenAPI operation being processed */
19
28
  operation: OasOperation;
20
29
  };
30
+ /**
31
+ * Base class for operation generators in the SKMTC DSL system.
32
+ *
33
+ * `OperationBase` extends {@link ContentBase} to provide specialized functionality for
34
+ * generating code from OpenAPI operations. It offers type-safe methods for inserting
35
+ * related operations and models, managing complex operation dependencies, and handling
36
+ * enrichments specific to API operations.
37
+ *
38
+ * This class serves as the foundation for creating custom operation generators that
39
+ * transform OpenAPI operations into various code artifacts like API clients, server
40
+ * handlers, validation middleware, or documentation.
41
+ *
42
+ * ## Key Features
43
+ *
44
+ * - **Operation Insertion**: Insert related operations with automatic dependency tracking
45
+ * - **Model Integration**: Seamlessly insert related models from operation schemas
46
+ * - **Schema Normalization**: Handle complex request/response schema references
47
+ * - **Export Management**: Control which operations are exported from generated files
48
+ * - **Enrichment Support**: Extend functionality with operation-specific enrichment data
49
+ * - **Type Safety**: Full TypeScript support with generic enrichment types
50
+ *
51
+ * @template EnrichmentType - Optional type for custom enrichment data
52
+ *
53
+ * @example Basic API client generator
54
+ * ```typescript
55
+ * import { OperationBase, Definition } from '@skmtc/core';
56
+ *
57
+ * class ApiClientMethod extends OperationBase {
58
+ * toDefinition(): Definition {
59
+ * const { method, path, operationId } = this.operation;
60
+ *
61
+ * return new Definition({
62
+ * name: operationId || `${method}${this.pascalCasePath()}`,
63
+ * content: `async ${operationId}(${this.generateParameters()}) {
64
+ * return this.request('${method}', '${path}', ${this.generateRequestBody()});
65
+ * }`
66
+ * });
67
+ * }
68
+ * }
69
+ * ```
70
+ *
71
+ * @example With request/response models
72
+ * ```typescript
73
+ * class TypedApiMethod extends OperationBase {
74
+ * toDefinition(): Definition {
75
+ * const operation = this.operation;
76
+ *
77
+ * // Generate request model if needed
78
+ * let requestType = 'void';
79
+ * if (operation.requestBody?.content?.['application/json']?.schema) {
80
+ * const requestModel = this.insertNormalizedModel(
81
+ * new RequestModel({ ... }),
82
+ * {
83
+ * schema: operation.requestBody.content['application/json'].schema,
84
+ * fallbackName: `${operation.operationId}Request`
85
+ * }
86
+ * );
87
+ * requestType = requestModel.value;
88
+ * }
89
+ *
90
+ * // Generate response model
91
+ * const responseSchema = operation.responses?.['200']?.content?.['application/json']?.schema;
92
+ * const responseModel = this.insertNormalizedModel(
93
+ * new ResponseModel({ ... }),
94
+ * { schema: responseSchema, fallbackName: `${operation.operationId}Response` }
95
+ * );
96
+ *
97
+ * return new Definition({
98
+ * name: operation.operationId,
99
+ * content: `async ${operation.operationId}(data: ${requestType}): Promise<${responseModel.value}> {
100
+ * return this.request('${operation.method}', '${operation.path}', data);
101
+ * }`
102
+ * });
103
+ * }
104
+ * }
105
+ * ```
106
+ *
107
+ * @example With enrichments
108
+ * ```typescript
109
+ * type AuthEnrichment = {
110
+ * requiresAuth: boolean;
111
+ * permissions: string[];
112
+ * };
113
+ *
114
+ * class SecuredApiMethod extends OperationBase<AuthEnrichment> {
115
+ * toDefinition(): Definition {
116
+ * const enrichment = this.settings.enrichment;
117
+ * const requiresAuth = enrichment?.requiresAuth ?? false;
118
+ *
119
+ * const authCheck = requiresAuth
120
+ * ? 'this.checkAuth();'
121
+ * : '';
122
+ *
123
+ * return new Definition({
124
+ * name: this.operation.operationId,
125
+ * content: `async ${this.operation.operationId}() {
126
+ * ${authCheck}
127
+ * return this.request('${this.operation.method}', '${this.operation.path}');
128
+ * }`
129
+ * });
130
+ * }
131
+ * }
132
+ * ```
133
+ */
21
134
  export declare class OperationBase<EnrichmentType = undefined> extends ContentBase {
135
+ /** Content settings including export path and enrichment configuration */
22
136
  settings: ContentSettings<EnrichmentType>;
137
+ /** The OpenAPI operation being processed */
23
138
  operation: OasOperation;
139
+ /** Generator key identifying this generator type */
24
140
  generatorKey: GeneratorKey;
141
+ /**
142
+ * Creates a new OperationBase instance.
143
+ *
144
+ * @param args - Operation generator configuration
145
+ * @param args.context - The generation context providing pipeline access
146
+ * @param args.settings - Content settings with export path and enrichments
147
+ * @param args.generatorKey - Unique identifier for this generator type
148
+ * @param args.operation - The OpenAPI operation being processed
149
+ *
150
+ * @example
151
+ * ```typescript
152
+ * const operation = new OperationBase({
153
+ * context: generateContext,
154
+ * settings: {
155
+ * exportPath: './src/api.ts',
156
+ * enrichment: customEnrichments
157
+ * },
158
+ * generatorKey: 'api-client',
159
+ * operation: oasOperation
160
+ * });
161
+ * ```
162
+ */
25
163
  constructor({ context, generatorKey, settings, operation }: OperationBaseArgs<EnrichmentType>);
164
+ /**
165
+ * Inserts a related operation with forced generation.
166
+ *
167
+ * This method adds a related operation to the current generation context, ensuring
168
+ * it will be generated regardless of whether it already exists. This is useful for
169
+ * operations that depend on other operations or need to generate helper operations.
170
+ *
171
+ * @template V - Type of generated value returned by the insertable
172
+ * @template EnrichmentType - Type of enrichment data for the insertable
173
+ * @param insertable - The operation generator to insert
174
+ * @param operation - The OpenAPI operation to process
175
+ * @param options - Insertion options
176
+ * @param options.noExport - Whether to skip exporting the inserted operation
177
+ * @returns Inserted operation reference with generated value
178
+ *
179
+ * @example Inserting helper operations
180
+ * ```typescript
181
+ * class CrudApiClient extends OperationBase {
182
+ * toDefinition(): Definition {
183
+ * // Insert a related validation operation
184
+ * const validator = this.insertOperation(
185
+ * new ValidationOperation({ ... }),
186
+ * this.operation,
187
+ * { noExport: true }
188
+ * );
189
+ *
190
+ * return new Definition({
191
+ * name: this.operation.operationId,
192
+ * content: `async ${this.operation.operationId}(data: any) {
193
+ * ${validator.value}(data);
194
+ * return this.request('${this.operation.method}', '${this.operation.path}', data);
195
+ * }`
196
+ * });
197
+ * }
198
+ * }
199
+ * ```
200
+ */
26
201
  insertOperation<V extends GeneratedValue, EnrichmentType = undefined>(insertable: OperationInsertable<V, EnrichmentType>, operation: OasOperation, options?: Pick<InsertOperationOptions<'force'>, 'noExport'>): Inserted<V, 'force', EnrichmentType>;
27
202
  insertModel<V extends GeneratedValue, EnrichmentType = undefined>(insertable: ModelInsertable<V, EnrichmentType>, refName: RefName, options?: Pick<InsertModelOptions<'force'>, 'noExport'>): Inserted<V, 'force', EnrichmentType>;
28
203
  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>;
@@ -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,gBAAgB,EAChB,eAAe,EAEf,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAClB,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,kCAAkC,CAAA;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAEhD,MAAM,MAAM,iBAAiB,CAAC,cAAc,GAAG,SAAS,IAAI;IAC1D,OAAO,EAAE,eAAe,CAAA;IACxB,QAAQ,EAAE,eAAe,CAAC,cAAc,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AAC,EAAE,cAAc,CAAC,EAC9C,OAAO,EAAE,OAAO,EAChB,OAAO,GAAE,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,EAAE,UAAU,CAAM,GAC1D,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,CAAC;IAQvC,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,CAAC,OAAO,CAAC,EAAE,UAAU,CAAM,GAC1D,2BAA2B,CAAC,CAAC,EAAE,MAAM,CAAC;IAYzC,oBAAoB;IACpB,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;IAS3D,QAAQ,CAAC,IAAI,EAAE,gBAAgB;CAMzC"}
@@ -1,19 +1,148 @@
1
1
  import { ContentBase } from '../ContentBase.js';
2
+ /**
3
+ * Base class for operation generators in the SKMTC DSL system.
4
+ *
5
+ * `OperationBase` extends {@link ContentBase} to provide specialized functionality for
6
+ * generating code from OpenAPI operations. It offers type-safe methods for inserting
7
+ * related operations and models, managing complex operation dependencies, and handling
8
+ * enrichments specific to API operations.
9
+ *
10
+ * This class serves as the foundation for creating custom operation generators that
11
+ * transform OpenAPI operations into various code artifacts like API clients, server
12
+ * handlers, validation middleware, or documentation.
13
+ *
14
+ * ## Key Features
15
+ *
16
+ * - **Operation Insertion**: Insert related operations with automatic dependency tracking
17
+ * - **Model Integration**: Seamlessly insert related models from operation schemas
18
+ * - **Schema Normalization**: Handle complex request/response schema references
19
+ * - **Export Management**: Control which operations are exported from generated files
20
+ * - **Enrichment Support**: Extend functionality with operation-specific enrichment data
21
+ * - **Type Safety**: Full TypeScript support with generic enrichment types
22
+ *
23
+ * @template EnrichmentType - Optional type for custom enrichment data
24
+ *
25
+ * @example Basic API client generator
26
+ * ```typescript
27
+ * import { OperationBase, Definition } from '@skmtc/core';
28
+ *
29
+ * class ApiClientMethod extends OperationBase {
30
+ * toDefinition(): Definition {
31
+ * const { method, path, operationId } = this.operation;
32
+ *
33
+ * return new Definition({
34
+ * name: operationId || `${method}${this.pascalCasePath()}`,
35
+ * content: `async ${operationId}(${this.generateParameters()}) {
36
+ * return this.request('${method}', '${path}', ${this.generateRequestBody()});
37
+ * }`
38
+ * });
39
+ * }
40
+ * }
41
+ * ```
42
+ *
43
+ * @example With request/response models
44
+ * ```typescript
45
+ * class TypedApiMethod extends OperationBase {
46
+ * toDefinition(): Definition {
47
+ * const operation = this.operation;
48
+ *
49
+ * // Generate request model if needed
50
+ * let requestType = 'void';
51
+ * if (operation.requestBody?.content?.['application/json']?.schema) {
52
+ * const requestModel = this.insertNormalizedModel(
53
+ * new RequestModel({ ... }),
54
+ * {
55
+ * schema: operation.requestBody.content['application/json'].schema,
56
+ * fallbackName: `${operation.operationId}Request`
57
+ * }
58
+ * );
59
+ * requestType = requestModel.value;
60
+ * }
61
+ *
62
+ * // Generate response model
63
+ * const responseSchema = operation.responses?.['200']?.content?.['application/json']?.schema;
64
+ * const responseModel = this.insertNormalizedModel(
65
+ * new ResponseModel({ ... }),
66
+ * { schema: responseSchema, fallbackName: `${operation.operationId}Response` }
67
+ * );
68
+ *
69
+ * return new Definition({
70
+ * name: operation.operationId,
71
+ * content: `async ${operation.operationId}(data: ${requestType}): Promise<${responseModel.value}> {
72
+ * return this.request('${operation.method}', '${operation.path}', data);
73
+ * }`
74
+ * });
75
+ * }
76
+ * }
77
+ * ```
78
+ *
79
+ * @example With enrichments
80
+ * ```typescript
81
+ * type AuthEnrichment = {
82
+ * requiresAuth: boolean;
83
+ * permissions: string[];
84
+ * };
85
+ *
86
+ * class SecuredApiMethod extends OperationBase<AuthEnrichment> {
87
+ * toDefinition(): Definition {
88
+ * const enrichment = this.settings.enrichment;
89
+ * const requiresAuth = enrichment?.requiresAuth ?? false;
90
+ *
91
+ * const authCheck = requiresAuth
92
+ * ? 'this.checkAuth();'
93
+ * : '';
94
+ *
95
+ * return new Definition({
96
+ * name: this.operation.operationId,
97
+ * content: `async ${this.operation.operationId}() {
98
+ * ${authCheck}
99
+ * return this.request('${this.operation.method}', '${this.operation.path}');
100
+ * }`
101
+ * });
102
+ * }
103
+ * }
104
+ * ```
105
+ */
2
106
  export class OperationBase extends ContentBase {
107
+ /**
108
+ * Creates a new OperationBase instance.
109
+ *
110
+ * @param args - Operation generator configuration
111
+ * @param args.context - The generation context providing pipeline access
112
+ * @param args.settings - Content settings with export path and enrichments
113
+ * @param args.generatorKey - Unique identifier for this generator type
114
+ * @param args.operation - The OpenAPI operation being processed
115
+ *
116
+ * @example
117
+ * ```typescript
118
+ * const operation = new OperationBase({
119
+ * context: generateContext,
120
+ * settings: {
121
+ * exportPath: './src/api.ts',
122
+ * enrichment: customEnrichments
123
+ * },
124
+ * generatorKey: 'api-client',
125
+ * operation: oasOperation
126
+ * });
127
+ * ```
128
+ */
3
129
  constructor({ context, generatorKey, settings, operation }) {
4
130
  super({ context });
131
+ /** Content settings including export path and enrichment configuration */
5
132
  Object.defineProperty(this, "settings", {
6
133
  enumerable: true,
7
134
  configurable: true,
8
135
  writable: true,
9
136
  value: void 0
10
137
  });
138
+ /** The OpenAPI operation being processed */
11
139
  Object.defineProperty(this, "operation", {
12
140
  enumerable: true,
13
141
  configurable: true,
14
142
  writable: true,
15
143
  value: void 0
16
144
  });
145
+ /** Generator key identifying this generator type */
17
146
  Object.defineProperty(this, "generatorKey", {
18
147
  enumerable: true,
19
148
  configurable: true,
@@ -24,6 +153,43 @@ export class OperationBase extends ContentBase {
24
153
  this.operation = operation;
25
154
  this.settings = settings;
26
155
  }
156
+ /**
157
+ * Inserts a related operation with forced generation.
158
+ *
159
+ * This method adds a related operation to the current generation context, ensuring
160
+ * it will be generated regardless of whether it already exists. This is useful for
161
+ * operations that depend on other operations or need to generate helper operations.
162
+ *
163
+ * @template V - Type of generated value returned by the insertable
164
+ * @template EnrichmentType - Type of enrichment data for the insertable
165
+ * @param insertable - The operation generator to insert
166
+ * @param operation - The OpenAPI operation to process
167
+ * @param options - Insertion options
168
+ * @param options.noExport - Whether to skip exporting the inserted operation
169
+ * @returns Inserted operation reference with generated value
170
+ *
171
+ * @example Inserting helper operations
172
+ * ```typescript
173
+ * class CrudApiClient extends OperationBase {
174
+ * toDefinition(): Definition {
175
+ * // Insert a related validation operation
176
+ * const validator = this.insertOperation(
177
+ * new ValidationOperation({ ... }),
178
+ * this.operation,
179
+ * { noExport: true }
180
+ * );
181
+ *
182
+ * return new Definition({
183
+ * name: this.operation.operationId,
184
+ * content: `async ${this.operation.operationId}(data: any) {
185
+ * ${validator.value}(data);
186
+ * return this.request('${this.operation.method}', '${this.operation.path}', data);
187
+ * }`
188
+ * });
189
+ * }
190
+ * }
191
+ * ```
192
+ */
27
193
  insertOperation(insertable, operation, options = {}) {
28
194
  return this.context.insertOperation(insertable, operation, {
29
195
  generation: 'force',
@@ -1,9 +1,72 @@
1
+ /**
2
+ * Capitalizes the first character of a string.
3
+ *
4
+ * @param str - The string to capitalize
5
+ * @returns The string with the first character uppercased
6
+ *
7
+ * @example
8
+ * ```typescript
9
+ * capitalize('hello world'); // 'Hello world'
10
+ * capitalize('API'); // 'API'
11
+ * capitalize(''); // ''
12
+ * ```
13
+ */
1
14
  import "../_dnt.polyfills.js";
2
15
  export declare const capitalize: (str: string) => string;
16
+ /**
17
+ * Decapitalizes (lowercases) the first character of a string.
18
+ *
19
+ * @param str - The string to decapitalize
20
+ * @returns The string with the first character lowercased
21
+ *
22
+ * @example
23
+ * ```typescript
24
+ * decapitalize('Hello World'); // 'hello World'
25
+ * decapitalize('API'); // 'aPI'
26
+ * decapitalize(''); // ''
27
+ * ```
28
+ */
3
29
  export declare const decapitalize: (str: string) => string;
30
+ /**
31
+ * Options for controlling camelCase conversion behavior.
32
+ */
4
33
  type CamelCaseOptions = {
34
+ /** Whether to capitalize the first character (PascalCase) */
5
35
  upperFirst?: boolean;
6
36
  };
37
+ /**
38
+ * Converts a string to camelCase, removing non-alphanumeric characters.
39
+ *
40
+ * This function handles various input formats including kebab-case, snake_case,
41
+ * space-separated words, and mixed formats. It intelligently capitalizes words
42
+ * after the first unless `upperFirst` is specified.
43
+ *
44
+ * @param str - The string to convert to camelCase
45
+ * @param options - Options to control the conversion
46
+ * @param options.upperFirst - Whether to capitalize the first character (default: false)
47
+ * @returns The camelCase version of the input string
48
+ *
49
+ * @example Basic usage
50
+ * ```typescript
51
+ * camelCase('hello world'); // 'helloWorld'
52
+ * camelCase('user-name'); // 'userName'
53
+ * camelCase('api_key'); // 'apiKey'
54
+ * camelCase('HTTP-Response'); // 'httpResponse'
55
+ * ```
56
+ *
57
+ * @example PascalCase (upperFirst)
58
+ * ```typescript
59
+ * camelCase('user profile', { upperFirst: true }); // 'UserProfile'
60
+ * camelCase('api-client', { upperFirst: true }); // 'ApiClient'
61
+ * ```
62
+ *
63
+ * @example Complex inputs
64
+ * ```typescript
65
+ * camelCase('get-user-by-id'); // 'getUserById'
66
+ * camelCase('XML_HTTP_Request'); // 'xmlHttpRequest'
67
+ * camelCase('2fa-enabled'); // '2faEnabled'
68
+ * ```
69
+ */
7
70
  export declare const camelCase: (str: string, { upperFirst }?: CamelCaseOptions) => string;
8
71
  export {};
9
72
  //# sourceMappingURL=strings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../src/helpers/strings.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,KAAG,MAExC,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,KAAG,MAE1C,CAAA;AAED,KAAK,gBAAgB,GAAG;IACtB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,KAAK,MAAM,EAAE,iBAAgB,gBAAqB,KAAG,MAgB9E,CAAA"}
1
+ {"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../src/helpers/strings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,sBAAsB,CAAC;AAE9B,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,KAAG,MAExC,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,KAAG,MAE1C,CAAA;AAED;;GAEG;AACH,KAAK,gBAAgB,GAAG;IACtB,6DAA6D;IAC7D,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,SAAS,GAAI,KAAK,MAAM,EAAE,iBAAgB,gBAAqB,KAAG,MAgB9E,CAAA"}
@@ -1,10 +1,69 @@
1
+ /**
2
+ * Capitalizes the first character of a string.
3
+ *
4
+ * @param str - The string to capitalize
5
+ * @returns The string with the first character uppercased
6
+ *
7
+ * @example
8
+ * ```typescript
9
+ * capitalize('hello world'); // 'Hello world'
10
+ * capitalize('API'); // 'API'
11
+ * capitalize(''); // ''
12
+ * ```
13
+ */
1
14
  import "../_dnt.polyfills.js";
2
15
  export const capitalize = (str) => {
3
16
  return str.charAt(0).toUpperCase() + str.slice(1);
4
17
  };
18
+ /**
19
+ * Decapitalizes (lowercases) the first character of a string.
20
+ *
21
+ * @param str - The string to decapitalize
22
+ * @returns The string with the first character lowercased
23
+ *
24
+ * @example
25
+ * ```typescript
26
+ * decapitalize('Hello World'); // 'hello World'
27
+ * decapitalize('API'); // 'aPI'
28
+ * decapitalize(''); // ''
29
+ * ```
30
+ */
5
31
  export const decapitalize = (str) => {
6
32
  return str.charAt(0).toLocaleLowerCase() + str.slice(1);
7
33
  };
34
+ /**
35
+ * Converts a string to camelCase, removing non-alphanumeric characters.
36
+ *
37
+ * This function handles various input formats including kebab-case, snake_case,
38
+ * space-separated words, and mixed formats. It intelligently capitalizes words
39
+ * after the first unless `upperFirst` is specified.
40
+ *
41
+ * @param str - The string to convert to camelCase
42
+ * @param options - Options to control the conversion
43
+ * @param options.upperFirst - Whether to capitalize the first character (default: false)
44
+ * @returns The camelCase version of the input string
45
+ *
46
+ * @example Basic usage
47
+ * ```typescript
48
+ * camelCase('hello world'); // 'helloWorld'
49
+ * camelCase('user-name'); // 'userName'
50
+ * camelCase('api_key'); // 'apiKey'
51
+ * camelCase('HTTP-Response'); // 'httpResponse'
52
+ * ```
53
+ *
54
+ * @example PascalCase (upperFirst)
55
+ * ```typescript
56
+ * camelCase('user profile', { upperFirst: true }); // 'UserProfile'
57
+ * camelCase('api-client', { upperFirst: true }); // 'ApiClient'
58
+ * ```
59
+ *
60
+ * @example Complex inputs
61
+ * ```typescript
62
+ * camelCase('get-user-by-id'); // 'getUserById'
63
+ * camelCase('XML_HTTP_Request'); // 'xmlHttpRequest'
64
+ * camelCase('2fa-enabled'); // '2faEnabled'
65
+ * ```
66
+ */
8
67
  export const camelCase = (str, { upperFirst } = {}) => {
9
68
  let doCapitalize = Boolean(upperFirst);
10
69
  const camelCased = str.replace(/[^a-zA-Z0-9]+([a-zA-Z0-9]+)/g, (_, matched) => {
package/esm/mod.d.ts CHANGED
@@ -1,3 +1,69 @@
1
+ /**
2
+ * @module SKMTC Core
3
+ *
4
+ * SKMTC (Schema Kit Mapping & Type Conversion) is a powerful TypeScript/Deno library
5
+ * for processing OpenAPI v3 documents and generating code artifacts. It provides a
6
+ * comprehensive three-phase pipeline for parsing, generating, and rendering OpenAPI
7
+ * schemas into various output formats.
8
+ *
9
+ * ## Quick Start
10
+ *
11
+ * ```typescript
12
+ * import { toArtifacts } from '@skmtc/core';
13
+ *
14
+ * const result = await toArtifacts({
15
+ * traceId: 'my-trace',
16
+ * spanId: 'my-span',
17
+ * documentObject: openApiDoc,
18
+ * settings: clientSettings,
19
+ * toGeneratorConfigMap: () => generatorMap,
20
+ * startAt: Date.now(),
21
+ * silent: false
22
+ * });
23
+ *
24
+ * console.log(result.artifacts); // Generated code files
25
+ * console.log(result.manifest); // Generation metadata
26
+ * ```
27
+ *
28
+ * ## Architecture
29
+ *
30
+ * The library follows a three-phase pipeline:
31
+ * - **Parse Phase**: Converts OpenAPI v3 JSON into internal OAS objects
32
+ * - **Generate Phase**: Transforms OAS objects into generator artifacts
33
+ * - **Render Phase**: Renders artifacts to formatted files
34
+ *
35
+ * ## Key Components
36
+ *
37
+ * - {@link CoreContext} - Main orchestration class for the pipeline
38
+ * - {@link toArtifacts} - Primary transformation function
39
+ * - {@link ContentBase} - Base class for creating generators
40
+ * - {@link ModelBase} and {@link OperationBase} - DSL building blocks
41
+ * - {@link List} - Powerful string manipulation and code generation utility
42
+ *
43
+ * ## Type System
44
+ *
45
+ * The library provides comprehensive TypeScript types for OpenAPI schemas,
46
+ * generator configurations, and output artifacts. All major types are
47
+ * validated using Valibot schemas for runtime safety.
48
+ *
49
+ * @example Basic Usage
50
+ * ```typescript
51
+ * import { CoreContext } from '@skmtc/core';
52
+ *
53
+ * const context = new CoreContext({
54
+ * spanId: 'my-span',
55
+ * silent: false
56
+ * });
57
+ *
58
+ * const result = await context.toArtifacts({
59
+ * documentObject: myOpenApiDoc,
60
+ * settings: mySettings,
61
+ * toGeneratorConfigMap: () => myGenerators,
62
+ * prettier: prettierConfig,
63
+ * silent: false
64
+ * });
65
+ * ```
66
+ */
1
67
  import "./_dnt.polyfills.js";
2
68
  export * from './app/validate.js';
3
69
  export * from './context/CoreContext.js';
package/esm/mod.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts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