@skmtc/core 0.0.481 → 0.0.482

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.
@@ -7,6 +7,6 @@ type ToEnrichmentsArgs = {
7
7
  generators: GeneratorsType[];
8
8
  oasDocument: OasDocument;
9
9
  };
10
- export declare const toEnrichments: ({ generators, oasDocument }: ToEnrichmentsArgs) => Promise<Record<string, unknown>>;
10
+ export declare const toEnrichments: ({ generators, oasDocument }: ToEnrichmentsArgs) => Promise<Record<string, Record<string, unknown>>>;
11
11
  export {};
12
12
  //# sourceMappingURL=toEnrichments.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toEnrichments.d.ts","sourceRoot":"","sources":["../../src/run/toEnrichments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AACpG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAI9D,KAAK,cAAc,GACf,gBAAgB,GAChB,mBAAmB,CAAC,cAAc,CAAC,GACnC,eAAe,CAAC,cAAc,CAAC,CAAA;AAEnC,KAAK,iBAAiB,GAAG;IACvB,UAAU,EAAE,cAAc,EAAE,CAAA;IAC5B,WAAW,EAAE,WAAW,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,aAAa,gCAAuC,iBAAiB,qCA6BjF,CAAA"}
1
+ {"version":3,"file":"toEnrichments.d.ts","sourceRoot":"","sources":["../../src/run/toEnrichments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AACpG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAI9D,KAAK,cAAc,GACf,gBAAgB,GAChB,mBAAmB,CAAC,cAAc,CAAC,GACnC,eAAe,CAAC,cAAc,CAAC,CAAA;AAEnC,KAAK,iBAAiB,GAAG;IACvB,UAAU,EAAE,cAAc,EAAE,CAAA;IAC5B,WAAW,EAAE,WAAW,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,aAAa,gCAAuC,iBAAiB,qDA6BjF,CAAA"}
@@ -7,7 +7,7 @@ export const toEnrichments = async ({ generators, oasDocument }) => {
7
7
  const enrichmentRequest = generator.toEnrichmentRequest?.(operation);
8
8
  if (enrichmentRequest) {
9
9
  const enrichmentResponse = await handleEnrichment(enrichmentRequest);
10
- output[`${generator.name}.${operation.path}.${operation.method}.enrichments`] =
10
+ output[generator.id][`operations.${operation.path}.${operation.method}.enrichments`] =
11
11
  JSON.parse(enrichmentResponse);
12
12
  }
13
13
  }
@@ -17,7 +17,7 @@ export const toEnrichments = async ({ generators, oasDocument }) => {
17
17
  const enrichmentRequest = generator.toEnrichmentRequest?.(refName);
18
18
  if (enrichmentRequest) {
19
19
  const enrichmentResponse = await handleEnrichment(enrichmentRequest);
20
- output[`${generator.name}.${refName}.enrichments`] = JSON.parse(enrichmentResponse);
20
+ output[generator.id][`models.${refName}.enrichments`] = JSON.parse(enrichmentResponse);
21
21
  }
22
22
  }
23
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skmtc/core",
3
- "version": "0.0.481",
3
+ "version": "0.0.482",
4
4
  "main": "./script/mod.js",
5
5
  "module": "./esm/mod.js",
6
6
  "exports": {
@@ -7,6 +7,6 @@ type ToEnrichmentsArgs = {
7
7
  generators: GeneratorsType[];
8
8
  oasDocument: OasDocument;
9
9
  };
10
- export declare const toEnrichments: ({ generators, oasDocument }: ToEnrichmentsArgs) => Promise<Record<string, unknown>>;
10
+ export declare const toEnrichments: ({ generators, oasDocument }: ToEnrichmentsArgs) => Promise<Record<string, Record<string, unknown>>>;
11
11
  export {};
12
12
  //# sourceMappingURL=toEnrichments.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toEnrichments.d.ts","sourceRoot":"","sources":["../../src/run/toEnrichments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AACpG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAI9D,KAAK,cAAc,GACf,gBAAgB,GAChB,mBAAmB,CAAC,cAAc,CAAC,GACnC,eAAe,CAAC,cAAc,CAAC,CAAA;AAEnC,KAAK,iBAAiB,GAAG;IACvB,UAAU,EAAE,cAAc,EAAE,CAAA;IAC5B,WAAW,EAAE,WAAW,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,aAAa,gCAAuC,iBAAiB,qCA6BjF,CAAA"}
1
+ {"version":3,"file":"toEnrichments.d.ts","sourceRoot":"","sources":["../../src/run/toEnrichments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AACpG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAI9D,KAAK,cAAc,GACf,gBAAgB,GAChB,mBAAmB,CAAC,cAAc,CAAC,GACnC,eAAe,CAAC,cAAc,CAAC,CAAA;AAEnC,KAAK,iBAAiB,GAAG;IACvB,UAAU,EAAE,cAAc,EAAE,CAAA;IAC5B,WAAW,EAAE,WAAW,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,aAAa,gCAAuC,iBAAiB,qDA6BjF,CAAA"}
@@ -10,7 +10,7 @@ const toEnrichments = async ({ generators, oasDocument }) => {
10
10
  const enrichmentRequest = generator.toEnrichmentRequest?.(operation);
11
11
  if (enrichmentRequest) {
12
12
  const enrichmentResponse = await (0, handleEnrichment_js_1.handleEnrichment)(enrichmentRequest);
13
- output[`${generator.name}.${operation.path}.${operation.method}.enrichments`] =
13
+ output[generator.id][`operations.${operation.path}.${operation.method}.enrichments`] =
14
14
  JSON.parse(enrichmentResponse);
15
15
  }
16
16
  }
@@ -20,7 +20,7 @@ const toEnrichments = async ({ generators, oasDocument }) => {
20
20
  const enrichmentRequest = generator.toEnrichmentRequest?.(refName);
21
21
  if (enrichmentRequest) {
22
22
  const enrichmentResponse = await (0, handleEnrichment_js_1.handleEnrichment)(enrichmentRequest);
23
- output[`${generator.name}.${refName}.enrichments`] = JSON.parse(enrichmentResponse);
23
+ output[generator.id][`models.${refName}.enrichments`] = JSON.parse(enrichmentResponse);
24
24
  }
25
25
  }
26
26
  }