@rvoh/dream 0.40.2 → 0.40.4

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 (203) hide show
  1. package/dist/cjs/src/helpers/cli/generateFactoryContent.js +6 -4
  2. package/dist/cjs/src/types/associations/belongsTo.js +2 -0
  3. package/dist/cjs/src/types/associations/hasMany.js +2 -0
  4. package/dist/cjs/src/types/associations/hasOne.js +2 -0
  5. package/dist/cjs/src/types/associations/shared.js +2 -0
  6. package/dist/cjs/src/types/db.js +2 -0
  7. package/dist/cjs/src/types/dream.js +2 -0
  8. package/dist/cjs/src/types/lifecycle.js +2 -0
  9. package/dist/cjs/src/types/logger.js +2 -0
  10. package/dist/cjs/src/types/openapi.js +2 -0
  11. package/dist/cjs/src/types/query.js +2 -0
  12. package/dist/cjs/src/types/utils.js +2 -0
  13. package/dist/cjs/src/types/validation.js +2 -0
  14. package/dist/cjs/src/types/variadic.js +2 -0
  15. package/dist/esm/src/helpers/cli/generateFactoryContent.js +6 -4
  16. package/dist/esm/src/types/associations/belongsTo.js +1 -0
  17. package/dist/esm/src/types/associations/hasMany.js +1 -0
  18. package/dist/esm/src/types/associations/hasOne.js +1 -0
  19. package/dist/esm/src/types/associations/shared.js +1 -0
  20. package/dist/esm/src/types/db.js +1 -0
  21. package/dist/esm/src/types/dream.js +1 -0
  22. package/dist/esm/src/types/lifecycle.js +1 -0
  23. package/dist/esm/src/types/logger.js +1 -0
  24. package/dist/esm/src/types/openapi.js +1 -0
  25. package/dist/esm/src/types/query.js +1 -0
  26. package/dist/esm/src/types/utils.js +1 -0
  27. package/dist/esm/src/types/validation.js +1 -0
  28. package/dist/esm/src/types/variadic.js +1 -0
  29. package/dist/types/src/types/associations/belongsTo.d.ts +28 -73
  30. package/dist/types/src/types/associations/belongsTo.ts +76 -0
  31. package/dist/types/src/types/associations/hasMany.d.ts +15 -79
  32. package/dist/types/src/types/associations/hasMany.ts +80 -0
  33. package/dist/types/src/types/associations/hasOne.d.ts +8 -26
  34. package/dist/types/src/types/associations/hasOne.ts +26 -0
  35. package/dist/types/src/types/associations/shared.d.ts +98 -444
  36. package/dist/types/src/types/associations/shared.ts +450 -0
  37. package/dist/types/src/types/db.d.ts +9 -14
  38. package/dist/types/src/types/db.ts +14 -0
  39. package/dist/types/src/types/dream.d.ts +124 -510
  40. package/dist/types/src/types/dream.ts +521 -0
  41. package/dist/types/src/types/lifecycle.d.ts +23 -42
  42. package/dist/types/src/types/lifecycle.ts +50 -0
  43. package/dist/types/src/types/logger.d.ts +6 -40
  44. package/dist/types/src/types/logger.ts +42 -0
  45. package/dist/types/src/types/openapi.d.ts +105 -222
  46. package/dist/types/src/types/openapi.ts +255 -0
  47. package/dist/types/src/types/query.d.ts +53 -161
  48. package/dist/types/src/types/query.ts +165 -0
  49. package/dist/types/src/types/utils.d.ts +83 -141
  50. package/dist/types/src/types/utils.ts +173 -0
  51. package/dist/types/src/types/validation.d.ts +17 -18
  52. package/dist/types/src/types/validation.ts +20 -0
  53. package/dist/types/src/types/variadic.d.ts +42 -444
  54. package/dist/types/src/types/variadic.ts +447 -0
  55. package/docs/classes/Benchmark.html +2 -2
  56. package/docs/classes/CalendarDate.html +2 -2
  57. package/docs/classes/CreateOrFindByFailedToCreateAndFind.html +3 -3
  58. package/docs/classes/Decorators.html +19 -19
  59. package/docs/classes/Dream.html +132 -132
  60. package/docs/classes/DreamApp.html +4 -4
  61. package/docs/classes/DreamBin.html +2 -2
  62. package/docs/classes/DreamCLI.html +4 -4
  63. package/docs/classes/DreamImporter.html +2 -2
  64. package/docs/classes/DreamLogos.html +2 -2
  65. package/docs/classes/DreamMigrationHelpers.html +7 -7
  66. package/docs/classes/DreamSerializer.html +2 -2
  67. package/docs/classes/DreamTransaction.html +2 -2
  68. package/docs/classes/Encrypt.html +2 -2
  69. package/docs/classes/Env.html +2 -2
  70. package/docs/classes/GlobalNameNotSet.html +3 -3
  71. package/docs/classes/NonLoadedAssociation.html +3 -3
  72. package/docs/classes/Query.html +52 -52
  73. package/docs/classes/Range.html +2 -2
  74. package/docs/classes/RecordNotFound.html +3 -3
  75. package/docs/classes/ValidationError.html +3 -3
  76. package/docs/functions/Attribute.html +1 -1
  77. package/docs/functions/RendersMany.html +1 -1
  78. package/docs/functions/RendersOne.html +1 -1
  79. package/docs/functions/ReplicaSafe.html +1 -1
  80. package/docs/functions/STI.html +1 -1
  81. package/docs/functions/SoftDelete.html +1 -1
  82. package/docs/functions/camelize.html +1 -1
  83. package/docs/functions/capitalize.html +1 -1
  84. package/docs/functions/closeAllDbConnections.html +1 -1
  85. package/docs/functions/compact.html +1 -1
  86. package/docs/functions/dreamDbConnections.html +1 -1
  87. package/docs/functions/dreamPath.html +1 -1
  88. package/docs/functions/generateDream.html +1 -1
  89. package/docs/functions/globalClassNameFromFullyQualifiedModelName.html +1 -1
  90. package/docs/functions/hyphenize.html +1 -1
  91. package/docs/functions/inferSerializerFromDreamClassOrViewModelClass.html +1 -1
  92. package/docs/functions/inferSerializerFromDreamOrViewModel.html +1 -1
  93. package/docs/functions/isEmpty.html +1 -1
  94. package/docs/functions/loadRepl.html +1 -1
  95. package/docs/functions/lookupClassByGlobalName.html +1 -1
  96. package/docs/functions/pascalize.html +1 -1
  97. package/docs/functions/pgErrorType.html +1 -1
  98. package/docs/functions/range-1.html +1 -1
  99. package/docs/functions/relativeDreamPath.html +1 -1
  100. package/docs/functions/round.html +1 -1
  101. package/docs/functions/serializerNameFromFullyQualifiedModelName.html +1 -1
  102. package/docs/functions/sharedPathPrefix.html +1 -1
  103. package/docs/functions/snakeify.html +1 -1
  104. package/docs/functions/sort.html +1 -1
  105. package/docs/functions/sortBy.html +1 -1
  106. package/docs/functions/standardizeFullyQualifiedModelName.html +1 -1
  107. package/docs/functions/uncapitalize.html +1 -1
  108. package/docs/functions/uniq.html +1 -1
  109. package/docs/functions/untypedDb.html +1 -1
  110. package/docs/functions/validateColumn.html +1 -1
  111. package/docs/functions/validateTable.html +1 -1
  112. package/docs/interfaces/AttributeStatement.html +2 -2
  113. package/docs/interfaces/DecoratorContext.html +2 -2
  114. package/docs/interfaces/DreamAppInitOptions.html +2 -2
  115. package/docs/interfaces/DreamAppOpts.html +2 -2
  116. package/docs/interfaces/DreamSerializerAssociationStatement.html +2 -2
  117. package/docs/interfaces/EncryptOptions.html +2 -2
  118. package/docs/interfaces/OpenapiSchemaProperties.html +1 -1
  119. package/docs/interfaces/OpenapiSchemaPropertiesShorthand.html +1 -1
  120. package/docs/interfaces/OpenapiTypeFieldObject.html +1 -1
  121. package/docs/types/Camelized.html +1 -1
  122. package/docs/types/CommonOpenapiSchemaObjectFields.html +1 -1
  123. package/docs/types/DateTime.html +1 -1
  124. package/docs/types/DbConnectionType.html +1 -1
  125. package/docs/types/DreamAssociationMetadata.html +1 -1
  126. package/docs/types/DreamAttributes.html +1 -1
  127. package/docs/types/DreamClassColumn.html +1 -1
  128. package/docs/types/DreamColumn.html +1 -1
  129. package/docs/types/DreamColumnNames.html +1 -1
  130. package/docs/types/DreamLogLevel.html +1 -1
  131. package/docs/types/DreamLogger.html +1 -1
  132. package/docs/types/DreamOrViewModelSerializerKey.html +1 -1
  133. package/docs/types/DreamParamSafeAttributes.html +1 -1
  134. package/docs/types/DreamParamSafeColumnNames.html +1 -1
  135. package/docs/types/DreamSerializerKey.html +1 -1
  136. package/docs/types/DreamSerializers.html +1 -1
  137. package/docs/types/DreamTableSchema.html +1 -1
  138. package/docs/types/DreamVirtualColumns.html +1 -1
  139. package/docs/types/EncryptAlgorithm.html +1 -1
  140. package/docs/types/Hyphenized.html +1 -1
  141. package/docs/types/IdType.html +1 -1
  142. package/docs/types/OpenapiAllTypes.html +1 -1
  143. package/docs/types/OpenapiFormats.html +1 -1
  144. package/docs/types/OpenapiNumberFormats.html +1 -1
  145. package/docs/types/OpenapiPrimitiveTypes.html +1 -1
  146. package/docs/types/OpenapiSchemaArray.html +1 -1
  147. package/docs/types/OpenapiSchemaArrayShorthand.html +1 -1
  148. package/docs/types/OpenapiSchemaBase.html +1 -1
  149. package/docs/types/OpenapiSchemaBody.html +1 -1
  150. package/docs/types/OpenapiSchemaBodyShorthand.html +1 -1
  151. package/docs/types/OpenapiSchemaCommonFields.html +1 -1
  152. package/docs/types/OpenapiSchemaExpressionAllOf.html +1 -1
  153. package/docs/types/OpenapiSchemaExpressionAnyOf.html +1 -1
  154. package/docs/types/OpenapiSchemaExpressionOneOf.html +1 -1
  155. package/docs/types/OpenapiSchemaExpressionRef.html +1 -1
  156. package/docs/types/OpenapiSchemaExpressionRefSchemaShorthand.html +1 -1
  157. package/docs/types/OpenapiSchemaInteger.html +1 -1
  158. package/docs/types/OpenapiSchemaNull.html +1 -1
  159. package/docs/types/OpenapiSchemaNumber.html +1 -1
  160. package/docs/types/OpenapiSchemaObject.html +1 -1
  161. package/docs/types/OpenapiSchemaObjectAllOf.html +1 -1
  162. package/docs/types/OpenapiSchemaObjectAllOfShorthand.html +1 -1
  163. package/docs/types/OpenapiSchemaObjectAnyOf.html +1 -1
  164. package/docs/types/OpenapiSchemaObjectAnyOfShorthand.html +1 -1
  165. package/docs/types/OpenapiSchemaObjectBase.html +1 -1
  166. package/docs/types/OpenapiSchemaObjectBaseShorthand.html +1 -1
  167. package/docs/types/OpenapiSchemaObjectOneOf.html +1 -1
  168. package/docs/types/OpenapiSchemaObjectOneOfShorthand.html +1 -1
  169. package/docs/types/OpenapiSchemaObjectShorthand.html +1 -1
  170. package/docs/types/OpenapiSchemaPrimitiveGeneric.html +1 -1
  171. package/docs/types/OpenapiSchemaShorthandExpressionAllOf.html +1 -1
  172. package/docs/types/OpenapiSchemaShorthandExpressionAnyOf.html +1 -1
  173. package/docs/types/OpenapiSchemaShorthandExpressionOneOf.html +1 -1
  174. package/docs/types/OpenapiSchemaShorthandExpressionSerializableRef.html +1 -1
  175. package/docs/types/OpenapiSchemaShorthandExpressionSerializerRef.html +1 -1
  176. package/docs/types/OpenapiSchemaShorthandPrimitiveGeneric.html +1 -1
  177. package/docs/types/OpenapiSchemaString.html +1 -1
  178. package/docs/types/OpenapiShorthandAllTypes.html +1 -1
  179. package/docs/types/OpenapiShorthandPrimitiveTypes.html +1 -1
  180. package/docs/types/OpenapiTypeField.html +1 -1
  181. package/docs/types/Pascalized.html +1 -1
  182. package/docs/types/PrimaryKeyType.html +1 -1
  183. package/docs/types/RoundingPrecision.html +1 -1
  184. package/docs/types/SerializableClassOrSerializerCallback.html +1 -1
  185. package/docs/types/SerializableDreamClassOrViewModelClass.html +1 -1
  186. package/docs/types/SerializableDreamOrViewModel.html +1 -1
  187. package/docs/types/SerializableTypes.html +1 -1
  188. package/docs/types/Snakeified.html +1 -1
  189. package/docs/types/Timestamp.html +1 -1
  190. package/docs/types/UpdateableAssociationProperties.html +1 -1
  191. package/docs/types/UpdateableProperties.html +1 -1
  192. package/docs/types/ValidationType.html +1 -1
  193. package/docs/types/ViewModelSerializerKey.html +1 -1
  194. package/docs/types/WhereStatementForDream.html +1 -1
  195. package/docs/types/WhereStatementForDreamClass.html +1 -1
  196. package/docs/variables/DateTime-1.html +1 -1
  197. package/docs/variables/DreamConst.html +1 -1
  198. package/docs/variables/TRIGRAM_OPERATORS.html +1 -1
  199. package/docs/variables/openapiPrimitiveTypes-1.html +1 -1
  200. package/docs/variables/openapiShorthandPrimitiveTypes-1.html +1 -1
  201. package/docs/variables/ops.html +1 -1
  202. package/docs/variables/primaryKeyTypes.html +1 -1
  203. package/package.json +1 -1
