@twilio/conversations 3.0.0-rc.9 → 3.0.0
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/README.md +39 -29
- package/builds/browser.esm.js +10838 -0
- package/builds/browser.esm.js.map +1 -0
- package/builds/browser.js +2494 -476
- package/builds/browser.js.map +1 -1
- package/builds/lib.d.ts +805 -70
- package/builds/lib.esm.d.ts +3178 -0
- package/builds/lib.esm.js +10837 -0
- package/builds/lib.js +2494 -476
- package/builds/lib.js.map +1 -1
- package/builds/twilio-conversations.js +29167 -26611
- package/builds/twilio-conversations.js.map +1 -0
- package/builds/twilio-conversations.min.js +2 -1
- package/builds/twilio-conversations.min.js.map +1 -0
- package/dist/aggregated-delivery-receipt.js +10 -5
- package/dist/aggregated-delivery-receipt.js.map +1 -1
- package/dist/channel-metadata-client.js +187 -0
- package/dist/channel-metadata-client.js.map +1 -0
- package/dist/client.js +266 -192
- package/dist/client.js.map +1 -1
- package/dist/command-executor.js +51 -14
- package/dist/command-executor.js.map +1 -1
- package/dist/configuration.js +23 -12
- package/dist/configuration.js.map +1 -1
- package/dist/content-client.js +180 -0
- package/dist/content-client.js.map +1 -0
- package/dist/content-template.js +304 -0
- package/dist/content-template.js.map +1 -0
- package/dist/conversation.js +213 -134
- package/dist/conversation.js.map +1 -1
- package/dist/data/conversations.js +70 -50
- package/dist/data/conversations.js.map +1 -1
- package/dist/data/messages.js +40 -27
- package/dist/data/messages.js.map +1 -1
- package/dist/data/participants.js +38 -32
- package/dist/data/participants.js.map +1 -1
- package/dist/data/users.js +19 -14
- package/dist/data/users.js.map +1 -1
- package/dist/detailed-delivery-receipt.js +9 -4
- package/dist/detailed-delivery-receipt.js.map +1 -1
- package/dist/index.js +26 -41
- package/dist/index.js.map +1 -1
- package/dist/interfaces/notification-types.js +9 -4
- package/dist/interfaces/notification-types.js.map +1 -1
- package/dist/interfaces/{attributes.js → rules.js} +26 -13
- package/dist/interfaces/rules.js.map +1 -0
- package/dist/logger.js +17 -28
- package/dist/logger.js.map +1 -1
- package/dist/media.js +40 -24
- package/dist/media.js.map +1 -1
- package/dist/message-builder.js +79 -12
- package/dist/message-builder.js.map +1 -1
- package/dist/message-recipients-client.js +231 -0
- package/dist/message-recipients-client.js.map +1 -0
- package/dist/message.js +258 -92
- package/dist/message.js.map +1 -1
- package/dist/node_modules/quick-lru/index.js +261 -0
- package/dist/node_modules/quick-lru/index.js.map +1 -0
- package/dist/node_modules/tslib/tslib.es6.js +15 -5
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/packages/conversations/package.json.js +12 -7
- package/dist/packages/conversations/package.json.js.map +1 -1
- package/dist/participant.js +42 -38
- package/dist/participant.js.map +1 -1
- package/dist/push-notification.js +9 -4
- package/dist/push-notification.js.map +1 -1
- package/dist/rest-paginator.js +9 -4
- package/dist/rest-paginator.js.map +1 -1
- package/dist/services/network.js +11 -6
- package/dist/services/network.js.map +1 -1
- package/dist/services/typing-indicator.js +17 -11
- package/dist/services/typing-indicator.js.map +1 -1
- package/dist/unsent-message.js +14 -9
- package/dist/unsent-message.js.map +1 -1
- package/dist/user.js +40 -32
- package/dist/user.js.map +1 -1
- package/dist/util/deferred.js +9 -4
- package/dist/util/deferred.js.map +1 -1
- package/dist/util/index.js +44 -8
- package/dist/util/index.js.map +1 -1
- package/docs/assets/js/search.js +1 -1
- package/docs/classes/AggregatedDeliveryReceipt.html +1 -1
- package/docs/classes/ChannelMetadata.html +3050 -0
- package/docs/classes/Client.html +98 -27
- package/docs/classes/ContentTemplate.html +3116 -0
- package/docs/classes/ContentTemplateVariable.html +3116 -0
- package/docs/classes/Conversation.html +46 -9
- package/docs/classes/EmailRecipientDescriptor.html +3098 -0
- package/docs/classes/Message.html +99 -5
- package/docs/classes/MessageBuilder.html +41 -0
- package/docs/classes/Participant.html +2 -2
- package/docs/classes/UnknownRecipientDescriptor.html +3067 -0
- package/docs/index.html +892 -28
- package/docs/interfaces/ClientOptions.html +32 -0
- package/docs/interfaces/CreateConversationOptions.html +17 -0
- package/docs/modules.html +891 -27
- package/package.json +21 -19
- package/CHANGELOG.md +0 -509
- package/dist/interfaces/attributes.js.map +0 -1
|
@@ -2726,6 +2726,9 @@ img {
|
|
|
2726
2726
|
<li class=" tsd-kind-get-signature tsd-parent-kind-class">
|
|
2727
2727
|
<a href="Message.html#body" class="tsd-kind-icon">body</a>
|
|
2728
2728
|
</li>
|
|
2729
|
+
<li class=" tsd-kind-get-signature tsd-parent-kind-class">
|
|
2730
|
+
<a href="Message.html#contentSid" class="tsd-kind-icon">content<wbr>Sid</a>
|
|
2731
|
+
</li>
|
|
2729
2732
|
<li class=" tsd-kind-get-signature tsd-parent-kind-class">
|
|
2730
2733
|
<a href="Message.html#dateCreated" class="tsd-kind-icon">date<wbr>Created</a>
|
|
2731
2734
|
</li>
|
|
@@ -2753,6 +2756,12 @@ img {
|
|
|
2753
2756
|
<li class=" tsd-kind-get-signature tsd-parent-kind-class">
|
|
2754
2757
|
<a href="Message.html#type" class="tsd-kind-icon">type</a>
|
|
2755
2758
|
</li>
|
|
2759
|
+
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
2760
|
+
<a href="Message.html#getChannelMetadata" class="tsd-kind-icon">get<wbr>Channel<wbr>Metadata</a>
|
|
2761
|
+
</li>
|
|
2762
|
+
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
2763
|
+
<a href="Message.html#getContentData" class="tsd-kind-icon">get<wbr>Content<wbr>Data</a>
|
|
2764
|
+
</li>
|
|
2756
2765
|
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
2757
2766
|
<a href="Message.html#getDetailedDeliveryReceipts" class="tsd-kind-icon">get<wbr>Detailed<wbr>Delivery<wbr>Receipts</a>
|
|
2758
2767
|
</li>
|
|
@@ -2765,6 +2774,9 @@ img {
|
|
|
2765
2774
|
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
2766
2775
|
<a href="Message.html#getMediaByCategories" class="tsd-kind-icon">get<wbr>Media<wbr>ByCategories</a>
|
|
2767
2776
|
</li>
|
|
2777
|
+
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
2778
|
+
<a href="Message.html#getMessageRecipients" class="tsd-kind-icon">get<wbr>Message<wbr>Recipients</a>
|
|
2779
|
+
</li>
|
|
2768
2780
|
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
2769
2781
|
<a href="Message.html#getParticipant" class="tsd-kind-icon">get<wbr>Participant</a>
|
|
2770
2782
|
</li>
|
|
@@ -2831,6 +2843,7 @@ img {
|
|
|
2831
2843
|
<li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="Message.html#attributes" class="tsd-kind-icon">attributes</a></li>
|
|
2832
2844
|
<li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="Message.html#author" class="tsd-kind-icon">author</a></li>
|
|
2833
2845
|
<li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="Message.html#body" class="tsd-kind-icon">body</a></li>
|
|
2846
|
+
<li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="Message.html#contentSid" class="tsd-kind-icon">content<wbr>Sid</a></li>
|
|
2834
2847
|
<li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="Message.html#dateCreated" class="tsd-kind-icon">date<wbr>Created</a></li>
|
|
2835
2848
|
<li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="Message.html#dateUpdated" class="tsd-kind-icon">date<wbr>Updated</a></li>
|
|
2836
2849
|
<li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="Message.html#index" class="tsd-kind-icon">index</a></li>
|
|
@@ -2845,10 +2858,13 @@ img {
|
|
|
2845
2858
|
<section class="tsd-index-section ">
|
|
2846
2859
|
<h3>Methods</h3>
|
|
2847
2860
|
<ul class="tsd-index-list">
|
|
2861
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#getChannelMetadata" class="tsd-kind-icon">get<wbr>Channel<wbr>Metadata</a></li>
|
|
2862
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#getContentData" class="tsd-kind-icon">get<wbr>Content<wbr>Data</a></li>
|
|
2848
2863
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#getDetailedDeliveryReceipts" class="tsd-kind-icon">get<wbr>Detailed<wbr>Delivery<wbr>Receipts</a></li>
|
|
2849
2864
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#getEmailBody" class="tsd-kind-icon">get<wbr>Email<wbr>Body</a></li>
|
|
2850
2865
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#getEmailHistory" class="tsd-kind-icon">get<wbr>Email<wbr>History</a></li>
|
|
2851
2866
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#getMediaByCategories" class="tsd-kind-icon">get<wbr>Media<wbr>ByCategories</a></li>
|
|
2867
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#getMessageRecipients" class="tsd-kind-icon">get<wbr>Message<wbr>Recipients</a></li>
|
|
2852
2868
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#getParticipant" class="tsd-kind-icon">get<wbr>Participant</a></li>
|
|
2853
2869
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#getTemporaryContentUrlsForAttachedMedia" class="tsd-kind-icon">get<wbr>Temporary<wbr>Content<wbr>Urls<wbr>For<wbr>Attached<wbr>Media</a></li>
|
|
2854
2870
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#getTemporaryContentUrlsForMedia" class="tsd-kind-icon">get<wbr>Temporary<wbr>Content<wbr>Urls<wbr>For<wbr>Media</a></li>
|
|
@@ -2993,6 +3009,25 @@ img {
|
|
|
2993
3009
|
</li>
|
|
2994
3010
|
</ul>
|
|
2995
3011
|
</section>
|
|
3012
|
+
<section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
|
|
3013
|
+
<a name="contentSid" class="tsd-anchor"></a>
|
|
3014
|
+
<h3>content<wbr>Sid</h3>
|
|
3015
|
+
<ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
|
|
3016
|
+
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> contentSid<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
|
|
3017
|
+
</ul>
|
|
3018
|
+
<ul class="tsd-descriptions">
|
|
3019
|
+
<li class="tsd-description">
|
|
3020
|
+
<aside class="tsd-sources">
|
|
3021
|
+
</aside>
|
|
3022
|
+
<div class="tsd-comment tsd-typography">
|
|
3023
|
+
<div class="lead">
|
|
3024
|
+
<p>Unique identifier of <a href="ContentTemplate.html">ContentTemplate</a> for this message.</p>
|
|
3025
|
+
</div>
|
|
3026
|
+
</div>
|
|
3027
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
|
3028
|
+
</li>
|
|
3029
|
+
</ul>
|
|
3030
|
+
</section>
|
|
2996
3031
|
<section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
|
|
2997
3032
|
<a name="dateCreated" class="tsd-anchor"></a>
|
|
2998
3033
|
<h3>date<wbr>Created</h3>
|
|
@@ -3043,13 +3078,13 @@ img {
|
|
|
3043
3078
|
</aside>
|
|
3044
3079
|
<div class="tsd-comment tsd-typography">
|
|
3045
3080
|
<div class="lead">
|
|
3046
|
-
<p>Index of
|
|
3047
|
-
By design of the Conversations system, the message indices may have arbitrary gaps between them,
|
|
3048
|
-
that does not necessarily mean they were deleted or otherwise modified - just that
|
|
3049
|
-
messages may have some non-contiguous indices even if they are being sent immediately one after another.</p>
|
|
3081
|
+
<p>Index of this message in the conversation's list of messages.</p>
|
|
3050
3082
|
</div>
|
|
3083
|
+
<p>By design, the message indices may have arbitrary gaps between them,
|
|
3084
|
+
that does not necessarily mean they were deleted or otherwise modified - just that
|
|
3085
|
+
messages may have some non-contiguous indices even if they are being sent immediately one after another.</p>
|
|
3051
3086
|
<p>Trying to use indices for some calculations is going to be unreliable.</p>
|
|
3052
|
-
<p>To calculate the number of unread messages it is better to use the
|
|
3087
|
+
<p>To calculate the number of unread messages, it is better to use the Read Horizon API.
|
|
3053
3088
|
See <a href="Conversation.html#getUnreadMessagesCount">Conversation.getUnreadMessagesCount</a> for details.</p>
|
|
3054
3089
|
</div>
|
|
3055
3090
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
|
|
@@ -3178,6 +3213,46 @@ img {
|
|
|
3178
3213
|
</section>
|
|
3179
3214
|
<section class="tsd-panel-group tsd-member-group ">
|
|
3180
3215
|
<h2>Methods</h2>
|
|
3216
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
3217
|
+
<a name="getChannelMetadata" class="tsd-anchor"></a>
|
|
3218
|
+
<h3>get<wbr>Channel<wbr>Metadata</h3>
|
|
3219
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
3220
|
+
<li class="tsd-signature tsd-kind-icon">get<wbr>Channel<wbr>Metadata<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="ChannelMetadata.html" class="tsd-signature-type" data-tsd-kind="Class">ChannelMetadata</a><span class="tsd-signature-symbol">></span></li>
|
|
3221
|
+
</ul>
|
|
3222
|
+
<ul class="tsd-descriptions">
|
|
3223
|
+
<li class="tsd-description">
|
|
3224
|
+
<aside class="tsd-sources">
|
|
3225
|
+
</aside>
|
|
3226
|
+
<div class="tsd-comment tsd-typography">
|
|
3227
|
+
<div class="lead">
|
|
3228
|
+
<p>Get the <a href="ChannelMetadata.html">ChannelMetadata</a> for this message. Resolves to <code>null</code> if
|
|
3229
|
+
the message doesn't have any channel metadata.</p>
|
|
3230
|
+
</div>
|
|
3231
|
+
</div>
|
|
3232
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="ChannelMetadata.html" class="tsd-signature-type" data-tsd-kind="Class">ChannelMetadata</a><span class="tsd-signature-symbol">></span></h4>
|
|
3233
|
+
</li>
|
|
3234
|
+
</ul>
|
|
3235
|
+
</section>
|
|
3236
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
3237
|
+
<a name="getContentData" class="tsd-anchor"></a>
|
|
3238
|
+
<h3>get<wbr>Content<wbr>Data</h3>
|
|
3239
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
3240
|
+
<li class="tsd-signature tsd-kind-icon">get<wbr>Content<wbr>Data<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="CancellablePromise.html" class="tsd-signature-type" data-tsd-kind="Class">CancellablePromise</a><span class="tsd-signature-symbol"><</span><a href="../modules.html#ContentData" class="tsd-signature-type" data-tsd-kind="Type alias">ContentData</a><span class="tsd-signature-symbol">></span></li>
|
|
3241
|
+
</ul>
|
|
3242
|
+
<ul class="tsd-descriptions">
|
|
3243
|
+
<li class="tsd-description">
|
|
3244
|
+
<aside class="tsd-sources">
|
|
3245
|
+
</aside>
|
|
3246
|
+
<div class="tsd-comment tsd-typography">
|
|
3247
|
+
<div class="lead">
|
|
3248
|
+
<p>Get the <a href="../modules.html#ContentData">ContentData</a> for this message. Resolves to <code>null</code> when
|
|
3249
|
+
<a href="Message.html#contentSid">Message.contentSid</a> is null.</p>
|
|
3250
|
+
</div>
|
|
3251
|
+
</div>
|
|
3252
|
+
<h4 class="tsd-returns-title">Returns <a href="CancellablePromise.html" class="tsd-signature-type" data-tsd-kind="Class">CancellablePromise</a><span class="tsd-signature-symbol"><</span><a href="../modules.html#ContentData" class="tsd-signature-type" data-tsd-kind="Type alias">ContentData</a><span class="tsd-signature-symbol">></span></h4>
|
|
3253
|
+
</li>
|
|
3254
|
+
</ul>
|
|
3255
|
+
</section>
|
|
3181
3256
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
3182
3257
|
<a name="getDetailedDeliveryReceipts" class="tsd-anchor"></a>
|
|
3183
3258
|
<h3>get<wbr>Detailed<wbr>Delivery<wbr>Receipts</h3>
|
|
@@ -3285,6 +3360,25 @@ img {
|
|
|
3285
3360
|
</li>
|
|
3286
3361
|
</ul>
|
|
3287
3362
|
</section>
|
|
3363
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
3364
|
+
<a name="getMessageRecipients" class="tsd-anchor"></a>
|
|
3365
|
+
<h3>get<wbr>Message<wbr>Recipients</h3>
|
|
3366
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
3367
|
+
<li class="tsd-signature tsd-kind-icon">get<wbr>Message<wbr>Recipients<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../modules.html#RecipientDescriptor" class="tsd-signature-type" data-tsd-kind="Type alias">RecipientDescriptor</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span></li>
|
|
3368
|
+
</ul>
|
|
3369
|
+
<ul class="tsd-descriptions">
|
|
3370
|
+
<li class="tsd-description">
|
|
3371
|
+
<aside class="tsd-sources">
|
|
3372
|
+
</aside>
|
|
3373
|
+
<div class="tsd-comment tsd-typography">
|
|
3374
|
+
<div class="lead">
|
|
3375
|
+
<p>Get recipients of the message.</p>
|
|
3376
|
+
</div>
|
|
3377
|
+
</div>
|
|
3378
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../modules.html#RecipientDescriptor" class="tsd-signature-type" data-tsd-kind="Type alias">RecipientDescriptor</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span></h4>
|
|
3379
|
+
</li>
|
|
3380
|
+
</ul>
|
|
3381
|
+
</section>
|
|
3288
3382
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
3289
3383
|
<a name="getParticipant" class="tsd-anchor"></a>
|
|
3290
3384
|
<h3>get<wbr>Participant</h3>
|
|
@@ -2720,6 +2720,9 @@ img {
|
|
|
2720
2720
|
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
2721
2721
|
<a href="MessageBuilder.html#setBody" class="tsd-kind-icon">set<wbr>Body</a>
|
|
2722
2722
|
</li>
|
|
2723
|
+
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
2724
|
+
<a href="MessageBuilder.html#setContentTemplate" class="tsd-kind-icon">set<wbr>Content<wbr>Template</a>
|
|
2725
|
+
</li>
|
|
2723
2726
|
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
2724
2727
|
<a href="MessageBuilder.html#setEmailBody" class="tsd-kind-icon">set<wbr>Email<wbr>Body</a>
|
|
2725
2728
|
</li>
|
|
@@ -2771,6 +2774,7 @@ img {
|
|
|
2771
2774
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="MessageBuilder.html#buildAndSend" class="tsd-kind-icon">build<wbr>And<wbr>Send</a></li>
|
|
2772
2775
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="MessageBuilder.html#setAttributes" class="tsd-kind-icon">set<wbr>Attributes</a></li>
|
|
2773
2776
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="MessageBuilder.html#setBody" class="tsd-kind-icon">set<wbr>Body</a></li>
|
|
2777
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="MessageBuilder.html#setContentTemplate" class="tsd-kind-icon">set<wbr>Content<wbr>Template</a></li>
|
|
2774
2778
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="MessageBuilder.html#setEmailBody" class="tsd-kind-icon">set<wbr>Email<wbr>Body</a></li>
|
|
2775
2779
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="MessageBuilder.html#setEmailHistory" class="tsd-kind-icon">set<wbr>Email<wbr>History</a></li>
|
|
2776
2780
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="MessageBuilder.html#setSubject" class="tsd-kind-icon">set<wbr>Subject</a></li>
|
|
@@ -2903,6 +2907,43 @@ img {
|
|
|
2903
2907
|
</li>
|
|
2904
2908
|
</ul>
|
|
2905
2909
|
</section>
|
|
2910
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
2911
|
+
<a name="setContentTemplate" class="tsd-anchor"></a>
|
|
2912
|
+
<h3>set<wbr>Content<wbr>Template</h3>
|
|
2913
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
2914
|
+
<li class="tsd-signature tsd-kind-icon">set<wbr>Content<wbr>Template<span class="tsd-signature-symbol">(</span>contentSid<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, contentVariables<span class="tsd-signature-symbol">?: </span><a href="ContentTemplateVariable.html" class="tsd-signature-type" data-tsd-kind="Class">ContentTemplateVariable</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="MessageBuilder.html" class="tsd-signature-type" data-tsd-kind="Class">MessageBuilder</a></li>
|
|
2915
|
+
</ul>
|
|
2916
|
+
<ul class="tsd-descriptions">
|
|
2917
|
+
<li class="tsd-description">
|
|
2918
|
+
<aside class="tsd-sources">
|
|
2919
|
+
</aside>
|
|
2920
|
+
<div class="tsd-comment tsd-typography">
|
|
2921
|
+
<div class="lead">
|
|
2922
|
+
<p>Adds <a href="ContentTemplate.html">ContentTemplate</a> SID for the message alongside optional
|
|
2923
|
+
variables. When no variables provided, the default values will be used.</p>
|
|
2924
|
+
</div>
|
|
2925
|
+
<p>Adding the content SID converts the message to a rich message. In this
|
|
2926
|
+
case, other fields are ignored and the message is sent using the content
|
|
2927
|
+
from the the <a href="ContentTemplate.html">ContentTemplate</a>.</p>
|
|
2928
|
+
<p>Use <a href="Client.html#getContentTemplates">Client.getContentTemplates</a> to request all available
|
|
2929
|
+
<a href="ContentTemplate.html">ContentTemplate</a>s.</p>
|
|
2930
|
+
</div>
|
|
2931
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
2932
|
+
<ul class="tsd-parameters">
|
|
2933
|
+
<li>
|
|
2934
|
+
<h5>contentSid: <span class="tsd-signature-type">string</span></h5>
|
|
2935
|
+
<div class="tsd-comment tsd-typography">
|
|
2936
|
+
<p>SID of the <a href="ContentTemplate.html">ContentTemplate</a></p>
|
|
2937
|
+
</div>
|
|
2938
|
+
</li>
|
|
2939
|
+
<li>
|
|
2940
|
+
<h5>contentVariables: <a href="ContentTemplateVariable.html" class="tsd-signature-type" data-tsd-kind="Class">ContentTemplateVariable</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></h5>
|
|
2941
|
+
</li>
|
|
2942
|
+
</ul>
|
|
2943
|
+
<h4 class="tsd-returns-title">Returns <a href="MessageBuilder.html" class="tsd-signature-type" data-tsd-kind="Class">MessageBuilder</a></h4>
|
|
2944
|
+
</li>
|
|
2945
|
+
</ul>
|
|
2946
|
+
</section>
|
|
2906
2947
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
2907
2948
|
<a name="setEmailBody" class="tsd-anchor"></a>
|
|
2908
2949
|
<h3>set<wbr>Email<wbr>Body</h3>
|
|
@@ -3082,7 +3082,7 @@ img {
|
|
|
3082
3082
|
<a name="type" class="tsd-anchor"></a>
|
|
3083
3083
|
<h3>type</h3>
|
|
3084
3084
|
<ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
|
|
3085
|
-
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> type<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><
|
|
3085
|
+
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> type<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
|
|
3086
3086
|
</ul>
|
|
3087
3087
|
<ul class="tsd-descriptions">
|
|
3088
3088
|
<li class="tsd-description">
|
|
@@ -3093,7 +3093,7 @@ img {
|
|
|
3093
3093
|
<p>Type of the participant.</p>
|
|
3094
3094
|
</div>
|
|
3095
3095
|
</div>
|
|
3096
|
-
<h4 class="tsd-returns-title">Returns <
|
|
3096
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
|
3097
3097
|
</li>
|
|
3098
3098
|
</ul>
|
|
3099
3099
|
</section>
|