@juhuu/sdk-ts 1.2.30 → 1.2.32

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
@@ -702,6 +702,7 @@ declare class LicenseTemplatesService extends Service {
702
702
 
703
703
  declare class ArticlesService extends Service {
704
704
  constructor(config: JUHUU.SetupConfig);
705
+ create(ArticleCreateParams: JUHUU.Article.Create.Params, ArticleCreateOptions?: JUHUU.Article.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Create.Response>>;
705
706
  list(ArticleListParams: JUHUU.Article.List.Params, ArticleListOptions?: JUHUU.Article.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.List.Response>>;
706
707
  retrieve(ArticleRetrieveParams: JUHUU.Article.Retrieve.Params, ArticleRetrieveOptions?: JUHUU.Article.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Retrieve.Response>>;
707
708
  update(ArticleUpdateParams: JUHUU.Article.Update.Params, ArticleUpdateOptions?: JUHUU.Article.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Update.Response>>;
@@ -715,6 +716,7 @@ declare class ChatsService extends Service {
715
716
  retrieve(ChatRetrieveParams: JUHUU.Chat.Retrieve.Params, ChatRetrieveOptions?: JUHUU.Chat.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Retrieve.Response>>;
716
717
  update(ChatUpdateParams: JUHUU.Chat.Update.Params, ChatUpdateOptions?: JUHUU.Chat.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Update.Response>>;
717
718
  delete(ChatDeleteParams: JUHUU.Chat.Delete.Params, ChatDeleteOptions?: JUHUU.Chat.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Delete.Response>>;
719
+ complete(ChatUpdateParams: JUHUU.Chat.Complete.Params, ChatUpdateOptions?: JUHUU.Chat.Complete.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Complete.Response>>;
718
720
  }
719
721
 
720
722
  declare class ChatMessagesService extends Service {
@@ -1156,12 +1158,21 @@ declare namespace JUHUU {
1156
1158
  readonly object: "article";
1157
1159
  title: LocaleString;
1158
1160
  subtitle: LocaleString;
1159
- propertyId: string | null;
1161
+ propertyId: string;
1160
1162
  parentArticleId: string | null;
1161
- slug: string;
1163
+ slug: string | null;
1162
1164
  markdownContent: LocaleString;
1163
1165
  status: "draft" | "published";
1164
1166
  };
1167
+ namespace Create {
1168
+ type Params = {
1169
+ propertyId: string;
1170
+ };
1171
+ type Options = JUHUU.RequestOptions;
1172
+ type Response = {
1173
+ article: JUHUU.Article.Object;
1174
+ };
1175
+ }
1165
1176
  namespace Retrieve {
1166
1177
  type Params = {
1167
1178
  articleId: string;
@@ -1218,7 +1229,7 @@ declare namespace JUHUU {
1218
1229
  readonly object: "chat";
1219
1230
  title: string | null;
1220
1231
  userId: string;
1221
- lastMessageAt: string | null;
1232
+ lastMessageAt: Date | null;
1222
1233
  };
1223
1234
  namespace Create {
1224
1235
  type Params = {
@@ -1269,6 +1280,16 @@ declare namespace JUHUU {
1269
1280
  type Options = JUHUU.RequestOptions;
1270
1281
  type Response = JUHUU.Chat.Object[];
1271
1282
  }
1283
+ namespace Complete {
1284
+ type Params = {
1285
+ chatId: string;
1286
+ };
1287
+ type Options = JUHUU.RequestOptions;
1288
+ type Response = {
1289
+ chat: JUHUU.Chat.Object;
1290
+ chatMessageArray: JUHUU.ChatMessage.Object[];
1291
+ };
1292
+ }
1272
1293
  }
1273
1294
  namespace ChatMessage {
1274
1295
  type Base = {
package/dist/index.d.ts CHANGED
@@ -702,6 +702,7 @@ declare class LicenseTemplatesService extends Service {
702
702
 
703
703
  declare class ArticlesService extends Service {
704
704
  constructor(config: JUHUU.SetupConfig);
705
+ create(ArticleCreateParams: JUHUU.Article.Create.Params, ArticleCreateOptions?: JUHUU.Article.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Create.Response>>;
705
706
  list(ArticleListParams: JUHUU.Article.List.Params, ArticleListOptions?: JUHUU.Article.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.List.Response>>;
706
707
  retrieve(ArticleRetrieveParams: JUHUU.Article.Retrieve.Params, ArticleRetrieveOptions?: JUHUU.Article.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Retrieve.Response>>;
707
708
  update(ArticleUpdateParams: JUHUU.Article.Update.Params, ArticleUpdateOptions?: JUHUU.Article.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Article.Update.Response>>;
@@ -715,6 +716,7 @@ declare class ChatsService extends Service {
715
716
  retrieve(ChatRetrieveParams: JUHUU.Chat.Retrieve.Params, ChatRetrieveOptions?: JUHUU.Chat.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Retrieve.Response>>;
716
717
  update(ChatUpdateParams: JUHUU.Chat.Update.Params, ChatUpdateOptions?: JUHUU.Chat.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Update.Response>>;
717
718
  delete(ChatDeleteParams: JUHUU.Chat.Delete.Params, ChatDeleteOptions?: JUHUU.Chat.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Delete.Response>>;
719
+ complete(ChatUpdateParams: JUHUU.Chat.Complete.Params, ChatUpdateOptions?: JUHUU.Chat.Complete.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Complete.Response>>;
718
720
  }
719
721
 
720
722
  declare class ChatMessagesService extends Service {
@@ -1156,12 +1158,21 @@ declare namespace JUHUU {
1156
1158
  readonly object: "article";
1157
1159
  title: LocaleString;
1158
1160
  subtitle: LocaleString;
1159
- propertyId: string | null;
1161
+ propertyId: string;
1160
1162
  parentArticleId: string | null;
1161
- slug: string;
1163
+ slug: string | null;
1162
1164
  markdownContent: LocaleString;
1163
1165
  status: "draft" | "published";
1164
1166
  };
1167
+ namespace Create {
1168
+ type Params = {
1169
+ propertyId: string;
1170
+ };
1171
+ type Options = JUHUU.RequestOptions;
1172
+ type Response = {
1173
+ article: JUHUU.Article.Object;
1174
+ };
1175
+ }
1165
1176
  namespace Retrieve {
1166
1177
  type Params = {
1167
1178
  articleId: string;
@@ -1218,7 +1229,7 @@ declare namespace JUHUU {
1218
1229
  readonly object: "chat";
1219
1230
  title: string | null;
1220
1231
  userId: string;
1221
- lastMessageAt: string | null;
1232
+ lastMessageAt: Date | null;
1222
1233
  };
1223
1234
  namespace Create {
1224
1235
  type Params = {
@@ -1269,6 +1280,16 @@ declare namespace JUHUU {
1269
1280
  type Options = JUHUU.RequestOptions;
1270
1281
  type Response = JUHUU.Chat.Object[];
1271
1282
  }
1283
+ namespace Complete {
1284
+ type Params = {
1285
+ chatId: string;
1286
+ };
1287
+ type Options = JUHUU.RequestOptions;
1288
+ type Response = {
1289
+ chat: JUHUU.Chat.Object;
1290
+ chatMessageArray: JUHUU.ChatMessage.Object[];
1291
+ };
1292
+ }
1272
1293
  }
1273
1294
  namespace ChatMessage {
1274
1295
  type Base = {
package/dist/index.js CHANGED
@@ -1503,6 +1503,19 @@ var ArticlesService = class extends Service {
1503
1503
  constructor(config) {
1504
1504
  super(config);
1505
1505
  }
1506
+ async create(ArticleCreateParams, ArticleCreateOptions) {
1507
+ return await super.sendRequest(
1508
+ {
1509
+ method: "POST",
1510
+ url: "articles",
1511
+ body: {
1512
+ propertyId: ArticleCreateParams.propertyId
1513
+ },
1514
+ useAuthentication: true
1515
+ },
1516
+ ArticleCreateOptions
1517
+ );
1518
+ }
1506
1519
  async list(ArticleListParams, ArticleListOptions) {
1507
1520
  const queryArray = [];
1508
1521
  if (ArticleListOptions?.limit !== void 0) {
@@ -1650,6 +1663,17 @@ var ChatsService = class extends Service {
1650
1663
  ChatDeleteOptions
1651
1664
  );
1652
1665
  }
1666
+ async complete(ChatUpdateParams, ChatUpdateOptions) {
1667
+ return await super.sendRequest(
1668
+ {
1669
+ method: "PATCH",
1670
+ url: "chats/" + ChatUpdateParams.chatId + "/complete",
1671
+ body: void 0,
1672
+ useAuthentication: true
1673
+ },
1674
+ ChatUpdateOptions
1675
+ );
1676
+ }
1653
1677
  };
1654
1678
 
1655
1679
  // src/chatMessages/chatMessages.service.ts
package/dist/index.mjs CHANGED
@@ -1458,6 +1458,19 @@ var ArticlesService = class extends Service {
1458
1458
  constructor(config) {
1459
1459
  super(config);
1460
1460
  }
1461
+ async create(ArticleCreateParams, ArticleCreateOptions) {
1462
+ return await super.sendRequest(
1463
+ {
1464
+ method: "POST",
1465
+ url: "articles",
1466
+ body: {
1467
+ propertyId: ArticleCreateParams.propertyId
1468
+ },
1469
+ useAuthentication: true
1470
+ },
1471
+ ArticleCreateOptions
1472
+ );
1473
+ }
1461
1474
  async list(ArticleListParams, ArticleListOptions) {
1462
1475
  const queryArray = [];
1463
1476
  if (ArticleListOptions?.limit !== void 0) {
@@ -1605,6 +1618,17 @@ var ChatsService = class extends Service {
1605
1618
  ChatDeleteOptions
1606
1619
  );
1607
1620
  }
1621
+ async complete(ChatUpdateParams, ChatUpdateOptions) {
1622
+ return await super.sendRequest(
1623
+ {
1624
+ method: "PATCH",
1625
+ url: "chats/" + ChatUpdateParams.chatId + "/complete",
1626
+ body: void 0,
1627
+ useAuthentication: true
1628
+ },
1629
+ ChatUpdateOptions
1630
+ );
1631
+ }
1608
1632
  };
1609
1633
 
1610
1634
  // src/chatMessages/chatMessages.service.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.30",
3
+ "version": "1.2.32",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",