cf-service-sdk 0.1.8 → 0.1.9
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 +67 -0
- package/dist/generated/graphql.js +51 -5
- package/dist/mutations.d.ts +1 -0
- package/dist/mutations.js +24 -2
- package/dist/sdk.d.ts +1 -0
- package/dist/sdk.js +6 -0
- package/package.json +1 -1
|
@@ -179,6 +179,12 @@ export type AddContactsToSegment = {
|
|
|
179
179
|
segment?: Maybe<SegmentObject>;
|
|
180
180
|
success?: Maybe<Scalars['Boolean']['output']>;
|
|
181
181
|
};
|
|
182
|
+
export type AddContactsToSegments = {
|
|
183
|
+
__typename?: 'AddContactsToSegments';
|
|
184
|
+
message?: Maybe<Scalars['String']['output']>;
|
|
185
|
+
segments?: Maybe<Array<Maybe<SegmentObject>>>;
|
|
186
|
+
success?: Maybe<Scalars['Boolean']['output']>;
|
|
187
|
+
};
|
|
182
188
|
export type AddCustomContactToSupplier = {
|
|
183
189
|
__typename?: 'AddCustomContactToSupplier';
|
|
184
190
|
message?: Maybe<Scalars['String']['output']>;
|
|
@@ -2564,6 +2570,7 @@ export type Mutation = {
|
|
|
2564
2570
|
/** Add contacts to a combined campaign using CustomContact */
|
|
2565
2571
|
addContactsToCombinedCampaign?: Maybe<AddContactsToCombinedCampaign>;
|
|
2566
2572
|
addContactsToSegment?: Maybe<AddContactsToSegment>;
|
|
2573
|
+
addContactsToSegments?: Maybe<AddContactsToSegments>;
|
|
2567
2574
|
addCustomContactToSupplierList?: Maybe<AddCustomContactToSupplier>;
|
|
2568
2575
|
addSegmentToCallCampaign?: Maybe<AddSegmentToCallCampaign>;
|
|
2569
2576
|
addSegmentToCampaign?: Maybe<AddSegmentToCampaign>;
|
|
@@ -2821,6 +2828,11 @@ export type MutationAddContactsToSegmentArgs = {
|
|
|
2821
2828
|
segmentId: Scalars['ID']['input'];
|
|
2822
2829
|
};
|
|
2823
2830
|
/** Mutations */
|
|
2831
|
+
export type MutationAddContactsToSegmentsArgs = {
|
|
2832
|
+
contactIds: Array<InputMaybe<Scalars['ID']['input']>>;
|
|
2833
|
+
segmentIds: Array<InputMaybe<Scalars['ID']['input']>>;
|
|
2834
|
+
};
|
|
2835
|
+
/** Mutations */
|
|
2824
2836
|
export type MutationAddCustomContactToSupplierListArgs = {
|
|
2825
2837
|
input: AddCustomContactToSupplierInput;
|
|
2826
2838
|
};
|
|
@@ -5806,6 +5818,34 @@ export type AddContactsToSegmentMutation = {
|
|
|
5806
5818
|
} | null;
|
|
5807
5819
|
} | null;
|
|
5808
5820
|
};
|
|
5821
|
+
export type AddContactsToSegmentsMutationVariables = Exact<{
|
|
5822
|
+
contactIds: Array<InputMaybe<Scalars['ID']['input']>> | InputMaybe<Scalars['ID']['input']>;
|
|
5823
|
+
segmentIds: Array<InputMaybe<Scalars['ID']['input']>> | InputMaybe<Scalars['ID']['input']>;
|
|
5824
|
+
}>;
|
|
5825
|
+
export type AddContactsToSegmentsMutation = {
|
|
5826
|
+
__typename?: 'Mutation';
|
|
5827
|
+
addContactsToSegments?: {
|
|
5828
|
+
__typename?: 'AddContactsToSegments';
|
|
5829
|
+
success?: boolean | null;
|
|
5830
|
+
message?: string | null;
|
|
5831
|
+
segments?: Array<{
|
|
5832
|
+
__typename?: 'SegmentObject';
|
|
5833
|
+
id?: string | null;
|
|
5834
|
+
name?: string | null;
|
|
5835
|
+
description?: string | null;
|
|
5836
|
+
state?: string | null;
|
|
5837
|
+
industry?: string | null;
|
|
5838
|
+
metalType?: string | null;
|
|
5839
|
+
productCategory?: string | null;
|
|
5840
|
+
segmentType?: string | null;
|
|
5841
|
+
createdAt?: any | null;
|
|
5842
|
+
updatedAt?: any | null;
|
|
5843
|
+
isSystemTemplate?: boolean | null;
|
|
5844
|
+
totalContacts?: number | null;
|
|
5845
|
+
status?: string | null;
|
|
5846
|
+
} | null> | null;
|
|
5847
|
+
} | null;
|
|
5848
|
+
};
|
|
5809
5849
|
export type AddCustomContactToSupplierListMutationVariables = Exact<{
|
|
5810
5850
|
input: AddCustomContactToSupplierInput;
|
|
5811
5851
|
}>;
|
|
@@ -29204,6 +29244,33 @@ export declare function useAddContactsToSegmentMutation(baseOptions?: Apollo.Mut
|
|
|
29204
29244
|
export type AddContactsToSegmentMutationHookResult = ReturnType<typeof useAddContactsToSegmentMutation>;
|
|
29205
29245
|
export type AddContactsToSegmentMutationResult = Apollo.MutationResult<AddContactsToSegmentMutation>;
|
|
29206
29246
|
export type AddContactsToSegmentMutationOptions = Apollo.BaseMutationOptions<AddContactsToSegmentMutation, AddContactsToSegmentMutationVariables>;
|
|
29247
|
+
export declare const AddContactsToSegmentsDocument: Apollo.DocumentNode;
|
|
29248
|
+
export type AddContactsToSegmentsMutationFn = Apollo.MutationFunction<AddContactsToSegmentsMutation, AddContactsToSegmentsMutationVariables>;
|
|
29249
|
+
/**
|
|
29250
|
+
* __useAddContactsToSegmentsMutation__
|
|
29251
|
+
*
|
|
29252
|
+
* To run a mutation, you first call `useAddContactsToSegmentsMutation` within a React component and pass it any options that fit your needs.
|
|
29253
|
+
* When your component renders, `useAddContactsToSegmentsMutation` returns a tuple that includes:
|
|
29254
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
29255
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
29256
|
+
*
|
|
29257
|
+
* @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;
|
|
29258
|
+
*
|
|
29259
|
+
* @example
|
|
29260
|
+
* const [addContactsToSegmentsMutation, { data, loading, error }] = useAddContactsToSegmentsMutation({
|
|
29261
|
+
* variables: {
|
|
29262
|
+
* contactIds: // value for 'contactIds'
|
|
29263
|
+
* segmentIds: // value for 'segmentIds'
|
|
29264
|
+
* },
|
|
29265
|
+
* });
|
|
29266
|
+
*/
|
|
29267
|
+
export declare function useAddContactsToSegmentsMutation(baseOptions?: Apollo.MutationHookOptions<AddContactsToSegmentsMutation, AddContactsToSegmentsMutationVariables>): Apollo.MutationTuple<AddContactsToSegmentsMutation, Exact<{
|
|
29268
|
+
contactIds: Array<InputMaybe<Scalars["ID"]["input"]>> | InputMaybe<Scalars["ID"]["input"]>;
|
|
29269
|
+
segmentIds: Array<InputMaybe<Scalars["ID"]["input"]>> | InputMaybe<Scalars["ID"]["input"]>;
|
|
29270
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
29271
|
+
export type AddContactsToSegmentsMutationHookResult = ReturnType<typeof useAddContactsToSegmentsMutation>;
|
|
29272
|
+
export type AddContactsToSegmentsMutationResult = Apollo.MutationResult<AddContactsToSegmentsMutation>;
|
|
29273
|
+
export type AddContactsToSegmentsMutationOptions = Apollo.BaseMutationOptions<AddContactsToSegmentsMutation, AddContactsToSegmentsMutationVariables>;
|
|
29207
29274
|
export declare const AddCustomContactToSupplierListDocument: Apollo.DocumentNode;
|
|
29208
29275
|
export type AddCustomContactToSupplierListMutationFn = Apollo.MutationFunction<AddCustomContactToSupplierListMutation, AddCustomContactToSupplierListMutationVariables>;
|
|
29209
29276
|
/**
|
|
@@ -33,17 +33,18 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.UserProfileDocument = exports.UsStatesDocument = exports.UnreadNotificationsCountDocument = exports.TasksDocument = exports.TaskDocument = exports.SuppliersDocument = exports.SupplierlistListDocument = exports.SupplierlistDocument = exports.SupplierListCustomContactsDocument = exports.SupplierListContactsDocument = exports.SupplierDocument = 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.EmployeeSizesDocument = exports.EmailThreadsByCompanyDocument = exports.EmailThreadDocument = exports.EmailTemplatesDocument = void 0;
|
|
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
|
+
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.UpdateUserProfileDocument = exports.UpdateTaskDocument = exports.UpdateSupplierlistDocument = exports.UpdateSegmentDocument = exports.UpdateSalesGoalDocument = exports.UpdateRfqlineitemDocument = exports.UpdateRfqDocument = exports.UpdateMysupplierDocument = exports.UpdateEmailTemplateDocument = 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.SendTestEmailCombinedDocument = exports.SendTestEmailDocument = exports.SendRfqTestEmailDocument = exports.SendRfqDocument = exports.SendManualEmailDocument = exports.SendEmailToEmailThreadDocument = exports.SendEmailToContactDocument = exports.ScheduleRfqDocument = exports.ScheduleCombinedCampaignDocument = exports.ScheduleCampaignDocument = exports.SaveNylasConnectionDocument = exports.SaveAutomatedProspectingConfigDocument = exports.ResumeCombinedCampaignDocument = exports.RequestProAccessDocument = exports.RemoveSupplierFromSupplierListDocument = exports.RemoveSegmentFromCampaignDocument = exports.RemoveSegmentFromCallCampaignDocument = void 0;
|
|
39
|
+
exports.EmailCampaignReportStatsDocument = exports.EmailCampaignReportOverviewDocument = exports.EmailCampaignReportByCampaignDocument = exports.DashboardStatsDocument = exports.CurrentPipelineTotalDocument = 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.AutomatedProspectingConfigDocument = exports.AutomatedProspectingCampaignsDocument = exports.AutomatedProspectingCampaignDocument = exports.AccountSubscriptionDocument = exports.AccountProfileDocument = exports.AccountMembersDocument = exports.AccountFeatureFlagsDocument = exports.ValidateOtpAndResetPasswordDocument = exports.UploadFileDocument = void 0;
|
|
40
|
+
exports.UserProfileDocument = exports.UsStatesDocument = exports.UnreadNotificationsCountDocument = exports.TasksDocument = exports.TaskDocument = exports.SuppliersDocument = exports.SupplierlistListDocument = exports.SupplierlistDocument = exports.SupplierListCustomContactsDocument = exports.SupplierListContactsDocument = exports.SupplierDocument = 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.EmployeeSizesDocument = exports.EmailThreadsByCompanyDocument = exports.EmailThreadDocument = exports.EmailTemplatesDocument = exports.EmailTemplateDocument = void 0;
|
|
41
41
|
exports.useAcceptInvitationMutation = useAcceptInvitationMutation;
|
|
42
42
|
exports.useAddContactToAutomatedProspectingMutation = useAddContactToAutomatedProspectingMutation;
|
|
43
43
|
exports.useAddContactToSupplierListMutation = useAddContactToSupplierListMutation;
|
|
44
44
|
exports.useAddContactsToCampaignMutation = useAddContactsToCampaignMutation;
|
|
45
45
|
exports.useAddContactsToCombinedCampaignMutation = useAddContactsToCombinedCampaignMutation;
|
|
46
46
|
exports.useAddContactsToSegmentMutation = useAddContactsToSegmentMutation;
|
|
47
|
+
exports.useAddContactsToSegmentsMutation = useAddContactsToSegmentsMutation;
|
|
47
48
|
exports.useAddCustomContactToSupplierListMutation = useAddCustomContactToSupplierListMutation;
|
|
48
49
|
exports.useAddSegmentToCallCampaignMutation = useAddSegmentToCallCampaignMutation;
|
|
49
50
|
exports.useAddSegmentToCampaignMutation = useAddSegmentToCampaignMutation;
|
|
@@ -1081,6 +1082,51 @@ function useAddContactsToSegmentMutation(baseOptions) {
|
|
|
1081
1082
|
const options = { ...defaultOptions, ...baseOptions };
|
|
1082
1083
|
return Apollo.useMutation(exports.AddContactsToSegmentDocument, options);
|
|
1083
1084
|
}
|
|
1085
|
+
exports.AddContactsToSegmentsDocument = (0, client_1.gql) `
|
|
1086
|
+
mutation AddContactsToSegments($contactIds: [ID]!, $segmentIds: [ID]!) {
|
|
1087
|
+
addContactsToSegments(contactIds: $contactIds, segmentIds: $segmentIds) {
|
|
1088
|
+
segments {
|
|
1089
|
+
id
|
|
1090
|
+
name
|
|
1091
|
+
description
|
|
1092
|
+
state
|
|
1093
|
+
industry
|
|
1094
|
+
metalType
|
|
1095
|
+
productCategory
|
|
1096
|
+
segmentType
|
|
1097
|
+
createdAt
|
|
1098
|
+
updatedAt
|
|
1099
|
+
isSystemTemplate
|
|
1100
|
+
totalContacts
|
|
1101
|
+
status
|
|
1102
|
+
}
|
|
1103
|
+
success
|
|
1104
|
+
message
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
`;
|
|
1108
|
+
/**
|
|
1109
|
+
* __useAddContactsToSegmentsMutation__
|
|
1110
|
+
*
|
|
1111
|
+
* To run a mutation, you first call `useAddContactsToSegmentsMutation` within a React component and pass it any options that fit your needs.
|
|
1112
|
+
* When your component renders, `useAddContactsToSegmentsMutation` returns a tuple that includes:
|
|
1113
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1114
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1115
|
+
*
|
|
1116
|
+
* @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;
|
|
1117
|
+
*
|
|
1118
|
+
* @example
|
|
1119
|
+
* const [addContactsToSegmentsMutation, { data, loading, error }] = useAddContactsToSegmentsMutation({
|
|
1120
|
+
* variables: {
|
|
1121
|
+
* contactIds: // value for 'contactIds'
|
|
1122
|
+
* segmentIds: // value for 'segmentIds'
|
|
1123
|
+
* },
|
|
1124
|
+
* });
|
|
1125
|
+
*/
|
|
1126
|
+
function useAddContactsToSegmentsMutation(baseOptions) {
|
|
1127
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1128
|
+
return Apollo.useMutation(exports.AddContactsToSegmentsDocument, options);
|
|
1129
|
+
}
|
|
1084
1130
|
exports.AddCustomContactToSupplierListDocument = (0, client_1.gql) `
|
|
1085
1131
|
mutation AddCustomContactToSupplierList($input: AddCustomContactToSupplierInput!) {
|
|
1086
1132
|
addCustomContactToSupplierList(input: $input) {
|
package/dist/mutations.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ export declare const CREATE_SEGMENT: import("@apollo/client").DocumentNode;
|
|
|
76
76
|
export declare const UPDATE_SEGMENT: import("@apollo/client").DocumentNode;
|
|
77
77
|
export declare const DELETE_SEGMENT: import("@apollo/client").DocumentNode;
|
|
78
78
|
export declare const ADD_CONTACTS_TO_SEGMENT: import("@apollo/client").DocumentNode;
|
|
79
|
+
export declare const ADD_CONTACTS_TO_SEGMENTS: import("@apollo/client").DocumentNode;
|
|
79
80
|
export declare const REMOVE_CONTACTS_FROM_SEGMENT: import("@apollo/client").DocumentNode;
|
|
80
81
|
export declare const ADD_CONTACTS_TO_CAMPAIGN: import("@apollo/client").DocumentNode;
|
|
81
82
|
export declare const REMOVE_CONTACTS_FROM_CAMPAIGN: 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 = void 0;
|
|
4
|
+
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 = 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.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.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 = 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!) {
|
|
@@ -7012,6 +7012,28 @@ mutation AddContactsToSegment($contactIds: [ID]!, $processSignals: Boolean, $seg
|
|
|
7012
7012
|
message
|
|
7013
7013
|
}
|
|
7014
7014
|
}`;
|
|
7015
|
+
exports.ADD_CONTACTS_TO_SEGMENTS = (0, client_1.gql) `
|
|
7016
|
+
mutation AddContactsToSegments($contactIds: [ID]!, $segmentIds: [ID]!) {
|
|
7017
|
+
addContactsToSegments(contactIds: $contactIds, segmentIds: $segmentIds) {
|
|
7018
|
+
segments {
|
|
7019
|
+
id
|
|
7020
|
+
name
|
|
7021
|
+
description
|
|
7022
|
+
state
|
|
7023
|
+
industry
|
|
7024
|
+
metalType
|
|
7025
|
+
productCategory
|
|
7026
|
+
segmentType
|
|
7027
|
+
createdAt
|
|
7028
|
+
updatedAt
|
|
7029
|
+
isSystemTemplate
|
|
7030
|
+
totalContacts
|
|
7031
|
+
status
|
|
7032
|
+
}
|
|
7033
|
+
success
|
|
7034
|
+
message
|
|
7035
|
+
}
|
|
7036
|
+
}`;
|
|
7015
7037
|
exports.REMOVE_CONTACTS_FROM_SEGMENT = (0, client_1.gql) `
|
|
7016
7038
|
mutation RemoveContactsFromSegment($contactIds: [ID]!, $segmentId: ID!) {
|
|
7017
7039
|
removeContactsFromSegment(contactIds: $contactIds, segmentId: $segmentId) {
|
package/dist/sdk.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare class CloudForgeSDK {
|
|
|
14
14
|
addContactsToCampaign(campaignId: string, contacts: CustomContactInput[]): Promise<import("@apollo/client").FetchResult<any>>;
|
|
15
15
|
addContactsToCombinedCampaign(campaignId: string, contacts: CustomContactInput[]): Promise<import("@apollo/client").FetchResult<any>>;
|
|
16
16
|
addContactsToSegment(contactIds: string[], segmentId: string, processSignals?: boolean): Promise<import("@apollo/client").FetchResult<any>>;
|
|
17
|
+
addContactsToSegments(contactIds: string[], segmentIds: string[]): Promise<import("@apollo/client").FetchResult<any>>;
|
|
17
18
|
addCustomContactToSupplierList(input: AddCustomContactToSupplierInput): Promise<import("@apollo/client").FetchResult<any>>;
|
|
18
19
|
addSegmentToCallCampaign(campaignId: string, segmentId: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
19
20
|
addSegmentToCampaign(campaignId: string, segmentId: string): Promise<import("@apollo/client").FetchResult<any>>;
|
package/dist/sdk.js
CHANGED
|
@@ -69,6 +69,12 @@ class CloudForgeSDK {
|
|
|
69
69
|
variables: { contactIds, segmentId, processSignals }
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
+
async addContactsToSegments(contactIds, segmentIds) {
|
|
73
|
+
return this.apolloClient.mutate({
|
|
74
|
+
mutation: mutations_1.ADD_CONTACTS_TO_SEGMENTS,
|
|
75
|
+
variables: { contactIds, segmentIds }
|
|
76
|
+
});
|
|
77
|
+
}
|
|
72
78
|
async addCustomContactToSupplierList(input) {
|
|
73
79
|
return this.apolloClient.mutate({
|
|
74
80
|
mutation: mutations_1.ADD_CUSTOM_CONTACT_TO_SUPPLIER_LIST,
|