@decaf-ts/for-nest 0.9.0 → 0.10.0

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 (64) hide show
  1. package/README.md +45 -1
  2. package/dist/for-nest.cjs +1 -1
  3. package/dist/for-nest.cjs.map +1 -1
  4. package/dist/for-nest.js +1 -1
  5. package/dist/for-nest.js.map +1 -1
  6. package/lib/cjs/cli-module.cjs +74 -82
  7. package/lib/cjs/cli-module.cjs.map +1 -1
  8. package/lib/cjs/controllers.cjs +1 -1
  9. package/lib/cjs/controllers.cjs.map +1 -1
  10. package/lib/cjs/core-module.cjs +6 -18
  11. package/lib/cjs/core-module.cjs.map +1 -1
  12. package/lib/cjs/index.cjs +17 -2
  13. package/lib/cjs/index.cjs.map +1 -1
  14. package/lib/cjs/migrations/index.cjs +35 -0
  15. package/lib/cjs/migrations/index.cjs.map +1 -0
  16. package/lib/cjs/migrations/migration-module.cjs +93 -0
  17. package/lib/cjs/migrations/migration-module.cjs.map +1 -0
  18. package/lib/cjs/migrations/migration-options.cjs +4 -0
  19. package/lib/cjs/migrations/migration-options.cjs.map +1 -0
  20. package/lib/cjs/module.cjs +2 -0
  21. package/lib/cjs/module.cjs.map +1 -1
  22. package/lib/cjs/swagger-types.cjs +4 -0
  23. package/lib/cjs/swagger-types.cjs.map +1 -0
  24. package/lib/esm/cli-module.js +73 -82
  25. package/lib/esm/cli-module.js.map +1 -1
  26. package/lib/esm/controllers.js +1 -1
  27. package/lib/esm/controllers.js.map +1 -1
  28. package/lib/esm/core-module.js +5 -17
  29. package/lib/esm/core-module.js.map +1 -1
  30. package/lib/esm/decaf-model/FromModelController.js.map +1 -1
  31. package/lib/esm/index.js +16 -1
  32. package/lib/esm/index.js.map +1 -1
  33. package/lib/esm/migrations/index.js +18 -0
  34. package/lib/esm/migrations/index.js.map +1 -0
  35. package/lib/esm/migrations/migration-module.js +52 -0
  36. package/lib/esm/migrations/migration-module.js.map +1 -0
  37. package/lib/esm/migrations/migration-options.js +7 -0
  38. package/lib/esm/migrations/migration-options.js.map +1 -0
  39. package/lib/esm/module.js +1 -0
  40. package/lib/esm/module.js.map +1 -1
  41. package/lib/esm/overrides/decoration.js.map +1 -1
  42. package/lib/esm/swagger-types.js +2 -0
  43. package/lib/esm/swagger-types.js.map +1 -0
  44. package/lib/types/cli-module.d.cts +9 -0
  45. package/lib/types/cli-module.d.mts +9 -0
  46. package/lib/types/core-module.d.cts +3 -2
  47. package/lib/types/core-module.d.mts +3 -2
  48. package/lib/types/factory/openapi/constants.d.cts +1 -1
  49. package/lib/types/factory/openapi/constants.d.mts +1 -1
  50. package/lib/types/index.d.cts +16 -1
  51. package/lib/types/index.d.mts +16 -1
  52. package/lib/types/migrations/index.d.cts +17 -0
  53. package/lib/types/migrations/index.d.mts +17 -0
  54. package/lib/types/migrations/migration-module.d.cts +15 -0
  55. package/lib/types/migrations/migration-module.d.mts +15 -0
  56. package/lib/types/migrations/migration-options.d.cts +11 -0
  57. package/lib/types/migrations/migration-options.d.mts +11 -0
  58. package/lib/types/module.d.cts +1 -0
  59. package/lib/types/module.d.mts +1 -0
  60. package/lib/types/overrides/decoration.d.cts +1 -3
  61. package/lib/types/overrides/decoration.d.mts +1 -3
  62. package/lib/types/swagger-types.d.cts +67 -0
  63. package/lib/types/swagger-types.d.mts +67 -0
  64. package/package.json +1 -1
