@juhuu/sdk-ts 1.2.188 → 1.2.189

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
@@ -1921,12 +1921,10 @@ declare namespace JUHUU {
1921
1921
  id: string;
1922
1922
  readonly object: "chatMessage";
1923
1923
  createdAt: Date;
1924
+ message: string;
1925
+ imageArray: string;
1924
1926
  chatId: string;
1925
- originalMessage: string;
1926
- translatedMessage: string;
1927
- languageCode: LanguageCode;
1928
1927
  context: {
1929
- imageArray?: string[];
1930
1928
  articleIdArray?: string[];
1931
1929
  ownerPropertyId?: string;
1932
1930
  userName?: string;
@@ -1934,10 +1932,15 @@ declare namespace JUHUU {
1934
1932
  platform?: Platform;
1935
1933
  frontend?: Frontend;
1936
1934
  } | null;
1935
+ deleted: boolean;
1936
+ edited: boolean;
1937
1937
  };
1938
1938
  export interface UserChatMessage extends Base {
1939
1939
  type: "user";
1940
- userId: string;
1940
+ user: {
1941
+ id: string;
1942
+ name: string;
1943
+ };
1941
1944
  }
1942
1945
  export interface AiChatMessage extends Base {
1943
1946
  type: "ai";
package/dist/index.d.ts CHANGED
@@ -1921,12 +1921,10 @@ declare namespace JUHUU {
1921
1921
  id: string;
1922
1922
  readonly object: "chatMessage";
1923
1923
  createdAt: Date;
1924
+ message: string;
1925
+ imageArray: string;
1924
1926
  chatId: string;
1925
- originalMessage: string;
1926
- translatedMessage: string;
1927
- languageCode: LanguageCode;
1928
1927
  context: {
1929
- imageArray?: string[];
1930
1928
  articleIdArray?: string[];
1931
1929
  ownerPropertyId?: string;
1932
1930
  userName?: string;
@@ -1934,10 +1932,15 @@ declare namespace JUHUU {
1934
1932
  platform?: Platform;
1935
1933
  frontend?: Frontend;
1936
1934
  } | null;
1935
+ deleted: boolean;
1936
+ edited: boolean;
1937
1937
  };
1938
1938
  export interface UserChatMessage extends Base {
1939
1939
  type: "user";
1940
- userId: string;
1940
+ user: {
1941
+ id: string;
1942
+ name: string;
1943
+ };
1941
1944
  }
1942
1945
  export interface AiChatMessage extends Base {
1943
1946
  type: "ai";
package/dist/index.js CHANGED
@@ -2471,9 +2471,6 @@ var ChatMessagesService = class extends Service {
2471
2471
  }
2472
2472
  async list(ChatMessageListParams, ChatMessageListOptions) {
2473
2473
  const queryArray = [];
2474
- if (ChatMessageListParams.userId !== void 0) {
2475
- queryArray.push("userId=" + ChatMessageListParams.userId);
2476
- }
2477
2474
  if (ChatMessageListParams.chatId !== void 0) {
2478
2475
  queryArray.push("chatId=" + ChatMessageListParams.chatId);
2479
2476
  }
@@ -2495,12 +2492,15 @@ var ChatMessagesService = class extends Service {
2495
2492
  }
2496
2493
  async retrieve(ChatMessageRetrieveParams, ChatMessageRetrieveOptions) {
2497
2494
  const queryArray = [];
2498
- return await super.sendRequest({
2499
- method: "GET",
2500
- url: "chatMessages/" + ChatMessageRetrieveParams.chatMessageId + "?" + queryArray.join("&"),
2501
- body: void 0,
2502
- authenticationNotOptional: true
2503
- });
2495
+ return await super.sendRequest(
2496
+ {
2497
+ method: "GET",
2498
+ url: "chatMessages/" + ChatMessageRetrieveParams.chatMessageId + "?" + queryArray.join("&"),
2499
+ body: void 0,
2500
+ authenticationNotOptional: true
2501
+ },
2502
+ ChatMessageRetrieveOptions
2503
+ );
2504
2504
  }
2505
2505
  async update(ChatMessageUpdateParams, ChatMessageUpdateOptions) {
2506
2506
  return await super.sendRequest(
package/dist/index.mjs CHANGED
@@ -2427,9 +2427,6 @@ var ChatMessagesService = class extends Service {
2427
2427
  }
2428
2428
  async list(ChatMessageListParams, ChatMessageListOptions) {
2429
2429
  const queryArray = [];
2430
- if (ChatMessageListParams.userId !== void 0) {
2431
- queryArray.push("userId=" + ChatMessageListParams.userId);
2432
- }
2433
2430
  if (ChatMessageListParams.chatId !== void 0) {
2434
2431
  queryArray.push("chatId=" + ChatMessageListParams.chatId);
2435
2432
  }
@@ -2451,12 +2448,15 @@ var ChatMessagesService = class extends Service {
2451
2448
  }
2452
2449
  async retrieve(ChatMessageRetrieveParams, ChatMessageRetrieveOptions) {
2453
2450
  const queryArray = [];
2454
- return await super.sendRequest({
2455
- method: "GET",
2456
- url: "chatMessages/" + ChatMessageRetrieveParams.chatMessageId + "?" + queryArray.join("&"),
2457
- body: void 0,
2458
- authenticationNotOptional: true
2459
- });
2451
+ return await super.sendRequest(
2452
+ {
2453
+ method: "GET",
2454
+ url: "chatMessages/" + ChatMessageRetrieveParams.chatMessageId + "?" + queryArray.join("&"),
2455
+ body: void 0,
2456
+ authenticationNotOptional: true
2457
+ },
2458
+ ChatMessageRetrieveOptions
2459
+ );
2460
2460
  }
2461
2461
  async update(ChatMessageUpdateParams, ChatMessageUpdateOptions) {
2462
2462
  return await super.sendRequest(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.188",
3
+ "version": "1.2.189",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",