cf-service-sdk 0.0.63 → 0.0.64

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.
@@ -132,6 +132,14 @@ export type AddContactsToCampaign = {
132
132
  message?: Maybe<Scalars['String']['output']>;
133
133
  success?: Maybe<Scalars['Boolean']['output']>;
134
134
  };
135
+ /** Add contacts to a combined campaign using CustomContact */
136
+ export type AddContactsToCombinedCampaign = {
137
+ __typename?: 'AddContactsToCombinedCampaign';
138
+ addedCount?: Maybe<Scalars['Int']['output']>;
139
+ campaign?: Maybe<CombinedCampaignObject>;
140
+ message?: Maybe<Scalars['String']['output']>;
141
+ success?: Maybe<Scalars['Boolean']['output']>;
142
+ };
135
143
  export type AddContactsToSegment = {
136
144
  __typename?: 'AddContactsToSegment';
137
145
  message?: Maybe<Scalars['String']['output']>;
@@ -1123,6 +1131,8 @@ export type CompanyLocationType = {
1123
1131
  locationType?: Maybe<Scalars['String']['output']>;
1124
1132
  /** Phone number of the company location */
1125
1133
  phone?: Maybe<Scalars['String']['output']>;
1134
+ /** Region of the company location like 'Midwest (Great Lakes)', 'Southeast', 'West Coast', etc. */
1135
+ region?: Maybe<Scalars['String']['output']>;
1126
1136
  /** State of the company location */
1127
1137
  state?: Maybe<Scalars['String']['output']>;
1128
1138
  /** Last update date and time of the company location record */
@@ -1600,6 +1610,7 @@ export type CustomContactInput = {
1600
1610
  id?: InputMaybe<Scalars['ID']['input']>;
1601
1611
  lastName?: InputMaybe<Scalars['String']['input']>;
1602
1612
  notIncludedInCampaign?: InputMaybe<Scalars['Boolean']['input']>;
1613
+ phone?: InputMaybe<Scalars['String']['input']>;
1603
1614
  };
1604
1615
  export type DashboardStatsType = {
1605
1616
  __typename?: 'DashboardStatsType';
@@ -1957,6 +1968,8 @@ export type Mutation = {
1957
1968
  /** AcceptInvitation - Accept an invitation to join an account */
1958
1969
  acceptInvitation?: Maybe<AcceptInvitation>;
1959
1970
  addContactsToCampaign?: Maybe<AddContactsToCampaign>;
1971
+ /** Add contacts to a combined campaign using CustomContact */
1972
+ addContactsToCombinedCampaign?: Maybe<AddContactsToCombinedCampaign>;
1960
1973
  addContactsToSegment?: Maybe<AddContactsToSegment>;
1961
1974
  addSegmentToCallCampaign?: Maybe<AddSegmentToCallCampaign>;
1962
1975
  addSegmentToCampaign?: Maybe<AddSegmentToCampaign>;
@@ -2095,6 +2108,11 @@ export type MutationAddContactsToCampaignArgs = {
2095
2108
  contacts: Array<InputMaybe<CustomContactInput>>;
2096
2109
  };
2097
2110
  /** Mutations */
2111
+ export type MutationAddContactsToCombinedCampaignArgs = {
2112
+ campaignId: Scalars['ID']['input'];
2113
+ contacts: Array<InputMaybe<CustomContactInput>>;
2114
+ };
2115
+ /** Mutations */
2098
2116
  export type MutationAddContactsToSegmentArgs = {
2099
2117
  contactIds: Array<InputMaybe<Scalars['ID']['input']>>;
2100
2118
  segmentId: Scalars['ID']['input'];
@@ -3619,6 +3637,86 @@ export type AddContactsToCampaignMutation = {
3619
3637
  } | null;
3620
3638
  } | null;
3621
3639
  };
3640
+ export type AddContactsToCombinedCampaignMutationVariables = Exact<{
3641
+ campaignId: Scalars['ID']['input'];
3642
+ contacts: Array<InputMaybe<CustomContactInput>> | InputMaybe<CustomContactInput>;
3643
+ }>;
3644
+ export type AddContactsToCombinedCampaignMutation = {
3645
+ __typename?: 'Mutation';
3646
+ addContactsToCombinedCampaign?: {
3647
+ __typename?: 'AddContactsToCombinedCampaign';
3648
+ success?: boolean | null;
3649
+ message?: string | null;
3650
+ addedCount?: number | null;
3651
+ campaign?: {
3652
+ __typename?: 'CombinedCampaignObject';
3653
+ id?: string | null;
3654
+ uuid?: string | null;
3655
+ name?: string | null;
3656
+ description?: string | null;
3657
+ status?: string | null;
3658
+ scheduledFor?: any | null;
3659
+ startedAt?: any | null;
3660
+ completedAt?: any | null;
3661
+ cancelledAt?: any | null;
3662
+ pausedAt?: any | null;
3663
+ settings?: any | null;
3664
+ totalContacts?: number | null;
3665
+ completedContacts?: number | null;
3666
+ lastActivity?: any | null;
3667
+ stepsPreview?: any | null;
3668
+ createdAt?: any | null;
3669
+ updatedAt?: any | null;
3670
+ steps?: Array<{
3671
+ __typename?: 'CombinedCampaignStepObject';
3672
+ id?: string | null;
3673
+ uuid?: string | null;
3674
+ order?: number | null;
3675
+ stepType?: string | null;
3676
+ status?: string | null;
3677
+ subject?: string | null;
3678
+ template?: string | null;
3679
+ taskTitle?: string | null;
3680
+ taskDescription?: string | null;
3681
+ taskCategory?: string | null;
3682
+ taskPriority?: string | null;
3683
+ delay?: number | null;
3684
+ delayUnit?: string | null;
3685
+ condition?: string | null;
3686
+ useBusinessDays?: boolean | null;
3687
+ settings?: any | null;
3688
+ createdAt?: any | null;
3689
+ updatedAt?: any | null;
3690
+ } | null> | null;
3691
+ segments?: Array<{
3692
+ __typename?: 'SegmentObject';
3693
+ id?: string | null;
3694
+ name?: string | null;
3695
+ description?: string | null;
3696
+ state?: string | null;
3697
+ industry?: string | null;
3698
+ metalType?: string | null;
3699
+ productCategory?: string | null;
3700
+ segmentType?: string | null;
3701
+ createdAt?: any | null;
3702
+ updatedAt?: any | null;
3703
+ isSystemTemplate?: boolean | null;
3704
+ totalContacts?: number | null;
3705
+ status?: string | null;
3706
+ } | null> | null;
3707
+ stepStats?: Array<{
3708
+ __typename?: 'CombinedCampaignStepStatsObject';
3709
+ stepId?: string | null;
3710
+ stepOrder?: number | null;
3711
+ stepType?: string | null;
3712
+ completed?: number | null;
3713
+ skipped?: number | null;
3714
+ total?: number | null;
3715
+ completionRate?: number | null;
3716
+ } | null> | null;
3717
+ } | null;
3718
+ } | null;
3719
+ };
3622
3720
  export type AddContactsToSegmentMutationVariables = Exact<{
3623
3721
  contactIds: Array<InputMaybe<Scalars['ID']['input']>> | InputMaybe<Scalars['ID']['input']>;
3624
3722
  segmentId: Scalars['ID']['input'];
@@ -4476,6 +4574,7 @@ export type CreateCompanyMutation = {
4476
4574
  locationName?: string | null;
4477
4575
  phone?: string | null;
4478
4576
  email?: string | null;
4577
+ region?: string | null;
4479
4578
  createdAt?: any | null;
4480
4579
  updatedAt?: any | null;
4481
4580
  fullAddress?: string | null;
@@ -5147,6 +5246,7 @@ export type CreateCompanyMutation = {
5147
5246
  locationName?: string | null;
5148
5247
  phone?: string | null;
5149
5248
  email?: string | null;
5249
+ region?: string | null;
5150
5250
  createdAt?: any | null;
5151
5251
  updatedAt?: any | null;
5152
5252
  fullAddress?: string | null;
@@ -8463,6 +8563,7 @@ export type UpdateCompanyMutation = {
8463
8563
  locationName?: string | null;
8464
8564
  phone?: string | null;
8465
8565
  email?: string | null;
8566
+ region?: string | null;
8466
8567
  createdAt?: any | null;
8467
8568
  updatedAt?: any | null;
8468
8569
  fullAddress?: string | null;
@@ -9134,6 +9235,7 @@ export type UpdateCompanyMutation = {
9134
9235
  locationName?: string | null;
9135
9236
  phone?: string | null;
9136
9237
  email?: string | null;
9238
+ region?: string | null;
9137
9239
  createdAt?: any | null;
9138
9240
  updatedAt?: any | null;
9139
9241
  fullAddress?: string | null;
@@ -11805,6 +11907,7 @@ export type CompaniesQuery = {
11805
11907
  locationName?: string | null;
11806
11908
  phone?: string | null;
11807
11909
  email?: string | null;
11910
+ region?: string | null;
11808
11911
  createdAt?: any | null;
11809
11912
  updatedAt?: any | null;
11810
11913
  fullAddress?: string | null;
@@ -12366,6 +12469,7 @@ export type CompaniesQuery = {
12366
12469
  locationName?: string | null;
12367
12470
  phone?: string | null;
12368
12471
  email?: string | null;
12472
+ region?: string | null;
12369
12473
  createdAt?: any | null;
12370
12474
  updatedAt?: any | null;
12371
12475
  fullAddress?: string | null;
@@ -12451,6 +12555,7 @@ export type CompanyQuery = {
12451
12555
  locationName?: string | null;
12452
12556
  phone?: string | null;
12453
12557
  email?: string | null;
12558
+ region?: string | null;
12454
12559
  createdAt?: any | null;
12455
12560
  updatedAt?: any | null;
12456
12561
  fullAddress?: string | null;
@@ -13122,6 +13227,7 @@ export type CompanyQuery = {
13122
13227
  locationName?: string | null;
13123
13228
  phone?: string | null;
13124
13229
  email?: string | null;
13230
+ region?: string | null;
13125
13231
  createdAt?: any | null;
13126
13232
  updatedAt?: any | null;
13127
13233
  fullAddress?: string | null;
@@ -14523,6 +14629,7 @@ export type RecentHistoryQuery = {
14523
14629
  locationName?: string | null;
14524
14630
  phone?: string | null;
14525
14631
  email?: string | null;
14632
+ region?: string | null;
14526
14633
  createdAt?: any | null;
14527
14634
  updatedAt?: any | null;
14528
14635
  fullAddress?: string | null;
@@ -15049,6 +15156,7 @@ export type RecentHistoryQuery = {
15049
15156
  locationName?: string | null;
15050
15157
  phone?: string | null;
15051
15158
  email?: string | null;
15159
+ region?: string | null;
15052
15160
  createdAt?: any | null;
15053
15161
  updatedAt?: any | null;
15054
15162
  fullAddress?: string | null;
@@ -15664,6 +15772,33 @@ export declare function useAddContactsToCampaignMutation(baseOptions?: Apollo.Mu
15664
15772
  export type AddContactsToCampaignMutationHookResult = ReturnType<typeof useAddContactsToCampaignMutation>;
15665
15773
  export type AddContactsToCampaignMutationResult = Apollo.MutationResult<AddContactsToCampaignMutation>;
15666
15774
  export type AddContactsToCampaignMutationOptions = Apollo.BaseMutationOptions<AddContactsToCampaignMutation, AddContactsToCampaignMutationVariables>;
15775
+ export declare const AddContactsToCombinedCampaignDocument: Apollo.DocumentNode;
15776
+ export type AddContactsToCombinedCampaignMutationFn = Apollo.MutationFunction<AddContactsToCombinedCampaignMutation, AddContactsToCombinedCampaignMutationVariables>;
15777
+ /**
15778
+ * __useAddContactsToCombinedCampaignMutation__
15779
+ *
15780
+ * To run a mutation, you first call `useAddContactsToCombinedCampaignMutation` within a React component and pass it any options that fit your needs.
15781
+ * When your component renders, `useAddContactsToCombinedCampaignMutation` returns a tuple that includes:
15782
+ * - A mutate function that you can call at any time to execute the mutation
15783
+ * - An object with fields that represent the current status of the mutation's execution
15784
+ *
15785
+ * @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;
15786
+ *
15787
+ * @example
15788
+ * const [addContactsToCombinedCampaignMutation, { data, loading, error }] = useAddContactsToCombinedCampaignMutation({
15789
+ * variables: {
15790
+ * campaignId: // value for 'campaignId'
15791
+ * contacts: // value for 'contacts'
15792
+ * },
15793
+ * });
15794
+ */
15795
+ export declare function useAddContactsToCombinedCampaignMutation(baseOptions?: Apollo.MutationHookOptions<AddContactsToCombinedCampaignMutation, AddContactsToCombinedCampaignMutationVariables>): Apollo.MutationTuple<AddContactsToCombinedCampaignMutation, Exact<{
15796
+ campaignId: Scalars["ID"]["input"];
15797
+ contacts: Array<InputMaybe<CustomContactInput>> | InputMaybe<CustomContactInput>;
15798
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
15799
+ export type AddContactsToCombinedCampaignMutationHookResult = ReturnType<typeof useAddContactsToCombinedCampaignMutation>;
15800
+ export type AddContactsToCombinedCampaignMutationResult = Apollo.MutationResult<AddContactsToCombinedCampaignMutation>;
15801
+ export type AddContactsToCombinedCampaignMutationOptions = Apollo.BaseMutationOptions<AddContactsToCombinedCampaignMutation, AddContactsToCombinedCampaignMutationVariables>;
15667
15802
  export declare const AddContactsToSegmentDocument: Apollo.DocumentNode;
15668
15803
  export type AddContactsToSegmentMutationFn = Apollo.MutationFunction<AddContactsToSegmentMutation, AddContactsToSegmentMutationVariables>;
15669
15804
  /**
@@ -33,11 +33,12 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.LoginWithMicrosoftDocument = exports.LoginWithGoogleDocument = exports.LoginDocument = exports.InviteUserDocument = exports.HideRecordDocument = exports.ForgotPasswordDocument = exports.EmailToneDocument = exports.DisconnectNylasIntegrationDocument = exports.DeleteTaskDocument = exports.DeleteSegmentDocument = exports.DeleteNotificationDocument = exports.DeleteEmailTemplateDocument = exports.DeleteContactDocument = exports.DeleteCompanyNoteDocument = exports.DeleteCompanyDocument = exports.DeleteCombinedCampaignDocument = exports.DeleteCampaignDocument = exports.DeleteCallCampaignDocument = exports.CreateTaskDocument = exports.CreateSegmentDocument = exports.CreateNotificationDocument = exports.CreateEmailTemplateDocument = exports.CreateContactDocument = exports.CreateCompanyNoteDocument = exports.CreateCompanyDocument = exports.CreateCombinedCampaignDocument = exports.CreateCampaignDocument = exports.CreateCallCampaignLogDocument = exports.CreateCallCampaignDocument = exports.CompleteCampaignDocument = exports.ClearAllNotificationsDocument = exports.ChangePasswordDocument = exports.CancelInvitationDocument = exports.CancelCombinedCampaignDocument = exports.CancelCampaignDocument = exports.AddSegmentToCampaignDocument = exports.AddSegmentToCallCampaignDocument = exports.AddContactsToSegmentDocument = exports.AddContactsToCampaignDocument = exports.AcceptInvitationDocument = exports.SortDirection = exports.RecentHistorySortField = exports.NotificationTypeEnum = exports.ContactSortField = exports.CompanySortField = exports.CompanyNoteSortField = exports.CallCampaignLogOutcomeEnum = exports.AppEmailTemplateCampaignTypeChoices = exports.AppBusinessProfileStateChoices = exports.AppAccountInvitationStatusChoices = void 0;
37
- exports.CampaignDocument = exports.CallCampaignsDocument = exports.CallCampaignReportDocument = exports.CallCampaignLogsDocument = exports.CallCampaignLogDocument = exports.CallCampaignAnalyticsDocument = exports.CallCampaignDocument = exports.BusinessProfileDocument = exports.AccountMembersDocument = exports.ValidateOtpAndResetPasswordDocument = exports.UploadFileDocument = exports.UpdateUserProfileDocument = exports.UpdateTaskDocument = exports.UpdateSegmentDocument = exports.UpdateEmailTemplateDocument = exports.UpdateContactDocument = exports.UpdateCompanyNoteDocument = exports.UpdateCompanyDocument = exports.UpdateCombinedCampaignLogsDocument = exports.UpdateCombinedCampaignLogDocument = exports.UpdateCombinedCampaignDocument = exports.UpdateCampaignDocument = exports.UpdateCallCampaignLogDocument = exports.UpdateCallCampaignDocument = exports.UnsubscribeFromEmailsDocument = exports.UnhideRecordDocument = exports.SubmitFeedbackDocument = exports.StartCombinedCampaignDocument = exports.StartCampaignDocument = exports.SignupDocument = exports.SendTestEmailDocument = exports.SendManualEmailDocument = exports.SendEmailToContactDocument = exports.ScheduleCombinedCampaignDocument = exports.ScheduleCampaignDocument = exports.SaveNylasConnectionDocument = exports.ResumeCombinedCampaignDocument = exports.RemoveSegmentFromCampaignDocument = exports.RemoveSegmentFromCallCampaignDocument = exports.RemoveMemberDocument = exports.RemoveContactsFromSegmentDocument = exports.RemoveContactsFromCombinedCampaignDocument = exports.RemoveContactsFromCampaignDocument = exports.RejectInvitationDocument = exports.ReduceSpamDocument = exports.PreviewCampaignEmailDocument = exports.PauseCombinedCampaignDocument = exports.PauseCampaignDocument = exports.MarkNotificationAsReadDocument = exports.MarkAllNotificationsAsReadDocument = void 0;
38
- exports.UserProfileDocument = exports.UsStatesDocument = exports.UnreadNotificationsCountDocument = exports.TasksDocument = exports.TaskDocument = exports.SegmentsDocument = exports.SegmentDocument = exports.SearchContactsDocument = exports.RecentNotificationsDocument = exports.RecentHistoryDocument = exports.ProductTypesDocument = exports.ProductCategoriesDocument = exports.PendingInvitationsDocument = exports.NylasConnectionDocument = exports.NotificationsDocument = exports.NotificationDocument = exports.MyInvitationsDocument = exports.MetalTypesDocument = exports.MetalGradesDocument = exports.IndustryTypesDocument = exports.IndustrySectorsDocument = exports.EmployeeSizesDocument = exports.EmailTemplatesDocument = exports.EmailTemplateDocument = exports.DashboardStatsDocument = exports.CurrentAccountDocument = exports.ContactsInSegmentDocument = exports.ContactsDocument = exports.ContactDocument = exports.CompanyNotesDocument = exports.CompanyNoteDocument = exports.CompanyDocument = exports.CompaniesDocument = exports.CombinedCampaignsDocument = exports.CombinedCampaignStepsDocument = exports.CombinedCampaignLogsDocument = exports.CombinedCampaignContactsDocument = exports.CombinedCampaignDocument = exports.CampaignsDocument = exports.CampaignStatsDocument = exports.CampaignLogsDocument = exports.CampaignContactsDocument = exports.CampaignAnalyticsDocument = void 0;
36
+ exports.LoginWithGoogleDocument = exports.LoginDocument = exports.InviteUserDocument = exports.HideRecordDocument = exports.ForgotPasswordDocument = exports.EmailToneDocument = exports.DisconnectNylasIntegrationDocument = exports.DeleteTaskDocument = exports.DeleteSegmentDocument = exports.DeleteNotificationDocument = exports.DeleteEmailTemplateDocument = exports.DeleteContactDocument = exports.DeleteCompanyNoteDocument = exports.DeleteCompanyDocument = exports.DeleteCombinedCampaignDocument = exports.DeleteCampaignDocument = exports.DeleteCallCampaignDocument = exports.CreateTaskDocument = exports.CreateSegmentDocument = exports.CreateNotificationDocument = exports.CreateEmailTemplateDocument = exports.CreateContactDocument = exports.CreateCompanyNoteDocument = exports.CreateCompanyDocument = exports.CreateCombinedCampaignDocument = exports.CreateCampaignDocument = exports.CreateCallCampaignLogDocument = exports.CreateCallCampaignDocument = exports.CompleteCampaignDocument = exports.ClearAllNotificationsDocument = exports.ChangePasswordDocument = exports.CancelInvitationDocument = exports.CancelCombinedCampaignDocument = exports.CancelCampaignDocument = exports.AddSegmentToCampaignDocument = exports.AddSegmentToCallCampaignDocument = exports.AddContactsToSegmentDocument = exports.AddContactsToCombinedCampaignDocument = exports.AddContactsToCampaignDocument = exports.AcceptInvitationDocument = exports.SortDirection = exports.RecentHistorySortField = exports.NotificationTypeEnum = exports.ContactSortField = exports.CompanySortField = exports.CompanyNoteSortField = exports.CallCampaignLogOutcomeEnum = exports.AppEmailTemplateCampaignTypeChoices = exports.AppBusinessProfileStateChoices = exports.AppAccountInvitationStatusChoices = void 0;
37
+ exports.CallCampaignsDocument = exports.CallCampaignReportDocument = exports.CallCampaignLogsDocument = exports.CallCampaignLogDocument = exports.CallCampaignAnalyticsDocument = exports.CallCampaignDocument = exports.BusinessProfileDocument = exports.AccountMembersDocument = exports.ValidateOtpAndResetPasswordDocument = exports.UploadFileDocument = exports.UpdateUserProfileDocument = exports.UpdateTaskDocument = exports.UpdateSegmentDocument = exports.UpdateEmailTemplateDocument = exports.UpdateContactDocument = exports.UpdateCompanyNoteDocument = exports.UpdateCompanyDocument = exports.UpdateCombinedCampaignLogsDocument = exports.UpdateCombinedCampaignLogDocument = exports.UpdateCombinedCampaignDocument = exports.UpdateCampaignDocument = exports.UpdateCallCampaignLogDocument = exports.UpdateCallCampaignDocument = exports.UnsubscribeFromEmailsDocument = exports.UnhideRecordDocument = exports.SubmitFeedbackDocument = exports.StartCombinedCampaignDocument = exports.StartCampaignDocument = exports.SignupDocument = exports.SendTestEmailDocument = exports.SendManualEmailDocument = exports.SendEmailToContactDocument = exports.ScheduleCombinedCampaignDocument = exports.ScheduleCampaignDocument = exports.SaveNylasConnectionDocument = exports.ResumeCombinedCampaignDocument = exports.RemoveSegmentFromCampaignDocument = exports.RemoveSegmentFromCallCampaignDocument = exports.RemoveMemberDocument = exports.RemoveContactsFromSegmentDocument = exports.RemoveContactsFromCombinedCampaignDocument = exports.RemoveContactsFromCampaignDocument = exports.RejectInvitationDocument = exports.ReduceSpamDocument = exports.PreviewCampaignEmailDocument = exports.PauseCombinedCampaignDocument = exports.PauseCampaignDocument = exports.MarkNotificationAsReadDocument = exports.MarkAllNotificationsAsReadDocument = exports.LoginWithMicrosoftDocument = void 0;
38
+ exports.UserProfileDocument = exports.UsStatesDocument = exports.UnreadNotificationsCountDocument = exports.TasksDocument = exports.TaskDocument = exports.SegmentsDocument = exports.SegmentDocument = exports.SearchContactsDocument = exports.RecentNotificationsDocument = exports.RecentHistoryDocument = exports.ProductTypesDocument = exports.ProductCategoriesDocument = exports.PendingInvitationsDocument = exports.NylasConnectionDocument = exports.NotificationsDocument = exports.NotificationDocument = exports.MyInvitationsDocument = exports.MetalTypesDocument = exports.MetalGradesDocument = exports.IndustryTypesDocument = exports.IndustrySectorsDocument = exports.EmployeeSizesDocument = exports.EmailTemplatesDocument = exports.EmailTemplateDocument = exports.DashboardStatsDocument = exports.CurrentAccountDocument = exports.ContactsInSegmentDocument = exports.ContactsDocument = exports.ContactDocument = exports.CompanyNotesDocument = exports.CompanyNoteDocument = exports.CompanyDocument = exports.CompaniesDocument = exports.CombinedCampaignsDocument = exports.CombinedCampaignStepsDocument = exports.CombinedCampaignLogsDocument = exports.CombinedCampaignContactsDocument = exports.CombinedCampaignDocument = exports.CampaignsDocument = exports.CampaignStatsDocument = exports.CampaignLogsDocument = exports.CampaignContactsDocument = exports.CampaignAnalyticsDocument = exports.CampaignDocument = void 0;
39
39
  exports.useAcceptInvitationMutation = useAcceptInvitationMutation;
40
40
  exports.useAddContactsToCampaignMutation = useAddContactsToCampaignMutation;
41
+ exports.useAddContactsToCombinedCampaignMutation = useAddContactsToCombinedCampaignMutation;
41
42
  exports.useAddContactsToSegmentMutation = useAddContactsToSegmentMutation;
42
43
  exports.useAddSegmentToCallCampaignMutation = useAddSegmentToCallCampaignMutation;
43
44
  exports.useAddSegmentToCampaignMutation = useAddSegmentToCampaignMutation;
@@ -620,6 +621,100 @@ function useAddContactsToCampaignMutation(baseOptions) {
620
621
  const options = { ...defaultOptions, ...baseOptions };
621
622
  return Apollo.useMutation(exports.AddContactsToCampaignDocument, options);
622
623
  }
624
+ exports.AddContactsToCombinedCampaignDocument = (0, client_1.gql) `
625
+ mutation AddContactsToCombinedCampaign($campaignId: ID!, $contacts: [CustomContactInput]!) {
626
+ addContactsToCombinedCampaign(campaignId: $campaignId, contacts: $contacts) {
627
+ campaign {
628
+ id
629
+ uuid
630
+ name
631
+ description
632
+ status
633
+ scheduledFor
634
+ startedAt
635
+ completedAt
636
+ cancelledAt
637
+ pausedAt
638
+ settings
639
+ steps {
640
+ id
641
+ uuid
642
+ order
643
+ stepType
644
+ status
645
+ subject
646
+ template
647
+ taskTitle
648
+ taskDescription
649
+ taskCategory
650
+ taskPriority
651
+ delay
652
+ delayUnit
653
+ condition
654
+ useBusinessDays
655
+ settings
656
+ createdAt
657
+ updatedAt
658
+ }
659
+ segments {
660
+ id
661
+ name
662
+ description
663
+ state
664
+ industry
665
+ metalType
666
+ productCategory
667
+ segmentType
668
+ createdAt
669
+ updatedAt
670
+ isSystemTemplate
671
+ totalContacts
672
+ status
673
+ }
674
+ totalContacts
675
+ completedContacts
676
+ stepStats {
677
+ stepId
678
+ stepOrder
679
+ stepType
680
+ completed
681
+ skipped
682
+ total
683
+ completionRate
684
+ }
685
+ lastActivity
686
+ stepsPreview
687
+ createdAt
688
+ updatedAt
689
+ }
690
+ success
691
+ message
692
+ addedCount
693
+ }
694
+ }
695
+ `;
696
+ /**
697
+ * __useAddContactsToCombinedCampaignMutation__
698
+ *
699
+ * To run a mutation, you first call `useAddContactsToCombinedCampaignMutation` within a React component and pass it any options that fit your needs.
700
+ * When your component renders, `useAddContactsToCombinedCampaignMutation` returns a tuple that includes:
701
+ * - A mutate function that you can call at any time to execute the mutation
702
+ * - An object with fields that represent the current status of the mutation's execution
703
+ *
704
+ * @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;
705
+ *
706
+ * @example
707
+ * const [addContactsToCombinedCampaignMutation, { data, loading, error }] = useAddContactsToCombinedCampaignMutation({
708
+ * variables: {
709
+ * campaignId: // value for 'campaignId'
710
+ * contacts: // value for 'contacts'
711
+ * },
712
+ * });
713
+ */
714
+ function useAddContactsToCombinedCampaignMutation(baseOptions) {
715
+ const options = { ...defaultOptions, ...baseOptions };
716
+ return Apollo.useMutation(exports.AddContactsToCombinedCampaignDocument, options);
717
+ }
623
718
  exports.AddContactsToSegmentDocument = (0, client_1.gql) `
624
719
  mutation AddContactsToSegment($contactIds: [ID]!, $segmentId: ID!) {
625
720
  addContactsToSegment(contactIds: $contactIds, segmentId: $segmentId) {
@@ -1654,6 +1749,7 @@ exports.CreateCompanyDocument = (0, client_1.gql) `
1654
1749
  locationName
1655
1750
  phone
1656
1751
  email
1752
+ region
1657
1753
  createdAt
1658
1754
  updatedAt
1659
1755
  fullAddress
@@ -2271,6 +2367,7 @@ exports.CreateCompanyDocument = (0, client_1.gql) `
2271
2367
  locationName
2272
2368
  phone
2273
2369
  email
2370
+ region
2274
2371
  createdAt
2275
2372
  updatedAt
2276
2373
  fullAddress
@@ -6468,6 +6565,7 @@ exports.UpdateCompanyDocument = (0, client_1.gql) `
6468
6565
  locationName
6469
6566
  phone
6470
6567
  email
6568
+ region
6471
6569
  createdAt
6472
6570
  updatedAt
6473
6571
  fullAddress
@@ -7085,6 +7183,7 @@ exports.UpdateCompanyDocument = (0, client_1.gql) `
7085
7183
  locationName
7086
7184
  phone
7087
7185
  email
7186
+ region
7088
7187
  createdAt
7089
7188
  updatedAt
7090
7189
  fullAddress
@@ -10240,6 +10339,7 @@ exports.CompaniesDocument = (0, client_1.gql) `
10240
10339
  locationName
10241
10340
  phone
10242
10341
  email
10342
+ region
10243
10343
  createdAt
10244
10344
  updatedAt
10245
10345
  fullAddress
@@ -10755,6 +10855,7 @@ exports.CompaniesDocument = (0, client_1.gql) `
10755
10855
  locationName
10756
10856
  phone
10757
10857
  email
10858
+ region
10758
10859
  createdAt
10759
10860
  updatedAt
10760
10861
  fullAddress
@@ -10861,6 +10962,7 @@ exports.CompanyDocument = (0, client_1.gql) `
10861
10962
  locationName
10862
10963
  phone
10863
10964
  email
10965
+ region
10864
10966
  createdAt
10865
10967
  updatedAt
10866
10968
  fullAddress
@@ -11478,6 +11580,7 @@ exports.CompanyDocument = (0, client_1.gql) `
11478
11580
  locationName
11479
11581
  phone
11480
11582
  email
11583
+ region
11481
11584
  createdAt
11482
11585
  updatedAt
11483
11586
  fullAddress
@@ -13313,6 +13416,7 @@ exports.RecentHistoryDocument = (0, client_1.gql) `
13313
13416
  locationName
13314
13417
  phone
13315
13418
  email
13419
+ region
13316
13420
  createdAt
13317
13421
  updatedAt
13318
13422
  fullAddress
@@ -13795,6 +13899,7 @@ exports.RecentHistoryDocument = (0, client_1.gql) `
13795
13899
  locationName
13796
13900
  phone
13797
13901
  email
13902
+ region
13798
13903
  createdAt
13799
13904
  updatedAt
13800
13905
  fullAddress
@@ -9,6 +9,7 @@ export declare const CANCEL_COMBINED_CAMPAIGN: import("@apollo/client").Document
9
9
  export declare const UPDATE_COMBINED_CAMPAIGN_LOG: import("@apollo/client").DocumentNode;
10
10
  export declare const UPDATE_COMBINED_CAMPAIGN_LOGS: import("@apollo/client").DocumentNode;
11
11
  export declare const SEND_MANUAL_EMAIL: import("@apollo/client").DocumentNode;
12
+ export declare const ADD_CONTACTS_TO_COMBINED_CAMPAIGN: import("@apollo/client").DocumentNode;
12
13
  export declare const REMOVE_CONTACTS_FROM_COMBINED_CAMPAIGN: import("@apollo/client").DocumentNode;
13
14
  export declare const SIGNUP: import("@apollo/client").DocumentNode;
14
15
  export declare const FORGOT_PASSWORD: import("@apollo/client").DocumentNode;
package/dist/mutations.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CANCEL_CAMPAIGN = exports.COMPLETE_CAMPAIGN = exports.PAUSE_CAMPAIGN = exports.START_CAMPAIGN = exports.REMOVE_SEGMENT_FROM_CAMPAIGN = exports.ADD_SEGMENT_TO_CAMPAIGN = exports.DELETE_CAMPAIGN = exports.UPDATE_CAMPAIGN = exports.CREATE_CAMPAIGN = exports.REMOVE_CONTACTS_FROM_CAMPAIGN = exports.ADD_CONTACTS_TO_CAMPAIGN = exports.REMOVE_CONTACTS_FROM_SEGMENT = exports.ADD_CONTACTS_TO_SEGMENT = exports.DELETE_SEGMENT = exports.UPDATE_SEGMENT = exports.CREATE_SEGMENT = exports.DELETE_COMPANY = exports.UPDATE_COMPANY = exports.CREATE_COMPANY = exports.DELETE_CONTACT = exports.UPDATE_CONTACT = exports.CREATE_CONTACT = exports.SUBMIT_FEEDBACK = exports.LOGIN_WITH_MICROSOFT = exports.LOGIN_WITH_GOOGLE = exports.UNSUBSCRIBE_FROM_EMAILS = exports.VALIDATE_OTP_AND_RESET_PASSWORD = exports.CHANGE_PASSWORD = exports.UPDATE_USER_PROFILE = exports.LOGIN = exports.CANCEL_INVITATION = exports.REMOVE_MEMBER = exports.REJECT_INVITATION = exports.ACCEPT_INVITATION = exports.INVITE_USER = exports.UPLOAD_FILE = exports.FORGOT_PASSWORD = exports.SIGNUP = exports.REMOVE_CONTACTS_FROM_COMBINED_CAMPAIGN = exports.SEND_MANUAL_EMAIL = exports.UPDATE_COMBINED_CAMPAIGN_LOGS = exports.UPDATE_COMBINED_CAMPAIGN_LOG = exports.CANCEL_COMBINED_CAMPAIGN = exports.RESUME_COMBINED_CAMPAIGN = exports.PAUSE_COMBINED_CAMPAIGN = exports.SCHEDULE_COMBINED_CAMPAIGN = exports.START_COMBINED_CAMPAIGN = exports.DELETE_COMBINED_CAMPAIGN = exports.UPDATE_COMBINED_CAMPAIGN = exports.CREATE_COMBINED_CAMPAIGN = void 0;
4
- exports.UNHIDE_RECORD = exports.HIDE_RECORD = exports.DELETE_COMPANY_NOTE = exports.UPDATE_COMPANY_NOTE = exports.CREATE_COMPANY_NOTE = exports.UPDATE_CALL_CAMPAIGN_LOG = exports.CREATE_CALL_CAMPAIGN_LOG = exports.REMOVE_SEGMENT_FROM_CALL_CAMPAIGN = exports.ADD_SEGMENT_TO_CALL_CAMPAIGN = exports.DELETE_CALL_CAMPAIGN = exports.UPDATE_CALL_CAMPAIGN = exports.CREATE_CALL_CAMPAIGN = exports.DELETE_TASK = exports.UPDATE_TASK = exports.CREATE_TASK = exports.CLEAR_ALL_NOTIFICATIONS = exports.DELETE_NOTIFICATION = exports.MARK_ALL_NOTIFICATIONS_AS_READ = exports.MARK_NOTIFICATION_AS_READ = exports.CREATE_NOTIFICATION = exports.DISCONNECT_NYLAS_INTEGRATION = exports.SAVE_NYLAS_CONNECTION = exports.REDUCE_SPAM = exports.EMAIL_TONE = exports.DELETE_EMAIL_TEMPLATE = exports.UPDATE_EMAIL_TEMPLATE = exports.CREATE_EMAIL_TEMPLATE = exports.PREVIEW_CAMPAIGN_EMAIL = exports.SCHEDULE_CAMPAIGN = exports.SEND_EMAIL_TO_CONTACT = exports.SEND_TEST_EMAIL = void 0;
3
+ exports.COMPLETE_CAMPAIGN = exports.PAUSE_CAMPAIGN = exports.START_CAMPAIGN = exports.REMOVE_SEGMENT_FROM_CAMPAIGN = exports.ADD_SEGMENT_TO_CAMPAIGN = exports.DELETE_CAMPAIGN = exports.UPDATE_CAMPAIGN = exports.CREATE_CAMPAIGN = exports.REMOVE_CONTACTS_FROM_CAMPAIGN = exports.ADD_CONTACTS_TO_CAMPAIGN = exports.REMOVE_CONTACTS_FROM_SEGMENT = exports.ADD_CONTACTS_TO_SEGMENT = exports.DELETE_SEGMENT = exports.UPDATE_SEGMENT = exports.CREATE_SEGMENT = exports.DELETE_COMPANY = exports.UPDATE_COMPANY = exports.CREATE_COMPANY = exports.DELETE_CONTACT = exports.UPDATE_CONTACT = exports.CREATE_CONTACT = exports.SUBMIT_FEEDBACK = exports.LOGIN_WITH_MICROSOFT = exports.LOGIN_WITH_GOOGLE = exports.UNSUBSCRIBE_FROM_EMAILS = exports.VALIDATE_OTP_AND_RESET_PASSWORD = exports.CHANGE_PASSWORD = exports.UPDATE_USER_PROFILE = exports.LOGIN = exports.CANCEL_INVITATION = exports.REMOVE_MEMBER = exports.REJECT_INVITATION = exports.ACCEPT_INVITATION = exports.INVITE_USER = exports.UPLOAD_FILE = exports.FORGOT_PASSWORD = exports.SIGNUP = exports.REMOVE_CONTACTS_FROM_COMBINED_CAMPAIGN = exports.ADD_CONTACTS_TO_COMBINED_CAMPAIGN = exports.SEND_MANUAL_EMAIL = exports.UPDATE_COMBINED_CAMPAIGN_LOGS = exports.UPDATE_COMBINED_CAMPAIGN_LOG = exports.CANCEL_COMBINED_CAMPAIGN = exports.RESUME_COMBINED_CAMPAIGN = exports.PAUSE_COMBINED_CAMPAIGN = exports.SCHEDULE_COMBINED_CAMPAIGN = exports.START_COMBINED_CAMPAIGN = exports.DELETE_COMBINED_CAMPAIGN = exports.UPDATE_COMBINED_CAMPAIGN = exports.CREATE_COMBINED_CAMPAIGN = void 0;
4
+ exports.UNHIDE_RECORD = exports.HIDE_RECORD = exports.DELETE_COMPANY_NOTE = exports.UPDATE_COMPANY_NOTE = exports.CREATE_COMPANY_NOTE = exports.UPDATE_CALL_CAMPAIGN_LOG = exports.CREATE_CALL_CAMPAIGN_LOG = exports.REMOVE_SEGMENT_FROM_CALL_CAMPAIGN = exports.ADD_SEGMENT_TO_CALL_CAMPAIGN = exports.DELETE_CALL_CAMPAIGN = exports.UPDATE_CALL_CAMPAIGN = exports.CREATE_CALL_CAMPAIGN = exports.DELETE_TASK = exports.UPDATE_TASK = exports.CREATE_TASK = exports.CLEAR_ALL_NOTIFICATIONS = exports.DELETE_NOTIFICATION = exports.MARK_ALL_NOTIFICATIONS_AS_READ = exports.MARK_NOTIFICATION_AS_READ = exports.CREATE_NOTIFICATION = exports.DISCONNECT_NYLAS_INTEGRATION = exports.SAVE_NYLAS_CONNECTION = exports.REDUCE_SPAM = exports.EMAIL_TONE = exports.DELETE_EMAIL_TEMPLATE = exports.UPDATE_EMAIL_TEMPLATE = exports.CREATE_EMAIL_TEMPLATE = exports.PREVIEW_CAMPAIGN_EMAIL = exports.SCHEDULE_CAMPAIGN = exports.SEND_EMAIL_TO_CONTACT = exports.SEND_TEST_EMAIL = exports.CANCEL_CAMPAIGN = void 0;
5
5
  const client_1 = require("@apollo/client");
6
6
  exports.CREATE_COMBINED_CAMPAIGN = (0, client_1.gql) `
7
7
  mutation CreateCombinedCampaign($input: CombinedCampaignInput!, $steps: [CombinedCampaignStepInput]) {
@@ -1183,6 +1183,77 @@ mutation SendManualEmail($bcc: [String], $body: String!, $cc: [String], $logId:
1183
1183
  message
1184
1184
  }
1185
1185
  }`;
1186
+ exports.ADD_CONTACTS_TO_COMBINED_CAMPAIGN = (0, client_1.gql) `
1187
+ mutation AddContactsToCombinedCampaign($campaignId: ID!, $contacts: [CustomContactInput]!) {
1188
+ addContactsToCombinedCampaign(campaignId: $campaignId, contacts: $contacts) {
1189
+ campaign {
1190
+ id
1191
+ uuid
1192
+ name
1193
+ description
1194
+ status
1195
+ scheduledFor
1196
+ startedAt
1197
+ completedAt
1198
+ cancelledAt
1199
+ pausedAt
1200
+ settings
1201
+ steps {
1202
+ id
1203
+ uuid
1204
+ order
1205
+ stepType
1206
+ status
1207
+ subject
1208
+ template
1209
+ taskTitle
1210
+ taskDescription
1211
+ taskCategory
1212
+ taskPriority
1213
+ delay
1214
+ delayUnit
1215
+ condition
1216
+ useBusinessDays
1217
+ settings
1218
+ createdAt
1219
+ updatedAt
1220
+ }
1221
+ segments {
1222
+ id
1223
+ name
1224
+ description
1225
+ state
1226
+ industry
1227
+ metalType
1228
+ productCategory
1229
+ segmentType
1230
+ createdAt
1231
+ updatedAt
1232
+ isSystemTemplate
1233
+ totalContacts
1234
+ status
1235
+ }
1236
+ totalContacts
1237
+ completedContacts
1238
+ stepStats {
1239
+ stepId
1240
+ stepOrder
1241
+ stepType
1242
+ completed
1243
+ skipped
1244
+ total
1245
+ completionRate
1246
+ }
1247
+ lastActivity
1248
+ stepsPreview
1249
+ createdAt
1250
+ updatedAt
1251
+ }
1252
+ success
1253
+ message
1254
+ addedCount
1255
+ }
1256
+ }`;
1186
1257
  exports.REMOVE_CONTACTS_FROM_COMBINED_CAMPAIGN = (0, client_1.gql) `
1187
1258
  mutation RemoveContactsFromCombinedCampaign($campaignId: ID!, $contactIds: [ID], $customContactIds: [ID]) {
1188
1259
  removeContactsFromCombinedCampaign(campaignId: $campaignId, contactIds: $contactIds, customContactIds: $customContactIds) {
@@ -1653,6 +1724,7 @@ mutation CreateCompany($input: CompanyInput) {
1653
1724
  locationName
1654
1725
  phone
1655
1726
  email
1727
+ region
1656
1728
  createdAt
1657
1729
  updatedAt
1658
1730
  fullAddress
@@ -2270,6 +2342,7 @@ mutation CreateCompany($input: CompanyInput) {
2270
2342
  locationName
2271
2343
  phone
2272
2344
  email
2345
+ region
2273
2346
  createdAt
2274
2347
  updatedAt
2275
2348
  fullAddress
@@ -2337,6 +2410,7 @@ mutation UpdateCompany($input: CompanyInput) {
2337
2410
  locationName
2338
2411
  phone
2339
2412
  email
2413
+ region
2340
2414
  createdAt
2341
2415
  updatedAt
2342
2416
  fullAddress
@@ -2954,6 +3028,7 @@ mutation UpdateCompany($input: CompanyInput) {
2954
3028
  locationName
2955
3029
  phone
2956
3030
  email
3031
+ region
2957
3032
  createdAt
2958
3033
  updatedAt
2959
3034
  fullAddress
package/dist/queries.js CHANGED
@@ -666,6 +666,7 @@ query RecentHistory($filter: RecentHistoryFilterInput, $sort: RecentHistorySortI
666
666
  locationName
667
667
  phone
668
668
  email
669
+ region
669
670
  createdAt
670
671
  updatedAt
671
672
  fullAddress
@@ -1148,6 +1149,7 @@ query RecentHistory($filter: RecentHistoryFilterInput, $sort: RecentHistorySortI
1148
1149
  locationName
1149
1150
  phone
1150
1151
  email
1152
+ region
1151
1153
  createdAt
1152
1154
  updatedAt
1153
1155
  fullAddress
@@ -3490,6 +3492,7 @@ query Companies($filters: CompanyFilterInput, $pagination: PaginationInput, $sor
3490
3492
  locationName
3491
3493
  phone
3492
3494
  email
3495
+ region
3493
3496
  createdAt
3494
3497
  updatedAt
3495
3498
  fullAddress
@@ -4005,6 +4008,7 @@ query Companies($filters: CompanyFilterInput, $pagination: PaginationInput, $sor
4005
4008
  locationName
4006
4009
  phone
4007
4010
  email
4011
+ region
4008
4012
  createdAt
4009
4013
  updatedAt
4010
4014
  fullAddress
@@ -4238,6 +4242,7 @@ query Company($id: String) {
4238
4242
  locationName
4239
4243
  phone
4240
4244
  email
4245
+ region
4241
4246
  createdAt
4242
4247
  updatedAt
4243
4248
  fullAddress
@@ -4855,6 +4860,7 @@ query Company($id: String) {
4855
4860
  locationName
4856
4861
  phone
4857
4862
  email
4863
+ region
4858
4864
  createdAt
4859
4865
  updatedAt
4860
4866
  fullAddress
package/dist/sdk.d.ts CHANGED
@@ -10,6 +10,7 @@ export declare class CloudForgeSDK {
10
10
  executeCustomMutation<T = any>(mutation: string | any, variables?: Record<string, any>): Promise<import("@apollo/client").FetchResult<T>>;
11
11
  acceptInvitation(input: InvitationResponseInput): Promise<import("@apollo/client").FetchResult<any>>;
12
12
  addContactsToCampaign(campaignId: string, contacts: CustomContactInput[]): Promise<import("@apollo/client").FetchResult<any>>;
13
+ addContactsToCombinedCampaign(campaignId: string, contacts: CustomContactInput[]): Promise<import("@apollo/client").FetchResult<any>>;
13
14
  addContactsToSegment(contactIds: string[], segmentId: string): Promise<import("@apollo/client").FetchResult<any>>;
14
15
  addSegmentToCallCampaign(campaignId: string, segmentId: string): Promise<import("@apollo/client").FetchResult<any>>;
15
16
  addSegmentToCampaign(campaignId: string, segmentId: string): Promise<import("@apollo/client").FetchResult<any>>;
package/dist/sdk.js CHANGED
@@ -45,6 +45,12 @@ class CloudForgeSDK {
45
45
  variables: { campaignId, contacts }
46
46
  });
47
47
  }
48
+ async addContactsToCombinedCampaign(campaignId, contacts) {
49
+ return this.apolloClient.mutate({
50
+ mutation: mutations_1.ADD_CONTACTS_TO_COMBINED_CAMPAIGN,
51
+ variables: { campaignId, contacts }
52
+ });
53
+ }
48
54
  async addContactsToSegment(contactIds, segmentId) {
49
55
  return this.apolloClient.mutate({
50
56
  mutation: mutations_1.ADD_CONTACTS_TO_SEGMENT,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cf-service-sdk",
3
- "version": "0.0.63",
3
+ "version": "0.0.64",
4
4
  "type": "commonjs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",