@bcrumbs.net/inbox 0.0.69 → 0.0.71
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/index.cjs.js +564 -317
- package/index.esm.js +564 -317
- package/package.json +1 -1
- package/src/app/automation/components/AutomationAudienceSummary.d.ts +10 -0
- package/src/app/automation/components/AutomationInfoHeader.d.ts +17 -0
- package/src/app/automation/components/AutomationList.d.ts +8 -0
- package/src/app/automation/components/AutomationListTable.d.ts +16 -0
- package/src/app/automation/components/AutomationMessageSection.d.ts +12 -0
- package/src/app/automation/components/AutomationOccurrencesFilters.d.ts +13 -0
- package/src/app/automation/components/AutomationOccurrencesHeader.d.ts +10 -0
- package/src/app/automation/components/AutomationOccurrencesStats.d.ts +8 -0
- package/src/app/automation/components/AutomationOccurrencesTable.d.ts +11 -0
- package/src/app/automation/components/AutomationOverview.d.ts +10 -0
- package/src/app/automation/components/AutomationScheduleSection.d.ts +15 -0
- package/src/app/automation/components/AutomationStateBadge.d.ts +11 -0
- package/src/app/automation/components/AutomationTriggerSection.d.ts +14 -0
- package/src/app/automation/constants.d.ts +31 -0
- package/src/app/automation/hooks/useAutomationAudience.d.ts +20 -0
- package/src/app/automation/hooks/useAutomationStateActions.d.ts +11 -0
- package/src/app/automation/hooks/useAutomationSubmit.d.ts +28 -0
- package/src/app/automation/hooks/useAutomationTemplate.d.ts +29 -0
- package/src/app/automation/pages/AutomationInfo.d.ts +2 -0
- package/src/app/automation/pages/AutomationList.d.ts +2 -0
- package/src/app/automation/pages/AutomationOccurrences.d.ts +2 -0
- package/src/app/automation/types.d.ts +7 -0
- package/src/app/automation/utils/automationForm.d.ts +49 -0
- package/src/app/automation/utils/occurrences.d.ts +14 -0
- package/src/app/automation/utils/stateCounts.d.ts +17 -0
- package/src/app/broadcast/components/BroadcastDetailsSection.d.ts +5 -1
- package/src/app/broadcast/components/BroadcastInfoTemplateMessagePreview.d.ts +4 -2
- package/src/app/broadcast/components/BroadcastRecipientsSection.d.ts +3 -1
- package/src/app/inbox/hooks/useAutoAssignOnSend.d.ts +7 -0
- package/src/app/inbox/hooks/useMyAgent.d.ts +2 -0
- package/src/app/layout/constants/subMenu.d.ts +13 -0
- package/src/app/layout/hooks/useAutomationsEnabled.d.ts +9 -0
- package/src/assets/locales/translations.d.ts +137 -0
- package/src/graphql.autogenerated.d.ts +1064 -2
|
@@ -372,6 +372,262 @@ export type AssigneeSuggestion = {
|
|
|
372
372
|
/** How many of the client's previous conversations this agent handled. */
|
|
373
373
|
servedConversations: Scalars['Int']['output'];
|
|
374
374
|
};
|
|
375
|
+
/**
|
|
376
|
+
* Automation sends a WhatsApp template to each contact a fixed delay after one of the contact's dates,
|
|
377
|
+
* as long as the contact matches the conditions when it becomes due.
|
|
378
|
+
*/
|
|
379
|
+
export type Automation = {
|
|
380
|
+
__typename?: 'Automation';
|
|
381
|
+
/** The date and time when the automation was first activated. */
|
|
382
|
+
activatedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
383
|
+
/** Contacts must be in this stage. */
|
|
384
|
+
clientStageId?: Maybe<Scalars['String']['output']>;
|
|
385
|
+
/** Contacts must have any of these tags. */
|
|
386
|
+
clientTags?: Maybe<Array<Scalars['String']['output']>>;
|
|
387
|
+
/** Contacts must be from this country. */
|
|
388
|
+
country?: Maybe<Scalars['String']['output']>;
|
|
389
|
+
createdAt: Scalars['DateTime']['output'];
|
|
390
|
+
/** Minutes after the trigger date when the message is due. */
|
|
391
|
+
delayMinutes: Scalars['Int']['output'];
|
|
392
|
+
/** Set when the automation was deleted. A deleted automation only shows its occurrence history. */
|
|
393
|
+
deletedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
394
|
+
id: Scalars['ID']['output'];
|
|
395
|
+
/** The integration/channel id used to send the template. */
|
|
396
|
+
integrationId: Scalars['ID']['output'];
|
|
397
|
+
/** The last processing error. Set when the automation was paused automatically or is blocked by usage limits. */
|
|
398
|
+
lastError?: Maybe<Scalars['String']['output']>;
|
|
399
|
+
/** The date and time of the newest occurrence. */
|
|
400
|
+
lastOccurrenceAt?: Maybe<Scalars['DateTime']['output']>;
|
|
401
|
+
/** The date and time of the last completed processing run. */
|
|
402
|
+
lastRunAt?: Maybe<Scalars['DateTime']['output']>;
|
|
403
|
+
/** Contacts that became due more than this many days ago are skipped (catch-up window). */
|
|
404
|
+
maxLatenessDays: Scalars['Int']['output'];
|
|
405
|
+
/** The name of the automation. */
|
|
406
|
+
name: Scalars['String']['output'];
|
|
407
|
+
patchedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
408
|
+
/** Minimum days between two messages to the same contact when reentryPolicy is cooldown. */
|
|
409
|
+
reentryCooldownDays?: Maybe<Scalars['Int']['output']>;
|
|
410
|
+
/** How often the same contact can receive the automation. */
|
|
411
|
+
reentryPolicy: AutomationReentryPolicy;
|
|
412
|
+
/** Weekdays (SUN, MON, TUE, WED, THU, FRI, SAT) on which the automation sends. Empty means every day. */
|
|
413
|
+
sendWeekdays?: Maybe<Array<Scalars['String']['output']>>;
|
|
414
|
+
/** End of the daily send window in minutes from midnight. Empty means any time. */
|
|
415
|
+
sendWindowEnd?: Maybe<Scalars['Int']['output']>;
|
|
416
|
+
/** Start of the daily send window in minutes from midnight. Empty means any time. */
|
|
417
|
+
sendWindowStart?: Maybe<Scalars['Int']['output']>;
|
|
418
|
+
/** Number of occurrences that were sent. */
|
|
419
|
+
sentCount?: Maybe<Scalars['Int']['output']>;
|
|
420
|
+
/** The state of the automation. */
|
|
421
|
+
state: AutomationState;
|
|
422
|
+
/**
|
|
423
|
+
* The components of the template, in the same format as Broadcast.templateComponents.
|
|
424
|
+
* Placeholders such as {{name}} are replaced with the contact data when sent.
|
|
425
|
+
*/
|
|
426
|
+
templateComponents?: Maybe<Scalars['JSON']['output']>;
|
|
427
|
+
/** The language of the template. */
|
|
428
|
+
templateLang?: Maybe<Scalars['String']['output']>;
|
|
429
|
+
/** The name of the template to send. */
|
|
430
|
+
templateName?: Maybe<Scalars['String']['output']>;
|
|
431
|
+
/** IANA timezone used for the send window. */
|
|
432
|
+
timezone: Scalars['String']['output'];
|
|
433
|
+
/** The contact date the delay is counted from. */
|
|
434
|
+
triggerType: AutomationTriggerType;
|
|
435
|
+
workspaceId: Scalars['Int']['output'];
|
|
436
|
+
};
|
|
437
|
+
/** AutomationAudiencePreview counts the contacts an automation would reach. */
|
|
438
|
+
export type AutomationAudiencePreview = {
|
|
439
|
+
__typename?: 'AutomationAudiencePreview';
|
|
440
|
+
/** Matching contacts that are already due inside the catch-up window and would be sent on activation. */
|
|
441
|
+
dueCount: Scalars['Int']['output'];
|
|
442
|
+
/** Contacts matching the conditions now. */
|
|
443
|
+
matchingCount: Scalars['Int']['output'];
|
|
444
|
+
};
|
|
445
|
+
export type AutomationAudiencePreviewInput = {
|
|
446
|
+
/** The automation being edited. Its contacts that would not be messaged again under reentryPolicy are left out of dueCount. */
|
|
447
|
+
automationId?: InputMaybe<Scalars['ID']['input']>;
|
|
448
|
+
clientStageId?: InputMaybe<Scalars['String']['input']>;
|
|
449
|
+
clientTags?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
450
|
+
country?: InputMaybe<Scalars['String']['input']>;
|
|
451
|
+
delayMinutes: Scalars['Int']['input'];
|
|
452
|
+
maxLatenessDays?: InputMaybe<Scalars['Int']['input']>;
|
|
453
|
+
reentryCooldownDays?: InputMaybe<Scalars['Int']['input']>;
|
|
454
|
+
reentryPolicy?: InputMaybe<AutomationReentryPolicy>;
|
|
455
|
+
triggerType: AutomationTriggerType;
|
|
456
|
+
workspaceId: Scalars['Int']['input'];
|
|
457
|
+
};
|
|
458
|
+
export type AutomationCreateInput = {
|
|
459
|
+
clientStageId?: InputMaybe<Scalars['String']['input']>;
|
|
460
|
+
clientTags?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
461
|
+
country?: InputMaybe<Scalars['String']['input']>;
|
|
462
|
+
delayMinutes: Scalars['Int']['input'];
|
|
463
|
+
integrationId: Scalars['ID']['input'];
|
|
464
|
+
maxLatenessDays?: InputMaybe<Scalars['Int']['input']>;
|
|
465
|
+
name: Scalars['String']['input'];
|
|
466
|
+
reentryCooldownDays?: InputMaybe<Scalars['Int']['input']>;
|
|
467
|
+
reentryPolicy?: InputMaybe<AutomationReentryPolicy>;
|
|
468
|
+
sendWeekdays?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
469
|
+
sendWindowEnd?: InputMaybe<Scalars['Int']['input']>;
|
|
470
|
+
sendWindowStart?: InputMaybe<Scalars['Int']['input']>;
|
|
471
|
+
templateComponents?: InputMaybe<Scalars['JSON']['input']>;
|
|
472
|
+
templateLang?: InputMaybe<Scalars['String']['input']>;
|
|
473
|
+
templateName: Scalars['String']['input'];
|
|
474
|
+
timezone?: InputMaybe<Scalars['String']['input']>;
|
|
475
|
+
triggerType: AutomationTriggerType;
|
|
476
|
+
workspaceId: Scalars['Int']['input'];
|
|
477
|
+
};
|
|
478
|
+
export type AutomationInput = {
|
|
479
|
+
id: Scalars['ID']['input'];
|
|
480
|
+
workspaceId: Scalars['Int']['input'];
|
|
481
|
+
};
|
|
482
|
+
/** AutomationOccurrence is one firing of an automation for one contact. */
|
|
483
|
+
export type AutomationOccurrence = {
|
|
484
|
+
__typename?: 'AutomationOccurrence';
|
|
485
|
+
/** The contact date that triggered the occurrence. */
|
|
486
|
+
anchorAt: Scalars['DateTime']['output'];
|
|
487
|
+
automationId: Scalars['ID']['output'];
|
|
488
|
+
clientId: Scalars['ID']['output'];
|
|
489
|
+
clientName?: Maybe<Scalars['String']['output']>;
|
|
490
|
+
clientPhone?: Maybe<Scalars['String']['output']>;
|
|
491
|
+
/** Conversation opened by the contact's reply. */
|
|
492
|
+
conversationId?: Maybe<Scalars['ID']['output']>;
|
|
493
|
+
createdAt: Scalars['DateTime']['output'];
|
|
494
|
+
/** When the message became due (anchorAt + delay). */
|
|
495
|
+
dueAt: Scalars['DateTime']['output'];
|
|
496
|
+
failedReason?: Maybe<Scalars['String']['output']>;
|
|
497
|
+
id: Scalars['ID']['output'];
|
|
498
|
+
messageId?: Maybe<Scalars['ID']['output']>;
|
|
499
|
+
/** Delivery status of the sent message. */
|
|
500
|
+
messageStatus?: Maybe<MessageStatus>;
|
|
501
|
+
repliedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
502
|
+
status: AutomationOccurrenceStatus;
|
|
503
|
+
workspaceId: Scalars['Int']['output'];
|
|
504
|
+
};
|
|
505
|
+
/** AutomationOccurrenceStats aggregates the occurrences of an automation. */
|
|
506
|
+
export type AutomationOccurrenceStats = {
|
|
507
|
+
__typename?: 'AutomationOccurrenceStats';
|
|
508
|
+
/** Messages delivered, including the ones that were read since. */
|
|
509
|
+
delivered: Scalars['Int']['output'];
|
|
510
|
+
failed: Scalars['Int']['output'];
|
|
511
|
+
queued: Scalars['Int']['output'];
|
|
512
|
+
read: Scalars['Int']['output'];
|
|
513
|
+
/** Occurrences the contact replied to within 7 days of the send. */
|
|
514
|
+
replied: Scalars['Int']['output'];
|
|
515
|
+
sent: Scalars['Int']['output'];
|
|
516
|
+
total: Scalars['Int']['output'];
|
|
517
|
+
};
|
|
518
|
+
export type AutomationOccurrenceStatsInput = {
|
|
519
|
+
automationId: Scalars['ID']['input'];
|
|
520
|
+
from?: InputMaybe<Scalars['DateTime']['input']>;
|
|
521
|
+
to?: InputMaybe<Scalars['DateTime']['input']>;
|
|
522
|
+
workspaceId: Scalars['Int']['input'];
|
|
523
|
+
};
|
|
524
|
+
/**
|
|
525
|
+
* AutomationOccurrenceStatus is the send state of an occurrence.
|
|
526
|
+
* - queued: The contact was picked and the message is being sent.
|
|
527
|
+
* - sent: The message was handed to the channel. See messageStatus for delivery.
|
|
528
|
+
* - failed: The message could not be sent. See failedReason.
|
|
529
|
+
*/
|
|
530
|
+
export declare const AutomationOccurrenceStatus: {
|
|
531
|
+
readonly FAILED: "failed";
|
|
532
|
+
readonly QUEUED: "queued";
|
|
533
|
+
readonly SENT: "sent";
|
|
534
|
+
};
|
|
535
|
+
export type AutomationOccurrenceStatus = typeof AutomationOccurrenceStatus[keyof typeof AutomationOccurrenceStatus];
|
|
536
|
+
export type AutomationOccurrencesInput = {
|
|
537
|
+
automationId: Scalars['ID']['input'];
|
|
538
|
+
/** Lower bound (inclusive) on occurrence createdAt. */
|
|
539
|
+
from?: InputMaybe<Scalars['DateTime']['input']>;
|
|
540
|
+
status?: InputMaybe<AutomationOccurrenceStatus>;
|
|
541
|
+
/** Upper bound (inclusive) on occurrence createdAt. */
|
|
542
|
+
to?: InputMaybe<Scalars['DateTime']['input']>;
|
|
543
|
+
workspaceId: Scalars['Int']['input'];
|
|
544
|
+
};
|
|
545
|
+
export type AutomationOccurrencesPayload = {
|
|
546
|
+
__typename?: 'AutomationOccurrencesPayload';
|
|
547
|
+
nodes?: Maybe<Array<AutomationOccurrence>>;
|
|
548
|
+
pageInfo?: Maybe<PageInfo>;
|
|
549
|
+
};
|
|
550
|
+
export type AutomationPatchInput = {
|
|
551
|
+
clientStageId?: InputMaybe<Scalars['String']['input']>;
|
|
552
|
+
clientTags?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
553
|
+
country?: InputMaybe<Scalars['String']['input']>;
|
|
554
|
+
delayMinutes?: InputMaybe<Scalars['Int']['input']>;
|
|
555
|
+
id: Scalars['ID']['input'];
|
|
556
|
+
integrationId?: InputMaybe<Scalars['ID']['input']>;
|
|
557
|
+
maxLatenessDays?: InputMaybe<Scalars['Int']['input']>;
|
|
558
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
559
|
+
reentryCooldownDays?: InputMaybe<Scalars['Int']['input']>;
|
|
560
|
+
reentryPolicy?: InputMaybe<AutomationReentryPolicy>;
|
|
561
|
+
sendWeekdays?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
562
|
+
sendWindowEnd?: InputMaybe<Scalars['Int']['input']>;
|
|
563
|
+
sendWindowStart?: InputMaybe<Scalars['Int']['input']>;
|
|
564
|
+
templateComponents?: InputMaybe<Scalars['JSON']['input']>;
|
|
565
|
+
templateLang?: InputMaybe<Scalars['String']['input']>;
|
|
566
|
+
templateName?: InputMaybe<Scalars['String']['input']>;
|
|
567
|
+
timezone?: InputMaybe<Scalars['String']['input']>;
|
|
568
|
+
/** Can only be changed while the automation is draft or paused. */
|
|
569
|
+
triggerType?: InputMaybe<AutomationTriggerType>;
|
|
570
|
+
workspaceId: Scalars['Int']['input'];
|
|
571
|
+
};
|
|
572
|
+
/**
|
|
573
|
+
* AutomationReentryPolicy controls how often the same contact can receive the automation.
|
|
574
|
+
* - once: At most once per contact.
|
|
575
|
+
* - cooldown: At most once per reentryCooldownDays. Only with lastConversationStarted.
|
|
576
|
+
* - everyOccurrence: Every time the trigger date changes. Only with lastConversationStarted.
|
|
577
|
+
*/
|
|
578
|
+
export declare const AutomationReentryPolicy: {
|
|
579
|
+
readonly COOLDOWN: "cooldown";
|
|
580
|
+
readonly EVERYOCCURRENCE: "everyOccurrence";
|
|
581
|
+
readonly ONCE: "once";
|
|
582
|
+
};
|
|
583
|
+
export type AutomationReentryPolicy = typeof AutomationReentryPolicy[keyof typeof AutomationReentryPolicy];
|
|
584
|
+
/**
|
|
585
|
+
* AutomationState is the state of the automation.
|
|
586
|
+
* - draft: The automation is saved but sends nothing.
|
|
587
|
+
* - active: The automation sends to contacts as they become due.
|
|
588
|
+
* - paused: The automation is stopped. Activating it again continues from where it stopped.
|
|
589
|
+
*/
|
|
590
|
+
export declare const AutomationState: {
|
|
591
|
+
readonly ACTIVE: "active";
|
|
592
|
+
readonly DRAFT: "draft";
|
|
593
|
+
readonly PAUSED: "paused";
|
|
594
|
+
};
|
|
595
|
+
export type AutomationState = typeof AutomationState[keyof typeof AutomationState];
|
|
596
|
+
/** AutomationStateCount represents the total automations found for a specific state. */
|
|
597
|
+
export type AutomationStateCount = {
|
|
598
|
+
__typename?: 'AutomationStateCount';
|
|
599
|
+
count: Scalars['Int']['output'];
|
|
600
|
+
state: AutomationState;
|
|
601
|
+
};
|
|
602
|
+
export type AutomationStateCountsInput = {
|
|
603
|
+
workspaceId: Scalars['Int']['input'];
|
|
604
|
+
};
|
|
605
|
+
export type AutomationStateInput = {
|
|
606
|
+
id: Scalars['ID']['input'];
|
|
607
|
+
workspaceId: Scalars['Int']['input'];
|
|
608
|
+
};
|
|
609
|
+
/**
|
|
610
|
+
* AutomationTriggerType is the contact date the automation delay is counted from.
|
|
611
|
+
* - clientCreated: When the contact was created.
|
|
612
|
+
* - lastConversationStarted: When the contact last opened a new conversation.
|
|
613
|
+
*/
|
|
614
|
+
export declare const AutomationTriggerType: {
|
|
615
|
+
readonly CLIENTCREATED: "clientCreated";
|
|
616
|
+
readonly LASTCONVERSATIONSTARTED: "lastConversationStarted";
|
|
617
|
+
};
|
|
618
|
+
export type AutomationTriggerType = typeof AutomationTriggerType[keyof typeof AutomationTriggerType];
|
|
619
|
+
export type AutomationsInput = {
|
|
620
|
+
/** Filter by name (case-insensitive contains). */
|
|
621
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
622
|
+
/** Filter by state. */
|
|
623
|
+
state?: InputMaybe<AutomationState>;
|
|
624
|
+
workspaceId: Scalars['Int']['input'];
|
|
625
|
+
};
|
|
626
|
+
export type AutomationsPayload = {
|
|
627
|
+
__typename?: 'AutomationsPayload';
|
|
628
|
+
nodes?: Maybe<Array<Automation>>;
|
|
629
|
+
pageInfo?: Maybe<PageInfo>;
|
|
630
|
+
};
|
|
375
631
|
/**
|
|
376
632
|
* Broadcast is entity that represents a broadcast of a template to a set of clients.
|
|
377
633
|
* When the broadcast is created, it will be in draft state. In order to send the broadcast, you should launch it by using the launchBroadcast mutation.
|
|
@@ -2546,6 +2802,8 @@ export type MessagesPayload = {
|
|
|
2546
2802
|
};
|
|
2547
2803
|
export type Mutation = {
|
|
2548
2804
|
__typename?: 'Mutation';
|
|
2805
|
+
/** Activate a draft or paused automation. You should have the MANAGE_CONVS permission. */
|
|
2806
|
+
activateAutomation: Automation;
|
|
2549
2807
|
/** Add a message to the conversation. */
|
|
2550
2808
|
addMessage: Message;
|
|
2551
2809
|
/** Add a quick reply. You should have the MANAGE_WORKSPACE permission to add a quick reply. */
|
|
@@ -2602,6 +2860,8 @@ export type Mutation = {
|
|
|
2602
2860
|
*/
|
|
2603
2861
|
createAgentWithApiKey: AgentWithApiKeyPayload;
|
|
2604
2862
|
createAi: Ai;
|
|
2863
|
+
/** Create an automation in draft state. You should have the MANAGE_CONVS permission. */
|
|
2864
|
+
createAutomation: Automation;
|
|
2605
2865
|
/** Create a broadcast. You should have the MANAGE_CONVS permission to create a broadcast. */
|
|
2606
2866
|
createBroadcast: Broadcast;
|
|
2607
2867
|
/**
|
|
@@ -2636,6 +2896,8 @@ export type Mutation = {
|
|
|
2636
2896
|
deleteAi: Ai;
|
|
2637
2897
|
/** Delete an API key. You should have the MANAGE_WORKSPACE permission to delete an API key. */
|
|
2638
2898
|
deleteApiKey: ApiKey;
|
|
2899
|
+
/** Delete an automation. You should have the MANAGE_WORKSPACE permission. */
|
|
2900
|
+
deleteAutomation: Automation;
|
|
2639
2901
|
/** Delete a broadcast. You should have the MANAGE_CONVS permission to delete a broadcast. */
|
|
2640
2902
|
deleteBroadcast: Broadcast;
|
|
2641
2903
|
/** Delete a client by id. You should have the MANAGE_CLIENTS permission to delete a client. */
|
|
@@ -2674,6 +2936,8 @@ export type Mutation = {
|
|
|
2674
2936
|
/** Patch an agent. You should have the MANAGE_WORKSPACE permission to patch an agent. */
|
|
2675
2937
|
patchAgent: Agent;
|
|
2676
2938
|
patchAi: Ai;
|
|
2939
|
+
/** Patch an automation. You should have the MANAGE_CONVS permission. */
|
|
2940
|
+
patchAutomation: Automation;
|
|
2677
2941
|
/** Patch a broadcast. You should have the MANAGE_CONVS permission to patch a broadcast. */
|
|
2678
2942
|
patchBroadcast: Broadcast;
|
|
2679
2943
|
/** Patch a client. You should have the MANAGE_CLIENTS permission to patch a client. */
|
|
@@ -2689,6 +2953,8 @@ export type Mutation = {
|
|
|
2689
2953
|
patchSource: Source;
|
|
2690
2954
|
/** Update workspace settings. You should have the MANAGE_WORKSPACE permission to update workspace settings. */
|
|
2691
2955
|
patchWorkspaceSettings: WorkspaceSettings;
|
|
2956
|
+
/** Pause an active automation. You should have the MANAGE_CONVS permission. */
|
|
2957
|
+
pauseAutomation: Automation;
|
|
2692
2958
|
publishQa: QaEntry;
|
|
2693
2959
|
/** Put a client (Update a client if it exists, create a new one if it doesn't). You should have the MANAGE_CLIENTS permission to put a client. */
|
|
2694
2960
|
putClient: Client;
|
|
@@ -2750,6 +3016,9 @@ export type Mutation = {
|
|
|
2750
3016
|
/** Save the company profile answers for an existing workspace. */
|
|
2751
3017
|
updateWorkspaceProfile: WorkspaceProfile;
|
|
2752
3018
|
};
|
|
3019
|
+
export type MutationActivateAutomationArgs = {
|
|
3020
|
+
input: AutomationStateInput;
|
|
3021
|
+
};
|
|
2753
3022
|
export type MutationAddMessageArgs = {
|
|
2754
3023
|
input: MessageInput;
|
|
2755
3024
|
};
|
|
@@ -2813,6 +3082,9 @@ export type MutationCreateAgentWithApiKeyArgs = {
|
|
|
2813
3082
|
export type MutationCreateAiArgs = {
|
|
2814
3083
|
input: AiCreateInput;
|
|
2815
3084
|
};
|
|
3085
|
+
export type MutationCreateAutomationArgs = {
|
|
3086
|
+
input: AutomationCreateInput;
|
|
3087
|
+
};
|
|
2816
3088
|
export type MutationCreateBroadcastArgs = {
|
|
2817
3089
|
input: BroadcastCreateInput;
|
|
2818
3090
|
};
|
|
@@ -2855,6 +3127,9 @@ export type MutationDeleteAiArgs = {
|
|
|
2855
3127
|
export type MutationDeleteApiKeyArgs = {
|
|
2856
3128
|
input: ApiKeyDeleteInput;
|
|
2857
3129
|
};
|
|
3130
|
+
export type MutationDeleteAutomationArgs = {
|
|
3131
|
+
input: AutomationStateInput;
|
|
3132
|
+
};
|
|
2858
3133
|
export type MutationDeleteBroadcastArgs = {
|
|
2859
3134
|
input: BroadcastDeleteInput;
|
|
2860
3135
|
};
|
|
@@ -2912,6 +3187,9 @@ export type MutationPatchAgentArgs = {
|
|
|
2912
3187
|
export type MutationPatchAiArgs = {
|
|
2913
3188
|
input: AiPatchInput;
|
|
2914
3189
|
};
|
|
3190
|
+
export type MutationPatchAutomationArgs = {
|
|
3191
|
+
input: AutomationPatchInput;
|
|
3192
|
+
};
|
|
2915
3193
|
export type MutationPatchBroadcastArgs = {
|
|
2916
3194
|
input: BroadcastPatchInput;
|
|
2917
3195
|
};
|
|
@@ -2936,6 +3214,9 @@ export type MutationPatchSourceArgs = {
|
|
|
2936
3214
|
export type MutationPatchWorkspaceSettingsArgs = {
|
|
2937
3215
|
input: WorkspaceSettingsPatchInput;
|
|
2938
3216
|
};
|
|
3217
|
+
export type MutationPauseAutomationArgs = {
|
|
3218
|
+
input: AutomationStateInput;
|
|
3219
|
+
};
|
|
2939
3220
|
export type MutationPublishQaArgs = {
|
|
2940
3221
|
input: QaIdInput;
|
|
2941
3222
|
};
|
|
@@ -3206,9 +3487,9 @@ export type QaUpdateInput = {
|
|
|
3206
3487
|
export type Query = {
|
|
3207
3488
|
__typename?: 'Query';
|
|
3208
3489
|
activeCalls: Array<Call>;
|
|
3209
|
-
/** Get an agent. */
|
|
3490
|
+
/** Get an agent. Any role in the workspace can read its agents. */
|
|
3210
3491
|
agent: Agent;
|
|
3211
|
-
/** Get the agents. */
|
|
3492
|
+
/** Get the agents. Any role in the workspace can list its agents. */
|
|
3212
3493
|
agents: AgentsPayload;
|
|
3213
3494
|
/** Get the agents report. You should have the MANAGE_CONVS permission to get the agents report. */
|
|
3214
3495
|
agentsReport: AgentsReportPayload;
|
|
@@ -3217,6 +3498,21 @@ export type Query = {
|
|
|
3217
3498
|
ais: AIsPayload;
|
|
3218
3499
|
/** Get the API keys. You should have the MANAGE_WORKSPACE permission to get the API keys. */
|
|
3219
3500
|
apiKeys: ApiKeysPayload;
|
|
3501
|
+
/** Get an automation. You should have the MANAGE_CONVS permission. */
|
|
3502
|
+
automation: Automation;
|
|
3503
|
+
/** Count the contacts an automation would reach. You should have the MANAGE_CONVS permission. */
|
|
3504
|
+
automationAudiencePreview: AutomationAudiencePreview;
|
|
3505
|
+
/** Get aggregated occurrence counts of an automation. You should have the MANAGE_CONVS permission. */
|
|
3506
|
+
automationOccurrenceStats: AutomationOccurrenceStats;
|
|
3507
|
+
/**
|
|
3508
|
+
* Get the occurrences of an automation, newest first. pageInfo.query searches the contact name or phone.
|
|
3509
|
+
* You should have the MANAGE_CONVS permission.
|
|
3510
|
+
*/
|
|
3511
|
+
automationOccurrences: AutomationOccurrencesPayload;
|
|
3512
|
+
/** Get the count of automations grouped by state. You should have the MANAGE_CONVS permission. */
|
|
3513
|
+
automationStateCounts: Array<AutomationStateCount>;
|
|
3514
|
+
/** Get the automations. You should have the MANAGE_CONVS permission. */
|
|
3515
|
+
automations: AutomationsPayload;
|
|
3220
3516
|
/** Get a broadcast. You should have the MANAGE_CONVS permission to get a broadcast. */
|
|
3221
3517
|
broadcast: Broadcast;
|
|
3222
3518
|
/** Get delivery report of a broadcast. You should have the MANAGE_CONVS permission to get broadcast delivery report. */
|
|
@@ -3358,6 +3654,26 @@ export type QueryApiKeysArgs = {
|
|
|
3358
3654
|
input: ApiKeysInput;
|
|
3359
3655
|
pageInfo?: InputMaybe<PageInfoInput>;
|
|
3360
3656
|
};
|
|
3657
|
+
export type QueryAutomationArgs = {
|
|
3658
|
+
input: AutomationInput;
|
|
3659
|
+
};
|
|
3660
|
+
export type QueryAutomationAudiencePreviewArgs = {
|
|
3661
|
+
input: AutomationAudiencePreviewInput;
|
|
3662
|
+
};
|
|
3663
|
+
export type QueryAutomationOccurrenceStatsArgs = {
|
|
3664
|
+
input: AutomationOccurrenceStatsInput;
|
|
3665
|
+
};
|
|
3666
|
+
export type QueryAutomationOccurrencesArgs = {
|
|
3667
|
+
input: AutomationOccurrencesInput;
|
|
3668
|
+
pageInfo?: InputMaybe<PageInfoInput>;
|
|
3669
|
+
};
|
|
3670
|
+
export type QueryAutomationStateCountsArgs = {
|
|
3671
|
+
input: AutomationStateCountsInput;
|
|
3672
|
+
};
|
|
3673
|
+
export type QueryAutomationsArgs = {
|
|
3674
|
+
input: AutomationsInput;
|
|
3675
|
+
pageInfo?: InputMaybe<PageInfoInput>;
|
|
3676
|
+
};
|
|
3361
3677
|
export type QueryBroadcastArgs = {
|
|
3362
3678
|
input: BroadcastInput;
|
|
3363
3679
|
};
|
|
@@ -5028,6 +5344,369 @@ export type UsersRolesQuery = {
|
|
|
5028
5344
|
}> | null;
|
|
5029
5345
|
};
|
|
5030
5346
|
};
|
|
5347
|
+
export type AutomationFragment = {
|
|
5348
|
+
__typename?: 'Automation';
|
|
5349
|
+
workspaceId: number;
|
|
5350
|
+
id: string;
|
|
5351
|
+
name: string;
|
|
5352
|
+
integrationId: string;
|
|
5353
|
+
state: AutomationState;
|
|
5354
|
+
triggerType: AutomationTriggerType;
|
|
5355
|
+
delayMinutes: number;
|
|
5356
|
+
maxLatenessDays: number;
|
|
5357
|
+
reentryPolicy: AutomationReentryPolicy;
|
|
5358
|
+
reentryCooldownDays?: number | null;
|
|
5359
|
+
clientTags?: Array<string> | null;
|
|
5360
|
+
clientStageId?: string | null;
|
|
5361
|
+
country?: string | null;
|
|
5362
|
+
timezone: string;
|
|
5363
|
+
sendWindowStart?: number | null;
|
|
5364
|
+
sendWindowEnd?: number | null;
|
|
5365
|
+
sendWeekdays?: Array<string> | null;
|
|
5366
|
+
templateName?: string | null;
|
|
5367
|
+
templateLang?: string | null;
|
|
5368
|
+
templateComponents?: any | null;
|
|
5369
|
+
activatedAt?: any | null;
|
|
5370
|
+
lastRunAt?: any | null;
|
|
5371
|
+
lastError?: string | null;
|
|
5372
|
+
sentCount?: number | null;
|
|
5373
|
+
lastOccurrenceAt?: any | null;
|
|
5374
|
+
createdAt: any;
|
|
5375
|
+
patchedAt?: any | null;
|
|
5376
|
+
deletedAt?: any | null;
|
|
5377
|
+
};
|
|
5378
|
+
export type AutomationOccurrenceFragment = {
|
|
5379
|
+
__typename?: 'AutomationOccurrence';
|
|
5380
|
+
workspaceId: number;
|
|
5381
|
+
id: string;
|
|
5382
|
+
automationId: string;
|
|
5383
|
+
clientId: string;
|
|
5384
|
+
clientName?: string | null;
|
|
5385
|
+
clientPhone?: string | null;
|
|
5386
|
+
anchorAt: any;
|
|
5387
|
+
dueAt: any;
|
|
5388
|
+
status: AutomationOccurrenceStatus;
|
|
5389
|
+
messageStatus?: MessageStatus | null;
|
|
5390
|
+
failedReason?: string | null;
|
|
5391
|
+
messageId?: string | null;
|
|
5392
|
+
conversationId?: string | null;
|
|
5393
|
+
repliedAt?: any | null;
|
|
5394
|
+
createdAt: any;
|
|
5395
|
+
};
|
|
5396
|
+
export type ActivateAutomationMutationVariables = Exact<{
|
|
5397
|
+
input: AutomationStateInput;
|
|
5398
|
+
}>;
|
|
5399
|
+
export type ActivateAutomationMutation = {
|
|
5400
|
+
__typename?: 'Mutation';
|
|
5401
|
+
activateAutomation: {
|
|
5402
|
+
__typename?: 'Automation';
|
|
5403
|
+
workspaceId: number;
|
|
5404
|
+
id: string;
|
|
5405
|
+
name: string;
|
|
5406
|
+
integrationId: string;
|
|
5407
|
+
state: AutomationState;
|
|
5408
|
+
triggerType: AutomationTriggerType;
|
|
5409
|
+
delayMinutes: number;
|
|
5410
|
+
maxLatenessDays: number;
|
|
5411
|
+
reentryPolicy: AutomationReentryPolicy;
|
|
5412
|
+
reentryCooldownDays?: number | null;
|
|
5413
|
+
clientTags?: Array<string> | null;
|
|
5414
|
+
clientStageId?: string | null;
|
|
5415
|
+
country?: string | null;
|
|
5416
|
+
timezone: string;
|
|
5417
|
+
sendWindowStart?: number | null;
|
|
5418
|
+
sendWindowEnd?: number | null;
|
|
5419
|
+
sendWeekdays?: Array<string> | null;
|
|
5420
|
+
templateName?: string | null;
|
|
5421
|
+
templateLang?: string | null;
|
|
5422
|
+
templateComponents?: any | null;
|
|
5423
|
+
activatedAt?: any | null;
|
|
5424
|
+
lastRunAt?: any | null;
|
|
5425
|
+
lastError?: string | null;
|
|
5426
|
+
sentCount?: number | null;
|
|
5427
|
+
lastOccurrenceAt?: any | null;
|
|
5428
|
+
createdAt: any;
|
|
5429
|
+
patchedAt?: any | null;
|
|
5430
|
+
deletedAt?: any | null;
|
|
5431
|
+
};
|
|
5432
|
+
};
|
|
5433
|
+
export type AutomationQueryVariables = Exact<{
|
|
5434
|
+
input: AutomationInput;
|
|
5435
|
+
}>;
|
|
5436
|
+
export type AutomationQuery = {
|
|
5437
|
+
__typename?: 'Query';
|
|
5438
|
+
automation: {
|
|
5439
|
+
__typename?: 'Automation';
|
|
5440
|
+
workspaceId: number;
|
|
5441
|
+
id: string;
|
|
5442
|
+
name: string;
|
|
5443
|
+
integrationId: string;
|
|
5444
|
+
state: AutomationState;
|
|
5445
|
+
triggerType: AutomationTriggerType;
|
|
5446
|
+
delayMinutes: number;
|
|
5447
|
+
maxLatenessDays: number;
|
|
5448
|
+
reentryPolicy: AutomationReentryPolicy;
|
|
5449
|
+
reentryCooldownDays?: number | null;
|
|
5450
|
+
clientTags?: Array<string> | null;
|
|
5451
|
+
clientStageId?: string | null;
|
|
5452
|
+
country?: string | null;
|
|
5453
|
+
timezone: string;
|
|
5454
|
+
sendWindowStart?: number | null;
|
|
5455
|
+
sendWindowEnd?: number | null;
|
|
5456
|
+
sendWeekdays?: Array<string> | null;
|
|
5457
|
+
templateName?: string | null;
|
|
5458
|
+
templateLang?: string | null;
|
|
5459
|
+
templateComponents?: any | null;
|
|
5460
|
+
activatedAt?: any | null;
|
|
5461
|
+
lastRunAt?: any | null;
|
|
5462
|
+
lastError?: string | null;
|
|
5463
|
+
sentCount?: number | null;
|
|
5464
|
+
lastOccurrenceAt?: any | null;
|
|
5465
|
+
createdAt: any;
|
|
5466
|
+
patchedAt?: any | null;
|
|
5467
|
+
deletedAt?: any | null;
|
|
5468
|
+
};
|
|
5469
|
+
};
|
|
5470
|
+
export type AutomationAudiencePreviewQueryVariables = Exact<{
|
|
5471
|
+
input: AutomationAudiencePreviewInput;
|
|
5472
|
+
}>;
|
|
5473
|
+
export type AutomationAudiencePreviewQuery = {
|
|
5474
|
+
__typename?: 'Query';
|
|
5475
|
+
automationAudiencePreview: {
|
|
5476
|
+
__typename?: 'AutomationAudiencePreview';
|
|
5477
|
+
matchingCount: number;
|
|
5478
|
+
dueCount: number;
|
|
5479
|
+
};
|
|
5480
|
+
};
|
|
5481
|
+
export type AutomationOccurrenceStatsQueryVariables = Exact<{
|
|
5482
|
+
input: AutomationOccurrenceStatsInput;
|
|
5483
|
+
}>;
|
|
5484
|
+
export type AutomationOccurrenceStatsQuery = {
|
|
5485
|
+
__typename?: 'Query';
|
|
5486
|
+
automationOccurrenceStats: {
|
|
5487
|
+
__typename?: 'AutomationOccurrenceStats';
|
|
5488
|
+
total: number;
|
|
5489
|
+
queued: number;
|
|
5490
|
+
sent: number;
|
|
5491
|
+
delivered: number;
|
|
5492
|
+
read: number;
|
|
5493
|
+
failed: number;
|
|
5494
|
+
replied: number;
|
|
5495
|
+
};
|
|
5496
|
+
};
|
|
5497
|
+
export type AutomationOccurrencesQueryVariables = Exact<{
|
|
5498
|
+
input: AutomationOccurrencesInput;
|
|
5499
|
+
pageInfo?: InputMaybe<PageInfoInput>;
|
|
5500
|
+
}>;
|
|
5501
|
+
export type AutomationOccurrencesQuery = {
|
|
5502
|
+
__typename?: 'Query';
|
|
5503
|
+
automationOccurrences: {
|
|
5504
|
+
__typename?: 'AutomationOccurrencesPayload';
|
|
5505
|
+
nodes?: Array<{
|
|
5506
|
+
__typename?: 'AutomationOccurrence';
|
|
5507
|
+
workspaceId: number;
|
|
5508
|
+
id: string;
|
|
5509
|
+
automationId: string;
|
|
5510
|
+
clientId: string;
|
|
5511
|
+
clientName?: string | null;
|
|
5512
|
+
clientPhone?: string | null;
|
|
5513
|
+
anchorAt: any;
|
|
5514
|
+
dueAt: any;
|
|
5515
|
+
status: AutomationOccurrenceStatus;
|
|
5516
|
+
messageStatus?: MessageStatus | null;
|
|
5517
|
+
failedReason?: string | null;
|
|
5518
|
+
messageId?: string | null;
|
|
5519
|
+
conversationId?: string | null;
|
|
5520
|
+
repliedAt?: any | null;
|
|
5521
|
+
createdAt: any;
|
|
5522
|
+
}> | null;
|
|
5523
|
+
pageInfo?: {
|
|
5524
|
+
__typename?: 'PageInfo';
|
|
5525
|
+
hasNextPage: boolean;
|
|
5526
|
+
endCursor?: any | null;
|
|
5527
|
+
count?: number | null;
|
|
5528
|
+
} | null;
|
|
5529
|
+
};
|
|
5530
|
+
};
|
|
5531
|
+
export type AutomationStateCountsQueryVariables = Exact<{
|
|
5532
|
+
input: AutomationStateCountsInput;
|
|
5533
|
+
}>;
|
|
5534
|
+
export type AutomationStateCountsQuery = {
|
|
5535
|
+
__typename?: 'Query';
|
|
5536
|
+
automationStateCounts: Array<{
|
|
5537
|
+
__typename?: 'AutomationStateCount';
|
|
5538
|
+
state: AutomationState;
|
|
5539
|
+
count: number;
|
|
5540
|
+
}>;
|
|
5541
|
+
};
|
|
5542
|
+
export type AutomationsQueryVariables = Exact<{
|
|
5543
|
+
input: AutomationsInput;
|
|
5544
|
+
pageInfo?: InputMaybe<PageInfoInput>;
|
|
5545
|
+
}>;
|
|
5546
|
+
export type AutomationsQuery = {
|
|
5547
|
+
__typename?: 'Query';
|
|
5548
|
+
automations: {
|
|
5549
|
+
__typename?: 'AutomationsPayload';
|
|
5550
|
+
nodes?: Array<{
|
|
5551
|
+
__typename?: 'Automation';
|
|
5552
|
+
workspaceId: number;
|
|
5553
|
+
id: string;
|
|
5554
|
+
name: string;
|
|
5555
|
+
integrationId: string;
|
|
5556
|
+
state: AutomationState;
|
|
5557
|
+
triggerType: AutomationTriggerType;
|
|
5558
|
+
delayMinutes: number;
|
|
5559
|
+
maxLatenessDays: number;
|
|
5560
|
+
reentryPolicy: AutomationReentryPolicy;
|
|
5561
|
+
reentryCooldownDays?: number | null;
|
|
5562
|
+
clientTags?: Array<string> | null;
|
|
5563
|
+
clientStageId?: string | null;
|
|
5564
|
+
country?: string | null;
|
|
5565
|
+
timezone: string;
|
|
5566
|
+
sendWindowStart?: number | null;
|
|
5567
|
+
sendWindowEnd?: number | null;
|
|
5568
|
+
sendWeekdays?: Array<string> | null;
|
|
5569
|
+
templateName?: string | null;
|
|
5570
|
+
templateLang?: string | null;
|
|
5571
|
+
templateComponents?: any | null;
|
|
5572
|
+
activatedAt?: any | null;
|
|
5573
|
+
lastRunAt?: any | null;
|
|
5574
|
+
lastError?: string | null;
|
|
5575
|
+
sentCount?: number | null;
|
|
5576
|
+
lastOccurrenceAt?: any | null;
|
|
5577
|
+
createdAt: any;
|
|
5578
|
+
patchedAt?: any | null;
|
|
5579
|
+
deletedAt?: any | null;
|
|
5580
|
+
}> | null;
|
|
5581
|
+
pageInfo?: {
|
|
5582
|
+
__typename?: 'PageInfo';
|
|
5583
|
+
hasNextPage: boolean;
|
|
5584
|
+
endCursor?: any | null;
|
|
5585
|
+
count?: number | null;
|
|
5586
|
+
} | null;
|
|
5587
|
+
};
|
|
5588
|
+
};
|
|
5589
|
+
export type CreateAutomationMutationVariables = Exact<{
|
|
5590
|
+
input: AutomationCreateInput;
|
|
5591
|
+
}>;
|
|
5592
|
+
export type CreateAutomationMutation = {
|
|
5593
|
+
__typename?: 'Mutation';
|
|
5594
|
+
createAutomation: {
|
|
5595
|
+
__typename?: 'Automation';
|
|
5596
|
+
workspaceId: number;
|
|
5597
|
+
id: string;
|
|
5598
|
+
name: string;
|
|
5599
|
+
integrationId: string;
|
|
5600
|
+
state: AutomationState;
|
|
5601
|
+
triggerType: AutomationTriggerType;
|
|
5602
|
+
delayMinutes: number;
|
|
5603
|
+
maxLatenessDays: number;
|
|
5604
|
+
reentryPolicy: AutomationReentryPolicy;
|
|
5605
|
+
reentryCooldownDays?: number | null;
|
|
5606
|
+
clientTags?: Array<string> | null;
|
|
5607
|
+
clientStageId?: string | null;
|
|
5608
|
+
country?: string | null;
|
|
5609
|
+
timezone: string;
|
|
5610
|
+
sendWindowStart?: number | null;
|
|
5611
|
+
sendWindowEnd?: number | null;
|
|
5612
|
+
sendWeekdays?: Array<string> | null;
|
|
5613
|
+
templateName?: string | null;
|
|
5614
|
+
templateLang?: string | null;
|
|
5615
|
+
templateComponents?: any | null;
|
|
5616
|
+
activatedAt?: any | null;
|
|
5617
|
+
lastRunAt?: any | null;
|
|
5618
|
+
lastError?: string | null;
|
|
5619
|
+
sentCount?: number | null;
|
|
5620
|
+
lastOccurrenceAt?: any | null;
|
|
5621
|
+
createdAt: any;
|
|
5622
|
+
patchedAt?: any | null;
|
|
5623
|
+
deletedAt?: any | null;
|
|
5624
|
+
};
|
|
5625
|
+
};
|
|
5626
|
+
export type DeleteAutomationMutationVariables = Exact<{
|
|
5627
|
+
input: AutomationStateInput;
|
|
5628
|
+
}>;
|
|
5629
|
+
export type DeleteAutomationMutation = {
|
|
5630
|
+
__typename?: 'Mutation';
|
|
5631
|
+
deleteAutomation: {
|
|
5632
|
+
__typename?: 'Automation';
|
|
5633
|
+
id: string;
|
|
5634
|
+
};
|
|
5635
|
+
};
|
|
5636
|
+
export type PatchAutomationMutationVariables = Exact<{
|
|
5637
|
+
input: AutomationPatchInput;
|
|
5638
|
+
}>;
|
|
5639
|
+
export type PatchAutomationMutation = {
|
|
5640
|
+
__typename?: 'Mutation';
|
|
5641
|
+
patchAutomation: {
|
|
5642
|
+
__typename?: 'Automation';
|
|
5643
|
+
workspaceId: number;
|
|
5644
|
+
id: string;
|
|
5645
|
+
name: string;
|
|
5646
|
+
integrationId: string;
|
|
5647
|
+
state: AutomationState;
|
|
5648
|
+
triggerType: AutomationTriggerType;
|
|
5649
|
+
delayMinutes: number;
|
|
5650
|
+
maxLatenessDays: number;
|
|
5651
|
+
reentryPolicy: AutomationReentryPolicy;
|
|
5652
|
+
reentryCooldownDays?: number | null;
|
|
5653
|
+
clientTags?: Array<string> | null;
|
|
5654
|
+
clientStageId?: string | null;
|
|
5655
|
+
country?: string | null;
|
|
5656
|
+
timezone: string;
|
|
5657
|
+
sendWindowStart?: number | null;
|
|
5658
|
+
sendWindowEnd?: number | null;
|
|
5659
|
+
sendWeekdays?: Array<string> | null;
|
|
5660
|
+
templateName?: string | null;
|
|
5661
|
+
templateLang?: string | null;
|
|
5662
|
+
templateComponents?: any | null;
|
|
5663
|
+
activatedAt?: any | null;
|
|
5664
|
+
lastRunAt?: any | null;
|
|
5665
|
+
lastError?: string | null;
|
|
5666
|
+
sentCount?: number | null;
|
|
5667
|
+
lastOccurrenceAt?: any | null;
|
|
5668
|
+
createdAt: any;
|
|
5669
|
+
patchedAt?: any | null;
|
|
5670
|
+
deletedAt?: any | null;
|
|
5671
|
+
};
|
|
5672
|
+
};
|
|
5673
|
+
export type PauseAutomationMutationVariables = Exact<{
|
|
5674
|
+
input: AutomationStateInput;
|
|
5675
|
+
}>;
|
|
5676
|
+
export type PauseAutomationMutation = {
|
|
5677
|
+
__typename?: 'Mutation';
|
|
5678
|
+
pauseAutomation: {
|
|
5679
|
+
__typename?: 'Automation';
|
|
5680
|
+
workspaceId: number;
|
|
5681
|
+
id: string;
|
|
5682
|
+
name: string;
|
|
5683
|
+
integrationId: string;
|
|
5684
|
+
state: AutomationState;
|
|
5685
|
+
triggerType: AutomationTriggerType;
|
|
5686
|
+
delayMinutes: number;
|
|
5687
|
+
maxLatenessDays: number;
|
|
5688
|
+
reentryPolicy: AutomationReentryPolicy;
|
|
5689
|
+
reentryCooldownDays?: number | null;
|
|
5690
|
+
clientTags?: Array<string> | null;
|
|
5691
|
+
clientStageId?: string | null;
|
|
5692
|
+
country?: string | null;
|
|
5693
|
+
timezone: string;
|
|
5694
|
+
sendWindowStart?: number | null;
|
|
5695
|
+
sendWindowEnd?: number | null;
|
|
5696
|
+
sendWeekdays?: Array<string> | null;
|
|
5697
|
+
templateName?: string | null;
|
|
5698
|
+
templateLang?: string | null;
|
|
5699
|
+
templateComponents?: any | null;
|
|
5700
|
+
activatedAt?: any | null;
|
|
5701
|
+
lastRunAt?: any | null;
|
|
5702
|
+
lastError?: string | null;
|
|
5703
|
+
sentCount?: number | null;
|
|
5704
|
+
lastOccurrenceAt?: any | null;
|
|
5705
|
+
createdAt: any;
|
|
5706
|
+
patchedAt?: any | null;
|
|
5707
|
+
deletedAt?: any | null;
|
|
5708
|
+
};
|
|
5709
|
+
};
|
|
5031
5710
|
export type BroadcastFragment = {
|
|
5032
5711
|
__typename?: 'Broadcast';
|
|
5033
5712
|
workspaceId: number;
|
|
@@ -8585,6 +9264,8 @@ export declare const AiFragmentDoc: Apollo.DocumentNode;
|
|
|
8585
9264
|
export declare const QaEntryFieldsFragmentDoc: Apollo.DocumentNode;
|
|
8586
9265
|
export declare const UserFragmentDoc: Apollo.DocumentNode;
|
|
8587
9266
|
export declare const UserRoleFragmentDoc: Apollo.DocumentNode;
|
|
9267
|
+
export declare const AutomationFragmentDoc: Apollo.DocumentNode;
|
|
9268
|
+
export declare const AutomationOccurrenceFragmentDoc: Apollo.DocumentNode;
|
|
8588
9269
|
export declare const BroadcastFragmentDoc: Apollo.DocumentNode;
|
|
8589
9270
|
export declare const BroadcastReportFragmentDoc: Apollo.DocumentNode;
|
|
8590
9271
|
export declare const AgentReportFragmentDoc: Apollo.DocumentNode;
|
|
@@ -9432,6 +10113,387 @@ export declare function refetchUsersRolesQuery(variables: UsersRolesQueryVariabl
|
|
|
9432
10113
|
input: InputUsersRoles;
|
|
9433
10114
|
}>;
|
|
9434
10115
|
};
|
|
10116
|
+
export declare const ActivateAutomationDocument: Apollo.DocumentNode;
|
|
10117
|
+
export type ActivateAutomationMutationFn = Apollo.MutationFunction<ActivateAutomationMutation, ActivateAutomationMutationVariables>;
|
|
10118
|
+
/**
|
|
10119
|
+
* __useActivateAutomationMutation__
|
|
10120
|
+
*
|
|
10121
|
+
* To run a mutation, you first call `useActivateAutomationMutation` within a React component and pass it any options that fit your needs.
|
|
10122
|
+
* When your component renders, `useActivateAutomationMutation` returns a tuple that includes:
|
|
10123
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
10124
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
10125
|
+
*
|
|
10126
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
10127
|
+
*
|
|
10128
|
+
* @example
|
|
10129
|
+
* const [activateAutomationMutation, { data, loading, error }] = useActivateAutomationMutation({
|
|
10130
|
+
* variables: {
|
|
10131
|
+
* input: // value for 'input'
|
|
10132
|
+
* },
|
|
10133
|
+
* });
|
|
10134
|
+
*/
|
|
10135
|
+
export declare function useActivateAutomationMutation(baseOptions?: Apollo.MutationHookOptions<ActivateAutomationMutation, ActivateAutomationMutationVariables>): Apollo.MutationTuple<ActivateAutomationMutation, Exact<{
|
|
10136
|
+
input: AutomationStateInput;
|
|
10137
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
10138
|
+
export type ActivateAutomationMutationHookResult = ReturnType<typeof useActivateAutomationMutation>;
|
|
10139
|
+
export type ActivateAutomationMutationResult = Apollo.MutationResult<ActivateAutomationMutation>;
|
|
10140
|
+
export type ActivateAutomationMutationOptions = Apollo.BaseMutationOptions<ActivateAutomationMutation, ActivateAutomationMutationVariables>;
|
|
10141
|
+
export declare const AutomationDocument: Apollo.DocumentNode;
|
|
10142
|
+
/**
|
|
10143
|
+
* __useAutomationQuery__
|
|
10144
|
+
*
|
|
10145
|
+
* To run a query within a React component, call `useAutomationQuery` and pass it any options that fit your needs.
|
|
10146
|
+
* When your component renders, `useAutomationQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
10147
|
+
* you can use to render your UI.
|
|
10148
|
+
*
|
|
10149
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
10150
|
+
*
|
|
10151
|
+
* @example
|
|
10152
|
+
* const { data, loading, error } = useAutomationQuery({
|
|
10153
|
+
* variables: {
|
|
10154
|
+
* input: // value for 'input'
|
|
10155
|
+
* },
|
|
10156
|
+
* });
|
|
10157
|
+
*/
|
|
10158
|
+
export declare function useAutomationQuery(baseOptions: Apollo.QueryHookOptions<AutomationQuery, AutomationQueryVariables> & ({
|
|
10159
|
+
variables: AutomationQueryVariables;
|
|
10160
|
+
skip?: boolean;
|
|
10161
|
+
} | {
|
|
10162
|
+
skip: boolean;
|
|
10163
|
+
})): Apollo.QueryResult<AutomationQuery, Exact<{
|
|
10164
|
+
input: AutomationInput;
|
|
10165
|
+
}>>;
|
|
10166
|
+
export declare function useAutomationLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<AutomationQuery, AutomationQueryVariables>): Apollo.LazyQueryResultTuple<AutomationQuery, Exact<{
|
|
10167
|
+
input: AutomationInput;
|
|
10168
|
+
}>>;
|
|
10169
|
+
export declare function useAutomationSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<AutomationQuery, AutomationQueryVariables>): Apollo.UseSuspenseQueryResult<AutomationQuery | undefined, Exact<{
|
|
10170
|
+
input: AutomationInput;
|
|
10171
|
+
}>>;
|
|
10172
|
+
export type AutomationQueryHookResult = ReturnType<typeof useAutomationQuery>;
|
|
10173
|
+
export type AutomationLazyQueryHookResult = ReturnType<typeof useAutomationLazyQuery>;
|
|
10174
|
+
export type AutomationSuspenseQueryHookResult = ReturnType<typeof useAutomationSuspenseQuery>;
|
|
10175
|
+
export type AutomationQueryResult = Apollo.QueryResult<AutomationQuery, AutomationQueryVariables>;
|
|
10176
|
+
export declare function refetchAutomationQuery(variables: AutomationQueryVariables): {
|
|
10177
|
+
query: Apollo.DocumentNode;
|
|
10178
|
+
variables: Exact<{
|
|
10179
|
+
input: AutomationInput;
|
|
10180
|
+
}>;
|
|
10181
|
+
};
|
|
10182
|
+
export declare const AutomationAudiencePreviewDocument: Apollo.DocumentNode;
|
|
10183
|
+
/**
|
|
10184
|
+
* __useAutomationAudiencePreviewQuery__
|
|
10185
|
+
*
|
|
10186
|
+
* To run a query within a React component, call `useAutomationAudiencePreviewQuery` and pass it any options that fit your needs.
|
|
10187
|
+
* When your component renders, `useAutomationAudiencePreviewQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
10188
|
+
* you can use to render your UI.
|
|
10189
|
+
*
|
|
10190
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
10191
|
+
*
|
|
10192
|
+
* @example
|
|
10193
|
+
* const { data, loading, error } = useAutomationAudiencePreviewQuery({
|
|
10194
|
+
* variables: {
|
|
10195
|
+
* input: // value for 'input'
|
|
10196
|
+
* },
|
|
10197
|
+
* });
|
|
10198
|
+
*/
|
|
10199
|
+
export declare function useAutomationAudiencePreviewQuery(baseOptions: Apollo.QueryHookOptions<AutomationAudiencePreviewQuery, AutomationAudiencePreviewQueryVariables> & ({
|
|
10200
|
+
variables: AutomationAudiencePreviewQueryVariables;
|
|
10201
|
+
skip?: boolean;
|
|
10202
|
+
} | {
|
|
10203
|
+
skip: boolean;
|
|
10204
|
+
})): Apollo.QueryResult<AutomationAudiencePreviewQuery, Exact<{
|
|
10205
|
+
input: AutomationAudiencePreviewInput;
|
|
10206
|
+
}>>;
|
|
10207
|
+
export declare function useAutomationAudiencePreviewLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<AutomationAudiencePreviewQuery, AutomationAudiencePreviewQueryVariables>): Apollo.LazyQueryResultTuple<AutomationAudiencePreviewQuery, Exact<{
|
|
10208
|
+
input: AutomationAudiencePreviewInput;
|
|
10209
|
+
}>>;
|
|
10210
|
+
export declare function useAutomationAudiencePreviewSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<AutomationAudiencePreviewQuery, AutomationAudiencePreviewQueryVariables>): Apollo.UseSuspenseQueryResult<AutomationAudiencePreviewQuery | undefined, Exact<{
|
|
10211
|
+
input: AutomationAudiencePreviewInput;
|
|
10212
|
+
}>>;
|
|
10213
|
+
export type AutomationAudiencePreviewQueryHookResult = ReturnType<typeof useAutomationAudiencePreviewQuery>;
|
|
10214
|
+
export type AutomationAudiencePreviewLazyQueryHookResult = ReturnType<typeof useAutomationAudiencePreviewLazyQuery>;
|
|
10215
|
+
export type AutomationAudiencePreviewSuspenseQueryHookResult = ReturnType<typeof useAutomationAudiencePreviewSuspenseQuery>;
|
|
10216
|
+
export type AutomationAudiencePreviewQueryResult = Apollo.QueryResult<AutomationAudiencePreviewQuery, AutomationAudiencePreviewQueryVariables>;
|
|
10217
|
+
export declare function refetchAutomationAudiencePreviewQuery(variables: AutomationAudiencePreviewQueryVariables): {
|
|
10218
|
+
query: Apollo.DocumentNode;
|
|
10219
|
+
variables: Exact<{
|
|
10220
|
+
input: AutomationAudiencePreviewInput;
|
|
10221
|
+
}>;
|
|
10222
|
+
};
|
|
10223
|
+
export declare const AutomationOccurrenceStatsDocument: Apollo.DocumentNode;
|
|
10224
|
+
/**
|
|
10225
|
+
* __useAutomationOccurrenceStatsQuery__
|
|
10226
|
+
*
|
|
10227
|
+
* To run a query within a React component, call `useAutomationOccurrenceStatsQuery` and pass it any options that fit your needs.
|
|
10228
|
+
* When your component renders, `useAutomationOccurrenceStatsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
10229
|
+
* you can use to render your UI.
|
|
10230
|
+
*
|
|
10231
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
10232
|
+
*
|
|
10233
|
+
* @example
|
|
10234
|
+
* const { data, loading, error } = useAutomationOccurrenceStatsQuery({
|
|
10235
|
+
* variables: {
|
|
10236
|
+
* input: // value for 'input'
|
|
10237
|
+
* },
|
|
10238
|
+
* });
|
|
10239
|
+
*/
|
|
10240
|
+
export declare function useAutomationOccurrenceStatsQuery(baseOptions: Apollo.QueryHookOptions<AutomationOccurrenceStatsQuery, AutomationOccurrenceStatsQueryVariables> & ({
|
|
10241
|
+
variables: AutomationOccurrenceStatsQueryVariables;
|
|
10242
|
+
skip?: boolean;
|
|
10243
|
+
} | {
|
|
10244
|
+
skip: boolean;
|
|
10245
|
+
})): Apollo.QueryResult<AutomationOccurrenceStatsQuery, Exact<{
|
|
10246
|
+
input: AutomationOccurrenceStatsInput;
|
|
10247
|
+
}>>;
|
|
10248
|
+
export declare function useAutomationOccurrenceStatsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<AutomationOccurrenceStatsQuery, AutomationOccurrenceStatsQueryVariables>): Apollo.LazyQueryResultTuple<AutomationOccurrenceStatsQuery, Exact<{
|
|
10249
|
+
input: AutomationOccurrenceStatsInput;
|
|
10250
|
+
}>>;
|
|
10251
|
+
export declare function useAutomationOccurrenceStatsSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<AutomationOccurrenceStatsQuery, AutomationOccurrenceStatsQueryVariables>): Apollo.UseSuspenseQueryResult<AutomationOccurrenceStatsQuery | undefined, Exact<{
|
|
10252
|
+
input: AutomationOccurrenceStatsInput;
|
|
10253
|
+
}>>;
|
|
10254
|
+
export type AutomationOccurrenceStatsQueryHookResult = ReturnType<typeof useAutomationOccurrenceStatsQuery>;
|
|
10255
|
+
export type AutomationOccurrenceStatsLazyQueryHookResult = ReturnType<typeof useAutomationOccurrenceStatsLazyQuery>;
|
|
10256
|
+
export type AutomationOccurrenceStatsSuspenseQueryHookResult = ReturnType<typeof useAutomationOccurrenceStatsSuspenseQuery>;
|
|
10257
|
+
export type AutomationOccurrenceStatsQueryResult = Apollo.QueryResult<AutomationOccurrenceStatsQuery, AutomationOccurrenceStatsQueryVariables>;
|
|
10258
|
+
export declare function refetchAutomationOccurrenceStatsQuery(variables: AutomationOccurrenceStatsQueryVariables): {
|
|
10259
|
+
query: Apollo.DocumentNode;
|
|
10260
|
+
variables: Exact<{
|
|
10261
|
+
input: AutomationOccurrenceStatsInput;
|
|
10262
|
+
}>;
|
|
10263
|
+
};
|
|
10264
|
+
export declare const AutomationOccurrencesDocument: Apollo.DocumentNode;
|
|
10265
|
+
/**
|
|
10266
|
+
* __useAutomationOccurrencesQuery__
|
|
10267
|
+
*
|
|
10268
|
+
* To run a query within a React component, call `useAutomationOccurrencesQuery` and pass it any options that fit your needs.
|
|
10269
|
+
* When your component renders, `useAutomationOccurrencesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
10270
|
+
* you can use to render your UI.
|
|
10271
|
+
*
|
|
10272
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
10273
|
+
*
|
|
10274
|
+
* @example
|
|
10275
|
+
* const { data, loading, error } = useAutomationOccurrencesQuery({
|
|
10276
|
+
* variables: {
|
|
10277
|
+
* input: // value for 'input'
|
|
10278
|
+
* pageInfo: // value for 'pageInfo'
|
|
10279
|
+
* },
|
|
10280
|
+
* });
|
|
10281
|
+
*/
|
|
10282
|
+
export declare function useAutomationOccurrencesQuery(baseOptions: Apollo.QueryHookOptions<AutomationOccurrencesQuery, AutomationOccurrencesQueryVariables> & ({
|
|
10283
|
+
variables: AutomationOccurrencesQueryVariables;
|
|
10284
|
+
skip?: boolean;
|
|
10285
|
+
} | {
|
|
10286
|
+
skip: boolean;
|
|
10287
|
+
})): Apollo.QueryResult<AutomationOccurrencesQuery, Exact<{
|
|
10288
|
+
input: AutomationOccurrencesInput;
|
|
10289
|
+
pageInfo?: InputMaybe<PageInfoInput> | undefined;
|
|
10290
|
+
}>>;
|
|
10291
|
+
export declare function useAutomationOccurrencesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<AutomationOccurrencesQuery, AutomationOccurrencesQueryVariables>): Apollo.LazyQueryResultTuple<AutomationOccurrencesQuery, Exact<{
|
|
10292
|
+
input: AutomationOccurrencesInput;
|
|
10293
|
+
pageInfo?: InputMaybe<PageInfoInput> | undefined;
|
|
10294
|
+
}>>;
|
|
10295
|
+
export declare function useAutomationOccurrencesSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<AutomationOccurrencesQuery, AutomationOccurrencesQueryVariables>): Apollo.UseSuspenseQueryResult<AutomationOccurrencesQuery | undefined, Exact<{
|
|
10296
|
+
input: AutomationOccurrencesInput;
|
|
10297
|
+
pageInfo?: InputMaybe<PageInfoInput> | undefined;
|
|
10298
|
+
}>>;
|
|
10299
|
+
export type AutomationOccurrencesQueryHookResult = ReturnType<typeof useAutomationOccurrencesQuery>;
|
|
10300
|
+
export type AutomationOccurrencesLazyQueryHookResult = ReturnType<typeof useAutomationOccurrencesLazyQuery>;
|
|
10301
|
+
export type AutomationOccurrencesSuspenseQueryHookResult = ReturnType<typeof useAutomationOccurrencesSuspenseQuery>;
|
|
10302
|
+
export type AutomationOccurrencesQueryResult = Apollo.QueryResult<AutomationOccurrencesQuery, AutomationOccurrencesQueryVariables>;
|
|
10303
|
+
export declare function refetchAutomationOccurrencesQuery(variables: AutomationOccurrencesQueryVariables): {
|
|
10304
|
+
query: Apollo.DocumentNode;
|
|
10305
|
+
variables: Exact<{
|
|
10306
|
+
input: AutomationOccurrencesInput;
|
|
10307
|
+
pageInfo?: InputMaybe<PageInfoInput> | undefined;
|
|
10308
|
+
}>;
|
|
10309
|
+
};
|
|
10310
|
+
export declare const AutomationStateCountsDocument: Apollo.DocumentNode;
|
|
10311
|
+
/**
|
|
10312
|
+
* __useAutomationStateCountsQuery__
|
|
10313
|
+
*
|
|
10314
|
+
* To run a query within a React component, call `useAutomationStateCountsQuery` and pass it any options that fit your needs.
|
|
10315
|
+
* When your component renders, `useAutomationStateCountsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
10316
|
+
* you can use to render your UI.
|
|
10317
|
+
*
|
|
10318
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
10319
|
+
*
|
|
10320
|
+
* @example
|
|
10321
|
+
* const { data, loading, error } = useAutomationStateCountsQuery({
|
|
10322
|
+
* variables: {
|
|
10323
|
+
* input: // value for 'input'
|
|
10324
|
+
* },
|
|
10325
|
+
* });
|
|
10326
|
+
*/
|
|
10327
|
+
export declare function useAutomationStateCountsQuery(baseOptions: Apollo.QueryHookOptions<AutomationStateCountsQuery, AutomationStateCountsQueryVariables> & ({
|
|
10328
|
+
variables: AutomationStateCountsQueryVariables;
|
|
10329
|
+
skip?: boolean;
|
|
10330
|
+
} | {
|
|
10331
|
+
skip: boolean;
|
|
10332
|
+
})): Apollo.QueryResult<AutomationStateCountsQuery, Exact<{
|
|
10333
|
+
input: AutomationStateCountsInput;
|
|
10334
|
+
}>>;
|
|
10335
|
+
export declare function useAutomationStateCountsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<AutomationStateCountsQuery, AutomationStateCountsQueryVariables>): Apollo.LazyQueryResultTuple<AutomationStateCountsQuery, Exact<{
|
|
10336
|
+
input: AutomationStateCountsInput;
|
|
10337
|
+
}>>;
|
|
10338
|
+
export declare function useAutomationStateCountsSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<AutomationStateCountsQuery, AutomationStateCountsQueryVariables>): Apollo.UseSuspenseQueryResult<AutomationStateCountsQuery | undefined, Exact<{
|
|
10339
|
+
input: AutomationStateCountsInput;
|
|
10340
|
+
}>>;
|
|
10341
|
+
export type AutomationStateCountsQueryHookResult = ReturnType<typeof useAutomationStateCountsQuery>;
|
|
10342
|
+
export type AutomationStateCountsLazyQueryHookResult = ReturnType<typeof useAutomationStateCountsLazyQuery>;
|
|
10343
|
+
export type AutomationStateCountsSuspenseQueryHookResult = ReturnType<typeof useAutomationStateCountsSuspenseQuery>;
|
|
10344
|
+
export type AutomationStateCountsQueryResult = Apollo.QueryResult<AutomationStateCountsQuery, AutomationStateCountsQueryVariables>;
|
|
10345
|
+
export declare function refetchAutomationStateCountsQuery(variables: AutomationStateCountsQueryVariables): {
|
|
10346
|
+
query: Apollo.DocumentNode;
|
|
10347
|
+
variables: Exact<{
|
|
10348
|
+
input: AutomationStateCountsInput;
|
|
10349
|
+
}>;
|
|
10350
|
+
};
|
|
10351
|
+
export declare const AutomationsDocument: Apollo.DocumentNode;
|
|
10352
|
+
/**
|
|
10353
|
+
* __useAutomationsQuery__
|
|
10354
|
+
*
|
|
10355
|
+
* To run a query within a React component, call `useAutomationsQuery` and pass it any options that fit your needs.
|
|
10356
|
+
* When your component renders, `useAutomationsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
10357
|
+
* you can use to render your UI.
|
|
10358
|
+
*
|
|
10359
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
10360
|
+
*
|
|
10361
|
+
* @example
|
|
10362
|
+
* const { data, loading, error } = useAutomationsQuery({
|
|
10363
|
+
* variables: {
|
|
10364
|
+
* input: // value for 'input'
|
|
10365
|
+
* pageInfo: // value for 'pageInfo'
|
|
10366
|
+
* },
|
|
10367
|
+
* });
|
|
10368
|
+
*/
|
|
10369
|
+
export declare function useAutomationsQuery(baseOptions: Apollo.QueryHookOptions<AutomationsQuery, AutomationsQueryVariables> & ({
|
|
10370
|
+
variables: AutomationsQueryVariables;
|
|
10371
|
+
skip?: boolean;
|
|
10372
|
+
} | {
|
|
10373
|
+
skip: boolean;
|
|
10374
|
+
})): Apollo.QueryResult<AutomationsQuery, Exact<{
|
|
10375
|
+
input: AutomationsInput;
|
|
10376
|
+
pageInfo?: InputMaybe<PageInfoInput> | undefined;
|
|
10377
|
+
}>>;
|
|
10378
|
+
export declare function useAutomationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<AutomationsQuery, AutomationsQueryVariables>): Apollo.LazyQueryResultTuple<AutomationsQuery, Exact<{
|
|
10379
|
+
input: AutomationsInput;
|
|
10380
|
+
pageInfo?: InputMaybe<PageInfoInput> | undefined;
|
|
10381
|
+
}>>;
|
|
10382
|
+
export declare function useAutomationsSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<AutomationsQuery, AutomationsQueryVariables>): Apollo.UseSuspenseQueryResult<AutomationsQuery | undefined, Exact<{
|
|
10383
|
+
input: AutomationsInput;
|
|
10384
|
+
pageInfo?: InputMaybe<PageInfoInput> | undefined;
|
|
10385
|
+
}>>;
|
|
10386
|
+
export type AutomationsQueryHookResult = ReturnType<typeof useAutomationsQuery>;
|
|
10387
|
+
export type AutomationsLazyQueryHookResult = ReturnType<typeof useAutomationsLazyQuery>;
|
|
10388
|
+
export type AutomationsSuspenseQueryHookResult = ReturnType<typeof useAutomationsSuspenseQuery>;
|
|
10389
|
+
export type AutomationsQueryResult = Apollo.QueryResult<AutomationsQuery, AutomationsQueryVariables>;
|
|
10390
|
+
export declare function refetchAutomationsQuery(variables: AutomationsQueryVariables): {
|
|
10391
|
+
query: Apollo.DocumentNode;
|
|
10392
|
+
variables: Exact<{
|
|
10393
|
+
input: AutomationsInput;
|
|
10394
|
+
pageInfo?: InputMaybe<PageInfoInput> | undefined;
|
|
10395
|
+
}>;
|
|
10396
|
+
};
|
|
10397
|
+
export declare const CreateAutomationDocument: Apollo.DocumentNode;
|
|
10398
|
+
export type CreateAutomationMutationFn = Apollo.MutationFunction<CreateAutomationMutation, CreateAutomationMutationVariables>;
|
|
10399
|
+
/**
|
|
10400
|
+
* __useCreateAutomationMutation__
|
|
10401
|
+
*
|
|
10402
|
+
* To run a mutation, you first call `useCreateAutomationMutation` within a React component and pass it any options that fit your needs.
|
|
10403
|
+
* When your component renders, `useCreateAutomationMutation` returns a tuple that includes:
|
|
10404
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
10405
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
10406
|
+
*
|
|
10407
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
10408
|
+
*
|
|
10409
|
+
* @example
|
|
10410
|
+
* const [createAutomationMutation, { data, loading, error }] = useCreateAutomationMutation({
|
|
10411
|
+
* variables: {
|
|
10412
|
+
* input: // value for 'input'
|
|
10413
|
+
* },
|
|
10414
|
+
* });
|
|
10415
|
+
*/
|
|
10416
|
+
export declare function useCreateAutomationMutation(baseOptions?: Apollo.MutationHookOptions<CreateAutomationMutation, CreateAutomationMutationVariables>): Apollo.MutationTuple<CreateAutomationMutation, Exact<{
|
|
10417
|
+
input: AutomationCreateInput;
|
|
10418
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
10419
|
+
export type CreateAutomationMutationHookResult = ReturnType<typeof useCreateAutomationMutation>;
|
|
10420
|
+
export type CreateAutomationMutationResult = Apollo.MutationResult<CreateAutomationMutation>;
|
|
10421
|
+
export type CreateAutomationMutationOptions = Apollo.BaseMutationOptions<CreateAutomationMutation, CreateAutomationMutationVariables>;
|
|
10422
|
+
export declare const DeleteAutomationDocument: Apollo.DocumentNode;
|
|
10423
|
+
export type DeleteAutomationMutationFn = Apollo.MutationFunction<DeleteAutomationMutation, DeleteAutomationMutationVariables>;
|
|
10424
|
+
/**
|
|
10425
|
+
* __useDeleteAutomationMutation__
|
|
10426
|
+
*
|
|
10427
|
+
* To run a mutation, you first call `useDeleteAutomationMutation` within a React component and pass it any options that fit your needs.
|
|
10428
|
+
* When your component renders, `useDeleteAutomationMutation` returns a tuple that includes:
|
|
10429
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
10430
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
10431
|
+
*
|
|
10432
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
10433
|
+
*
|
|
10434
|
+
* @example
|
|
10435
|
+
* const [deleteAutomationMutation, { data, loading, error }] = useDeleteAutomationMutation({
|
|
10436
|
+
* variables: {
|
|
10437
|
+
* input: // value for 'input'
|
|
10438
|
+
* },
|
|
10439
|
+
* });
|
|
10440
|
+
*/
|
|
10441
|
+
export declare function useDeleteAutomationMutation(baseOptions?: Apollo.MutationHookOptions<DeleteAutomationMutation, DeleteAutomationMutationVariables>): Apollo.MutationTuple<DeleteAutomationMutation, Exact<{
|
|
10442
|
+
input: AutomationStateInput;
|
|
10443
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
10444
|
+
export type DeleteAutomationMutationHookResult = ReturnType<typeof useDeleteAutomationMutation>;
|
|
10445
|
+
export type DeleteAutomationMutationResult = Apollo.MutationResult<DeleteAutomationMutation>;
|
|
10446
|
+
export type DeleteAutomationMutationOptions = Apollo.BaseMutationOptions<DeleteAutomationMutation, DeleteAutomationMutationVariables>;
|
|
10447
|
+
export declare const PatchAutomationDocument: Apollo.DocumentNode;
|
|
10448
|
+
export type PatchAutomationMutationFn = Apollo.MutationFunction<PatchAutomationMutation, PatchAutomationMutationVariables>;
|
|
10449
|
+
/**
|
|
10450
|
+
* __usePatchAutomationMutation__
|
|
10451
|
+
*
|
|
10452
|
+
* To run a mutation, you first call `usePatchAutomationMutation` within a React component and pass it any options that fit your needs.
|
|
10453
|
+
* When your component renders, `usePatchAutomationMutation` returns a tuple that includes:
|
|
10454
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
10455
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
10456
|
+
*
|
|
10457
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
10458
|
+
*
|
|
10459
|
+
* @example
|
|
10460
|
+
* const [patchAutomationMutation, { data, loading, error }] = usePatchAutomationMutation({
|
|
10461
|
+
* variables: {
|
|
10462
|
+
* input: // value for 'input'
|
|
10463
|
+
* },
|
|
10464
|
+
* });
|
|
10465
|
+
*/
|
|
10466
|
+
export declare function usePatchAutomationMutation(baseOptions?: Apollo.MutationHookOptions<PatchAutomationMutation, PatchAutomationMutationVariables>): Apollo.MutationTuple<PatchAutomationMutation, Exact<{
|
|
10467
|
+
input: AutomationPatchInput;
|
|
10468
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
10469
|
+
export type PatchAutomationMutationHookResult = ReturnType<typeof usePatchAutomationMutation>;
|
|
10470
|
+
export type PatchAutomationMutationResult = Apollo.MutationResult<PatchAutomationMutation>;
|
|
10471
|
+
export type PatchAutomationMutationOptions = Apollo.BaseMutationOptions<PatchAutomationMutation, PatchAutomationMutationVariables>;
|
|
10472
|
+
export declare const PauseAutomationDocument: Apollo.DocumentNode;
|
|
10473
|
+
export type PauseAutomationMutationFn = Apollo.MutationFunction<PauseAutomationMutation, PauseAutomationMutationVariables>;
|
|
10474
|
+
/**
|
|
10475
|
+
* __usePauseAutomationMutation__
|
|
10476
|
+
*
|
|
10477
|
+
* To run a mutation, you first call `usePauseAutomationMutation` within a React component and pass it any options that fit your needs.
|
|
10478
|
+
* When your component renders, `usePauseAutomationMutation` returns a tuple that includes:
|
|
10479
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
10480
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
10481
|
+
*
|
|
10482
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
10483
|
+
*
|
|
10484
|
+
* @example
|
|
10485
|
+
* const [pauseAutomationMutation, { data, loading, error }] = usePauseAutomationMutation({
|
|
10486
|
+
* variables: {
|
|
10487
|
+
* input: // value for 'input'
|
|
10488
|
+
* },
|
|
10489
|
+
* });
|
|
10490
|
+
*/
|
|
10491
|
+
export declare function usePauseAutomationMutation(baseOptions?: Apollo.MutationHookOptions<PauseAutomationMutation, PauseAutomationMutationVariables>): Apollo.MutationTuple<PauseAutomationMutation, Exact<{
|
|
10492
|
+
input: AutomationStateInput;
|
|
10493
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
10494
|
+
export type PauseAutomationMutationHookResult = ReturnType<typeof usePauseAutomationMutation>;
|
|
10495
|
+
export type PauseAutomationMutationResult = Apollo.MutationResult<PauseAutomationMutation>;
|
|
10496
|
+
export type PauseAutomationMutationOptions = Apollo.BaseMutationOptions<PauseAutomationMutation, PauseAutomationMutationVariables>;
|
|
9435
10497
|
export declare const BroadcastDocument: Apollo.DocumentNode;
|
|
9436
10498
|
/**
|
|
9437
10499
|
* __useBroadcastQuery__
|