@pathway-io/core 1.0.19 → 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 CHANGED
@@ -132,7 +132,7 @@ type Message = {
132
132
  deletedAt: Date | null;
133
133
  updatedAt: Date;
134
134
  };
135
- type MessageCreateInput = {
135
+ type MessageCreateRequest = {
136
136
  channelId: number;
137
137
  content: string;
138
138
  };
@@ -153,5 +153,8 @@ type User = {
153
153
  role: UserRole;
154
154
  pictureUrl?: string;
155
155
  };
156
+ type UserUpdateEmailInput = {
157
+ email: string;
158
+ };
156
159
 
157
- export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type Message, type MessageCreateInput, type MessageListCoercedQueryParams, type MessageListQueryParams, type User, type UserRole, colors, fonts };
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 MessageCreateInput = {
135
+ type MessageCreateRequest = {
136
136
  channelId: number;
137
137
  content: string;
138
138
  };
@@ -153,5 +153,8 @@ type User = {
153
153
  role: UserRole;
154
154
  pictureUrl?: string;
155
155
  };
156
+ type UserUpdateEmailInput = {
157
+ email: string;
158
+ };
156
159
 
157
- export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type Message, type MessageCreateInput, type MessageListCoercedQueryParams, type MessageListQueryParams, type User, type UserRole, colors, fonts };
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathway-io/core",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "Shared constants and types for Pathway",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/index.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './functions'
2
- export * from './styles'
3
- export * from './types'
1
+ export * from "./functions";
2
+ export * from "./styles";
3
+ export * from "./types";
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;
@@ -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 MessageCreateInput = {
27
- channelId: number
28
- content: string
29
- }
26
+ export type MessageCreateRequest = {
27
+ channelId: number;
28
+ content: string;
29
+ };
package/src/types/user.ts CHANGED
@@ -15,3 +15,7 @@ export type User = {
15
15
  role: UserRole;
16
16
  pictureUrl?: string;
17
17
  };
18
+
19
+ export type UserUpdateEmailInput = {
20
+ email: string;
21
+ };