cf-service-sdk 0.1.34 → 0.1.36
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 +59 -0
- package/dist/generated/graphql.js +38 -4
- package/dist/mutations.d.ts +1 -0
- package/dist/mutations.js +11 -2
- package/dist/queries.js +2 -0
- package/dist/sdk.d.ts +2 -1
- package/dist/sdk.js +6 -0
- package/package.json +1 -1
|
@@ -739,6 +739,8 @@ export type CampaignContactItemType = {
|
|
|
739
739
|
isCustomer?: Maybe<Scalars['Boolean']['output']>;
|
|
740
740
|
/** Whether the contact is a prospect */
|
|
741
741
|
isProspect?: Maybe<Scalars['Boolean']['output']>;
|
|
742
|
+
/** Whether this contact has been removed from the campaign */
|
|
743
|
+
isRemoved?: Maybe<Scalars['Boolean']['output']>;
|
|
742
744
|
/** When the contact was last contacted */
|
|
743
745
|
lastContactedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
744
746
|
/** User who last contacted this contact */
|
|
@@ -2890,6 +2892,7 @@ export type Mutation = {
|
|
|
2890
2892
|
resumeCombinedCampaign?: Maybe<ResumeCombinedCampaign>;
|
|
2891
2893
|
/** Create or update the automated prospecting config for a user/account, running LLM parsing. */
|
|
2892
2894
|
saveAutomatedProspectingConfig?: Maybe<SaveAutomatedProspectingConfig>;
|
|
2895
|
+
saveContactsToCrm?: Maybe<SaveContactsToCrm>;
|
|
2893
2896
|
/** SaveNylasConnection - Save Nylas connection details after OAuth flow */
|
|
2894
2897
|
saveNylasConnection?: Maybe<SaveNylasConnection>;
|
|
2895
2898
|
scheduleCampaign?: Maybe<ScheduleCampaign>;
|
|
@@ -3367,6 +3370,10 @@ export type MutationSaveAutomatedProspectingConfigArgs = {
|
|
|
3367
3370
|
input: AutomatedProspectingCampaignInput;
|
|
3368
3371
|
};
|
|
3369
3372
|
/** Mutations */
|
|
3373
|
+
export type MutationSaveContactsToCrmArgs = {
|
|
3374
|
+
input: SaveContactsToCrmInput;
|
|
3375
|
+
};
|
|
3376
|
+
/** Mutations */
|
|
3370
3377
|
export type MutationSaveNylasConnectionArgs = {
|
|
3371
3378
|
input: SaveNylasConnectionInput;
|
|
3372
3379
|
};
|
|
@@ -5041,6 +5048,18 @@ export type SaveAutomatedProspectingConfig = {
|
|
|
5041
5048
|
message?: Maybe<Scalars['String']['output']>;
|
|
5042
5049
|
success?: Maybe<Scalars['Boolean']['output']>;
|
|
5043
5050
|
};
|
|
5051
|
+
export type SaveContactsToCrm = {
|
|
5052
|
+
__typename?: 'SaveContactsToCrm';
|
|
5053
|
+
error?: Maybe<Scalars['String']['output']>;
|
|
5054
|
+
savedCompanyIds?: Maybe<Array<Maybe<Scalars['ID']['output']>>>;
|
|
5055
|
+
success?: Maybe<Scalars['Boolean']['output']>;
|
|
5056
|
+
warnings?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
5057
|
+
};
|
|
5058
|
+
/** Input type for saving contacts to CRM without adding them to any segment. */
|
|
5059
|
+
export type SaveContactsToCrmInput = {
|
|
5060
|
+
/** List of contact IDs whose companies should land in the CRM 'Not Contacted' column. */
|
|
5061
|
+
contactIds: Array<InputMaybe<Scalars['ID']['input']>>;
|
|
5062
|
+
};
|
|
5044
5063
|
/** SaveNylasConnection - Save Nylas connection details after OAuth flow */
|
|
5045
5064
|
export type SaveNylasConnection = {
|
|
5046
5065
|
__typename?: 'SaveNylasConnection';
|
|
@@ -11692,6 +11711,19 @@ export type SaveAutomatedProspectingConfigMutation = {
|
|
|
11692
11711
|
} | null;
|
|
11693
11712
|
} | null;
|
|
11694
11713
|
};
|
|
11714
|
+
export type SaveContactsToCrmMutationVariables = Exact<{
|
|
11715
|
+
input: SaveContactsToCrmInput;
|
|
11716
|
+
}>;
|
|
11717
|
+
export type SaveContactsToCrmMutation = {
|
|
11718
|
+
__typename?: 'Mutation';
|
|
11719
|
+
saveContactsToCrm?: {
|
|
11720
|
+
__typename?: 'SaveContactsToCrm';
|
|
11721
|
+
success?: boolean | null;
|
|
11722
|
+
savedCompanyIds?: Array<string | null> | null;
|
|
11723
|
+
warnings?: Array<string | null> | null;
|
|
11724
|
+
error?: string | null;
|
|
11725
|
+
} | null;
|
|
11726
|
+
};
|
|
11695
11727
|
export type SaveNylasConnectionMutationVariables = Exact<{
|
|
11696
11728
|
input: SaveNylasConnectionInput;
|
|
11697
11729
|
}>;
|
|
@@ -18280,6 +18312,7 @@ export type CampaignContactsQuery = {
|
|
|
18280
18312
|
populatedSubject?: string | null;
|
|
18281
18313
|
populatedBody?: string | null;
|
|
18282
18314
|
replyCount?: number | null;
|
|
18315
|
+
isRemoved?: boolean | null;
|
|
18283
18316
|
lastContactedBy?: {
|
|
18284
18317
|
__typename?: 'UserType';
|
|
18285
18318
|
id?: string | null;
|
|
@@ -19177,6 +19210,7 @@ export type CombinedCampaignContactsQuery = {
|
|
|
19177
19210
|
populatedSubject?: string | null;
|
|
19178
19211
|
populatedBody?: string | null;
|
|
19179
19212
|
replyCount?: number | null;
|
|
19213
|
+
isRemoved?: boolean | null;
|
|
19180
19214
|
lastContactedBy?: {
|
|
19181
19215
|
__typename?: 'UserType';
|
|
19182
19216
|
id?: string | null;
|
|
@@ -32573,6 +32607,31 @@ export declare function useSaveAutomatedProspectingConfigMutation(baseOptions?:
|
|
|
32573
32607
|
export type SaveAutomatedProspectingConfigMutationHookResult = ReturnType<typeof useSaveAutomatedProspectingConfigMutation>;
|
|
32574
32608
|
export type SaveAutomatedProspectingConfigMutationResult = Apollo.MutationResult<SaveAutomatedProspectingConfigMutation>;
|
|
32575
32609
|
export type SaveAutomatedProspectingConfigMutationOptions = Apollo.BaseMutationOptions<SaveAutomatedProspectingConfigMutation, SaveAutomatedProspectingConfigMutationVariables>;
|
|
32610
|
+
export declare const SaveContactsToCrmDocument: Apollo.DocumentNode;
|
|
32611
|
+
export type SaveContactsToCrmMutationFn = Apollo.MutationFunction<SaveContactsToCrmMutation, SaveContactsToCrmMutationVariables>;
|
|
32612
|
+
/**
|
|
32613
|
+
* __useSaveContactsToCrmMutation__
|
|
32614
|
+
*
|
|
32615
|
+
* To run a mutation, you first call `useSaveContactsToCrmMutation` within a React component and pass it any options that fit your needs.
|
|
32616
|
+
* When your component renders, `useSaveContactsToCrmMutation` returns a tuple that includes:
|
|
32617
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
32618
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
32619
|
+
*
|
|
32620
|
+
* @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;
|
|
32621
|
+
*
|
|
32622
|
+
* @example
|
|
32623
|
+
* const [saveContactsToCrmMutation, { data, loading, error }] = useSaveContactsToCrmMutation({
|
|
32624
|
+
* variables: {
|
|
32625
|
+
* input: // value for 'input'
|
|
32626
|
+
* },
|
|
32627
|
+
* });
|
|
32628
|
+
*/
|
|
32629
|
+
export declare function useSaveContactsToCrmMutation(baseOptions?: Apollo.MutationHookOptions<SaveContactsToCrmMutation, SaveContactsToCrmMutationVariables>): Apollo.MutationTuple<SaveContactsToCrmMutation, Exact<{
|
|
32630
|
+
input: SaveContactsToCrmInput;
|
|
32631
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
32632
|
+
export type SaveContactsToCrmMutationHookResult = ReturnType<typeof useSaveContactsToCrmMutation>;
|
|
32633
|
+
export type SaveContactsToCrmMutationResult = Apollo.MutationResult<SaveContactsToCrmMutation>;
|
|
32634
|
+
export type SaveContactsToCrmMutationOptions = Apollo.BaseMutationOptions<SaveContactsToCrmMutation, SaveContactsToCrmMutationVariables>;
|
|
32576
32635
|
export declare const SaveNylasConnectionDocument: Apollo.DocumentNode;
|
|
32577
32636
|
export type SaveNylasConnectionMutationFn = Apollo.MutationFunction<SaveNylasConnectionMutation, SaveNylasConnectionMutationVariables>;
|
|
32578
32637
|
/**
|
|
@@ -35,10 +35,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.CreateRfqDocument = exports.CreateNotificationDocument = exports.CreateMysupplierDocument = exports.CreateEmailTemplateDocument = exports.CreateContactDocument = exports.CreateCompanyNoteDocument = exports.CreateCompanyDocument = exports.CreateCombinedCampaignTemplateDocument = exports.CreateCombinedCampaignDocument = exports.CreateCampaignDocument = exports.CreateCallScriptTemplateDocument = exports.CreateCallCampaignLogDocument = exports.CreateCallCampaignDocument = exports.ComposeAutomatedProspectingEmailDocument = exports.CompleteRfqDocument = exports.CompleteCampaignDocument = exports.ClearAllSavedSearchSpotsDocument = exports.ClearAllNotificationsDocument = exports.ChangePasswordDocument = exports.CancelInvitationDocument = exports.CancelCombinedCampaignDocument = exports.CancelCampaignDocument = exports.BulkAssignCompanyOwnersDocument = exports.AddSupplierToSupplierListDocument = exports.AddSupplierToMySuppliersDocument = exports.AddSegmentToCampaignDocument = exports.AddSegmentToCallCampaignDocument = exports.AddCustomContactToSupplierListDocument = exports.AddContactsToSegmentsDocument = exports.AddContactsToSegmentDocument = exports.AddContactsToCombinedCampaignDocument = exports.AddContactsToCampaignDocument = exports.AddContactToSupplierListDocument = exports.AddContactToAutomatedProspectingDocument = exports.AcceptInvitationDocument = exports.UserBusinessProfileStateChoices = exports.UserAccountInvitationStatusChoices = exports.SortDirection = exports.SaasSubscriptionStatusChoices = exports.SaasPlanPlanTypeChoices = exports.RecentHistorySortField = exports.NotificationTypeEnum = exports.MailLogTypeEnum = exports.DateRangeEnum = exports.ContactSortField = exports.CompanySortField = exports.CompanyNoteSortField = exports.CampaignEmailTemplateCampaignTypeChoices = exports.CallCampaignLogOutcomeEnum = exports.AppSalesGoalTypeChoices = void 0;
|
|
37
37
|
exports.RemoveMemberDocument = exports.RemoveCustomContactFromSupplierListDocument = exports.RemoveContactsFromSegmentDocument = exports.RemoveContactsFromCombinedCampaignDocument = exports.RemoveContactsFromCampaignDocument = exports.RemoveContactFromSupplierListDocument = exports.RemoveContactFromMySupplierDocument = exports.RemoveContactFromAutomatedProspectingDocument = exports.RejectInvitationDocument = exports.ReduceSpamDocument = exports.PreviewCampaignEmailDocument = exports.PauseCombinedCampaignDocument = exports.PauseCampaignDocument = exports.MarkNotificationAsReadDocument = exports.MarkAllNotificationsAsReadDocument = exports.LoginWithMicrosoftDocument = exports.LoginWithGoogleDocument = exports.LoginDocument = exports.LaunchAutomatedProspectingDocument = exports.InviteUserDocument = exports.HideRecordDocument = exports.GenerateNewEmailDocument = exports.GenerateCallCampaignScriptDocument = exports.ForgotPasswordDocument = exports.EmailToneDocument = exports.DisconnectNylasIntegrationDocument = exports.DeleteTaskDocument = exports.DeleteSupplierlistDocument = exports.DeleteSegmentDocument = exports.DeleteSavedSearchSpotDocument = exports.DeleteSalesGoalDocument = exports.DeleteRfqlineitemDocument = exports.DeleteRfqDocument = exports.DeleteNotificationDocument = exports.DeleteMysupplierDocument = exports.DeleteEmailTemplateDocument = exports.DeleteContactDocument = exports.DeleteCompanyNoteDocument = exports.DeleteCompanyDocument = exports.DeleteCombinedCampaignTemplateDocument = exports.DeleteCombinedCampaignDocument = exports.DeleteCampaignDocument = exports.DeleteCallScriptTemplateDocument = exports.DeleteCallCampaignDocument = exports.CreateTaskDocument = exports.CreateSupplierlistDocument = exports.CreateSegmentDocument = exports.CreateSavedSearchSpotDocument = exports.CreateSalesGoalDocument = exports.CreateRfqlineitemDocument = void 0;
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.UserProfileDocument = exports.UsStatesDocument = exports.UnreadNotificationsCountDocument = exports.TasksDocument = void 0;
|
|
38
|
+
exports.UpdateSalesGoalDocument = exports.UpdateRfqlineitemDocument = exports.UpdateRfqDocument = exports.UpdateMysupplierDocument = exports.UpdateEmailTemplateDocument = exports.UpdateEmailScheduleDocument = exports.UpdateEmailReportSettingsDocument = exports.UpdateContactDocument = exports.UpdateCompanyProfileDocument = exports.UpdateCompanyNoteDocument = exports.UpdateCompanyExternalIdentifierDocument = exports.UpdateCompanyDocument = exports.UpdateCombinedCampaignTemplateDocument = exports.UpdateCombinedCampaignLogsDocument = exports.UpdateCombinedCampaignLogDocument = exports.UpdateCombinedCampaignDocument = exports.UpdateCampaignDocument = exports.UpdateCallScriptTemplateDocument = exports.UpdateCallCampaignLogDocument = exports.UpdateCallCampaignDocument = exports.UpdateAutomatedProspectingIndustriesDocument = exports.UpdateAutomatedProspectingCampaignDocument = exports.UnsubscribeFromEmailsDocument = exports.UnskipAutomatedProspectingDocument = exports.UnhideRecordDocument = exports.SubmitFeedbackDocument = exports.StartCombinedCampaignDocument = exports.StartCampaignDocument = exports.SkipAutomatedProspectingDocument = exports.SignupDocument = exports.SetLeadNotInterestedDocument = exports.SendTestEmailReportDocument = exports.SendTestEmailCombinedDocument = exports.SendTestEmailDocument = exports.SendRfqTestEmailDocument = exports.SendRfqDocument = exports.SendManualEmailDocument = exports.SendEmailToEmailThreadDocument = exports.SendEmailToContactDocument = exports.ScheduleRfqDocument = exports.ScheduleCombinedCampaignDocument = exports.ScheduleCampaignDocument = exports.SaveNylasConnectionDocument = exports.SaveContactsToCrmDocument = exports.SaveAutomatedProspectingConfigDocument = exports.ResumeCombinedCampaignDocument = exports.RequestProAccessDocument = exports.RemoveSupplierFromSupplierListDocument = exports.RemoveSegmentFromCampaignDocument = exports.RemoveSegmentFromCallCampaignDocument = void 0;
|
|
39
|
+
exports.CurrentAccountDocument = exports.CrmFunnelReportDocument = exports.ContactsInSegmentDocument = exports.ContactsDocument = exports.ContactDocument = exports.CompanySearchDocument = exports.CompanyNotesDocument = exports.CompanyNoteDocument = exports.CompanyMetadataDocument = exports.CompanyExternalIdentifierDocument = exports.CompanyAudiencesAndCampaignsDocument = exports.CompanyDocument = exports.CompaniesDocument = exports.CombinedCampaignsDocument = exports.CombinedCampaignTemplatesDocument = exports.CombinedCampaignTemplateDocument = exports.CombinedCampaignStepsDocument = exports.CombinedCampaignLogsDocument = exports.CombinedCampaignContactsDocument = exports.CombinedCampaignDocument = exports.CampaignsDocument = exports.CampaignStatsDocument = exports.CampaignLogsDocument = exports.CampaignContactsDocument = exports.CampaignAnalyticsDocument = exports.CampaignDocument = exports.CallScriptTemplatesDocument = exports.CallScriptTemplateDocument = exports.CallCampaignsDocument = exports.CallCampaignScriptPreviewDocument = exports.CallCampaignReportDocument = exports.CallCampaignLogsDocument = exports.CallCampaignLogDocument = exports.CallCampaignAnalyticsDocument = exports.CallCampaignDocument = exports.BusinessProfileDocument = exports.AutomatedProspectingStatsDocument = exports.AutomatedProspectingConfigDocument = exports.AutomatedProspectingCampaignsDocument = exports.AutomatedProspectingCampaignDocument = exports.AccountSubscriptionDocument = exports.AccountProfileDocument = exports.AccountMembersDocument = exports.AccountFeatureFlagsDocument = exports.ValidateOtpAndResetPasswordDocument = exports.UploadFileDocument = exports.UpdateUserProfileDocument = exports.UpdateTaskDocument = exports.UpdateSupplierlistDocument = exports.UpdateSegmentDocument = void 0;
|
|
40
|
+
exports.SuppliersDocument = exports.SupplierlistListDocument = exports.SupplierlistDocument = exports.SupplierListCustomContactsDocument = exports.SupplierListContactsDocument = exports.SupplierDocument = exports.SuggestedCompanyFiltersDocument = exports.StatesOptionsDocument = exports.SegmentsDocument = exports.SegmentDocument = exports.SearchContactsDocument = exports.SavedSearchSpotsDocument = exports.SalesGoalsDocument = exports.SalesGoalReportDocument = exports.SalesGoalDocument = exports.RfqlineitemListDocument = exports.RfqlineitemDocument = exports.RfqSuppliersDocument = exports.RfqListDocument = exports.RfqDocument = exports.RecentNotificationsDocument = exports.RecentHistoryDocument = exports.ProductTypesDocument = exports.ProductCategoriesDocument = exports.PendingInvitationsDocument = exports.NylasConnectionDocument = exports.NotificationsDocument = exports.NotificationDocument = exports.MysupplierListDocument = exports.MysupplierDocument = exports.MyInvitationsDocument = exports.MetalTypesDocument = exports.MetalGradesDocument = exports.MailLogsDocument = exports.MailLogDocument = exports.IndustryTypesDocument = exports.IndustrySectorsDocument = exports.GoogleReverseGeocodeDocument = exports.GooglePlacesAutocompleteDocument = exports.GooglePlaceDetailsDocument = exports.EmployeeSizesDocument = exports.EmailThreadsByCompanyDocument = exports.EmailThreadDocument = exports.EmailTemplatesDocument = exports.EmailTemplateDocument = exports.EmailCampaignReportStatsDocument = exports.EmailCampaignReportOverviewDocument = exports.EmailCampaignReportByCampaignDocument = exports.DashboardStatsDocument = exports.CurrentPipelineTotalDocument = void 0;
|
|
41
|
+
exports.UserProfileDocument = exports.UsStatesDocument = exports.UnreadNotificationsCountDocument = exports.TasksDocument = exports.TaskDocument = void 0;
|
|
42
42
|
exports.useAcceptInvitationMutation = useAcceptInvitationMutation;
|
|
43
43
|
exports.useAddContactToAutomatedProspectingMutation = useAddContactToAutomatedProspectingMutation;
|
|
44
44
|
exports.useAddContactToSupplierListMutation = useAddContactToSupplierListMutation;
|
|
@@ -130,6 +130,7 @@ exports.useRemoveSupplierFromSupplierListMutation = useRemoveSupplierFromSupplie
|
|
|
130
130
|
exports.useRequestProAccessMutation = useRequestProAccessMutation;
|
|
131
131
|
exports.useResumeCombinedCampaignMutation = useResumeCombinedCampaignMutation;
|
|
132
132
|
exports.useSaveAutomatedProspectingConfigMutation = useSaveAutomatedProspectingConfigMutation;
|
|
133
|
+
exports.useSaveContactsToCrmMutation = useSaveContactsToCrmMutation;
|
|
133
134
|
exports.useSaveNylasConnectionMutation = useSaveNylasConnectionMutation;
|
|
134
135
|
exports.useScheduleCampaignMutation = useScheduleCampaignMutation;
|
|
135
136
|
exports.useScheduleCombinedCampaignMutation = useScheduleCombinedCampaignMutation;
|
|
@@ -7817,6 +7818,37 @@ function useSaveAutomatedProspectingConfigMutation(baseOptions) {
|
|
|
7817
7818
|
const options = { ...defaultOptions, ...baseOptions };
|
|
7818
7819
|
return Apollo.useMutation(exports.SaveAutomatedProspectingConfigDocument, options);
|
|
7819
7820
|
}
|
|
7821
|
+
exports.SaveContactsToCrmDocument = (0, client_1.gql) `
|
|
7822
|
+
mutation SaveContactsToCrm($input: SaveContactsToCrmInput!) {
|
|
7823
|
+
saveContactsToCrm(input: $input) {
|
|
7824
|
+
success
|
|
7825
|
+
savedCompanyIds
|
|
7826
|
+
warnings
|
|
7827
|
+
error
|
|
7828
|
+
}
|
|
7829
|
+
}
|
|
7830
|
+
`;
|
|
7831
|
+
/**
|
|
7832
|
+
* __useSaveContactsToCrmMutation__
|
|
7833
|
+
*
|
|
7834
|
+
* To run a mutation, you first call `useSaveContactsToCrmMutation` within a React component and pass it any options that fit your needs.
|
|
7835
|
+
* When your component renders, `useSaveContactsToCrmMutation` returns a tuple that includes:
|
|
7836
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
7837
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
7838
|
+
*
|
|
7839
|
+
* @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;
|
|
7840
|
+
*
|
|
7841
|
+
* @example
|
|
7842
|
+
* const [saveContactsToCrmMutation, { data, loading, error }] = useSaveContactsToCrmMutation({
|
|
7843
|
+
* variables: {
|
|
7844
|
+
* input: // value for 'input'
|
|
7845
|
+
* },
|
|
7846
|
+
* });
|
|
7847
|
+
*/
|
|
7848
|
+
function useSaveContactsToCrmMutation(baseOptions) {
|
|
7849
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
7850
|
+
return Apollo.useMutation(exports.SaveContactsToCrmDocument, options);
|
|
7851
|
+
}
|
|
7820
7852
|
exports.SaveNylasConnectionDocument = (0, client_1.gql) `
|
|
7821
7853
|
mutation SaveNylasConnection($input: SaveNylasConnectionInput!) {
|
|
7822
7854
|
saveNylasConnection(input: $input) {
|
|
@@ -15726,6 +15758,7 @@ exports.CampaignContactsDocument = (0, client_1.gql) `
|
|
|
15726
15758
|
populatedSubject
|
|
15727
15759
|
populatedBody
|
|
15728
15760
|
replyCount
|
|
15761
|
+
isRemoved
|
|
15729
15762
|
}
|
|
15730
15763
|
pagination {
|
|
15731
15764
|
currentPage
|
|
@@ -16694,6 +16727,7 @@ exports.CombinedCampaignContactsDocument = (0, client_1.gql) `
|
|
|
16694
16727
|
populatedSubject
|
|
16695
16728
|
populatedBody
|
|
16696
16729
|
replyCount
|
|
16730
|
+
isRemoved
|
|
16697
16731
|
}
|
|
16698
16732
|
pagination {
|
|
16699
16733
|
currentPage
|
package/dist/mutations.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export declare const HIDE_RECORD: import("@apollo/client").DocumentNode;
|
|
|
53
53
|
export declare const UNHIDE_RECORD: import("@apollo/client").DocumentNode;
|
|
54
54
|
export declare const BULK_ASSIGN_COMPANY_OWNERS: import("@apollo/client").DocumentNode;
|
|
55
55
|
export declare const SET_LEAD_NOT_INTERESTED: import("@apollo/client").DocumentNode;
|
|
56
|
+
export declare const SAVE_CONTACTS_TO_CRM: import("@apollo/client").DocumentNode;
|
|
56
57
|
export declare const UPDATE_COMPANY_EXTERNAL_IDENTIFIER: import("@apollo/client").DocumentNode;
|
|
57
58
|
export declare const SIGNUP: import("@apollo/client").DocumentNode;
|
|
58
59
|
export declare const FORGOT_PASSWORD: import("@apollo/client").DocumentNode;
|
package/dist/mutations.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UPDATE_COMPANY_NOTE = exports.CREATE_COMPANY_NOTE = exports.DELETE_COMPANY = exports.UPDATE_COMPANY = exports.CREATE_COMPANY = exports.DELETE_CONTACT = exports.UPDATE_CONTACT = exports.CREATE_CONTACT = exports.DELETE_COMBINED_CAMPAIGN_TEMPLATE = exports.UPDATE_COMBINED_CAMPAIGN_TEMPLATE = exports.CREATE_COMBINED_CAMPAIGN_TEMPLATE = 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 = exports.SEND_EMAIL_TO_EMAIL_THREAD = exports.COMPLETE_RFQ = exports.SCHEDULE_RFQ = exports.SEND_RFQ = exports.REMOVE_CONTACT_FROM_MY_SUPPLIER = exports.ADD_SUPPLIER_TO_MY_SUPPLIERS = exports.SEND_RFQ_TEST_EMAIL = exports.REMOVE_SUPPLIER_FROM_SUPPLIER_LIST = exports.ADD_SUPPLIER_TO_SUPPLIER_LIST = exports.REMOVE_CUSTOM_CONTACT_FROM_SUPPLIER_LIST = exports.ADD_CUSTOM_CONTACT_TO_SUPPLIER_LIST = exports.REMOVE_CONTACT_FROM_SUPPLIER_LIST = exports.ADD_CONTACT_TO_SUPPLIER_LIST = exports.UPDATE_RFQLINEITEM = exports.DELETE_RFQLINEITEM = exports.CREATE_RFQLINEITEM = exports.UPDATE_SUPPLIERLIST = exports.DELETE_SUPPLIERLIST = exports.CREATE_SUPPLIERLIST = exports.UPDATE_RFQ = exports.DELETE_RFQ = exports.CREATE_RFQ = exports.UPDATE_MYSUPPLIER = exports.DELETE_MYSUPPLIER = exports.CREATE_MYSUPPLIER = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.UPDATE_AUTOMATED_PROSPECTING_INDUSTRIES = exports.UNSKIP_AUTOMATED_PROSPECTING = exports.UPDATE_AUTOMATED_PROSPECTING_CAMPAIGN = exports.REMOVE_CONTACT_FROM_AUTOMATED_PROSPECTING = exports.ADD_CONTACT_TO_AUTOMATED_PROSPECTING = exports.SKIP_AUTOMATED_PROSPECTING = exports.LAUNCH_AUTOMATED_PROSPECTING = exports.COMPOSE_AUTOMATED_PROSPECTING_EMAIL = exports.SAVE_AUTOMATED_PROSPECTING_CONFIG = exports.CLEAR_ALL_SAVED_SEARCH_SPOTS = exports.DELETE_SAVED_SEARCH_SPOT = exports.CREATE_SAVED_SEARCH_SPOT = exports.DELETE_CALL_SCRIPT_TEMPLATE = exports.UPDATE_CALL_SCRIPT_TEMPLATE = exports.CREATE_CALL_SCRIPT_TEMPLATE = exports.GENERATE_CALL_CAMPAIGN_SCRIPT = 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_SALES_GOAL = exports.UPDATE_SALES_GOAL = exports.CREATE_SALES_GOAL = 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.GENERATE_NEW_EMAIL = exports.REDUCE_SPAM = exports.EMAIL_TONE = exports.DELETE_EMAIL_TEMPLATE = void 0;
|
|
4
|
+
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 = 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_SEGMENTS = exports.ADD_CONTACTS_TO_SEGMENT = exports.DELETE_SEGMENT = exports.UPDATE_SEGMENT = exports.CREATE_SEGMENT = exports.SEND_TEST_EMAIL_REPORT = exports.UPDATE_EMAIL_SCHEDULE = exports.UPDATE_EMAIL_REPORT_SETTINGS = exports.UPDATE_COMPANY_PROFILE = exports.REQUEST_PRO_ACCESS = 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.UPDATE_COMPANY_EXTERNAL_IDENTIFIER = exports.SAVE_CONTACTS_TO_CRM = exports.SET_LEAD_NOT_INTERESTED = exports.BULK_ASSIGN_COMPANY_OWNERS = exports.UNHIDE_RECORD = exports.HIDE_RECORD = exports.DELETE_COMPANY_NOTE = void 0;
|
|
5
|
+
exports.UPDATE_AUTOMATED_PROSPECTING_INDUSTRIES = exports.UNSKIP_AUTOMATED_PROSPECTING = exports.UPDATE_AUTOMATED_PROSPECTING_CAMPAIGN = exports.REMOVE_CONTACT_FROM_AUTOMATED_PROSPECTING = exports.ADD_CONTACT_TO_AUTOMATED_PROSPECTING = exports.SKIP_AUTOMATED_PROSPECTING = exports.LAUNCH_AUTOMATED_PROSPECTING = exports.COMPOSE_AUTOMATED_PROSPECTING_EMAIL = exports.SAVE_AUTOMATED_PROSPECTING_CONFIG = exports.CLEAR_ALL_SAVED_SEARCH_SPOTS = exports.DELETE_SAVED_SEARCH_SPOT = exports.CREATE_SAVED_SEARCH_SPOT = exports.DELETE_CALL_SCRIPT_TEMPLATE = exports.UPDATE_CALL_SCRIPT_TEMPLATE = exports.CREATE_CALL_SCRIPT_TEMPLATE = exports.GENERATE_CALL_CAMPAIGN_SCRIPT = 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_SALES_GOAL = exports.UPDATE_SALES_GOAL = exports.CREATE_SALES_GOAL = 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.GENERATE_NEW_EMAIL = exports.REDUCE_SPAM = exports.EMAIL_TONE = exports.DELETE_EMAIL_TEMPLATE = exports.UPDATE_EMAIL_TEMPLATE = void 0;
|
|
6
6
|
const client_1 = require("@apollo/client");
|
|
7
7
|
exports.CREATE_MYSUPPLIER = (0, client_1.gql) `
|
|
8
8
|
mutation CreateMysupplier($input: MySupplierInput!) {
|
|
@@ -6879,6 +6879,15 @@ mutation SetLeadNotInterested($input: SetLeadAsNotInterestedInput) {
|
|
|
6879
6879
|
error
|
|
6880
6880
|
}
|
|
6881
6881
|
}`;
|
|
6882
|
+
exports.SAVE_CONTACTS_TO_CRM = (0, client_1.gql) `
|
|
6883
|
+
mutation SaveContactsToCrm($input: SaveContactsToCrmInput!) {
|
|
6884
|
+
saveContactsToCrm(input: $input) {
|
|
6885
|
+
success
|
|
6886
|
+
savedCompanyIds
|
|
6887
|
+
warnings
|
|
6888
|
+
error
|
|
6889
|
+
}
|
|
6890
|
+
}`;
|
|
6882
6891
|
exports.UPDATE_COMPANY_EXTERNAL_IDENTIFIER = (0, client_1.gql) `
|
|
6883
6892
|
mutation UpdateCompanyExternalIdentifier($input: UpdateCompanyExternalIdentifierInput) {
|
|
6884
6893
|
updateCompanyExternalIdentifier(input: $input) {
|
package/dist/queries.js
CHANGED
|
@@ -5649,6 +5649,7 @@ query CombinedCampaignContacts($campaignUuid: ID!, $activityType: String, $page:
|
|
|
5649
5649
|
populatedSubject
|
|
5650
5650
|
populatedBody
|
|
5651
5651
|
replyCount
|
|
5652
|
+
isRemoved
|
|
5652
5653
|
}
|
|
5653
5654
|
pagination {
|
|
5654
5655
|
currentPage
|
|
@@ -8728,6 +8729,7 @@ query CampaignContacts($campaignUuid: ID!, $page: Int, $pageSize: Int) {
|
|
|
8728
8729
|
populatedSubject
|
|
8729
8730
|
populatedBody
|
|
8730
8731
|
replyCount
|
|
8732
|
+
isRemoved
|
|
8731
8733
|
}
|
|
8732
8734
|
pagination {
|
|
8733
8735
|
currentPage
|
package/dist/sdk.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CloudForgeClientOptions } from "./client";
|
|
2
|
-
import { AddContactToSupplierListInput, AddCustomContactToSupplierInput, AddSupplierToMySuppliersInput, AddSupplierToSupplierListInput, AutomatedProspectingCampaignInput, BulkAssignOwnersInput, CallReportFilterInput, CallScriptTemplateInput, CombinedCampaignFilterInput, CombinedCampaignInput, CombinedCampaignStepInput, CombinedCampaignTemplateInput, CompanyFilterInput, CompanyNoteFilterInput, CompanyNoteInput, CompanyNoteSortInput, CompanyProfileInput, CompanySortInput, CompleteRfqInput, ContactFilterInput, ContactSortInput, CreateCallCampaignLogMutationVariables, CreateCallCampaignMutationVariables, CreateCampaignMutationVariables, CreateCompanyMutationVariables, CreateContactMutationVariables, CreateEmailTemplateMutationVariables, CreateNotificationMutationVariables, CreateSalesGoalInput, CreateSegmentMutationVariables, CreateTaskMutationVariables, CrmCurrentPipelineFilterInput, CrmFilterInput, CustomContactInput, EmailAttachmentInput, EmailCampaignReportFilterInput, EmailReportSettingsInput, EmailScheduleInput, EmailToneInput, FileUploadInput, GenerateCallCampaignScriptInput, HiddenRecordInput, InvitationResponseInput, InviteUserInput, MailLogFilterInput, MicrosoftUserInput, MySupplierInput, PaginationInput, Procurement_MySupplierFilterInput, Procurement_RfqFilterInput, Procurement_RfqLineItemFilterInput, Procurement_SupplierListFilterInput, RecentHistoryFilterInput, RecentHistorySortInput, ReduceSpamInput, RemoveContactFromMySupplierInput, RemoveContactFromSupplierListInput, RemoveCustomContactFromSupplierInput, RemoveSupplierFromSupplierListInput, RfqInput, RfqLineItemInput, SalesGoalFilterInput, SaveNylasConnectionMutationVariables, Scalars, ScheduleRfqInput, SegmentFilterInput, SemanticSearchConfigInput, SendRfqInput, SendRfqTestEmailInput, SetLeadAsNotInterestedInput, SignupInput, SubmitFeedbackMutationVariables, SupplierListInput, SupplierSearchFilterInput, SupplierSortInput, TaskFilterInput, UpdateCallCampaignLogMutationVariables, UpdateCallCampaignMutationVariables, UpdateCampaignMutationVariables, UpdateCombinedCampaignInput, UpdateCombinedCampaignLogInput, UpdateCompanyExternalIdentifierInput, UpdateCompanyMutationVariables, UpdateContactMutationVariables, UpdateEmailTemplateMutationVariables, UpdateSalesGoalInput, UpdateSegmentMutationVariables, UpdateTaskMutationVariables, UpdateUserProfileMutationVariables, UserTypeInput } from "./generated/graphql";
|
|
2
|
+
import { AddContactToSupplierListInput, AddCustomContactToSupplierInput, AddSupplierToMySuppliersInput, AddSupplierToSupplierListInput, AutomatedProspectingCampaignInput, BulkAssignOwnersInput, CallReportFilterInput, CallScriptTemplateInput, CombinedCampaignFilterInput, CombinedCampaignInput, CombinedCampaignStepInput, CombinedCampaignTemplateInput, CompanyFilterInput, CompanyNoteFilterInput, CompanyNoteInput, CompanyNoteSortInput, CompanyProfileInput, CompanySortInput, CompleteRfqInput, ContactFilterInput, ContactSortInput, CreateCallCampaignLogMutationVariables, CreateCallCampaignMutationVariables, CreateCampaignMutationVariables, CreateCompanyMutationVariables, CreateContactMutationVariables, CreateEmailTemplateMutationVariables, CreateNotificationMutationVariables, CreateSalesGoalInput, CreateSegmentMutationVariables, CreateTaskMutationVariables, CrmCurrentPipelineFilterInput, CrmFilterInput, CustomContactInput, EmailAttachmentInput, EmailCampaignReportFilterInput, EmailReportSettingsInput, EmailScheduleInput, EmailToneInput, FileUploadInput, GenerateCallCampaignScriptInput, HiddenRecordInput, InvitationResponseInput, InviteUserInput, MailLogFilterInput, MicrosoftUserInput, MySupplierInput, PaginationInput, Procurement_MySupplierFilterInput, Procurement_RfqFilterInput, Procurement_RfqLineItemFilterInput, Procurement_SupplierListFilterInput, RecentHistoryFilterInput, RecentHistorySortInput, ReduceSpamInput, RemoveContactFromMySupplierInput, RemoveContactFromSupplierListInput, RemoveCustomContactFromSupplierInput, RemoveSupplierFromSupplierListInput, RfqInput, RfqLineItemInput, SalesGoalFilterInput, SaveContactsToCrmInput, SaveNylasConnectionMutationVariables, Scalars, ScheduleRfqInput, SegmentFilterInput, SemanticSearchConfigInput, SendRfqInput, SendRfqTestEmailInput, SetLeadAsNotInterestedInput, SignupInput, SubmitFeedbackMutationVariables, SupplierListInput, SupplierSearchFilterInput, SupplierSortInput, TaskFilterInput, UpdateCallCampaignLogMutationVariables, UpdateCallCampaignMutationVariables, UpdateCampaignMutationVariables, UpdateCombinedCampaignInput, UpdateCombinedCampaignLogInput, UpdateCompanyExternalIdentifierInput, UpdateCompanyMutationVariables, UpdateContactMutationVariables, UpdateEmailTemplateMutationVariables, UpdateSalesGoalInput, UpdateSegmentMutationVariables, UpdateTaskMutationVariables, UpdateUserProfileMutationVariables, UserTypeInput } from "./generated/graphql";
|
|
3
3
|
export declare class CloudForgeSDK {
|
|
4
4
|
private client;
|
|
5
5
|
private apolloClient;
|
|
@@ -99,6 +99,7 @@ export declare class CloudForgeSDK {
|
|
|
99
99
|
requestProAccess(): Promise<import("@apollo/client").FetchResult<any>>;
|
|
100
100
|
resumeCombinedCampaign(id: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
101
101
|
saveAutomatedProspectingConfig(accountId: string, input: AutomatedProspectingCampaignInput): Promise<import("@apollo/client").FetchResult<any>>;
|
|
102
|
+
saveContactsToCrm(input: SaveContactsToCrmInput): Promise<import("@apollo/client").FetchResult<any>>;
|
|
102
103
|
saveNylasConnection(input: SaveNylasConnectionMutationVariables): Promise<import("@apollo/client").FetchResult<any>>;
|
|
103
104
|
scheduleCampaign(id: string, scheduledFor: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
104
105
|
scheduleCombinedCampaign(id: string, scheduledFor: string): Promise<import("@apollo/client").FetchResult<any>>;
|
package/dist/sdk.js
CHANGED
|
@@ -574,6 +574,12 @@ class CloudForgeSDK {
|
|
|
574
574
|
variables: { accountId, input }
|
|
575
575
|
});
|
|
576
576
|
}
|
|
577
|
+
async saveContactsToCrm(input) {
|
|
578
|
+
return this.apolloClient.mutate({
|
|
579
|
+
mutation: mutations_1.SAVE_CONTACTS_TO_CRM,
|
|
580
|
+
variables: { ...input }
|
|
581
|
+
});
|
|
582
|
+
}
|
|
577
583
|
async saveNylasConnection(input) {
|
|
578
584
|
return this.apolloClient.mutate({
|
|
579
585
|
mutation: mutations_1.SAVE_NYLAS_CONNECTION,
|