@skmtc/core 0.0.560 → 0.0.561

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 (65) hide show
  1. package/esm/context/CoreContext.d.ts +3 -3
  2. package/esm/context/CoreContext.d.ts.map +1 -1
  3. package/esm/context/CoreContext.js +4 -4
  4. package/esm/context/GenerateContext.d.ts +4 -4
  5. package/esm/context/GenerateContext.d.ts.map +1 -1
  6. package/esm/context/GenerateContext.js +34 -19
  7. package/esm/dsl/model/ModelInsertable.d.ts +10 -3
  8. package/esm/dsl/model/ModelInsertable.d.ts.map +1 -1
  9. package/esm/dsl/model/toModelInsertable.d.ts +2 -9
  10. package/esm/dsl/model/toModelInsertable.d.ts.map +1 -1
  11. package/esm/dsl/model/toModelInsertable.js +0 -18
  12. package/esm/dsl/operation/OperationInsertable.d.ts +9 -3
  13. package/esm/dsl/operation/OperationInsertable.d.ts.map +1 -1
  14. package/esm/dsl/operation/toOperationInsertable.d.ts +3 -11
  15. package/esm/dsl/operation/toOperationInsertable.d.ts.map +1 -1
  16. package/esm/dsl/operation/toOperationInsertable.js +1 -32
  17. package/esm/mod.d.ts +1 -0
  18. package/esm/mod.d.ts.map +1 -1
  19. package/esm/mod.js +1 -0
  20. package/esm/run/toEnrichments.d.ts +2 -2
  21. package/esm/run/toEnrichments.d.ts.map +1 -1
  22. package/esm/run/toEnrichments.js +1 -1
  23. package/esm/run/toSettings.d.ts +2 -2
  24. package/esm/run/toSettings.d.ts.map +1 -1
  25. package/esm/run/transform.d.ts +3 -3
  26. package/esm/run/transform.d.ts.map +1 -1
  27. package/esm/run/transform.js +2 -2
  28. package/esm/types/GeneratorType.d.ts +5 -5
  29. package/esm/types/GeneratorType.d.ts.map +1 -1
  30. package/esm/types/SchemaItem.d.ts +8 -0
  31. package/esm/types/SchemaItem.d.ts.map +1 -0
  32. package/esm/types/SchemaItem.js +1 -0
  33. package/package.json +5 -1
  34. package/script/context/CoreContext.d.ts +3 -3
  35. package/script/context/CoreContext.d.ts.map +1 -1
  36. package/script/context/CoreContext.js +4 -4
  37. package/script/context/GenerateContext.d.ts +4 -4
  38. package/script/context/GenerateContext.d.ts.map +1 -1
  39. package/script/context/GenerateContext.js +34 -19
  40. package/script/dsl/model/ModelInsertable.d.ts +10 -3
  41. package/script/dsl/model/ModelInsertable.d.ts.map +1 -1
  42. package/script/dsl/model/toModelInsertable.d.ts +2 -9
  43. package/script/dsl/model/toModelInsertable.d.ts.map +1 -1
  44. package/script/dsl/model/toModelInsertable.js +0 -18
  45. package/script/dsl/operation/OperationInsertable.d.ts +9 -3
  46. package/script/dsl/operation/OperationInsertable.d.ts.map +1 -1
  47. package/script/dsl/operation/toOperationInsertable.d.ts +3 -11
  48. package/script/dsl/operation/toOperationInsertable.d.ts.map +1 -1
  49. package/script/dsl/operation/toOperationInsertable.js +1 -32
  50. package/script/mod.d.ts +1 -0
  51. package/script/mod.d.ts.map +1 -1
  52. package/script/mod.js +1 -0
  53. package/script/run/toEnrichments.d.ts +2 -2
  54. package/script/run/toEnrichments.d.ts.map +1 -1
  55. package/script/run/toEnrichments.js +1 -1
  56. package/script/run/toSettings.d.ts +2 -2
  57. package/script/run/toSettings.d.ts.map +1 -1
  58. package/script/run/transform.d.ts +3 -3
  59. package/script/run/transform.d.ts.map +1 -1
  60. package/script/run/transform.js +2 -2
  61. package/script/types/GeneratorType.d.ts +5 -5
  62. package/script/types/GeneratorType.d.ts.map +1 -1
  63. package/script/types/SchemaItem.d.ts +8 -0
  64. package/script/types/SchemaItem.d.ts.map +1 -0
  65. package/script/types/SchemaItem.js +3 -0