@@ -1,42 +1,8 @@
1
1
  export interface DreamCliLoggerLogOpts {
2
- logPrefix?: string | undefined
3
- logPrefixColor?: DreamCliForegroundColor | undefined
4
- logPrefixBgColor?: DreamCliBgColor | undefined
2
+ logPrefix?: string | undefined;
3
+ logPrefixColor?: DreamCliForegroundColor | undefined;
4
+ logPrefixBgColor?: DreamCliBgColor | undefined;
5
5
  }
6
-
7
- export type DreamCliColor = DreamCliForegroundColor | DreamCliBgColor
8
-
9
- export type DreamCliForegroundColor =
10
- | 'black'
11
- | 'red'
12
- | 'redBright'
13
- | 'green'
14
- | 'greenBright'
15
- | 'yellow'
16
- | 'yellowBright'
17
- | 'blue'
18
- | 'blueBright'
19
- | 'magenta'
20
- | 'magentaBright'
21
- | 'cyan'
22
- | 'cyanBright'
23
- | 'white'
24
- | 'whiteBright'
25
- | 'gray'
26
-
27
- export type DreamCliBgColor =
28
- | 'bgBlack'
29
- | 'bgRed'
30
- | 'bgRedBright'
31
- | 'bgGreen'
32
- | 'bgGreenBright'
33
- | 'bgYellow'
34
- | 'bgYellowBright'
35
- | 'bgBlue'
36
- | 'bgBlueBright'
37
- | 'bgMagenta'
38
- | 'bgMagentaBright'
39
- | 'bgCyan'
40
- | 'bgCyanBright'
41
- | 'bgWhite'
42
- | 'bgWhiteBright'
6
+ export type DreamCliColor = DreamCliForegroundColor | DreamCliBgColor;
7
+ export type DreamCliForegroundColor = 'black' | 'red' | 'redBright' | 'green' | 'greenBright' | 'yellow' | 'yellowBright' | 'blue' | 'blueBright' | 'magenta' | 'magentaBright' | 'cyan' | 'cyanBright' | 'white' | 'whiteBright' | 'gray';
8
+ export type DreamCliBgColor = 'bgBlack' | 'bgRed' | 'bgRedBright' | 'bgGreen' | 'bgGreenBright' | 'bgYellow' | 'bgYellowBright' | 'bgBlue' | 'bgBlueBright' | 'bgMagenta' | 'bgMagentaBright' | 'bgCyan' | 'bgCyanBright' | 'bgWhite' | 'bgWhiteBright';
@@ -0,0 +1,42 @@
1
+ export interface DreamCliLoggerLogOpts {
2
+ logPrefix?: string | undefined
3
+ logPrefixColor?: DreamCliForegroundColor | undefined
4
+ logPrefixBgColor?: DreamCliBgColor | undefined
5
+ }
6
+
7
+ export type DreamCliColor = DreamCliForegroundColor | DreamCliBgColor
8
+
9
+ export type DreamCliForegroundColor =
10
+ | 'black'
11
+ | 'red'
12
+ | 'redBright'
13
+ | 'green'
14
+ | 'greenBright'
15
+ | 'yellow'
16
+ | 'yellowBright'
17
+ | 'blue'
18
+ | 'blueBright'
19
+ | 'magenta'
20
+ | 'magentaBright'
21
+ | 'cyan'
22
+ | 'cyanBright'
23
+ | 'white'
24
+ | 'whiteBright'
25
+ | 'gray'
26
+
27
+ export type DreamCliBgColor =
28
+ | 'bgBlack'
29
+ | 'bgRed'
30
+ | 'bgRedBright'
31
+ | 'bgGreen'
32
+ | 'bgGreenBright'
33
+ | 'bgYellow'
34
+ | 'bgYellowBright'
35
+ | 'bgBlue'
36
+ | 'bgBlueBright'
37
+ | 'bgMagenta'
38
+ | 'bgMagentaBright'
39
+ | 'bgCyan'
40
+ | 'bgCyanBright'
41
+ | 'bgWhite'
42
+ | 'bgWhiteBright'
@@ -1,255 +1,138 @@
1
- import { openapiPrimitiveTypes, openapiShorthandPrimitiveTypes } from '../dream/constants.ts'
2
- import DreamSerializer from '../serializer/index.ts'
3
- import { SerializableDreamClassOrViewModelClass } from './dream.js'
4
-
5
- export type OpenapiSchemaBody =
6
- | OpenapiSchemaBase
7
- | OpenapiSchemaPrimitiveGeneric
8
- | OpenapiSchemaExpressionAnyOf
9
- | OpenapiSchemaExpressionOneOf
10
- | OpenapiSchemaExpressionAllOf
11
- | OpenapiSchemaObject
12
- | OpenapiSchemaArray
13
-
14
- export type OpenapiSchemaBodyShorthand =
15
- | OpenapiSchemaBase
16
- | OpenapiSchemaShorthandPrimitiveGeneric
17
- | OpenapiSchemaShorthandExpressionAnyOf
18
- | OpenapiSchemaShorthandExpressionOneOf
19
- | OpenapiSchemaShorthandExpressionAllOf
20
- | OpenapiSchemaObjectShorthand
21
- | OpenapiSchemaArrayShorthand
22
- | OpenapiSchemaNull // no shorthand for type: null
23
- | OpenapiSchemaExpressionRefSchemaShorthand
24
- | OpenapiSchemaShorthandExpressionSerializerRef
25
- | OpenapiSchemaShorthandExpressionSerializableRef
26
-
27
- export type OpenapiSchemaBase =
28
- | OpenapiSchemaString
29
- | OpenapiSchemaInteger
30
- | OpenapiSchemaNumber
31
- | OpenapiSchemaNull
32
- | OpenapiSchemaExpressionRef
33
-
1
+ import { openapiPrimitiveTypes, openapiShorthandPrimitiveTypes } from '../dream/constants.js';
2
+ import DreamSerializer from '../serializer/index.js';
3
+ import { SerializableDreamClassOrViewModelClass } from './dream.js';
4
+ export type OpenapiSchemaBody = OpenapiSchemaBase | OpenapiSchemaPrimitiveGeneric | OpenapiSchemaExpressionAnyOf | OpenapiSchemaExpressionOneOf | OpenapiSchemaExpressionAllOf | OpenapiSchemaObject | OpenapiSchemaArray;
5
+ export type OpenapiSchemaBodyShorthand = OpenapiSchemaBase | OpenapiSchemaShorthandPrimitiveGeneric | OpenapiSchemaShorthandExpressionAnyOf | OpenapiSchemaShorthandExpressionOneOf | OpenapiSchemaShorthandExpressionAllOf | OpenapiSchemaObjectShorthand | OpenapiSchemaArrayShorthand | OpenapiSchemaNull | OpenapiSchemaExpressionRefSchemaShorthand | OpenapiSchemaShorthandExpressionSerializerRef | OpenapiSchemaShorthandExpressionSerializableRef;
6
+ export type OpenapiSchemaBase = OpenapiSchemaString | OpenapiSchemaInteger | OpenapiSchemaNumber | OpenapiSchemaNull | OpenapiSchemaExpressionRef;
34
7
  export type OpenapiSchemaShorthandExpressionAnyOf = {
35
- anyOf: OpenapiSchemaBodyShorthand[]
36
- }
37
-
8
+ anyOf: OpenapiSchemaBodyShorthand[];
9
+ };
38
10
  export type OpenapiSchemaShorthandExpressionOneOf = {
39
- oneOf: OpenapiSchemaBodyShorthand[]
40
- }
41
-
11
+ oneOf: OpenapiSchemaBodyShorthand[];
12
+ };
42
13
  export type OpenapiSchemaShorthandExpressionAllOf = {
43
- allOf: OpenapiSchemaBodyShorthand[]
44
- }
45
-
14
+ allOf: OpenapiSchemaBodyShorthand[];
15
+ };
46
16
  export type OpenapiSchemaShorthandExpressionSerializerRef = {
47
- $serializer: typeof DreamSerializer
48
- many?: boolean
49
- maybeNull?: boolean
50
- }
51
-
17
+ $serializer: typeof DreamSerializer;
18
+ many?: boolean;
19
+ maybeNull?: boolean;
20
+ };
52
21
  export type OpenapiSchemaShorthandExpressionSerializableRef = {
53
- $serializable: SerializableDreamClassOrViewModelClass
54
- key?: string
55
- many?: boolean
56
- maybeNull?: boolean
57
- }
58
-
22
+ $serializable: SerializableDreamClassOrViewModelClass;
23
+ key?: string;
24
+ many?: boolean;
25
+ maybeNull?: boolean;
26
+ };
59
27
  export type OpenapiSchemaExpressionRef = {
60
- $ref: string
61
- }
62
-
28
+ $ref: string;
29
+ };
63
30
  export type OpenapiSchemaExpressionRefSchemaShorthand = {
64
- $schema: string
65
- }
66
-
31
+ $schema: string;
32
+ };
67
33
  export type OpenapiSchemaExpressionAllOf = {
68
- allOf: OpenapiSchemaBody[]
69
- }
70
-
34
+ allOf: OpenapiSchemaBody[];
35
+ };
71
36
  export type OpenapiSchemaExpressionAnyOf = {
72
- anyOf: OpenapiSchemaBody[]
73
- }
74
-
37
+ anyOf: OpenapiSchemaBody[];
38
+ };
75
39
  export type OpenapiSchemaExpressionOneOf = {
76
- oneOf: OpenapiSchemaBody[]
77
- }
78
-
40
+ oneOf: OpenapiSchemaBody[];
41
+ };
79
42
  export type OpenapiSchemaCommonFields<T> = T & {
80
- description?: string
81
- summary?: string
82
- }
83
-
43
+ description?: string;
44
+ summary?: string;
45
+ };
84
46
  export type OpenapiSchemaString = OpenapiSchemaCommonFields<{
85
- type: 'string' | ['string', 'null'] | ['null', 'string']
86
- enum?: (string | null)[] | Readonly<(string | null)[]>
87
- format?: string
88
- pattern?: string
89
- minLength?: number
90
- maxLength?: number
91
- }>
92
-
47
+ type: 'string' | ['string', 'null'] | ['null', 'string'];
48
+ enum?: (string | null)[] | Readonly<(string | null)[]>;
49
+ format?: string;
50
+ pattern?: string;
51
+ minLength?: number;
52
+ maxLength?: number;
53
+ }>;
93
54
  export type OpenapiSchemaInteger = OpenapiSchemaCommonFields<{
94
- type: 'integer' | ['integer', 'null'] | ['null', 'integer']
95
- minimum?: number
96
- maximum?: number
97
- }>
98
-
55
+ type: 'integer' | ['integer', 'null'] | ['null', 'integer'];
56
+ minimum?: number;
57
+ maximum?: number;
58
+ }>;
99
59
  export type OpenapiSchemaNumber = OpenapiSchemaCommonFields<{
100
- type: 'number' | ['number', 'null'] | ['null', 'number']
101
- format?: OpenapiNumberFormats
102
- multipleOf?: number
103
- minimum?: number
104
- maximum?: number
105
- }>
106
-
60
+ type: 'number' | ['number', 'null'] | ['null', 'number'];
61
+ format?: OpenapiNumberFormats;
62
+ multipleOf?: number;
63
+ minimum?: number;
64
+ maximum?: number;
65
+ }>;
107
66
  export type OpenapiSchemaNull = {
108
- type: 'null'
109
- }
110
-
111
- export type OpenapiNumberFormats = 'decimal' | 'double'
112
-
113
- export type OpenapiSchemaObject =
114
- | OpenapiSchemaObjectBase
115
- | OpenapiSchemaObjectOneOf
116
- | OpenapiSchemaObjectAnyOf
117
- | OpenapiSchemaObjectAllOf
118
-
67
+ type: 'null';
68
+ };
69
+ export type OpenapiNumberFormats = 'decimal' | 'double';
70
+ export type OpenapiSchemaObject = OpenapiSchemaObjectBase | OpenapiSchemaObjectOneOf | OpenapiSchemaObjectAnyOf | OpenapiSchemaObjectAllOf;
119
71
  export type OpenapiSchemaObjectBase = CommonOpenapiSchemaObjectFields<{
120
- minProperties?: number
121
- maxProperties?: number
122
- properties?:
123
- | OpenapiSchemaProperties
124
- | OpenapiSchemaExpressionOneOf
125
- | OpenapiSchemaExpressionAnyOf
126
- | OpenapiSchemaExpressionAllOf
127
- additionalProperties?:
128
- | OpenapiSchemaObject
129
- | OpenapiSchemaExpressionOneOf
130
- | OpenapiSchemaExpressionAnyOf
131
- | OpenapiSchemaExpressionAllOf
132
- }>
133
-
72
+ minProperties?: number;
73
+ maxProperties?: number;
74
+ properties?: OpenapiSchemaProperties | OpenapiSchemaExpressionOneOf | OpenapiSchemaExpressionAnyOf | OpenapiSchemaExpressionAllOf;
75
+ additionalProperties?: OpenapiSchemaObject | OpenapiSchemaExpressionOneOf | OpenapiSchemaExpressionAnyOf | OpenapiSchemaExpressionAllOf;
76
+ }>;
134
77
  export type OpenapiSchemaObjectOneOf = CommonOpenapiSchemaObjectFields<{
135
- oneOf?: OpenapiSchemaBody[]
136
- }>
137
-
78
+ oneOf?: OpenapiSchemaBody[];
79
+ }>;
138
80
  export type OpenapiSchemaObjectAnyOf = CommonOpenapiSchemaObjectFields<{
139
- anyOf?: OpenapiSchemaBody[]
140
- }>
141
-
81
+ anyOf?: OpenapiSchemaBody[];
82
+ }>;
142
83
  export type OpenapiSchemaObjectAllOf = CommonOpenapiSchemaObjectFields<{
143
- allOf?: OpenapiSchemaBody[]
144
- }>
145
-
146
- export type OpenapiSchemaObjectShorthand =
147
- | OpenapiSchemaObjectBaseShorthand
148
- | OpenapiSchemaObjectOneOfShorthand
149
- | OpenapiSchemaObjectAnyOfShorthand
150
- | OpenapiSchemaObjectAllOfShorthand
151
-
84
+ allOf?: OpenapiSchemaBody[];
85
+ }>;
86
+ export type OpenapiSchemaObjectShorthand = OpenapiSchemaObjectBaseShorthand | OpenapiSchemaObjectOneOfShorthand | OpenapiSchemaObjectAnyOfShorthand | OpenapiSchemaObjectAllOfShorthand;
152
87
  export type OpenapiSchemaObjectBaseShorthand = CommonOpenapiSchemaObjectFields<{
153
- minProperties?: number
154
- maxProperties?: number
155
- properties?:
156
- | OpenapiSchemaPropertiesShorthand
157
- | OpenapiSchemaShorthandExpressionOneOf
158
- | OpenapiSchemaShorthandExpressionAnyOf
159
- | OpenapiSchemaShorthandExpressionAllOf
160
- | OpenapiSchemaShorthandExpressionSerializerRef
161
- | OpenapiSchemaShorthandExpressionSerializableRef
162
- additionalProperties?:
163
- | OpenapiShorthandPrimitiveTypes
164
- | OpenapiSchemaBodyShorthand
165
- | OpenapiSchemaShorthandExpressionOneOf
166
- | OpenapiSchemaShorthandExpressionAnyOf
167
- | OpenapiSchemaShorthandExpressionAllOf
168
- | OpenapiSchemaShorthandExpressionSerializerRef
169
- | OpenapiSchemaShorthandExpressionSerializableRef
170
- }>
171
-
88
+ minProperties?: number;
89
+ maxProperties?: number;
90
+ properties?: OpenapiSchemaPropertiesShorthand | OpenapiSchemaShorthandExpressionOneOf | OpenapiSchemaShorthandExpressionAnyOf | OpenapiSchemaShorthandExpressionAllOf | OpenapiSchemaShorthandExpressionSerializerRef | OpenapiSchemaShorthandExpressionSerializableRef;
91
+ additionalProperties?: OpenapiShorthandPrimitiveTypes | OpenapiSchemaBodyShorthand | OpenapiSchemaShorthandExpressionOneOf | OpenapiSchemaShorthandExpressionAnyOf | OpenapiSchemaShorthandExpressionAllOf | OpenapiSchemaShorthandExpressionSerializerRef | OpenapiSchemaShorthandExpressionSerializableRef;
92
+ }>;
172
93
  export type OpenapiSchemaObjectOneOfShorthand = CommonOpenapiSchemaObjectFields<{
173
- oneOf?: OpenapiSchemaBodyShorthand[]
174
- }>
175
-
94
+ oneOf?: OpenapiSchemaBodyShorthand[];
95
+ }>;
176
96
  export type OpenapiSchemaObjectAnyOfShorthand = CommonOpenapiSchemaObjectFields<{
177
- anyOf?: OpenapiSchemaBodyShorthand[]
178
- }>
179
-
97
+ anyOf?: OpenapiSchemaBodyShorthand[];
98
+ }>;
180
99
  export type OpenapiSchemaObjectAllOfShorthand = CommonOpenapiSchemaObjectFields<{
181
- allOf?: OpenapiSchemaBodyShorthand[]
182
- }>
183
-
184
- export type CommonOpenapiSchemaObjectFields<T> = OpenapiSchemaCommonFields<
185
- T & {
186
- type: 'object' | ['object', 'null'] | ['null', 'object']
187
- required?: string[]
188
- }
189
- >
190
-
100
+ allOf?: OpenapiSchemaBodyShorthand[];
101
+ }>;
102
+ export type CommonOpenapiSchemaObjectFields<T> = OpenapiSchemaCommonFields<T & {
103
+ type: 'object' | ['object', 'null'] | ['null', 'object'];
104
+ required?: string[];
105
+ }>;
191
106
  export type OpenapiSchemaArray = OpenapiSchemaCommonFields<{
192
- type: 'array' | ['array', 'null'] | ['null', 'array']
193
- items:
194
- | OpenapiSchemaBody
195
- | OpenapiSchemaExpressionAllOf
196
- | OpenapiSchemaExpressionAnyOf
197
- | OpenapiSchemaExpressionOneOf
198
- }>
199
-
107
+ type: 'array' | ['array', 'null'] | ['null', 'array'];
108
+ items: OpenapiSchemaBody | OpenapiSchemaExpressionAllOf | OpenapiSchemaExpressionAnyOf | OpenapiSchemaExpressionOneOf;
109
+ }>;
200
110
  export type OpenapiSchemaArrayShorthand = OpenapiSchemaCommonFields<{
201
- type: 'array' | ['array', 'null'] | ['null', 'array']
202
- items:
203
- | OpenapiSchemaBodyShorthand
204
- | OpenapiSchemaShorthandExpressionAllOf
205
- | OpenapiSchemaShorthandExpressionAnyOf
206
- | OpenapiSchemaShorthandExpressionOneOf
207
- | OpenapiSchemaShorthandExpressionSerializerRef
208
- | OpenapiSchemaShorthandExpressionSerializableRef
209
- }>
210
-
111
+ type: 'array' | ['array', 'null'] | ['null', 'array'];
112
+ items: OpenapiSchemaBodyShorthand | OpenapiSchemaShorthandExpressionAllOf | OpenapiSchemaShorthandExpressionAnyOf | OpenapiSchemaShorthandExpressionOneOf | OpenapiSchemaShorthandExpressionSerializerRef | OpenapiSchemaShorthandExpressionSerializableRef;
113
+ }>;
211
114
  export interface OpenapiSchemaProperties {
212
- [key: string]: OpenapiSchemaBody
115
+ [key: string]: OpenapiSchemaBody;
213
116
  }
