cf-service-sdk 0.1.34 → 0.1.35
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 +55 -0
- package/dist/generated/graphql.js +36 -4
- package/dist/mutations.d.ts +1 -0
- package/dist/mutations.js +11 -2
- package/dist/sdk.d.ts +2 -1
- package/dist/sdk.js +6 -0
- package/package.json +1 -1
|
@@ -2890,6 +2890,7 @@ export type Mutation = {
|
|
|
2890
2890
|
resumeCombinedCampaign?: Maybe<ResumeCombinedCampaign>;
|
|
2891
2891
|
/** Create or update the automated prospecting config for a user/account, running LLM parsing. */
|
|
2892
2892
|
saveAutomatedProspectingConfig?: Maybe<SaveAutomatedProspectingConfig>;
|
|
2893
|
+
saveContactsToCrm?: Maybe<SaveContactsToCrm>;
|
|
2893
2894
|
/** SaveNylasConnection - Save Nylas connection details after OAuth flow */
|
|
2894
2895
|
saveNylasConnection?: Maybe<SaveNylasConnection>;
|
|
2895
2896
|
scheduleCampaign?: Maybe<ScheduleCampaign>;
|
|
@@ -3367,6 +3368,10 @@ export type MutationSaveAutomatedProspectingConfigArgs = {
|
|
|
3367
3368
|
input: AutomatedProspectingCampaignInput;
|
|
3368
3369
|
};
|
|
3369
3370
|
/** Mutations */
|
|
3371
|
+
export type MutationSaveContactsToCrmArgs = {
|
|
3372
|
+
input: SaveContactsToCrmInput;
|
|
3373
|
+
};
|
|
3374
|
+
/** Mutations */
|
|
3370
3375
|
export type MutationSaveNylasConnectionArgs = {
|
|
3371
3376
|
input: SaveNylasConnectionInput;
|
|
3372
3377
|
};
|
|
@@ -5041,6 +5046,18 @@ export type SaveAutomatedProspectingConfig = {
|
|
|
5041
5046
|
message?: Maybe<Scalars['String']['output']>;
|
|
5042
5047
|
success?: Maybe<Scalars['Boolean']['output']>;
|
|
5043
5048
|
};
|
|
5049
|
+
export type SaveContactsToCrm = {
|
|
5050
|
+
__typename?: 'SaveContactsToCrm';
|
|
5051
|
+
error?: Maybe<Scalars['String']['output']>;
|
|
5052
|
+
savedCompanyIds?: Maybe<Array<Maybe<Scalars['ID']['output']>>>;
|
|
5053
|
+
success?: Maybe<Scalars['Boolean']['output']>;
|
|
5054
|
+
warnings?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
5055
|
+
};
|
|
5056
|
+
/** Input type for saving contacts to CRM without adding them to any segment. */
|
|
5057
|
+
export type SaveContactsToCrmInput = {
|
|
5058
|
+
/** List of contact IDs whose companies should land in the CRM 'Not Contacted' column. */
|
|
5059
|
+
contactIds: Array<InputMaybe<Scalars['ID']['input']>>;
|
|
5060
|
+
};
|
|
5044
5061
|
/** SaveNylasConnection - Save Nylas connection details after OAuth flow */
|
|
5045
5062
|
export type SaveNylasConnection = {
|
|
5046
5063
|
__typename?: 'SaveNylasConnection';
|
|
@@ -11692,6 +11709,19 @@ export type SaveAutomatedProspectingConfigMutation = {
|
|
|
11692
11709
|
} | null;
|
|
11693
11710
|
} | null;
|
|
11694
11711
|
};
|
|
11712
|
+
export type SaveContactsToCrmMutationVariables = Exact<{
|
|
11713
|
+
input: SaveContactsToCrmInput;
|
|
11714
|
+
}>;
|
|
11715
|
+
export type SaveContactsToCrmMutation = {
|
|
11716
|
+
__typename?: 'Mutation';
|
|
11717
|
+
saveContactsToCrm?: {
|
|
11718
|
+
__typename?: 'SaveContactsToCrm';
|
|
11719
|
+
success?: boolean | null;
|
|
11720
|
+
savedCompanyIds?: Array<string | null> | null;
|
|
11721
|
+
warnings?: Array<string | null> | null;
|
|
11722
|
+
error?: string | null;
|
|
11723
|
+
} | null;
|
|
11724
|
+
};
|
|
11695
11725
|
export type SaveNylasConnectionMutationVariables = Exact<{
|
|
11696
11726
|
input: SaveNylasConnectionInput;
|
|
11697
11727
|
}>;
|
|
@@ -32573,6 +32603,31 @@ export declare function useSaveAutomatedProspectingConfigMutation(baseOptions?:
|
|
|
32573
32603
|
export type SaveAutomatedProspectingConfigMutationHookResult = ReturnType<typeof useSaveAutomatedProspectingConfigMutation>;
|
|
32574
32604
|
export type SaveAutomatedProspectingConfigMutationResult = Apollo.MutationResult<SaveAutomatedProspectingConfigMutation>;
|
|
32575
32605
|
export type SaveAutomatedProspectingConfigMutationOptions = Apollo.BaseMutationOptions<SaveAutomatedProspectingConfigMutation, SaveAutomatedProspectingConfigMutationVariables>;
|
|
32606
|
+
export declare const SaveContactsToCrmDocument: Apollo.DocumentNode;
|
|
32607
|
+
export type SaveContactsToCrmMutationFn = Apollo.MutationFunction<SaveContactsToCrmMutation, SaveContactsToCrmMutationVariables>;
|
|
32608
|
+
/**
|
|
32609
|
+
* __useSaveContactsToCrmMutation__
|
|
32610
|
+
*
|
|
32611
|
+
* To run a mutation, you first call `useSaveContactsToCrmMutation` within a React component and pass it any options that fit your needs.
|
|
32612
|
+
* When your component renders, `useSaveContactsToCrmMutation` returns a tuple that includes:
|
|
32613
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
32614
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
32615
|
+
*
|
|
32616
|
+
* @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;
|
|
32617
|
+
*
|
|
32618
|
+
* @example
|
|
32619
|
+
* const [saveContactsToCrmMutation, { data, loading, error }] = useSaveContactsToCrmMutation({
|
|
32620
|
+
* variables: {
|
|
32621
|
+
* input: // value for 'input'
|
|
32622
|
+
* },
|
|
32623
|
+
* });
|
|
32624
|
+
*/
|
|
32625
|
+
export declare function useSaveContactsToCrmMutation(baseOptions?: Apollo.MutationHookOptions<SaveContactsToCrmMutation, SaveContactsToCrmMutationVariables>): Apollo.MutationTuple<SaveContactsToCrmMutation, Exact<{
|
|
32626
|
+
input: SaveContactsToCrmInput;
|
|
32627
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
32628
|
+
export type SaveContactsToCrmMutationHookResult = ReturnType<typeof useSaveContactsToCrmMutation>;
|
|
32629
|
+
export type SaveContactsToCrmMutationResult = Apollo.MutationResult<SaveContactsToCrmMutation>;
|
|
32630
|
+
export type SaveContactsToCrmMutationOptions = Apollo.BaseMutationOptions<SaveContactsToCrmMutation, SaveContactsToCrmMutationVariables>;
|
|
32576
32631
|
export declare const SaveNylasConnectionDocument: Apollo.DocumentNode;
|
|
32577
32632
|
export type SaveNylasConnectionMutationFn = Apollo.MutationFunction<SaveNylasConnectionMutation, SaveNylasConnectionMutationVariables>;
|
|
32578
32633
|
/**
|
|
@@ -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) {
|
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/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,
|