@@ -0,0 +1,67 @@
1
+ import { Type } from "@nestjs/common";
2
+ export interface SecuritySchemeObject {
3
+ type: "apiKey" | "http" | "oauth2" | "openIdConnect";
4
+ description?: string;
5
+ name?: string;
6
+ in?: string;
7
+ scheme?: string;
8
+ bearerFormat?: string;
9
+ flows?: Record<string, unknown>;
10
+ openIdConnectUrl?: string;
11
+ "x-tokenName"?: string;
12
+ [extension: `x-${string}`]: unknown;
13
+ }
14
+ export interface SchemaObject {
15
+ nullable?: boolean;
16
+ deprecated?: boolean;
17
+ readOnly?: boolean;
18
+ writeOnly?: boolean;
19
+ default?: unknown;
20
+ description?: string;
21
+ type?: string;
22
+ enum?: unknown[];
23
+ pattern?: string;
24
+ required?: string[];
25
+ properties?: Record<string, SchemaObjectMetadata>;
26
+ additionalProperties?: unknown;
27
+ items?: unknown;
28
+ format?: string;
29
+ maximum?: number;
30
+ minimum?: number;
31
+ maxLength?: number;
32
+ minLength?: number;
33
+ }
34
+ export interface ReferenceObject {
35
+ $ref: string;
36
+ }
37
+ export type EnumAllowedTypes = any[] | Record<string, any> | (() => any[] | Record<string, any>);
38
+ export type EnumSchemaAttributes = Pick<SchemaObject, "default" | "description" | "deprecated" | "readOnly" | "writeOnly" | "nullable">;
39
+ type SchemaObjectCommonMetadata = Omit<SchemaObject, "type" | "required" | "properties" | "enum" | "pattern"> & {
40
+ isArray?: boolean;
41
+ name?: string;
42
+ pattern?: string | RegExp;
43
+ enum?: EnumAllowedTypes;
44
+ [key: string]: any;
45
+ };
46
+ export type SchemaObjectMetadata = (SchemaObjectCommonMetadata & {
47
+ type?: Type<unknown> | Function | [Function] | "array" | "string" | "number" | "boolean" | "integer" | "file" | "null";
48
+ required?: boolean;
49
+ }) | (SchemaObjectCommonMetadata & {
50
+ type?: Type<unknown> | Function | [Function] | Record<string, any>;
51
+ required?: boolean;
52
+ enumName: string;
53
+ enumSchema?: EnumSchemaAttributes;
54
+ }) | (SchemaObjectCommonMetadata & {
55
+ type: "object";
56
+ properties: Record<string, SchemaObjectMetadata>;
57
+ required?: string[];
58
+ selfRequired?: boolean;
59
+ }) | (SchemaObjectCommonMetadata & {
60
+ type: "object";
61
+ properties?: Record<string, SchemaObjectMetadata>;
62
+ additionalProperties: SchemaObject | ReferenceObject | boolean;
63
+ required?: string[];
64
+ selfRequired?: boolean;
65
+ });
66
+ export type SwaggerEnumType = string[] | number[] | boolean[] | (string | number | boolean)[] | Record<number, string>;
67
+ export {};
@@ -0,0 +1,67 @@
1
+ import { Type } from "@nestjs/common";
2
+ export interface SecuritySchemeObject {
3
+ type: "apiKey" | "http" | "oauth2" | "openIdConnect";
4
+ description?: string;
5
+ name?: string;
6
+ in?: string;
7
+ scheme?: string;
8
+ bearerFormat?: string;
9
+ flows?: Record<string, unknown>;
10
+ openIdConnectUrl?: string;
11
+ "x-tokenName"?: string;
12
+ [extension: `x-${string}`]: unknown;
13
+ }
14
+ export interface SchemaObject {
15
+ nullable?: boolean;
16
+ deprecated?: boolean;
17
+ readOnly?: boolean;
18
+ writeOnly?: boolean;
19
+ default?: unknown;
20
+ description?: string;
21
+ type?: string;
22
+ enum?: unknown[];
23
+ pattern?: string;
24
+ required?: string[];
25
+ properties?: Record<string, SchemaObjectMetadata>;
26
+ additionalProperties?: unknown;
27
+ items?: unknown;
28
+ format?: string;
29
+ maximum?: number;
30
+ minimum?: number;
31
+ maxLength?: number;
32
+ minLength?: number;
33
+ }
34
+ export interface ReferenceObject {
35
+ $ref: string;
36
+ }
37
+ export type EnumAllowedTypes = any[] | Record<string, any> | (() => any[] | Record<string, any>);
38
+ export type EnumSchemaAttributes = Pick<SchemaObject, "default" | "description" | "deprecated" | "readOnly" | "writeOnly" | "nullable">;
39
+ type SchemaObjectCommonMetadata = Omit<SchemaObject, "type" | "required" | "properties" | "enum" | "pattern"> & {
40
+ isArray?: boolean;
41
+ name?: string;
42
+ pattern?: string | RegExp;
43
+ enum?: EnumAllowedTypes;
44
+ [key: string]: any;
45
+ };
46
+ export type SchemaObjectMetadata = (SchemaObjectCommonMetadata & {
47
+ type?: Type<unknown> | Function | [Function] | "array" | "string" | "number" | "boolean" | "integer" | "file" | "null";
48
+ required?: boolean;
49
+ }) | (SchemaObjectCommonMetadata & {
50
+ type?: Type<unknown> | Function | [Function] | Record<string, any>;
51
+ required?: boolean;
52
+ enumName: string;
53
+ enumSchema?: EnumSchemaAttributes;
54
+ }) | (SchemaObjectCommonMetadata & {
55
+ type: "object";
56
+ properties: Record<string, SchemaObjectMetadata>;
57
+ required?: string[];
58
+ selfRequired?: boolean;
59
+ }) | (SchemaObjectCommonMetadata & {
60
+ type: "object";
61
+ properties?: Record<string, SchemaObjectMetadata>;
62
+ additionalProperties: SchemaObject | ReferenceObject | boolean;
63
+ required?: string[];
64
+ selfRequired?: boolean;
65
+ });
66
+ export type SwaggerEnumType = string[] | number[] | boolean[] | (string | number | boolean)[] | Record<number, string>;
67
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decaf-ts/for-nest",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "NestJS decaf integration",
5
5
  "type": "module",
6
6
  "exports": {