@pathway-io/core 1.0.6 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.mts CHANGED
@@ -78,4 +78,18 @@ type AuthSignInRefreshRequest = {
78
78
  };
79
79
  type AuthSignInRefreshResponse = AuthSignInResponse;
80
80
 
81
- export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, colors, fonts };
81
+ type MessagesParams = {
82
+ channelId: number | null;
83
+ };
84
+ type Message = {
85
+ id: number;
86
+ channel: {
87
+ id: number;
88
+ };
89
+ content: string;
90
+ createdAt: Date;
91
+ deletedAt: Date | null;
92
+ updatedAt: Date;
93
+ };
94
+
95
+ export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type Message, type MessagesParams, colors, fonts };
package/dist/index.d.ts CHANGED
@@ -78,4 +78,18 @@ type AuthSignInRefreshRequest = {
78
78
  };
79
79
  type AuthSignInRefreshResponse = AuthSignInResponse;
80
80
 
81
- export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, colors, fonts };
81
+ type MessagesParams = {
82
+ channelId: number | null;
83
+ };
84
+ type Message = {
85
+ id: number;
86
+ channel: {
87
+ id: number;
88
+ };
89
+ content: string;
90
+ createdAt: Date;
91
+ deletedAt: Date | null;
92
+ updatedAt: Date;
93
+ };
94
+
95
+ export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type Message, type MessagesParams, colors, fonts };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathway-io/core",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Shared constants and types for Pathway",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1 +1,2 @@
1
1
  export * from './auth'
2
+ export * from './messages'
@@ -0,0 +1,16 @@
1
+ export type MessagesParams = {
2
+ channelId: number | null
3
+ }
4
+
5
+ export type Message = {
6
+ id: number
7
+
8
+ channel: {
9
+ id: number
10
+ }
11
+ content: string
12
+
13
+ createdAt: Date
14
+ deletedAt: Date | null
15
+ updatedAt: Date
16
+ }