@leadping/sdk 1.0.23 → 1.0.24

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 (48) hide show
  1. package/dist/businesses/me/index.d.ts +7 -2
  2. package/dist/businesses/me/index.d.ts.map +1 -1
  3. package/dist/businesses/me/index.js +5 -0
  4. package/dist/businesses/me/index.js.map +1 -1
  5. package/dist/businesses/me/oneZerodlc/index.d.ts +20 -0
  6. package/dist/businesses/me/oneZerodlc/index.d.ts.map +1 -0
  7. package/dist/businesses/me/oneZerodlc/index.js +20 -0
  8. package/dist/businesses/me/oneZerodlc/index.js.map +1 -0
  9. package/dist/businesses/me/oneZerodlc/notes/index.d.ts +32 -0
  10. package/dist/businesses/me/oneZerodlc/notes/index.d.ts.map +1 -0
  11. package/dist/businesses/me/oneZerodlc/notes/index.js +30 -0
  12. package/dist/businesses/me/oneZerodlc/notes/index.js.map +1 -0
  13. package/dist/leadStatuses/index.d.ts +4 -4
  14. package/dist/leadStatuses/item/index.d.ts +4 -4
  15. package/dist/models/index.d.ts +160 -3
  16. package/dist/models/index.d.ts.map +1 -1
  17. package/dist/models/index.js +142 -2
  18. package/dist/models/index.js.map +1 -1
  19. package/dist/notifications/index.d.ts +1 -1
  20. package/dist/notifications/index.d.ts.map +1 -1
  21. package/dist/notifications/index.js +2 -1
  22. package/dist/notifications/index.js.map +1 -1
  23. package/dist/notifications/item/index.d.ts +20 -1
  24. package/dist/notifications/item/index.d.ts.map +1 -1
  25. package/dist/notifications/item/index.js +17 -0
  26. package/dist/notifications/item/index.js.map +1 -1
  27. package/dist/notifications/me/index.d.ts +16 -3
  28. package/dist/notifications/me/index.d.ts.map +1 -1
  29. package/dist/notifications/me/index.js +1 -1
  30. package/dist/notifications/me/index.js.map +1 -1
  31. package/dist/paymentMethods/index.d.ts +2 -2
  32. package/dist/paymentMethods/index.d.ts.map +1 -1
  33. package/dist/paymentMethods/index.js +2 -1
  34. package/dist/paymentMethods/index.js.map +1 -1
  35. package/dist/paymentMethods/invoices/index.d.ts +14 -3
  36. package/dist/paymentMethods/invoices/index.d.ts.map +1 -1
  37. package/dist/paymentMethods/invoices/index.js +11 -0
  38. package/dist/paymentMethods/invoices/index.js.map +1 -1
  39. package/dist/paymentMethods/invoices/item/index.d.ts +20 -0
  40. package/dist/paymentMethods/invoices/item/index.d.ts.map +1 -0
  41. package/dist/paymentMethods/invoices/item/index.js +20 -0
  42. package/dist/paymentMethods/invoices/item/index.js.map +1 -0
  43. package/dist/paymentMethods/invoices/item/pdfAccess/index.d.ts +35 -0
  44. package/dist/paymentMethods/invoices/item/pdfAccess/index.d.ts.map +1 -0
  45. package/dist/paymentMethods/invoices/item/pdfAccess/index.js +26 -0
  46. package/dist/paymentMethods/invoices/item/pdfAccess/index.js.map +1 -0
  47. package/dist/paymentMethods/item/defaultEscaped/index.d.ts +2 -2
  48. package/package.json +1 -1
