@leadping/sdk 1.0.77 → 1.0.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/conversations/item/index.d.ts +5 -0
- package/dist/conversations/item/index.d.ts.map +1 -1
- package/dist/conversations/item/index.js +5 -0
- package/dist/conversations/item/index.js.map +1 -1
- package/dist/conversations/item/markHandled/index.d.ts +39 -0
- package/dist/conversations/item/markHandled/index.d.ts.map +1 -0
- package/dist/{notifications/push/installations/item → conversations/item/markHandled}/index.js +6 -5
- package/dist/conversations/item/markHandled/index.js.map +1 -0
- package/dist/models/index.d.ts +28 -108
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +14 -93
- package/dist/models/index.js.map +1 -1
- package/dist/notifications/index.d.ts +0 -5
- package/dist/notifications/index.d.ts.map +1 -1
- package/dist/notifications/index.js +0 -5
- package/dist/notifications/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/notifications/push/index.d.ts +0 -20
- package/dist/notifications/push/index.d.ts.map +0 -1
- package/dist/notifications/push/index.js +0 -20
- package/dist/notifications/push/index.js.map +0 -1
- package/dist/notifications/push/installations/current/index.d.ts +0 -33
- package/dist/notifications/push/installations/current/index.d.ts.map +0 -1
- package/dist/notifications/push/installations/current/index.js +0 -31
- package/dist/notifications/push/installations/current/index.js.map +0 -1
- package/dist/notifications/push/installations/index.d.ts +0 -27
- package/dist/notifications/push/installations/index.d.ts.map +0 -1
- package/dist/notifications/push/installations/index.js +0 -26
- package/dist/notifications/push/installations/index.js.map +0 -1
- package/dist/notifications/push/installations/item/index.d.ts +0 -29
- package/dist/notifications/push/installations/item/index.d.ts.map +0 -1
- package/dist/notifications/push/installations/item/index.js.map +0 -1
package/dist/models/index.js
CHANGED
|
@@ -1929,24 +1929,6 @@ export function createProblemDetails_errorsFromDiscriminatorValue(parseNode) {
|
|
|
1929
1929
|
export function createProblemDetailsFromDiscriminatorValue(parseNode) {
|
|
1930
1930
|
return deserializeIntoProblemDetails;
|
|
1931
1931
|
}
|
|
1932
|
-
/**
|
|
1933
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
1934
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1935
|
-
* @returns {PushInstallationRequest_metadata}
|
|
1936
|
-
*/
|
|
1937
|
-
// @ts-ignore
|
|
1938
|
-
export function createPushInstallationRequest_metadataFromDiscriminatorValue(parseNode) {
|
|
1939
|
-
return deserializeIntoPushInstallationRequest_metadata;
|
|
1940
|
-
}
|
|
1941
|
-
/**
|
|
1942
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
1943
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1944
|
-
* @returns {PushInstallationRequest}
|
|
1945
|
-
*/
|
|
1946
|
-
// @ts-ignore
|
|
1947
|
-
export function createPushInstallationRequestFromDiscriminatorValue(parseNode) {
|
|
1948
|
-
return deserializeIntoPushInstallationRequest;
|
|
1949
|
-
}
|
|
1950
1932
|
/**
|
|
1951
1933
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1952
1934
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -3381,13 +3363,17 @@ export function deserializeIntoConversationResponse(conversationResponse = {}) {
|
|
|
3381
3363
|
"isUnread": n => { conversationResponse.isUnread = n.getBooleanValue(); },
|
|
3382
3364
|
"lastEventAt": n => { conversationResponse.lastEventAt = n.getDateValue(); },
|
|
3383
3365
|
"lastEventIsInternalNote": n => { conversationResponse.lastEventIsInternalNote = n.getBooleanValue(); },
|
|
3366
|
+
"lastInboundAt": n => { conversationResponse.lastInboundAt = n.getDateValue(); },
|
|
3367
|
+
"lastInboundSnippet": n => { conversationResponse.lastInboundSnippet = n.getStringValue(); },
|
|
3384
3368
|
"lastName": n => { conversationResponse.lastName = n.getStringValue(); },
|
|
3385
3369
|
"lastSnippet": n => { conversationResponse.lastSnippet = n.getStringValue(); },
|
|
3386
3370
|
"leadId": n => { conversationResponse.leadId = n.getStringValue(); },
|
|
3387
3371
|
"leadPhoneNumber": n => { conversationResponse.leadPhoneNumber = n.getStringValue(); },
|
|
3372
|
+
"needsReply": n => { conversationResponse.needsReply = n.getBooleanValue(); },
|
|
3388
3373
|
"nextStep": n => { conversationResponse.nextStep = n.getStringValue(); },
|
|
3389
3374
|
"outboundPhoneNumberOverrideId": n => { conversationResponse.outboundPhoneNumberOverrideId = n.getStringValue(); },
|
|
3390
3375
|
"phoneNumber": n => { conversationResponse.phoneNumber = n.getObjectValue(createConversationResponse_phoneNumberFromDiscriminatorValue); },
|
|
3376
|
+
"replyVersion": n => { conversationResponse.replyVersion = n.getNumberValue(); },
|
|
3391
3377
|
"status": n => { conversationResponse.status = n.getEnumValue(ConversationResponse_statusObject); },
|
|
3392
3378
|
"statusReason": n => { conversationResponse.statusReason = n.getStringValue(); },
|
|
3393
3379
|
};
|
|
@@ -4821,7 +4807,6 @@ export function deserializeIntoOrganizationBillingState_dunning(organizationBill
|
|
|
4821
4807
|
// @ts-ignore
|
|
4822
4808
|
export function deserializeIntoOrganizationCompliancePolicy(organizationCompliancePolicy = {}) {
|
|
4823
4809
|
return {
|
|
4824
|
-
"allowedProducts": n => { organizationCompliancePolicy.allowedProducts = n.getCollectionOfPrimitiveValues("string"); },
|
|
4825
4810
|
"allowedStates": n => { organizationCompliancePolicy.allowedStates = n.getCollectionOfPrimitiveValues("string"); },
|
|
4826
4811
|
"enabled": n => { organizationCompliancePolicy.enabled = n.getBooleanValue(); },
|
|
4827
4812
|
"requireAgentLicenseState": n => { organizationCompliancePolicy.requireAgentLicenseState = n.getBooleanValue(); },
|
|
@@ -6172,36 +6157,6 @@ export function deserializeIntoProblemDetails(problemDetails = {}) {
|
|
|
6172
6157
|
export function deserializeIntoProblemDetails_errors(problemDetails_errors = {}) {
|
|
6173
6158
|
return {};
|
|
6174
6159
|
}
|
|
6175
|
-
/**
|
|
6176
|
-
* The deserialization information for the current model
|
|
6177
|
-
* @param PushInstallationRequest The instance to deserialize into.
|
|
6178
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
6179
|
-
*/
|
|
6180
|
-
// @ts-ignore
|
|
6181
|
-
export function deserializeIntoPushInstallationRequest(pushInstallationRequest = {}) {
|
|
6182
|
-
return {
|
|
6183
|
-
"appBuild": n => { pushInstallationRequest.appBuild = n.getStringValue(); },
|
|
6184
|
-
"appIdentifier": n => { pushInstallationRequest.appIdentifier = n.getStringValue(); },
|
|
6185
|
-
"appName": n => { pushInstallationRequest.appName = n.getStringValue(); },
|
|
6186
|
-
"appVersion": n => { pushInstallationRequest.appVersion = n.getStringValue(); },
|
|
6187
|
-
"deviceModel": n => { pushInstallationRequest.deviceModel = n.getStringValue(); },
|
|
6188
|
-
"devicePlatform": n => { pushInstallationRequest.devicePlatform = n.getStringValue(); },
|
|
6189
|
-
"deviceVersion": n => { pushInstallationRequest.deviceVersion = n.getStringValue(); },
|
|
6190
|
-
"installationId": n => { pushInstallationRequest.installationId = n.getStringValue(); },
|
|
6191
|
-
"metadata": n => { pushInstallationRequest.metadata = n.getObjectValue(createPushInstallationRequest_metadataFromDiscriminatorValue); },
|
|
6192
|
-
"platform": n => { pushInstallationRequest.platform = n.getStringValue(); },
|
|
6193
|
-
"pushChannel": n => { pushInstallationRequest.pushChannel = n.getStringValue(); },
|
|
6194
|
-
};
|
|
6195
|
-
}
|
|
6196
|
-
/**
|
|
6197
|
-
* The deserialization information for the current model
|
|
6198
|
-
* @param PushInstallationRequest_metadata The instance to deserialize into.
|
|
6199
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
6200
|
-
*/
|
|
6201
|
-
// @ts-ignore
|
|
6202
|
-
export function deserializeIntoPushInstallationRequest_metadata(pushInstallationRequest_metadata = {}) {
|
|
6203
|
-
return {};
|
|
6204
|
-
}
|
|
6205
6160
|
/**
|
|
6206
6161
|
* The deserialization information for the current model
|
|
6207
6162
|
* @param RangeFilter The instance to deserialize into.
|
|
@@ -6422,8 +6377,8 @@ export function deserializeIntoSourceMetricsResponse(sourceMetricsResponse = {})
|
|
|
6422
6377
|
// @ts-ignore
|
|
6423
6378
|
export function deserializeIntoSourceRequest(sourceRequest = {}) {
|
|
6424
6379
|
return {
|
|
6425
|
-
"allowedProducts": n => { sourceRequest.allowedProducts = n.getCollectionOfPrimitiveValues("string"); },
|
|
6426
6380
|
"allowedStates": n => { sourceRequest.allowedStates = n.getCollectionOfPrimitiveValues("string"); },
|
|
6381
|
+
"automaticPhoneLookup": n => { sourceRequest.automaticPhoneLookup = n.getBooleanValue(); },
|
|
6427
6382
|
"defaultTagIds": n => { sourceRequest.defaultTagIds = n.getCollectionOfPrimitiveValues("string"); },
|
|
6428
6383
|
"defaultTagNames": n => { sourceRequest.defaultTagNames = n.getCollectionOfPrimitiveValues("string"); },
|
|
6429
6384
|
"description": n => { sourceRequest.description = n.getStringValue(); },
|
|
@@ -6439,10 +6394,10 @@ export function deserializeIntoSourceRequest(sourceRequest = {}) {
|
|
|
6439
6394
|
// @ts-ignore
|
|
6440
6395
|
export function deserializeIntoSourceResponse(sourceResponse = {}) {
|
|
6441
6396
|
return {
|
|
6442
|
-
"allowedProducts": n => { sourceResponse.allowedProducts = n.getCollectionOfPrimitiveValues("string"); },
|
|
6443
6397
|
"allowedStates": n => { sourceResponse.allowedStates = n.getCollectionOfPrimitiveValues("string"); },
|
|
6444
6398
|
"apiKeyPreview": n => { sourceResponse.apiKeyPreview = n.getStringValue(); },
|
|
6445
6399
|
"apiKeyRotatedAt": n => { sourceResponse.apiKeyRotatedAt = n.getDateValue(); },
|
|
6400
|
+
"automaticPhoneLookup": n => { sourceResponse.automaticPhoneLookup = n.getBooleanValue(); },
|
|
6446
6401
|
"complianceApproved": n => { sourceResponse.complianceApproved = n.getBooleanValue(); },
|
|
6447
6402
|
"costPerLead": n => { sourceResponse.costPerLead = n.getNumberValue(); },
|
|
6448
6403
|
"createdAt": n => { sourceResponse.createdAt = n.getDateValue(); },
|
|
@@ -6516,12 +6471,12 @@ export function deserializeIntoSourceResponse_user(sourceResponse_user = {}) {
|
|
|
6516
6471
|
// @ts-ignore
|
|
6517
6472
|
export function deserializeIntoSourceTableRow(sourceTableRow = {}) {
|
|
6518
6473
|
return {
|
|
6519
|
-
"allowedProducts": n => { sourceTableRow.allowedProducts = n.getCollectionOfPrimitiveValues("string"); },
|
|
6520
6474
|
"allowedStates": n => { sourceTableRow.allowedStates = n.getCollectionOfPrimitiveValues("string"); },
|
|
6521
6475
|
"apiKeyLastUsedAt": n => { sourceTableRow.apiKeyLastUsedAt = n.getDateValue(); },
|
|
6522
6476
|
"apiKeyPreview": n => { sourceTableRow.apiKeyPreview = n.getStringValue(); },
|
|
6523
6477
|
"apiKeyRotatedAt": n => { sourceTableRow.apiKeyRotatedAt = n.getDateValue(); },
|
|
6524
6478
|
"apiKeyTotalUses": n => { sourceTableRow.apiKeyTotalUses = n.getNumberValue(); },
|
|
6479
|
+
"automaticPhoneLookup": n => { sourceTableRow.automaticPhoneLookup = n.getBooleanValue(); },
|
|
6525
6480
|
"complianceApproved": n => { sourceTableRow.complianceApproved = n.getBooleanValue(); },
|
|
6526
6481
|
"costPerLead": n => { sourceTableRow.costPerLead = n.getNumberValue(); },
|
|
6527
6482
|
"createdAt": n => { sourceTableRow.createdAt = n.getDateValue(); },
|
|
@@ -8335,13 +8290,17 @@ export function serializeConversationResponse(writer, conversationResponse = {},
|
|
|
8335
8290
|
writer.writeBooleanValue("isUnread", conversationResponse.isUnread);
|
|
8336
8291
|
writer.writeDateValue("lastEventAt", conversationResponse.lastEventAt);
|
|
8337
8292
|
writer.writeBooleanValue("lastEventIsInternalNote", conversationResponse.lastEventIsInternalNote);
|
|
8293
|
+
writer.writeDateValue("lastInboundAt", conversationResponse.lastInboundAt);
|
|
8294
|
+
writer.writeStringValue("lastInboundSnippet", conversationResponse.lastInboundSnippet);
|
|
8338
8295
|
writer.writeStringValue("lastName", conversationResponse.lastName);
|
|
8339
8296
|
writer.writeStringValue("lastSnippet", conversationResponse.lastSnippet);
|
|
8340
8297
|
writer.writeStringValue("leadId", conversationResponse.leadId);
|
|
8341
8298
|
writer.writeStringValue("leadPhoneNumber", conversationResponse.leadPhoneNumber);
|
|
8299
|
+
writer.writeBooleanValue("needsReply", conversationResponse.needsReply);
|
|
8342
8300
|
writer.writeStringValue("nextStep", conversationResponse.nextStep);
|
|
8343
8301
|
writer.writeStringValue("outboundPhoneNumberOverrideId", conversationResponse.outboundPhoneNumberOverrideId);
|
|
8344
8302
|
writer.writeObjectValue("phoneNumber", conversationResponse.phoneNumber, serializeConversationResponse_phoneNumber);
|
|
8303
|
+
writer.writeNumberValue("replyVersion", conversationResponse.replyVersion);
|
|
8345
8304
|
writer.writeEnumValue("status", conversationResponse.status);
|
|
8346
8305
|
writer.writeStringValue("statusReason", conversationResponse.statusReason);
|
|
8347
8306
|
writer.writeAdditionalData(conversationResponse.additionalData);
|
|
@@ -9989,7 +9948,6 @@ export function serializeOrganizationCompliancePolicy(writer, organizationCompli
|
|
|
9989
9948
|
if (!organizationCompliancePolicy || isSerializingDerivedType) {
|
|
9990
9949
|
return;
|
|
9991
9950
|
}
|
|
9992
|
-
writer.writeCollectionOfPrimitiveValues("allowedProducts", organizationCompliancePolicy.allowedProducts);
|
|
9993
9951
|
writer.writeCollectionOfPrimitiveValues("allowedStates", organizationCompliancePolicy.allowedStates);
|
|
9994
9952
|
writer.writeBooleanValue("enabled", organizationCompliancePolicy.enabled);
|
|
9995
9953
|
writer.writeBooleanValue("requireAgentLicenseState", organizationCompliancePolicy.requireAgentLicenseState);
|
|
@@ -11570,43 +11528,6 @@ export function serializeProblemDetails_errors(writer, problemDetails_errors = {
|
|
|
11570
11528
|
}
|
|
11571
11529
|
writer.writeAdditionalData(problemDetails_errors.additionalData);
|
|
11572
11530
|
}
|
|
11573
|
-
/**
|
|
11574
|
-
* Serializes information the current object
|
|
11575
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
11576
|
-
* @param PushInstallationRequest The instance to serialize from.
|
|
11577
|
-
* @param writer Serialization writer to use to serialize this model
|
|
11578
|
-
*/
|
|
11579
|
-
// @ts-ignore
|
|
11580
|
-
export function serializePushInstallationRequest(writer, pushInstallationRequest = {}, isSerializingDerivedType = false) {
|
|
11581
|
-
if (!pushInstallationRequest || isSerializingDerivedType) {
|
|
11582
|
-
return;
|
|
11583
|
-
}
|
|
11584
|
-
writer.writeStringValue("appBuild", pushInstallationRequest.appBuild);
|
|
11585
|
-
writer.writeStringValue("appIdentifier", pushInstallationRequest.appIdentifier);
|
|
11586
|
-
writer.writeStringValue("appName", pushInstallationRequest.appName);
|
|
11587
|
-
writer.writeStringValue("appVersion", pushInstallationRequest.appVersion);
|
|
11588
|
-
writer.writeStringValue("deviceModel", pushInstallationRequest.deviceModel);
|
|
11589
|
-
writer.writeStringValue("devicePlatform", pushInstallationRequest.devicePlatform);
|
|
11590
|
-
writer.writeStringValue("deviceVersion", pushInstallationRequest.deviceVersion);
|
|
11591
|
-
writer.writeStringValue("installationId", pushInstallationRequest.installationId);
|
|
11592
|
-
writer.writeObjectValue("metadata", pushInstallationRequest.metadata, serializePushInstallationRequest_metadata);
|
|
11593
|
-
writer.writeStringValue("platform", pushInstallationRequest.platform);
|
|
11594
|
-
writer.writeStringValue("pushChannel", pushInstallationRequest.pushChannel);
|
|
11595
|
-
writer.writeAdditionalData(pushInstallationRequest.additionalData);
|
|
11596
|
-
}
|
|
11597
|
-
/**
|
|
11598
|
-
* Serializes information the current object
|
|
11599
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
11600
|
-
* @param PushInstallationRequest_metadata The instance to serialize from.
|
|
11601
|
-
* @param writer Serialization writer to use to serialize this model
|
|
11602
|
-
*/
|
|
11603
|
-
// @ts-ignore
|
|
11604
|
-
export function serializePushInstallationRequest_metadata(writer, pushInstallationRequest_metadata = {}, isSerializingDerivedType = false) {
|
|
11605
|
-
if (!pushInstallationRequest_metadata || isSerializingDerivedType) {
|
|
11606
|
-
return;
|
|
11607
|
-
}
|
|
11608
|
-
writer.writeAdditionalData(pushInstallationRequest_metadata.additionalData);
|
|
11609
|
-
}
|
|
11610
11531
|
/**
|
|
11611
11532
|
* Serializes information the current object
|
|
11612
11533
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -11857,8 +11778,8 @@ export function serializeSourceRequest(writer, sourceRequest = {}, isSerializing
|
|
|
11857
11778
|
if (!sourceRequest || isSerializingDerivedType) {
|
|
11858
11779
|
return;
|
|
11859
11780
|
}
|
|
11860
|
-
writer.writeCollectionOfPrimitiveValues("allowedProducts", sourceRequest.allowedProducts);
|
|
11861
11781
|
writer.writeCollectionOfPrimitiveValues("allowedStates", sourceRequest.allowedStates);
|
|
11782
|
+
writer.writeBooleanValue("automaticPhoneLookup", sourceRequest.automaticPhoneLookup);
|
|
11862
11783
|
writer.writeCollectionOfPrimitiveValues("defaultTagIds", sourceRequest.defaultTagIds);
|
|
11863
11784
|
writer.writeCollectionOfPrimitiveValues("defaultTagNames", sourceRequest.defaultTagNames);
|
|
11864
11785
|
writer.writeStringValue("description", sourceRequest.description);
|
|
@@ -11877,10 +11798,10 @@ export function serializeSourceResponse(writer, sourceResponse = {}, isSerializi
|
|
|
11877
11798
|
if (!sourceResponse || isSerializingDerivedType) {
|
|
11878
11799
|
return;
|
|
11879
11800
|
}
|
|
11880
|
-
writer.writeCollectionOfPrimitiveValues("allowedProducts", sourceResponse.allowedProducts);
|
|
11881
11801
|
writer.writeCollectionOfPrimitiveValues("allowedStates", sourceResponse.allowedStates);
|
|
11882
11802
|
writer.writeStringValue("apiKeyPreview", sourceResponse.apiKeyPreview);
|
|
11883
11803
|
writer.writeDateValue("apiKeyRotatedAt", sourceResponse.apiKeyRotatedAt);
|
|
11804
|
+
writer.writeBooleanValue("automaticPhoneLookup", sourceResponse.automaticPhoneLookup);
|
|
11884
11805
|
writer.writeBooleanValue("complianceApproved", sourceResponse.complianceApproved);
|
|
11885
11806
|
writer.writeNumberValue("costPerLead", sourceResponse.costPerLead);
|
|
11886
11807
|
writer.writeDateValue("createdAt", sourceResponse.createdAt);
|
|
@@ -11965,12 +11886,12 @@ export function serializeSourceTableRow(writer, sourceTableRow = {}, isSerializi
|
|
|
11965
11886
|
if (!sourceTableRow || isSerializingDerivedType) {
|
|
11966
11887
|
return;
|
|
11967
11888
|
}
|
|
11968
|
-
writer.writeCollectionOfPrimitiveValues("allowedProducts", sourceTableRow.allowedProducts);
|
|
11969
11889
|
writer.writeCollectionOfPrimitiveValues("allowedStates", sourceTableRow.allowedStates);
|
|
11970
11890
|
writer.writeDateValue("apiKeyLastUsedAt", sourceTableRow.apiKeyLastUsedAt);
|
|
11971
11891
|
writer.writeStringValue("apiKeyPreview", sourceTableRow.apiKeyPreview);
|
|
11972
11892
|
writer.writeDateValue("apiKeyRotatedAt", sourceTableRow.apiKeyRotatedAt);
|
|
11973
11893
|
writer.writeNumberValue("apiKeyTotalUses", sourceTableRow.apiKeyTotalUses);
|
|
11894
|
+
writer.writeBooleanValue("automaticPhoneLookup", sourceTableRow.automaticPhoneLookup);
|
|
11974
11895
|
writer.writeBooleanValue("complianceApproved", sourceTableRow.complianceApproved);
|
|
11975
11896
|
writer.writeNumberValue("costPerLead", sourceTableRow.costPerLead);
|
|
11976
11897
|
writer.writeDateValue("createdAt", sourceTableRow.createdAt);
|