@twilio/conversations 2.1.0-rc.8 → 3.0.0-canary.13
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 +8 -4
- package/builds/browser.js +2730 -1984
- package/builds/browser.js.map +1 -1
- package/builds/lib.d.ts +516 -307
- package/builds/lib.js +2730 -1984
- package/builds/lib.js.map +1 -1
- package/builds/twilio-conversations.js +5347 -4949
- package/builds/twilio-conversations.min.js +1 -16
- package/dist/aggregated-delivery-receipt.js.map +1 -1
- package/dist/client.js +429 -284
- package/dist/client.js.map +1 -1
- package/dist/command-executor.js.map +1 -1
- package/dist/configuration.js +2 -2
- package/dist/configuration.js.map +1 -1
- package/dist/conversation.js +405 -369
- package/dist/conversation.js.map +1 -1
- package/dist/data/conversations.js +10 -11
- package/dist/data/conversations.js.map +1 -1
- package/dist/data/messages.js +46 -26
- package/dist/data/messages.js.map +1 -1
- package/dist/data/participants.js +19 -10
- package/dist/data/participants.js.map +1 -1
- package/dist/data/users.js +2 -2
- package/dist/data/users.js.map +1 -1
- package/dist/detailed-delivery-receipt.js.map +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/interfaces/attributes.js.map +1 -1
- package/dist/interfaces/notification-types.js.map +1 -1
- package/dist/logger.js +2 -4
- package/dist/logger.js.map +1 -1
- package/dist/media.js +36 -25
- package/dist/media.js.map +1 -1
- package/dist/message-builder.js +24 -18
- package/dist/message-builder.js.map +1 -1
- package/dist/message.js +60 -29
- package/dist/message.js.map +1 -1
- package/dist/node_modules/tslib/tslib.es6.js +1 -1
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/packages/conversations/package.json.js +1 -1
- package/dist/participant.js +2 -2
- package/dist/participant.js.map +1 -1
- package/dist/push-notification.js.map +1 -1
- package/dist/rest-paginator.js.map +1 -1
- package/dist/services/network.js.map +1 -1
- package/dist/services/typing-indicator.js +1 -1
- package/dist/services/typing-indicator.js.map +1 -1
- package/dist/unsent-message.js +13 -3
- package/dist/unsent-message.js.map +1 -1
- package/dist/user.js +1 -1
- package/dist/user.js.map +1 -1
- package/dist/util/deferred.js.map +1 -1
- package/dist/util/index.js.map +1 -1
- package/docs/assets/js/search.js +1 -1
- package/docs/classes/Client.html +205 -39
- package/docs/classes/Conversation.html +103 -51
- package/docs/classes/Media.html +2 -28
- package/docs/classes/Message.html +94 -39
- package/docs/classes/MessageBuilder.html +31 -8
- package/docs/classes/PushNotification.html +1 -1
- package/docs/classes/UnsentMessage.html +2 -2
- package/docs/index.html +20 -27
- package/docs/interfaces/ConversationLimits.html +12 -12
- package/docs/interfaces/ConversationState.html +2 -2
- package/docs/interfaces/ConversationUpdatedEventArgs.html +3001 -0
- package/docs/interfaces/PushNotificationData.html +48 -0
- package/docs/modules.html +19 -26
- package/package.json +24 -20
- package/CHANGELOG.md +0 -404
package/docs/classes/Client.html
CHANGED
@@ -2777,6 +2777,9 @@ img {
|
|
2777
2777
|
<li class=" tsd-kind-property tsd-parent-kind-class">
|
2778
2778
|
<a href="Client.html#connectionState" class="tsd-kind-icon">connection<wbr>State</a>
|
2779
2779
|
</li>
|
2780
|
+
<li class=" tsd-kind-property tsd-parent-kind-class">
|
2781
|
+
<a href="Client.html#parsePushNotification" class="tsd-kind-icon">parse<wbr>Push<wbr>Notification</a>
|
2782
|
+
</li>
|
2780
2783
|
<li class=" tsd-kind-property tsd-parent-kind-class">
|
2781
2784
|
<a href="Client.html#version" class="tsd-kind-icon">version</a>
|
2782
2785
|
</li>
|
@@ -2804,6 +2807,12 @@ img {
|
|
2804
2807
|
<li class=" tsd-kind-method tsd-parent-kind-class">
|
2805
2808
|
<a href="Client.html#getSubscribedUsers" class="tsd-kind-icon">get<wbr>Subscribed<wbr>Users</a>
|
2806
2809
|
</li>
|
2810
|
+
<li class=" tsd-kind-method tsd-parent-kind-class">
|
2811
|
+
<a href="Client.html#getTemporaryContentUrlsForMedia" class="tsd-kind-icon">get<wbr>Temporary<wbr>Content<wbr>Urls<wbr>For<wbr>Media</a>
|
2812
|
+
</li>
|
2813
|
+
<li class=" tsd-kind-method tsd-parent-kind-class">
|
2814
|
+
<a href="Client.html#getTemporaryContentUrlsForMediaSids" class="tsd-kind-icon">get<wbr>Temporary<wbr>Content<wbr>Urls<wbr>For<wbr>Media<wbr>Sids</a>
|
2815
|
+
</li>
|
2807
2816
|
<li class=" tsd-kind-method tsd-parent-kind-class">
|
2808
2817
|
<a href="Client.html#getUser" class="tsd-kind-icon">get<wbr>User</a>
|
2809
2818
|
</li>
|
@@ -2826,7 +2835,10 @@ img {
|
|
2826
2835
|
<a href="Client.html#updateToken" class="tsd-kind-icon">update<wbr>Token</a>
|
2827
2836
|
</li>
|
2828
2837
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
2829
|
-
<a href="Client.html#parsePushNotification" class="tsd-kind-icon">parse<wbr>Push<wbr>Notification</a>
|
2838
|
+
<a href="Client.html#parsePushNotification-1" class="tsd-kind-icon">parse<wbr>Push<wbr>Notification</a>
|
2839
|
+
</li>
|
2840
|
+
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
2841
|
+
<a href="Client.html#populateInitRegistrations" class="tsd-kind-icon">populate<wbr>Init<wbr>Registrations</a>
|
2830
2842
|
</li>
|
2831
2843
|
</ul>
|
2832
2844
|
</li>
|
@@ -2895,6 +2907,7 @@ img {
|
|
2895
2907
|
<h3>Properties</h3>
|
2896
2908
|
<ul class="tsd-index-list">
|
2897
2909
|
<li class="tsd-kind-property tsd-parent-kind-class"><a href="Client.html#connectionState" class="tsd-kind-icon">connection<wbr>State</a></li>
|
2910
|
+
<li class="tsd-kind-property tsd-parent-kind-class"><a href="Client.html#parsePushNotification" class="tsd-kind-icon">parse<wbr>Push<wbr>Notification</a></li>
|
2898
2911
|
<li class="tsd-kind-property tsd-parent-kind-class"><a href="Client.html#version" class="tsd-kind-icon">version</a></li>
|
2899
2912
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#version-1" class="tsd-kind-icon">version</a></li>
|
2900
2913
|
</ul>
|
@@ -2914,6 +2927,8 @@ img {
|
|
2914
2927
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Client.html#getConversationByUniqueName" class="tsd-kind-icon">get<wbr>Conversation<wbr>ByUnique<wbr>Name</a></li>
|
2915
2928
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Client.html#getSubscribedConversations" class="tsd-kind-icon">get<wbr>Subscribed<wbr>Conversations</a></li>
|
2916
2929
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Client.html#getSubscribedUsers" class="tsd-kind-icon">get<wbr>Subscribed<wbr>Users</a></li>
|
2930
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Client.html#getTemporaryContentUrlsForMedia" class="tsd-kind-icon">get<wbr>Temporary<wbr>Content<wbr>Urls<wbr>For<wbr>Media</a></li>
|
2931
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Client.html#getTemporaryContentUrlsForMediaSids" class="tsd-kind-icon">get<wbr>Temporary<wbr>Content<wbr>Urls<wbr>For<wbr>Media<wbr>Sids</a></li>
|
2917
2932
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Client.html#getUser" class="tsd-kind-icon">get<wbr>User</a></li>
|
2918
2933
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Client.html#handlePushNotification" class="tsd-kind-icon">handle<wbr>Push<wbr>Notification</a></li>
|
2919
2934
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Client.html#removePushRegistrations" class="tsd-kind-icon">remove<wbr>Push<wbr>Registrations</a></li>
|
@@ -2921,7 +2936,8 @@ img {
|
|
2921
2936
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Client.html#shutdown" class="tsd-kind-icon">shutdown</a></li>
|
2922
2937
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Client.html#unsetPushRegistrationId" class="tsd-kind-icon">unset<wbr>Push<wbr>Registration<wbr>Id</a></li>
|
2923
2938
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Client.html#updateToken" class="tsd-kind-icon">update<wbr>Token</a></li>
|
2924
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#parsePushNotification" class="tsd-kind-icon">parse<wbr>Push<wbr>Notification</a></li>
|
2939
|
+
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#parsePushNotification-1" class="tsd-kind-icon">parse<wbr>Push<wbr>Notification</a></li>
|
2940
|
+
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#populateInitRegistrations" class="tsd-kind-icon">populate<wbr>Init<wbr>Registrations</a></li>
|
2925
2941
|
</ul>
|
2926
2942
|
</section>
|
2927
2943
|
</div>
|
@@ -2942,9 +2958,11 @@ img {
|
|
2942
2958
|
</aside>
|
2943
2959
|
<div class="tsd-comment tsd-typography">
|
2944
2960
|
<div class="lead">
|
2945
|
-
<p>Returned Conversations instance is not yet fully initialized. Calling any
|
2946
|
-
Use connection events to monitor when
|
2947
|
-
|
2961
|
+
<p>Returned Conversations instance is not yet fully initialized. Calling any
|
2962
|
+
operations will block until it is. Use connection events to monitor when
|
2963
|
+
client becomes fully available (connectionStateChanged with state
|
2964
|
+
'connected') or not available (connectionStateChange with state 'denied',
|
2965
|
+
event tokenExpired, event connectionError).</p>
|
2948
2966
|
</div>
|
2949
2967
|
</div>
|
2950
2968
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
@@ -2986,7 +3004,8 @@ img {
|
|
2986
3004
|
</div>
|
2987
3005
|
<p>Parameters:</p>
|
2988
3006
|
<ol>
|
2989
|
-
<li>object <code>data</code> - info object provided with the event. It has the
|
3007
|
+
<li>object <code>data</code> - info object provided with the event. It has the
|
3008
|
+
following properties:<ul>
|
2990
3009
|
<li>boolean <code>terminal</code> - Twilsock will stop connection attempts if true</li>
|
2991
3010
|
<li>string <code>message</code> - the error message of the root cause</li>
|
2992
3011
|
<li>number? <code>httpStatusCode</code> - http status code if available</li>
|
@@ -3006,7 +3025,7 @@ img {
|
|
3006
3025
|
<div class="lead">
|
3007
3026
|
<p>Fired when the connection state of the client has been changed.</p>
|
3008
3027
|
</div>
|
3009
|
-
<p>
|
3028
|
+
<p>Parameters:</p>
|
3010
3029
|
<ol>
|
3011
3030
|
<li><a href="../modules.html#ConnectionState">ConnectionState</a> <code>state</code> - the new connection state</li>
|
3012
3031
|
</ol>
|
@@ -3020,8 +3039,9 @@ img {
|
|
3020
3039
|
</aside>
|
3021
3040
|
<div class="tsd-comment tsd-typography">
|
3022
3041
|
<div class="lead">
|
3023
|
-
<p>Fired when a conversation becomes visible to the client. The event is also
|
3024
|
-
|
3042
|
+
<p>Fired when a conversation becomes visible to the client. The event is also
|
3043
|
+
triggered when the client creates a new conversation.
|
3044
|
+
Fired for all conversations that the client has joined.</p>
|
3025
3045
|
</div>
|
3026
3046
|
<p>Parameters:</p>
|
3027
3047
|
<ol>
|
@@ -3085,15 +3105,18 @@ img {
|
|
3085
3105
|
</aside>
|
3086
3106
|
<div class="tsd-comment tsd-typography">
|
3087
3107
|
<div class="lead">
|
3088
|
-
<p>Fired when the attributes or the metadata of a conversation have been
|
3089
|
-
During conversation's creation and initialization, this event
|
3090
|
-
|
3108
|
+
<p>Fired when the attributes or the metadata of a conversation have been
|
3109
|
+
updated. During conversation's creation and initialization, this event
|
3110
|
+
might be fired multiple times for same joined or created conversation as
|
3111
|
+
new data is arriving from different sources.</p>
|
3091
3112
|
</div>
|
3092
3113
|
<p>Parameters:</p>
|
3093
3114
|
<ol>
|
3094
|
-
<li>object <code>data</code> - info object provided with the event. It has the
|
3115
|
+
<li>object <code>data</code> - info object provided with the event. It has the
|
3116
|
+
following properties:<ul>
|
3095
3117
|
<li><a href="Conversation.html">Conversation</a> <code>conversation</code> - the conversation in question</li>
|
3096
|
-
<li><a href="../modules.html#ConversationUpdateReason">ConversationUpdateReason</a>[] <code>updateReasons</code> - array of reasons
|
3118
|
+
<li><a href="../modules.html#ConversationUpdateReason">ConversationUpdateReason</a>[] <code>updateReasons</code> - array of reasons
|
3119
|
+
for the update</li>
|
3097
3120
|
</ul>
|
3098
3121
|
</li>
|
3099
3122
|
</ol>
|
@@ -3143,9 +3166,11 @@ img {
|
|
3143
3166
|
</div>
|
3144
3167
|
<p>Parameters:</p>
|
3145
3168
|
<ol>
|
3146
|
-
<li>object <code>data</code> - info object provided with the event. It has the
|
3169
|
+
<li>object <code>data</code> - info object provided with the event. It has the
|
3170
|
+
following properties:<ul>
|
3147
3171
|
<li><a href="Message.html">Message</a> <code>message</code> - the message in question</li>
|
3148
|
-
<li><a href="../modules.html#MessageUpdateReason">MessageUpdateReason</a>[] <code>updateReasons</code> - array of reasons for
|
3172
|
+
<li><a href="../modules.html#MessageUpdateReason">MessageUpdateReason</a>[] <code>updateReasons</code> - array of reasons for
|
3173
|
+
the update</li>
|
3149
3174
|
</ul>
|
3150
3175
|
</li>
|
3151
3176
|
</ol>
|
@@ -3195,9 +3220,11 @@ img {
|
|
3195
3220
|
</div>
|
3196
3221
|
<p>Parameters:</p>
|
3197
3222
|
<ol>
|
3198
|
-
<li>object <code>data</code> - info object provided with the event. It has the
|
3223
|
+
<li>object <code>data</code> - info object provided with the event. It has the
|
3224
|
+
following properties:<ul>
|
3199
3225
|
<li><a href="Participant.html">Participant</a> <code>participant</code> - the participant in question</li>
|
3200
|
-
<li><a href="../modules.html#ParticipantUpdateReason">ParticipantUpdateReason</a>[] <code>updateReasons</code> - array of reasons
|
3226
|
+
<li><a href="../modules.html#ParticipantUpdateReason">ParticipantUpdateReason</a>[] <code>updateReasons</code> - array of reasons
|
3227
|
+
for the update</li>
|
3201
3228
|
</ul>
|
3202
3229
|
</li>
|
3203
3230
|
</ol>
|
@@ -3211,11 +3238,13 @@ img {
|
|
3211
3238
|
</aside>
|
3212
3239
|
<div class="tsd-comment tsd-typography">
|
3213
3240
|
<div class="lead">
|
3214
|
-
<p>Fired when the client has received (and parsed) a push notification via one
|
3241
|
+
<p>Fired when the client has received (and parsed) a push notification via one
|
3242
|
+
of the push channels (apn or fcm).</p>
|
3215
3243
|
</div>
|
3216
3244
|
<p>Parameters:</p>
|
3217
3245
|
<ol>
|
3218
|
-
<li><a href="PushNotification.html">PushNotification</a> <code>pushNotification</code> - the push notification in
|
3246
|
+
<li><a href="PushNotification.html">PushNotification</a> <code>pushNotification</code> - the push notification in
|
3247
|
+
question</li>
|
3219
3248
|
</ol>
|
3220
3249
|
</div>
|
3221
3250
|
</section>
|
@@ -3231,7 +3260,12 @@ img {
|
|
3231
3260
|
</div>
|
3232
3261
|
<p>Parameters:</p>
|
3233
3262
|
<ol>
|
3234
|
-
<li
|
3263
|
+
<li>object <code>data</code> - info object provided with the event. It has the
|
3264
|
+
following properties:<ul>
|
3265
|
+
<li><a href="../modules.html#State">State</a> <code>state</code> - the new client state</li>
|
3266
|
+
<li>Error? <code>error</code> - the initialization error if present</li>
|
3267
|
+
</ul>
|
3268
|
+
</li>
|
3235
3269
|
</ol>
|
3236
3270
|
</div>
|
3237
3271
|
</section>
|
@@ -3244,12 +3278,6 @@ img {
|
|
3244
3278
|
<div class="tsd-comment tsd-typography">
|
3245
3279
|
<div class="lead">
|
3246
3280
|
<p>Fired when the token is about to expire and needs to be updated.</p>
|
3247
|
-
<ul>
|
3248
|
-
<li>Parameters:</li>
|
3249
|
-
</ul>
|
3250
|
-
<ol>
|
3251
|
-
<li>number <code>message</code> - token's time to live</li>
|
3252
|
-
</ol>
|
3253
3281
|
</div>
|
3254
3282
|
</div>
|
3255
3283
|
</section>
|
@@ -3337,13 +3365,16 @@ img {
|
|
3337
3365
|
</aside>
|
3338
3366
|
<div class="tsd-comment tsd-typography">
|
3339
3367
|
<div class="lead">
|
3340
|
-
<p>Fired when the properties or the reachability status of a user have been
|
3368
|
+
<p>Fired when the properties or the reachability status of a user have been
|
3369
|
+
updated.</p>
|
3341
3370
|
</div>
|
3342
3371
|
<p>Parameters:</p>
|
3343
3372
|
<ol>
|
3344
|
-
<li>object <code>data</code> - info object provided with the event. It has the
|
3373
|
+
<li>object <code>data</code> - info object provided with the event. It has the
|
3374
|
+
following properties:<ul>
|
3345
3375
|
<li><a href="User.html">User</a> <code>user</code> - the user in question</li>
|
3346
|
-
<li><a href="../modules.html#UserUpdateReason">UserUpdateReason</a>[] <code>updateReasons</code> - array of reasons for the
|
3376
|
+
<li><a href="../modules.html#UserUpdateReason">UserUpdateReason</a>[] <code>updateReasons</code> - array of reasons for the
|
3377
|
+
update</li>
|
3347
3378
|
</ul>
|
3348
3379
|
</li>
|
3349
3380
|
</ol>
|
@@ -3364,6 +3395,48 @@ img {
|
|
3364
3395
|
</div>
|
3365
3396
|
</div>
|
3366
3397
|
</section>
|
3398
|
+
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
3399
|
+
<a name="parsePushNotification" class="tsd-anchor"></a>
|
3400
|
+
<h3>parse<wbr>Push<wbr>Notification</h3>
|
3401
|
+
<div class="tsd-signature tsd-kind-icon">parse<wbr>Push<wbr>Notification<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span>notificationPayload<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><a href="PushNotification.html" class="tsd-signature-type" data-tsd-kind="Class">PushNotification</a><span class="tsd-signature-symbol"> = ...</span></div>
|
3402
|
+
<aside class="tsd-sources">
|
3403
|
+
</aside>
|
3404
|
+
<div class="tsd-comment tsd-typography">
|
3405
|
+
<div class="lead">
|
3406
|
+
<p>Current version of the Conversations client.</p>
|
3407
|
+
</div>
|
3408
|
+
</div>
|
3409
|
+
<div class="tsd-type-declaration">
|
3410
|
+
<h4>Type declaration</h4>
|
3411
|
+
<ul class="tsd-parameters">
|
3412
|
+
<li class="tsd-parameter-signature">
|
3413
|
+
<ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-class">
|
3414
|
+
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>notificationPayload<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="PushNotification.html" class="tsd-signature-type" data-tsd-kind="Class">PushNotification</a></li>
|
3415
|
+
</ul>
|
3416
|
+
<ul class="tsd-descriptions">
|
3417
|
+
<li class="tsd-description">
|
3418
|
+
<div class="tsd-comment tsd-typography">
|
3419
|
+
<div class="lead">
|
3420
|
+
<p>Static method for push notification payload parsing. Returns parsed push as
|
3421
|
+
a <a href="PushNotification.html">PushNotification</a> object.</p>
|
3422
|
+
</div>
|
3423
|
+
</div>
|
3424
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
3425
|
+
<ul class="tsd-parameters">
|
3426
|
+
<li>
|
3427
|
+
<h5>notificationPayload: <span class="tsd-signature-type">any</span></h5>
|
3428
|
+
<div class="tsd-comment tsd-typography">
|
3429
|
+
<p>Push notification payload.</p>
|
3430
|
+
</div>
|
3431
|
+
</li>
|
3432
|
+
</ul>
|
3433
|
+
<h4 class="tsd-returns-title">Returns <a href="PushNotification.html" class="tsd-signature-type" data-tsd-kind="Class">PushNotification</a></h4>
|
3434
|
+
</li>
|
3435
|
+
</ul>
|
3436
|
+
</li>
|
3437
|
+
</ul>
|
3438
|
+
</div>
|
3439
|
+
</section>
|
3367
3440
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
3368
3441
|
<a name="version" class="tsd-anchor"></a>
|
3369
3442
|
<h3><span class="tsd-flag ts-flagReadonly">Readonly</span> version</h3>
|
@@ -3403,7 +3476,7 @@ img {
|
|
3403
3476
|
</aside>
|
3404
3477
|
<div class="tsd-comment tsd-typography">
|
3405
3478
|
<div class="lead">
|
3406
|
-
<p>Client reachability state. Throws if accessed before the client
|
3479
|
+
<p>Client reachability state. Throws an error if accessed before the client
|
3407
3480
|
initialization was completed.</p>
|
3408
3481
|
</div>
|
3409
3482
|
</div>
|
@@ -3558,6 +3631,64 @@ img {
|
|
3558
3631
|
</li>
|
3559
3632
|
</ul>
|
3560
3633
|
</section>
|
3634
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
3635
|
+
<a name="getTemporaryContentUrlsForMedia" class="tsd-anchor"></a>
|
3636
|
+
<h3>get<wbr>Temporary<wbr>Content<wbr>Urls<wbr>For<wbr>Media</h3>
|
3637
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
3638
|
+
<li class="tsd-signature tsd-kind-icon">get<wbr>Temporary<wbr>Content<wbr>Urls<wbr>For<wbr>Media<span class="tsd-signature-symbol">(</span>contentSet<span class="tsd-signature-symbol">: </span><a href="Media.html" class="tsd-signature-type" data-tsd-kind="Class">Media</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">CancellablePromise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Map</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></li>
|
3639
|
+
</ul>
|
3640
|
+
<ul class="tsd-descriptions">
|
3641
|
+
<li class="tsd-description">
|
3642
|
+
<aside class="tsd-sources">
|
3643
|
+
</aside>
|
3644
|
+
<div class="tsd-comment tsd-typography">
|
3645
|
+
<div class="lead">
|
3646
|
+
<p>Get content URLs for all media attachments in the given set using a single
|
3647
|
+
operation.</p>
|
3648
|
+
</div>
|
3649
|
+
</div>
|
3650
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
3651
|
+
<ul class="tsd-parameters">
|
3652
|
+
<li>
|
3653
|
+
<h5>contentSet: <a href="Media.html" class="tsd-signature-type" data-tsd-kind="Class">Media</a><span class="tsd-signature-symbol">[]</span></h5>
|
3654
|
+
<div class="tsd-comment tsd-typography">
|
3655
|
+
<p>Set of media attachments to query content URLs.</p>
|
3656
|
+
</div>
|
3657
|
+
</li>
|
3658
|
+
</ul>
|
3659
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">CancellablePromise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Map</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></h4>
|
3660
|
+
</li>
|
3661
|
+
</ul>
|
3662
|
+
</section>
|
3663
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
3664
|
+
<a name="getTemporaryContentUrlsForMediaSids" class="tsd-anchor"></a>
|
3665
|
+
<h3>get<wbr>Temporary<wbr>Content<wbr>Urls<wbr>For<wbr>Media<wbr>Sids</h3>
|
3666
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
3667
|
+
<li class="tsd-signature tsd-kind-icon">get<wbr>Temporary<wbr>Content<wbr>Urls<wbr>For<wbr>Media<wbr>Sids<span class="tsd-signature-symbol">(</span>mediaSids<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">CancellablePromise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Map</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></li>
|
3668
|
+
</ul>
|
3669
|
+
<ul class="tsd-descriptions">
|
3670
|
+
<li class="tsd-description">
|
3671
|
+
<aside class="tsd-sources">
|
3672
|
+
</aside>
|
3673
|
+
<div class="tsd-comment tsd-typography">
|
3674
|
+
<div class="lead">
|
3675
|
+
<p>Get content URLs for all media attachments in the given set of media sids
|
3676
|
+
using a single operation.</p>
|
3677
|
+
</div>
|
3678
|
+
</div>
|
3679
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
3680
|
+
<ul class="tsd-parameters">
|
3681
|
+
<li>
|
3682
|
+
<h5>mediaSids: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h5>
|
3683
|
+
<div class="tsd-comment tsd-typography">
|
3684
|
+
<p>Set of media sids to query for the content URL.</p>
|
3685
|
+
</div>
|
3686
|
+
</li>
|
3687
|
+
</ul>
|
3688
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">CancellablePromise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Map</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></h4>
|
3689
|
+
</li>
|
3690
|
+
</ul>
|
3691
|
+
</section>
|
3561
3692
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
3562
3693
|
<a name="getUser" class="tsd-anchor"></a>
|
3563
3694
|
<h3>get<wbr>User</h3>
|
@@ -3570,7 +3701,8 @@ img {
|
|
3570
3701
|
</aside>
|
3571
3702
|
<div class="tsd-comment tsd-typography">
|
3572
3703
|
<div class="lead">
|
3573
|
-
<p>Gets a user with the given identity. If it's in the subscribed list, then
|
3704
|
+
<p>Gets a user with the given identity. If it's in the subscribed list, then
|
3705
|
+
return the user object from it;
|
3574
3706
|
if not, then subscribe and add user to the subscribed list.</p>
|
3575
3707
|
</div>
|
3576
3708
|
</div>
|
@@ -3600,7 +3732,8 @@ img {
|
|
3600
3732
|
</aside>
|
3601
3733
|
<div class="tsd-comment tsd-typography">
|
3602
3734
|
<div class="lead">
|
3603
|
-
<p>Handle push notification payload parsing and emit the
|
3735
|
+
<p>Handle push notification payload parsing and emit the
|
3736
|
+
<a href="Client.html#pushNotification">Client.pushNotification</a> event on this <a href="Client.html">Client</a> instance.</p>
|
3604
3737
|
</div>
|
3605
3738
|
</div>
|
3606
3739
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
@@ -3631,8 +3764,10 @@ img {
|
|
3631
3764
|
<p>Clear existing registrations directly using provided device token.
|
3632
3765
|
This is useful to ensure stopped subscriptions without resubscribing.</p>
|
3633
3766
|
</div>
|
3634
|
-
<p>This function goes completely beside the state machine and removes all
|
3635
|
-
|
3767
|
+
<p>This function goes completely beside the state machine and removes all
|
3768
|
+
registrations.
|
3769
|
+
Use with caution: if it races with current state machine operations,
|
3770
|
+
madness will ensue.</p>
|
3636
3771
|
</div>
|
3637
3772
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
3638
3773
|
<ul class="tsd-parameters">
|
@@ -3645,7 +3780,8 @@ img {
|
|
3645
3780
|
<li>
|
3646
3781
|
<h5>registrationId: <span class="tsd-signature-type">string</span></h5>
|
3647
3782
|
<div class="tsd-comment tsd-typography">
|
3648
|
-
<p>Push notification ID provided by the FCM/APNS service
|
3783
|
+
<p>Push notification ID provided by the FCM/APNS service
|
3784
|
+
on the platform.</p>
|
3649
3785
|
</div>
|
3650
3786
|
</li>
|
3651
3787
|
</ul>
|
@@ -3679,7 +3815,8 @@ img {
|
|
3679
3815
|
<li>
|
3680
3816
|
<h5>registrationId: <span class="tsd-signature-type">string</span></h5>
|
3681
3817
|
<div class="tsd-comment tsd-typography">
|
3682
|
-
<p>Push notification ID provided by the FCM/APNS service
|
3818
|
+
<p>Push notification ID provided by the FCM/APNS service
|
3819
|
+
on the platform.</p>
|
3683
3820
|
</div>
|
3684
3821
|
</li>
|
3685
3822
|
</ul>
|
@@ -3768,7 +3905,7 @@ img {
|
|
3768
3905
|
</ul>
|
3769
3906
|
</section>
|
3770
3907
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
3771
|
-
<a name="parsePushNotification" class="tsd-anchor"></a>
|
3908
|
+
<a name="parsePushNotification-1" class="tsd-anchor"></a>
|
3772
3909
|
<h3><span class="tsd-flag ts-flagStatic">Static</span> parse<wbr>Push<wbr>Notification</h3>
|
3773
3910
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
3774
3911
|
<li class="tsd-signature tsd-kind-icon">parse<wbr>Push<wbr>Notification<span class="tsd-signature-symbol">(</span>notificationPayload<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="PushNotification.html" class="tsd-signature-type" data-tsd-kind="Class">PushNotification</a></li>
|
@@ -3779,7 +3916,8 @@ img {
|
|
3779
3916
|
</aside>
|
3780
3917
|
<div class="tsd-comment tsd-typography">
|
3781
3918
|
<div class="lead">
|
3782
|
-
<p>Static method for push notification payload parsing. Returns parsed push as
|
3919
|
+
<p>Static method for push notification payload parsing. Returns parsed push as
|
3920
|
+
a <a href="PushNotification.html">PushNotification</a> object.</p>
|
3783
3921
|
</div>
|
3784
3922
|
</div>
|
3785
3923
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
@@ -3795,6 +3933,34 @@ img {
|
|
3795
3933
|
</li>
|
3796
3934
|
</ul>
|
3797
3935
|
</section>
|
3936
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
3937
|
+
<a name="populateInitRegistrations" class="tsd-anchor"></a>
|
3938
|
+
<h3><span class="tsd-flag ts-flagStatic">Static</span> populate<wbr>Init<wbr>Registrations</h3>
|
3939
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
3940
|
+
<li class="tsd-signature tsd-kind-icon">populate<wbr>Init<wbr>Registrations<span class="tsd-signature-symbol">(</span>reg<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">InitRegistration</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
3941
|
+
</ul>
|
3942
|
+
<ul class="tsd-descriptions">
|
3943
|
+
<li class="tsd-description">
|
3944
|
+
<aside class="tsd-sources">
|
3945
|
+
</aside>
|
3946
|
+
<div class="tsd-comment tsd-typography">
|
3947
|
+
<div class="lead">
|
3948
|
+
<p>Populate the client with init registrations.</p>
|
3949
|
+
</div>
|
3950
|
+
</div>
|
3951
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
3952
|
+
<ul class="tsd-parameters">
|
3953
|
+
<li>
|
3954
|
+
<h5>reg: <span class="tsd-signature-type">InitRegistration</span></h5>
|
3955
|
+
<div class="tsd-comment tsd-typography">
|
3956
|
+
<p>The init registration to populate.</p>
|
3957
|
+
</div>
|
3958
|
+
</li>
|
3959
|
+
</ul>
|
3960
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
3961
|
+
</li>
|
3962
|
+
</ul>
|
3963
|
+
</section>
|
3798
3964
|
</section>
|
3799
3965
|
<footer>
|
3800
3966
|
<div class="container">
|