@skmtc/core 0.0.25 → 0.0.26

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.
@@ -68,49 +68,7 @@ export type ModelsPluginSettings = {
68
68
  pluginType: 'models';
69
69
  models: Record<string, BaseSettings>;
70
70
  };
71
- export declare const pluginSettings: z.ZodDiscriminatedUnion<"pluginType", [z.ZodObject<{
72
- id: z.ZodString;
73
- src: z.ZodString;
74
- exportPath: z.ZodOptional<z.ZodString>;
75
- description: z.ZodOptional<z.ZodString>;
76
- pluginType: z.ZodLiteral<"operations">;
77
- operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>;
78
- }, "strip", z.ZodTypeAny, {
79
- id: string;
80
- src: string;
81
- pluginType: "operations";
82
- operations: Record<string, Record<string, BaseSettings>>;
83
- exportPath?: string | undefined;
84
- description?: string | undefined;
85
- }, {
86
- id: string;
87
- src: string;
88
- pluginType: "operations";
89
- operations: Record<string, Record<string, BaseSettings>>;
90
- exportPath?: string | undefined;
91
- description?: string | undefined;
92
- }>, z.ZodObject<{
93
- id: z.ZodString;
94
- src: z.ZodString;
95
- exportPath: z.ZodOptional<z.ZodString>;
96
- pluginType: z.ZodLiteral<"models">;
97
- description: z.ZodOptional<z.ZodString>;
98
- models: z.ZodRecord<z.ZodString, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>;
99
- }, "strip", z.ZodTypeAny, {
100
- id: string;
101
- src: string;
102
- pluginType: "models";
103
- models: Record<string, BaseSettings>;
104
- exportPath?: string | undefined;
105
- description?: string | undefined;
106
- }, {
107
- id: string;
108
- src: string;
109
- pluginType: "models";
110
- models: Record<string, BaseSettings>;
111
- exportPath?: string | undefined;
112
- description?: string | undefined;
113
- }>]>;
71
+ export declare const pluginSettings: z.ZodType<PluginSettings>;
114
72
  export type PluginSettings = OperationsPluginSettings | ModelsPluginSettings;
115
73
  export declare const settings: z.ZodType<Settings>;
116
74
  export type Settings = {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/settings/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAU,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAK/C,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAC3B,UAAU,GACV,UAAU,GACV,YAAY,GACZ,YAAY,CAAA;AAEhB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;EAOnC,CAAA;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,YAAY,CAAA;IACxB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAA;CACzD,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;EAO/B,CAAA;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,QAAQ,CAAA;IACpB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;CACr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CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAA;CACzD,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;EAO/B,CAAA;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,QAAQ,CAAA;IACpB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;CACrC,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAGpD,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,wBAAwB,GAAG,oBAAoB,CAAA;AAE5E,eAAO,MAAM,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAIvC,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;CACxC,CAAA"}
@@ -22,10 +22,7 @@ export const modelsPluginSettings = z.object({
22
22
  description: z.string().optional(),
23
23
  models: z.record(baseSettings)
24
24
  });
25
- export const pluginSettings = z.discriminatedUnion('pluginType', [
26
- operationsPluginSettings,
27
- modelsPluginSettings
28
- ]);
25
+ export const pluginSettings = z.discriminatedUnion('pluginType', [operationsPluginSettings, modelsPluginSettings]);
29
26
  export const settings = z.object({
30
27
  basePath: z.string().optional(),
31
28
  alias: z.record(z.string()).optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skmtc/core",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "main": "./script/mod.js",
5
5
  "module": "./esm/mod.js",
6
6
  "exports": {
@@ -68,49 +68,7 @@ export type ModelsPluginSettings = {
68
68
  pluginType: 'models';
69
69
  models: Record<string, BaseSettings>;
70
70
  };
71
- export declare const pluginSettings: z.ZodDiscriminatedUnion<"pluginType", [z.ZodObject<{
72
- id: z.ZodString;
73
- src: z.ZodString;
74
- exportPath: z.ZodOptional<z.ZodString>;
75
- description: z.ZodOptional<z.ZodString>;
76
- pluginType: z.ZodLiteral<"operations">;
77
- operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>;
78
- }, "strip", z.ZodTypeAny, {
79
- id: string;
80
- src: string;
81
- pluginType: "operations";
82
- operations: Record<string, Record<string, BaseSettings>>;
83
- exportPath?: string | undefined;
84
- description?: string | undefined;
85
- }, {
86
- id: string;
87
- src: string;
88
- pluginType: "operations";
89
- operations: Record<string, Record<string, BaseSettings>>;
90
- exportPath?: string | undefined;
91
- description?: string | undefined;
92
- }>, z.ZodObject<{
93
- id: z.ZodString;
94
- src: z.ZodString;
95
- exportPath: z.ZodOptional<z.ZodString>;
96
- pluginType: z.ZodLiteral<"models">;
97
- description: z.ZodOptional<z.ZodString>;
98
- models: z.ZodRecord<z.ZodString, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>;
99
- }, "strip", z.ZodTypeAny, {
100
- id: string;
101
- src: string;
102
- pluginType: "models";
103
- models: Record<string, BaseSettings>;
104
- exportPath?: string | undefined;
105
- description?: string | undefined;
106
- }, {
107
- id: string;
108
- src: string;
109
- pluginType: "models";
110
- models: Record<string, BaseSettings>;
111
- exportPath?: string | undefined;
112
- description?: string | undefined;
113
- }>]>;
71
+ export declare const pluginSettings: z.ZodType<PluginSettings>;
114
72
  export type PluginSettings = OperationsPluginSettings | ModelsPluginSettings;
115
73
  export declare const settings: z.ZodType<Settings>;
116
74
  export type Settings = {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","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ACzD,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;EAO/B,CAAA;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,QAAQ,CAAA;IACpB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;CACrC,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAGpD,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,wBAAwB,GAAG,oBAAoB,CAAA;AAE5E,eAAO,MAAM,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAIvC,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;CACxC,CAAA"}
@@ -25,10 +25,7 @@ exports.modelsPluginSettings = zod_1.z.object({
25
25
  description: zod_1.z.string().optional(),
26
26
  models: zod_1.z.record(exports.baseSettings)
27
27
  });
28
- exports.pluginSettings = zod_1.z.discriminatedUnion('pluginType', [
29
- exports.operationsPluginSettings,
30
- exports.modelsPluginSettings
31
- ]);
28
+ exports.pluginSettings = zod_1.z.discriminatedUnion('pluginType', [exports.operationsPluginSettings, exports.modelsPluginSettings]);
32
29
  exports.settings = zod_1.z.object({
33
30
  basePath: zod_1.z.string().optional(),
34
31
  alias: zod_1.z.record(zod_1.z.string()).optional(),