@leadping/sdk 1.0.106 → 1.0.107

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.
Files changed (33) hide show
  1. package/dist/appointments/index.d.ts +80 -0
  2. package/dist/appointments/index.d.ts.map +1 -0
  3. package/dist/appointments/index.js +54 -0
  4. package/dist/appointments/index.js.map +1 -0
  5. package/dist/appointments/item/cancel/index.d.ts +33 -0
  6. package/dist/appointments/item/cancel/index.d.ts.map +1 -0
  7. package/dist/appointments/item/cancel/index.js +31 -0
  8. package/dist/appointments/item/cancel/index.js.map +1 -0
  9. package/dist/appointments/item/complete/index.d.ts +33 -0
  10. package/dist/appointments/item/complete/index.d.ts.map +1 -0
  11. package/dist/appointments/item/complete/index.js +31 -0
  12. package/dist/appointments/item/complete/index.js.map +1 -0
  13. package/dist/appointments/item/dismiss/index.d.ts +33 -0
  14. package/dist/appointments/item/dismiss/index.d.ts.map +1 -0
  15. package/dist/appointments/item/dismiss/index.js +31 -0
  16. package/dist/appointments/item/dismiss/index.js.map +1 -0
  17. package/dist/appointments/item/index.d.ts +72 -0
  18. package/dist/appointments/item/index.d.ts.map +1 -0
  19. package/dist/appointments/item/index.js +67 -0
  20. package/dist/appointments/item/index.js.map +1 -0
  21. package/dist/appointments/item/snooze/index.d.ts +33 -0
  22. package/dist/appointments/item/snooze/index.d.ts.map +1 -0
  23. package/dist/appointments/item/snooze/index.js +31 -0
  24. package/dist/appointments/item/snooze/index.js.map +1 -0
  25. package/dist/leadpingOpenApiClient.d.ts +5 -0
  26. package/dist/leadpingOpenApiClient.d.ts.map +1 -1
  27. package/dist/leadpingOpenApiClient.js +6 -0
  28. package/dist/leadpingOpenApiClient.js.map +1 -1
  29. package/dist/models/index.d.ts +284 -1
  30. package/dist/models/index.d.ts.map +1 -1
  31. package/dist/models/index.js +223 -0
  32. package/dist/models/index.js.map +1 -1
  33. package/package.json +1 -1
