@pathway-io/core 1.0.5 → 1.0.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/dist/index.d.mts CHANGED
@@ -66,16 +66,20 @@ declare const fonts: {
66
66
  type AuthOtpRequest = {
67
67
  email: string;
68
68
  };
69
+ type AuthSignInRequest = {
70
+ code: string;
71
+ };
69
72
  type AuthSignInResponse = {
70
73
  accessToken: string;
71
74
  refreshToken: string;
72
75
  };
73
- type AuthSignInInput = {
74
- code: string;
75
- };
76
76
  type AuthSignInRefreshRequest = {
77
77
  refreshToken: string;
78
78
  };
79
79
  type AuthSignInRefreshResponse = AuthSignInResponse;
80
80
 
81
- export { type AuthOtpRequest, type AuthSignInInput, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInResponse, colors, fonts };
81
+ type ChannelMessagesParams = {
82
+ channelId: number;
83
+ };
84
+
85
+ export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type ChannelMessagesParams, colors, fonts };
package/dist/index.d.ts CHANGED
@@ -66,16 +66,20 @@ declare const fonts: {
66
66
  type AuthOtpRequest = {
67
67
  email: string;
68
68
  };
69
+ type AuthSignInRequest = {
70
+ code: string;
71
+ };
69
72
  type AuthSignInResponse = {
70
73
  accessToken: string;
71
74
  refreshToken: string;
72
75
  };
73
- type AuthSignInInput = {
74
- code: string;
75
- };
76
76
  type AuthSignInRefreshRequest = {
77
77
  refreshToken: string;
78
78
  };
79
79
  type AuthSignInRefreshResponse = AuthSignInResponse;
80
80
 
81
- export { type AuthOtpRequest, type AuthSignInInput, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInResponse, colors, fonts };
81
+ type ChannelMessagesParams = {
82
+ channelId: number;
83
+ };
84
+
85
+ export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type ChannelMessagesParams, colors, fonts };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathway-io/core",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Shared constants and types for Pathway",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/types/auth.ts CHANGED
@@ -2,15 +2,15 @@ export type AuthOtpRequest = {
2
2
  email: string
3
3
  }
4
4
 
5
+ export type AuthSignInRequest = {
6
+ code: string
7
+ }
8
+
5
9
  export type AuthSignInResponse = {
6
10
  accessToken: string
7
11
  refreshToken: string
8
12
  }
9
13
 
10
- export type AuthSignInInput = {
11
- code: string
12
- }
13
-
14
14
  export type AuthSignInRefreshRequest = {
15
15
  refreshToken: string
16
16
  }
@@ -1 +1,2 @@
1
1
  export * from './auth'
2
+ export * from './messages'
@@ -0,0 +1,3 @@
1
+ export type ChannelMessagesParams = {
2
+ channelId: number
3
+ }