@pathway-io/core 1.0.20 → 1.0.21
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/types/auth.ts +10 -10
- package/src/types/messages.ts +18 -18
package/dist/index.d.mts
CHANGED
@@ -132,7 +132,7 @@ type Message = {
|
|
132
132
|
deletedAt: Date | null;
|
133
133
|
updatedAt: Date;
|
134
134
|
};
|
135
|
-
type
|
135
|
+
type MessageCreateRequest = {
|
136
136
|
channelId: number;
|
137
137
|
content: string;
|
138
138
|
};
|
@@ -157,4 +157,4 @@ type UserUpdateEmailInput = {
|
|
157
157
|
email: string;
|
158
158
|
};
|
159
159
|
|
160
|
-
export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type Message, type
|
160
|
+
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
@@ -132,7 +132,7 @@ type Message = {
|
|
132
132
|
deletedAt: Date | null;
|
133
133
|
updatedAt: Date;
|
134
134
|
};
|
135
|
-
type
|
135
|
+
type MessageCreateRequest = {
|
136
136
|
channelId: number;
|
137
137
|
content: string;
|
138
138
|
};
|
@@ -157,4 +157,4 @@ type UserUpdateEmailInput = {
|
|
157
157
|
email: string;
|
158
158
|
};
|
159
159
|
|
160
|
-
export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type Message, type
|
160
|
+
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/package.json
CHANGED
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
|
+
};
|