@pathway-io/core 1.0.11 → 1.0.13

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
@@ -79,6 +79,9 @@ type AuthSignInRefreshRequest = {
79
79
  type AuthSignInRefreshResponse = AuthSignInResponse;
80
80
 
81
81
  type MessageListQueryParams = {
82
+ channelId: string;
83
+ };
84
+ type MessageListCoercedQueryParams = {
82
85
  channelId: number;
83
86
  };
84
87
  type Message = {
@@ -91,9 +94,9 @@ type Message = {
91
94
  deletedAt: Date | null;
92
95
  updatedAt: Date;
93
96
  };
94
- type MessageInputForCreate = {
97
+ type MessageCreateInput = {
95
98
  channelId: number;
96
99
  content: string;
97
100
  };
98
101
 
99
- export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type Message, type MessageInputForCreate, type MessageListQueryParams, colors, fonts };
102
+ export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type Message, type MessageCreateInput, type MessageListCoercedQueryParams, type MessageListQueryParams, colors, fonts };
package/dist/index.d.ts CHANGED
@@ -79,6 +79,9 @@ type AuthSignInRefreshRequest = {
79
79
  type AuthSignInRefreshResponse = AuthSignInResponse;
80
80
 
81
81
  type MessageListQueryParams = {
82
+ channelId: string;
83
+ };
84
+ type MessageListCoercedQueryParams = {
82
85
  channelId: number;
83
86
  };
84
87
  type Message = {
@@ -91,9 +94,9 @@ type Message = {
91
94
  deletedAt: Date | null;
92
95
  updatedAt: Date;
93
96
  };
94
- type MessageInputForCreate = {
97
+ type MessageCreateInput = {
95
98
  channelId: number;
96
99
  content: string;
97
100
  };
98
101
 
99
- export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type Message, type MessageInputForCreate, type MessageListQueryParams, colors, fonts };
102
+ export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type Message, type MessageCreateInput, type MessageListCoercedQueryParams, type MessageListQueryParams, colors, fonts };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathway-io/core",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "Shared constants and types for Pathway",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1,4 +1,8 @@
1
1
  export type MessageListQueryParams = {
2
+ channelId: string
3
+ }
4
+
5
+ export type MessageListCoercedQueryParams = {
2
6
  channelId: number
3
7
  }
4
8
 
@@ -15,7 +19,7 @@ export type Message = {
15
19
  updatedAt: Date
16
20
  }
17
21
 
18
- export type MessageInputForCreate = {
22
+ export type MessageCreateInput = {
19
23
  channelId: number
20
24
  content: string
21
25
  }