create-warlock 4.0.1 → 4.0.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/package.json
CHANGED
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"@mongez/dotenv": "^1.1.9",
|
|
31
31
|
"@mongez/config": "^1.0.26",
|
|
32
32
|
"@mongez/supportive-is": "^2.0.4",
|
|
33
|
-
"@warlock.js/auth": "4.0.
|
|
34
|
-
"@warlock.js/cache": "4.0.
|
|
35
|
-
"@warlock.js/cascade": "4.0.
|
|
36
|
-
"@warlock.js/core": "4.0.
|
|
37
|
-
"@warlock.js/logger": "4.0.
|
|
38
|
-
"@warlock.js/seal": "4.0.
|
|
33
|
+
"@warlock.js/auth": "4.0.4",
|
|
34
|
+
"@warlock.js/cache": "4.0.4",
|
|
35
|
+
"@warlock.js/cascade": "4.0.4",
|
|
36
|
+
"@warlock.js/core": "4.0.4",
|
|
37
|
+
"@warlock.js/logger": "4.0.4",
|
|
38
|
+
"@warlock.js/seal": "4.0.4",
|
|
39
39
|
"@faker-js/faker": "^9.2.0",
|
|
40
40
|
"dayjs": "^1.11.13"
|
|
41
41
|
},
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { FinalOutput } from "@warlock.js/core";
|
|
2
|
-
import { UserOutput } from "app/users/output/user.output";
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* Merge the output with this function will return the base output details
|
|
@@ -11,8 +10,8 @@ export function withBaseOutputDetails(moreOptions: FinalOutput): FinalOutput {
|
|
|
11
10
|
isActive: "boolean",
|
|
12
11
|
createdAt: "date",
|
|
13
12
|
updatedAt: "date",
|
|
14
|
-
createdBy:
|
|
15
|
-
updatedBy:
|
|
13
|
+
createdBy: "object",
|
|
14
|
+
updatedBy: "object",
|
|
16
15
|
...moreOptions,
|
|
17
16
|
};
|
|
18
17
|
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Config Type Mappings
|
|
3
|
-
*
|
|
4
|
-
* This file defines the return types for config.get() calls.
|
|
5
|
-
* Framework configs are pre-typed for you - just add your custom ones!
|
|
6
|
-
*
|
|
7
|
-
* Usage:
|
|
8
|
-
* const db = config.get("database");
|
|
9
|
-
* db.host // ✅ Autocomplete works!
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
import type { AuthConfigurations } from "@warlock.js/auth";
|
|
13
|
-
import type { CacheConfigurations } from "@warlock.js/cache";
|
|
14
|
-
import type { DatabaseConfigurations } from "@warlock.js/cascade";
|
|
15
|
-
import type {
|
|
16
|
-
AppConfigurations,
|
|
17
|
-
HttpConfigurations,
|
|
18
|
-
LogConfigurations,
|
|
19
|
-
MailConfigurations,
|
|
20
|
-
OutputConfigurations,
|
|
21
|
-
ValidationConfigurations,
|
|
22
|
-
} from "@warlock.js/core";
|
|
23
|
-
import type { PostmanConfigurations } from "@warlock.js/postman";
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Config type map - maps config keys to their return types
|
|
27
|
-
*
|
|
28
|
-
* Framework configs are pre-defined below.
|
|
29
|
-
* Add your custom config types here!
|
|
30
|
-
*
|
|
31
|
-
* Example:
|
|
32
|
-
* export interface ConfigTypeMap {
|
|
33
|
-
* // ... framework types
|
|
34
|
-
* sockets: {
|
|
35
|
-
* port: number;
|
|
36
|
-
* host: string;
|
|
37
|
-
* enabled: boolean;
|
|
38
|
-
* };
|
|
39
|
-
* }
|
|
40
|
-
*/
|
|
41
|
-
export interface ConfigTypeMap {
|
|
42
|
-
// Framework configs (pre-typed for autocomplete!)
|
|
43
|
-
app: AppConfigurations;
|
|
44
|
-
auth: AuthConfigurations;
|
|
45
|
-
cache: CacheConfigurations;
|
|
46
|
-
database: DatabaseConfigurations;
|
|
47
|
-
http: HttpConfigurations;
|
|
48
|
-
log: LogConfigurations;
|
|
49
|
-
mail: MailConfigurations;
|
|
50
|
-
output: OutputConfigurations;
|
|
51
|
-
validation: ValidationConfigurations;
|
|
52
|
-
postman: PostmanConfigurations;
|
|
53
|
-
|
|
54
|
-
// Add your custom config types below:
|
|
55
|
-
// sockets: MySocketsConfig;
|
|
56
|
-
// stripe: StripeConfig;
|
|
57
|
-
}
|