214
-
215
117
  export type OpenapiSchemaPrimitiveGeneric = OpenapiSchemaCommonFields<{
216
- type: OpenapiPrimitiveTypes
217
- }>
218
-
118
+ type: OpenapiPrimitiveTypes;
119
+ }>;
219
120
  export type OpenapiSchemaShorthandPrimitiveGeneric = OpenapiSchemaCommonFields<{
220
- type: OpenapiShorthandPrimitiveTypes
221
- }>
222
-
121
+ type: OpenapiShorthandPrimitiveTypes;
122
+ }>;
223
123
  export interface OpenapiSchemaPropertiesShorthand {
224
- [key: string]: OpenapiSchemaBodyShorthand | OpenapiShorthandPrimitiveTypes
124
+ [key: string]: OpenapiSchemaBodyShorthand | OpenapiShorthandPrimitiveTypes;
225
125
  }
226
-
227
- type OpenapiPrimitiveBaseTypes = (typeof openapiPrimitiveTypes)[number]
228
- export type OpenapiPrimitiveTypes =
229
- | OpenapiPrimitiveBaseTypes
230
- | [OpenapiPrimitiveBaseTypes, 'null']
231
- | ['null', OpenapiPrimitiveBaseTypes]
232
-
233
- export type OpenapiShorthandPrimitiveBaseTypes = (typeof openapiShorthandPrimitiveTypes)[number]
234
- export type OpenapiShorthandPrimitiveTypes =
235
- | OpenapiShorthandPrimitiveBaseTypes
236
- | [OpenapiShorthandPrimitiveBaseTypes, 'null']
237
- | ['null', OpenapiShorthandPrimitiveBaseTypes]
238
-
239
- type ObjectOrArrayPrimitiveTypes =
240
- | 'object'
241
- | 'array'
242
- | ['object' | 'array', 'null']
243
- | ['null', 'object' | 'array']
244
-
245
- export type OpenapiAllTypes = OpenapiPrimitiveTypes | ObjectOrArrayPrimitiveTypes
246
-
247
- export type OpenapiShorthandAllTypes = OpenapiShorthandPrimitiveTypes | ObjectOrArrayPrimitiveTypes
248
-
249
- export type OpenapiTypeField = OpenapiPrimitiveTypes | OpenapiTypeFieldObject
250
-
126
+ type OpenapiPrimitiveBaseTypes = (typeof openapiPrimitiveTypes)[number];
127
+ export type OpenapiPrimitiveTypes = OpenapiPrimitiveBaseTypes | [OpenapiPrimitiveBaseTypes, 'null'] | ['null', OpenapiPrimitiveBaseTypes];
128
+ export type OpenapiShorthandPrimitiveBaseTypes = (typeof openapiShorthandPrimitiveTypes)[number];
129
+ export type OpenapiShorthandPrimitiveTypes = OpenapiShorthandPrimitiveBaseTypes | [OpenapiShorthandPrimitiveBaseTypes, 'null'] | ['null', OpenapiShorthandPrimitiveBaseTypes];
130
+ type ObjectOrArrayPrimitiveTypes = 'object' | 'array' | ['object' | 'array', 'null'] | ['null', 'object' | 'array'];
131
+ export type OpenapiAllTypes = OpenapiPrimitiveTypes | ObjectOrArrayPrimitiveTypes;
132
+ export type OpenapiShorthandAllTypes = OpenapiShorthandPrimitiveTypes | ObjectOrArrayPrimitiveTypes;
133
+ export type OpenapiTypeField = OpenapiPrimitiveTypes | OpenapiTypeFieldObject;
251
134
  export interface OpenapiTypeFieldObject {
252
- [key: string]: OpenapiPrimitiveTypes | OpenapiTypeFieldObject
135
+ [key: string]: OpenapiPrimitiveTypes | OpenapiTypeFieldObject;
253
136
  }
254
-
255
- export type OpenapiFormats = 'application/json'
137
+ export type OpenapiFormats = 'application/json';
138
+ export {};