@blazeo.com/calendar-client 1.0.58 → 1.0.59
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.ts +16 -2
- package/dist/index.js +43 -22
- package/dist/index.mjs +43 -22
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -352,8 +352,22 @@ export type ActivityLogSnapshot = {
|
|
|
352
352
|
isPartialData?: boolean;
|
|
353
353
|
userEmail?: string;
|
|
354
354
|
createdOn?: string | null;
|
|
355
|
-
|
|
356
|
-
|
|
355
|
+
appointmentId?: number | null;
|
|
356
|
+
title?: string;
|
|
357
|
+
startDate?: string | null;
|
|
358
|
+
endDate?: string | null;
|
|
359
|
+
timeZone?: string;
|
|
360
|
+
source?: string;
|
|
361
|
+
meetingWith?: string;
|
|
362
|
+
handledBy?: string;
|
|
363
|
+
location?: string;
|
|
364
|
+
summary?: string;
|
|
365
|
+
transcript?: string;
|
|
366
|
+
userDefinedFields?: Record<string, unknown> | null;
|
|
367
|
+
newStartDate?: string | null;
|
|
368
|
+
newEndDate?: string | null;
|
|
369
|
+
oldStartDate?: string | null;
|
|
370
|
+
oldEndDate?: string | null;
|
|
357
371
|
};
|
|
358
372
|
|
|
359
373
|
export const ActivityLogModel: {
|
package/dist/index.js
CHANGED
|
@@ -3014,23 +3014,20 @@ var Lead_default = LeadModel;
|
|
|
3014
3014
|
|
|
3015
3015
|
// src/models/appointment/ActivityLog.js
|
|
3016
3016
|
var import_mobx_state_tree21 = require("mobx-state-tree");
|
|
3017
|
-
var ActivityLogDetailModel = import_mobx_state_tree21.types.model("ActivityLogDetail", {
|
|
3018
|
-
key: import_mobx_state_tree21.types.optional(import_mobx_state_tree21.types.string, ""),
|
|
3019
|
-
value: import_mobx_state_tree21.types.optional(import_mobx_state_tree21.types.string, "")
|
|
3020
|
-
});
|
|
3021
3017
|
function mapActivityLogFromApi(d) {
|
|
3022
3018
|
if (!d) return d;
|
|
3023
3019
|
const pick2 = (...keys) => keys.reduce((v, k) => v ?? d[k], void 0);
|
|
3024
|
-
const
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
}))
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3020
|
+
const userDefinedFieldsRaw = pick2("userDefinedFields", "UserDefinedFields");
|
|
3021
|
+
let userDefinedFields = null;
|
|
3022
|
+
if (userDefinedFieldsRaw && typeof userDefinedFieldsRaw === "object" && !Array.isArray(userDefinedFieldsRaw)) {
|
|
3023
|
+
userDefinedFields = { ...userDefinedFieldsRaw };
|
|
3024
|
+
} else if (typeof userDefinedFieldsRaw === "string" && userDefinedFieldsRaw.trim()) {
|
|
3025
|
+
try {
|
|
3026
|
+
userDefinedFields = JSON.parse(userDefinedFieldsRaw);
|
|
3027
|
+
} catch {
|
|
3028
|
+
userDefinedFields = null;
|
|
3029
|
+
}
|
|
3030
|
+
}
|
|
3034
3031
|
return {
|
|
3035
3032
|
id: pick2("id", "Id") ?? null,
|
|
3036
3033
|
activityLogId: pick2("activityLogId", "ActivityLogId", "activity_log_id") ?? "new",
|
|
@@ -3043,14 +3040,24 @@ function mapActivityLogFromApi(d) {
|
|
|
3043
3040
|
isPartialData: pick2("isPartialData", "IsPartialData", "is_partial_data") ?? false,
|
|
3044
3041
|
userEmail: pick2("userEmail", "UserEmail", "user_email") ?? "",
|
|
3045
3042
|
createdOn: pick2("createdOn", "CreatedOn", "created_on") ?? null,
|
|
3046
|
-
|
|
3047
|
-
|
|
3043
|
+
appointmentId: pick2("appointmentId", "AppointmentId", "appointment_id") ?? null,
|
|
3044
|
+
title: pick2("title", "Title") ?? "",
|
|
3045
|
+
startDate: pick2("startDate", "StartDate", "start_date") ?? null,
|
|
3046
|
+
endDate: pick2("endDate", "EndDate", "end_date") ?? null,
|
|
3047
|
+
timeZone: pick2("timeZone", "TimeZone", "time_zone") ?? "",
|
|
3048
|
+
source: pick2("source", "Source") ?? "",
|
|
3049
|
+
meetingWith: pick2("meetingWith", "MeetingWith", "meeting_with") ?? "",
|
|
3050
|
+
handledBy: pick2("handledBy", "HandledBy", "handled_by") ?? "",
|
|
3051
|
+
location: pick2("location", "Location") ?? "",
|
|
3052
|
+
summary: pick2("summary", "Summary") ?? "",
|
|
3053
|
+
transcript: pick2("transcript", "Transcript") ?? "",
|
|
3054
|
+
userDefinedFields,
|
|
3055
|
+
newStartDate: pick2("newStartDate", "NewStartDate", "new_start_date") ?? null,
|
|
3056
|
+
newEndDate: pick2("newEndDate", "NewEndDate", "new_end_date") ?? null,
|
|
3057
|
+
oldStartDate: pick2("oldStartDate", "OldStartDate", "old_start_date") ?? null,
|
|
3058
|
+
oldEndDate: pick2("oldEndDate", "OldEndDate", "old_end_date") ?? null
|
|
3048
3059
|
};
|
|
3049
3060
|
}
|
|
3050
|
-
function pickDetail(row, ...keys) {
|
|
3051
|
-
if (!row) return void 0;
|
|
3052
|
-
return keys.reduce((v, k) => v ?? row[k], void 0);
|
|
3053
|
-
}
|
|
3054
3061
|
function normalizeActivityTypeIds(raw) {
|
|
3055
3062
|
if (raw == null) return null;
|
|
3056
3063
|
const values = Array.isArray(raw) ? raw : [raw];
|
|
@@ -3132,8 +3139,22 @@ var ActivityLogModel = import_mobx_state_tree21.types.model("ActivityLog", {
|
|
|
3132
3139
|
isPartialData: import_mobx_state_tree21.types.optional(import_mobx_state_tree21.types.boolean, false),
|
|
3133
3140
|
userEmail: import_mobx_state_tree21.types.optional(import_mobx_state_tree21.types.string, ""),
|
|
3134
3141
|
createdOn: import_mobx_state_tree21.types.optional(import_mobx_state_tree21.types.maybeNull(import_mobx_state_tree21.types.string), null),
|
|
3135
|
-
|
|
3136
|
-
|
|
3142
|
+
appointmentId: import_mobx_state_tree21.types.optional(import_mobx_state_tree21.types.maybeNull(import_mobx_state_tree21.types.number), null),
|
|
3143
|
+
title: import_mobx_state_tree21.types.optional(import_mobx_state_tree21.types.string, ""),
|
|
3144
|
+
startDate: import_mobx_state_tree21.types.optional(import_mobx_state_tree21.types.maybeNull(import_mobx_state_tree21.types.string), null),
|
|
3145
|
+
endDate: import_mobx_state_tree21.types.optional(import_mobx_state_tree21.types.maybeNull(import_mobx_state_tree21.types.string), null),
|
|
3146
|
+
timeZone: import_mobx_state_tree21.types.optional(import_mobx_state_tree21.types.string, ""),
|
|
3147
|
+
source: import_mobx_state_tree21.types.optional(import_mobx_state_tree21.types.string, ""),
|
|
3148
|
+
meetingWith: import_mobx_state_tree21.types.optional(import_mobx_state_tree21.types.string, ""),
|
|
3149
|
+
handledBy: import_mobx_state_tree21.types.optional(import_mobx_state_tree21.types.string, ""),
|
|
3150
|
+
location: import_mobx_state_tree21.types.optional(import_mobx_state_tree21.types.string, ""),
|
|
3151
|
+
summary: import_mobx_state_tree21.types.optional(import_mobx_state_tree21.types.string, ""),
|
|
3152
|
+
transcript: import_mobx_state_tree21.types.optional(import_mobx_state_tree21.types.string, ""),
|
|
3153
|
+
userDefinedFields: import_mobx_state_tree21.types.optional(import_mobx_state_tree21.types.frozen(), null),
|
|
3154
|
+
newStartDate: import_mobx_state_tree21.types.optional(import_mobx_state_tree21.types.maybeNull(import_mobx_state_tree21.types.string), null),
|
|
3155
|
+
newEndDate: import_mobx_state_tree21.types.optional(import_mobx_state_tree21.types.maybeNull(import_mobx_state_tree21.types.string), null),
|
|
3156
|
+
oldStartDate: import_mobx_state_tree21.types.optional(import_mobx_state_tree21.types.maybeNull(import_mobx_state_tree21.types.string), null),
|
|
3157
|
+
oldEndDate: import_mobx_state_tree21.types.optional(import_mobx_state_tree21.types.maybeNull(import_mobx_state_tree21.types.string), null)
|
|
3137
3158
|
}).actions((self) => ({
|
|
3138
3159
|
/** GET /activitylog/get – pass companyKey in opts (required). */
|
|
3139
3160
|
async get(opts = {}) {
|
package/dist/index.mjs
CHANGED
|
@@ -2935,23 +2935,20 @@ var Lead_default = LeadModel;
|
|
|
2935
2935
|
|
|
2936
2936
|
// src/models/appointment/ActivityLog.js
|
|
2937
2937
|
import { types as types21 } from "mobx-state-tree";
|
|
2938
|
-
var ActivityLogDetailModel = types21.model("ActivityLogDetail", {
|
|
2939
|
-
key: types21.optional(types21.string, ""),
|
|
2940
|
-
value: types21.optional(types21.string, "")
|
|
2941
|
-
});
|
|
2942
2938
|
function mapActivityLogFromApi(d) {
|
|
2943
2939
|
if (!d) return d;
|
|
2944
2940
|
const pick2 = (...keys) => keys.reduce((v, k) => v ?? d[k], void 0);
|
|
2945
|
-
const
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
}))
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2941
|
+
const userDefinedFieldsRaw = pick2("userDefinedFields", "UserDefinedFields");
|
|
2942
|
+
let userDefinedFields = null;
|
|
2943
|
+
if (userDefinedFieldsRaw && typeof userDefinedFieldsRaw === "object" && !Array.isArray(userDefinedFieldsRaw)) {
|
|
2944
|
+
userDefinedFields = { ...userDefinedFieldsRaw };
|
|
2945
|
+
} else if (typeof userDefinedFieldsRaw === "string" && userDefinedFieldsRaw.trim()) {
|
|
2946
|
+
try {
|
|
2947
|
+
userDefinedFields = JSON.parse(userDefinedFieldsRaw);
|
|
2948
|
+
} catch {
|
|
2949
|
+
userDefinedFields = null;
|
|
2950
|
+
}
|
|
2951
|
+
}
|
|
2955
2952
|
return {
|
|
2956
2953
|
id: pick2("id", "Id") ?? null,
|
|
2957
2954
|
activityLogId: pick2("activityLogId", "ActivityLogId", "activity_log_id") ?? "new",
|
|
@@ -2964,14 +2961,24 @@ function mapActivityLogFromApi(d) {
|
|
|
2964
2961
|
isPartialData: pick2("isPartialData", "IsPartialData", "is_partial_data") ?? false,
|
|
2965
2962
|
userEmail: pick2("userEmail", "UserEmail", "user_email") ?? "",
|
|
2966
2963
|
createdOn: pick2("createdOn", "CreatedOn", "created_on") ?? null,
|
|
2967
|
-
|
|
2968
|
-
|
|
2964
|
+
appointmentId: pick2("appointmentId", "AppointmentId", "appointment_id") ?? null,
|
|
2965
|
+
title: pick2("title", "Title") ?? "",
|
|
2966
|
+
startDate: pick2("startDate", "StartDate", "start_date") ?? null,
|
|
2967
|
+
endDate: pick2("endDate", "EndDate", "end_date") ?? null,
|
|
2968
|
+
timeZone: pick2("timeZone", "TimeZone", "time_zone") ?? "",
|
|
2969
|
+
source: pick2("source", "Source") ?? "",
|
|
2970
|
+
meetingWith: pick2("meetingWith", "MeetingWith", "meeting_with") ?? "",
|
|
2971
|
+
handledBy: pick2("handledBy", "HandledBy", "handled_by") ?? "",
|
|
2972
|
+
location: pick2("location", "Location") ?? "",
|
|
2973
|
+
summary: pick2("summary", "Summary") ?? "",
|
|
2974
|
+
transcript: pick2("transcript", "Transcript") ?? "",
|
|
2975
|
+
userDefinedFields,
|
|
2976
|
+
newStartDate: pick2("newStartDate", "NewStartDate", "new_start_date") ?? null,
|
|
2977
|
+
newEndDate: pick2("newEndDate", "NewEndDate", "new_end_date") ?? null,
|
|
2978
|
+
oldStartDate: pick2("oldStartDate", "OldStartDate", "old_start_date") ?? null,
|
|
2979
|
+
oldEndDate: pick2("oldEndDate", "OldEndDate", "old_end_date") ?? null
|
|
2969
2980
|
};
|
|
2970
2981
|
}
|
|
2971
|
-
function pickDetail(row, ...keys) {
|
|
2972
|
-
if (!row) return void 0;
|
|
2973
|
-
return keys.reduce((v, k) => v ?? row[k], void 0);
|
|
2974
|
-
}
|
|
2975
2982
|
function normalizeActivityTypeIds(raw) {
|
|
2976
2983
|
if (raw == null) return null;
|
|
2977
2984
|
const values = Array.isArray(raw) ? raw : [raw];
|
|
@@ -3053,8 +3060,22 @@ var ActivityLogModel = types21.model("ActivityLog", {
|
|
|
3053
3060
|
isPartialData: types21.optional(types21.boolean, false),
|
|
3054
3061
|
userEmail: types21.optional(types21.string, ""),
|
|
3055
3062
|
createdOn: types21.optional(types21.maybeNull(types21.string), null),
|
|
3056
|
-
|
|
3057
|
-
|
|
3063
|
+
appointmentId: types21.optional(types21.maybeNull(types21.number), null),
|
|
3064
|
+
title: types21.optional(types21.string, ""),
|
|
3065
|
+
startDate: types21.optional(types21.maybeNull(types21.string), null),
|
|
3066
|
+
endDate: types21.optional(types21.maybeNull(types21.string), null),
|
|
3067
|
+
timeZone: types21.optional(types21.string, ""),
|
|
3068
|
+
source: types21.optional(types21.string, ""),
|
|
3069
|
+
meetingWith: types21.optional(types21.string, ""),
|
|
3070
|
+
handledBy: types21.optional(types21.string, ""),
|
|
3071
|
+
location: types21.optional(types21.string, ""),
|
|
3072
|
+
summary: types21.optional(types21.string, ""),
|
|
3073
|
+
transcript: types21.optional(types21.string, ""),
|
|
3074
|
+
userDefinedFields: types21.optional(types21.frozen(), null),
|
|
3075
|
+
newStartDate: types21.optional(types21.maybeNull(types21.string), null),
|
|
3076
|
+
newEndDate: types21.optional(types21.maybeNull(types21.string), null),
|
|
3077
|
+
oldStartDate: types21.optional(types21.maybeNull(types21.string), null),
|
|
3078
|
+
oldEndDate: types21.optional(types21.maybeNull(types21.string), null)
|
|
3058
3079
|
}).actions((self) => ({
|
|
3059
3080
|
/** GET /activitylog/get – pass companyKey in opts (required). */
|
|
3060
3081
|
async get(opts = {}) {
|