@mydoormot/app-types 1.1.6 → 1.1.7
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/.turbo/turbo-build.log +7 -6
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +33 -31
- package/package.json +6 -6
- package/src/user.ts +5 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
|
|
2
|
+
> @mydoormot/app-types@1.1.6 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
|
|
3
|
+
> tsup src/index.ts --format cjs --dts
|
|
4
|
+
|
|
3
5
|
CLI Building entry: src/index.ts
|
|
4
6
|
CLI Using tsconfig: tsconfig.json
|
|
5
7
|
CLI tsup v7.2.0
|
|
6
8
|
CLI Target: node16
|
|
7
9
|
CJS Build start
|
|
8
10
|
CJS dist/index.js 5.41 KB
|
|
9
|
-
CJS ⚡️ Build success in
|
|
11
|
+
CJS ⚡️ Build success in 61ms
|
|
10
12
|
DTS Build start
|
|
11
|
-
DTS ⚡️ Build success in
|
|
12
|
-
DTS dist/index.d.ts 8.
|
|
13
|
-
Done in 3.13s.
|
|
13
|
+
DTS ⚡️ Build success in 721ms
|
|
14
|
+
DTS dist/index.d.ts 8.90 KB
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
|
+
type City = {
|
|
2
|
+
id: string;
|
|
3
|
+
state: string | State;
|
|
4
|
+
name: string;
|
|
5
|
+
slug: string;
|
|
6
|
+
location: {
|
|
7
|
+
coordinates: number[];
|
|
8
|
+
};
|
|
9
|
+
population: string;
|
|
10
|
+
populationProper: string;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
version: number;
|
|
14
|
+
isRiderActive: boolean;
|
|
15
|
+
isPropertyActive: boolean;
|
|
16
|
+
errandPrice?: number;
|
|
17
|
+
};
|
|
18
|
+
type State = {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
slug: string;
|
|
22
|
+
location: {
|
|
23
|
+
coordinates: number[];
|
|
24
|
+
};
|
|
25
|
+
alias: string;
|
|
26
|
+
updatedAt: Date;
|
|
27
|
+
createdAt: Date;
|
|
28
|
+
};
|
|
29
|
+
type LatLng = `${number},${number}`;
|
|
30
|
+
|
|
1
31
|
declare enum RoleType {
|
|
2
32
|
Rider = "rider",
|
|
3
33
|
User = "user",
|
|
@@ -32,9 +62,11 @@ type User = {
|
|
|
32
62
|
appleUserId?: string;
|
|
33
63
|
};
|
|
34
64
|
type UserAddress = {
|
|
65
|
+
id: string;
|
|
35
66
|
user: string;
|
|
36
67
|
name: string;
|
|
37
|
-
city: string;
|
|
68
|
+
city: string | City;
|
|
69
|
+
state: string | State;
|
|
38
70
|
address: string;
|
|
39
71
|
landmark?: string;
|
|
40
72
|
location?: {
|
|
@@ -96,36 +128,6 @@ interface Invoice {
|
|
|
96
128
|
accessCode?: string;
|
|
97
129
|
}
|
|
98
130
|
|
|
99
|
-
type City = {
|
|
100
|
-
id: string;
|
|
101
|
-
state: string | State;
|
|
102
|
-
name: string;
|
|
103
|
-
slug: string;
|
|
104
|
-
location: {
|
|
105
|
-
coordinates: number[];
|
|
106
|
-
};
|
|
107
|
-
population: string;
|
|
108
|
-
populationProper: string;
|
|
109
|
-
updatedAt: Date;
|
|
110
|
-
createdAt: Date;
|
|
111
|
-
version: number;
|
|
112
|
-
isRiderActive: boolean;
|
|
113
|
-
isPropertyActive: boolean;
|
|
114
|
-
errandPrice?: number;
|
|
115
|
-
};
|
|
116
|
-
type State = {
|
|
117
|
-
id: string;
|
|
118
|
-
name: string;
|
|
119
|
-
slug: string;
|
|
120
|
-
location: {
|
|
121
|
-
coordinates: number[];
|
|
122
|
-
};
|
|
123
|
-
alias: string;
|
|
124
|
-
updatedAt: Date;
|
|
125
|
-
createdAt: Date;
|
|
126
|
-
};
|
|
127
|
-
type LatLng = `${number},${number}`;
|
|
128
|
-
|
|
129
131
|
type Rider = {
|
|
130
132
|
id: string;
|
|
131
133
|
user: string | User;
|
package/package.json
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mydoormot/app-types",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"mains": "./dist/index.js",
|
|
6
6
|
"typess": "./dist/index.d.ts",
|
|
7
7
|
"main": "./src/index.ts",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"clean": "del ./build/*",
|
|
10
|
-
"build": "tsup src/index.ts --format cjs --dts"
|
|
11
|
-
},
|
|
12
8
|
"keywords": [],
|
|
13
9
|
"author": "",
|
|
14
10
|
"license": "ISC",
|
|
@@ -18,5 +14,9 @@
|
|
|
18
14
|
},
|
|
19
15
|
"devDependencies": {
|
|
20
16
|
"tsup": "^7.2.0"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"clean": "del ./build/*",
|
|
20
|
+
"build": "tsup src/index.ts --format cjs --dts"
|
|
21
21
|
}
|
|
22
|
-
}
|
|
22
|
+
}
|
package/src/user.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { City, State } from './location';
|
|
2
|
+
|
|
1
3
|
export enum RoleType {
|
|
2
4
|
Rider = 'rider',
|
|
3
5
|
User = 'user',
|
|
@@ -35,9 +37,11 @@ export type User = {
|
|
|
35
37
|
};
|
|
36
38
|
|
|
37
39
|
export type UserAddress = {
|
|
40
|
+
id: string;
|
|
38
41
|
user: string;
|
|
39
42
|
name: string;
|
|
40
|
-
city: string;
|
|
43
|
+
city: string | City;
|
|
44
|
+
state: string | State;
|
|
41
45
|
address: string;
|
|
42
46
|
landmark?: string;
|
|
43
47
|
location?: {
|