@pathway-io/core 1.0.20 → 1.0.22
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
- package/src/styles/index.ts +3 -0
- package/src/types/auth.ts +10 -10
- package/src/types/messages.ts +18 -18
package/dist/index.d.mts
CHANGED
@@ -24,6 +24,7 @@ declare const colors: {
|
|
24
24
|
900: string;
|
25
25
|
950: string;
|
26
26
|
};
|
27
|
+
readonly danger: "#FF801B";
|
27
28
|
};
|
28
29
|
declare const fonts: {
|
29
30
|
readonly "3xl": {
|
@@ -132,7 +133,7 @@ type Message = {
|
|
132
133
|
deletedAt: Date | null;
|
133
134
|
updatedAt: Date;
|
134
135
|
};
|
135
|
-
type
|
136
|
+
type MessageCreateRequest = {
|
136
137
|
channelId: number;
|
137
138
|
content: string;
|
138
139
|
};
|
@@ -157,4 +158,4 @@ type UserUpdateEmailInput = {
|
|
157
158
|
email: string;
|
158
159
|
};
|
159
160
|
|
160
|
-
export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type Message, type
|
161
|
+
export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type Message, type MessageCreateRequest, type MessageListCoercedQueryParams, type MessageListQueryParams, type User, type UserRole, type UserUpdateEmailInput, colors, fonts };
|
package/dist/index.d.ts
CHANGED
@@ -24,6 +24,7 @@ declare const colors: {
|
|
24
24
|
900: string;
|
25
25
|
950: string;
|
26
26
|
};
|
27
|
+
readonly danger: "#FF801B";
|
27
28
|
};
|
28
29
|
declare const fonts: {
|
29
30
|
readonly "3xl": {
|
@@ -132,7 +133,7 @@ type Message = {
|
|
132
133
|
deletedAt: Date | null;
|
133
134
|
updatedAt: Date;
|
134
135
|
};
|
135
|
-
type
|
136
|
+
type MessageCreateRequest = {
|
136
137
|
channelId: number;
|
137
138
|
content: string;
|
138
139
|
};
|
@@ -157,4 +158,4 @@ type UserUpdateEmailInput = {
|
|
157
158
|
email: string;
|
158
159
|
};
|
159
160
|
|
160
|
-
export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type Message, type
|
161
|
+
export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type Message, type MessageCreateRequest, type MessageListCoercedQueryParams, type MessageListQueryParams, type User, type UserRole, type UserUpdateEmailInput, colors, fonts };
|
package/dist/index.js
CHANGED
@@ -39,6 +39,7 @@ var gray = {
|
|
39
39
|
900: "#1c1917",
|
40
40
|
950: "#0c0a09"
|
41
41
|
};
|
42
|
+
var orange = "#FF801B";
|
42
43
|
var green = {
|
43
44
|
100: "#eeece8",
|
44
45
|
200: "#d1d5c3",
|
@@ -53,7 +54,8 @@ var green = {
|
|
53
54
|
};
|
54
55
|
var colors = {
|
55
56
|
neutral: gray,
|
56
|
-
primary: green
|
57
|
+
primary: green,
|
58
|
+
danger: orange
|
57
59
|
};
|
58
60
|
var fonts = {
|
59
61
|
"3xl": {
|
package/dist/index.mjs
CHANGED
@@ -12,6 +12,7 @@ var gray = {
|
|
12
12
|
900: "#1c1917",
|
13
13
|
950: "#0c0a09"
|
14
14
|
};
|
15
|
+
var orange = "#FF801B";
|
15
16
|
var green = {
|
16
17
|
100: "#eeece8",
|
17
18
|
200: "#d1d5c3",
|
@@ -26,7 +27,8 @@ var green = {
|
|
26
27
|
};
|
27
28
|
var colors = {
|
28
29
|
neutral: gray,
|
29
|
-
primary: green
|
30
|
+
primary: green,
|
31
|
+
danger: orange
|
30
32
|
};
|
31
33
|
var fonts = {
|
32
34
|
"3xl": {
|
package/package.json
CHANGED
package/src/styles/index.ts
CHANGED
@@ -12,6 +12,8 @@ const gray = {
|
|
12
12
|
950: "#0c0a09",
|
13
13
|
};
|
14
14
|
|
15
|
+
const orange = "#FF801B";
|
16
|
+
|
15
17
|
const green = {
|
16
18
|
100: "#eeece8",
|
17
19
|
200: "#d1d5c3",
|
@@ -28,6 +30,7 @@ const green = {
|
|
28
30
|
export const colors = {
|
29
31
|
neutral: gray,
|
30
32
|
primary: green,
|
33
|
+
danger: orange,
|
31
34
|
} as const;
|
32
35
|
|
33
36
|
export const fonts = {
|
package/src/types/auth.ts
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
export type AuthOtpRequest = {
|
2
|
-
email: string
|
3
|
-
}
|
2
|
+
email: string;
|
3
|
+
};
|
4
4
|
|
5
5
|
export type AuthSignInRequest = {
|
6
|
-
code: string
|
7
|
-
}
|
6
|
+
code: string;
|
7
|
+
};
|
8
8
|
|
9
9
|
export type AuthSignInResponse = {
|
10
|
-
accessToken: string
|
11
|
-
refreshToken: string
|
12
|
-
}
|
10
|
+
accessToken: string;
|
11
|
+
refreshToken: string;
|
12
|
+
};
|
13
13
|
|
14
14
|
export type AuthSignInRefreshRequest = {
|
15
|
-
refreshToken: string
|
16
|
-
}
|
15
|
+
refreshToken: string;
|
16
|
+
};
|
17
17
|
|
18
|
-
export type AuthSignInRefreshResponse = AuthSignInResponse
|
18
|
+
export type AuthSignInRefreshResponse = AuthSignInResponse;
|
package/src/types/messages.ts
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
export type MessageListQueryParams = {
|
2
|
-
channelId: string
|
3
|
-
}
|
2
|
+
channelId: string;
|
3
|
+
};
|
4
4
|
|
5
5
|
export type MessageListCoercedQueryParams = {
|
6
|
-
channelId: number
|
7
|
-
}
|
6
|
+
channelId: number;
|
7
|
+
};
|
8
8
|
|
9
9
|
export type Message = {
|
10
|
-
id: number
|
10
|
+
id: number;
|
11
11
|
|
12
|
-
content: string
|
12
|
+
content: string;
|
13
13
|
|
14
14
|
channel: {
|
15
|
-
id: number
|
16
|
-
}
|
15
|
+
id: number;
|
16
|
+
};
|
17
17
|
user: {
|
18
|
-
id: string
|
19
|
-
}
|
18
|
+
id: string;
|
19
|
+
};
|
20
20
|
|
21
|
-
createdAt: Date
|
22
|
-
deletedAt: Date | null
|
23
|
-
updatedAt: Date
|
24
|
-
}
|
21
|
+
createdAt: Date;
|
22
|
+
deletedAt: Date | null;
|
23
|
+
updatedAt: Date;
|
24
|
+
};
|
25
25
|
|
26
|
-
export type
|
27
|
-
channelId: number
|
28
|
-
content: string
|
29
|
-
}
|
26
|
+
export type MessageCreateRequest = {
|
27
|
+
channelId: number;
|
28
|
+
content: string;
|
29
|
+
};
|