@juhuu/sdk-ts 1.2.187 → 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 +11 -5
- package/dist/index.d.ts +11 -5
- package/dist/index.js +14 -9
- package/dist/index.mjs +14 -9
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -216,6 +216,7 @@ interface Party extends Person {
|
|
216
216
|
}
|
217
217
|
type TaxCode = {
|
218
218
|
code: string;
|
219
|
+
verified: boolean;
|
219
220
|
type: "VAT" | "GST" | "CNPJ" | "ABN" | "TIN";
|
220
221
|
countryCode: CountryCode;
|
221
222
|
};
|
@@ -1036,6 +1037,7 @@ declare namespace JUHUU {
|
|
1036
1037
|
createdAt: Date;
|
1037
1038
|
terminatedAt: Date | null;
|
1038
1039
|
terminatedBy: string | null;
|
1040
|
+
terminatedByUserId: string | null;
|
1039
1041
|
scheduledTerminationAt: Date;
|
1040
1042
|
scheduledTerminationHandler: "cloudFunction" | "cloudTask";
|
1041
1043
|
reminderEnabled: boolean | null;
|
@@ -1919,12 +1921,10 @@ declare namespace JUHUU {
|
|
1919
1921
|
id: string;
|
1920
1922
|
readonly object: "chatMessage";
|
1921
1923
|
createdAt: Date;
|
1924
|
+
message: string;
|
1925
|
+
imageArray: string;
|
1922
1926
|
chatId: string;
|
1923
|
-
originalMessage: string;
|
1924
|
-
translatedMessage: string;
|
1925
|
-
languageCode: LanguageCode;
|
1926
1927
|
context: {
|
1927
|
-
imageArray?: string[];
|
1928
1928
|
articleIdArray?: string[];
|
1929
1929
|
ownerPropertyId?: string;
|
1930
1930
|
userName?: string;
|
@@ -1932,10 +1932,15 @@ declare namespace JUHUU {
|
|
1932
1932
|
platform?: Platform;
|
1933
1933
|
frontend?: Frontend;
|
1934
1934
|
} | null;
|
1935
|
+
deleted: boolean;
|
1936
|
+
edited: boolean;
|
1935
1937
|
};
|
1936
1938
|
export interface UserChatMessage extends Base {
|
1937
1939
|
type: "user";
|
1938
|
-
|
1940
|
+
user: {
|
1941
|
+
id: string;
|
1942
|
+
name: string;
|
1943
|
+
};
|
1939
1944
|
}
|
1940
1945
|
export interface AiChatMessage extends Base {
|
1941
1946
|
type: "ai";
|
@@ -3221,6 +3226,7 @@ declare namespace JUHUU {
|
|
3221
3226
|
export namespace List {
|
3222
3227
|
type Params = {
|
3223
3228
|
propertyId?: string;
|
3229
|
+
statusArray?: JUHUU.Incident.Object["status"][];
|
3224
3230
|
};
|
3225
3231
|
type Options = {
|
3226
3232
|
limit?: number;
|
package/dist/index.d.ts
CHANGED
@@ -216,6 +216,7 @@ interface Party extends Person {
|
|
216
216
|
}
|
217
217
|
type TaxCode = {
|
218
218
|
code: string;
|
219
|
+
verified: boolean;
|
219
220
|
type: "VAT" | "GST" | "CNPJ" | "ABN" | "TIN";
|
220
221
|
countryCode: CountryCode;
|
221
222
|
};
|
@@ -1036,6 +1037,7 @@ declare namespace JUHUU {
|
|
1036
1037
|
createdAt: Date;
|
1037
1038
|
terminatedAt: Date | null;
|
1038
1039
|
terminatedBy: string | null;
|
1040
|
+
terminatedByUserId: string | null;
|
1039
1041
|
scheduledTerminationAt: Date;
|
1040
1042
|
scheduledTerminationHandler: "cloudFunction" | "cloudTask";
|
1041
1043
|
reminderEnabled: boolean | null;
|
@@ -1919,12 +1921,10 @@ declare namespace JUHUU {
|
|
1919
1921
|
id: string;
|
1920
1922
|
readonly object: "chatMessage";
|
1921
1923
|
createdAt: Date;
|
1924
|
+
message: string;
|
1925
|
+
imageArray: string;
|
1922
1926
|
chatId: string;
|
1923
|
-
originalMessage: string;
|
1924
|
-
translatedMessage: string;
|
1925
|
-
languageCode: LanguageCode;
|
1926
1927
|
context: {
|
1927
|
-
imageArray?: string[];
|
1928
1928
|
articleIdArray?: string[];
|
1929
1929
|
ownerPropertyId?: string;
|
1930
1930
|
userName?: string;
|
@@ -1932,10 +1932,15 @@ declare namespace JUHUU {
|
|
1932
1932
|
platform?: Platform;
|
1933
1933
|
frontend?: Frontend;
|
1934
1934
|
} | null;
|
1935
|
+
deleted: boolean;
|
1936
|
+
edited: boolean;
|
1935
1937
|
};
|
1936
1938
|
export interface UserChatMessage extends Base {
|
1937
1939
|
type: "user";
|
1938
|
-
|
1940
|
+
user: {
|
1941
|
+
id: string;
|
1942
|
+
name: string;
|
1943
|
+
};
|
1939
1944
|
}
|
1940
1945
|
export interface AiChatMessage extends Base {
|
1941
1946
|
type: "ai";
|
@@ -3221,6 +3226,7 @@ declare namespace JUHUU {
|
|
3221
3226
|
export namespace List {
|
3222
3227
|
type Params = {
|
3223
3228
|
propertyId?: string;
|
3229
|
+
statusArray?: JUHUU.Incident.Object["status"][];
|
3224
3230
|
};
|
3225
3231
|
type Options = {
|
3226
3232
|
limit?: number;
|
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
|
-
|
2500
|
-
|
2501
|
-
|
2502
|
-
|
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(
|
@@ -3156,6 +3156,11 @@ var IncidentsService = class extends Service {
|
|
3156
3156
|
if (IncidentListParams?.propertyId !== void 0) {
|
3157
3157
|
queryArray.push("propertyId=" + IncidentListParams.propertyId);
|
3158
3158
|
}
|
3159
|
+
if (IncidentListParams.statusArray !== void 0) {
|
3160
|
+
queryArray.push(
|
3161
|
+
"statusArray=" + IncidentListParams.statusArray.join(",")
|
3162
|
+
);
|
3163
|
+
}
|
3159
3164
|
if (IncidentListOptions?.skip !== void 0) {
|
3160
3165
|
queryArray.push("skip=" + IncidentListOptions.skip);
|
3161
3166
|
}
|
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
|
-
|
2456
|
-
|
2457
|
-
|
2458
|
-
|
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(
|
@@ -3112,6 +3112,11 @@ var IncidentsService = class extends Service {
|
|
3112
3112
|
if (IncidentListParams?.propertyId !== void 0) {
|
3113
3113
|
queryArray.push("propertyId=" + IncidentListParams.propertyId);
|
3114
3114
|
}
|
3115
|
+
if (IncidentListParams.statusArray !== void 0) {
|
3116
|
+
queryArray.push(
|
3117
|
+
"statusArray=" + IncidentListParams.statusArray.join(",")
|
3118
|
+
);
|
3119
|
+
}
|
3115
3120
|
if (IncidentListOptions?.skip !== void 0) {
|
3116
3121
|
queryArray.push("skip=" + IncidentListOptions.skip);
|
3117
3122
|
}
|