@juhuu/sdk-ts 1.2.30 → 1.2.31
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 +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +11 -0
- package/dist/index.mjs +11 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -715,6 +715,7 @@ declare class ChatsService extends Service {
|
|
715
715
|
retrieve(ChatRetrieveParams: JUHUU.Chat.Retrieve.Params, ChatRetrieveOptions?: JUHUU.Chat.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Retrieve.Response>>;
|
716
716
|
update(ChatUpdateParams: JUHUU.Chat.Update.Params, ChatUpdateOptions?: JUHUU.Chat.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Update.Response>>;
|
717
717
|
delete(ChatDeleteParams: JUHUU.Chat.Delete.Params, ChatDeleteOptions?: JUHUU.Chat.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Delete.Response>>;
|
718
|
+
complete(ChatUpdateParams: JUHUU.Chat.Complete.Params, ChatUpdateOptions?: JUHUU.Chat.Complete.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Complete.Response>>;
|
718
719
|
}
|
719
720
|
|
720
721
|
declare class ChatMessagesService extends Service {
|
@@ -1218,7 +1219,7 @@ declare namespace JUHUU {
|
|
1218
1219
|
readonly object: "chat";
|
1219
1220
|
title: string | null;
|
1220
1221
|
userId: string;
|
1221
|
-
lastMessageAt:
|
1222
|
+
lastMessageAt: Date | null;
|
1222
1223
|
};
|
1223
1224
|
namespace Create {
|
1224
1225
|
type Params = {
|
@@ -1269,6 +1270,16 @@ declare namespace JUHUU {
|
|
1269
1270
|
type Options = JUHUU.RequestOptions;
|
1270
1271
|
type Response = JUHUU.Chat.Object[];
|
1271
1272
|
}
|
1273
|
+
namespace Complete {
|
1274
|
+
type Params = {
|
1275
|
+
chatId: string;
|
1276
|
+
};
|
1277
|
+
type Options = JUHUU.RequestOptions;
|
1278
|
+
type Response = {
|
1279
|
+
chat: JUHUU.Chat.Object;
|
1280
|
+
chatMessageArray: JUHUU.ChatMessage.Object[];
|
1281
|
+
};
|
1282
|
+
}
|
1272
1283
|
}
|
1273
1284
|
namespace ChatMessage {
|
1274
1285
|
type Base = {
|
package/dist/index.d.ts
CHANGED
@@ -715,6 +715,7 @@ declare class ChatsService extends Service {
|
|
715
715
|
retrieve(ChatRetrieveParams: JUHUU.Chat.Retrieve.Params, ChatRetrieveOptions?: JUHUU.Chat.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Retrieve.Response>>;
|
716
716
|
update(ChatUpdateParams: JUHUU.Chat.Update.Params, ChatUpdateOptions?: JUHUU.Chat.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Update.Response>>;
|
717
717
|
delete(ChatDeleteParams: JUHUU.Chat.Delete.Params, ChatDeleteOptions?: JUHUU.Chat.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Delete.Response>>;
|
718
|
+
complete(ChatUpdateParams: JUHUU.Chat.Complete.Params, ChatUpdateOptions?: JUHUU.Chat.Complete.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Complete.Response>>;
|
718
719
|
}
|
719
720
|
|
720
721
|
declare class ChatMessagesService extends Service {
|
@@ -1218,7 +1219,7 @@ declare namespace JUHUU {
|
|
1218
1219
|
readonly object: "chat";
|
1219
1220
|
title: string | null;
|
1220
1221
|
userId: string;
|
1221
|
-
lastMessageAt:
|
1222
|
+
lastMessageAt: Date | null;
|
1222
1223
|
};
|
1223
1224
|
namespace Create {
|
1224
1225
|
type Params = {
|
@@ -1269,6 +1270,16 @@ declare namespace JUHUU {
|
|
1269
1270
|
type Options = JUHUU.RequestOptions;
|
1270
1271
|
type Response = JUHUU.Chat.Object[];
|
1271
1272
|
}
|
1273
|
+
namespace Complete {
|
1274
|
+
type Params = {
|
1275
|
+
chatId: string;
|
1276
|
+
};
|
1277
|
+
type Options = JUHUU.RequestOptions;
|
1278
|
+
type Response = {
|
1279
|
+
chat: JUHUU.Chat.Object;
|
1280
|
+
chatMessageArray: JUHUU.ChatMessage.Object[];
|
1281
|
+
};
|
1282
|
+
}
|
1272
1283
|
}
|
1273
1284
|
namespace ChatMessage {
|
1274
1285
|
type Base = {
|
package/dist/index.js
CHANGED
@@ -1650,6 +1650,17 @@ var ChatsService = class extends Service {
|
|
1650
1650
|
ChatDeleteOptions
|
1651
1651
|
);
|
1652
1652
|
}
|
1653
|
+
async complete(ChatUpdateParams, ChatUpdateOptions) {
|
1654
|
+
return await super.sendRequest(
|
1655
|
+
{
|
1656
|
+
method: "PATCH",
|
1657
|
+
url: "chats/" + ChatUpdateParams.chatId + "/complete",
|
1658
|
+
body: void 0,
|
1659
|
+
useAuthentication: true
|
1660
|
+
},
|
1661
|
+
ChatUpdateOptions
|
1662
|
+
);
|
1663
|
+
}
|
1653
1664
|
};
|
1654
1665
|
|
1655
1666
|
// src/chatMessages/chatMessages.service.ts
|
package/dist/index.mjs
CHANGED
@@ -1605,6 +1605,17 @@ var ChatsService = class extends Service {
|
|
1605
1605
|
ChatDeleteOptions
|
1606
1606
|
);
|
1607
1607
|
}
|
1608
|
+
async complete(ChatUpdateParams, ChatUpdateOptions) {
|
1609
|
+
return await super.sendRequest(
|
1610
|
+
{
|
1611
|
+
method: "PATCH",
|
1612
|
+
url: "chats/" + ChatUpdateParams.chatId + "/complete",
|
1613
|
+
body: void 0,
|
1614
|
+
useAuthentication: true
|
1615
|
+
},
|
1616
|
+
ChatUpdateOptions
|
1617
|
+
);
|
1618
|
+
}
|
1608
1619
|
};
|
1609
1620
|
|
1610
1621
|
// src/chatMessages/chatMessages.service.ts
|