cf-service-sdk 0.0.66 → 0.0.68
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 +168 -0
- package/dist/generated/graphql.js +131 -3
- package/dist/mutations.d.ts +1 -0
- package/dist/mutations.js +48 -1
- package/dist/queries.js +57 -0
- package/dist/sdk.d.ts +1 -0
- package/dist/sdk.js +6 -0
- package/package.json +1 -1
|
@@ -1015,6 +1015,8 @@ export type CombinedCampaignStepStatsObject = {
|
|
|
1015
1015
|
export type CompanyFilterInput = {
|
|
1016
1016
|
/** Filter by city(ies) - searches all company locations */
|
|
1017
1017
|
city?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
1018
|
+
/** Filter to include only companies that have ALL of these IDs (AND logic) */
|
|
1019
|
+
companyIdsAndFilter?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>;
|
|
1018
1020
|
/** Filter by company name (case-insensitive partial match) */
|
|
1019
1021
|
companyName?: InputMaybe<Scalars['String']['input']>;
|
|
1020
1022
|
/** Filter by employee size(s) */
|
|
@@ -1266,6 +1268,10 @@ export type CompanyObject = {
|
|
|
1266
1268
|
keywords?: Maybe<Scalars['String']['output']>;
|
|
1267
1269
|
/** Most recent contact date across all contacts and company notes */
|
|
1268
1270
|
lastContactedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
1271
|
+
/** User who performed the last contact action for this company */
|
|
1272
|
+
lastContactedBy?: Maybe<UserType>;
|
|
1273
|
+
/** Information about the last contact action for this company */
|
|
1274
|
+
lastContactedVia?: Maybe<LastContactedViaType>;
|
|
1269
1275
|
linkedinUrl?: Maybe<Scalars['String']['output']>;
|
|
1270
1276
|
location?: Maybe<Scalars['String']['output']>;
|
|
1271
1277
|
/** List of all company locations */
|
|
@@ -1826,6 +1832,15 @@ export type ForgotPassword = {
|
|
|
1826
1832
|
message?: Maybe<Scalars['String']['output']>;
|
|
1827
1833
|
success?: Maybe<Scalars['Boolean']['output']>;
|
|
1828
1834
|
};
|
|
1835
|
+
/** GenerateNewEmail - Generate a new email (subject and body) based on user prompt using AI */
|
|
1836
|
+
export type GenerateNewEmail = {
|
|
1837
|
+
__typename?: 'GenerateNewEmail';
|
|
1838
|
+
body?: Maybe<Scalars['String']['output']>;
|
|
1839
|
+
message?: Maybe<Scalars['String']['output']>;
|
|
1840
|
+
subject?: Maybe<Scalars['String']['output']>;
|
|
1841
|
+
success?: Maybe<Scalars['Boolean']['output']>;
|
|
1842
|
+
variablesUsed?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
1843
|
+
};
|
|
1829
1844
|
/** Input type for hidden record mutations */
|
|
1830
1845
|
export type HiddenRecordInput = {
|
|
1831
1846
|
/** ID of the record to hide/unhide */
|
|
@@ -2037,6 +2052,8 @@ export type Mutation = {
|
|
|
2037
2052
|
emailTone?: Maybe<EmailTone>;
|
|
2038
2053
|
/** ForgotPassword - Request a password reset */
|
|
2039
2054
|
forgotPassword?: Maybe<ForgotPassword>;
|
|
2055
|
+
/** GenerateNewEmail - Generate a new email (subject and body) based on user prompt using AI */
|
|
2056
|
+
generateNewEmail?: Maybe<GenerateNewEmail>;
|
|
2040
2057
|
/** Mutation to hide a record (contact or company) from query results */
|
|
2041
2058
|
hideRecord?: Maybe<HideRecord>;
|
|
2042
2059
|
/** InviteUser - Invite a user to join an account */
|
|
@@ -2259,6 +2276,11 @@ export type MutationForgotPasswordArgs = {
|
|
|
2259
2276
|
email: Scalars['String']['input'];
|
|
2260
2277
|
};
|
|
2261
2278
|
/** Mutations */
|
|
2279
|
+
export type MutationGenerateNewEmailArgs = {
|
|
2280
|
+
prompt: Scalars['String']['input'];
|
|
2281
|
+
variables?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
2282
|
+
};
|
|
2283
|
+
/** Mutations */
|
|
2262
2284
|
export type MutationHideRecordArgs = {
|
|
2263
2285
|
input: HiddenRecordInput;
|
|
2264
2286
|
};
|
|
@@ -5294,6 +5316,27 @@ export type CreateCompanyMutation = {
|
|
|
5294
5316
|
updatedAt?: any | null;
|
|
5295
5317
|
fullAddress?: string | null;
|
|
5296
5318
|
} | null;
|
|
5319
|
+
lastContactedBy?: {
|
|
5320
|
+
__typename?: 'UserType';
|
|
5321
|
+
id?: string | null;
|
|
5322
|
+
email?: string | null;
|
|
5323
|
+
firstName?: string | null;
|
|
5324
|
+
lastName?: string | null;
|
|
5325
|
+
picture?: string | null;
|
|
5326
|
+
} | null;
|
|
5327
|
+
lastContactedVia?: {
|
|
5328
|
+
__typename?: 'LastContactedViaType';
|
|
5329
|
+
actionType?: string | null;
|
|
5330
|
+
actionId?: string | null;
|
|
5331
|
+
campaignName?: string | null;
|
|
5332
|
+
campaignId?: string | null;
|
|
5333
|
+
callCampaignId?: string | null;
|
|
5334
|
+
combinedCampaignId?: string | null;
|
|
5335
|
+
stepType?: string | null;
|
|
5336
|
+
stepOrder?: number | null;
|
|
5337
|
+
noteType?: string | null;
|
|
5338
|
+
noteId?: string | null;
|
|
5339
|
+
} | null;
|
|
5297
5340
|
} | null;
|
|
5298
5341
|
} | null;
|
|
5299
5342
|
};
|
|
@@ -6088,6 +6131,20 @@ export type ForgotPasswordMutation = {
|
|
|
6088
6131
|
message?: string | null;
|
|
6089
6132
|
} | null;
|
|
6090
6133
|
};
|
|
6134
|
+
export type GenerateNewEmailMutationVariables = Exact<{
|
|
6135
|
+
prompt: Scalars['String']['input'];
|
|
6136
|
+
variables?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>> | InputMaybe<Scalars['String']['input']>>;
|
|
6137
|
+
}>;
|
|
6138
|
+
export type GenerateNewEmailMutation = {
|
|
6139
|
+
__typename?: 'Mutation';
|
|
6140
|
+
generateNewEmail?: {
|
|
6141
|
+
__typename?: 'GenerateNewEmail';
|
|
6142
|
+
success?: boolean | null;
|
|
6143
|
+
message?: string | null;
|
|
6144
|
+
subject?: string | null;
|
|
6145
|
+
body?: string | null;
|
|
6146
|
+
} | null;
|
|
6147
|
+
};
|
|
6091
6148
|
export type HideRecordMutationVariables = Exact<{
|
|
6092
6149
|
input: HiddenRecordInput;
|
|
6093
6150
|
}>;
|
|
@@ -9309,6 +9366,27 @@ export type UpdateCompanyMutation = {
|
|
|
9309
9366
|
updatedAt?: any | null;
|
|
9310
9367
|
fullAddress?: string | null;
|
|
9311
9368
|
} | null;
|
|
9369
|
+
lastContactedBy?: {
|
|
9370
|
+
__typename?: 'UserType';
|
|
9371
|
+
id?: string | null;
|
|
9372
|
+
email?: string | null;
|
|
9373
|
+
firstName?: string | null;
|
|
9374
|
+
lastName?: string | null;
|
|
9375
|
+
picture?: string | null;
|
|
9376
|
+
} | null;
|
|
9377
|
+
lastContactedVia?: {
|
|
9378
|
+
__typename?: 'LastContactedViaType';
|
|
9379
|
+
actionType?: string | null;
|
|
9380
|
+
actionId?: string | null;
|
|
9381
|
+
campaignName?: string | null;
|
|
9382
|
+
campaignId?: string | null;
|
|
9383
|
+
callCampaignId?: string | null;
|
|
9384
|
+
combinedCampaignId?: string | null;
|
|
9385
|
+
stepType?: string | null;
|
|
9386
|
+
stepOrder?: number | null;
|
|
9387
|
+
noteType?: string | null;
|
|
9388
|
+
noteId?: string | null;
|
|
9389
|
+
} | null;
|
|
9312
9390
|
} | null;
|
|
9313
9391
|
} | null;
|
|
9314
9392
|
};
|
|
@@ -12557,6 +12635,27 @@ export type CompaniesQuery = {
|
|
|
12557
12635
|
updatedAt?: any | null;
|
|
12558
12636
|
fullAddress?: string | null;
|
|
12559
12637
|
} | null;
|
|
12638
|
+
lastContactedBy?: {
|
|
12639
|
+
__typename?: 'UserType';
|
|
12640
|
+
id?: string | null;
|
|
12641
|
+
email?: string | null;
|
|
12642
|
+
firstName?: string | null;
|
|
12643
|
+
lastName?: string | null;
|
|
12644
|
+
picture?: string | null;
|
|
12645
|
+
} | null;
|
|
12646
|
+
lastContactedVia?: {
|
|
12647
|
+
__typename?: 'LastContactedViaType';
|
|
12648
|
+
actionType?: string | null;
|
|
12649
|
+
actionId?: string | null;
|
|
12650
|
+
campaignName?: string | null;
|
|
12651
|
+
campaignId?: string | null;
|
|
12652
|
+
callCampaignId?: string | null;
|
|
12653
|
+
combinedCampaignId?: string | null;
|
|
12654
|
+
stepType?: string | null;
|
|
12655
|
+
stepOrder?: number | null;
|
|
12656
|
+
noteType?: string | null;
|
|
12657
|
+
noteId?: string | null;
|
|
12658
|
+
} | null;
|
|
12560
12659
|
} | null> | null;
|
|
12561
12660
|
pagination?: {
|
|
12562
12661
|
__typename?: 'CompanyPaginationInfo';
|
|
@@ -13329,6 +13428,27 @@ export type CompanyQuery = {
|
|
|
13329
13428
|
updatedAt?: any | null;
|
|
13330
13429
|
fullAddress?: string | null;
|
|
13331
13430
|
} | null;
|
|
13431
|
+
lastContactedBy?: {
|
|
13432
|
+
__typename?: 'UserType';
|
|
13433
|
+
id?: string | null;
|
|
13434
|
+
email?: string | null;
|
|
13435
|
+
firstName?: string | null;
|
|
13436
|
+
lastName?: string | null;
|
|
13437
|
+
picture?: string | null;
|
|
13438
|
+
} | null;
|
|
13439
|
+
lastContactedVia?: {
|
|
13440
|
+
__typename?: 'LastContactedViaType';
|
|
13441
|
+
actionType?: string | null;
|
|
13442
|
+
actionId?: string | null;
|
|
13443
|
+
campaignName?: string | null;
|
|
13444
|
+
campaignId?: string | null;
|
|
13445
|
+
callCampaignId?: string | null;
|
|
13446
|
+
combinedCampaignId?: string | null;
|
|
13447
|
+
stepType?: string | null;
|
|
13448
|
+
stepOrder?: number | null;
|
|
13449
|
+
noteType?: string | null;
|
|
13450
|
+
noteId?: string | null;
|
|
13451
|
+
} | null;
|
|
13332
13452
|
} | null;
|
|
13333
13453
|
};
|
|
13334
13454
|
export type CompanyNoteQueryVariables = Exact<{
|
|
@@ -15272,6 +15392,27 @@ export type RecentHistoryQuery = {
|
|
|
15272
15392
|
updatedAt?: any | null;
|
|
15273
15393
|
fullAddress?: string | null;
|
|
15274
15394
|
} | null;
|
|
15395
|
+
lastContactedBy?: {
|
|
15396
|
+
__typename?: 'UserType';
|
|
15397
|
+
id?: string | null;
|
|
15398
|
+
email?: string | null;
|
|
15399
|
+
firstName?: string | null;
|
|
15400
|
+
lastName?: string | null;
|
|
15401
|
+
picture?: string | null;
|
|
15402
|
+
} | null;
|
|
15403
|
+
lastContactedVia?: {
|
|
15404
|
+
__typename?: 'LastContactedViaType';
|
|
15405
|
+
actionType?: string | null;
|
|
15406
|
+
actionId?: string | null;
|
|
15407
|
+
campaignName?: string | null;
|
|
15408
|
+
campaignId?: string | null;
|
|
15409
|
+
callCampaignId?: string | null;
|
|
15410
|
+
combinedCampaignId?: string | null;
|
|
15411
|
+
stepType?: string | null;
|
|
15412
|
+
stepOrder?: number | null;
|
|
15413
|
+
noteType?: string | null;
|
|
15414
|
+
noteId?: string | null;
|
|
15415
|
+
} | null;
|
|
15275
15416
|
} | null;
|
|
15276
15417
|
} | null> | null;
|
|
15277
15418
|
pagination?: {
|
|
@@ -16741,6 +16882,33 @@ export declare function useForgotPasswordMutation(baseOptions?: Apollo.MutationH
|
|
|
16741
16882
|
export type ForgotPasswordMutationHookResult = ReturnType<typeof useForgotPasswordMutation>;
|
|
16742
16883
|
export type ForgotPasswordMutationResult = Apollo.MutationResult<ForgotPasswordMutation>;
|
|
16743
16884
|
export type ForgotPasswordMutationOptions = Apollo.BaseMutationOptions<ForgotPasswordMutation, ForgotPasswordMutationVariables>;
|
|
16885
|
+
export declare const GenerateNewEmailDocument: Apollo.DocumentNode;
|
|
16886
|
+
export type GenerateNewEmailMutationFn = Apollo.MutationFunction<GenerateNewEmailMutation, GenerateNewEmailMutationVariables>;
|
|
16887
|
+
/**
|
|
16888
|
+
* __useGenerateNewEmailMutation__
|
|
16889
|
+
*
|
|
16890
|
+
* To run a mutation, you first call `useGenerateNewEmailMutation` within a React component and pass it any options that fit your needs.
|
|
16891
|
+
* When your component renders, `useGenerateNewEmailMutation` returns a tuple that includes:
|
|
16892
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
16893
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
16894
|
+
*
|
|
16895
|
+
* @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;
|
|
16896
|
+
*
|
|
16897
|
+
* @example
|
|
16898
|
+
* const [generateNewEmailMutation, { data, loading, error }] = useGenerateNewEmailMutation({
|
|
16899
|
+
* variables: {
|
|
16900
|
+
* prompt: // value for 'prompt'
|
|
16901
|
+
* variables: // value for 'variables'
|
|
16902
|
+
* },
|
|
16903
|
+
* });
|
|
16904
|
+
*/
|
|
16905
|
+
export declare function useGenerateNewEmailMutation(baseOptions?: Apollo.MutationHookOptions<GenerateNewEmailMutation, GenerateNewEmailMutationVariables>): Apollo.MutationTuple<GenerateNewEmailMutation, Exact<{
|
|
16906
|
+
prompt: Scalars["String"]["input"];
|
|
16907
|
+
variables?: InputMaybe<Array<InputMaybe<Scalars["String"]["input"]>> | InputMaybe<Scalars["String"]["input"]>>;
|
|
16908
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
16909
|
+
export type GenerateNewEmailMutationHookResult = ReturnType<typeof useGenerateNewEmailMutation>;
|
|
16910
|
+
export type GenerateNewEmailMutationResult = Apollo.MutationResult<GenerateNewEmailMutation>;
|
|
16911
|
+
export type GenerateNewEmailMutationOptions = Apollo.BaseMutationOptions<GenerateNewEmailMutation, GenerateNewEmailMutationVariables>;
|
|
16744
16912
|
export declare const HideRecordDocument: Apollo.DocumentNode;
|
|
16745
16913
|
export type HideRecordMutationFn = Apollo.MutationFunction<HideRecordMutation, HideRecordMutationVariables>;
|
|
16746
16914
|
/**
|
|
@@ -33,9 +33,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.UserProfileDocument = exports.UsStatesDocument = exports.UnreadNotificationsCountDocument = exports.TasksDocument = exports.TaskDocument = exports.SegmentsDocument = exports.SegmentDocument = exports.SearchContactsDocument = exports.RecentNotificationsDocument = exports.RecentHistoryDocument = exports.ProductTypesDocument = exports.ProductCategoriesDocument = exports.PendingInvitationsDocument = exports.NylasConnectionDocument = exports.NotificationsDocument = exports.NotificationDocument = exports.MyInvitationsDocument = exports.MetalTypesDocument = exports.MetalGradesDocument = exports.IndustryTypesDocument = exports.IndustrySectorsDocument = exports.EmployeeSizesDocument = exports.EmailTemplatesDocument = exports.EmailTemplateDocument = exports.DashboardStatsDocument = exports.CurrentAccountDocument = exports.ContactsInSegmentDocument = exports.ContactsDocument = exports.ContactDocument = exports.CompanyNotesDocument = exports.CompanyNoteDocument = exports.CompanyDocument = exports.CompaniesDocument = exports.CombinedCampaignsDocument = exports.CombinedCampaignStepsDocument = exports.CombinedCampaignLogsDocument = exports.CombinedCampaignContactsDocument = exports.CombinedCampaignDocument = exports.CampaignsDocument = exports.CampaignStatsDocument = exports.CampaignLogsDocument = exports.CampaignContactsDocument = exports.CampaignAnalyticsDocument = exports.CampaignDocument = exports.CallCampaignsDocument = void 0;
|
|
36
|
+
exports.LoginDocument = exports.InviteUserDocument = exports.HideRecordDocument = exports.GenerateNewEmailDocument = exports.ForgotPasswordDocument = exports.EmailToneDocument = exports.DisconnectNylasIntegrationDocument = exports.DeleteTaskDocument = exports.DeleteSegmentDocument = exports.DeleteNotificationDocument = exports.DeleteEmailTemplateDocument = exports.DeleteContactDocument = exports.DeleteCompanyNoteDocument = exports.DeleteCompanyDocument = exports.DeleteCombinedCampaignDocument = exports.DeleteCampaignDocument = exports.DeleteCallCampaignDocument = exports.CreateTaskDocument = exports.CreateSegmentDocument = exports.CreateNotificationDocument = exports.CreateEmailTemplateDocument = exports.CreateContactDocument = exports.CreateCompanyNoteDocument = exports.CreateCompanyDocument = exports.CreateCombinedCampaignDocument = exports.CreateCampaignDocument = exports.CreateCallCampaignLogDocument = exports.CreateCallCampaignDocument = exports.CompleteCampaignDocument = exports.ClearAllNotificationsDocument = exports.ChangePasswordDocument = exports.CancelInvitationDocument = exports.CancelCombinedCampaignDocument = exports.CancelCampaignDocument = exports.AddSegmentToCampaignDocument = exports.AddSegmentToCallCampaignDocument = exports.AddContactsToSegmentDocument = exports.AddContactsToCombinedCampaignDocument = exports.AddContactsToCampaignDocument = exports.AcceptInvitationDocument = exports.SortDirection = exports.RecentHistorySortField = exports.NotificationTypeEnum = exports.ContactSortField = exports.CompanySortField = exports.CompanyNoteSortField = exports.CallCampaignLogOutcomeEnum = exports.AppEmailTemplateCampaignTypeChoices = exports.AppBusinessProfileStateChoices = exports.AppAccountInvitationStatusChoices = void 0;
|
|
37
|
+
exports.CallCampaignLogsDocument = exports.CallCampaignLogDocument = exports.CallCampaignAnalyticsDocument = exports.CallCampaignDocument = exports.BusinessProfileDocument = exports.AccountMembersDocument = exports.ValidateOtpAndResetPasswordDocument = exports.UploadFileDocument = exports.UpdateUserProfileDocument = exports.UpdateTaskDocument = exports.UpdateSegmentDocument = exports.UpdateEmailTemplateDocument = exports.UpdateContactDocument = exports.UpdateCompanyNoteDocument = exports.UpdateCompanyDocument = exports.UpdateCombinedCampaignLogsDocument = exports.UpdateCombinedCampaignLogDocument = exports.UpdateCombinedCampaignDocument = exports.UpdateCampaignDocument = exports.UpdateCallCampaignLogDocument = exports.UpdateCallCampaignDocument = exports.UnsubscribeFromEmailsDocument = exports.UnhideRecordDocument = exports.SubmitFeedbackDocument = exports.StartCombinedCampaignDocument = exports.StartCampaignDocument = exports.SignupDocument = exports.SendTestEmailCombinedDocument = exports.SendTestEmailDocument = exports.SendManualEmailDocument = exports.SendEmailToContactDocument = exports.ScheduleCombinedCampaignDocument = exports.ScheduleCampaignDocument = exports.SaveNylasConnectionDocument = exports.ResumeCombinedCampaignDocument = exports.RemoveSegmentFromCampaignDocument = exports.RemoveSegmentFromCallCampaignDocument = exports.RemoveMemberDocument = exports.RemoveContactsFromSegmentDocument = exports.RemoveContactsFromCombinedCampaignDocument = exports.RemoveContactsFromCampaignDocument = exports.RejectInvitationDocument = exports.ReduceSpamDocument = exports.PreviewCampaignEmailDocument = exports.PauseCombinedCampaignDocument = exports.PauseCampaignDocument = exports.MarkNotificationAsReadDocument = exports.MarkAllNotificationsAsReadDocument = exports.LoginWithMicrosoftDocument = exports.LoginWithGoogleDocument = void 0;
|
|
38
|
+
exports.UserProfileDocument = exports.UsStatesDocument = exports.UnreadNotificationsCountDocument = exports.TasksDocument = exports.TaskDocument = exports.SegmentsDocument = exports.SegmentDocument = exports.SearchContactsDocument = exports.RecentNotificationsDocument = exports.RecentHistoryDocument = exports.ProductTypesDocument = exports.ProductCategoriesDocument = exports.PendingInvitationsDocument = exports.NylasConnectionDocument = exports.NotificationsDocument = exports.NotificationDocument = exports.MyInvitationsDocument = exports.MetalTypesDocument = exports.MetalGradesDocument = exports.IndustryTypesDocument = exports.IndustrySectorsDocument = exports.EmployeeSizesDocument = exports.EmailTemplatesDocument = exports.EmailTemplateDocument = exports.DashboardStatsDocument = exports.CurrentAccountDocument = exports.ContactsInSegmentDocument = exports.ContactsDocument = exports.ContactDocument = exports.CompanyNotesDocument = exports.CompanyNoteDocument = exports.CompanyDocument = exports.CompaniesDocument = exports.CombinedCampaignsDocument = exports.CombinedCampaignStepsDocument = exports.CombinedCampaignLogsDocument = exports.CombinedCampaignContactsDocument = exports.CombinedCampaignDocument = exports.CampaignsDocument = exports.CampaignStatsDocument = exports.CampaignLogsDocument = exports.CampaignContactsDocument = exports.CampaignAnalyticsDocument = exports.CampaignDocument = exports.CallCampaignsDocument = exports.CallCampaignReportDocument = void 0;
|
|
39
39
|
exports.useAcceptInvitationMutation = useAcceptInvitationMutation;
|
|
40
40
|
exports.useAddContactsToCampaignMutation = useAddContactsToCampaignMutation;
|
|
41
41
|
exports.useAddContactsToCombinedCampaignMutation = useAddContactsToCombinedCampaignMutation;
|
|
@@ -72,6 +72,7 @@ exports.useDeleteTaskMutation = useDeleteTaskMutation;
|
|
|
72
72
|
exports.useDisconnectNylasIntegrationMutation = useDisconnectNylasIntegrationMutation;
|
|
73
73
|
exports.useEmailToneMutation = useEmailToneMutation;
|
|
74
74
|
exports.useForgotPasswordMutation = useForgotPasswordMutation;
|
|
75
|
+
exports.useGenerateNewEmailMutation = useGenerateNewEmailMutation;
|
|
75
76
|
exports.useHideRecordMutation = useHideRecordMutation;
|
|
76
77
|
exports.useInviteUserMutation = useInviteUserMutation;
|
|
77
78
|
exports.useLoginMutation = useLoginMutation;
|
|
@@ -2389,6 +2390,25 @@ exports.CreateCompanyDocument = (0, client_1.gql) `
|
|
|
2389
2390
|
isProspect
|
|
2390
2391
|
purchaseMetalConfidence
|
|
2391
2392
|
lastContactedAt
|
|
2393
|
+
lastContactedBy {
|
|
2394
|
+
id
|
|
2395
|
+
email
|
|
2396
|
+
firstName
|
|
2397
|
+
lastName
|
|
2398
|
+
picture
|
|
2399
|
+
}
|
|
2400
|
+
lastContactedVia {
|
|
2401
|
+
actionType
|
|
2402
|
+
actionId
|
|
2403
|
+
campaignName
|
|
2404
|
+
campaignId
|
|
2405
|
+
callCampaignId
|
|
2406
|
+
combinedCampaignId
|
|
2407
|
+
stepType
|
|
2408
|
+
stepOrder
|
|
2409
|
+
noteType
|
|
2410
|
+
noteId
|
|
2411
|
+
}
|
|
2392
2412
|
status
|
|
2393
2413
|
}
|
|
2394
2414
|
}
|
|
@@ -3504,6 +3524,38 @@ function useForgotPasswordMutation(baseOptions) {
|
|
|
3504
3524
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3505
3525
|
return Apollo.useMutation(exports.ForgotPasswordDocument, options);
|
|
3506
3526
|
}
|
|
3527
|
+
exports.GenerateNewEmailDocument = (0, client_1.gql) `
|
|
3528
|
+
mutation GenerateNewEmail($prompt: String!, $variables: [String]) {
|
|
3529
|
+
generateNewEmail(prompt: $prompt, variables: $variables) {
|
|
3530
|
+
success
|
|
3531
|
+
message
|
|
3532
|
+
subject
|
|
3533
|
+
body
|
|
3534
|
+
}
|
|
3535
|
+
}
|
|
3536
|
+
`;
|
|
3537
|
+
/**
|
|
3538
|
+
* __useGenerateNewEmailMutation__
|
|
3539
|
+
*
|
|
3540
|
+
* To run a mutation, you first call `useGenerateNewEmailMutation` within a React component and pass it any options that fit your needs.
|
|
3541
|
+
* When your component renders, `useGenerateNewEmailMutation` returns a tuple that includes:
|
|
3542
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
3543
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
3544
|
+
*
|
|
3545
|
+
* @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;
|
|
3546
|
+
*
|
|
3547
|
+
* @example
|
|
3548
|
+
* const [generateNewEmailMutation, { data, loading, error }] = useGenerateNewEmailMutation({
|
|
3549
|
+
* variables: {
|
|
3550
|
+
* prompt: // value for 'prompt'
|
|
3551
|
+
* variables: // value for 'variables'
|
|
3552
|
+
* },
|
|
3553
|
+
* });
|
|
3554
|
+
*/
|
|
3555
|
+
function useGenerateNewEmailMutation(baseOptions) {
|
|
3556
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3557
|
+
return Apollo.useMutation(exports.GenerateNewEmailDocument, options);
|
|
3558
|
+
}
|
|
3507
3559
|
exports.HideRecordDocument = (0, client_1.gql) `
|
|
3508
3560
|
mutation HideRecord($input: HiddenRecordInput!) {
|
|
3509
3561
|
hideRecord(input: $input) {
|
|
@@ -7247,6 +7299,25 @@ exports.UpdateCompanyDocument = (0, client_1.gql) `
|
|
|
7247
7299
|
isProspect
|
|
7248
7300
|
purchaseMetalConfidence
|
|
7249
7301
|
lastContactedAt
|
|
7302
|
+
lastContactedBy {
|
|
7303
|
+
id
|
|
7304
|
+
email
|
|
7305
|
+
firstName
|
|
7306
|
+
lastName
|
|
7307
|
+
picture
|
|
7308
|
+
}
|
|
7309
|
+
lastContactedVia {
|
|
7310
|
+
actionType
|
|
7311
|
+
actionId
|
|
7312
|
+
campaignName
|
|
7313
|
+
campaignId
|
|
7314
|
+
callCampaignId
|
|
7315
|
+
combinedCampaignId
|
|
7316
|
+
stepType
|
|
7317
|
+
stepOrder
|
|
7318
|
+
noteType
|
|
7319
|
+
noteId
|
|
7320
|
+
}
|
|
7250
7321
|
status
|
|
7251
7322
|
}
|
|
7252
7323
|
}
|
|
@@ -10931,6 +11002,25 @@ exports.CompaniesDocument = (0, client_1.gql) `
|
|
|
10931
11002
|
isProspect
|
|
10932
11003
|
purchaseMetalConfidence
|
|
10933
11004
|
lastContactedAt
|
|
11005
|
+
lastContactedBy {
|
|
11006
|
+
id
|
|
11007
|
+
email
|
|
11008
|
+
firstName
|
|
11009
|
+
lastName
|
|
11010
|
+
picture
|
|
11011
|
+
}
|
|
11012
|
+
lastContactedVia {
|
|
11013
|
+
actionType
|
|
11014
|
+
actionId
|
|
11015
|
+
campaignName
|
|
11016
|
+
campaignId
|
|
11017
|
+
callCampaignId
|
|
11018
|
+
combinedCampaignId
|
|
11019
|
+
stepType
|
|
11020
|
+
stepOrder
|
|
11021
|
+
noteType
|
|
11022
|
+
noteId
|
|
11023
|
+
}
|
|
10934
11024
|
status
|
|
10935
11025
|
}
|
|
10936
11026
|
pagination {
|
|
@@ -11668,6 +11758,25 @@ exports.CompanyDocument = (0, client_1.gql) `
|
|
|
11668
11758
|
isProspect
|
|
11669
11759
|
purchaseMetalConfidence
|
|
11670
11760
|
lastContactedAt
|
|
11761
|
+
lastContactedBy {
|
|
11762
|
+
id
|
|
11763
|
+
email
|
|
11764
|
+
firstName
|
|
11765
|
+
lastName
|
|
11766
|
+
picture
|
|
11767
|
+
}
|
|
11768
|
+
lastContactedVia {
|
|
11769
|
+
actionType
|
|
11770
|
+
actionId
|
|
11771
|
+
campaignName
|
|
11772
|
+
campaignId
|
|
11773
|
+
callCampaignId
|
|
11774
|
+
combinedCampaignId
|
|
11775
|
+
stepType
|
|
11776
|
+
stepOrder
|
|
11777
|
+
noteType
|
|
11778
|
+
noteId
|
|
11779
|
+
}
|
|
11671
11780
|
status
|
|
11672
11781
|
}
|
|
11673
11782
|
}
|
|
@@ -13999,6 +14108,25 @@ exports.RecentHistoryDocument = (0, client_1.gql) `
|
|
|
13999
14108
|
isProspect
|
|
14000
14109
|
purchaseMetalConfidence
|
|
14001
14110
|
lastContactedAt
|
|
14111
|
+
lastContactedBy {
|
|
14112
|
+
id
|
|
14113
|
+
email
|
|
14114
|
+
firstName
|
|
14115
|
+
lastName
|
|
14116
|
+
picture
|
|
14117
|
+
}
|
|
14118
|
+
lastContactedVia {
|
|
14119
|
+
actionType
|
|
14120
|
+
actionId
|
|
14121
|
+
campaignName
|
|
14122
|
+
campaignId
|
|
14123
|
+
callCampaignId
|
|
14124
|
+
combinedCampaignId
|
|
14125
|
+
stepType
|
|
14126
|
+
stepOrder
|
|
14127
|
+
noteType
|
|
14128
|
+
noteId
|
|
14129
|
+
}
|
|
14002
14130
|
status
|
|
14003
14131
|
}
|
|
14004
14132
|
contactName
|
package/dist/mutations.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ export declare const UPDATE_EMAIL_TEMPLATE: import("@apollo/client").DocumentNod
|
|
|
59
59
|
export declare const DELETE_EMAIL_TEMPLATE: import("@apollo/client").DocumentNode;
|
|
60
60
|
export declare const EMAIL_TONE: import("@apollo/client").DocumentNode;
|
|
61
61
|
export declare const REDUCE_SPAM: import("@apollo/client").DocumentNode;
|
|
62
|
+
export declare const GENERATE_NEW_EMAIL: import("@apollo/client").DocumentNode;
|
|
62
63
|
export declare const SAVE_NYLAS_CONNECTION: import("@apollo/client").DocumentNode;
|
|
63
64
|
export declare const DISCONNECT_NYLAS_INTEGRATION: import("@apollo/client").DocumentNode;
|
|
64
65
|
export declare const CREATE_NOTIFICATION: import("@apollo/client").DocumentNode;
|
package/dist/mutations.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PAUSE_CAMPAIGN = exports.START_CAMPAIGN = exports.REMOVE_SEGMENT_FROM_CAMPAIGN = exports.ADD_SEGMENT_TO_CAMPAIGN = exports.DELETE_CAMPAIGN = exports.UPDATE_CAMPAIGN = exports.CREATE_CAMPAIGN = exports.REMOVE_CONTACTS_FROM_CAMPAIGN = exports.ADD_CONTACTS_TO_CAMPAIGN = exports.REMOVE_CONTACTS_FROM_SEGMENT = exports.ADD_CONTACTS_TO_SEGMENT = exports.DELETE_SEGMENT = exports.UPDATE_SEGMENT = exports.CREATE_SEGMENT = exports.DELETE_COMPANY = exports.UPDATE_COMPANY = exports.CREATE_COMPANY = exports.DELETE_CONTACT = exports.UPDATE_CONTACT = exports.CREATE_CONTACT = exports.SUBMIT_FEEDBACK = exports.LOGIN_WITH_MICROSOFT = exports.LOGIN_WITH_GOOGLE = exports.UNSUBSCRIBE_FROM_EMAILS = exports.VALIDATE_OTP_AND_RESET_PASSWORD = exports.CHANGE_PASSWORD = exports.UPDATE_USER_PROFILE = exports.LOGIN = exports.CANCEL_INVITATION = exports.REMOVE_MEMBER = exports.REJECT_INVITATION = exports.ACCEPT_INVITATION = exports.INVITE_USER = exports.UPLOAD_FILE = exports.FORGOT_PASSWORD = exports.SIGNUP = exports.REMOVE_CONTACTS_FROM_COMBINED_CAMPAIGN = exports.ADD_CONTACTS_TO_COMBINED_CAMPAIGN = exports.SEND_TEST_EMAIL_COMBINED = exports.SEND_MANUAL_EMAIL = exports.UPDATE_COMBINED_CAMPAIGN_LOGS = exports.UPDATE_COMBINED_CAMPAIGN_LOG = exports.CANCEL_COMBINED_CAMPAIGN = exports.RESUME_COMBINED_CAMPAIGN = exports.PAUSE_COMBINED_CAMPAIGN = exports.SCHEDULE_COMBINED_CAMPAIGN = exports.START_COMBINED_CAMPAIGN = exports.DELETE_COMBINED_CAMPAIGN = exports.UPDATE_COMBINED_CAMPAIGN = exports.CREATE_COMBINED_CAMPAIGN = void 0;
|
|
4
|
-
exports.UNHIDE_RECORD = exports.HIDE_RECORD = exports.DELETE_COMPANY_NOTE = exports.UPDATE_COMPANY_NOTE = exports.CREATE_COMPANY_NOTE = exports.UPDATE_CALL_CAMPAIGN_LOG = exports.CREATE_CALL_CAMPAIGN_LOG = exports.REMOVE_SEGMENT_FROM_CALL_CAMPAIGN = exports.ADD_SEGMENT_TO_CALL_CAMPAIGN = exports.DELETE_CALL_CAMPAIGN = exports.UPDATE_CALL_CAMPAIGN = exports.CREATE_CALL_CAMPAIGN = exports.DELETE_TASK = exports.UPDATE_TASK = exports.CREATE_TASK = exports.CLEAR_ALL_NOTIFICATIONS = exports.DELETE_NOTIFICATION = exports.MARK_ALL_NOTIFICATIONS_AS_READ = exports.MARK_NOTIFICATION_AS_READ = exports.CREATE_NOTIFICATION = exports.DISCONNECT_NYLAS_INTEGRATION = exports.SAVE_NYLAS_CONNECTION = exports.REDUCE_SPAM = exports.EMAIL_TONE = exports.DELETE_EMAIL_TEMPLATE = exports.UPDATE_EMAIL_TEMPLATE = exports.CREATE_EMAIL_TEMPLATE = exports.PREVIEW_CAMPAIGN_EMAIL = exports.SCHEDULE_CAMPAIGN = exports.SEND_EMAIL_TO_CONTACT = exports.SEND_TEST_EMAIL = exports.CANCEL_CAMPAIGN = exports.COMPLETE_CAMPAIGN = void 0;
|
|
4
|
+
exports.UNHIDE_RECORD = exports.HIDE_RECORD = exports.DELETE_COMPANY_NOTE = exports.UPDATE_COMPANY_NOTE = exports.CREATE_COMPANY_NOTE = exports.UPDATE_CALL_CAMPAIGN_LOG = exports.CREATE_CALL_CAMPAIGN_LOG = exports.REMOVE_SEGMENT_FROM_CALL_CAMPAIGN = exports.ADD_SEGMENT_TO_CALL_CAMPAIGN = exports.DELETE_CALL_CAMPAIGN = exports.UPDATE_CALL_CAMPAIGN = exports.CREATE_CALL_CAMPAIGN = exports.DELETE_TASK = exports.UPDATE_TASK = exports.CREATE_TASK = exports.CLEAR_ALL_NOTIFICATIONS = exports.DELETE_NOTIFICATION = exports.MARK_ALL_NOTIFICATIONS_AS_READ = exports.MARK_NOTIFICATION_AS_READ = exports.CREATE_NOTIFICATION = exports.DISCONNECT_NYLAS_INTEGRATION = exports.SAVE_NYLAS_CONNECTION = exports.GENERATE_NEW_EMAIL = exports.REDUCE_SPAM = exports.EMAIL_TONE = exports.DELETE_EMAIL_TEMPLATE = exports.UPDATE_EMAIL_TEMPLATE = exports.CREATE_EMAIL_TEMPLATE = exports.PREVIEW_CAMPAIGN_EMAIL = exports.SCHEDULE_CAMPAIGN = exports.SEND_EMAIL_TO_CONTACT = exports.SEND_TEST_EMAIL = exports.CANCEL_CAMPAIGN = exports.COMPLETE_CAMPAIGN = void 0;
|
|
5
5
|
const client_1 = require("@apollo/client");
|
|
6
6
|
exports.CREATE_COMBINED_CAMPAIGN = (0, client_1.gql) `
|
|
7
7
|
mutation CreateCombinedCampaign($input: CombinedCampaignInput!, $steps: [CombinedCampaignStepInput]) {
|
|
@@ -2370,6 +2370,25 @@ mutation CreateCompany($input: CompanyInput) {
|
|
|
2370
2370
|
isProspect
|
|
2371
2371
|
purchaseMetalConfidence
|
|
2372
2372
|
lastContactedAt
|
|
2373
|
+
lastContactedBy {
|
|
2374
|
+
id
|
|
2375
|
+
email
|
|
2376
|
+
firstName
|
|
2377
|
+
lastName
|
|
2378
|
+
picture
|
|
2379
|
+
}
|
|
2380
|
+
lastContactedVia {
|
|
2381
|
+
actionType
|
|
2382
|
+
actionId
|
|
2383
|
+
campaignName
|
|
2384
|
+
campaignId
|
|
2385
|
+
callCampaignId
|
|
2386
|
+
combinedCampaignId
|
|
2387
|
+
stepType
|
|
2388
|
+
stepOrder
|
|
2389
|
+
noteType
|
|
2390
|
+
noteId
|
|
2391
|
+
}
|
|
2373
2392
|
status
|
|
2374
2393
|
}
|
|
2375
2394
|
}
|
|
@@ -3068,6 +3087,25 @@ mutation UpdateCompany($input: CompanyInput) {
|
|
|
3068
3087
|
isProspect
|
|
3069
3088
|
purchaseMetalConfidence
|
|
3070
3089
|
lastContactedAt
|
|
3090
|
+
lastContactedBy {
|
|
3091
|
+
id
|
|
3092
|
+
email
|
|
3093
|
+
firstName
|
|
3094
|
+
lastName
|
|
3095
|
+
picture
|
|
3096
|
+
}
|
|
3097
|
+
lastContactedVia {
|
|
3098
|
+
actionType
|
|
3099
|
+
actionId
|
|
3100
|
+
campaignName
|
|
3101
|
+
campaignId
|
|
3102
|
+
callCampaignId
|
|
3103
|
+
combinedCampaignId
|
|
3104
|
+
stepType
|
|
3105
|
+
stepOrder
|
|
3106
|
+
noteType
|
|
3107
|
+
noteId
|
|
3108
|
+
}
|
|
3071
3109
|
status
|
|
3072
3110
|
}
|
|
3073
3111
|
}
|
|
@@ -4135,6 +4173,15 @@ mutation ReduceSpam($input: ReduceSpamInput!) {
|
|
|
4135
4173
|
}
|
|
4136
4174
|
}
|
|
4137
4175
|
}`;
|
|
4176
|
+
exports.GENERATE_NEW_EMAIL = (0, client_1.gql) `
|
|
4177
|
+
mutation GenerateNewEmail($prompt: String!, $variables: [String]) {
|
|
4178
|
+
generateNewEmail(prompt: $prompt, variables: $variables) {
|
|
4179
|
+
success
|
|
4180
|
+
message
|
|
4181
|
+
subject
|
|
4182
|
+
body
|
|
4183
|
+
}
|
|
4184
|
+
}`;
|
|
4138
4185
|
exports.SAVE_NYLAS_CONNECTION = (0, client_1.gql) `
|
|
4139
4186
|
mutation SaveNylasConnection($input: SaveNylasConnectionInput!) {
|
|
4140
4187
|
saveNylasConnection(input: $input) {
|
package/dist/queries.js
CHANGED
|
@@ -1170,6 +1170,25 @@ query RecentHistory($filter: RecentHistoryFilterInput, $sort: RecentHistorySortI
|
|
|
1170
1170
|
isProspect
|
|
1171
1171
|
purchaseMetalConfidence
|
|
1172
1172
|
lastContactedAt
|
|
1173
|
+
lastContactedBy {
|
|
1174
|
+
id
|
|
1175
|
+
email
|
|
1176
|
+
firstName
|
|
1177
|
+
lastName
|
|
1178
|
+
picture
|
|
1179
|
+
}
|
|
1180
|
+
lastContactedVia {
|
|
1181
|
+
actionType
|
|
1182
|
+
actionId
|
|
1183
|
+
campaignName
|
|
1184
|
+
campaignId
|
|
1185
|
+
callCampaignId
|
|
1186
|
+
combinedCampaignId
|
|
1187
|
+
stepType
|
|
1188
|
+
stepOrder
|
|
1189
|
+
noteType
|
|
1190
|
+
noteId
|
|
1191
|
+
}
|
|
1173
1192
|
status
|
|
1174
1193
|
}
|
|
1175
1194
|
contactName
|
|
@@ -4041,6 +4060,25 @@ query Companies($filters: CompanyFilterInput, $pagination: PaginationInput, $sor
|
|
|
4041
4060
|
isProspect
|
|
4042
4061
|
purchaseMetalConfidence
|
|
4043
4062
|
lastContactedAt
|
|
4063
|
+
lastContactedBy {
|
|
4064
|
+
id
|
|
4065
|
+
email
|
|
4066
|
+
firstName
|
|
4067
|
+
lastName
|
|
4068
|
+
picture
|
|
4069
|
+
}
|
|
4070
|
+
lastContactedVia {
|
|
4071
|
+
actionType
|
|
4072
|
+
actionId
|
|
4073
|
+
campaignName
|
|
4074
|
+
campaignId
|
|
4075
|
+
callCampaignId
|
|
4076
|
+
combinedCampaignId
|
|
4077
|
+
stepType
|
|
4078
|
+
stepOrder
|
|
4079
|
+
noteType
|
|
4080
|
+
noteId
|
|
4081
|
+
}
|
|
4044
4082
|
status
|
|
4045
4083
|
}
|
|
4046
4084
|
pagination {
|
|
@@ -4905,6 +4943,25 @@ query Company($id: String) {
|
|
|
4905
4943
|
isProspect
|
|
4906
4944
|
purchaseMetalConfidence
|
|
4907
4945
|
lastContactedAt
|
|
4946
|
+
lastContactedBy {
|
|
4947
|
+
id
|
|
4948
|
+
email
|
|
4949
|
+
firstName
|
|
4950
|
+
lastName
|
|
4951
|
+
picture
|
|
4952
|
+
}
|
|
4953
|
+
lastContactedVia {
|
|
4954
|
+
actionType
|
|
4955
|
+
actionId
|
|
4956
|
+
campaignName
|
|
4957
|
+
campaignId
|
|
4958
|
+
callCampaignId
|
|
4959
|
+
combinedCampaignId
|
|
4960
|
+
stepType
|
|
4961
|
+
stepOrder
|
|
4962
|
+
noteType
|
|
4963
|
+
noteId
|
|
4964
|
+
}
|
|
4908
4965
|
status
|
|
4909
4966
|
}
|
|
4910
4967
|
}`;
|
package/dist/sdk.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export declare class CloudForgeSDK {
|
|
|
44
44
|
disconnectNylasIntegration(): Promise<import("@apollo/client").FetchResult<any>>;
|
|
45
45
|
emailTone(input: EmailToneInput): Promise<import("@apollo/client").FetchResult<any>>;
|
|
46
46
|
forgotPassword(email: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
47
|
+
generateNewEmail(prompt: string, variables?: string[]): Promise<import("@apollo/client").FetchResult<any>>;
|
|
47
48
|
hideRecord(input: HiddenRecordInput): Promise<import("@apollo/client").FetchResult<any>>;
|
|
48
49
|
inviteUser(input: InviteUserInput): Promise<import("@apollo/client").FetchResult<any>>;
|
|
49
50
|
login(email: string, password: string): Promise<import("@apollo/client").FetchResult<any>>;
|
package/dist/sdk.js
CHANGED
|
@@ -247,6 +247,12 @@ class CloudForgeSDK {
|
|
|
247
247
|
variables: { email }
|
|
248
248
|
});
|
|
249
249
|
}
|
|
250
|
+
async generateNewEmail(prompt, variables) {
|
|
251
|
+
return this.apolloClient.mutate({
|
|
252
|
+
mutation: mutations_1.GENERATE_NEW_EMAIL,
|
|
253
|
+
variables: { prompt, variables }
|
|
254
|
+
});
|
|
255
|
+
}
|
|
250
256
|
async hideRecord(input) {
|
|
251
257
|
return this.apolloClient.mutate({
|
|
252
258
|
mutation: mutations_1.HIDE_RECORD,
|