cf-service-sdk 0.0.63 → 0.0.65
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/dist/generated/graphql.d.ts +187 -0
- package/dist/generated/graphql.js +139 -3
- package/dist/mutations.d.ts +2 -0
- package/dist/mutations.js +84 -2
- package/dist/queries.js +6 -0
- package/dist/sdk.d.ts +2 -0
- package/dist/sdk.js +12 -0
- package/package.json +1 -1
|
@@ -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>;
|
|
@@ -2050,6 +2063,8 @@ export type Mutation = {
|
|
|
2050
2063
|
/** Send a manual email as part of a combined campaign step */
|
|
2051
2064
|
sendManualEmail?: Maybe<SendManualEmail>;
|
|
2052
2065
|
sendTestEmail?: Maybe<SendTestEmail>;
|
|
2066
|
+
/** Send test email for combined campaign using content from first email step */
|
|
2067
|
+
sendTestEmailCombined?: Maybe<SendTestEmailCombined>;
|
|
2053
2068
|
/** Signup - Register a new user and create their account */
|
|
2054
2069
|
signup?: Maybe<Signup>;
|
|
2055
2070
|
startCampaign?: Maybe<StartCampaign>;
|
|
@@ -2095,6 +2110,11 @@ export type MutationAddContactsToCampaignArgs = {
|
|
|
2095
2110
|
contacts: Array<InputMaybe<CustomContactInput>>;
|
|
2096
2111
|
};
|
|
2097
2112
|
/** Mutations */
|
|
2113
|
+
export type MutationAddContactsToCombinedCampaignArgs = {
|
|
2114
|
+
campaignId: Scalars['ID']['input'];
|
|
2115
|
+
contacts: Array<InputMaybe<CustomContactInput>>;
|
|
2116
|
+
};
|
|
2117
|
+
/** Mutations */
|
|
2098
2118
|
export type MutationAddContactsToSegmentArgs = {
|
|
2099
2119
|
contactIds: Array<InputMaybe<Scalars['ID']['input']>>;
|
|
2100
2120
|
segmentId: Scalars['ID']['input'];
|
|
@@ -2347,6 +2367,11 @@ export type MutationSendTestEmailArgs = {
|
|
|
2347
2367
|
template: Scalars['String']['input'];
|
|
2348
2368
|
};
|
|
2349
2369
|
/** Mutations */
|
|
2370
|
+
export type MutationSendTestEmailCombinedArgs = {
|
|
2371
|
+
campaignId: Scalars['ID']['input'];
|
|
2372
|
+
emailAddress: Scalars['String']['input'];
|
|
2373
|
+
};
|
|
2374
|
+
/** Mutations */
|
|
2350
2375
|
export type MutationSignupArgs = {
|
|
2351
2376
|
input: SignupInput;
|
|
2352
2377
|
};
|
|
@@ -3213,6 +3238,12 @@ export type SendTestEmail = {
|
|
|
3213
3238
|
message?: Maybe<Scalars['String']['output']>;
|
|
3214
3239
|
success?: Maybe<Scalars['Boolean']['output']>;
|
|
3215
3240
|
};
|
|
3241
|
+
/** Send test email for combined campaign using content from first email step */
|
|
3242
|
+
export type SendTestEmailCombined = {
|
|
3243
|
+
__typename?: 'SendTestEmailCombined';
|
|
3244
|
+
message?: Maybe<Scalars['String']['output']>;
|
|
3245
|
+
success?: Maybe<Scalars['Boolean']['output']>;
|
|
3246
|
+
};
|
|
3216
3247
|
/** Signup - Register a new user and create their account */
|
|
3217
3248
|
export type Signup = {
|
|
3218
3249
|
__typename?: 'Signup';
|
|
@@ -3619,6 +3650,86 @@ export type AddContactsToCampaignMutation = {
|
|
|
3619
3650
|
} | null;
|
|
3620
3651
|
} | null;
|
|
3621
3652
|
};
|
|
3653
|
+
export type AddContactsToCombinedCampaignMutationVariables = Exact<{
|
|
3654
|
+
campaignId: Scalars['ID']['input'];
|
|
3655
|
+
contacts: Array<InputMaybe<CustomContactInput>> | InputMaybe<CustomContactInput>;
|
|
3656
|
+
}>;
|
|
3657
|
+
export type AddContactsToCombinedCampaignMutation = {
|
|
3658
|
+
__typename?: 'Mutation';
|
|
3659
|
+
addContactsToCombinedCampaign?: {
|
|
3660
|
+
__typename?: 'AddContactsToCombinedCampaign';
|
|
3661
|
+
success?: boolean | null;
|
|
3662
|
+
message?: string | null;
|
|
3663
|
+
addedCount?: number | null;
|
|
3664
|
+
campaign?: {
|
|
3665
|
+
__typename?: 'CombinedCampaignObject';
|
|
3666
|
+
id?: string | null;
|
|
3667
|
+
uuid?: string | null;
|
|
3668
|
+
name?: string | null;
|
|
3669
|
+
description?: string | null;
|
|
3670
|
+
status?: string | null;
|
|
3671
|
+
scheduledFor?: any | null;
|
|
3672
|
+
startedAt?: any | null;
|
|
3673
|
+
completedAt?: any | null;
|
|
3674
|
+
cancelledAt?: any | null;
|
|
3675
|
+
pausedAt?: any | null;
|
|
3676
|
+
settings?: any | null;
|
|
3677
|
+
totalContacts?: number | null;
|
|
3678
|
+
completedContacts?: number | null;
|
|
3679
|
+
lastActivity?: any | null;
|
|
3680
|
+
stepsPreview?: any | null;
|
|
3681
|
+
createdAt?: any | null;
|
|
3682
|
+
updatedAt?: any | null;
|
|
3683
|
+
steps?: Array<{
|
|
3684
|
+
__typename?: 'CombinedCampaignStepObject';
|
|
3685
|
+
id?: string | null;
|
|
3686
|
+
uuid?: string | null;
|
|
3687
|
+
order?: number | null;
|
|
3688
|
+
stepType?: string | null;
|
|
3689
|
+
status?: string | null;
|
|
3690
|
+
subject?: string | null;
|
|
3691
|
+
template?: string | null;
|
|
3692
|
+
taskTitle?: string | null;
|
|
3693
|
+
taskDescription?: string | null;
|
|
3694
|
+
taskCategory?: string | null;
|
|
3695
|
+
taskPriority?: string | null;
|
|
3696
|
+
delay?: number | null;
|
|
3697
|
+
delayUnit?: string | null;
|
|
3698
|
+
condition?: string | null;
|
|
3699
|
+
useBusinessDays?: boolean | null;
|
|
3700
|
+
settings?: any | null;
|
|
3701
|
+
createdAt?: any | null;
|
|
3702
|
+
updatedAt?: any | null;
|
|
3703
|
+
} | null> | null;
|
|
3704
|
+
segments?: Array<{
|
|
3705
|
+
__typename?: 'SegmentObject';
|
|
3706
|
+
id?: string | null;
|
|
3707
|
+
name?: string | null;
|
|
3708
|
+
description?: string | null;
|
|
3709
|
+
state?: string | null;
|
|
3710
|
+
industry?: string | null;
|
|
3711
|
+
metalType?: string | null;
|
|
3712
|
+
productCategory?: string | null;
|
|
3713
|
+
segmentType?: string | null;
|
|
3714
|
+
createdAt?: any | null;
|
|
3715
|
+
updatedAt?: any | null;
|
|
3716
|
+
isSystemTemplate?: boolean | null;
|
|
3717
|
+
totalContacts?: number | null;
|
|
3718
|
+
status?: string | null;
|
|
3719
|
+
} | null> | null;
|
|
3720
|
+
stepStats?: Array<{
|
|
3721
|
+
__typename?: 'CombinedCampaignStepStatsObject';
|
|
3722
|
+
stepId?: string | null;
|
|
3723
|
+
stepOrder?: number | null;
|
|
3724
|
+
stepType?: string | null;
|
|
3725
|
+
completed?: number | null;
|
|
3726
|
+
skipped?: number | null;
|
|
3727
|
+
total?: number | null;
|
|
3728
|
+
completionRate?: number | null;
|
|
3729
|
+
} | null> | null;
|
|
3730
|
+
} | null;
|
|
3731
|
+
} | null;
|
|
3732
|
+
};
|
|
3622
3733
|
export type AddContactsToSegmentMutationVariables = Exact<{
|
|
3623
3734
|
contactIds: Array<InputMaybe<Scalars['ID']['input']>> | InputMaybe<Scalars['ID']['input']>;
|
|
3624
3735
|
segmentId: Scalars['ID']['input'];
|
|
@@ -4476,6 +4587,7 @@ export type CreateCompanyMutation = {
|
|
|
4476
4587
|
locationName?: string | null;
|
|
4477
4588
|
phone?: string | null;
|
|
4478
4589
|
email?: string | null;
|
|
4590
|
+
region?: string | null;
|
|
4479
4591
|
createdAt?: any | null;
|
|
4480
4592
|
updatedAt?: any | null;
|
|
4481
4593
|
fullAddress?: string | null;
|
|
@@ -5147,6 +5259,7 @@ export type CreateCompanyMutation = {
|
|
|
5147
5259
|
locationName?: string | null;
|
|
5148
5260
|
phone?: string | null;
|
|
5149
5261
|
email?: string | null;
|
|
5262
|
+
region?: string | null;
|
|
5150
5263
|
createdAt?: any | null;
|
|
5151
5264
|
updatedAt?: any | null;
|
|
5152
5265
|
fullAddress?: string | null;
|
|
@@ -7533,6 +7646,18 @@ export type SendTestEmailMutation = {
|
|
|
7533
7646
|
message?: string | null;
|
|
7534
7647
|
} | null;
|
|
7535
7648
|
};
|
|
7649
|
+
export type SendTestEmailCombinedMutationVariables = Exact<{
|
|
7650
|
+
campaignId: Scalars['ID']['input'];
|
|
7651
|
+
emailAddress: Scalars['String']['input'];
|
|
7652
|
+
}>;
|
|
7653
|
+
export type SendTestEmailCombinedMutation = {
|
|
7654
|
+
__typename?: 'Mutation';
|
|
7655
|
+
sendTestEmailCombined?: {
|
|
7656
|
+
__typename?: 'SendTestEmailCombined';
|
|
7657
|
+
success?: boolean | null;
|
|
7658
|
+
message?: string | null;
|
|
7659
|
+
} | null;
|
|
7660
|
+
};
|
|
7536
7661
|
export type SignupMutationVariables = Exact<{
|
|
7537
7662
|
input: SignupInput;
|
|
7538
7663
|
}>;
|
|
@@ -8463,6 +8588,7 @@ export type UpdateCompanyMutation = {
|
|
|
8463
8588
|
locationName?: string | null;
|
|
8464
8589
|
phone?: string | null;
|
|
8465
8590
|
email?: string | null;
|
|
8591
|
+
region?: string | null;
|
|
8466
8592
|
createdAt?: any | null;
|
|
8467
8593
|
updatedAt?: any | null;
|
|
8468
8594
|
fullAddress?: string | null;
|
|
@@ -9134,6 +9260,7 @@ export type UpdateCompanyMutation = {
|
|
|
9134
9260
|
locationName?: string | null;
|
|
9135
9261
|
phone?: string | null;
|
|
9136
9262
|
email?: string | null;
|
|
9263
|
+
region?: string | null;
|
|
9137
9264
|
createdAt?: any | null;
|
|
9138
9265
|
updatedAt?: any | null;
|
|
9139
9266
|
fullAddress?: string | null;
|
|
@@ -11805,6 +11932,7 @@ export type CompaniesQuery = {
|
|
|
11805
11932
|
locationName?: string | null;
|
|
11806
11933
|
phone?: string | null;
|
|
11807
11934
|
email?: string | null;
|
|
11935
|
+
region?: string | null;
|
|
11808
11936
|
createdAt?: any | null;
|
|
11809
11937
|
updatedAt?: any | null;
|
|
11810
11938
|
fullAddress?: string | null;
|
|
@@ -12366,6 +12494,7 @@ export type CompaniesQuery = {
|
|
|
12366
12494
|
locationName?: string | null;
|
|
12367
12495
|
phone?: string | null;
|
|
12368
12496
|
email?: string | null;
|
|
12497
|
+
region?: string | null;
|
|
12369
12498
|
createdAt?: any | null;
|
|
12370
12499
|
updatedAt?: any | null;
|
|
12371
12500
|
fullAddress?: string | null;
|
|
@@ -12451,6 +12580,7 @@ export type CompanyQuery = {
|
|
|
12451
12580
|
locationName?: string | null;
|
|
12452
12581
|
phone?: string | null;
|
|
12453
12582
|
email?: string | null;
|
|
12583
|
+
region?: string | null;
|
|
12454
12584
|
createdAt?: any | null;
|
|
12455
12585
|
updatedAt?: any | null;
|
|
12456
12586
|
fullAddress?: string | null;
|
|
@@ -13122,6 +13252,7 @@ export type CompanyQuery = {
|
|
|
13122
13252
|
locationName?: string | null;
|
|
13123
13253
|
phone?: string | null;
|
|
13124
13254
|
email?: string | null;
|
|
13255
|
+
region?: string | null;
|
|
13125
13256
|
createdAt?: any | null;
|
|
13126
13257
|
updatedAt?: any | null;
|
|
13127
13258
|
fullAddress?: string | null;
|
|
@@ -14523,6 +14654,7 @@ export type RecentHistoryQuery = {
|
|
|
14523
14654
|
locationName?: string | null;
|
|
14524
14655
|
phone?: string | null;
|
|
14525
14656
|
email?: string | null;
|
|
14657
|
+
region?: string | null;
|
|
14526
14658
|
createdAt?: any | null;
|
|
14527
14659
|
updatedAt?: any | null;
|
|
14528
14660
|
fullAddress?: string | null;
|
|
@@ -15049,6 +15181,7 @@ export type RecentHistoryQuery = {
|
|
|
15049
15181
|
locationName?: string | null;
|
|
15050
15182
|
phone?: string | null;
|
|
15051
15183
|
email?: string | null;
|
|
15184
|
+
region?: string | null;
|
|
15052
15185
|
createdAt?: any | null;
|
|
15053
15186
|
updatedAt?: any | null;
|
|
15054
15187
|
fullAddress?: string | null;
|
|
@@ -15664,6 +15797,33 @@ export declare function useAddContactsToCampaignMutation(baseOptions?: Apollo.Mu
|
|
|
15664
15797
|
export type AddContactsToCampaignMutationHookResult = ReturnType<typeof useAddContactsToCampaignMutation>;
|
|
15665
15798
|
export type AddContactsToCampaignMutationResult = Apollo.MutationResult<AddContactsToCampaignMutation>;
|
|
15666
15799
|
export type AddContactsToCampaignMutationOptions = Apollo.BaseMutationOptions<AddContactsToCampaignMutation, AddContactsToCampaignMutationVariables>;
|
|
15800
|
+
export declare const AddContactsToCombinedCampaignDocument: Apollo.DocumentNode;
|
|
15801
|
+
export type AddContactsToCombinedCampaignMutationFn = Apollo.MutationFunction<AddContactsToCombinedCampaignMutation, AddContactsToCombinedCampaignMutationVariables>;
|
|
15802
|
+
/**
|
|
15803
|
+
* __useAddContactsToCombinedCampaignMutation__
|
|
15804
|
+
*
|
|
15805
|
+
* To run a mutation, you first call `useAddContactsToCombinedCampaignMutation` within a React component and pass it any options that fit your needs.
|
|
15806
|
+
* When your component renders, `useAddContactsToCombinedCampaignMutation` returns a tuple that includes:
|
|
15807
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
15808
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
15809
|
+
*
|
|
15810
|
+
* @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;
|
|
15811
|
+
*
|
|
15812
|
+
* @example
|
|
15813
|
+
* const [addContactsToCombinedCampaignMutation, { data, loading, error }] = useAddContactsToCombinedCampaignMutation({
|
|
15814
|
+
* variables: {
|
|
15815
|
+
* campaignId: // value for 'campaignId'
|
|
15816
|
+
* contacts: // value for 'contacts'
|
|
15817
|
+
* },
|
|
15818
|
+
* });
|
|
15819
|
+
*/
|
|
15820
|
+
export declare function useAddContactsToCombinedCampaignMutation(baseOptions?: Apollo.MutationHookOptions<AddContactsToCombinedCampaignMutation, AddContactsToCombinedCampaignMutationVariables>): Apollo.MutationTuple<AddContactsToCombinedCampaignMutation, Exact<{
|
|
15821
|
+
campaignId: Scalars["ID"]["input"];
|
|
15822
|
+
contacts: Array<InputMaybe<CustomContactInput>> | InputMaybe<CustomContactInput>;
|
|
15823
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
15824
|
+
export type AddContactsToCombinedCampaignMutationHookResult = ReturnType<typeof useAddContactsToCombinedCampaignMutation>;
|
|
15825
|
+
export type AddContactsToCombinedCampaignMutationResult = Apollo.MutationResult<AddContactsToCombinedCampaignMutation>;
|
|
15826
|
+
export type AddContactsToCombinedCampaignMutationOptions = Apollo.BaseMutationOptions<AddContactsToCombinedCampaignMutation, AddContactsToCombinedCampaignMutationVariables>;
|
|
15667
15827
|
export declare const AddContactsToSegmentDocument: Apollo.DocumentNode;
|
|
15668
15828
|
export type AddContactsToSegmentMutationFn = Apollo.MutationFunction<AddContactsToSegmentMutation, AddContactsToSegmentMutationVariables>;
|
|
15669
15829
|
/**
|
|
@@ -17175,6 +17335,33 @@ export declare function useSendTestEmailMutation(baseOptions?: Apollo.MutationHo
|
|
|
17175
17335
|
export type SendTestEmailMutationHookResult = ReturnType<typeof useSendTestEmailMutation>;
|
|
17176
17336
|
export type SendTestEmailMutationResult = Apollo.MutationResult<SendTestEmailMutation>;
|
|
17177
17337
|
export type SendTestEmailMutationOptions = Apollo.BaseMutationOptions<SendTestEmailMutation, SendTestEmailMutationVariables>;
|
|
17338
|
+
export declare const SendTestEmailCombinedDocument: Apollo.DocumentNode;
|
|
17339
|
+
export type SendTestEmailCombinedMutationFn = Apollo.MutationFunction<SendTestEmailCombinedMutation, SendTestEmailCombinedMutationVariables>;
|
|
17340
|
+
/**
|
|
17341
|
+
* __useSendTestEmailCombinedMutation__
|
|
17342
|
+
*
|
|
17343
|
+
* To run a mutation, you first call `useSendTestEmailCombinedMutation` within a React component and pass it any options that fit your needs.
|
|
17344
|
+
* When your component renders, `useSendTestEmailCombinedMutation` returns a tuple that includes:
|
|
17345
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
17346
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
17347
|
+
*
|
|
17348
|
+
* @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;
|
|
17349
|
+
*
|
|
17350
|
+
* @example
|
|
17351
|
+
* const [sendTestEmailCombinedMutation, { data, loading, error }] = useSendTestEmailCombinedMutation({
|
|
17352
|
+
* variables: {
|
|
17353
|
+
* campaignId: // value for 'campaignId'
|
|
17354
|
+
* emailAddress: // value for 'emailAddress'
|
|
17355
|
+
* },
|
|
17356
|
+
* });
|
|
17357
|
+
*/
|
|
17358
|
+
export declare function useSendTestEmailCombinedMutation(baseOptions?: Apollo.MutationHookOptions<SendTestEmailCombinedMutation, SendTestEmailCombinedMutationVariables>): Apollo.MutationTuple<SendTestEmailCombinedMutation, Exact<{
|
|
17359
|
+
campaignId: Scalars["ID"]["input"];
|
|
17360
|
+
emailAddress: Scalars["String"]["input"];
|
|
17361
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
17362
|
+
export type SendTestEmailCombinedMutationHookResult = ReturnType<typeof useSendTestEmailCombinedMutation>;
|
|
17363
|
+
export type SendTestEmailCombinedMutationResult = Apollo.MutationResult<SendTestEmailCombinedMutation>;
|
|
17364
|
+
export type SendTestEmailCombinedMutationOptions = Apollo.BaseMutationOptions<SendTestEmailCombinedMutation, SendTestEmailCombinedMutationVariables>;
|
|
17178
17365
|
export declare const SignupDocument: Apollo.DocumentNode;
|
|
17179
17366
|
export type SignupMutationFn = Apollo.MutationFunction<SignupMutation, SignupMutationVariables>;
|
|
17180
17367
|
/**
|
|
@@ -33,11 +33,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
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.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.SendTestEmailCombinedDocument = 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 = exports.CallCampaignsDocument = 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;
|
|
@@ -96,6 +97,7 @@ exports.useScheduleCombinedCampaignMutation = useScheduleCombinedCampaignMutatio
|
|
|
96
97
|
exports.useSendEmailToContactMutation = useSendEmailToContactMutation;
|
|
97
98
|
exports.useSendManualEmailMutation = useSendManualEmailMutation;
|
|
98
99
|
exports.useSendTestEmailMutation = useSendTestEmailMutation;
|
|
100
|
+
exports.useSendTestEmailCombinedMutation = useSendTestEmailCombinedMutation;
|
|
99
101
|
exports.useSignupMutation = useSignupMutation;
|
|
100
102
|
exports.useStartCampaignMutation = useStartCampaignMutation;
|
|
101
103
|
exports.useStartCombinedCampaignMutation = useStartCombinedCampaignMutation;
|
|
@@ -620,6 +622,100 @@ function useAddContactsToCampaignMutation(baseOptions) {
|
|
|
620
622
|
const options = { ...defaultOptions, ...baseOptions };
|
|
621
623
|
return Apollo.useMutation(exports.AddContactsToCampaignDocument, options);
|
|
622
624
|
}
|
|
625
|
+
exports.AddContactsToCombinedCampaignDocument = (0, client_1.gql) `
|
|
626
|
+
mutation AddContactsToCombinedCampaign($campaignId: ID!, $contacts: [CustomContactInput]!) {
|
|
627
|
+
addContactsToCombinedCampaign(campaignId: $campaignId, contacts: $contacts) {
|
|
628
|
+
campaign {
|
|
629
|
+
id
|
|
630
|
+
uuid
|
|
631
|
+
name
|
|
632
|
+
description
|
|
633
|
+
status
|
|
634
|
+
scheduledFor
|
|
635
|
+
startedAt
|
|
636
|
+
completedAt
|
|
637
|
+
cancelledAt
|
|
638
|
+
pausedAt
|
|
639
|
+
settings
|
|
640
|
+
steps {
|
|
641
|
+
id
|
|
642
|
+
uuid
|
|
643
|
+
order
|
|
644
|
+
stepType
|
|
645
|
+
status
|
|
646
|
+
subject
|
|
647
|
+
template
|
|
648
|
+
taskTitle
|
|
649
|
+
taskDescription
|
|
650
|
+
taskCategory
|
|
651
|
+
taskPriority
|
|
652
|
+
delay
|
|
653
|
+
delayUnit
|
|
654
|
+
condition
|
|
655
|
+
useBusinessDays
|
|
656
|
+
settings
|
|
657
|
+
createdAt
|
|
658
|
+
updatedAt
|
|
659
|
+
}
|
|
660
|
+
segments {
|
|
661
|
+
id
|
|
662
|
+
name
|
|
663
|
+
description
|
|
664
|
+
state
|
|
665
|
+
industry
|
|
666
|
+
metalType
|
|
667
|
+
productCategory
|
|
668
|
+
segmentType
|
|
669
|
+
createdAt
|
|
670
|
+
updatedAt
|
|
671
|
+
isSystemTemplate
|
|
672
|
+
totalContacts
|
|
673
|
+
status
|
|
674
|
+
}
|
|
675
|
+
totalContacts
|
|
676
|
+
completedContacts
|
|
677
|
+
stepStats {
|
|
678
|
+
stepId
|
|
679
|
+
stepOrder
|
|
680
|
+
stepType
|
|
681
|
+
completed
|
|
682
|
+
skipped
|
|
683
|
+
total
|
|
684
|
+
completionRate
|
|
685
|
+
}
|
|
686
|
+
lastActivity
|
|
687
|
+
stepsPreview
|
|
688
|
+
createdAt
|
|
689
|
+
updatedAt
|
|
690
|
+
}
|
|
691
|
+
success
|
|
692
|
+
message
|
|
693
|
+
addedCount
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
`;
|
|
697
|
+
/**
|
|
698
|
+
* __useAddContactsToCombinedCampaignMutation__
|
|
699
|
+
*
|
|
700
|
+
* To run a mutation, you first call `useAddContactsToCombinedCampaignMutation` within a React component and pass it any options that fit your needs.
|
|
701
|
+
* When your component renders, `useAddContactsToCombinedCampaignMutation` returns a tuple that includes:
|
|
702
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
703
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
704
|
+
*
|
|
705
|
+
* @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;
|
|
706
|
+
*
|
|
707
|
+
* @example
|
|
708
|
+
* const [addContactsToCombinedCampaignMutation, { data, loading, error }] = useAddContactsToCombinedCampaignMutation({
|
|
709
|
+
* variables: {
|
|
710
|
+
* campaignId: // value for 'campaignId'
|
|
711
|
+
* contacts: // value for 'contacts'
|
|
712
|
+
* },
|
|
713
|
+
* });
|
|
714
|
+
*/
|
|
715
|
+
function useAddContactsToCombinedCampaignMutation(baseOptions) {
|
|
716
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
717
|
+
return Apollo.useMutation(exports.AddContactsToCombinedCampaignDocument, options);
|
|
718
|
+
}
|
|
623
719
|
exports.AddContactsToSegmentDocument = (0, client_1.gql) `
|
|
624
720
|
mutation AddContactsToSegment($contactIds: [ID]!, $segmentId: ID!) {
|
|
625
721
|
addContactsToSegment(contactIds: $contactIds, segmentId: $segmentId) {
|
|
@@ -1654,6 +1750,7 @@ exports.CreateCompanyDocument = (0, client_1.gql) `
|
|
|
1654
1750
|
locationName
|
|
1655
1751
|
phone
|
|
1656
1752
|
email
|
|
1753
|
+
region
|
|
1657
1754
|
createdAt
|
|
1658
1755
|
updatedAt
|
|
1659
1756
|
fullAddress
|
|
@@ -2271,6 +2368,7 @@ exports.CreateCompanyDocument = (0, client_1.gql) `
|
|
|
2271
2368
|
locationName
|
|
2272
2369
|
phone
|
|
2273
2370
|
email
|
|
2371
|
+
region
|
|
2274
2372
|
createdAt
|
|
2275
2373
|
updatedAt
|
|
2276
2374
|
fullAddress
|
|
@@ -5377,6 +5475,36 @@ function useSendTestEmailMutation(baseOptions) {
|
|
|
5377
5475
|
const options = { ...defaultOptions, ...baseOptions };
|
|
5378
5476
|
return Apollo.useMutation(exports.SendTestEmailDocument, options);
|
|
5379
5477
|
}
|
|
5478
|
+
exports.SendTestEmailCombinedDocument = (0, client_1.gql) `
|
|
5479
|
+
mutation SendTestEmailCombined($campaignId: ID!, $emailAddress: String!) {
|
|
5480
|
+
sendTestEmailCombined(campaignId: $campaignId, emailAddress: $emailAddress) {
|
|
5481
|
+
success
|
|
5482
|
+
message
|
|
5483
|
+
}
|
|
5484
|
+
}
|
|
5485
|
+
`;
|
|
5486
|
+
/**
|
|
5487
|
+
* __useSendTestEmailCombinedMutation__
|
|
5488
|
+
*
|
|
5489
|
+
* To run a mutation, you first call `useSendTestEmailCombinedMutation` within a React component and pass it any options that fit your needs.
|
|
5490
|
+
* When your component renders, `useSendTestEmailCombinedMutation` returns a tuple that includes:
|
|
5491
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
5492
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
5493
|
+
*
|
|
5494
|
+
* @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;
|
|
5495
|
+
*
|
|
5496
|
+
* @example
|
|
5497
|
+
* const [sendTestEmailCombinedMutation, { data, loading, error }] = useSendTestEmailCombinedMutation({
|
|
5498
|
+
* variables: {
|
|
5499
|
+
* campaignId: // value for 'campaignId'
|
|
5500
|
+
* emailAddress: // value for 'emailAddress'
|
|
5501
|
+
* },
|
|
5502
|
+
* });
|
|
5503
|
+
*/
|
|
5504
|
+
function useSendTestEmailCombinedMutation(baseOptions) {
|
|
5505
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
5506
|
+
return Apollo.useMutation(exports.SendTestEmailCombinedDocument, options);
|
|
5507
|
+
}
|
|
5380
5508
|
exports.SignupDocument = (0, client_1.gql) `
|
|
5381
5509
|
mutation Signup($input: SignupInput!) {
|
|
5382
5510
|
signup(input: $input) {
|
|
@@ -6468,6 +6596,7 @@ exports.UpdateCompanyDocument = (0, client_1.gql) `
|
|
|
6468
6596
|
locationName
|
|
6469
6597
|
phone
|
|
6470
6598
|
email
|
|
6599
|
+
region
|
|
6471
6600
|
createdAt
|
|
6472
6601
|
updatedAt
|
|
6473
6602
|
fullAddress
|
|
@@ -7085,6 +7214,7 @@ exports.UpdateCompanyDocument = (0, client_1.gql) `
|
|
|
7085
7214
|
locationName
|
|
7086
7215
|
phone
|
|
7087
7216
|
email
|
|
7217
|
+
region
|
|
7088
7218
|
createdAt
|
|
7089
7219
|
updatedAt
|
|
7090
7220
|
fullAddress
|
|
@@ -10240,6 +10370,7 @@ exports.CompaniesDocument = (0, client_1.gql) `
|
|
|
10240
10370
|
locationName
|
|
10241
10371
|
phone
|
|
10242
10372
|
email
|
|
10373
|
+
region
|
|
10243
10374
|
createdAt
|
|
10244
10375
|
updatedAt
|
|
10245
10376
|
fullAddress
|
|
@@ -10755,6 +10886,7 @@ exports.CompaniesDocument = (0, client_1.gql) `
|
|
|
10755
10886
|
locationName
|
|
10756
10887
|
phone
|
|
10757
10888
|
email
|
|
10889
|
+
region
|
|
10758
10890
|
createdAt
|
|
10759
10891
|
updatedAt
|
|
10760
10892
|
fullAddress
|
|
@@ -10861,6 +10993,7 @@ exports.CompanyDocument = (0, client_1.gql) `
|
|
|
10861
10993
|
locationName
|
|
10862
10994
|
phone
|
|
10863
10995
|
email
|
|
10996
|
+
region
|
|
10864
10997
|
createdAt
|
|
10865
10998
|
updatedAt
|
|
10866
10999
|
fullAddress
|
|
@@ -11478,6 +11611,7 @@ exports.CompanyDocument = (0, client_1.gql) `
|
|
|
11478
11611
|
locationName
|
|
11479
11612
|
phone
|
|
11480
11613
|
email
|
|
11614
|
+
region
|
|
11481
11615
|
createdAt
|
|
11482
11616
|
updatedAt
|
|
11483
11617
|
fullAddress
|
|
@@ -13313,6 +13447,7 @@ exports.RecentHistoryDocument = (0, client_1.gql) `
|
|
|
13313
13447
|
locationName
|
|
13314
13448
|
phone
|
|
13315
13449
|
email
|
|
13450
|
+
region
|
|
13316
13451
|
createdAt
|
|
13317
13452
|
updatedAt
|
|
13318
13453
|
fullAddress
|
|
@@ -13795,6 +13930,7 @@ exports.RecentHistoryDocument = (0, client_1.gql) `
|
|
|
13795
13930
|
locationName
|
|
13796
13931
|
phone
|
|
13797
13932
|
email
|
|
13933
|
+
region
|
|
13798
13934
|
createdAt
|
|
13799
13935
|
updatedAt
|
|
13800
13936
|
fullAddress
|
package/dist/mutations.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ 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 SEND_TEST_EMAIL_COMBINED: import("@apollo/client").DocumentNode;
|
|
13
|
+
export declare const ADD_CONTACTS_TO_COMBINED_CAMPAIGN: import("@apollo/client").DocumentNode;
|
|
12
14
|
export declare const REMOVE_CONTACTS_FROM_COMBINED_CAMPAIGN: import("@apollo/client").DocumentNode;
|
|
13
15
|
export declare const SIGNUP: import("@apollo/client").DocumentNode;
|
|
14
16
|
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.
|
|
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.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_TEST_EMAIL_COMBINED = 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 = exports.COMPLETE_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,84 @@ mutation SendManualEmail($bcc: [String], $body: String!, $cc: [String], $logId:
|
|
|
1183
1183
|
message
|
|
1184
1184
|
}
|
|
1185
1185
|
}`;
|
|
1186
|
+
exports.SEND_TEST_EMAIL_COMBINED = (0, client_1.gql) `
|
|
1187
|
+
mutation SendTestEmailCombined($campaignId: ID!, $emailAddress: String!) {
|
|
1188
|
+
sendTestEmailCombined(campaignId: $campaignId, emailAddress: $emailAddress) {
|
|
1189
|
+
success
|
|
1190
|
+
message
|
|
1191
|
+
}
|
|
1192
|
+
}`;
|
|
1193
|
+
exports.ADD_CONTACTS_TO_COMBINED_CAMPAIGN = (0, client_1.gql) `
|
|
1194
|
+
mutation AddContactsToCombinedCampaign($campaignId: ID!, $contacts: [CustomContactInput]!) {
|
|
1195
|
+
addContactsToCombinedCampaign(campaignId: $campaignId, contacts: $contacts) {
|
|
1196
|
+
campaign {
|
|
1197
|
+
id
|
|
1198
|
+
uuid
|
|
1199
|
+
name
|
|
1200
|
+
description
|
|
1201
|
+
status
|
|
1202
|
+
scheduledFor
|
|
1203
|
+
startedAt
|
|
1204
|
+
completedAt
|
|
1205
|
+
cancelledAt
|
|
1206
|
+
pausedAt
|
|
1207
|
+
settings
|
|
1208
|
+
steps {
|
|
1209
|
+
id
|
|
1210
|
+
uuid
|
|
1211
|
+
order
|
|
1212
|
+
stepType
|
|
1213
|
+
status
|
|
1214
|
+
subject
|
|
1215
|
+
template
|
|
1216
|
+
taskTitle
|
|
1217
|
+
taskDescription
|
|
1218
|
+
taskCategory
|
|
1219
|
+
taskPriority
|
|
1220
|
+
delay
|
|
1221
|
+
delayUnit
|
|
1222
|
+
condition
|
|
1223
|
+
useBusinessDays
|
|
1224
|
+
settings
|
|
1225
|
+
createdAt
|
|
1226
|
+
updatedAt
|
|
1227
|
+
}
|
|
1228
|
+
segments {
|
|
1229
|
+
id
|
|
1230
|
+
name
|
|
1231
|
+
description
|
|
1232
|
+
state
|
|
1233
|
+
industry
|
|
1234
|
+
metalType
|
|
1235
|
+
productCategory
|
|
1236
|
+
segmentType
|
|
1237
|
+
createdAt
|
|
1238
|
+
updatedAt
|
|
1239
|
+
isSystemTemplate
|
|
1240
|
+
totalContacts
|
|
1241
|
+
status
|
|
1242
|
+
}
|
|
1243
|
+
totalContacts
|
|
1244
|
+
completedContacts
|
|
1245
|
+
stepStats {
|
|
1246
|
+
stepId
|
|
1247
|
+
stepOrder
|
|
1248
|
+
stepType
|
|
1249
|
+
completed
|
|
1250
|
+
skipped
|
|
1251
|
+
total
|
|
1252
|
+
completionRate
|
|
1253
|
+
}
|
|
1254
|
+
lastActivity
|
|
1255
|
+
stepsPreview
|
|
1256
|
+
createdAt
|
|
1257
|
+
updatedAt
|
|
1258
|
+
}
|
|
1259
|
+
success
|
|
1260
|
+
message
|
|
1261
|
+
addedCount
|
|
1262
|
+
}
|
|
1263
|
+
}`;
|
|
1186
1264
|
exports.REMOVE_CONTACTS_FROM_COMBINED_CAMPAIGN = (0, client_1.gql) `
|
|
1187
1265
|
mutation RemoveContactsFromCombinedCampaign($campaignId: ID!, $contactIds: [ID], $customContactIds: [ID]) {
|
|
1188
1266
|
removeContactsFromCombinedCampaign(campaignId: $campaignId, contactIds: $contactIds, customContactIds: $customContactIds) {
|
|
@@ -1653,6 +1731,7 @@ mutation CreateCompany($input: CompanyInput) {
|
|
|
1653
1731
|
locationName
|
|
1654
1732
|
phone
|
|
1655
1733
|
email
|
|
1734
|
+
region
|
|
1656
1735
|
createdAt
|
|
1657
1736
|
updatedAt
|
|
1658
1737
|
fullAddress
|
|
@@ -2270,6 +2349,7 @@ mutation CreateCompany($input: CompanyInput) {
|
|
|
2270
2349
|
locationName
|
|
2271
2350
|
phone
|
|
2272
2351
|
email
|
|
2352
|
+
region
|
|
2273
2353
|
createdAt
|
|
2274
2354
|
updatedAt
|
|
2275
2355
|
fullAddress
|
|
@@ -2337,6 +2417,7 @@ mutation UpdateCompany($input: CompanyInput) {
|
|
|
2337
2417
|
locationName
|
|
2338
2418
|
phone
|
|
2339
2419
|
email
|
|
2420
|
+
region
|
|
2340
2421
|
createdAt
|
|
2341
2422
|
updatedAt
|
|
2342
2423
|
fullAddress
|
|
@@ -2954,6 +3035,7 @@ mutation UpdateCompany($input: CompanyInput) {
|
|
|
2954
3035
|
locationName
|
|
2955
3036
|
phone
|
|
2956
3037
|
email
|
|
3038
|
+
region
|
|
2957
3039
|
createdAt
|
|
2958
3040
|
updatedAt
|
|
2959
3041
|
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>>;
|
|
@@ -68,6 +69,7 @@ export declare class CloudForgeSDK {
|
|
|
68
69
|
sendEmailToContact(contactId: string, subject: string, template: string, campaignId?: string, segmentId?: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
69
70
|
sendManualEmail(body: string, logId: string, subject: string, to: string, bcc?: string[], cc?: string[]): Promise<import("@apollo/client").FetchResult<any>>;
|
|
70
71
|
sendTestEmail(campaignId: string, emailAddress: string, subject: string, template: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
72
|
+
sendTestEmailCombined(campaignId: string, emailAddress: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
71
73
|
signup(input: SignupInput): Promise<import("@apollo/client").FetchResult<any>>;
|
|
72
74
|
startCampaign(id: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
73
75
|
startCombinedCampaign(id: 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,
|
|
@@ -390,6 +396,12 @@ class CloudForgeSDK {
|
|
|
390
396
|
variables: { campaignId, emailAddress, subject, template }
|
|
391
397
|
});
|
|
392
398
|
}
|
|
399
|
+
async sendTestEmailCombined(campaignId, emailAddress) {
|
|
400
|
+
return this.apolloClient.mutate({
|
|
401
|
+
mutation: mutations_1.SEND_TEST_EMAIL_COMBINED,
|
|
402
|
+
variables: { campaignId, emailAddress }
|
|
403
|
+
});
|
|
404
|
+
}
|
|
393
405
|
async signup(input) {
|
|
394
406
|
return this.apolloClient.mutate({
|
|
395
407
|
mutation: mutations_1.SIGNUP,
|