@leadping/sdk 1.0.31 → 1.0.32
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/models/index.d.ts +93 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +87 -0
- package/dist/models/index.js.map +1 -1
- package/dist/notifications/index.d.ts +5 -0
- package/dist/notifications/index.d.ts.map +1 -1
- package/dist/notifications/index.js +5 -0
- package/dist/notifications/index.js.map +1 -1
- package/dist/notifications/push/index.d.ts +20 -0
- package/dist/notifications/push/index.d.ts.map +1 -0
- package/dist/notifications/push/index.js +20 -0
- package/dist/notifications/push/index.js.map +1 -0
- package/dist/notifications/push/installations/current/index.d.ts +32 -0
- package/dist/notifications/push/installations/current/index.d.ts.map +1 -0
- package/dist/notifications/push/installations/current/index.js +30 -0
- package/dist/notifications/push/installations/current/index.js.map +1 -0
- package/dist/notifications/push/installations/index.d.ts +27 -0
- package/dist/notifications/push/installations/index.d.ts.map +1 -0
- package/dist/notifications/push/installations/index.js +26 -0
- package/dist/notifications/push/installations/index.js.map +1 -0
- package/dist/notifications/push/installations/item/index.d.ts +28 -0
- package/dist/notifications/push/installations/item/index.d.ts.map +1 -0
- package/dist/notifications/push/installations/item/index.js +26 -0
- package/dist/notifications/push/installations/item/index.js.map +1 -0
- package/package.json +1 -1
package/dist/models/index.js
CHANGED
|
@@ -1758,6 +1758,24 @@ export function createPhoneNumberTrafficTrendPointFromDiscriminatorValue(parseNo
|
|
|
1758
1758
|
export function createProblemDetailsFromDiscriminatorValue(parseNode) {
|
|
1759
1759
|
return deserializeIntoProblemDetails;
|
|
1760
1760
|
}
|
|
1761
|
+
/**
|
|
1762
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1763
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1764
|
+
* @returns {PushInstallationRequest_metadata}
|
|
1765
|
+
*/
|
|
1766
|
+
// @ts-ignore
|
|
1767
|
+
export function createPushInstallationRequest_metadataFromDiscriminatorValue(parseNode) {
|
|
1768
|
+
return deserializeIntoPushInstallationRequest_metadata;
|
|
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 {PushInstallationRequest}
|
|
1774
|
+
*/
|
|
1775
|
+
// @ts-ignore
|
|
1776
|
+
export function createPushInstallationRequestFromDiscriminatorValue(parseNode) {
|
|
1777
|
+
return deserializeIntoPushInstallationRequest;
|
|
1778
|
+
}
|
|
1761
1779
|
/**
|
|
1762
1780
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1763
1781
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -4113,6 +4131,7 @@ export function deserializeIntoNotificationResponse(notificationResponse = {}) {
|
|
|
4113
4131
|
"modifiedAt": n => { notificationResponse.modifiedAt = n.getDateValue(); },
|
|
4114
4132
|
"name": n => { notificationResponse.name = n.getStringValue(); },
|
|
4115
4133
|
"priority": n => { notificationResponse.priority = n.getEnumValue(NotificationPriorityObject); },
|
|
4134
|
+
"pushEnabled": n => { notificationResponse.pushEnabled = n.getBooleanValue(); },
|
|
4116
4135
|
"readAt": n => { notificationResponse.readAt = n.getDateValue(); },
|
|
4117
4136
|
"relatedEntityId": n => { notificationResponse.relatedEntityId = n.getStringValue(); },
|
|
4118
4137
|
"relatedEntityType": n => { notificationResponse.relatedEntityType = n.getStringValue(); },
|
|
@@ -5636,6 +5655,36 @@ export function deserializeIntoProblemDetails(problemDetails = {}) {
|
|
|
5636
5655
|
"type": n => { problemDetails.type = n.getStringValue(); },
|
|
5637
5656
|
};
|
|
5638
5657
|
}
|
|
5658
|
+
/**
|
|
5659
|
+
* The deserialization information for the current model
|
|
5660
|
+
* @param PushInstallationRequest The instance to deserialize into.
|
|
5661
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5662
|
+
*/
|
|
5663
|
+
// @ts-ignore
|
|
5664
|
+
export function deserializeIntoPushInstallationRequest(pushInstallationRequest = {}) {
|
|
5665
|
+
return {
|
|
5666
|
+
"appBuild": n => { pushInstallationRequest.appBuild = n.getStringValue(); },
|
|
5667
|
+
"appIdentifier": n => { pushInstallationRequest.appIdentifier = n.getStringValue(); },
|
|
5668
|
+
"appName": n => { pushInstallationRequest.appName = n.getStringValue(); },
|
|
5669
|
+
"appVersion": n => { pushInstallationRequest.appVersion = n.getStringValue(); },
|
|
5670
|
+
"deviceModel": n => { pushInstallationRequest.deviceModel = n.getStringValue(); },
|
|
5671
|
+
"devicePlatform": n => { pushInstallationRequest.devicePlatform = n.getStringValue(); },
|
|
5672
|
+
"deviceVersion": n => { pushInstallationRequest.deviceVersion = n.getStringValue(); },
|
|
5673
|
+
"installationId": n => { pushInstallationRequest.installationId = n.getStringValue(); },
|
|
5674
|
+
"metadata": n => { pushInstallationRequest.metadata = n.getObjectValue(createPushInstallationRequest_metadataFromDiscriminatorValue); },
|
|
5675
|
+
"platform": n => { pushInstallationRequest.platform = n.getStringValue(); },
|
|
5676
|
+
"pushChannel": n => { pushInstallationRequest.pushChannel = n.getStringValue(); },
|
|
5677
|
+
};
|
|
5678
|
+
}
|
|
5679
|
+
/**
|
|
5680
|
+
* The deserialization information for the current model
|
|
5681
|
+
* @param PushInstallationRequest_metadata The instance to deserialize into.
|
|
5682
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5683
|
+
*/
|
|
5684
|
+
// @ts-ignore
|
|
5685
|
+
export function deserializeIntoPushInstallationRequest_metadata(pushInstallationRequest_metadata = {}) {
|
|
5686
|
+
return {};
|
|
5687
|
+
}
|
|
5639
5688
|
/**
|
|
5640
5689
|
* The deserialization information for the current model
|
|
5641
5690
|
* @param RangeFilter The instance to deserialize into.
|
|
@@ -8834,6 +8883,7 @@ export function serializeNotificationResponse(writer, notificationResponse = {},
|
|
|
8834
8883
|
writer.writeDateValue("modifiedAt", notificationResponse.modifiedAt);
|
|
8835
8884
|
writer.writeStringValue("name", notificationResponse.name);
|
|
8836
8885
|
writer.writeEnumValue("priority", notificationResponse.priority);
|
|
8886
|
+
writer.writeBooleanValue("pushEnabled", notificationResponse.pushEnabled);
|
|
8837
8887
|
writer.writeDateValue("readAt", notificationResponse.readAt);
|
|
8838
8888
|
writer.writeStringValue("relatedEntityId", notificationResponse.relatedEntityId);
|
|
8839
8889
|
writer.writeStringValue("relatedEntityType", notificationResponse.relatedEntityType);
|
|
@@ -10606,6 +10656,43 @@ export function serializeProblemDetails(writer, problemDetails = {}, isSerializi
|
|
|
10606
10656
|
writer.writeStringValue("type", problemDetails.type);
|
|
10607
10657
|
writer.writeAdditionalData(problemDetails.additionalData);
|
|
10608
10658
|
}
|
|
10659
|
+
/**
|
|
10660
|
+
* Serializes information the current object
|
|
10661
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
10662
|
+
* @param PushInstallationRequest The instance to serialize from.
|
|
10663
|
+
* @param writer Serialization writer to use to serialize this model
|
|
10664
|
+
*/
|
|
10665
|
+
// @ts-ignore
|
|
10666
|
+
export function serializePushInstallationRequest(writer, pushInstallationRequest = {}, isSerializingDerivedType = false) {
|
|
10667
|
+
if (!pushInstallationRequest || isSerializingDerivedType) {
|
|
10668
|
+
return;
|
|
10669
|
+
}
|
|
10670
|
+
writer.writeStringValue("appBuild", pushInstallationRequest.appBuild);
|
|
10671
|
+
writer.writeStringValue("appIdentifier", pushInstallationRequest.appIdentifier);
|
|
10672
|
+
writer.writeStringValue("appName", pushInstallationRequest.appName);
|
|
10673
|
+
writer.writeStringValue("appVersion", pushInstallationRequest.appVersion);
|
|
10674
|
+
writer.writeStringValue("deviceModel", pushInstallationRequest.deviceModel);
|
|
10675
|
+
writer.writeStringValue("devicePlatform", pushInstallationRequest.devicePlatform);
|
|
10676
|
+
writer.writeStringValue("deviceVersion", pushInstallationRequest.deviceVersion);
|
|
10677
|
+
writer.writeStringValue("installationId", pushInstallationRequest.installationId);
|
|
10678
|
+
writer.writeObjectValue("metadata", pushInstallationRequest.metadata, serializePushInstallationRequest_metadata);
|
|
10679
|
+
writer.writeStringValue("platform", pushInstallationRequest.platform);
|
|
10680
|
+
writer.writeStringValue("pushChannel", pushInstallationRequest.pushChannel);
|
|
10681
|
+
writer.writeAdditionalData(pushInstallationRequest.additionalData);
|
|
10682
|
+
}
|
|
10683
|
+
/**
|
|
10684
|
+
* Serializes information the current object
|
|
10685
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
10686
|
+
* @param PushInstallationRequest_metadata The instance to serialize from.
|
|
10687
|
+
* @param writer Serialization writer to use to serialize this model
|
|
10688
|
+
*/
|
|
10689
|
+
// @ts-ignore
|
|
10690
|
+
export function serializePushInstallationRequest_metadata(writer, pushInstallationRequest_metadata = {}, isSerializingDerivedType = false) {
|
|
10691
|
+
if (!pushInstallationRequest_metadata || isSerializingDerivedType) {
|
|
10692
|
+
return;
|
|
10693
|
+
}
|
|
10694
|
+
writer.writeAdditionalData(pushInstallationRequest_metadata.additionalData);
|
|
10695
|
+
}
|
|
10609
10696
|
/**
|
|
10610
10697
|
* Serializes information the current object
|
|
10611
10698
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|