@leadping/sdk 1.0.111 → 1.0.113
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/leadpingOpenApiClient.d.ts +5 -0
- package/dist/leadpingOpenApiClient.d.ts.map +1 -1
- package/dist/leadpingOpenApiClient.js +6 -0
- package/dist/leadpingOpenApiClient.js.map +1 -1
- package/dist/messageTemplates/index.d.ts +59 -0
- package/dist/messageTemplates/index.d.ts.map +1 -0
- package/dist/messageTemplates/index.js +53 -0
- package/dist/messageTemplates/index.js.map +1 -0
- package/dist/messageTemplates/item/index.d.ts +48 -0
- package/dist/messageTemplates/item/index.d.ts.map +1 -0
- package/dist/messageTemplates/item/index.js +42 -0
- package/dist/messageTemplates/item/index.js.map +1 -0
- package/dist/models/index.d.ts +80 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +80 -0
- package/dist/models/index.js.map +1 -1
- package/package.json +1 -1
package/dist/models/index.js
CHANGED
|
@@ -1344,6 +1344,24 @@ export function createLeadTagsRequestFromDiscriminatorValue(parseNode) {
|
|
|
1344
1344
|
export function createMessageMediaAttachmentFromDiscriminatorValue(parseNode) {
|
|
1345
1345
|
return deserializeIntoMessageMediaAttachment;
|
|
1346
1346
|
}
|
|
1347
|
+
/**
|
|
1348
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1349
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1350
|
+
* @returns {MessageTemplate}
|
|
1351
|
+
*/
|
|
1352
|
+
// @ts-ignore
|
|
1353
|
+
export function createMessageTemplateFromDiscriminatorValue(parseNode) {
|
|
1354
|
+
return deserializeIntoMessageTemplate;
|
|
1355
|
+
}
|
|
1356
|
+
/**
|
|
1357
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1358
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1359
|
+
* @returns {MessageTemplateRequest}
|
|
1360
|
+
*/
|
|
1361
|
+
// @ts-ignore
|
|
1362
|
+
export function createMessageTemplateRequestFromDiscriminatorValue(parseNode) {
|
|
1363
|
+
return deserializeIntoMessageTemplateRequest;
|
|
1364
|
+
}
|
|
1347
1365
|
/**
|
|
1348
1366
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1349
1367
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -4269,6 +4287,7 @@ export function deserializeIntoEligibleOutgoingNumberResponse(eligibleOutgoingNu
|
|
|
4269
4287
|
"reasonLabel": n => { eligibleOutgoingNumberResponse.reasonLabel = n.getStringValue(); },
|
|
4270
4288
|
"selectionReason": n => { eligibleOutgoingNumberResponse.selectionReason = n.getEnumValue(OutgoingNumberSelectionReasonObject); },
|
|
4271
4289
|
"sourceId": n => { eligibleOutgoingNumberResponse.sourceId = n.getStringValue(); },
|
|
4290
|
+
"state": n => { eligibleOutgoingNumberResponse.state = n.getStringValue(); },
|
|
4272
4291
|
"teamId": n => { eligibleOutgoingNumberResponse.teamId = n.getStringValue(); },
|
|
4273
4292
|
};
|
|
4274
4293
|
}
|
|
@@ -5422,6 +5441,33 @@ export function deserializeIntoMessageMediaAttachment(messageMediaAttachment = {
|
|
|
5422
5441
|
"url": n => { messageMediaAttachment.url = n.getStringValue(); },
|
|
5423
5442
|
};
|
|
5424
5443
|
}
|
|
5444
|
+
/**
|
|
5445
|
+
* The deserialization information for the current model
|
|
5446
|
+
* @param MessageTemplate The instance to deserialize into.
|
|
5447
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5448
|
+
*/
|
|
5449
|
+
// @ts-ignore
|
|
5450
|
+
export function deserializeIntoMessageTemplate(messageTemplate = {}) {
|
|
5451
|
+
return {
|
|
5452
|
+
"body": n => { messageTemplate.body = n.getStringValue(); },
|
|
5453
|
+
"enabled": n => { messageTemplate.enabled = n.getBooleanValue(); },
|
|
5454
|
+
"id": n => { messageTemplate.id = n.getStringValue(); },
|
|
5455
|
+
"name": n => { messageTemplate.name = n.getStringValue(); },
|
|
5456
|
+
};
|
|
5457
|
+
}
|
|
5458
|
+
/**
|
|
5459
|
+
* The deserialization information for the current model
|
|
5460
|
+
* @param MessageTemplateRequest The instance to deserialize into.
|
|
5461
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5462
|
+
*/
|
|
5463
|
+
// @ts-ignore
|
|
5464
|
+
export function deserializeIntoMessageTemplateRequest(messageTemplateRequest = {}) {
|
|
5465
|
+
return {
|
|
5466
|
+
"body": n => { messageTemplateRequest.body = n.getStringValue(); },
|
|
5467
|
+
"enabled": n => { messageTemplateRequest.enabled = n.getBooleanValue(); },
|
|
5468
|
+
"name": n => { messageTemplateRequest.name = n.getStringValue(); },
|
|
5469
|
+
};
|
|
5470
|
+
}
|
|
5425
5471
|
/**
|
|
5426
5472
|
* The deserialization information for the current model
|
|
5427
5473
|
* @param MobileDevicePreferences The instance to deserialize into.
|
|
@@ -9949,6 +9995,7 @@ export function serializeEligibleOutgoingNumberResponse(writer, eligibleOutgoing
|
|
|
9949
9995
|
writer.writeStringValue("reasonLabel", eligibleOutgoingNumberResponse.reasonLabel);
|
|
9950
9996
|
writer.writeEnumValue("selectionReason", eligibleOutgoingNumberResponse.selectionReason);
|
|
9951
9997
|
writer.writeStringValue("sourceId", eligibleOutgoingNumberResponse.sourceId);
|
|
9998
|
+
writer.writeStringValue("state", eligibleOutgoingNumberResponse.state);
|
|
9952
9999
|
writer.writeStringValue("teamId", eligibleOutgoingNumberResponse.teamId);
|
|
9953
10000
|
writer.writeAdditionalData(eligibleOutgoingNumberResponse.additionalData);
|
|
9954
10001
|
}
|
|
@@ -11284,6 +11331,39 @@ export function serializeMessageMediaAttachment(writer, messageMediaAttachment =
|
|
|
11284
11331
|
writer.writeStringValue("url", messageMediaAttachment.url);
|
|
11285
11332
|
writer.writeAdditionalData(messageMediaAttachment.additionalData);
|
|
11286
11333
|
}
|
|
11334
|
+
/**
|
|
11335
|
+
* Serializes information the current object
|
|
11336
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
11337
|
+
* @param MessageTemplate The instance to serialize from.
|
|
11338
|
+
* @param writer Serialization writer to use to serialize this model
|
|
11339
|
+
*/
|
|
11340
|
+
// @ts-ignore
|
|
11341
|
+
export function serializeMessageTemplate(writer, messageTemplate = {}, isSerializingDerivedType = false) {
|
|
11342
|
+
if (!messageTemplate || isSerializingDerivedType) {
|
|
11343
|
+
return;
|
|
11344
|
+
}
|
|
11345
|
+
writer.writeStringValue("body", messageTemplate.body);
|
|
11346
|
+
writer.writeBooleanValue("enabled", messageTemplate.enabled);
|
|
11347
|
+
writer.writeStringValue("id", messageTemplate.id);
|
|
11348
|
+
writer.writeStringValue("name", messageTemplate.name);
|
|
11349
|
+
writer.writeAdditionalData(messageTemplate.additionalData);
|
|
11350
|
+
}
|
|
11351
|
+
/**
|
|
11352
|
+
* Serializes information the current object
|
|
11353
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
11354
|
+
* @param MessageTemplateRequest The instance to serialize from.
|
|
11355
|
+
* @param writer Serialization writer to use to serialize this model
|
|
11356
|
+
*/
|
|
11357
|
+
// @ts-ignore
|
|
11358
|
+
export function serializeMessageTemplateRequest(writer, messageTemplateRequest = {}, isSerializingDerivedType = false) {
|
|
11359
|
+
if (!messageTemplateRequest || isSerializingDerivedType) {
|
|
11360
|
+
return;
|
|
11361
|
+
}
|
|
11362
|
+
writer.writeStringValue("body", messageTemplateRequest.body);
|
|
11363
|
+
writer.writeBooleanValue("enabled", messageTemplateRequest.enabled);
|
|
11364
|
+
writer.writeStringValue("name", messageTemplateRequest.name);
|
|
11365
|
+
writer.writeAdditionalData(messageTemplateRequest.additionalData);
|
|
11366
|
+
}
|
|
11287
11367
|
/**
|
|
11288
11368
|
* Serializes information the current object
|
|
11289
11369
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|