@@ -1,8 +1,8 @@
1
1
  import type { OasDocument } from '../oas/document/Document.js';
2
2
  import type { ClientSettings, ClientGeneratorSettings } from '../types/Settings.js';
3
- import type { GeneratorType } from '../types/GeneratorType.js';
3
+ import type { GeneratorConfig } from '../types/GeneratorType.js';
4
4
  type ToSettingsArgs<EnrichmentType> = {
5
- generators: GeneratorType<EnrichmentType>[];
5
+ generators: GeneratorConfig<EnrichmentType>[];
6
6
  clientSettings: ClientSettings | undefined;
7
7
  defaultSelected: boolean;
8
8
  oasDocument: OasDocument;
@@ -1 +1 @@
1
- {"version":3,"file":"toSettings.d.ts","sourceRoot":"","sources":["../../src/run/toSettings.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,uBAAuB,EAAmB,MAAM,sBAAsB,CAAA;AACpG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAE9D,KAAK,cAAc,CAAC,cAAc,IAAI;IACpC,UAAU,EAAE,aAAa,CAAC,cAAc,CAAC,EAAE,CAAA;IAC3C,cAAc,EAAE,cAAc,GAAG,SAAS,CAAA;IAC1C,eAAe,EAAE,OAAO,CAAA;IACxB,WAAW,EAAE,WAAW,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,cAAc,gEAKtC,cAAc,CAAC,cAAc,CAAC,8BAuChC,CAAA"}
1
+ {"version":3,"file":"toSettings.d.ts","sourceRoot":"","sources":["../../src/run/toSettings.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,uBAAuB,EAAmB,MAAM,sBAAsB,CAAA;AACpG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,KAAK,cAAc,CAAC,cAAc,IAAI;IACpC,UAAU,EAAE,eAAe,CAAC,cAAc,CAAC,EAAE,CAAA;IAC7C,cAAc,EAAE,cAAc,GAAG,SAAS,CAAA;IAC1C,eAAe,EAAE,OAAO,CAAA;IACxB,WAAW,EAAE,WAAW,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,cAAc,gEAKtC,cAAc,CAAC,cAAc,CAAC,8BAuChC,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import type { ClientSettings } from '../types/Settings.js';
2
2
  import type { PrettierConfigType } from '../types/prettierConfig.js';
3
3
  import type { ManifestContent } from '../types/Manifest.js';
4
- import type { GeneratorsMap, GeneratorType } from '../types/GeneratorType.js';
4
+ import type { GeneratorsMapContainer } from '../types/GeneratorType.js';
5
5
  import type { OpenAPIV3 } from 'openapi-types';
6
6
  type TransformArgs = {
7
7
  traceId: string;
@@ -10,10 +10,10 @@ type TransformArgs = {
10
10
  settings: ClientSettings | undefined;
11
11
  prettier?: PrettierConfigType;
12
12
  logsPath?: string;
13
- toGeneratorsMap: <EnrichmentType>() => GeneratorsMap<GeneratorType<EnrichmentType>, EnrichmentType>;
13
+ toGeneratorConfigMap: <EnrichmentType>() => GeneratorsMapContainer<EnrichmentType>;
14
14
  startAt: number;
15
15
  };
16
- export declare const transform: ({ traceId, spanId, documentObject, settings, prettier, toGeneratorsMap, logsPath, startAt }: TransformArgs) => {
16
+ export declare const transform: ({ traceId, spanId, documentObject, settings, prettier, toGeneratorConfigMap, logsPath, startAt }: TransformArgs) => {
17
17
  artifacts: Record<string, string>;
18
18
  manifest: ManifestContent;
19
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../src/run/transform.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAEpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,KAAK,aAAa,GAAG;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,SAAS,CAAC,QAAQ,CAAA;IAClC,QAAQ,EAAE,cAAc,GAAG,SAAS,CAAA;IACpC,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,eAAe,EAAE,CAAC,cAAc,OAAO,aAAa,CAClD,aAAa,CAAC,cAAc,CAAC,EAC7B,cAAc,CACf,CAAA;IACD,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,SAAS,gGASnB,aAAa;;;CAuBf,CAAA"}
1
+ {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../src/run/transform.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAEpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,KAAK,aAAa,GAAG;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,SAAS,CAAC,QAAQ,CAAA;IAClC,QAAQ,EAAE,cAAc,GAAG,SAAS,CAAA;IACpC,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,oBAAoB,EAAE,CAAC,cAAc,OAAO,sBAAsB,CAAC,cAAc,CAAC,CAAA;IAClF,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,SAAS,qGASnB,aAAa;;;CAuBf,CAAA"}
@@ -26,11 +26,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.transform = void 0;
27
27
  const dntShim = __importStar(require("../_dnt.shims.js"));
28
28
  const CoreContext_js_1 = require("../context/CoreContext.js");
29
- const transform = ({ traceId, spanId, documentObject, settings, prettier, toGeneratorsMap, logsPath, startAt }) => {
29
+ const transform = ({ traceId, spanId, documentObject, settings, prettier, toGeneratorConfigMap, logsPath, startAt }) => {
30
30
  const context = new CoreContext_js_1.CoreContext({ spanId, logsPath });
31
31
  const { artifacts, files, previews, results } = context.transform({
32
32
  settings,
33
- toGeneratorsMap,
33
+ toGeneratorConfigMap,
34
34
  prettier,
35
35
  documentObject
36
36
  });
@@ -1,8 +1,8 @@
1
- import type { OperationInsertable } from '../dsl/operation/OperationInsertable.js';
2
- import type { ModelInsertable } from '../dsl/model/ModelInsertable.js';
3
- import type { GeneratedValue } from './GeneratedValue.js';
4
- export type GeneratorType<EnrichmentType> = OperationInsertable<GeneratedValue, EnrichmentType> | ModelInsertable<GeneratedValue, EnrichmentType>;
5
- export type GeneratorsMap<G extends GeneratorType<EnrichmentType>, EnrichmentType> = {
1
+ import type { OperationConfig } from '../dsl/operation/OperationInsertable.js';
2
+ import type { ModelConfig } from '../dsl/model/ModelInsertable.js';
3
+ export type GeneratorConfig<EnrichmentType> = OperationConfig<EnrichmentType> | ModelConfig<EnrichmentType>;
4
+ export type GeneratorsMap<G extends GeneratorConfig<EnrichmentType>, EnrichmentType> = {
6
5
  [K in keyof G]: G[K];
7
6
  };
7
+ export type GeneratorsMapContainer<EnrichmentType> = GeneratorsMap<GeneratorConfig<EnrichmentType>, EnrichmentType>;
8
8
  //# sourceMappingURL=GeneratorType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GeneratorType.d.ts","sourceRoot":"","sources":["../../src/types/GeneratorType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEzD,MAAM,MAAM,aAAa,CAAC,cAAc,IACpC,mBAAmB,CAAC,cAAc,EAAE,cAAc,CAAC,GACnD,eAAe,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAEnD,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,aAAa,CAAC,cAAc,CAAC,EAAE,cAAc,IAAI;KAClF,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,CAAA"}
1
+ {"version":3,"file":"GeneratorType.d.ts","sourceRoot":"","sources":["../../src/types/GeneratorType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AAC9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAElE,MAAM,MAAM,eAAe,CAAC,cAAc,IACtC,eAAe,CAAC,cAAc,CAAC,GAC/B,WAAW,CAAC,cAAc,CAAC,CAAA;AAE/B,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,eAAe,CAAC,cAAc,CAAC,EAAE,cAAc,IAAI;KACpF,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,CAAA;AAED,MAAM,MAAM,sBAAsB,CAAC,cAAc,IAAI,aAAa,CAChE,eAAe,CAAC,cAAc,CAAC,EAC/B,cAAc,CACf,CAAA"}
@@ -0,0 +1,8 @@
1
+ import "../_dnt.polyfills.js";
2
+ import type { OpenAPIV3 } from 'openapi-types';
3
+ export type SchemaItem = {
4
+ schema: OpenAPIV3.SchemaObject | OpenAPIV3.ReferenceObject;
5
+ name: string;
6
+ type: 'list-item' | 'form-item';
7
+ };
8
+ //# sourceMappingURL=SchemaItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SchemaItem.d.ts","sourceRoot":"","sources":["../../src/types/SchemaItem.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,EAAE,SAAS,CAAC,YAAY,GAAG,SAAS,CAAC,eAAe,CAAA;IAC1D,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,WAAW,GAAG,WAAW,CAAA;CAChC,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ require("../_dnt.polyfills.js");