@@ -84,6 +84,42 @@ export function createAnalyticsTrendPointOfdecimalFromDiscriminatorValue(parseNo
84
84
  export function createAnalyticsTrendPointOfintFromDiscriminatorValue(parseNode) {
85
85
  return deserializeIntoAnalyticsTrendPointOfint;
86
86
  }
87
+ /**
88
+ * Creates a new instance of the appropriate class based on discriminator value
89
+ * @param parseNode The parse node to use to read the discriminator value and create the object
90
+ * @returns {AppointmentActionRequest}
91
+ */
92
+ // @ts-ignore
93
+ export function createAppointmentActionRequestFromDiscriminatorValue(parseNode) {
94
+ return deserializeIntoAppointmentActionRequest;
95
+ }
96
+ /**
97
+ * Creates a new instance of the appropriate class based on discriminator value
98
+ * @param parseNode The parse node to use to read the discriminator value and create the object
99
+ * @returns {AppointmentActivity}
100
+ */
101
+ // @ts-ignore
102
+ export function createAppointmentActivityFromDiscriminatorValue(parseNode) {
103
+ return deserializeIntoAppointmentActivity;
104
+ }
105
+ /**
106
+ * Creates a new instance of the appropriate class based on discriminator value
107
+ * @param parseNode The parse node to use to read the discriminator value and create the object
108
+ * @returns {AppointmentRequest}
109
+ */
110
+ // @ts-ignore
111
+ export function createAppointmentRequestFromDiscriminatorValue(parseNode) {
112
+ return deserializeIntoAppointmentRequest;
113
+ }
114
+ /**
115
+ * Creates a new instance of the appropriate class based on discriminator value
116
+ * @param parseNode The parse node to use to read the discriminator value and create the object
117
+ * @returns {AppointmentResponse}
118
+ */
119
+ // @ts-ignore
120
+ export function createAppointmentResponseFromDiscriminatorValue(parseNode) {
121
+ return deserializeIntoAppointmentResponse;
122
+ }
87
123
  /**
88
124
  * Creates a new instance of the appropriate class based on discriminator value
89
125
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2955,6 +2991,87 @@ export function deserializeIntoAnalyticsTrendPointOfint(analyticsTrendPointOfint
2955
2991
  "value": n => { analyticsTrendPointOfint.value = n.getNumberValue(); },
2956
2992
  };
2957
2993
  }
2994
+ /**
2995
+ * The deserialization information for the current model
2996
+ * @param AppointmentActionRequest The instance to deserialize into.
2997
+ * @returns {Record<string, (node: ParseNode) => void>}
2998
+ */
2999
+ // @ts-ignore
3000
+ export function deserializeIntoAppointmentActionRequest(appointmentActionRequest = {}) {
3001
+ return {
3002
+ "expectedRevision": n => { appointmentActionRequest.expectedRevision = n.getNumberValue(); },
3003
+ };
3004
+ }
3005
+ /**
3006
+ * The deserialization information for the current model
3007
+ * @param AppointmentActivity The instance to deserialize into.
3008
+ * @returns {Record<string, (node: ParseNode) => void>}
3009
+ */
3010
+ // @ts-ignore
3011
+ export function deserializeIntoAppointmentActivity(appointmentActivity = {}) {
3012
+ return {
3013
+ "actorId": n => { appointmentActivity.actorId = n.getStringValue(); },
3014
+ "actorName": n => { appointmentActivity.actorName = n.getStringValue(); },
3015
+ "assignedToName": n => { appointmentActivity.assignedToName = n.getStringValue(); },
3016
+ "at": n => { appointmentActivity.at = n.getDateValue(); },
3017
+ "notes": n => { appointmentActivity.notes = n.getStringValue(); },
3018
+ "reminderAt": n => { appointmentActivity.reminderAt = n.getDateValue(); },
3019
+ "revision": n => { appointmentActivity.revision = n.getNumberValue(); },
3020
+ "startAt": n => { appointmentActivity.startAt = n.getDateValue(); },
3021
+ "title": n => { appointmentActivity.title = n.getStringValue(); },
3022
+ "type": n => { appointmentActivity.type = n.getStringValue(); },
3023
+ };
3024
+ }
3025
+ /**
3026
+ * The deserialization information for the current model
3027
+ * @param AppointmentRequest The instance to deserialize into.
3028
+ * @returns {Record<string, (node: ParseNode) => void>}
3029
+ */
3030
+ // @ts-ignore
3031
+ export function deserializeIntoAppointmentRequest(appointmentRequest = {}) {
3032
+ return {
3033
+ "assignedToUserId": n => { appointmentRequest.assignedToUserId = n.getStringValue(); },
3034
+ "expectedRevision": n => { appointmentRequest.expectedRevision = n.getNumberValue(); },
3035
+ "leadId": n => { appointmentRequest.leadId = n.getStringValue(); },
3036
+ "notes": n => { appointmentRequest.notes = n.getStringValue(); },
3037
+ "startAt": n => { appointmentRequest.startAt = n.getDateValue(); },
3038
+ "timeZoneId": n => { appointmentRequest.timeZoneId = n.getStringValue(); },
3039
+ "title": n => { appointmentRequest.title = n.getStringValue(); },
3040
+ };
3041
+ }
3042
+ /**
3043
+ * The deserialization information for the current model
3044
+ * @param AppointmentResponse The instance to deserialize into.
3045
+ * @returns {Record<string, (node: ParseNode) => void>}
3046
+ */
3047
+ // @ts-ignore
3048
+ export function deserializeIntoAppointmentResponse(appointmentResponse = {}) {
3049
+ return {
3050
+ "assignedToName": n => { appointmentResponse.assignedToName = n.getStringValue(); },
3051
+ "assignedToUserId": n => { appointmentResponse.assignedToUserId = n.getStringValue(); },
3052
+ "createdAt": n => { appointmentResponse.createdAt = n.getDateValue(); },
3053
+ "dismissedAt": n => { appointmentResponse.dismissedAt = n.getDateValue(); },
3054
+ "history": n => { appointmentResponse.history = n.getCollectionOfObjectValues(createAppointmentActivityFromDiscriminatorValue); },
3055
+ "id": n => { appointmentResponse.id = n.getStringValue(); },
3056
+ "isDemo": n => { appointmentResponse.isDemo = n.getBooleanValue(); },
3057
+ "leadAvatarUrl": n => { appointmentResponse.leadAvatarUrl = n.getStringValue(); },
3058
+ "leadEmail": n => { appointmentResponse.leadEmail = n.getStringValue(); },
3059
+ "leadFirstName": n => { appointmentResponse.leadFirstName = n.getStringValue(); },
3060
+ "leadId": n => { appointmentResponse.leadId = n.getStringValue(); },
3061
+ "leadLastName": n => { appointmentResponse.leadLastName = n.getStringValue(); },
3062
+ "leadName": n => { appointmentResponse.leadName = n.getStringValue(); },
3063
+ "modifiedAt": n => { appointmentResponse.modifiedAt = n.getDateValue(); },
3064
+ "notes": n => { appointmentResponse.notes = n.getStringValue(); },
3065
+ "organizationId": n => { appointmentResponse.organizationId = n.getStringValue(); },
3066
+ "organizationName": n => { appointmentResponse.organizationName = n.getStringValue(); },
3067
+ "reminderAt": n => { appointmentResponse.reminderAt = n.getDateValue(); },
3068
+ "revision": n => { appointmentResponse.revision = n.getNumberValue(); },
3069
+ "startAt": n => { appointmentResponse.startAt = n.getDateValue(); },
3070
+ "status": n => { appointmentResponse.status = n.getStringValue(); },
3071
+ "timeZoneId": n => { appointmentResponse.timeZoneId = n.getStringValue(); },
3072
+ "title": n => { appointmentResponse.title = n.getStringValue(); },
3073
+ };
3074
+ }
2958
3075
  /**
2959
3076
  * The deserialization information for the current model
2960
3077
  * @param AutomationAction The instance to deserialize into.
@@ -7971,6 +8088,10 @@ export function deserializeIntoUserDataExportResponse(userDataExportResponse = {
7971
8088
  // @ts-ignore
7972
8089
  export function deserializeIntoUserNotificationPreferences(userNotificationPreferences = {}) {
7973
8090
  return {
8091
+ "appointmentReminderEmailEnabled": n => { userNotificationPreferences.appointmentReminderEmailEnabled = n.getBooleanValue(); },
8092
+ "appointmentReminderEnabled": n => { userNotificationPreferences.appointmentReminderEnabled = n.getBooleanValue(); },
8093
+ "appointmentReminderInAppEnabled": n => { userNotificationPreferences.appointmentReminderInAppEnabled = n.getBooleanValue(); },
8094
+ "appointmentReminderSmsEnabled": n => { userNotificationPreferences.appointmentReminderSmsEnabled = n.getBooleanValue(); },
7974
8095
  "automationFailedEmailEnabled": n => { userNotificationPreferences.automationFailedEmailEnabled = n.getBooleanValue(); },
7975
8096
  "automationFailedEnabled": n => { userNotificationPreferences.automationFailedEnabled = n.getBooleanValue(); },
7976
8097
  "automationFailedSmsEnabled": n => { userNotificationPreferences.automationFailedSmsEnabled = n.getBooleanValue(); },
@@ -7989,6 +8110,7 @@ export function deserializeIntoUserNotificationPreferences(userNotificationPrefe
7989
8110
  "paymentFailedSmsEnabled": n => { userNotificationPreferences.paymentFailedSmsEnabled = n.getBooleanValue(); },
7990
8111
  "quietHoursEnabled": n => { userNotificationPreferences.quietHoursEnabled = n.getBooleanValue(); },
7991
8112
  "quietHoursEnd": n => { userNotificationPreferences.quietHoursEnd = n.getTimeOnlyValue(); },
8113
+ "quietHoursQueueEnabled": n => { userNotificationPreferences.quietHoursQueueEnabled = n.getBooleanValue(); },
7992
8114
  "quietHoursStart": n => { userNotificationPreferences.quietHoursStart = n.getTimeOnlyValue(); },
7993
8115
  "quietHoursTimeZoneId": n => { userNotificationPreferences.quietHoursTimeZoneId = n.getStringValue(); },
7994
8116
  "smsConsentCertificate": n => { userNotificationPreferences.smsConsentCertificate = n.getObjectValue(createUserNotificationPreferences_smsConsentCertificateFromDiscriminatorValue); },
@@ -8312,6 +8434,99 @@ export function serializeAnalyticsTrendPointOfint(writer, analyticsTrendPointOfi
8312
8434
  writer.writeNumberValue("value", analyticsTrendPointOfint.value);
8313
8435
  writer.writeAdditionalData(analyticsTrendPointOfint.additionalData);
8314
8436
  }
8437
+ /**
8438
+ * Serializes information the current object
8439
+ * @param AppointmentActionRequest The instance to serialize from.
8440
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8441
+ * @param writer Serialization writer to use to serialize this model
8442
+ */
8443
+ // @ts-ignore
8444
+ export function serializeAppointmentActionRequest(writer, appointmentActionRequest = {}, isSerializingDerivedType = false) {
8445
+ if (!appointmentActionRequest || isSerializingDerivedType) {
8446
+ return;
8447
+ }
8448
+ writer.writeNumberValue("expectedRevision", appointmentActionRequest.expectedRevision);
8449
+ writer.writeAdditionalData(appointmentActionRequest.additionalData);
8450
+ }
8451
+ /**
8452
+ * Serializes information the current object
8453
+ * @param AppointmentActivity The instance to serialize from.
8454
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8455
+ * @param writer Serialization writer to use to serialize this model
8456
+ */
8457
+ // @ts-ignore
8458
+ export function serializeAppointmentActivity(writer, appointmentActivity = {}, isSerializingDerivedType = false) {
8459
+ if (!appointmentActivity || isSerializingDerivedType) {
8460
+ return;
8461
+ }
8462
+ writer.writeStringValue("actorId", appointmentActivity.actorId);
8463
+ writer.writeStringValue("actorName", appointmentActivity.actorName);
8464
+ writer.writeStringValue("assignedToName", appointmentActivity.assignedToName);
8465
+ writer.writeDateValue("at", appointmentActivity.at);
8466
+ writer.writeStringValue("notes", appointmentActivity.notes);
8467
+ writer.writeDateValue("reminderAt", appointmentActivity.reminderAt);
8468
+ writer.writeNumberValue("revision", appointmentActivity.revision);
8469
+ writer.writeDateValue("startAt", appointmentActivity.startAt);
8470
+ writer.writeStringValue("title", appointmentActivity.title);
8471
+ writer.writeStringValue("type", appointmentActivity.type);
8472
+ writer.writeAdditionalData(appointmentActivity.additionalData);
8473
+ }
8474
+ /**
8475
+ * Serializes information the current object
8476
+ * @param AppointmentRequest The instance to serialize from.
8477
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8478
+ * @param writer Serialization writer to use to serialize this model
8479
+ */
8480
+ // @ts-ignore
8481
+ export function serializeAppointmentRequest(writer, appointmentRequest = {}, isSerializingDerivedType = false) {
8482
+ if (!appointmentRequest || isSerializingDerivedType) {
8483
+ return;
8484
+ }
8485
+ writer.writeStringValue("assignedToUserId", appointmentRequest.assignedToUserId);
8486
+ writer.writeNumberValue("expectedRevision", appointmentRequest.expectedRevision);
8487
+ writer.writeStringValue("leadId", appointmentRequest.leadId);
8488
+ writer.writeStringValue("notes", appointmentRequest.notes);
8489
+ writer.writeDateValue("startAt", appointmentRequest.startAt);
8490
+ writer.writeStringValue("timeZoneId", appointmentRequest.timeZoneId);
8491
+ writer.writeStringValue("title", appointmentRequest.title);
8492
+ writer.writeAdditionalData(appointmentRequest.additionalData);
8493
+ }
8494
+ /**
8495
+ * Serializes information the current object
8496
+ * @param AppointmentResponse The instance to serialize from.
8497
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8498
+ * @param writer Serialization writer to use to serialize this model
8499
+ */
8500
+ // @ts-ignore
8501
+ export function serializeAppointmentResponse(writer, appointmentResponse = {}, isSerializingDerivedType = false) {
8502
+ if (!appointmentResponse || isSerializingDerivedType) {
8503
+ return;
8504
+ }
8505
+ writer.writeStringValue("assignedToName", appointmentResponse.assignedToName);
8506
+ writer.writeStringValue("assignedToUserId", appointmentResponse.assignedToUserId);
8507
+ writer.writeDateValue("createdAt", appointmentResponse.createdAt);
8508
+ writer.writeDateValue("dismissedAt", appointmentResponse.dismissedAt);
8509
+ writer.writeCollectionOfObjectValues("history", appointmentResponse.history, serializeAppointmentActivity);
8510
+ writer.writeStringValue("id", appointmentResponse.id);
8511
+ writer.writeBooleanValue("isDemo", appointmentResponse.isDemo);
8512
+ writer.writeStringValue("leadAvatarUrl", appointmentResponse.leadAvatarUrl);
8513
+ writer.writeStringValue("leadEmail", appointmentResponse.leadEmail);
8514
+ writer.writeStringValue("leadFirstName", appointmentResponse.leadFirstName);
8515
+ writer.writeStringValue("leadId", appointmentResponse.leadId);
8516
+ writer.writeStringValue("leadLastName", appointmentResponse.leadLastName);
8517
+ writer.writeStringValue("leadName", appointmentResponse.leadName);
8518
+ writer.writeDateValue("modifiedAt", appointmentResponse.modifiedAt);
8519
+ writer.writeStringValue("notes", appointmentResponse.notes);
8520
+ writer.writeStringValue("organizationId", appointmentResponse.organizationId);
8521
+ writer.writeStringValue("organizationName", appointmentResponse.organizationName);
8522
+ writer.writeDateValue("reminderAt", appointmentResponse.reminderAt);
8523
+ writer.writeNumberValue("revision", appointmentResponse.revision);
8524
+ writer.writeDateValue("startAt", appointmentResponse.startAt);
8525
+ writer.writeStringValue("status", appointmentResponse.status);
8526
+ writer.writeStringValue("timeZoneId", appointmentResponse.timeZoneId);
8527
+ writer.writeStringValue("title", appointmentResponse.title);
8528
+ writer.writeAdditionalData(appointmentResponse.additionalData);
8529
+ }
8315
8530
  /**
8316
8531
  * Serializes information the current object
8317
8532
  * @param AutomationAction The instance to serialize from.
@@ -14139,6 +14354,10 @@ export function serializeUserNotificationPreferences(writer, userNotificationPre
14139
14354
  if (!userNotificationPreferences || isSerializingDerivedType) {
14140
14355
  return;
14141
14356
  }
14357
+ writer.writeBooleanValue("appointmentReminderEmailEnabled", userNotificationPreferences.appointmentReminderEmailEnabled);
14358
+ writer.writeBooleanValue("appointmentReminderEnabled", userNotificationPreferences.appointmentReminderEnabled);
14359
+ writer.writeBooleanValue("appointmentReminderInAppEnabled", userNotificationPreferences.appointmentReminderInAppEnabled);
14360
+ writer.writeBooleanValue("appointmentReminderSmsEnabled", userNotificationPreferences.appointmentReminderSmsEnabled);
14142
14361
  writer.writeBooleanValue("automationFailedEmailEnabled", userNotificationPreferences.automationFailedEmailEnabled);
14143
14362
  writer.writeBooleanValue("automationFailedEnabled", userNotificationPreferences.automationFailedEnabled);
14144
14363
  writer.writeBooleanValue("automationFailedSmsEnabled", userNotificationPreferences.automationFailedSmsEnabled);
@@ -14157,6 +14376,7 @@ export function serializeUserNotificationPreferences(writer, userNotificationPre
14157
14376
  writer.writeBooleanValue("paymentFailedSmsEnabled", userNotificationPreferences.paymentFailedSmsEnabled);
14158
14377
  writer.writeBooleanValue("quietHoursEnabled", userNotificationPreferences.quietHoursEnabled);
14159
14378
  writer.writeTimeOnlyValue("quietHoursEnd", userNotificationPreferences.quietHoursEnd);
14379
+ writer.writeBooleanValue("quietHoursQueueEnabled", userNotificationPreferences.quietHoursQueueEnabled);
14160
14380
  writer.writeTimeOnlyValue("quietHoursStart", userNotificationPreferences.quietHoursStart);
14161
14381
  writer.writeStringValue("quietHoursTimeZoneId", userNotificationPreferences.quietHoursTimeZoneId);
14162
14382
  writer.writeObjectValue("smsConsentCertificate", userNotificationPreferences.smsConsentCertificate, serializeUserNotificationPreferences_smsConsentCertificate);
@@ -14595,6 +14815,7 @@ export const EventDetailResponse_timelineTypeObject = {
14595
14815
  Note: "Note",
14596
14816
  LeadStatusChange: "LeadStatusChange",
14597
14817
  LeadCreated: "LeadCreated",
14818
+ Appointment: "Appointment",
14598
14819
  LeadUpdated: "LeadUpdated",
14599
14820
  Notification: "Notification",
14600
14821
  Payment: "Payment",
@@ -14662,6 +14883,7 @@ export const EventTimelineTypeObject = {
14662
14883
  Note: "Note",
14663
14884
  LeadStatusChange: "LeadStatusChange",
14664
14885
  LeadCreated: "LeadCreated",
14886
+ Appointment: "Appointment",
14665
14887
  LeadUpdated: "LeadUpdated",
14666
14888
  Notification: "Notification",
14667
14889
  Payment: "Payment",
@@ -14879,6 +15101,7 @@ export const NotificationPriorityObject = {
14879
15101
  * Identifies the Leadping workflow or account event communicated by a user notification.
14880
15102
  */
14881
15103
  export const NotificationTypeObject = {
15104
+ Appointment: "Appointment",
14882
15105
  General: "General",
14883
15106
  Lead: "Lead",
14884
15107
  Call: "Call",