@leadping/sdk 1.0.19 → 1.0.20

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.
@@ -21,6 +21,15 @@ export function createAcceptBusinessInvitationRequestFromDiscriminatorValue(pars
21
21
  export function createActivationDomainOptionFromDiscriminatorValue(parseNode) {
22
22
  return deserializeIntoActivationDomainOption;
23
23
  }
24
+ /**
25
+ * Creates a new instance of the appropriate class based on discriminator value
26
+ * @param parseNode The parse node to use to read the discriminator value and create the object
27
+ * @returns {ActivationTimelineEvent_actor}
28
+ */
29
+ // @ts-ignore
30
+ export function createActivationTimelineEvent_actorFromDiscriminatorValue(parseNode) {
31
+ return deserializeIntoActivationTimelineEvent_actor;
32
+ }
24
33
  /**
25
34
  * Creates a new instance of the appropriate class based on discriminator value
26
35
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -291,6 +300,24 @@ export function createAutomationWorkflowActionResponseFromDiscriminatorValue(par
291
300
  export function createAutomationWorkflowEventResponseFromDiscriminatorValue(parseNode) {
292
301
  return deserializeIntoAutomationWorkflowEventResponse;
293
302
  }
303
+ /**
304
+ * Creates a new instance of the appropriate class based on discriminator value
305
+ * @param parseNode The parse node to use to read the discriminator value and create the object
306
+ * @returns {AutomationWorkflowRunResponse_automation}
307
+ */
308
+ // @ts-ignore
309
+ export function createAutomationWorkflowRunResponse_automationFromDiscriminatorValue(parseNode) {
310
+ return deserializeIntoAutomationWorkflowRunResponse_automation;
311
+ }
312
+ /**
313
+ * Creates a new instance of the appropriate class based on discriminator value
314
+ * @param parseNode The parse node to use to read the discriminator value and create the object
315
+ * @returns {AutomationWorkflowRunResponse_currentStep}
316
+ */
317
+ // @ts-ignore
318
+ export function createAutomationWorkflowRunResponse_currentStepFromDiscriminatorValue(parseNode) {
319
+ return deserializeIntoAutomationWorkflowRunResponse_currentStep;
320
+ }
294
321
  /**
295
322
  * Creates a new instance of the appropriate class based on discriminator value
296
323
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -498,6 +525,15 @@ export function createBusinessSwitchOptionFromDiscriminatorValue(parseNode) {
498
525
  export function createBusinessSwitchRequestFromDiscriminatorValue(parseNode) {
499
526
  return deserializeIntoBusinessSwitchRequest;
500
527
  }
528
+ /**
529
+ * Creates a new instance of the appropriate class based on discriminator value
530
+ * @param parseNode The parse node to use to read the discriminator value and create the object
531
+ * @returns {BusinessTableRow_business}
532
+ */
533
+ // @ts-ignore
534
+ export function createBusinessTableRow_businessFromDiscriminatorValue(parseNode) {
535
+ return deserializeIntoBusinessTableRow_business;
536
+ }
501
537
  /**
502
538
  * Creates a new instance of the appropriate class based on discriminator value
503
539
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1002,6 +1038,15 @@ export function createLeadResponse_currentDispositionFromDiscriminatorValue(pars
1002
1038
  export function createLeadResponseFromDiscriminatorValue(parseNode) {
1003
1039
  return deserializeIntoLeadResponse;
1004
1040
  }
1041
+ /**
1042
+ * Creates a new instance of the appropriate class based on discriminator value
1043
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1044
+ * @returns {LeadTableRow_business}
1045
+ */
1046
+ // @ts-ignore
1047
+ export function createLeadTableRow_businessFromDiscriminatorValue(parseNode) {
1048
+ return deserializeIntoLeadTableRow_business;
1049
+ }
1005
1050
  /**
1006
1051
  * Creates a new instance of the appropriate class based on discriminator value
1007
1052
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1011,6 +1056,15 @@ export function createLeadResponseFromDiscriminatorValue(parseNode) {
1011
1056
  export function createLeadTableRow_currentDispositionFromDiscriminatorValue(parseNode) {
1012
1057
  return deserializeIntoLeadTableRow_currentDisposition;
1013
1058
  }
1059
+ /**
1060
+ * Creates a new instance of the appropriate class based on discriminator value
1061
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1062
+ * @returns {LeadTableRow_source}
1063
+ */
1064
+ // @ts-ignore
1065
+ export function createLeadTableRow_sourceFromDiscriminatorValue(parseNode) {
1066
+ return deserializeIntoLeadTableRow_source;
1067
+ }
1014
1068
  /**
1015
1069
  * Creates a new instance of the appropriate class based on discriminator value
1016
1070
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1218,15 +1272,6 @@ export function createPagedResultOfTransactionTableRowFromDiscriminatorValue(par
1218
1272
  export function createPagedResultOfUsageLedgerTableRowFromDiscriminatorValue(parseNode) {
1219
1273
  return deserializeIntoPagedResultOfUsageLedgerTableRow;
1220
1274
  }
1221
- /**
1222
- * Creates a new instance of the appropriate class based on discriminator value
1223
- * @param parseNode The parse node to use to read the discriminator value and create the object
1224
- * @returns {Phone_lookup}
1225
- */
1226
- // @ts-ignore
1227
- export function createPhone_lookupFromDiscriminatorValue(parseNode) {
1228
- return deserializeIntoPhone_lookup;
1229
- }
1230
1275
  /**
1231
1276
  * Creates a new instance of the appropriate class based on discriminator value
1232
1277
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1245,42 +1290,6 @@ export function createPhoneCallResponseFromDiscriminatorValue(parseNode) {
1245
1290
  export function createPhoneFromDiscriminatorValue(parseNode) {
1246
1291
  return deserializeIntoPhone;
1247
1292
  }
1248
- /**
1249
- * Creates a new instance of the appropriate class based on discriminator value
1250
- * @param parseNode The parse node to use to read the discriminator value and create the object
1251
- * @returns {PhoneLookup_carrier}
1252
- */
1253
- // @ts-ignore
1254
- export function createPhoneLookup_carrierFromDiscriminatorValue(parseNode) {
1255
- return deserializeIntoPhoneLookup_carrier;
1256
- }
1257
- /**
1258
- * Creates a new instance of the appropriate class based on discriminator value
1259
- * @param parseNode The parse node to use to read the discriminator value and create the object
1260
- * @returns {PhoneLookup_location}
1261
- */
1262
- // @ts-ignore
1263
- export function createPhoneLookup_locationFromDiscriminatorValue(parseNode) {
1264
- return deserializeIntoPhoneLookup_location;
1265
- }
1266
- /**
1267
- * Creates a new instance of the appropriate class based on discriminator value
1268
- * @param parseNode The parse node to use to read the discriminator value and create the object
1269
- * @returns {PhoneLookupCarrier}
1270
- */
1271
- // @ts-ignore
1272
- export function createPhoneLookupCarrierFromDiscriminatorValue(parseNode) {
1273
- return deserializeIntoPhoneLookupCarrier;
1274
- }
1275
- /**
1276
- * Creates a new instance of the appropriate class based on discriminator value
1277
- * @param parseNode The parse node to use to read the discriminator value and create the object
1278
- * @returns {PhoneLookup}
1279
- */
1280
- // @ts-ignore
1281
- export function createPhoneLookupFromDiscriminatorValue(parseNode) {
1282
- return deserializeIntoPhoneLookup;
1283
- }
1284
1293
  /**
1285
1294
  * Creates a new instance of the appropriate class based on discriminator value
1286
1295
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1362,15 +1371,6 @@ export function createPhoneNumberRequestFromDiscriminatorValue(parseNode) {
1362
1371
  export function createPhoneNumberResponse_businessFromDiscriminatorValue(parseNode) {
1363
1372
  return deserializeIntoPhoneNumberResponse_business;
1364
1373
  }
1365
- /**
1366
- * Creates a new instance of the appropriate class based on discriminator value
1367
- * @param parseNode The parse node to use to read the discriminator value and create the object
1368
- * @returns {PhoneNumberResponse_location}
1369
- */
1370
- // @ts-ignore
1371
- export function createPhoneNumberResponse_locationFromDiscriminatorValue(parseNode) {
1372
- return deserializeIntoPhoneNumberResponse_location;
1373
- }
1374
1374
  /**
1375
1375
  * Creates a new instance of the appropriate class based on discriminator value
1376
1376
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1767,6 +1767,15 @@ export function createTagResponseFromDiscriminatorValue(parseNode) {
1767
1767
  export function createTagSummaryFromDiscriminatorValue(parseNode) {
1768
1768
  return deserializeIntoTagSummary;
1769
1769
  }
1770
+ /**
1771
+ * Creates a new instance of the appropriate class based on discriminator value
1772
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1773
+ * @returns {TelephonyLoginRequest_device}
1774
+ */
1775
+ // @ts-ignore
1776
+ export function createTelephonyLoginRequest_deviceFromDiscriminatorValue(parseNode) {
1777
+ return deserializeIntoTelephonyLoginRequest_device;
1778
+ }
1770
1779
  /**
1771
1780
  * Creates a new instance of the appropriate class based on discriminator value
1772
1781
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1794,6 +1803,24 @@ export function createTelephonyLoginResponseFromDiscriminatorValue(parseNode) {
1794
1803
  export function createTenDlcApplicationDraftFromDiscriminatorValue(parseNode) {
1795
1804
  return deserializeIntoTenDlcApplicationDraft;
1796
1805
  }
1806
+ /**
1807
+ * Creates a new instance of the appropriate class based on discriminator value
1808
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1809
+ * @returns {TransactionResponse_business}
1810
+ */
1811
+ // @ts-ignore
1812
+ export function createTransactionResponse_businessFromDiscriminatorValue(parseNode) {
1813
+ return deserializeIntoTransactionResponse_business;
1814
+ }
1815
+ /**
1816
+ * Creates a new instance of the appropriate class based on discriminator value
1817
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1818
+ * @returns {TransactionResponse_lead}
1819
+ */
1820
+ // @ts-ignore
1821
+ export function createTransactionResponse_leadFromDiscriminatorValue(parseNode) {
1822
+ return deserializeIntoTransactionResponse_lead;
1823
+ }
1797
1824
  /**
1798
1825
  * Creates a new instance of the appropriate class based on discriminator value
1799
1826
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1803,6 +1830,24 @@ export function createTenDlcApplicationDraftFromDiscriminatorValue(parseNode) {
1803
1830
  export function createTransactionResponseFromDiscriminatorValue(parseNode) {
1804
1831
  return deserializeIntoTransactionResponse;
1805
1832
  }
1833
+ /**
1834
+ * Creates a new instance of the appropriate class based on discriminator value
1835
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1836
+ * @returns {TransactionTableRow_business}
1837
+ */
1838
+ // @ts-ignore
1839
+ export function createTransactionTableRow_businessFromDiscriminatorValue(parseNode) {
1840
+ return deserializeIntoTransactionTableRow_business;
1841
+ }
1842
+ /**
1843
+ * Creates a new instance of the appropriate class based on discriminator value
1844
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1845
+ * @returns {TransactionTableRow_lead}
1846
+ */
1847
+ // @ts-ignore
1848
+ export function createTransactionTableRow_leadFromDiscriminatorValue(parseNode) {
1849
+ return deserializeIntoTransactionTableRow_lead;
1850
+ }
1806
1851
  /**
1807
1852
  * Creates a new instance of the appropriate class based on discriminator value
1808
1853
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1830,6 +1875,33 @@ export function createTrustedFormCertificateFromDiscriminatorValue(parseNode) {
1830
1875
  export function createUsageCounterLineFromDiscriminatorValue(parseNode) {
1831
1876
  return deserializeIntoUsageCounterLine;
1832
1877
  }
1878
+ /**
1879
+ * Creates a new instance of the appropriate class based on discriminator value
1880
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1881
+ * @returns {UsageLedgerTableRow_business}
1882
+ */
1883
+ // @ts-ignore
1884
+ export function createUsageLedgerTableRow_businessFromDiscriminatorValue(parseNode) {
1885
+ return deserializeIntoUsageLedgerTableRow_business;
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 {UsageLedgerTableRow_lead}
1891
+ */
1892
+ // @ts-ignore
1893
+ export function createUsageLedgerTableRow_leadFromDiscriminatorValue(parseNode) {
1894
+ return deserializeIntoUsageLedgerTableRow_lead;
1895
+ }
1896
+ /**
1897
+ * Creates a new instance of the appropriate class based on discriminator value
1898
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1899
+ * @returns {UsageLedgerTableRow_user}
1900
+ */
1901
+ // @ts-ignore
1902
+ export function createUsageLedgerTableRow_userFromDiscriminatorValue(parseNode) {
1903
+ return deserializeIntoUsageLedgerTableRow_user;
1904
+ }
1833
1905
  /**
1834
1906
  * Creates a new instance of the appropriate class based on discriminator value
1835
1907
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2022,7 +2094,7 @@ export function deserializeIntoActivationDomainOption(activationDomainOption = {
2022
2094
  // @ts-ignore
2023
2095
  export function deserializeIntoActivationTimelineEvent(activationTimelineEvent = {}) {
2024
2096
  return {
2025
- "actorName": n => { activationTimelineEvent.actorName = n.getStringValue(); },
2097
+ "actor": n => { activationTimelineEvent.actor = n.getObjectValue(createActivationTimelineEvent_actorFromDiscriminatorValue); },
2026
2098
  "createdAt": n => { activationTimelineEvent.createdAt = n.getDateValue(); },
2027
2099
  "details": n => { activationTimelineEvent.details = n.getStringValue(); },
2028
2100
  "failureReason": n => { activationTimelineEvent.failureReason = n.getStringValue(); },
@@ -2032,6 +2104,17 @@ export function deserializeIntoActivationTimelineEvent(activationTimelineEvent =
2032
2104
  "type": n => { activationTimelineEvent.type = n.getStringValue(); },
2033
2105
  };
2034
2106
  }
2107
+ /**
2108
+ * The deserialization information for the current model
2109
+ * @param ActivationTimelineEvent_actor The instance to deserialize into.
2110
+ * @returns {Record<string, (node: ParseNode) => void>}
2111
+ */
2112
+ // @ts-ignore
2113
+ export function deserializeIntoActivationTimelineEvent_actor(activationTimelineEvent_actor = {}) {
2114
+ return {
2115
+ ...deserializeIntoIdNamePair(activationTimelineEvent_actor),
2116
+ };
2117
+ }
2035
2118
  /**
2036
2119
  * The deserialization information for the current model
2037
2120
  * @param AnalyticsComparison The instance to deserialize into.
@@ -2501,13 +2584,11 @@ export function deserializeIntoAutomationWorkflowEventResponse(automationWorkflo
2501
2584
  export function deserializeIntoAutomationWorkflowRunResponse(automationWorkflowRunResponse = {}) {
2502
2585
  return {
2503
2586
  "actions": n => { automationWorkflowRunResponse.actions = n.getCollectionOfObjectValues(createAutomationWorkflowActionResponseFromDiscriminatorValue); },
2504
- "automationId": n => { automationWorkflowRunResponse.automationId = n.getStringValue(); },
2505
- "automationName": n => { automationWorkflowRunResponse.automationName = n.getStringValue(); },
2587
+ "automation": n => { automationWorkflowRunResponse.automation = n.getObjectValue(createAutomationWorkflowRunResponse_automationFromDiscriminatorValue); },
2506
2588
  "businessId": n => { automationWorkflowRunResponse.businessId = n.getStringValue(); },
2507
2589
  "cancelledAt": n => { automationWorkflowRunResponse.cancelledAt = n.getDateValue(); },
2508
2590
  "completedAt": n => { automationWorkflowRunResponse.completedAt = n.getDateValue(); },
2509
- "currentStepId": n => { automationWorkflowRunResponse.currentStepId = n.getStringValue(); },
2510
- "currentStepName": n => { automationWorkflowRunResponse.currentStepName = n.getStringValue(); },
2591
+ "currentStep": n => { automationWorkflowRunResponse.currentStep = n.getObjectValue(createAutomationWorkflowRunResponse_currentStepFromDiscriminatorValue); },
2511
2592
  "currentStepOrder": n => { automationWorkflowRunResponse.currentStepOrder = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2512
2593
  "events": n => { automationWorkflowRunResponse.events = n.getCollectionOfObjectValues(createAutomationWorkflowEventResponseFromDiscriminatorValue); },
2513
2594
  "failedAt": n => { automationWorkflowRunResponse.failedAt = n.getDateValue(); },
@@ -2531,6 +2612,28 @@ export function deserializeIntoAutomationWorkflowRunResponse(automationWorkflowR
2531
2612
  "updatedAt": n => { automationWorkflowRunResponse.updatedAt = n.getDateValue(); },
2532
2613
  };
2533
2614
  }
2615
+ /**
2616
+ * The deserialization information for the current model
2617
+ * @param AutomationWorkflowRunResponse_automation The instance to deserialize into.
2618
+ * @returns {Record<string, (node: ParseNode) => void>}
2619
+ */
2620
+ // @ts-ignore
2621
+ export function deserializeIntoAutomationWorkflowRunResponse_automation(automationWorkflowRunResponse_automation = {}) {
2622
+ return {
2623
+ ...deserializeIntoIdNamePair(automationWorkflowRunResponse_automation),
2624
+ };
2625
+ }
2626
+ /**
2627
+ * The deserialization information for the current model
2628
+ * @param AutomationWorkflowRunResponse_currentStep The instance to deserialize into.
2629
+ * @returns {Record<string, (node: ParseNode) => void>}
2630
+ */
2631
+ // @ts-ignore
2632
+ export function deserializeIntoAutomationWorkflowRunResponse_currentStep(automationWorkflowRunResponse_currentStep = {}) {
2633
+ return {
2634
+ ...deserializeIntoIdNamePair(automationWorkflowRunResponse_currentStep),
2635
+ };
2636
+ }
2534
2637
  /**
2535
2638
  * The deserialization information for the current model
2536
2639
  * @param AutomationWorkflowStatusResponse The instance to deserialize into.
@@ -2638,8 +2741,7 @@ export function deserializeIntoBusinessInvitationRequest(businessInvitationReque
2638
2741
  export function deserializeIntoBusinessInvitationResponse(businessInvitationResponse = {}) {
2639
2742
  return {
2640
2743
  "acceptedAt": n => { businessInvitationResponse.acceptedAt = n.getDateValue(); },
2641
- "businessId": n => { businessInvitationResponse.businessId = n.getStringValue(); },
2642
- "businessName": n => { businessInvitationResponse.businessName = n.getStringValue(); },
2744
+ "business": n => { businessInvitationResponse.business = n.getObjectValue(createIdNamePairFromDiscriminatorValue); },
2643
2745
  "createdAt": n => { businessInvitationResponse.createdAt = n.getDateValue(); },
2644
2746
  "email": n => { businessInvitationResponse.email = n.getStringValue(); },
2645
2747
  "expiresAt": n => { businessInvitationResponse.expiresAt = n.getDateValue(); },
@@ -2667,8 +2769,7 @@ export function deserializeIntoBusinessInvitationResponse(businessInvitationResp
2667
2769
  export function deserializeIntoBusinessInvitationTableRow(businessInvitationTableRow = {}) {
2668
2770
  return {
2669
2771
  "acceptedAt": n => { businessInvitationTableRow.acceptedAt = n.getDateValue(); },
2670
- "businessId": n => { businessInvitationTableRow.businessId = n.getStringValue(); },
2671
- "businessName": n => { businessInvitationTableRow.businessName = n.getStringValue(); },
2772
+ "business": n => { businessInvitationTableRow.business = n.getObjectValue(createIdNamePairFromDiscriminatorValue); },
2672
2773
  "createdAt": n => { businessInvitationTableRow.createdAt = n.getDateValue(); },
2673
2774
  "email": n => { businessInvitationTableRow.email = n.getStringValue(); },
2674
2775
  "expiresAt": n => { businessInvitationTableRow.expiresAt = n.getDateValue(); },
@@ -2925,8 +3026,7 @@ export function deserializeIntoBusinessTableRow(businessTableRow = {}) {
2925
3026
  "apiKeyPreview": n => { businessTableRow.apiKeyPreview = n.getStringValue(); },
2926
3027
  "apiKeyTotalUses": n => { businessTableRow.apiKeyTotalUses = n.getNumberValue(); },
2927
3028
  "billingPlan": n => { businessTableRow.billingPlan = n.getEnumValue(BusinessTableRow_billingPlanObject); },
2928
- "businessId": n => { businessTableRow.businessId = n.getStringValue(); },
2929
- "businessName": n => { businessTableRow.businessName = n.getStringValue(); },
3029
+ "business": n => { businessTableRow.business = n.getObjectValue(createBusinessTableRow_businessFromDiscriminatorValue); },
2930
3030
  "enabled": n => { businessTableRow.enabled = n.getBooleanValue(); },
2931
3031
  "id": n => { businessTableRow.id = n.getStringValue(); },
2932
3032
  "industry": n => { businessTableRow.industry = n.getStringValue(); },
@@ -2942,12 +3042,21 @@ export function deserializeIntoBusinessTableRow(businessTableRow = {}) {
2942
3042
  "subscriptionStatus": n => { businessTableRow.subscriptionStatus = n.getEnumValue(BusinessTableRow_subscriptionStatusObject); },
2943
3043
  "tenDlcStatus": n => { businessTableRow.tenDlcStatus = n.getEnumValue(BusinessTableRow_tenDlcStatusObject); },
2944
3044
  "userCount": n => { businessTableRow.userCount = n.getNumberValue(); },
2945
- "userId": n => { businessTableRow.userId = n.getStringValue(); },
2946
- "userName": n => { businessTableRow.userName = n.getStringValue(); },
2947
3045
  "website": n => { businessTableRow.website = n.getStringValue(); },
2948
3046
  "websiteStatus": n => { businessTableRow.websiteStatus = n.getEnumValue(BusinessTableRow_websiteStatusObject); },
2949
3047
  };
2950
3048
  }
3049
+ /**
3050
+ * The deserialization information for the current model
3051
+ * @param BusinessTableRow_business The instance to deserialize into.
3052
+ * @returns {Record<string, (node: ParseNode) => void>}
3053
+ */
3054
+ // @ts-ignore
3055
+ export function deserializeIntoBusinessTableRow_business(businessTableRow_business = {}) {
3056
+ return {
3057
+ ...deserializeIntoIdNamePair(businessTableRow_business),
3058
+ };
3059
+ }
2951
3060
  /**
2952
3061
  * The deserialization information for the current model
2953
3062
  * @param BusinessUserRequest The instance to deserialize into.
@@ -2999,9 +3108,8 @@ export function deserializeIntoBusinessUserTableRow(businessUserTableRow = {}) {
2999
3108
  "licenseBillingStatus": n => { businessUserTableRow.licenseBillingStatus = n.getStringValue(); },
3000
3109
  "licenseRenewalDate": n => { businessUserTableRow.licenseRenewalDate = n.getDateValue(); },
3001
3110
  "role": n => { businessUserTableRow.role = n.getEnumValue(BusinessUserRoleObject); },
3111
+ "user": n => { businessUserTableRow.user = n.getObjectValue(createIdNamePairFromDiscriminatorValue); },
3002
3112
  "userEmail": n => { businessUserTableRow.userEmail = n.getStringValue(); },
3003
- "userId": n => { businessUserTableRow.userId = n.getStringValue(); },
3004
- "userName": n => { businessUserTableRow.userName = n.getStringValue(); },
3005
3113
  };
3006
3114
  }
3007
3115
  /**
@@ -3992,8 +4100,7 @@ export function deserializeIntoLeadTableRow(leadTableRow = {}) {
3992
4100
  "archivedAt": n => { leadTableRow.archivedAt = n.getDateValue(); },
3993
4101
  "archivedByUserId": n => { leadTableRow.archivedByUserId = n.getStringValue(); },
3994
4102
  "archiveReason": n => { leadTableRow.archiveReason = n.getNumberValue(); },
3995
- "businessId": n => { leadTableRow.businessId = n.getStringValue(); },
3996
- "businessName": n => { leadTableRow.businessName = n.getStringValue(); },
4103
+ "business": n => { leadTableRow.business = n.getObjectValue(createLeadTableRow_businessFromDiscriminatorValue); },
3997
4104
  "createdAt": n => { leadTableRow.createdAt = n.getDateValue(); },
3998
4105
  "currentDisposition": n => { leadTableRow.currentDisposition = n.getObjectValue(createLeadTableRow_currentDispositionFromDiscriminatorValue); },
3999
4106
  "email": n => { leadTableRow.email = n.getStringValue(); },
@@ -4004,14 +4111,24 @@ export function deserializeIntoLeadTableRow(leadTableRow = {}) {
4004
4111
  "lastName": n => { leadTableRow.lastName = n.getStringValue(); },
4005
4112
  "phone": n => { leadTableRow.phone = n.getStringValue(); },
4006
4113
  "price": n => { leadTableRow.price = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4007
- "sourceId": n => { leadTableRow.sourceId = n.getStringValue(); },
4008
- "sourceName": n => { leadTableRow.sourceName = n.getStringValue(); },
4114
+ "source": n => { leadTableRow.source = n.getObjectValue(createLeadTableRow_sourceFromDiscriminatorValue); },
4009
4115
  "status": n => { leadTableRow.status = n.getStringValue(); },
4010
4116
  "statusTone": n => { leadTableRow.statusTone = n.getStringValue(); },
4011
4117
  "tags": n => { leadTableRow.tags = n.getCollectionOfObjectValues(createTagSummaryFromDiscriminatorValue); },
4012
4118
  "updatedAt": n => { leadTableRow.updatedAt = n.getDateValue(); },
4013
4119
  };
4014
4120
  }
4121
+ /**
4122
+ * The deserialization information for the current model
4123
+ * @param LeadTableRow_business The instance to deserialize into.
4124
+ * @returns {Record<string, (node: ParseNode) => void>}
4125
+ */
4126
+ // @ts-ignore
4127
+ export function deserializeIntoLeadTableRow_business(leadTableRow_business = {}) {
4128
+ return {
4129
+ ...deserializeIntoIdNamePair(leadTableRow_business),
4130
+ };
4131
+ }
4015
4132
  /**
4016
4133
  * The deserialization information for the current model
4017
4134
  * @param LeadTableRow_currentDisposition The instance to deserialize into.
@@ -4023,6 +4140,17 @@ export function deserializeIntoLeadTableRow_currentDisposition(leadTableRow_curr
4023
4140
  ...deserializeIntoCurrentDispositionSummary(leadTableRow_currentDisposition),
4024
4141
  };
4025
4142
  }
4143
+ /**
4144
+ * The deserialization information for the current model
4145
+ * @param LeadTableRow_source The instance to deserialize into.
4146
+ * @returns {Record<string, (node: ParseNode) => void>}
4147
+ */
4148
+ // @ts-ignore
4149
+ export function deserializeIntoLeadTableRow_source(leadTableRow_source = {}) {
4150
+ return {
4151
+ ...deserializeIntoIdNamePair(leadTableRow_source),
4152
+ };
4153
+ }
4026
4154
  /**
4027
4155
  * The deserialization information for the current model
4028
4156
  * @param LeadTagsRequest The instance to deserialize into.
@@ -4044,8 +4172,7 @@ export function deserializeIntoLeadTagsRequest(leadTagsRequest = {}) {
4044
4172
  // @ts-ignore
4045
4173
  export function deserializeIntoMobileDevicePreferences(mobileDevicePreferences = {}) {
4046
4174
  return {
4047
- "deviceId": n => { mobileDevicePreferences.deviceId = n.getStringValue(); },
4048
- "deviceName": n => { mobileDevicePreferences.deviceName = n.getStringValue(); },
4175
+ "device": n => { mobileDevicePreferences.device = n.getObjectValue(createIdNamePairFromDiscriminatorValue); },
4049
4176
  "inboundPhoneCallsEnabled": n => { mobileDevicePreferences.inboundPhoneCallsEnabled = n.getBooleanValue(); },
4050
4177
  "updatedAt": n => { mobileDevicePreferences.updatedAt = n.getDateValue(); },
4051
4178
  };
@@ -4377,23 +4504,11 @@ export function deserializeIntoPagedResultOfUsageLedgerTableRow(pagedResultOfUsa
4377
4504
  // @ts-ignore
4378
4505
  export function deserializeIntoPhone(phone = {}) {
4379
4506
  return {
4380
- "lookup": n => { phone.lookup = n.getObjectValue(createPhone_lookupFromDiscriminatorValue); },
4381
4507
  "number": n => { phone.number = n.getStringValue(); },
4382
4508
  "phoneIdentityId": n => { phone.phoneIdentityId = n.getStringValue(); },
4383
4509
  "type": n => { phone.type = n.getStringValue(); },
4384
4510
  };
4385
4511
  }
4386
- /**
4387
- * The deserialization information for the current model
4388
- * @param Phone_lookup The instance to deserialize into.
4389
- * @returns {Record<string, (node: ParseNode) => void>}
4390
- */
4391
- // @ts-ignore
4392
- export function deserializeIntoPhone_lookup(phone_lookup = {}) {
4393
- return {
4394
- ...deserializeIntoPhoneLookup(phone_lookup),
4395
- };
4396
- }
4397
4512
  /**
4398
4513
  * The deserialization information for the current model
4399
4514
  * @param PhoneCallResponse The instance to deserialize into.
@@ -4429,62 +4544,6 @@ export function deserializeIntoPhoneCallResponse(phoneCallResponse = {}) {
4429
4544
  "wasManuallyOverridden": n => { phoneCallResponse.wasManuallyOverridden = n.getBooleanValue(); },
4430
4545
  };
4431
4546
  }
4432
- /**
4433
- * The deserialization information for the current model
4434
- * @param PhoneLookup The instance to deserialize into.
4435
- * @returns {Record<string, (node: ParseNode) => void>}
4436
- */
4437
- // @ts-ignore
4438
- export function deserializeIntoPhoneLookup(phoneLookup = {}) {
4439
- return {
4440
- "carrier": n => { phoneLookup.carrier = n.getObjectValue(createPhoneLookup_carrierFromDiscriminatorValue); },
4441
- "createdAt": n => { phoneLookup.createdAt = n.getDateValue(); },
4442
- "id": n => { phoneLookup.id = n.getStringValue(); },
4443
- "isValid": n => { phoneLookup.isValid = n.getBooleanValue(); },
4444
- "lineType": n => { phoneLookup.lineType = n.getEnumValue(PhoneLookup_lineTypeObject); },
4445
- "location": n => { phoneLookup.location = n.getObjectValue(createPhoneLookup_locationFromDiscriminatorValue); },
4446
- "modifiedAt": n => { phoneLookup.modifiedAt = n.getDateValue(); },
4447
- "number": n => { phoneLookup.number = n.getStringValue(); },
4448
- };
4449
- }
4450
- /**
4451
- * The deserialization information for the current model
4452
- * @param PhoneLookup_carrier The instance to deserialize into.
4453
- * @returns {Record<string, (node: ParseNode) => void>}
4454
- */
4455
- // @ts-ignore
4456
- export function deserializeIntoPhoneLookup_carrier(phoneLookup_carrier = {}) {
4457
- return {
4458
- ...deserializeIntoPhoneLookupCarrier(phoneLookup_carrier),
4459
- };
4460
- }
4461
- /**
4462
- * The deserialization information for the current model
4463
- * @param PhoneLookup_location The instance to deserialize into.
4464
- * @returns {Record<string, (node: ParseNode) => void>}
4465
- */
4466
- // @ts-ignore
4467
- export function deserializeIntoPhoneLookup_location(phoneLookup_location = {}) {
4468
- return {
4469
- ...deserializeIntoPhoneNumberLocation(phoneLookup_location),
4470
- };
4471
- }
4472
- /**
4473
- * The deserialization information for the current model
4474
- * @param PhoneLookupCarrier The instance to deserialize into.
4475
- * @returns {Record<string, (node: ParseNode) => void>}
4476
- */
4477
- // @ts-ignore
4478
- export function deserializeIntoPhoneLookupCarrier(phoneLookupCarrier = {}) {
4479
- return {
4480
- "errorCode": n => { phoneLookupCarrier.errorCode = n.getStringValue(); },
4481
- "mobileCountryCode": n => { phoneLookupCarrier.mobileCountryCode = n.getStringValue(); },
4482
- "mobileNetworkCode": n => { phoneLookupCarrier.mobileNetworkCode = n.getStringValue(); },
4483
- "name": n => { phoneLookupCarrier.name = n.getStringValue(); },
4484
- "normalizedCarrier": n => { phoneLookupCarrier.normalizedCarrier = n.getStringValue(); },
4485
- "type": n => { phoneLookupCarrier.type = n.getEnumValue(PhoneLookupCarrier_typeObject); },
4486
- };
4487
- }
4488
4547
  /**
4489
4548
  * The deserialization information for the current model
4490
4549
  * @param PhoneNumberAvailabilityRequest The instance to deserialize into.
@@ -4610,10 +4669,10 @@ export function deserializeIntoPhoneNumberResponse(phoneNumberResponse = {}) {
4610
4669
  "enabled": n => { phoneNumberResponse.enabled = n.getBooleanValue(); },
4611
4670
  "id": n => { phoneNumberResponse.id = n.getStringValue(); },
4612
4671
  "leadpingOwned": n => { phoneNumberResponse.leadpingOwned = n.getBooleanValue(); },
4613
- "location": n => { phoneNumberResponse.location = n.getObjectValue(createPhoneNumberResponse_locationFromDiscriminatorValue); },
4614
4672
  "modifiedAt": n => { phoneNumberResponse.modifiedAt = n.getDateValue(); },
4615
4673
  "name": n => { phoneNumberResponse.name = n.getStringValue(); },
4616
4674
  "number": n => { phoneNumberResponse.number = n.getStringValue(); },
4675
+ "phoneIdentityId": n => { phoneNumberResponse.phoneIdentityId = n.getStringValue(); },
4617
4676
  "routing": n => { phoneNumberResponse.routing = n.getObjectValue(createPhoneNumberRoutingMetadataFromDiscriminatorValue); },
4618
4677
  "warmup": n => { phoneNumberResponse.warmup = n.getObjectValue(createPhoneNumberWarmupFromDiscriminatorValue); },
4619
4678
  };
@@ -4629,17 +4688,6 @@ export function deserializeIntoPhoneNumberResponse_business(phoneNumberResponse_
4629
4688
  ...deserializeIntoIdNamePair(phoneNumberResponse_business),
4630
4689
  };
4631
4690
  }
4632
- /**
4633
- * The deserialization information for the current model
4634
- * @param PhoneNumberResponse_location The instance to deserialize into.
4635
- * @returns {Record<string, (node: ParseNode) => void>}
4636
- */
4637
- // @ts-ignore
4638
- export function deserializeIntoPhoneNumberResponse_location(phoneNumberResponse_location = {}) {
4639
- return {
4640
- ...deserializeIntoPhoneNumberLocation(phoneNumberResponse_location),
4641
- };
4642
- }
4643
4691
  /**
4644
4692
  * The deserialization information for the current model
4645
4693
  * @param PhoneNumberRoutingMetadata The instance to deserialize into.
@@ -4764,7 +4812,6 @@ export function deserializeIntoPhoneNumberTableRow(phoneNumberTableRow = {}) {
4764
4812
  "businessId": n => { phoneNumberTableRow.businessId = n.getStringValue(); },
4765
4813
  "enabled": n => { phoneNumberTableRow.enabled = n.getBooleanValue(); },
4766
4814
  "id": n => { phoneNumberTableRow.id = n.getStringValue(); },
4767
- "location": n => { phoneNumberTableRow.location = n.getStringValue(); },
4768
4815
  "name": n => { phoneNumberTableRow.name = n.getStringValue(); },
4769
4816
  "number": n => { phoneNumberTableRow.number = n.getStringValue(); },
4770
4817
  "ownership": n => { phoneNumberTableRow.ownership = n.getStringValue(); },
@@ -4921,8 +4968,7 @@ export function deserializeIntoSmsEventTableRow(smsEventTableRow = {}) {
4921
4968
  "fromPhoneNumberId": n => { smsEventTableRow.fromPhoneNumberId = n.getStringValue(); },
4922
4969
  "id": n => { smsEventTableRow.id = n.getStringValue(); },
4923
4970
  "isAutomated": n => { smsEventTableRow.isAutomated = n.getBooleanValue(); },
4924
- "leadId": n => { smsEventTableRow.leadId = n.getStringValue(); },
4925
- "leadName": n => { smsEventTableRow.leadName = n.getStringValue(); },
4971
+ "lead": n => { smsEventTableRow.lead = n.getObjectValue(createIdNamePairFromDiscriminatorValue); },
4926
4972
  "outboundPhoneNumberId": n => { smsEventTableRow.outboundPhoneNumberId = n.getStringValue(); },
4927
4973
  "outboundSource": n => { smsEventTableRow.outboundSource = n.getEnumValue(SmsEventTableRow_outboundSourceObject); },
4928
4974
  "queuedAt": n => { smsEventTableRow.queuedAt = n.getDateValue(); },
@@ -5380,8 +5426,18 @@ export function deserializeIntoTagSummary(tagSummary = {}) {
5380
5426
  // @ts-ignore
5381
5427
  export function deserializeIntoTelephonyLoginRequest(telephonyLoginRequest = {}) {
5382
5428
  return {
5383
- "deviceId": n => { telephonyLoginRequest.deviceId = n.getStringValue(); },
5384
- "deviceName": n => { telephonyLoginRequest.deviceName = n.getStringValue(); },
5429
+ "device": n => { telephonyLoginRequest.device = n.getObjectValue(createTelephonyLoginRequest_deviceFromDiscriminatorValue); },
5430
+ };
5431
+ }
5432
+ /**
5433
+ * The deserialization information for the current model
5434
+ * @param TelephonyLoginRequest_device The instance to deserialize into.
5435
+ * @returns {Record<string, (node: ParseNode) => void>}
5436
+ */
5437
+ // @ts-ignore
5438
+ export function deserializeIntoTelephonyLoginRequest_device(telephonyLoginRequest_device = {}) {
5439
+ return {
5440
+ ...deserializeIntoIdNamePair(telephonyLoginRequest_device),
5385
5441
  };
5386
5442
  }
5387
5443
  /**
@@ -5438,17 +5494,14 @@ export function deserializeIntoTenDlcApplicationDraft(tenDlcApplicationDraft = {
5438
5494
  // @ts-ignore
5439
5495
  export function deserializeIntoTransactionResponse(transactionResponse = {}) {
5440
5496
  return {
5441
- "accountName": n => { transactionResponse.accountName = n.getStringValue(); },
5442
5497
  "amount": n => { transactionResponse.amount = n.getNumberValue(); },
5443
- "businessId": n => { transactionResponse.businessId = n.getStringValue(); },
5444
- "businessName": n => { transactionResponse.businessName = n.getStringValue(); },
5498
+ "business": n => { transactionResponse.business = n.getObjectValue(createTransactionResponse_businessFromDiscriminatorValue); },
5445
5499
  "createdAt": n => { transactionResponse.createdAt = n.getDateValue(); },
5446
5500
  "description": n => { transactionResponse.description = n.getStringValue(); },
5447
5501
  "gatewayFeeAmount": n => { transactionResponse.gatewayFeeAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5448
5502
  "gatewayStatus": n => { transactionResponse.gatewayStatus = n.getStringValue(); },
5449
5503
  "id": n => { transactionResponse.id = n.getStringValue(); },
5450
- "leadId": n => { transactionResponse.leadId = n.getStringValue(); },
5451
- "leadName": n => { transactionResponse.leadName = n.getStringValue(); },
5504
+ "lead": n => { transactionResponse.lead = n.getObjectValue(createTransactionResponse_leadFromDiscriminatorValue); },
5452
5505
  "modifiedAt": n => { transactionResponse.modifiedAt = n.getDateValue(); },
5453
5506
  "netAmount": n => { transactionResponse.netAmount = n.getNumberValue(); },
5454
5507
  "notes": n => { transactionResponse.notes = n.getStringValue(); },
@@ -5458,6 +5511,28 @@ export function deserializeIntoTransactionResponse(transactionResponse = {}) {
5458
5511
  "transactionType": n => { transactionResponse.transactionType = n.getEnumValue(TransactionTypeObject); },
5459
5512
  };
5460
5513
  }
5514
+ /**
5515
+ * The deserialization information for the current model
5516
+ * @param TransactionResponse_business The instance to deserialize into.
5517
+ * @returns {Record<string, (node: ParseNode) => void>}
5518
+ */
5519
+ // @ts-ignore
5520
+ export function deserializeIntoTransactionResponse_business(transactionResponse_business = {}) {
5521
+ return {
5522
+ ...deserializeIntoIdNamePair(transactionResponse_business),
5523
+ };
5524
+ }
5525
+ /**
5526
+ * The deserialization information for the current model
5527
+ * @param TransactionResponse_lead The instance to deserialize into.
5528
+ * @returns {Record<string, (node: ParseNode) => void>}
5529
+ */
5530
+ // @ts-ignore
5531
+ export function deserializeIntoTransactionResponse_lead(transactionResponse_lead = {}) {
5532
+ return {
5533
+ ...deserializeIntoIdNamePair(transactionResponse_lead),
5534
+ };
5535
+ }
5461
5536
  /**
5462
5537
  * The deserialization information for the current model
5463
5538
  * @param TransactionTableRow The instance to deserialize into.
@@ -5466,21 +5541,40 @@ export function deserializeIntoTransactionResponse(transactionResponse = {}) {
5466
5541
  // @ts-ignore
5467
5542
  export function deserializeIntoTransactionTableRow(transactionTableRow = {}) {
5468
5543
  return {
5469
- "accountName": n => { transactionTableRow.accountName = n.getStringValue(); },
5470
5544
  "amount": n => { transactionTableRow.amount = n.getNumberValue(); },
5471
- "businessId": n => { transactionTableRow.businessId = n.getStringValue(); },
5472
- "businessName": n => { transactionTableRow.businessName = n.getStringValue(); },
5545
+ "business": n => { transactionTableRow.business = n.getObjectValue(createTransactionTableRow_businessFromDiscriminatorValue); },
5473
5546
  "createdAt": n => { transactionTableRow.createdAt = n.getDateValue(); },
5474
5547
  "description": n => { transactionTableRow.description = n.getStringValue(); },
5475
5548
  "id": n => { transactionTableRow.id = n.getStringValue(); },
5476
- "leadId": n => { transactionTableRow.leadId = n.getStringValue(); },
5477
- "leadName": n => { transactionTableRow.leadName = n.getStringValue(); },
5549
+ "lead": n => { transactionTableRow.lead = n.getObjectValue(createTransactionTableRow_leadFromDiscriminatorValue); },
5478
5550
  "netAmount": n => { transactionTableRow.netAmount = n.getNumberValue(); },
5479
5551
  "paymentMethodDisplay": n => { transactionTableRow.paymentMethodDisplay = n.getStringValue(); },
5480
5552
  "transactionStatus": n => { transactionTableRow.transactionStatus = n.getEnumValue(TransactionStatusObject); },
5481
5553
  "transactionType": n => { transactionTableRow.transactionType = n.getEnumValue(TransactionTypeObject); },
5482
5554
  };
5483
5555
  }
5556
+ /**
5557
+ * The deserialization information for the current model
5558
+ * @param TransactionTableRow_business The instance to deserialize into.
5559
+ * @returns {Record<string, (node: ParseNode) => void>}
5560
+ */
5561
+ // @ts-ignore
5562
+ export function deserializeIntoTransactionTableRow_business(transactionTableRow_business = {}) {
5563
+ return {
5564
+ ...deserializeIntoIdNamePair(transactionTableRow_business),
5565
+ };
5566
+ }
5567
+ /**
5568
+ * The deserialization information for the current model
5569
+ * @param TransactionTableRow_lead The instance to deserialize into.
5570
+ * @returns {Record<string, (node: ParseNode) => void>}
5571
+ */
5572
+ // @ts-ignore
5573
+ export function deserializeIntoTransactionTableRow_lead(transactionTableRow_lead = {}) {
5574
+ return {
5575
+ ...deserializeIntoIdNamePair(transactionTableRow_lead),
5576
+ };
5577
+ }
5484
5578
  /**
5485
5579
  * The deserialization information for the current model
5486
5580
  * @param TrustedFormCertificate The instance to deserialize into.
@@ -5520,8 +5614,7 @@ export function deserializeIntoUsageLedgerTableRow(usageLedgerTableRow = {}) {
5520
5614
  return {
5521
5615
  "billableSeconds": n => { usageLedgerTableRow.billableSeconds = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5522
5616
  "billableUnit": n => { usageLedgerTableRow.billableUnit = n.getEnumValue(BillableUnitObject); },
5523
- "businessId": n => { usageLedgerTableRow.businessId = n.getStringValue(); },
5524
- "businessName": n => { usageLedgerTableRow.businessName = n.getStringValue(); },
5617
+ "business": n => { usageLedgerTableRow.business = n.getObjectValue(createUsageLedgerTableRow_businessFromDiscriminatorValue); },
5525
5618
  "channel": n => { usageLedgerTableRow.channel = n.getEnumValue(UsageChannelObject); },
5526
5619
  "createdAt": n => { usageLedgerTableRow.createdAt = n.getDateValue(); },
5527
5620
  "customerChargeAmount": n => { usageLedgerTableRow.customerChargeAmount = n.getNumberValue(); },
@@ -5529,16 +5622,47 @@ export function deserializeIntoUsageLedgerTableRow(usageLedgerTableRow = {}) {
5529
5622
  "durationSeconds": n => { usageLedgerTableRow.durationSeconds = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5530
5623
  "id": n => { usageLedgerTableRow.id = n.getStringValue(); },
5531
5624
  "isBillable": n => { usageLedgerTableRow.isBillable = n.getBooleanValue(); },
5532
- "leadId": n => { usageLedgerTableRow.leadId = n.getStringValue(); },
5533
- "leadName": n => { usageLedgerTableRow.leadName = n.getStringValue(); },
5625
+ "lead": n => { usageLedgerTableRow.lead = n.getObjectValue(createUsageLedgerTableRow_leadFromDiscriminatorValue); },
5534
5626
  "phoneNumber": n => { usageLedgerTableRow.phoneNumber = n.getStringValue(); },
5535
5627
  "phoneNumberId": n => { usageLedgerTableRow.phoneNumberId = n.getStringValue(); },
5536
5628
  "quantity": n => { usageLedgerTableRow.quantity = n.getNumberValue(); },
5537
5629
  "smsSegments": n => { usageLedgerTableRow.smsSegments = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5538
5630
  "status": n => { usageLedgerTableRow.status = n.getEnumValue(UsageRecordStatusObject); },
5539
5631
  "unitPrice": n => { usageLedgerTableRow.unitPrice = n.getNumberValue(); },
5540
- "userId": n => { usageLedgerTableRow.userId = n.getStringValue(); },
5541
- "userName": n => { usageLedgerTableRow.userName = n.getStringValue(); },
5632
+ "user": n => { usageLedgerTableRow.user = n.getObjectValue(createUsageLedgerTableRow_userFromDiscriminatorValue); },
5633
+ };
5634
+ }
5635
+ /**
5636
+ * The deserialization information for the current model
5637
+ * @param UsageLedgerTableRow_business The instance to deserialize into.
5638
+ * @returns {Record<string, (node: ParseNode) => void>}
5639
+ */
5640
+ // @ts-ignore
5641
+ export function deserializeIntoUsageLedgerTableRow_business(usageLedgerTableRow_business = {}) {
5642
+ return {
5643
+ ...deserializeIntoIdNamePair(usageLedgerTableRow_business),
5644
+ };
5645
+ }
5646
+ /**
5647
+ * The deserialization information for the current model
5648
+ * @param UsageLedgerTableRow_lead The instance to deserialize into.
5649
+ * @returns {Record<string, (node: ParseNode) => void>}
5650
+ */
5651
+ // @ts-ignore
5652
+ export function deserializeIntoUsageLedgerTableRow_lead(usageLedgerTableRow_lead = {}) {
5653
+ return {
5654
+ ...deserializeIntoIdNamePair(usageLedgerTableRow_lead),
5655
+ };
5656
+ }
5657
+ /**
5658
+ * The deserialization information for the current model
5659
+ * @param UsageLedgerTableRow_user The instance to deserialize into.
5660
+ * @returns {Record<string, (node: ParseNode) => void>}
5661
+ */
5662
+ // @ts-ignore
5663
+ export function deserializeIntoUsageLedgerTableRow_user(usageLedgerTableRow_user = {}) {
5664
+ return {
5665
+ ...deserializeIntoIdNamePair(usageLedgerTableRow_user),
5542
5666
  };
5543
5667
  }
5544
5668
  /**
@@ -5872,7 +5996,7 @@ export function serializeActivationTimelineEvent(writer, activationTimelineEvent
5872
5996
  if (!activationTimelineEvent || isSerializingDerivedType) {
5873
5997
  return;
5874
5998
  }
5875
- writer.writeStringValue("actorName", activationTimelineEvent.actorName);
5999
+ writer.writeObjectValue("actor", activationTimelineEvent.actor, serializeActivationTimelineEvent_actor);
5876
6000
  writer.writeDateValue("createdAt", activationTimelineEvent.createdAt);
5877
6001
  writer.writeStringValue("details", activationTimelineEvent.details);
5878
6002
  writer.writeStringValue("failureReason", activationTimelineEvent.failureReason);
@@ -5882,6 +6006,19 @@ export function serializeActivationTimelineEvent(writer, activationTimelineEvent
5882
6006
  writer.writeStringValue("type", activationTimelineEvent.type);
5883
6007
  writer.writeAdditionalData(activationTimelineEvent.additionalData);
5884
6008
  }
6009
+ /**
6010
+ * Serializes information the current object
6011
+ * @param ActivationTimelineEvent_actor The instance to serialize from.
6012
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
6013
+ * @param writer Serialization writer to use to serialize this model
6014
+ */
6015
+ // @ts-ignore
6016
+ export function serializeActivationTimelineEvent_actor(writer, activationTimelineEvent_actor = {}, isSerializingDerivedType = false) {
6017
+ if (!activationTimelineEvent_actor || isSerializingDerivedType) {
6018
+ return;
6019
+ }
6020
+ serializeIdNamePair(writer, activationTimelineEvent_actor, isSerializingDerivedType);
6021
+ }
5885
6022
  /**
5886
6023
  * Serializes information the current object
5887
6024
  * @param AnalyticsComparison The instance to serialize from.
@@ -6441,13 +6578,11 @@ export function serializeAutomationWorkflowRunResponse(writer, automationWorkflo
6441
6578
  return;
6442
6579
  }
6443
6580
  writer.writeCollectionOfObjectValues("actions", automationWorkflowRunResponse.actions, serializeAutomationWorkflowActionResponse);
6444
- writer.writeStringValue("automationId", automationWorkflowRunResponse.automationId);
6445
- writer.writeStringValue("automationName", automationWorkflowRunResponse.automationName);
6581
+ writer.writeObjectValue("automation", automationWorkflowRunResponse.automation, serializeAutomationWorkflowRunResponse_automation);
6446
6582
  writer.writeStringValue("businessId", automationWorkflowRunResponse.businessId);
6447
6583
  writer.writeDateValue("cancelledAt", automationWorkflowRunResponse.cancelledAt);
6448
6584
  writer.writeDateValue("completedAt", automationWorkflowRunResponse.completedAt);
6449
- writer.writeStringValue("currentStepId", automationWorkflowRunResponse.currentStepId);
6450
- writer.writeStringValue("currentStepName", automationWorkflowRunResponse.currentStepName);
6585
+ writer.writeObjectValue("currentStep", automationWorkflowRunResponse.currentStep, serializeAutomationWorkflowRunResponse_currentStep);
6451
6586
  writer.writeObjectValue("currentStepOrder", automationWorkflowRunResponse.currentStepOrder);
6452
6587
  writer.writeCollectionOfObjectValues("events", automationWorkflowRunResponse.events, serializeAutomationWorkflowEventResponse);
6453
6588
  writer.writeDateValue("failedAt", automationWorkflowRunResponse.failedAt);
@@ -6471,6 +6606,32 @@ export function serializeAutomationWorkflowRunResponse(writer, automationWorkflo
6471
6606
  writer.writeDateValue("updatedAt", automationWorkflowRunResponse.updatedAt);
6472
6607
  writer.writeAdditionalData(automationWorkflowRunResponse.additionalData);
6473
6608
  }
6609
+ /**
6610
+ * Serializes information the current object
6611
+ * @param AutomationWorkflowRunResponse_automation The instance to serialize from.
6612
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
6613
+ * @param writer Serialization writer to use to serialize this model
6614
+ */
6615
+ // @ts-ignore
6616
+ export function serializeAutomationWorkflowRunResponse_automation(writer, automationWorkflowRunResponse_automation = {}, isSerializingDerivedType = false) {
6617
+ if (!automationWorkflowRunResponse_automation || isSerializingDerivedType) {
6618
+ return;
6619
+ }
6620
+ serializeIdNamePair(writer, automationWorkflowRunResponse_automation, isSerializingDerivedType);
6621
+ }
6622
+ /**
6623
+ * Serializes information the current object
6624
+ * @param AutomationWorkflowRunResponse_currentStep The instance to serialize from.
6625
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
6626
+ * @param writer Serialization writer to use to serialize this model
6627
+ */
6628
+ // @ts-ignore
6629
+ export function serializeAutomationWorkflowRunResponse_currentStep(writer, automationWorkflowRunResponse_currentStep = {}, isSerializingDerivedType = false) {
6630
+ if (!automationWorkflowRunResponse_currentStep || isSerializingDerivedType) {
6631
+ return;
6632
+ }
6633
+ serializeIdNamePair(writer, automationWorkflowRunResponse_currentStep, isSerializingDerivedType);
6634
+ }
6474
6635
  /**
6475
6636
  * Serializes information the current object
6476
6637
  * @param AutomationWorkflowStatusResponse The instance to serialize from.
@@ -6595,8 +6756,7 @@ export function serializeBusinessInvitationResponse(writer, businessInvitationRe
6595
6756
  return;
6596
6757
  }
6597
6758
  writer.writeDateValue("acceptedAt", businessInvitationResponse.acceptedAt);
6598
- writer.writeStringValue("businessId", businessInvitationResponse.businessId);
6599
- writer.writeStringValue("businessName", businessInvitationResponse.businessName);
6759
+ writer.writeObjectValue("business", businessInvitationResponse.business, serializeIdNamePair);
6600
6760
  writer.writeDateValue("createdAt", businessInvitationResponse.createdAt);
6601
6761
  writer.writeStringValue("email", businessInvitationResponse.email);
6602
6762
  writer.writeDateValue("expiresAt", businessInvitationResponse.expiresAt);
@@ -6627,8 +6787,7 @@ export function serializeBusinessInvitationTableRow(writer, businessInvitationTa
6627
6787
  return;
6628
6788
  }
6629
6789
  writer.writeDateValue("acceptedAt", businessInvitationTableRow.acceptedAt);
6630
- writer.writeStringValue("businessId", businessInvitationTableRow.businessId);
6631
- writer.writeStringValue("businessName", businessInvitationTableRow.businessName);
6790
+ writer.writeObjectValue("business", businessInvitationTableRow.business, serializeIdNamePair);
6632
6791
  writer.writeDateValue("createdAt", businessInvitationTableRow.createdAt);
6633
6792
  writer.writeStringValue("email", businessInvitationTableRow.email);
6634
6793
  writer.writeDateValue("expiresAt", businessInvitationTableRow.expiresAt);
@@ -6922,8 +7081,7 @@ export function serializeBusinessTableRow(writer, businessTableRow = {}, isSeria
6922
7081
  writer.writeStringValue("apiKeyPreview", businessTableRow.apiKeyPreview);
6923
7082
  writer.writeNumberValue("apiKeyTotalUses", businessTableRow.apiKeyTotalUses);
6924
7083
  writer.writeEnumValue("billingPlan", businessTableRow.billingPlan);
6925
- writer.writeStringValue("businessId", businessTableRow.businessId);
6926
- writer.writeStringValue("businessName", businessTableRow.businessName);
7084
+ writer.writeObjectValue("business", businessTableRow.business, serializeBusinessTableRow_business);
6927
7085
  writer.writeBooleanValue("enabled", businessTableRow.enabled);
6928
7086
  writer.writeStringValue("id", businessTableRow.id);
6929
7087
  writer.writeStringValue("industry", businessTableRow.industry);
@@ -6939,12 +7097,23 @@ export function serializeBusinessTableRow(writer, businessTableRow = {}, isSeria
6939
7097
  writer.writeEnumValue("subscriptionStatus", businessTableRow.subscriptionStatus);
6940
7098
  writer.writeEnumValue("tenDlcStatus", businessTableRow.tenDlcStatus);
6941
7099
  writer.writeNumberValue("userCount", businessTableRow.userCount);
6942
- writer.writeStringValue("userId", businessTableRow.userId);
6943
- writer.writeStringValue("userName", businessTableRow.userName);
6944
7100
  writer.writeStringValue("website", businessTableRow.website);
6945
7101
  writer.writeEnumValue("websiteStatus", businessTableRow.websiteStatus);
6946
7102
  writer.writeAdditionalData(businessTableRow.additionalData);
6947
7103
  }
7104
+ /**
7105
+ * Serializes information the current object
7106
+ * @param BusinessTableRow_business The instance to serialize from.
7107
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
7108
+ * @param writer Serialization writer to use to serialize this model
7109
+ */
7110
+ // @ts-ignore
7111
+ export function serializeBusinessTableRow_business(writer, businessTableRow_business = {}, isSerializingDerivedType = false) {
7112
+ if (!businessTableRow_business || isSerializingDerivedType) {
7113
+ return;
7114
+ }
7115
+ serializeIdNamePair(writer, businessTableRow_business, isSerializingDerivedType);
7116
+ }
6948
7117
  /**
6949
7118
  * Serializes information the current object
6950
7119
  * @param BusinessUserRequest The instance to serialize from.
@@ -7005,9 +7174,8 @@ export function serializeBusinessUserTableRow(writer, businessUserTableRow = {},
7005
7174
  writer.writeStringValue("licenseBillingStatus", businessUserTableRow.licenseBillingStatus);
7006
7175
  writer.writeDateValue("licenseRenewalDate", businessUserTableRow.licenseRenewalDate);
7007
7176
  writer.writeEnumValue("role", businessUserTableRow.role);
7177
+ writer.writeObjectValue("user", businessUserTableRow.user, serializeIdNamePair);
7008
7178
  writer.writeStringValue("userEmail", businessUserTableRow.userEmail);
7009
- writer.writeStringValue("userId", businessUserTableRow.userId);
7010
- writer.writeStringValue("userName", businessUserTableRow.userName);
7011
7179
  writer.writeAdditionalData(businessUserTableRow.additionalData);
7012
7180
  }
7013
7181
  /**
@@ -8150,8 +8318,7 @@ export function serializeLeadTableRow(writer, leadTableRow = {}, isSerializingDe
8150
8318
  writer.writeDateValue("archivedAt", leadTableRow.archivedAt);
8151
8319
  writer.writeStringValue("archivedByUserId", leadTableRow.archivedByUserId);
8152
8320
  writer.writeNumberValue("archiveReason", leadTableRow.archiveReason);
8153
- writer.writeStringValue("businessId", leadTableRow.businessId);
8154
- writer.writeStringValue("businessName", leadTableRow.businessName);
8321
+ writer.writeObjectValue("business", leadTableRow.business, serializeLeadTableRow_business);
8155
8322
  writer.writeDateValue("createdAt", leadTableRow.createdAt);
8156
8323
  writer.writeObjectValue("currentDisposition", leadTableRow.currentDisposition, serializeLeadTableRow_currentDisposition);
8157
8324
  writer.writeStringValue("email", leadTableRow.email);
@@ -8162,14 +8329,26 @@ export function serializeLeadTableRow(writer, leadTableRow = {}, isSerializingDe
8162
8329
  writer.writeStringValue("lastName", leadTableRow.lastName);
8163
8330
  writer.writeStringValue("phone", leadTableRow.phone);
8164
8331
  writer.writeObjectValue("price", leadTableRow.price);
8165
- writer.writeStringValue("sourceId", leadTableRow.sourceId);
8166
- writer.writeStringValue("sourceName", leadTableRow.sourceName);
8332
+ writer.writeObjectValue("source", leadTableRow.source, serializeLeadTableRow_source);
8167
8333
  writer.writeStringValue("status", leadTableRow.status);
8168
8334
  writer.writeStringValue("statusTone", leadTableRow.statusTone);
8169
8335
  writer.writeCollectionOfObjectValues("tags", leadTableRow.tags, serializeTagSummary);
8170
8336
  writer.writeDateValue("updatedAt", leadTableRow.updatedAt);
8171
8337
  writer.writeAdditionalData(leadTableRow.additionalData);
8172
8338
  }
8339
+ /**
8340
+ * Serializes information the current object
8341
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8342
+ * @param LeadTableRow_business The instance to serialize from.
8343
+ * @param writer Serialization writer to use to serialize this model
8344
+ */
8345
+ // @ts-ignore
8346
+ export function serializeLeadTableRow_business(writer, leadTableRow_business = {}, isSerializingDerivedType = false) {
8347
+ if (!leadTableRow_business || isSerializingDerivedType) {
8348
+ return;
8349
+ }
8350
+ serializeIdNamePair(writer, leadTableRow_business, isSerializingDerivedType);
8351
+ }
8173
8352
  /**
8174
8353
  * Serializes information the current object
8175
8354
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -8183,6 +8362,19 @@ export function serializeLeadTableRow_currentDisposition(writer, leadTableRow_cu
8183
8362
  }
8184
8363
  serializeCurrentDispositionSummary(writer, leadTableRow_currentDisposition, isSerializingDerivedType);
8185
8364
  }
8365
+ /**
8366
+ * Serializes information the current object
8367
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8368
+ * @param LeadTableRow_source The instance to serialize from.
8369
+ * @param writer Serialization writer to use to serialize this model
8370
+ */
8371
+ // @ts-ignore
8372
+ export function serializeLeadTableRow_source(writer, leadTableRow_source = {}, isSerializingDerivedType = false) {
8373
+ if (!leadTableRow_source || isSerializingDerivedType) {
8374
+ return;
8375
+ }
8376
+ serializeIdNamePair(writer, leadTableRow_source, isSerializingDerivedType);
8377
+ }
8186
8378
  /**
8187
8379
  * Serializes information the current object
8188
8380
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -8210,8 +8402,7 @@ export function serializeMobileDevicePreferences(writer, mobileDevicePreferences
8210
8402
  if (!mobileDevicePreferences || isSerializingDerivedType) {
8211
8403
  return;
8212
8404
  }
8213
- writer.writeStringValue("deviceId", mobileDevicePreferences.deviceId);
8214
- writer.writeStringValue("deviceName", mobileDevicePreferences.deviceName);
8405
+ writer.writeObjectValue("device", mobileDevicePreferences.device, serializeIdNamePair);
8215
8406
  writer.writeBooleanValue("inboundPhoneCallsEnabled", mobileDevicePreferences.inboundPhoneCallsEnabled);
8216
8407
  writer.writeDateValue("updatedAt", mobileDevicePreferences.updatedAt);
8217
8408
  writer.writeAdditionalData(mobileDevicePreferences.additionalData);
@@ -8606,25 +8797,11 @@ export function serializePhone(writer, phone = {}, isSerializingDerivedType = fa
8606
8797
  if (!phone || isSerializingDerivedType) {
8607
8798
  return;
8608
8799
  }
8609
- writer.writeObjectValue("lookup", phone.lookup, serializePhone_lookup);
8610
8800
  writer.writeStringValue("number", phone.number);
8611
8801
  writer.writeStringValue("phoneIdentityId", phone.phoneIdentityId);
8612
8802
  writer.writeStringValue("type", phone.type);
8613
8803
  writer.writeAdditionalData(phone.additionalData);
8614
8804
  }
8615
- /**
8616
- * Serializes information the current object
8617
- * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8618
- * @param Phone_lookup The instance to serialize from.
8619
- * @param writer Serialization writer to use to serialize this model
8620
- */
8621
- // @ts-ignore
8622
- export function serializePhone_lookup(writer, phone_lookup = {}, isSerializingDerivedType = false) {
8623
- if (!phone_lookup || isSerializingDerivedType) {
8624
- return;
8625
- }
8626
- serializePhoneLookup(writer, phone_lookup, isSerializingDerivedType);
8627
- }
8628
8805
  /**
8629
8806
  * Serializes information the current object
8630
8807
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -8663,72 +8840,6 @@ export function serializePhoneCallResponse(writer, phoneCallResponse = {}, isSer
8663
8840
  writer.writeBooleanValue("wasManuallyOverridden", phoneCallResponse.wasManuallyOverridden);
8664
8841
  writer.writeAdditionalData(phoneCallResponse.additionalData);
8665
8842
  }
8666
- /**
8667
- * Serializes information the current object
8668
- * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8669
- * @param PhoneLookup The instance to serialize from.
8670
- * @param writer Serialization writer to use to serialize this model
8671
- */
8672
- // @ts-ignore
8673
- export function serializePhoneLookup(writer, phoneLookup = {}, isSerializingDerivedType = false) {
8674
- if (!phoneLookup || isSerializingDerivedType) {
8675
- return;
8676
- }
8677
- writer.writeObjectValue("carrier", phoneLookup.carrier, serializePhoneLookup_carrier);
8678
- writer.writeDateValue("createdAt", phoneLookup.createdAt);
8679
- writer.writeStringValue("id", phoneLookup.id);
8680
- writer.writeBooleanValue("isValid", phoneLookup.isValid);
8681
- writer.writeEnumValue("lineType", phoneLookup.lineType);
8682
- writer.writeObjectValue("location", phoneLookup.location, serializePhoneLookup_location);
8683
- writer.writeDateValue("modifiedAt", phoneLookup.modifiedAt);
8684
- writer.writeStringValue("number", phoneLookup.number);
8685
- writer.writeAdditionalData(phoneLookup.additionalData);
8686
- }
8687
- /**
8688
- * Serializes information the current object
8689
- * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8690
- * @param PhoneLookup_carrier The instance to serialize from.
8691
- * @param writer Serialization writer to use to serialize this model
8692
- */
8693
- // @ts-ignore
8694
- export function serializePhoneLookup_carrier(writer, phoneLookup_carrier = {}, isSerializingDerivedType = false) {
8695
- if (!phoneLookup_carrier || isSerializingDerivedType) {
8696
- return;
8697
- }
8698
- serializePhoneLookupCarrier(writer, phoneLookup_carrier, isSerializingDerivedType);
8699
- }
8700
- /**
8701
- * Serializes information the current object
8702
- * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8703
- * @param PhoneLookup_location The instance to serialize from.
8704
- * @param writer Serialization writer to use to serialize this model
8705
- */
8706
- // @ts-ignore
8707
- export function serializePhoneLookup_location(writer, phoneLookup_location = {}, isSerializingDerivedType = false) {
8708
- if (!phoneLookup_location || isSerializingDerivedType) {
8709
- return;
8710
- }
8711
- serializePhoneNumberLocation(writer, phoneLookup_location, isSerializingDerivedType);
8712
- }
8713
- /**
8714
- * Serializes information the current object
8715
- * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8716
- * @param PhoneLookupCarrier The instance to serialize from.
8717
- * @param writer Serialization writer to use to serialize this model
8718
- */
8719
- // @ts-ignore
8720
- export function serializePhoneLookupCarrier(writer, phoneLookupCarrier = {}, isSerializingDerivedType = false) {
8721
- if (!phoneLookupCarrier || isSerializingDerivedType) {
8722
- return;
8723
- }
8724
- writer.writeStringValue("errorCode", phoneLookupCarrier.errorCode);
8725
- writer.writeStringValue("mobileCountryCode", phoneLookupCarrier.mobileCountryCode);
8726
- writer.writeStringValue("mobileNetworkCode", phoneLookupCarrier.mobileNetworkCode);
8727
- writer.writeStringValue("name", phoneLookupCarrier.name);
8728
- writer.writeStringValue("normalizedCarrier", phoneLookupCarrier.normalizedCarrier);
8729
- writer.writeEnumValue("type", phoneLookupCarrier.type);
8730
- writer.writeAdditionalData(phoneLookupCarrier.additionalData);
8731
- }
8732
8843
  /**
8733
8844
  * Serializes information the current object
8734
8845
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -8879,10 +8990,10 @@ export function serializePhoneNumberResponse(writer, phoneNumberResponse = {}, i
8879
8990
  writer.writeBooleanValue("enabled", phoneNumberResponse.enabled);
8880
8991
  writer.writeStringValue("id", phoneNumberResponse.id);
8881
8992
  writer.writeBooleanValue("leadpingOwned", phoneNumberResponse.leadpingOwned);
8882
- writer.writeObjectValue("location", phoneNumberResponse.location, serializePhoneNumberResponse_location);
8883
8993
  writer.writeDateValue("modifiedAt", phoneNumberResponse.modifiedAt);
8884
8994
  writer.writeStringValue("name", phoneNumberResponse.name);
8885
8995
  writer.writeStringValue("number", phoneNumberResponse.number);
8996
+ writer.writeStringValue("phoneIdentityId", phoneNumberResponse.phoneIdentityId);
8886
8997
  writer.writeObjectValue("routing", phoneNumberResponse.routing, serializePhoneNumberRoutingMetadata);
8887
8998
  writer.writeObjectValue("warmup", phoneNumberResponse.warmup, serializePhoneNumberWarmup);
8888
8999
  writer.writeAdditionalData(phoneNumberResponse.additionalData);
@@ -8900,19 +9011,6 @@ export function serializePhoneNumberResponse_business(writer, phoneNumberRespons
8900
9011
  }
8901
9012
  serializeIdNamePair(writer, phoneNumberResponse_business, isSerializingDerivedType);
8902
9013
  }
8903
- /**
8904
- * Serializes information the current object
8905
- * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8906
- * @param PhoneNumberResponse_location The instance to serialize from.
8907
- * @param writer Serialization writer to use to serialize this model
8908
- */
8909
- // @ts-ignore
8910
- export function serializePhoneNumberResponse_location(writer, phoneNumberResponse_location = {}, isSerializingDerivedType = false) {
8911
- if (!phoneNumberResponse_location || isSerializingDerivedType) {
8912
- return;
8913
- }
8914
- serializePhoneNumberLocation(writer, phoneNumberResponse_location, isSerializingDerivedType);
8915
- }
8916
9014
  /**
8917
9015
  * Serializes information the current object
8918
9016
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9063,7 +9161,6 @@ export function serializePhoneNumberTableRow(writer, phoneNumberTableRow = {}, i
9063
9161
  writer.writeStringValue("businessId", phoneNumberTableRow.businessId);
9064
9162
  writer.writeBooleanValue("enabled", phoneNumberTableRow.enabled);
9065
9163
  writer.writeStringValue("id", phoneNumberTableRow.id);
9066
- writer.writeStringValue("location", phoneNumberTableRow.location);
9067
9164
  writer.writeStringValue("name", phoneNumberTableRow.name);
9068
9165
  writer.writeStringValue("number", phoneNumberTableRow.number);
9069
9166
  writer.writeStringValue("ownership", phoneNumberTableRow.ownership);
@@ -9244,8 +9341,7 @@ export function serializeSmsEventTableRow(writer, smsEventTableRow = {}, isSeria
9244
9341
  writer.writeStringValue("fromPhoneNumberId", smsEventTableRow.fromPhoneNumberId);
9245
9342
  writer.writeStringValue("id", smsEventTableRow.id);
9246
9343
  writer.writeBooleanValue("isAutomated", smsEventTableRow.isAutomated);
9247
- writer.writeStringValue("leadId", smsEventTableRow.leadId);
9248
- writer.writeStringValue("leadName", smsEventTableRow.leadName);
9344
+ writer.writeObjectValue("lead", smsEventTableRow.lead, serializeIdNamePair);
9249
9345
  writer.writeStringValue("outboundPhoneNumberId", smsEventTableRow.outboundPhoneNumberId);
9250
9346
  writer.writeEnumValue("outboundSource", smsEventTableRow.outboundSource);
9251
9347
  writer.writeDateValue("queuedAt", smsEventTableRow.queuedAt);
@@ -9774,10 +9870,22 @@ export function serializeTelephonyLoginRequest(writer, telephonyLoginRequest = {
9774
9870
  if (!telephonyLoginRequest || isSerializingDerivedType) {
9775
9871
  return;
9776
9872
  }
9777
- writer.writeStringValue("deviceId", telephonyLoginRequest.deviceId);
9778
- writer.writeStringValue("deviceName", telephonyLoginRequest.deviceName);
9873
+ writer.writeObjectValue("device", telephonyLoginRequest.device, serializeTelephonyLoginRequest_device);
9779
9874
  writer.writeAdditionalData(telephonyLoginRequest.additionalData);
9780
9875
  }
9876
+ /**
9877
+ * Serializes information the current object
9878
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9879
+ * @param TelephonyLoginRequest_device The instance to serialize from.
9880
+ * @param writer Serialization writer to use to serialize this model
9881
+ */
9882
+ // @ts-ignore
9883
+ export function serializeTelephonyLoginRequest_device(writer, telephonyLoginRequest_device = {}, isSerializingDerivedType = false) {
9884
+ if (!telephonyLoginRequest_device || isSerializingDerivedType) {
9885
+ return;
9886
+ }
9887
+ serializeIdNamePair(writer, telephonyLoginRequest_device, isSerializingDerivedType);
9888
+ }
9781
9889
  /**
9782
9890
  * Serializes information the current object
9783
9891
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9841,17 +9949,14 @@ export function serializeTransactionResponse(writer, transactionResponse = {}, i
9841
9949
  if (!transactionResponse || isSerializingDerivedType) {
9842
9950
  return;
9843
9951
  }
9844
- writer.writeStringValue("accountName", transactionResponse.accountName);
9845
9952
  writer.writeNumberValue("amount", transactionResponse.amount);
9846
- writer.writeStringValue("businessId", transactionResponse.businessId);
9847
- writer.writeStringValue("businessName", transactionResponse.businessName);
9953
+ writer.writeObjectValue("business", transactionResponse.business, serializeTransactionResponse_business);
9848
9954
  writer.writeDateValue("createdAt", transactionResponse.createdAt);
9849
9955
  writer.writeStringValue("description", transactionResponse.description);
9850
9956
  writer.writeObjectValue("gatewayFeeAmount", transactionResponse.gatewayFeeAmount);
9851
9957
  writer.writeStringValue("gatewayStatus", transactionResponse.gatewayStatus);
9852
9958
  writer.writeStringValue("id", transactionResponse.id);
9853
- writer.writeStringValue("leadId", transactionResponse.leadId);
9854
- writer.writeStringValue("leadName", transactionResponse.leadName);
9959
+ writer.writeObjectValue("lead", transactionResponse.lead, serializeTransactionResponse_lead);
9855
9960
  writer.writeDateValue("modifiedAt", transactionResponse.modifiedAt);
9856
9961
  writer.writeNumberValue("netAmount", transactionResponse.netAmount);
9857
9962
  writer.writeStringValue("notes", transactionResponse.notes);
@@ -9861,6 +9966,32 @@ export function serializeTransactionResponse(writer, transactionResponse = {}, i
9861
9966
  writer.writeEnumValue("transactionType", transactionResponse.transactionType);
9862
9967
  writer.writeAdditionalData(transactionResponse.additionalData);
9863
9968
  }
9969
+ /**
9970
+ * Serializes information the current object
9971
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9972
+ * @param TransactionResponse_business The instance to serialize from.
9973
+ * @param writer Serialization writer to use to serialize this model
9974
+ */
9975
+ // @ts-ignore
9976
+ export function serializeTransactionResponse_business(writer, transactionResponse_business = {}, isSerializingDerivedType = false) {
9977
+ if (!transactionResponse_business || isSerializingDerivedType) {
9978
+ return;
9979
+ }
9980
+ serializeIdNamePair(writer, transactionResponse_business, isSerializingDerivedType);
9981
+ }
9982
+ /**
9983
+ * Serializes information the current object
9984
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9985
+ * @param TransactionResponse_lead The instance to serialize from.
9986
+ * @param writer Serialization writer to use to serialize this model
9987
+ */
9988
+ // @ts-ignore
9989
+ export function serializeTransactionResponse_lead(writer, transactionResponse_lead = {}, isSerializingDerivedType = false) {
9990
+ if (!transactionResponse_lead || isSerializingDerivedType) {
9991
+ return;
9992
+ }
9993
+ serializeIdNamePair(writer, transactionResponse_lead, isSerializingDerivedType);
9994
+ }
9864
9995
  /**
9865
9996
  * Serializes information the current object
9866
9997
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9872,21 +10003,44 @@ export function serializeTransactionTableRow(writer, transactionTableRow = {}, i
9872
10003
  if (!transactionTableRow || isSerializingDerivedType) {
9873
10004
  return;
9874
10005
  }
9875
- writer.writeStringValue("accountName", transactionTableRow.accountName);
9876
10006
  writer.writeNumberValue("amount", transactionTableRow.amount);
9877
- writer.writeStringValue("businessId", transactionTableRow.businessId);
9878
- writer.writeStringValue("businessName", transactionTableRow.businessName);
10007
+ writer.writeObjectValue("business", transactionTableRow.business, serializeTransactionTableRow_business);
9879
10008
  writer.writeDateValue("createdAt", transactionTableRow.createdAt);
9880
10009
  writer.writeStringValue("description", transactionTableRow.description);
9881
10010
  writer.writeStringValue("id", transactionTableRow.id);
9882
- writer.writeStringValue("leadId", transactionTableRow.leadId);
9883
- writer.writeStringValue("leadName", transactionTableRow.leadName);
10011
+ writer.writeObjectValue("lead", transactionTableRow.lead, serializeTransactionTableRow_lead);
9884
10012
  writer.writeNumberValue("netAmount", transactionTableRow.netAmount);
9885
10013
  writer.writeStringValue("paymentMethodDisplay", transactionTableRow.paymentMethodDisplay);
9886
10014
  writer.writeEnumValue("transactionStatus", transactionTableRow.transactionStatus);
9887
10015
  writer.writeEnumValue("transactionType", transactionTableRow.transactionType);
9888
10016
  writer.writeAdditionalData(transactionTableRow.additionalData);
9889
10017
  }
10018
+ /**
10019
+ * Serializes information the current object
10020
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10021
+ * @param TransactionTableRow_business The instance to serialize from.
10022
+ * @param writer Serialization writer to use to serialize this model
10023
+ */
10024
+ // @ts-ignore
10025
+ export function serializeTransactionTableRow_business(writer, transactionTableRow_business = {}, isSerializingDerivedType = false) {
10026
+ if (!transactionTableRow_business || isSerializingDerivedType) {
10027
+ return;
10028
+ }
10029
+ serializeIdNamePair(writer, transactionTableRow_business, isSerializingDerivedType);
10030
+ }
10031
+ /**
10032
+ * Serializes information the current object
10033
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10034
+ * @param TransactionTableRow_lead The instance to serialize from.
10035
+ * @param writer Serialization writer to use to serialize this model
10036
+ */
10037
+ // @ts-ignore
10038
+ export function serializeTransactionTableRow_lead(writer, transactionTableRow_lead = {}, isSerializingDerivedType = false) {
10039
+ if (!transactionTableRow_lead || isSerializingDerivedType) {
10040
+ return;
10041
+ }
10042
+ serializeIdNamePair(writer, transactionTableRow_lead, isSerializingDerivedType);
10043
+ }
9890
10044
  /**
9891
10045
  * Serializes information the current object
9892
10046
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9935,8 +10089,7 @@ export function serializeUsageLedgerTableRow(writer, usageLedgerTableRow = {}, i
9935
10089
  }
9936
10090
  writer.writeObjectValue("billableSeconds", usageLedgerTableRow.billableSeconds);
9937
10091
  writer.writeEnumValue("billableUnit", usageLedgerTableRow.billableUnit);
9938
- writer.writeStringValue("businessId", usageLedgerTableRow.businessId);
9939
- writer.writeStringValue("businessName", usageLedgerTableRow.businessName);
10092
+ writer.writeObjectValue("business", usageLedgerTableRow.business, serializeUsageLedgerTableRow_business);
9940
10093
  writer.writeEnumValue("channel", usageLedgerTableRow.channel);
9941
10094
  writer.writeDateValue("createdAt", usageLedgerTableRow.createdAt);
9942
10095
  writer.writeNumberValue("customerChargeAmount", usageLedgerTableRow.customerChargeAmount);
@@ -9944,18 +10097,55 @@ export function serializeUsageLedgerTableRow(writer, usageLedgerTableRow = {}, i
9944
10097
  writer.writeObjectValue("durationSeconds", usageLedgerTableRow.durationSeconds);
9945
10098
  writer.writeStringValue("id", usageLedgerTableRow.id);
9946
10099
  writer.writeBooleanValue("isBillable", usageLedgerTableRow.isBillable);
9947
- writer.writeStringValue("leadId", usageLedgerTableRow.leadId);
9948
- writer.writeStringValue("leadName", usageLedgerTableRow.leadName);
10100
+ writer.writeObjectValue("lead", usageLedgerTableRow.lead, serializeUsageLedgerTableRow_lead);
9949
10101
  writer.writeStringValue("phoneNumber", usageLedgerTableRow.phoneNumber);
9950
10102
  writer.writeStringValue("phoneNumberId", usageLedgerTableRow.phoneNumberId);
9951
10103
  writer.writeNumberValue("quantity", usageLedgerTableRow.quantity);
9952
10104
  writer.writeObjectValue("smsSegments", usageLedgerTableRow.smsSegments);
9953
10105
  writer.writeEnumValue("status", usageLedgerTableRow.status);
9954
10106
  writer.writeNumberValue("unitPrice", usageLedgerTableRow.unitPrice);
9955
- writer.writeStringValue("userId", usageLedgerTableRow.userId);
9956
- writer.writeStringValue("userName", usageLedgerTableRow.userName);
10107
+ writer.writeObjectValue("user", usageLedgerTableRow.user, serializeUsageLedgerTableRow_user);
9957
10108
  writer.writeAdditionalData(usageLedgerTableRow.additionalData);
9958
10109
  }
10110
+ /**
10111
+ * Serializes information the current object
10112
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10113
+ * @param UsageLedgerTableRow_business The instance to serialize from.
10114
+ * @param writer Serialization writer to use to serialize this model
10115
+ */
10116
+ // @ts-ignore
10117
+ export function serializeUsageLedgerTableRow_business(writer, usageLedgerTableRow_business = {}, isSerializingDerivedType = false) {
10118
+ if (!usageLedgerTableRow_business || isSerializingDerivedType) {
10119
+ return;
10120
+ }
10121
+ serializeIdNamePair(writer, usageLedgerTableRow_business, isSerializingDerivedType);
10122
+ }
10123
+ /**
10124
+ * Serializes information the current object
10125
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10126
+ * @param UsageLedgerTableRow_lead The instance to serialize from.
10127
+ * @param writer Serialization writer to use to serialize this model
10128
+ */
10129
+ // @ts-ignore
10130
+ export function serializeUsageLedgerTableRow_lead(writer, usageLedgerTableRow_lead = {}, isSerializingDerivedType = false) {
10131
+ if (!usageLedgerTableRow_lead || isSerializingDerivedType) {
10132
+ return;
10133
+ }
10134
+ serializeIdNamePair(writer, usageLedgerTableRow_lead, isSerializingDerivedType);
10135
+ }
10136
+ /**
10137
+ * Serializes information the current object
10138
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10139
+ * @param UsageLedgerTableRow_user The instance to serialize from.
10140
+ * @param writer Serialization writer to use to serialize this model
10141
+ */
10142
+ // @ts-ignore
10143
+ export function serializeUsageLedgerTableRow_user(writer, usageLedgerTableRow_user = {}, isSerializingDerivedType = false) {
10144
+ if (!usageLedgerTableRow_user || isSerializingDerivedType) {
10145
+ return;
10146
+ }
10147
+ serializeIdNamePair(writer, usageLedgerTableRow_user, isSerializingDerivedType);
10148
+ }
9959
10149
  /**
9960
10150
  * Serializes information the current object
9961
10151
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -11046,34 +11236,6 @@ export const PhoneCallStatusObject = {
11046
11236
  Blocked_permission: "blocked_permission",
11047
11237
  Configuration_required: "configuration_required",
11048
11238
  };
11049
- /**
11050
- * An enumerator describing phone line types
11051
- */
11052
- export const PhoneLookup_lineTypeObject = {
11053
- Wireline: "Wireline",
11054
- Wireless: "Wireless",
11055
- VoWiFi: "VoWiFi",
11056
- VoIP: "VoIP",
11057
- PrePaidWireless: "PrePaidWireless",
11058
- Unknown: "Unknown",
11059
- };
11060
- /**
11061
- * An enumerator describing carrier types
11062
- */
11063
- export const PhoneLookupCarrier_typeObject = {
11064
- FixedLine: "FixedLine",
11065
- Mobile: "Mobile",
11066
- Voip: "Voip",
11067
- FixedLineOrMobile: "FixedLineOrMobile",
11068
- TollFree: "TollFree",
11069
- PremiumRate: "PremiumRate",
11070
- SharedCost: "SharedCost",
11071
- PersonalNumber: "PersonalNumber",
11072
- Pager: "Pager",
11073
- Uan: "Uan",
11074
- Voicemail: "Voicemail",
11075
- Unknown: "Unknown",
11076
- };
11077
11239
  /**
11078
11240
  * Defines phone-number outbound health states used by pacing.
11079
11241
  */