@skmtc/core 0.0.367 → 0.0.369

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 (71) hide show
  1. package/esm/context/GenerateContext.d.ts +79 -4
  2. package/esm/context/GenerateContext.d.ts.map +1 -1
  3. package/esm/context/GenerateContext.js +113 -33
  4. package/esm/oas/array/Array.d.ts +32 -8
  5. package/esm/oas/array/Array.d.ts.map +1 -1
  6. package/esm/oas/array/Array.js +60 -30
  7. package/esm/oas/boolean/Boolean.d.ts +24 -6
  8. package/esm/oas/boolean/Boolean.d.ts.map +1 -1
  9. package/esm/oas/boolean/Boolean.js +40 -24
  10. package/esm/oas/integer/Integer.d.ts +29 -8
  11. package/esm/oas/integer/Integer.d.ts.map +1 -1
  12. package/esm/oas/integer/Integer.js +57 -30
  13. package/esm/oas/number/Number.d.ts +24 -6
  14. package/esm/oas/number/Number.d.ts.map +1 -1
  15. package/esm/oas/number/Number.js +40 -24
  16. package/esm/oas/object/Object.d.ts +56 -12
  17. package/esm/oas/object/Object.d.ts.map +1 -1
  18. package/esm/oas/object/Object.js +52 -5
  19. package/esm/oas/string/String.d.ts +32 -8
  20. package/esm/oas/string/String.d.ts.map +1 -1
  21. package/esm/oas/string/String.js +63 -33
  22. package/esm/oas/union/Union.d.ts +38 -8
  23. package/esm/oas/union/Union.d.ts.map +1 -1
  24. package/esm/oas/union/Union.js +66 -30
  25. package/esm/oas/unknown/Unknown.d.ts +24 -5
  26. package/esm/oas/unknown/Unknown.d.ts.map +1 -1
  27. package/esm/oas/unknown/Unknown.js +34 -21
  28. package/esm/oas/void/Void.d.ts +22 -5
  29. package/esm/oas/void/Void.d.ts.map +1 -1
  30. package/esm/oas/void/Void.js +32 -21
  31. package/esm/server/createServer.d.ts.map +1 -1
  32. package/esm/server/createServer.js +2 -1
  33. package/esm/typescript/List.d.ts +19 -3
  34. package/esm/typescript/List.d.ts.map +1 -1
  35. package/esm/typescript/List.js +31 -0
  36. package/package.json +1 -1
  37. package/script/context/GenerateContext.d.ts +79 -4
  38. package/script/context/GenerateContext.d.ts.map +1 -1
  39. package/script/context/GenerateContext.js +113 -33
  40. package/script/oas/array/Array.d.ts +32 -8
  41. package/script/oas/array/Array.d.ts.map +1 -1
  42. package/script/oas/array/Array.js +60 -30
  43. package/script/oas/boolean/Boolean.d.ts +24 -6
  44. package/script/oas/boolean/Boolean.d.ts.map +1 -1
  45. package/script/oas/boolean/Boolean.js +40 -24
  46. package/script/oas/integer/Integer.d.ts +29 -8
  47. package/script/oas/integer/Integer.d.ts.map +1 -1
  48. package/script/oas/integer/Integer.js +57 -30
  49. package/script/oas/number/Number.d.ts +24 -6
  50. package/script/oas/number/Number.d.ts.map +1 -1
  51. package/script/oas/number/Number.js +40 -24
  52. package/script/oas/object/Object.d.ts +56 -12
  53. package/script/oas/object/Object.d.ts.map +1 -1
  54. package/script/oas/object/Object.js +52 -5
  55. package/script/oas/string/String.d.ts +32 -8
  56. package/script/oas/string/String.d.ts.map +1 -1
  57. package/script/oas/string/String.js +63 -33
  58. package/script/oas/union/Union.d.ts +38 -8
  59. package/script/oas/union/Union.d.ts.map +1 -1
  60. package/script/oas/union/Union.js +66 -30
  61. package/script/oas/unknown/Unknown.d.ts +24 -5
  62. package/script/oas/unknown/Unknown.d.ts.map +1 -1
  63. package/script/oas/unknown/Unknown.js +34 -21
  64. package/script/oas/void/Void.d.ts +22 -5
  65. package/script/oas/void/Void.d.ts.map +1 -1
  66. package/script/oas/void/Void.js +32 -21
  67. package/script/server/createServer.d.ts.map +1 -1
  68. package/script/server/createServer.js +2 -1
  69. package/script/typescript/List.d.ts +19 -3
  70. package/script/typescript/List.d.ts.map +1 -1
  71. package/script/typescript/List.js +33 -1
