@pathway-io/core 1.0.7 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.mts CHANGED
@@ -78,8 +78,18 @@ type AuthSignInRefreshRequest = {
78
78
  };
79
79
  type AuthSignInRefreshResponse = AuthSignInResponse;
80
80
 
81
- type ChannelMessagesParams = {
81
+ type MessagesParams = {
82
82
  channelId: number;
83
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
+ };
84
94
 
85
- export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type ChannelMessagesParams, colors, fonts };
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,8 +78,18 @@ type AuthSignInRefreshRequest = {
78
78
  };
79
79
  type AuthSignInRefreshResponse = AuthSignInResponse;
80
80
 
81
- type ChannelMessagesParams = {
81
+ type MessagesParams = {
82
82
  channelId: number;
83
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
+ };
84
94
 
85
- export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type ChannelMessagesParams, colors, fonts };
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.7",
3
+ "version": "1.0.9",
4
4
  "description": "Shared constants and types for Pathway",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1,3 +1,16 @@
1
- export type ChannelMessagesParams = {
1
+ export type MessagesParams = {
2
2
  channelId: number
3
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
+ }