@@ -957,6 +957,15 @@ export function createIdNameValueFromDiscriminatorValue(parseNode) {
957
957
  export function createInitiateCallRequestFromDiscriminatorValue(parseNode) {
958
958
  return deserializeIntoInitiateCallRequest;
959
959
  }
960
+ /**
961
+ * Creates a new instance of the appropriate class based on discriminator value
962
+ * @param parseNode The parse node to use to read the discriminator value and create the object
963
+ * @returns {InvoicePdfAccessResponse}
964
+ */
965
+ // @ts-ignore
966
+ export function createInvoicePdfAccessResponseFromDiscriminatorValue(parseNode) {
967
+ return deserializeIntoInvoicePdfAccessResponse;
968
+ }
960
969
  /**
961
970
  * Creates a new instance of the appropriate class based on discriminator value
962
971
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1146,6 +1155,15 @@ export function createLeadTagsRequestFromDiscriminatorValue(parseNode) {
1146
1155
  export function createMobileDevicePreferencesFromDiscriminatorValue(parseNode) {
1147
1156
  return deserializeIntoMobileDevicePreferences;
1148
1157
  }
1158
+ /**
1159
+ * Creates a new instance of the appropriate class based on discriminator value
1160
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1161
+ * @returns {NotificationResponse}
1162
+ */
1163
+ // @ts-ignore
1164
+ export function createNotificationResponseFromDiscriminatorValue(parseNode) {
1165
+ return deserializeIntoNotificationResponse;
1166
+ }
1149
1167
  /**
1150
1168
  * Creates a new instance of the appropriate class based on discriminator value
1151
1169
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1866,6 +1884,15 @@ export function createTelephonyLoginResponseFromDiscriminatorValue(parseNode) {
1866
1884
  export function createTenDlcApplicationDraftFromDiscriminatorValue(parseNode) {
1867
1885
  return deserializeIntoTenDlcApplicationDraft;
1868
1886
  }
1887
+ /**
1888
+ * Creates a new instance of the appropriate class based on discriminator value
1889
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1890
+ * @returns {TenDlcNotesRequest}
1891
+ */
1892
+ // @ts-ignore
1893
+ export function createTenDlcNotesRequestFromDiscriminatorValue(parseNode) {
1894
+ return deserializeIntoTenDlcNotesRequest;
1895
+ }
1869
1896
  /**
1870
1897
  * Creates a new instance of the appropriate class based on discriminator value
1871
1898
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -3996,6 +4023,18 @@ export function deserializeIntoInitiateCallRequest(initiateCallRequest = {}) {
3996
4023
  "wasManuallyOverridden": n => { initiateCallRequest.wasManuallyOverridden = n.getBooleanValue(); },
3997
4024
  };
3998
4025
  }
4026
+ /**
4027
+ * The deserialization information for the current model
4028
+ * @param InvoicePdfAccessResponse The instance to deserialize into.
4029
+ * @returns {Record<string, (node: ParseNode) => void>}
4030
+ */
4031
+ // @ts-ignore
4032
+ export function deserializeIntoInvoicePdfAccessResponse(invoicePdfAccessResponse = {}) {
4033
+ return {
4034
+ "expiresAt": n => { invoicePdfAccessResponse.expiresAt = n.getDateValue(); },
4035
+ "url": n => { invoicePdfAccessResponse.url = n.getStringValue(); },
4036
+ };
4037
+ }
3999
4038
  /**
4000
4039
  * The deserialization information for the current model
4001
4040
  * @param LeadArchiveRequest The instance to deserialize into.
@@ -4358,6 +4397,31 @@ export function deserializeIntoMobileDevicePreferences(mobileDevicePreferences =
4358
4397
  "updatedAt": n => { mobileDevicePreferences.updatedAt = n.getDateValue(); },
4359
4398
  };
4360
4399
  }
4400
+ /**
4401
+ * The deserialization information for the current model
4402
+ * @param NotificationResponse The instance to deserialize into.
4403
+ * @returns {Record<string, (node: ParseNode) => void>}
4404
+ */
4405
+ // @ts-ignore
4406
+ export function deserializeIntoNotificationResponse(notificationResponse = {}) {
4407
+ return {
4408
+ "actionButtonText": n => { notificationResponse.actionButtonText = n.getStringValue(); },
4409
+ "actionUrl": n => { notificationResponse.actionUrl = n.getStringValue(); },
4410
+ "createdAt": n => { notificationResponse.createdAt = n.getDateValue(); },
4411
+ "details": n => { notificationResponse.details = n.getStringValue(); },
4412
+ "id": n => { notificationResponse.id = n.getStringValue(); },
4413
+ "isRead": n => { notificationResponse.isRead = n.getBooleanValue(); },
4414
+ "message": n => { notificationResponse.message = n.getStringValue(); },
4415
+ "modifiedAt": n => { notificationResponse.modifiedAt = n.getDateValue(); },
4416
+ "name": n => { notificationResponse.name = n.getStringValue(); },
4417
+ "priority": n => { notificationResponse.priority = n.getEnumValue(NotificationPriorityObject); },
4418
+ "readAt": n => { notificationResponse.readAt = n.getDateValue(); },
4419
+ "relatedEntityId": n => { notificationResponse.relatedEntityId = n.getStringValue(); },
4420
+ "relatedEntityType": n => { notificationResponse.relatedEntityType = n.getStringValue(); },
4421
+ "type": n => { notificationResponse.type = n.getEnumValue(NotificationTypeObject); },
4422
+ "userId": n => { notificationResponse.userId = n.getStringValue(); },
4423
+ };
4424
+ }
4361
4425
  /**
4362
4426
  * The deserialization information for the current model
4363
4427
  * @param NotificationTableRow The instance to deserialize into.
@@ -4421,6 +4485,7 @@ export function deserializeIntoOutboundCapacityOverview(outboundCapacityOverview
4421
4485
  // @ts-ignore
4422
4486
  export function deserializeIntoOutboundPhoneNumberCapacity(outboundPhoneNumberCapacity = {}) {
4423
4487
  return {
4488
+ "capacityAvailable": n => { outboundPhoneNumberCapacity.capacityAvailable = n.getBooleanValue(); },
4424
4489
  "healthStatus": n => { outboundPhoneNumberCapacity.healthStatus = n.getEnumValue(PhoneNumberOutboundHealthStatusObject); },
4425
4490
  "phoneNumber": n => { outboundPhoneNumberCapacity.phoneNumber = n.getStringValue(); },
4426
4491
  "phoneNumberId": n => { outboundPhoneNumberCapacity.phoneNumberId = n.getStringValue(); },
@@ -5268,6 +5333,7 @@ export function deserializeIntoSourceRequest(sourceRequest = {}) {
5268
5333
  return {
5269
5334
  "allowedProducts": n => { sourceRequest.allowedProducts = n.getCollectionOfPrimitiveValues("string"); },
5270
5335
  "allowedStates": n => { sourceRequest.allowedStates = n.getCollectionOfPrimitiveValues("string"); },
5336
+ "apiKey": n => { sourceRequest.apiKey = n.getStringValue(); },
5271
5337
  "costPerLead": n => { sourceRequest.costPerLead = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5272
5338
  "defaultTagIds": n => { sourceRequest.defaultTagIds = n.getCollectionOfPrimitiveValues("string"); },
5273
5339
  "defaultTagNames": n => { sourceRequest.defaultTagNames = n.getCollectionOfPrimitiveValues("string"); },
@@ -5289,6 +5355,7 @@ export function deserializeIntoSourceResponse(sourceResponse = {}) {
5289
5355
  return {
5290
5356
  "allowedProducts": n => { sourceResponse.allowedProducts = n.getCollectionOfPrimitiveValues("string"); },
5291
5357
  "allowedStates": n => { sourceResponse.allowedStates = n.getCollectionOfPrimitiveValues("string"); },
5358
+ "apiKey": n => { sourceResponse.apiKey = n.getStringValue(); },
5292
5359
  "apiKeyPreview": n => { sourceResponse.apiKeyPreview = n.getStringValue(); },
5293
5360
  "business": n => { sourceResponse.business = n.getObjectValue(createSourceResponse_businessFromDiscriminatorValue); },
5294
5361
  "complianceApproved": n => { sourceResponse.complianceApproved = n.getBooleanValue(); },
@@ -5363,6 +5430,7 @@ export function deserializeIntoSourceTableRow(sourceTableRow = {}) {
5363
5430
  return {
5364
5431
  "allowedProducts": n => { sourceTableRow.allowedProducts = n.getCollectionOfPrimitiveValues("string"); },
5365
5432
  "allowedStates": n => { sourceTableRow.allowedStates = n.getCollectionOfPrimitiveValues("string"); },
5433
+ "apiKey": n => { sourceTableRow.apiKey = n.getStringValue(); },
5366
5434
  "apiKeyLastUsedAt": n => { sourceTableRow.apiKeyLastUsedAt = n.getDateValue(); },
5367
5435
  "apiKeyPreview": n => { sourceTableRow.apiKeyPreview = n.getStringValue(); },
5368
5436
  "apiKeyTotalUses": n => { sourceTableRow.apiKeyTotalUses = n.getNumberValue(); },
@@ -5459,7 +5527,7 @@ export function deserializeIntoStripeInvoiceResponse(stripeInvoiceResponse = {})
5459
5527
  return {
5460
5528
  "amount": n => { stripeInvoiceResponse.amount = n.getNumberValue(); },
5461
5529
  "createdAt": n => { stripeInvoiceResponse.createdAt = n.getDateValue(); },
5462
- "hostedInvoiceUrl": n => { stripeInvoiceResponse.hostedInvoiceUrl = n.getStringValue(); },
5530
+ "hasPdf": n => { stripeInvoiceResponse.hasPdf = n.getBooleanValue(); },
5463
5531
  "id": n => { stripeInvoiceResponse.id = n.getStringValue(); },
5464
5532
  "number": n => { stripeInvoiceResponse.number = n.getStringValue(); },
5465
5533
  "status": n => { stripeInvoiceResponse.status = n.getStringValue(); },
@@ -5683,6 +5751,17 @@ export function deserializeIntoTenDlcApplicationDraft(tenDlcApplicationDraft = {
5683
5751
  "websiteUrl": n => { tenDlcApplicationDraft.websiteUrl = n.getStringValue(); },
5684
5752
  };
5685
5753
  }
5754
+ /**
5755
+ * The deserialization information for the current model
5756
+ * @param TenDlcNotesRequest The instance to deserialize into.
5757
+ * @returns {Record<string, (node: ParseNode) => void>}
5758
+ */
5759
+ // @ts-ignore
5760
+ export function deserializeIntoTenDlcNotesRequest(tenDlcNotesRequest = {}) {
5761
+ return {
5762
+ "notes": n => { tenDlcNotesRequest.notes = n.getStringValue(); },
5763
+ };
5764
+ }
5686
5765
  /**
5687
5766
  * The deserialization information for the current model
5688
5767
  * @param TransactionResponse The instance to deserialize into.
@@ -8326,6 +8405,21 @@ export function serializeInitiateCallRequest(writer, initiateCallRequest = {}, i
8326
8405
  writer.writeBooleanValue("wasManuallyOverridden", initiateCallRequest.wasManuallyOverridden);
8327
8406
  writer.writeAdditionalData(initiateCallRequest.additionalData);
8328
8407
  }
8408
+ /**
8409
+ * Serializes information the current object
8410
+ * @param InvoicePdfAccessResponse The instance to serialize from.
8411
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8412
+ * @param writer Serialization writer to use to serialize this model
8413
+ */
8414
+ // @ts-ignore
8415
+ export function serializeInvoicePdfAccessResponse(writer, invoicePdfAccessResponse = {}, isSerializingDerivedType = false) {
8416
+ if (!invoicePdfAccessResponse || isSerializingDerivedType) {
8417
+ return;
8418
+ }
8419
+ writer.writeDateValue("expiresAt", invoicePdfAccessResponse.expiresAt);
8420
+ writer.writeStringValue("url", invoicePdfAccessResponse.url);
8421
+ writer.writeAdditionalData(invoicePdfAccessResponse.additionalData);
8422
+ }
8329
8423
  /**
8330
8424
  * Serializes information the current object
8331
8425
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -8746,6 +8840,34 @@ export function serializeMobileDevicePreferences(writer, mobileDevicePreferences
8746
8840
  writer.writeDateValue("updatedAt", mobileDevicePreferences.updatedAt);
8747
8841
  writer.writeAdditionalData(mobileDevicePreferences.additionalData);
8748
8842
  }
8843
+ /**
8844
+ * Serializes information the current object
8845
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8846
+ * @param NotificationResponse The instance to serialize from.
8847
+ * @param writer Serialization writer to use to serialize this model
8848
+ */
8849
+ // @ts-ignore
8850
+ export function serializeNotificationResponse(writer, notificationResponse = {}, isSerializingDerivedType = false) {
8851
+ if (!notificationResponse || isSerializingDerivedType) {
8852
+ return;
8853
+ }
8854
+ writer.writeStringValue("actionButtonText", notificationResponse.actionButtonText);
8855
+ writer.writeStringValue("actionUrl", notificationResponse.actionUrl);
8856
+ writer.writeDateValue("createdAt", notificationResponse.createdAt);
8857
+ writer.writeStringValue("details", notificationResponse.details);
8858
+ writer.writeStringValue("id", notificationResponse.id);
8859
+ writer.writeBooleanValue("isRead", notificationResponse.isRead);
8860
+ writer.writeStringValue("message", notificationResponse.message);
8861
+ writer.writeDateValue("modifiedAt", notificationResponse.modifiedAt);
8862
+ writer.writeStringValue("name", notificationResponse.name);
8863
+ writer.writeEnumValue("priority", notificationResponse.priority);
8864
+ writer.writeDateValue("readAt", notificationResponse.readAt);
8865
+ writer.writeStringValue("relatedEntityId", notificationResponse.relatedEntityId);
8866
+ writer.writeStringValue("relatedEntityType", notificationResponse.relatedEntityType);
8867
+ writer.writeEnumValue("type", notificationResponse.type);
8868
+ writer.writeStringValue("userId", notificationResponse.userId);
8869
+ writer.writeAdditionalData(notificationResponse.additionalData);
8870
+ }
8749
8871
  /**
8750
8872
  * Serializes information the current object
8751
8873
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -8821,6 +8943,7 @@ export function serializeOutboundPhoneNumberCapacity(writer, outboundPhoneNumber
8821
8943
  if (!outboundPhoneNumberCapacity || isSerializingDerivedType) {
8822
8944
  return;
8823
8945
  }
8946
+ writer.writeBooleanValue("capacityAvailable", outboundPhoneNumberCapacity.capacityAvailable);
8824
8947
  writer.writeEnumValue("healthStatus", outboundPhoneNumberCapacity.healthStatus);
8825
8948
  writer.writeStringValue("phoneNumber", outboundPhoneNumberCapacity.phoneNumber);
8826
8949
  writer.writeStringValue("phoneNumberId", outboundPhoneNumberCapacity.phoneNumberId);
@@ -9814,6 +9937,7 @@ export function serializeSourceRequest(writer, sourceRequest = {}, isSerializing
9814
9937
  }
9815
9938
  writer.writeCollectionOfPrimitiveValues("allowedProducts", sourceRequest.allowedProducts);
9816
9939
  writer.writeCollectionOfPrimitiveValues("allowedStates", sourceRequest.allowedStates);
9940
+ writer.writeStringValue("apiKey", sourceRequest.apiKey);
9817
9941
  writer.writeObjectValue("costPerLead", sourceRequest.costPerLead);
9818
9942
  writer.writeCollectionOfPrimitiveValues("defaultTagIds", sourceRequest.defaultTagIds);
9819
9943
  writer.writeCollectionOfPrimitiveValues("defaultTagNames", sourceRequest.defaultTagNames);
@@ -9838,6 +9962,7 @@ export function serializeSourceResponse(writer, sourceResponse = {}, isSerializi
9838
9962
  }
9839
9963
  writer.writeCollectionOfPrimitiveValues("allowedProducts", sourceResponse.allowedProducts);
9840
9964
  writer.writeCollectionOfPrimitiveValues("allowedStates", sourceResponse.allowedStates);
9965
+ writer.writeStringValue("apiKey", sourceResponse.apiKey);
9841
9966
  writer.writeStringValue("apiKeyPreview", sourceResponse.apiKeyPreview);
9842
9967
  writer.writeObjectValue("business", sourceResponse.business, serializeSourceResponse_business);
9843
9968
  writer.writeBooleanValue("complianceApproved", sourceResponse.complianceApproved);
@@ -9923,6 +10048,7 @@ export function serializeSourceTableRow(writer, sourceTableRow = {}, isSerializi
9923
10048
  }
9924
10049
  writer.writeCollectionOfPrimitiveValues("allowedProducts", sourceTableRow.allowedProducts);
9925
10050
  writer.writeCollectionOfPrimitiveValues("allowedStates", sourceTableRow.allowedStates);
10051
+ writer.writeStringValue("apiKey", sourceTableRow.apiKey);
9926
10052
  writer.writeDateValue("apiKeyLastUsedAt", sourceTableRow.apiKeyLastUsedAt);
9927
10053
  writer.writeStringValue("apiKeyPreview", sourceTableRow.apiKeyPreview);
9928
10054
  writer.writeNumberValue("apiKeyTotalUses", sourceTableRow.apiKeyTotalUses);
@@ -10033,7 +10159,7 @@ export function serializeStripeInvoiceResponse(writer, stripeInvoiceResponse = {
10033
10159
  }
10034
10160
  writer.writeNumberValue("amount", stripeInvoiceResponse.amount);
10035
10161
  writer.writeDateValue("createdAt", stripeInvoiceResponse.createdAt);
10036
- writer.writeStringValue("hostedInvoiceUrl", stripeInvoiceResponse.hostedInvoiceUrl);
10162
+ writer.writeBooleanValue("hasPdf", stripeInvoiceResponse.hasPdf);
10037
10163
  writer.writeStringValue("id", stripeInvoiceResponse.id);
10038
10164
  writer.writeStringValue("number", stripeInvoiceResponse.number);
10039
10165
  writer.writeStringValue("status", stripeInvoiceResponse.status);
@@ -10296,6 +10422,20 @@ export function serializeTenDlcApplicationDraft(writer, tenDlcApplicationDraft =
10296
10422
  writer.writeStringValue("websiteUrl", tenDlcApplicationDraft.websiteUrl);
10297
10423
  writer.writeAdditionalData(tenDlcApplicationDraft.additionalData);
10298
10424
  }
10425
+ /**
10426
+ * Serializes information the current object
10427
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10428
+ * @param TenDlcNotesRequest The instance to serialize from.
10429
+ * @param writer Serialization writer to use to serialize this model
10430
+ */
10431
+ // @ts-ignore
10432
+ export function serializeTenDlcNotesRequest(writer, tenDlcNotesRequest = {}, isSerializingDerivedType = false) {
10433
+ if (!tenDlcNotesRequest || isSerializingDerivedType) {
10434
+ return;
10435
+ }
10436
+ writer.writeStringValue("notes", tenDlcNotesRequest.notes);
10437
+ writer.writeAdditionalData(tenDlcNotesRequest.additionalData);
10438
+ }
10299
10439
  /**
10300
10440
  * Serializes information the current object
10301
10441
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.