@@ -1,44 +1,84 @@
1
1
  "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
- };
8
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
- };
13
- var _OasString_fields;
14
2
  Object.defineProperty(exports, "__esModule", { value: true });
15
3
  exports.OasString = void 0;
4
+ /**
5
+ * Object representing a string in the OpenAPI Specification.
6
+ */
16
7
  class OasString {
17
8
  constructor(fields) {
9
+ /**
10
+ * Object is part the 'schema' set which is used
11
+ * to define data types in an OpenAPI document.
12
+ */
18
13
  Object.defineProperty(this, "oasType", {
19
14
  enumerable: true,
20
15
  configurable: true,
21
16
  writable: true,
22
17
  value: 'schema'
23
18
  });
19
+ /**
20
+ * Constant value 'string' useful for type narrowing and tagged unions.
21
+ */
24
22
  Object.defineProperty(this, "type", {
25
23
  enumerable: true,
26
24
  configurable: true,
27
25
  writable: true,
28
26
  value: 'string'
29
27
  });
30
- _OasString_fields.set(this, void 0);
31
- __classPrivateFieldSet(this, _OasString_fields, fields, "f");
32
- }
33
- get title() {
34
- return __classPrivateFieldGet(this, _OasString_fields, "f").title;
35
- }
36
- get description() {
37
- return __classPrivateFieldGet(this, _OasString_fields, "f").description;
38
- }
39
- get nullable() {
40
- return __classPrivateFieldGet(this, _OasString_fields, "f").nullable;
28
+ /**
29
+ * A short summary of the string.
30
+ */
31
+ Object.defineProperty(this, "title", {
32
+ enumerable: true,
33
+ configurable: true,
34
+ writable: true,
35
+ value: void 0
36
+ });
37
+ /**
38
+ * A description of the string.
39
+ */
40
+ Object.defineProperty(this, "description", {
41
+ enumerable: true,
42
+ configurable: true,
43
+ writable: true,
44
+ value: void 0
45
+ });
46
+ /**
47
+ * The format of the string.
48
+ */
49
+ Object.defineProperty(this, "format", {
50
+ enumerable: true,
51
+ configurable: true,
52
+ writable: true,
53
+ value: void 0
54
+ });
55
+ /**
56
+ * An array of allowed values for the string.
57
+ */
58
+ Object.defineProperty(this, "enums", {
59
+ enumerable: true,
60
+ configurable: true,
61
+ writable: true,
62
+ value: void 0
63
+ });
64
+ /**
65
+ * Indicates whether value can be null.
66
+ */
67
+ Object.defineProperty(this, "nullable", {
68
+ enumerable: true,
69
+ configurable: true,
70
+ writable: true,
71
+ value: void 0
72
+ });
73
+ this.title = fields.title;
74
+ this.description = fields.description;
75
+ this.format = fields.format;
76
+ this.enums = fields.enums;
77
+ this.nullable = fields.nullable;
41
78
  }
79
+ // get pattern() {
80
+ // return this.fields.pattern
81
+ // }
42
82
  isRef() {
43
83
  return false;
44
84
  }
@@ -48,15 +88,5 @@ class OasString {
48
88
  resolveOnce() {
49
89
  return this;
50
90
  }
51
- get format() {
52
- return __classPrivateFieldGet(this, _OasString_fields, "f").format;
53
- }
54
- // get pattern() {
55
- // return this.fields.pattern
56
- // }
57
- get enums() {
58
- return __classPrivateFieldGet(this, _OasString_fields, "f").enums;
59
- }
60
91
  }
61
92
  exports.OasString = OasString;
62
- _OasString_fields = new WeakMap();
@@ -8,16 +8,46 @@ export type UnionFields = {
8
8
  discriminator?: OasDiscriminator;
9
9
  members: (OasSchema | OasRef<'schema'>)[];
10
10
  };
11
+ /**
12
+ * Object representing a 'oneOf' or 'anyOf' in the OpenAPI Specification.
13
+ *
14
+ * In the context of TypeScript 'anyOf' is not helpful since it implies
15
+ * a union that consists of all possible combinations of member types.
16
+ *
17
+ * Generating such combination types would not be useful and we map both
18
+ * 'oneOf' and 'anyOf' to a TypeScript union type.
19
+ */
11
20
  export declare class OasUnion {
12
- #private;
13
- oasType: 'schema';
14
- type: 'union';
21
+ /**
22
+ * Object is part the 'schema' set which is used
23
+ * to define data types in an OpenAPI document.
24
+ */
25
+ oasType: "schema";
26
+ /**
27
+ * Constant value 'union' useful for type narrowing and tagged unions.
28
+ */
29
+ type: "union";
30
+ /**
31
+ * A short summary of the union.
32
+ */
33
+ title: string | undefined;
34
+ /**
35
+ * A description of the union.
36
+ */
37
+ description: string | undefined;
38
+ /**
39
+ * Indicates whether value can be null.
40
+ */
41
+ nullable: boolean | undefined;
42
+ /**
43
+ * Discriminator object used to tag member types and make the union a tagged union.
44
+ */
45
+ discriminator: OasDiscriminator | undefined;
46
+ /**
47
+ * Array of schemas or references to schemas that are part of the union.
48
+ */
49
+ members: (OasSchema | OasRef<'schema'>)[];
15
50
  constructor(fields: UnionFields);
16
- get title(): string | undefined;
17
- get description(): string | undefined;
18
- get discriminator(): OasDiscriminator | undefined;
19
- get members(): (OasSchema | OasRef<'schema'>)[];
20
- get nullable(): boolean | undefined;
21
51
  isRef(): this is OasRef<'schema'>;
22
52
  resolve(): OasUnion;
23
53
  resolveOnce(): OasUnion;
@@ -1 +1 @@
1
- {"version":3,"file":"Union.d.ts","sourceRoot":"","sources":["../../../src/oas/union/Union.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,gBAAgB,CAAA;IAChC,OAAO,EAAE,CAAC,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAA;CAC1C,CAAA;AAED,qBAAa,QAAQ;;IACnB,OAAO,EAAE,QAAQ,CAAW;IAC5B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;IAC7B;;OAEG;IACH,aAAa,EAAE,gBAAgB,GAAG,SAAS,CAAA;IAC3C;;OAEG;IACH,OAAO,EAAE,CAAC,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAA;gBAE7B,MAAM,EAAE,WAAW;IAQ/B,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC,OAAO,IAAI,QAAQ;IAInB,WAAW,IAAI,QAAQ;CAGxB"}
@@ -1,49 +1,86 @@
1
1
  "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
- };
8
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
- };
13
- var _OasUnion_fields;
14
2
  Object.defineProperty(exports, "__esModule", { value: true });
15
3
  exports.OasUnion = void 0;
4
+ /**
5
+ * Object representing a 'oneOf' or 'anyOf' in the OpenAPI Specification.
6
+ *
7
+ * In the context of TypeScript 'anyOf' is not helpful since it implies
8
+ * a union that consists of all possible combinations of member types.
9
+ *
10
+ * Generating such combination types would not be useful and we map both
11
+ * 'oneOf' and 'anyOf' to a TypeScript union type.
12
+ */
16
13
  class OasUnion {
17
14
  constructor(fields) {
15
+ /**
16
+ * Object is part the 'schema' set which is used
17
+ * to define data types in an OpenAPI document.
18
+ */
18
19
  Object.defineProperty(this, "oasType", {
19
20
  enumerable: true,
20
21
  configurable: true,
21
22
  writable: true,
22
23
  value: 'schema'
23
24
  });
25
+ /**
26
+ * Constant value 'union' useful for type narrowing and tagged unions.
27
+ */
24
28
  Object.defineProperty(this, "type", {
25
29
  enumerable: true,
26
30
  configurable: true,
27
31
  writable: true,
28
32
  value: 'union'
29
33
  });
30
- _OasUnion_fields.set(this, void 0);
31
- __classPrivateFieldSet(this, _OasUnion_fields, fields, "f");
32
- }
33
- get title() {
34
- return __classPrivateFieldGet(this, _OasUnion_fields, "f").title;
35
- }
36
- get description() {
37
- return __classPrivateFieldGet(this, _OasUnion_fields, "f").description;
38
- }
39
- get discriminator() {
40
- return __classPrivateFieldGet(this, _OasUnion_fields, "f").discriminator;
41
- }
42
- get members() {
43
- return __classPrivateFieldGet(this, _OasUnion_fields, "f").members;
44
- }
45
- get nullable() {
46
- return __classPrivateFieldGet(this, _OasUnion_fields, "f").nullable;
34
+ /**
35
+ * A short summary of the union.
36
+ */
37
+ Object.defineProperty(this, "title", {
38
+ enumerable: true,
39
+ configurable: true,
40
+ writable: true,
41
+ value: void 0
42
+ });
43
+ /**
44
+ * A description of the union.
45
+ */
46
+ Object.defineProperty(this, "description", {
47
+ enumerable: true,
48
+ configurable: true,
49
+ writable: true,
50
+ value: void 0
51
+ });
52
+ /**
53
+ * Indicates whether value can be null.
54
+ */
55
+ Object.defineProperty(this, "nullable", {
56
+ enumerable: true,
57
+ configurable: true,
58
+ writable: true,
59
+ value: void 0
60
+ });
61
+ /**
62
+ * Discriminator object used to tag member types and make the union a tagged union.
63
+ */
64
+ Object.defineProperty(this, "discriminator", {
65
+ enumerable: true,
66
+ configurable: true,
67
+ writable: true,
68
+ value: void 0
69
+ });
70
+ /**
71
+ * Array of schemas or references to schemas that are part of the union.
72
+ */
73
+ Object.defineProperty(this, "members", {
74
+ enumerable: true,
75
+ configurable: true,
76
+ writable: true,
77
+ value: void 0
78
+ });
79
+ this.title = fields.title;
80
+ this.description = fields.description;
81
+ this.nullable = fields.nullable;
82
+ this.discriminator = fields.discriminator;
83
+ this.members = fields.members;
47
84
  }
48
85
  isRef() {
49
86
  return false;
@@ -56,4 +93,3 @@ class OasUnion {
56
93
  }
57
94
  }
58
95
  exports.OasUnion = OasUnion;
59
- _OasUnion_fields = new WeakMap();
@@ -3,13 +3,32 @@ export type UnknownFields = {
3
3
  title?: string;
4
4
  description?: string;
5
5
  };
6
+ /**
7
+ * Object representing an unknown type in the OpenAPI Specification.
8
+ *
9
+ * JSON schema treats a definition without any type information as 'any'.
10
+ * Since this is not useful in an API context, we use OasUnknown to
11
+ * represent types that are not specified.
12
+ */
6
13
  export declare class OasUnknown {
7
- #private;
8
- oasType: 'schema';
9
- type: 'unknown';
14
+ /**
15
+ * Object is part the 'schema' set which is used
16
+ * to define data types in an OpenAPI document.
17
+ */
18
+ oasType: "schema";
19
+ /**
20
+ * Constant value 'unknown' useful for type narrowing and tagged unions.
21
+ */
22
+ type: "unknown";
23
+ /**
24
+ * A short summary of the unknown type.
25
+ */
26
+ title: string | undefined;
27
+ /**
28
+ * A description of the unknown type.
29
+ */
30
+ description: string | undefined;
10
31
  constructor(fields: UnknownFields);
11
- get title(): string | undefined;
12
- get description(): string | undefined;
13
32
  isRef(): this is OasRef<'schema'>;
14
33
  resolve(): OasUnknown;
15
34
  resolveOnce(): OasUnknown;
@@ -1 +1 @@
1
- {"version":3,"file":"Unknown.d.ts","sourceRoot":"","sources":["../../../src/oas/unknown/Unknown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,qBAAa,UAAU;;IACrB,OAAO,EAAE,QAAQ,CAAW;IAC5B,IAAI,EAAE,SAAS,CAAY;gBAGf,MAAM,EAAE,aAAa;IAIjC,IAAI,KAAK,IAAI,MAAM,GAAG,SAAS,CAE9B;IAED,IAAI,WAAW,IAAI,MAAM,GAAG,SAAS,CAEpC;IAED,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC,OAAO,IAAI,UAAU;IAIrB,WAAW,IAAI,UAAU;CAG1B"}
1
+ {"version":3,"file":"Unknown.d.ts","sourceRoot":"","sources":["../../../src/oas/unknown/Unknown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED;;;;;;GAMG;AACH,qBAAa,UAAU;IACrB;;;OAGG;IACH,OAAO,WAAoB;IAC3B;;OAEG;IACH,IAAI,YAAqB;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;gBAEnB,MAAM,EAAE,aAAa;IAKjC,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC,OAAO,IAAI,UAAU;IAIrB,WAAW,IAAI,UAAU;CAG1B"}
@@ -1,40 +1,54 @@
1
1
  "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
- };
8
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
- };
13
- var _OasUnknown_fields;
14
2
  Object.defineProperty(exports, "__esModule", { value: true });
15
3
  exports.OasUnknown = void 0;
4
+ /**
5
+ * Object representing an unknown type in the OpenAPI Specification.
6
+ *
7
+ * JSON schema treats a definition without any type information as 'any'.
8
+ * Since this is not useful in an API context, we use OasUnknown to
9
+ * represent types that are not specified.
10
+ */
16
11
  class OasUnknown {
17
12
  constructor(fields) {
13
+ /**
14
+ * Object is part the 'schema' set which is used
15
+ * to define data types in an OpenAPI document.
16
+ */
18
17
  Object.defineProperty(this, "oasType", {
19
18
  enumerable: true,
20
19
  configurable: true,
21
20
  writable: true,
22
21
  value: 'schema'
23
22
  });
23
+ /**
24
+ * Constant value 'unknown' useful for type narrowing and tagged unions.
25
+ */
24
26
  Object.defineProperty(this, "type", {
25
27
  enumerable: true,
26
28
  configurable: true,
27
29
  writable: true,
28
30
  value: 'unknown'
29
31
  });
30
- _OasUnknown_fields.set(this, void 0);
31
- __classPrivateFieldSet(this, _OasUnknown_fields, fields, "f");
32
- }
33
- get title() {
34
- return __classPrivateFieldGet(this, _OasUnknown_fields, "f").title;
35
- }
36
- get description() {
37
- return __classPrivateFieldGet(this, _OasUnknown_fields, "f").description;
32
+ /**
33
+ * A short summary of the unknown type.
34
+ */
35
+ Object.defineProperty(this, "title", {
36
+ enumerable: true,
37
+ configurable: true,
38
+ writable: true,
39
+ value: void 0
40
+ });
41
+ /**
42
+ * A description of the unknown type.
43
+ */
44
+ Object.defineProperty(this, "description", {
45
+ enumerable: true,
46
+ configurable: true,
47
+ writable: true,
48
+ value: void 0
49
+ });
50
+ this.title = fields.title;
51
+ this.description = fields.description;
38
52
  }
39
53
  isRef() {
40
54
  return false;
@@ -47,4 +61,3 @@ class OasUnknown {
47
61
  }
48
62
  }
49
63
  exports.OasUnknown = OasUnknown;
50
- _OasUnknown_fields = new WeakMap();
@@ -3,14 +3,31 @@ export type VoidFields = {
3
3
  title?: string;
4
4
  description?: string;
5
5
  };
6
+ /**
7
+ * Object representing a void type in the OpenAPI Specification.
8
+ * It is used to describe an absence of a value such as when no
9
+ * content is returned by an operation.
10
+ */
6
11
  export declare class OasVoid {
7
- #private;
8
- oasType: 'schema';
9
- type: 'void';
12
+ /**
13
+ * Object is part the 'schema' set which is used
14
+ * to define data types in an OpenAPI document.
15
+ */
16
+ oasType: "schema";
17
+ /**
18
+ * Constant value 'void' useful for type narrowing and tagged unions.
19
+ */
20
+ type: "void";
21
+ /**
22
+ * A short summary of the value.
23
+ */
24
+ title: string | undefined;
25
+ /**
26
+ * A description of the value.
27
+ */
28
+ description: string | undefined;
10
29
  constructor(fields?: VoidFields);
11
30
  static empty(): OasVoid;
12
- get title(): string | undefined;
13
- get description(): string | undefined;
14
31
  isRef(): this is OasRef<'schema'>;
15
32
  resolve(): OasVoid;
16
33
  resolveOnce(): OasVoid;
@@ -1 +1 @@
1
- {"version":3,"file":"Void.d.ts","sourceRoot":"","sources":["../../../src/oas/void/Void.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,qBAAa,OAAO;;IAClB,OAAO,EAAE,QAAQ,CAAW;IAC5B,IAAI,EAAE,MAAM,CAAS;gBAGT,MAAM,GAAE,UAAe;IAInC,MAAM,CAAC,KAAK,IAAI,OAAO;IAIvB,IAAI,KAAK,IAAI,MAAM,GAAG,SAAS,CAE9B;IAED,IAAI,WAAW,IAAI,MAAM,GAAG,SAAS,CAEpC;IAED,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC,OAAO,IAAI,OAAO;IAIlB,WAAW,IAAI,OAAO;CAGvB"}
1
+ {"version":3,"file":"Void.d.ts","sourceRoot":"","sources":["../../../src/oas/void/Void.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED;;;;GAIG;AACH,qBAAa,OAAO;IAClB;;;OAGG;IACH,OAAO,WAAoB;IAC3B;;OAEG;IACH,IAAI,SAAkB;IACtB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;gBAEnB,MAAM,GAAE,UAAe;IAKnC,MAAM,CAAC,KAAK,IAAI,OAAO;IAIvB,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC,OAAO,IAAI,OAAO;IAIlB,WAAW,IAAI,OAAO;CAGvB"}
@@ -1,44 +1,56 @@
1
1
  "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
- };
8
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
- };
13
- var _OasVoid_fields;
14
2
  Object.defineProperty(exports, "__esModule", { value: true });
15
3
  exports.OasVoid = void 0;
4
+ /**
5
+ * Object representing a void type in the OpenAPI Specification.
6
+ * It is used to describe an absence of a value such as when no
7
+ * content is returned by an operation.
8
+ */
16
9
  class OasVoid {
17
10
  constructor(fields = {}) {
11
+ /**
12
+ * Object is part the 'schema' set which is used
13
+ * to define data types in an OpenAPI document.
14
+ */
18
15
  Object.defineProperty(this, "oasType", {
19
16
  enumerable: true,
20
17
  configurable: true,
21
18
  writable: true,
22
19
  value: 'schema'
23
20
  });
21
+ /**
22
+ * Constant value 'void' useful for type narrowing and tagged unions.
23
+ */
24
24
  Object.defineProperty(this, "type", {
25
25
  enumerable: true,
26
26
  configurable: true,
27
27
  writable: true,
28
28
  value: 'void'
29
29
  });
30
- _OasVoid_fields.set(this, void 0);
31
- __classPrivateFieldSet(this, _OasVoid_fields, fields, "f");
30
+ /**
31
+ * A short summary of the value.
32
+ */
33
+ Object.defineProperty(this, "title", {
34
+ enumerable: true,
35
+ configurable: true,
36
+ writable: true,
37
+ value: void 0
38
+ });
39
+ /**
40
+ * A description of the value.
41
+ */
42
+ Object.defineProperty(this, "description", {
43
+ enumerable: true,
44
+ configurable: true,
45
+ writable: true,
46
+ value: void 0
47
+ });
48
+ this.title = fields.title;
49
+ this.description = fields.description;
32
50
  }
33
51
  static empty() {
34
52
  return new OasVoid();
35
53
  }
36
- get title() {
37
- return __classPrivateFieldGet(this, _OasVoid_fields, "f").title;
38
- }
39
- get description() {
40
- return __classPrivateFieldGet(this, _OasVoid_fields, "f").description;
41
- }
42
54
  isRef() {
43
55
  return false;
44
56
  }
@@ -50,4 +62,3 @@ class OasVoid {
50
62
  }
51
63
  }
52
64
  exports.OasVoid = OasVoid;
53
- _OasVoid_fields = new WeakMap();
@@ -1 +1 @@
1
- {"version":3,"file":"createServer.d.ts","sourceRoot":"","sources":["../../src/server/createServer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAK3B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAA;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAiBnE,eAAO,MAAM,YAAY,eACX,CAAC,gBAAgB,GAAG,YAAY,CAAC,EAAE,KAC9C,IAuGF,CAAA"}
1
+ {"version":3,"file":"createServer.d.ts","sourceRoot":"","sources":["../../src/server/createServer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAK3B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAA;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAiBnE,eAAO,MAAM,YAAY,eACX,CAAC,gBAAgB,GAAG,YAAY,CAAC,EAAE,KAC9C,IAwGF,CAAA"}
@@ -76,7 +76,8 @@ const createServer = (generators) => {
76
76
  spanId: span.spanContext().spanId
77
77
  });
78
78
  const out = generators.map(generator => {
79
- const generatorSettings = clientSettings?.generators?.find(({ id }) => id === generator.id);
79
+ console.log('Generator', generator);
80
+ const generatorSettings = clientSettings?.generators.find(({ id }) => id === generator.id);
80
81
  const generatorType = generator.type;
81
82
  return (0, ts_pattern_1.match)(generatorType)
82
83
  .with('operation', () => ({
@@ -3,6 +3,7 @@ export type ListObject<V extends Stringable> = List<V[], ', ', '{}'>;
3
3
  export type ListLines<V extends Stringable> = List<V[], '\n', 'none'>;
4
4
  export type ListArray<V extends Stringable> = List<V[], ', ', '[]'>;
5
5
  export type ListParams<V extends Stringable> = List<V[], ', ', '()'>;
6
+ export type ListKeyValue<Key extends Stringable, Value extends Stringable> = List<[Key, Value], ': ', 'none'>;
6
7
  type BookendsType = '[]' | '{}' | '()' | '<>' | 'none';
7
8
  type ConstructorOptions<Separator extends string = ', ', Bookends extends BookendsType = 'none'> = {
8
9
  separator?: Separator;
@@ -97,6 +98,13 @@ export declare class List<Values extends Stringable[] = Stringable[], Separator
97
98
  * @returns KeyList
98
99
  */
99
100
  static fromKeys: (record: Record<string, Stringable> | undefined) => KeyList;
101
+ /**
102
+ * Create a EntryList using the entries of @param record
103
+ * @afdafg
104
+ * @param record
105
+ * @returns EntryList
106
+ */
107
+ static fromEntrys: <T extends Stringable>(record: Record<string, T> | undefined) => EntryList<T>;
100
108
  /**
101
109
  * Create a keyValue pair if `value` is not undefined and is not an empty array or List.
102
110
  * Return `undefined` otherwise.
@@ -114,14 +122,22 @@ export declare class List<Values extends Stringable[] = Stringable[], Separator
114
122
  */
115
123
  static hasValue: (value: undefined | Stringable | Stringable[] | List) => value is Stringable | Stringable[] | List;
116
124
  }
117
- type MapFn<V extends Stringable> = (key: string, index: number) => V;
125
+ type KeyMapFn<V extends Stringable> = (key: string, index: number) => V;
118
126
  export declare class KeyList {
119
127
  keys: string[];
120
128
  constructor(keys: string[]);
121
- toObject<V extends Stringable>(mapFn: MapFn<V>): ListObject<V>;
129
+ toObject<V extends Stringable>(mapFn: KeyMapFn<V>): ListObject<V>;
122
130
  toObjectPlain(): ListObject<string>;
123
- toLines<V extends Stringable>(mapFn: MapFn<V>): ListLines<V>;
131
+ toLines<V extends Stringable>(mapFn: KeyMapFn<V>): ListLines<V>;
124
132
  toLinesPlain(): ListLines<string>;
125
133
  }
134
+ type Entry<T extends Stringable> = [key: string, value: T];
135
+ type EntryMapFn<T extends Stringable, V extends Stringable> = (entry: Entry<T>, index: number) => V;
136
+ export declare class EntryList<T extends Stringable> {
137
+ entries: Entry<T>[];
138
+ constructor(entries: Entry<T>[]);
139
+ toObject<V extends Stringable>(mapFn: EntryMapFn<T, V>): ListObject<V>;
140
+ toLines<V extends Stringable>(mapFn: EntryMapFn<T, V>): ListLines<V>;
141
+ }
126
142
  export {};
127
143
  //# sourceMappingURL=List.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../src/typescript/List.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,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