@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.
- package/dist/cjs/src/helpers/cli/generateFactoryContent.js +6 -4
- package/dist/cjs/src/types/associations/belongsTo.js +2 -0
- package/dist/cjs/src/types/associations/hasMany.js +2 -0
- package/dist/cjs/src/types/associations/hasOne.js +2 -0
- package/dist/cjs/src/types/associations/shared.js +2 -0
- package/dist/cjs/src/types/db.js +2 -0
- package/dist/cjs/src/types/dream.js +2 -0
- package/dist/cjs/src/types/lifecycle.js +2 -0
- package/dist/cjs/src/types/logger.js +2 -0
- package/dist/cjs/src/types/openapi.js +2 -0
- package/dist/cjs/src/types/query.js +2 -0
- package/dist/cjs/src/types/utils.js +2 -0
- package/dist/cjs/src/types/validation.js +2 -0
- package/dist/cjs/src/types/variadic.js +2 -0
- package/dist/esm/src/helpers/cli/generateFactoryContent.js +6 -4
- package/dist/esm/src/types/associations/belongsTo.js +1 -0
- package/dist/esm/src/types/associations/hasMany.js +1 -0
- package/dist/esm/src/types/associations/hasOne.js +1 -0
- package/dist/esm/src/types/associations/shared.js +1 -0
- package/dist/esm/src/types/db.js +1 -0
- package/dist/esm/src/types/dream.js +1 -0
- package/dist/esm/src/types/lifecycle.js +1 -0
- package/dist/esm/src/types/logger.js +1 -0
- package/dist/esm/src/types/openapi.js +1 -0
- package/dist/esm/src/types/query.js +1 -0
- package/dist/esm/src/types/utils.js +1 -0
- package/dist/esm/src/types/validation.js +1 -0
- package/dist/esm/src/types/variadic.js +1 -0
- package/dist/types/src/types/associations/belongsTo.d.ts +28 -73
- package/dist/types/src/types/associations/belongsTo.ts +76 -0
- package/dist/types/src/types/associations/hasMany.d.ts +15 -79
- package/dist/types/src/types/associations/hasMany.ts +80 -0
- package/dist/types/src/types/associations/hasOne.d.ts +8 -26
- package/dist/types/src/types/associations/hasOne.ts +26 -0
- package/dist/types/src/types/associations/shared.d.ts +98 -444
- package/dist/types/src/types/associations/shared.ts +450 -0
- package/dist/types/src/types/db.d.ts +9 -14
- package/dist/types/src/types/db.ts +14 -0
- package/dist/types/src/types/dream.d.ts +124 -510
- package/dist/types/src/types/dream.ts +521 -0
- package/dist/types/src/types/lifecycle.d.ts +23 -42
- package/dist/types/src/types/lifecycle.ts +50 -0
- package/dist/types/src/types/logger.d.ts +6 -40
- package/dist/types/src/types/logger.ts +42 -0
- package/dist/types/src/types/openapi.d.ts +105 -222
- package/dist/types/src/types/openapi.ts +255 -0
- package/dist/types/src/types/query.d.ts +53 -161
- package/dist/types/src/types/query.ts +165 -0
- package/dist/types/src/types/utils.d.ts +83 -141
- package/dist/types/src/types/utils.ts +173 -0
- package/dist/types/src/types/validation.d.ts +17 -18
- package/dist/types/src/types/validation.ts +20 -0
- package/dist/types/src/types/variadic.d.ts +42 -444
- package/dist/types/src/types/variadic.ts +447 -0
- package/docs/classes/Benchmark.html +2 -2
- package/docs/classes/CalendarDate.html +2 -2
- package/docs/classes/CreateOrFindByFailedToCreateAndFind.html +3 -3
- package/docs/classes/Decorators.html +19 -19
- package/docs/classes/Dream.html +132 -132
- package/docs/classes/DreamApp.html +4 -4
- package/docs/classes/DreamBin.html +2 -2
- package/docs/classes/DreamCLI.html +4 -4
- package/docs/classes/DreamImporter.html +2 -2
- package/docs/classes/DreamLogos.html +2 -2
- package/docs/classes/DreamMigrationHelpers.html +7 -7
- package/docs/classes/DreamSerializer.html +2 -2
- package/docs/classes/DreamTransaction.html +2 -2
- package/docs/classes/Encrypt.html +2 -2
- package/docs/classes/Env.html +2 -2
- package/docs/classes/GlobalNameNotSet.html +3 -3
- package/docs/classes/NonLoadedAssociation.html +3 -3
- package/docs/classes/Query.html +52 -52
- package/docs/classes/Range.html +2 -2
- package/docs/classes/RecordNotFound.html +3 -3
- package/docs/classes/ValidationError.html +3 -3
- package/docs/functions/Attribute.html +1 -1
- package/docs/functions/RendersMany.html +1 -1
- package/docs/functions/RendersOne.html +1 -1
- package/docs/functions/ReplicaSafe.html +1 -1
- package/docs/functions/STI.html +1 -1
- package/docs/functions/SoftDelete.html +1 -1
- package/docs/functions/camelize.html +1 -1
- package/docs/functions/capitalize.html +1 -1
- package/docs/functions/closeAllDbConnections.html +1 -1
- package/docs/functions/compact.html +1 -1
- package/docs/functions/dreamDbConnections.html +1 -1
- package/docs/functions/dreamPath.html +1 -1
- package/docs/functions/generateDream.html +1 -1
- package/docs/functions/globalClassNameFromFullyQualifiedModelName.html +1 -1
- package/docs/functions/hyphenize.html +1 -1
- package/docs/functions/inferSerializerFromDreamClassOrViewModelClass.html +1 -1
- package/docs/functions/inferSerializerFromDreamOrViewModel.html +1 -1
- package/docs/functions/isEmpty.html +1 -1
- package/docs/functions/loadRepl.html +1 -1
- package/docs/functions/lookupClassByGlobalName.html +1 -1
- package/docs/functions/pascalize.html +1 -1
- package/docs/functions/pgErrorType.html +1 -1
- package/docs/functions/range-1.html +1 -1
- package/docs/functions/relativeDreamPath.html +1 -1
- package/docs/functions/round.html +1 -1
- package/docs/functions/serializerNameFromFullyQualifiedModelName.html +1 -1
- package/docs/functions/sharedPathPrefix.html +1 -1
- package/docs/functions/snakeify.html +1 -1
- package/docs/functions/sort.html +1 -1
- package/docs/functions/sortBy.html +1 -1
- package/docs/functions/standardizeFullyQualifiedModelName.html +1 -1
- package/docs/functions/uncapitalize.html +1 -1
- package/docs/functions/uniq.html +1 -1
- package/docs/functions/untypedDb.html +1 -1
- package/docs/functions/validateColumn.html +1 -1
- package/docs/functions/validateTable.html +1 -1
- package/docs/interfaces/AttributeStatement.html +2 -2
- package/docs/interfaces/DecoratorContext.html +2 -2
- package/docs/interfaces/DreamAppInitOptions.html +2 -2
- package/docs/interfaces/DreamAppOpts.html +2 -2
- package/docs/interfaces/DreamSerializerAssociationStatement.html +2 -2
- package/docs/interfaces/EncryptOptions.html +2 -2
- package/docs/interfaces/OpenapiSchemaProperties.html +1 -1
- package/docs/interfaces/OpenapiSchemaPropertiesShorthand.html +1 -1
- package/docs/interfaces/OpenapiTypeFieldObject.html +1 -1
- package/docs/types/Camelized.html +1 -1
- package/docs/types/CommonOpenapiSchemaObjectFields.html +1 -1
- package/docs/types/DateTime.html +1 -1
- package/docs/types/DbConnectionType.html +1 -1
- package/docs/types/DreamAssociationMetadata.html +1 -1
- package/docs/types/DreamAttributes.html +1 -1
- package/docs/types/DreamClassColumn.html +1 -1
- package/docs/types/DreamColumn.html +1 -1
- package/docs/types/DreamColumnNames.html +1 -1
- package/docs/types/DreamLogLevel.html +1 -1
- package/docs/types/DreamLogger.html +1 -1
- package/docs/types/DreamOrViewModelSerializerKey.html +1 -1
- package/docs/types/DreamParamSafeAttributes.html +1 -1
- package/docs/types/DreamParamSafeColumnNames.html +1 -1
- package/docs/types/DreamSerializerKey.html +1 -1
- package/docs/types/DreamSerializers.html +1 -1
- package/docs/types/DreamTableSchema.html +1 -1
- package/docs/types/DreamVirtualColumns.html +1 -1
- package/docs/types/EncryptAlgorithm.html +1 -1
- package/docs/types/Hyphenized.html +1 -1
- package/docs/types/IdType.html +1 -1
- package/docs/types/OpenapiAllTypes.html +1 -1
- package/docs/types/OpenapiFormats.html +1 -1
- package/docs/types/OpenapiNumberFormats.html +1 -1
- package/docs/types/OpenapiPrimitiveTypes.html +1 -1
- package/docs/types/OpenapiSchemaArray.html +1 -1
- package/docs/types/OpenapiSchemaArrayShorthand.html +1 -1
- package/docs/types/OpenapiSchemaBase.html +1 -1
- package/docs/types/OpenapiSchemaBody.html +1 -1
- package/docs/types/OpenapiSchemaBodyShorthand.html +1 -1
- package/docs/types/OpenapiSchemaCommonFields.html +1 -1
- package/docs/types/OpenapiSchemaExpressionAllOf.html +1 -1
- package/docs/types/OpenapiSchemaExpressionAnyOf.html +1 -1
- package/docs/types/OpenapiSchemaExpressionOneOf.html +1 -1
- package/docs/types/OpenapiSchemaExpressionRef.html +1 -1
- package/docs/types/OpenapiSchemaExpressionRefSchemaShorthand.html +1 -1
- package/docs/types/OpenapiSchemaInteger.html +1 -1
- package/docs/types/OpenapiSchemaNull.html +1 -1
- package/docs/types/OpenapiSchemaNumber.html +1 -1
- package/docs/types/OpenapiSchemaObject.html +1 -1
- package/docs/types/OpenapiSchemaObjectAllOf.html +1 -1
- package/docs/types/OpenapiSchemaObjectAllOfShorthand.html +1 -1
- package/docs/types/OpenapiSchemaObjectAnyOf.html +1 -1
- package/docs/types/OpenapiSchemaObjectAnyOfShorthand.html +1 -1
- package/docs/types/OpenapiSchemaObjectBase.html +1 -1
- package/docs/types/OpenapiSchemaObjectBaseShorthand.html +1 -1
- package/docs/types/OpenapiSchemaObjectOneOf.html +1 -1
- package/docs/types/OpenapiSchemaObjectOneOfShorthand.html +1 -1
- package/docs/types/OpenapiSchemaObjectShorthand.html +1 -1
- package/docs/types/OpenapiSchemaPrimitiveGeneric.html +1 -1
- package/docs/types/OpenapiSchemaShorthandExpressionAllOf.html +1 -1
- package/docs/types/OpenapiSchemaShorthandExpressionAnyOf.html +1 -1
- package/docs/types/OpenapiSchemaShorthandExpressionOneOf.html +1 -1
- package/docs/types/OpenapiSchemaShorthandExpressionSerializableRef.html +1 -1
- package/docs/types/OpenapiSchemaShorthandExpressionSerializerRef.html +1 -1
- package/docs/types/OpenapiSchemaShorthandPrimitiveGeneric.html +1 -1
- package/docs/types/OpenapiSchemaString.html +1 -1
- package/docs/types/OpenapiShorthandAllTypes.html +1 -1
- package/docs/types/OpenapiShorthandPrimitiveTypes.html +1 -1
- package/docs/types/OpenapiTypeField.html +1 -1
- package/docs/types/Pascalized.html +1 -1
- package/docs/types/PrimaryKeyType.html +1 -1
- package/docs/types/RoundingPrecision.html +1 -1
- package/docs/types/SerializableClassOrSerializerCallback.html +1 -1
- package/docs/types/SerializableDreamClassOrViewModelClass.html +1 -1
- package/docs/types/SerializableDreamOrViewModel.html +1 -1
- package/docs/types/SerializableTypes.html +1 -1
- package/docs/types/Snakeified.html +1 -1
- package/docs/types/Timestamp.html +1 -1
- package/docs/types/UpdateableAssociationProperties.html +1 -1
- package/docs/types/UpdateableProperties.html +1 -1
- package/docs/types/ValidationType.html +1 -1
- package/docs/types/ViewModelSerializerKey.html +1 -1
- package/docs/types/WhereStatementForDream.html +1 -1
- package/docs/types/WhereStatementForDreamClass.html +1 -1
- package/docs/variables/DateTime-1.html +1 -1
- package/docs/variables/DreamConst.html +1 -1
- package/docs/variables/TRIGRAM_OPERATORS.html +1 -1
- package/docs/variables/openapiPrimitiveTypes-1.html +1 -1
- package/docs/variables/openapiShorthandPrimitiveTypes-1.html +1 -1
- package/docs/variables/ops.html +1 -1
- package/docs/variables/primaryKeyTypes.html +1 -1
- package/package.json +1 -1
|
@@ -1,42 +1,8 @@
|
|
|
1
1
|
export interface DreamCliLoggerLogOpts {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
logPrefix?: string | undefined;
|
|
3
|
+
logPrefixColor?: DreamCliForegroundColor | undefined;
|
|
4
|
+
logPrefixBgColor?: DreamCliBgColor | undefined;
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
export type
|
|
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.
|
|
2
|
-
import DreamSerializer from '../serializer/index.
|
|
3
|
-
import { SerializableDreamClassOrViewModelClass } from './dream.js'
|
|
4
|
-
|
|
5
|
-
export type
|
|
6
|
-
|
|
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
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
8
|
+
anyOf: OpenapiSchemaBodyShorthand[];
|
|
9
|
+
};
|
|
38
10
|
export type OpenapiSchemaShorthandExpressionOneOf = {
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
11
|
+
oneOf: OpenapiSchemaBodyShorthand[];
|
|
12
|
+
};
|
|
42
13
|
export type OpenapiSchemaShorthandExpressionAllOf = {
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
14
|
+
allOf: OpenapiSchemaBodyShorthand[];
|
|
15
|
+
};
|
|
46
16
|
export type OpenapiSchemaShorthandExpressionSerializerRef = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
17
|
+
$serializer: typeof DreamSerializer;
|
|
18
|
+
many?: boolean;
|
|
19
|
+
maybeNull?: boolean;
|
|
20
|
+
};
|
|
52
21
|
export type OpenapiSchemaShorthandExpressionSerializableRef = {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
|
|
22
|
+
$serializable: SerializableDreamClassOrViewModelClass;
|
|
23
|
+
key?: string;
|
|
24
|
+
many?: boolean;
|
|
25
|
+
maybeNull?: boolean;
|
|
26
|
+
};
|
|
59
27
|
export type OpenapiSchemaExpressionRef = {
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
28
|
+
$ref: string;
|
|
29
|
+
};
|
|
63
30
|
export type OpenapiSchemaExpressionRefSchemaShorthand = {
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
31
|
+
$schema: string;
|
|
32
|
+
};
|
|
67
33
|
export type OpenapiSchemaExpressionAllOf = {
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
34
|
+
allOf: OpenapiSchemaBody[];
|
|
35
|
+
};
|
|
71
36
|
export type OpenapiSchemaExpressionAnyOf = {
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
37
|
+
anyOf: OpenapiSchemaBody[];
|
|
38
|
+
};
|
|
75
39
|
export type OpenapiSchemaExpressionOneOf = {
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
|
|
40
|
+
oneOf: OpenapiSchemaBody[];
|
|
41
|
+
};
|
|
79
42
|
export type OpenapiSchemaCommonFields<T> = T & {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
43
|
+
description?: string;
|
|
44
|
+
summary?: string;
|
|
45
|
+
};
|
|
84
46
|
export type OpenapiSchemaString = OpenapiSchemaCommonFields<{
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
|
|
55
|
+
type: 'integer' | ['integer', 'null'] | ['null', 'integer'];
|
|
56
|
+
minimum?: number;
|
|
57
|
+
maximum?: number;
|
|
58
|
+
}>;
|
|
99
59
|
export type OpenapiSchemaNumber = OpenapiSchemaCommonFields<{
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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
|
-
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export type
|
|
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
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
|
124
|
-
|
|
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
|
-
|
|
136
|
-
}
|
|
137
|
-
|
|
78
|
+
oneOf?: OpenapiSchemaBody[];
|
|
79
|
+
}>;
|
|
138
80
|
export type OpenapiSchemaObjectAnyOf = CommonOpenapiSchemaObjectFields<{
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
|
|
81
|
+
anyOf?: OpenapiSchemaBody[];
|
|
82
|
+
}>;
|
|
142
83
|
export type OpenapiSchemaObjectAllOf = CommonOpenapiSchemaObjectFields<{
|
|
143
|
-
|
|
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
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
|
157
|
-
|
|
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
|
-
|
|
174
|
-
}
|
|
175
|
-
|
|
94
|
+
oneOf?: OpenapiSchemaBodyShorthand[];
|
|
95
|
+
}>;
|
|
176
96
|
export type OpenapiSchemaObjectAnyOfShorthand = CommonOpenapiSchemaObjectFields<{
|
|
177
|
-
|
|
178
|
-
}
|
|
179
|
-
|
|
97
|
+
anyOf?: OpenapiSchemaBodyShorthand[];
|
|
98
|
+
}>;
|
|
180
99
|
export type OpenapiSchemaObjectAllOfShorthand = CommonOpenapiSchemaObjectFields<{
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
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
|
-
|
|
193
|
-
|
|
194
|
-
|
|
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
|
-
|
|
202
|
-
|
|
203
|
-
|
|
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
|
-
|
|
115
|
+
[key: string]: OpenapiSchemaBody;
|
|
213
116
|
}
|
|
214
|
-
|
|
215
117
|
export type OpenapiSchemaPrimitiveGeneric = OpenapiSchemaCommonFields<{
|
|
216
|
-
|
|
217
|
-
}
|
|
218
|
-
|
|
118
|
+
type: OpenapiPrimitiveTypes;
|
|
119
|
+
}>;
|
|
219
120
|
export type OpenapiSchemaShorthandPrimitiveGeneric = OpenapiSchemaCommonFields<{
|
|
220
|
-
|
|
221
|
-
}
|
|
222
|
-
|
|
121
|
+
type: OpenapiShorthandPrimitiveTypes;
|
|
122
|
+
}>;
|
|
223
123
|
export interface OpenapiSchemaPropertiesShorthand {
|
|
224
|
-
|
|
124
|
+
[key: string]: OpenapiSchemaBodyShorthand | OpenapiShorthandPrimitiveTypes;
|
|
225
125
|
}
|
|
226
|
-
|
|
227
|
-
type
|
|
228
|
-
export type
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
export type
|
|
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
|
-
|
|
135
|
+
[key: string]: OpenapiPrimitiveTypes | OpenapiTypeFieldObject;
|
|
253
136
|
}
|
|
254
|
-
|
|
255
|
-
export
|
|
137
|
+
export type OpenapiFormats = 'application/json';
|
|
138
|
+
export {};
|