@@ -327,7 +327,7 @@ export const actions = {
327327
328328 if ( context . state . user && context . state . user . active_phone_id ) {
329329 const phone = response . data . data . find (
330- ( x : EntitiesPhone ) => x . id === context . state . user ?. active_phone_id
330+ ( x : EntitiesPhone ) => x . id === context . state . user ?. active_phone_id ,
331331 )
332332 if ( phone ) {
333333 context . commit ( 'setOwner' , phone . phone_number )
@@ -351,15 +351,15 @@ export const actions = {
351351
352352 async updatePhone (
353353 context : ActionContext < State , State > ,
354- phone : EntitiesPhone
354+ phone : EntitiesPhone ,
355355 ) {
356356 await axios
357357 . put ( `/v1/phones` , {
358358 fcm_token : phone . fcm_token ,
359359 sim : phone . sim ,
360360 phone_number : phone . phone_number ,
361361 message_expiration_seconds : parseInt (
362- phone . message_expiration_seconds . toString ( )
362+ phone . message_expiration_seconds . toString ( ) ,
363363 ) ,
364364 max_send_attempts : parseInt ( phone . max_send_attempts . toString ( ) ) ,
365365 messages_per_minute : parseInt ( phone . messages_per_minute . toString ( ) ) ,
@@ -379,7 +379,7 @@ export const actions = {
379379
380380 async handleAxiosError (
381381 context : ActionContext < State , State > ,
382- error : AxiosError
382+ error : AxiosError ,
383383 ) {
384384 const errorMessage =
385385 error . response ?. data ?. data [ Object . keys ( error . response ?. data ?. data ) [ 0 ] ] [ 0 ]
@@ -394,7 +394,7 @@ export const actions = {
394394
395395 getHeartbeat (
396396 context : ActionContext < State , State > ,
397- limit = 1
397+ limit = 1 ,
398398 ) : Promise < Array < Heartbeat > > {
399399 return new Promise < Array < Heartbeat > > ( ( resolve , reject ) => {
400400 axios
@@ -430,7 +430,7 @@ export const actions = {
430430
431431 async sendMessage (
432432 context : ActionContext < State , State > ,
433- request : SendMessageRequest
433+ request : SendMessageRequest ,
434434 ) {
435435 try {
436436 const response = await axios . post ( '/v1/messages/send' , request )
@@ -455,7 +455,7 @@ export const actions = {
455455
456456 addNotification (
457457 context : ActionContext < State , State > ,
458- request : NotificationRequest
458+ request : NotificationRequest ,
459459 ) {
460460 context . commit ( 'setNotification' , request )
461461 } ,
@@ -466,7 +466,7 @@ export const actions = {
466466
467467 loadThreadMessages (
468468 context : ActionContext < State , State > ,
469- threadId : string | null
469+ threadId : string | null ,
470470 ) : Promise < Array < Message > > {
471471 context . commit ( 'setThreadId' , threadId )
472472 return new Promise < Array < Message > > ( ( resolve , reject ) => {
@@ -494,7 +494,7 @@ export const actions = {
494494
495495 async setAuthUser (
496496 context : ActionContext < State , State > ,
497- user : AuthUser | null | undefined
497+ user : AuthUser | null | undefined ,
498498 ) {
499499 const userChanged = user ?. id !== context . getters . getAuthUser ?. id
500500
@@ -511,7 +511,7 @@ export const actions = {
511511 ] )
512512
513513 const phone = context . getters . getPhones . find (
514- ( x : EntitiesPhone ) => x . id === context . getters . getUser . active_phone_id
514+ ( x : EntitiesPhone ) => x . id === context . getters . getUser . active_phone_id ,
515515 )
516516 if ( phone ) {
517517 await context . dispatch ( 'updateUser' , {
@@ -524,7 +524,7 @@ export const actions = {
524524 async onAuthStateChanged (
525525 context : ActionContext < State , State > ,
526526 // @ts -ignore
527- { authUser }
527+ { authUser } ,
528528 ) {
529529 if ( authUser == null ) {
530530 await Promise . all ( [
@@ -544,7 +544,7 @@ export const actions = {
544544 async onIdTokenChanged (
545545 _ : ActionContext < State , State > ,
546546 // @ts -ignore
547- { authUser }
547+ { authUser } ,
548548 ) {
549549 if ( authUser == null ) {
550550 setApiKey ( '' )
@@ -559,7 +559,7 @@ export const actions = {
559559
560560 async updateUser (
561561 context : ActionContext < State , State > ,
562- payload : { owner : string ; timezone : string }
562+ payload : { owner : string ; timezone : string } ,
563563 ) {
564564 await context . commit ( 'setOwner' , payload . owner )
565565
@@ -579,7 +579,7 @@ export const actions = {
579579
580580 async updateThread (
581581 context : ActionContext < State , State > ,
582- payload : { threadId : string ; isArchived : boolean }
582+ payload : { threadId : string ; isArchived : boolean } ,
583583 ) {
584584 await axios . put ( `/v1/message-threads/${ payload . threadId } ` , {
585585 is_archived : payload . isArchived ,
@@ -632,7 +632,7 @@ export const actions = {
632632
633633 createDiscord (
634634 context : ActionContext < State , State > ,
635- payload : RequestsDiscordStore
635+ payload : RequestsDiscordStore ,
636636 ) : Promise < EntitiesDiscord > {
637637 return new Promise < EntitiesDiscord > ( ( resolve , reject ) => {
638638 axios
@@ -681,13 +681,13 @@ export const actions = {
681681
682682 updateDiscordIntegration (
683683 context : ActionContext < State , State > ,
684- payload : RequestsDiscordUpdate & { id : string }
684+ payload : RequestsDiscordUpdate & { id : string } ,
685685 ) {
686686 return new Promise < EntitiesDiscord > ( ( resolve , reject ) => {
687687 axios
688688 . put < ResponsesDiscordResponse > (
689689 `/v1/discord-integrations/${ payload . id } ` ,
690- payload
690+ payload ,
691691 )
692692 . then ( ( response : AxiosResponse < ResponsesDiscordResponse > ) => {
693693 resolve ( response . data . data )
@@ -708,7 +708,7 @@ export const actions = {
708708
709709 deleteDiscordIntegration (
710710 context : ActionContext < State , State > ,
711- payload : string
711+ payload : string ,
712712 ) {
713713 return new Promise < void > ( ( resolve , reject ) => {
714714 axios
@@ -732,7 +732,7 @@ export const actions = {
732732
733733 createWebhook (
734734 context : ActionContext < State , State > ,
735- payload : RequestsWebhookStore
735+ payload : RequestsWebhookStore ,
736736 ) {
737737 return new Promise < EntitiesWebhook > ( ( resolve , reject ) => {
738738 axios
@@ -780,7 +780,7 @@ export const actions = {
780780
781781 updateWebhook (
782782 context : ActionContext < State , State > ,
783- payload : RequestsWebhookUpdate & { id : string }
783+ payload : RequestsWebhookUpdate & { id : string } ,
784784 ) {
785785 return new Promise < EntitiesWebhook > ( ( resolve , reject ) => {
786786 axios
0 commit comments