cf-service-sdk 0.0.27 → 0.0.28
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 +79 -0
- package/dist/generated/graphql.js +38 -3
- package/dist/mutations.d.ts +1 -0
- package/dist/mutations.js +14 -2
- package/dist/sdk.d.ts +2 -1
- package/dist/sdk.js +6 -0
- package/package.json +1 -1
|
@@ -1250,6 +1250,34 @@ export type EmailTemplateType = {
|
|
|
1250
1250
|
updatedAt: Scalars['DateTime']['output'];
|
|
1251
1251
|
uuid: Scalars['UUID']['output'];
|
|
1252
1252
|
};
|
|
1253
|
+
/**
|
|
1254
|
+
* EmailTone - Enhance email with specified tone using Claude LLM
|
|
1255
|
+
* Returns 2-3 variations of the email with the desired tone applied
|
|
1256
|
+
*/
|
|
1257
|
+
export type EmailTone = {
|
|
1258
|
+
__typename?: 'EmailTone';
|
|
1259
|
+
message?: Maybe<Scalars['String']['output']>;
|
|
1260
|
+
success?: Maybe<Scalars['Boolean']['output']>;
|
|
1261
|
+
variations?: Maybe<Array<Maybe<EmailVariationType>>>;
|
|
1262
|
+
};
|
|
1263
|
+
/** EmailToneInput for enhancing email tone */
|
|
1264
|
+
export type EmailToneInput = {
|
|
1265
|
+
/** Original email content */
|
|
1266
|
+
emailContent: Scalars['String']['input'];
|
|
1267
|
+
/** Number of variations to generate (default: 3) */
|
|
1268
|
+
numVariations?: InputMaybe<Scalars['Int']['input']>;
|
|
1269
|
+
/** Original email subject (optional) */
|
|
1270
|
+
subject?: InputMaybe<Scalars['String']['input']>;
|
|
1271
|
+
/** Tone instruction (e.g., 'Persuasive', 'Technical', 'Friendly') */
|
|
1272
|
+
toneInstruction: Scalars['String']['input'];
|
|
1273
|
+
};
|
|
1274
|
+
/** EmailVariationType - A single email variation with applied tone */
|
|
1275
|
+
export type EmailVariationType = {
|
|
1276
|
+
__typename?: 'EmailVariationType';
|
|
1277
|
+
content?: Maybe<Scalars['String']['output']>;
|
|
1278
|
+
subject?: Maybe<Scalars['String']['output']>;
|
|
1279
|
+
toneApplied?: Maybe<Scalars['String']['output']>;
|
|
1280
|
+
};
|
|
1253
1281
|
export type EmployeeSizeData = {
|
|
1254
1282
|
__typename?: 'EmployeeSizeData';
|
|
1255
1283
|
/** Employee size abbreviation */
|
|
@@ -1427,6 +1455,11 @@ export type Mutation = {
|
|
|
1427
1455
|
deleteTask?: Maybe<DeleteTask>;
|
|
1428
1456
|
/** DisconnectNylasIntegration - Disconnect the current user's Nylas integration */
|
|
1429
1457
|
disconnectNylasIntegration?: Maybe<DisconnectNylasIntegration>;
|
|
1458
|
+
/**
|
|
1459
|
+
* EmailTone - Enhance email with specified tone using Claude LLM
|
|
1460
|
+
* Returns 2-3 variations of the email with the desired tone applied
|
|
1461
|
+
*/
|
|
1462
|
+
emailTone?: Maybe<EmailTone>;
|
|
1430
1463
|
/** ForgotPassword - Request a password reset */
|
|
1431
1464
|
forgotPassword?: Maybe<ForgotPassword>;
|
|
1432
1465
|
/** Mutation to hide a record (contact or company) from query results */
|
|
@@ -1597,6 +1630,10 @@ export type MutationDeleteTaskArgs = {
|
|
|
1597
1630
|
id: Scalars['Int']['input'];
|
|
1598
1631
|
};
|
|
1599
1632
|
/** Mutations */
|
|
1633
|
+
export type MutationEmailToneArgs = {
|
|
1634
|
+
input: EmailToneInput;
|
|
1635
|
+
};
|
|
1636
|
+
/** Mutations */
|
|
1600
1637
|
export type MutationForgotPasswordArgs = {
|
|
1601
1638
|
email: Scalars['String']['input'];
|
|
1602
1639
|
};
|
|
@@ -4487,6 +4524,23 @@ export type DisconnectNylasIntegrationMutation = {
|
|
|
4487
4524
|
message?: string | null;
|
|
4488
4525
|
} | null;
|
|
4489
4526
|
};
|
|
4527
|
+
export type EmailToneMutationVariables = Exact<{
|
|
4528
|
+
input: EmailToneInput;
|
|
4529
|
+
}>;
|
|
4530
|
+
export type EmailToneMutation = {
|
|
4531
|
+
__typename?: 'Mutation';
|
|
4532
|
+
emailTone?: {
|
|
4533
|
+
__typename?: 'EmailTone';
|
|
4534
|
+
success?: boolean | null;
|
|
4535
|
+
message?: string | null;
|
|
4536
|
+
variations?: Array<{
|
|
4537
|
+
__typename?: 'EmailVariationType';
|
|
4538
|
+
content?: string | null;
|
|
4539
|
+
subject?: string | null;
|
|
4540
|
+
toneApplied?: string | null;
|
|
4541
|
+
} | null> | null;
|
|
4542
|
+
} | null;
|
|
4543
|
+
};
|
|
4490
4544
|
export type ForgotPasswordMutationVariables = Exact<{
|
|
4491
4545
|
email: Scalars['String']['input'];
|
|
4492
4546
|
}>;
|
|
@@ -11700,6 +11754,31 @@ export declare function useDisconnectNylasIntegrationMutation(baseOptions?: Apol
|
|
|
11700
11754
|
export type DisconnectNylasIntegrationMutationHookResult = ReturnType<typeof useDisconnectNylasIntegrationMutation>;
|
|
11701
11755
|
export type DisconnectNylasIntegrationMutationResult = Apollo.MutationResult<DisconnectNylasIntegrationMutation>;
|
|
11702
11756
|
export type DisconnectNylasIntegrationMutationOptions = Apollo.BaseMutationOptions<DisconnectNylasIntegrationMutation, DisconnectNylasIntegrationMutationVariables>;
|
|
11757
|
+
export declare const EmailToneDocument: Apollo.DocumentNode;
|
|
11758
|
+
export type EmailToneMutationFn = Apollo.MutationFunction<EmailToneMutation, EmailToneMutationVariables>;
|
|
11759
|
+
/**
|
|
11760
|
+
* __useEmailToneMutation__
|
|
11761
|
+
*
|
|
11762
|
+
* To run a mutation, you first call `useEmailToneMutation` within a React component and pass it any options that fit your needs.
|
|
11763
|
+
* When your component renders, `useEmailToneMutation` returns a tuple that includes:
|
|
11764
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
11765
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
11766
|
+
*
|
|
11767
|
+
* @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;
|
|
11768
|
+
*
|
|
11769
|
+
* @example
|
|
11770
|
+
* const [emailToneMutation, { data, loading, error }] = useEmailToneMutation({
|
|
11771
|
+
* variables: {
|
|
11772
|
+
* input: // value for 'input'
|
|
11773
|
+
* },
|
|
11774
|
+
* });
|
|
11775
|
+
*/
|
|
11776
|
+
export declare function useEmailToneMutation(baseOptions?: Apollo.MutationHookOptions<EmailToneMutation, EmailToneMutationVariables>): Apollo.MutationTuple<EmailToneMutation, Exact<{
|
|
11777
|
+
input: EmailToneInput;
|
|
11778
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
11779
|
+
export type EmailToneMutationHookResult = ReturnType<typeof useEmailToneMutation>;
|
|
11780
|
+
export type EmailToneMutationResult = Apollo.MutationResult<EmailToneMutation>;
|
|
11781
|
+
export type EmailToneMutationOptions = Apollo.BaseMutationOptions<EmailToneMutation, EmailToneMutationVariables>;
|
|
11703
11782
|
export declare const ForgotPasswordDocument: Apollo.DocumentNode;
|
|
11704
11783
|
export type ForgotPasswordMutationFn = Apollo.MutationFunction<ForgotPasswordMutation, ForgotPasswordMutationVariables>;
|
|
11705
11784
|
/**
|
|
@@ -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 = void 0;
|
|
36
|
+
exports.PreviewCampaignEmailDocument = exports.PauseCampaignDocument = exports.MarkNotificationAsReadDocument = exports.MarkAllNotificationsAsReadDocument = exports.LoginWithMicrosoftDocument = exports.LoginWithGoogleDocument = exports.LoginDocument = exports.InviteUserDocument = exports.HideRecordDocument = exports.ForgotPasswordDocument = exports.EmailToneDocument = exports.DisconnectNylasIntegrationDocument = exports.DeleteTaskDocument = exports.DeleteSegmentDocument = exports.DeleteNotificationDocument = exports.DeleteEmailTemplateDocument = exports.DeleteContactDocument = exports.DeleteCompanyNoteDocument = exports.DeleteCompanyDocument = exports.DeleteCampaignDocument = exports.DeleteCallCampaignDocument = exports.CreateTaskDocument = exports.CreateSegmentDocument = exports.CreateNotificationDocument = exports.CreateEmailTemplateDocument = exports.CreateContactDocument = exports.CreateCompanyNoteDocument = exports.CreateCompanyDocument = exports.CreateCampaignDocument = exports.CreateCallCampaignLogDocument = exports.CreateCallCampaignDocument = exports.CompleteCampaignDocument = exports.ChangePasswordDocument = exports.CancelInvitationDocument = exports.CancelCampaignDocument = exports.AddSegmentToCampaignDocument = exports.AddSegmentToCallCampaignDocument = exports.AddContactsToSegmentDocument = exports.AcceptInvitationDocument = exports.SortDirection = exports.RecentHistorySortField = exports.NotificationTypeEnum = exports.ContactSortField = exports.CompanySortField = exports.CompanyNoteSortField = exports.CallCampaignLogOutcomeEnum = exports.AppNotificationNotificationTypeChoices = exports.AppEmailTemplateCampaignTypeChoices = exports.AppBusinessProfileStateChoices = exports.AppAccountInvitationStatusChoices = void 0;
|
|
37
|
+
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.CampaignsDocument = exports.CampaignStatsDocument = exports.CampaignLogsDocument = exports.CampaignAnalyticsDocument = exports.CampaignDocument = exports.CallCampaignsDocument = 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.UpdateCampaignDocument = exports.UpdateCallCampaignLogDocument = exports.UpdateCallCampaignDocument = exports.UnsubscribeFromEmailsDocument = exports.UnhideRecordDocument = exports.SubmitFeedbackDocument = exports.StartCampaignDocument = exports.SignupDocument = exports.SendTestEmailDocument = exports.SendEmailToContactDocument = exports.ScheduleCampaignDocument = exports.SaveNylasConnectionDocument = exports.RemoveSegmentFromCampaignDocument = exports.RemoveSegmentFromCallCampaignDocument = exports.RemoveMemberDocument = exports.RemoveContactsFromSegmentDocument = exports.RejectInvitationDocument = 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 = void 0;
|
|
39
39
|
exports.useAcceptInvitationMutation = useAcceptInvitationMutation;
|
|
40
40
|
exports.useAddContactsToSegmentMutation = useAddContactsToSegmentMutation;
|
|
41
41
|
exports.useAddSegmentToCallCampaignMutation = useAddSegmentToCallCampaignMutation;
|
|
@@ -64,6 +64,7 @@ exports.useDeleteNotificationMutation = useDeleteNotificationMutation;
|
|
|
64
64
|
exports.useDeleteSegmentMutation = useDeleteSegmentMutation;
|
|
65
65
|
exports.useDeleteTaskMutation = useDeleteTaskMutation;
|
|
66
66
|
exports.useDisconnectNylasIntegrationMutation = useDisconnectNylasIntegrationMutation;
|
|
67
|
+
exports.useEmailToneMutation = useEmailToneMutation;
|
|
67
68
|
exports.useForgotPasswordMutation = useForgotPasswordMutation;
|
|
68
69
|
exports.useHideRecordMutation = useHideRecordMutation;
|
|
69
70
|
exports.useInviteUserMutation = useInviteUserMutation;
|
|
@@ -2775,6 +2776,40 @@ function useDisconnectNylasIntegrationMutation(baseOptions) {
|
|
|
2775
2776
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2776
2777
|
return Apollo.useMutation(exports.DisconnectNylasIntegrationDocument, options);
|
|
2777
2778
|
}
|
|
2779
|
+
exports.EmailToneDocument = (0, client_1.gql) `
|
|
2780
|
+
mutation EmailTone($input: EmailToneInput!) {
|
|
2781
|
+
emailTone(input: $input) {
|
|
2782
|
+
success
|
|
2783
|
+
message
|
|
2784
|
+
variations {
|
|
2785
|
+
content
|
|
2786
|
+
subject
|
|
2787
|
+
toneApplied
|
|
2788
|
+
}
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
`;
|
|
2792
|
+
/**
|
|
2793
|
+
* __useEmailToneMutation__
|
|
2794
|
+
*
|
|
2795
|
+
* To run a mutation, you first call `useEmailToneMutation` within a React component and pass it any options that fit your needs.
|
|
2796
|
+
* When your component renders, `useEmailToneMutation` returns a tuple that includes:
|
|
2797
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
2798
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
2799
|
+
*
|
|
2800
|
+
* @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;
|
|
2801
|
+
*
|
|
2802
|
+
* @example
|
|
2803
|
+
* const [emailToneMutation, { data, loading, error }] = useEmailToneMutation({
|
|
2804
|
+
* variables: {
|
|
2805
|
+
* input: // value for 'input'
|
|
2806
|
+
* },
|
|
2807
|
+
* });
|
|
2808
|
+
*/
|
|
2809
|
+
function useEmailToneMutation(baseOptions) {
|
|
2810
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2811
|
+
return Apollo.useMutation(exports.EmailToneDocument, options);
|
|
2812
|
+
}
|
|
2778
2813
|
exports.ForgotPasswordDocument = (0, client_1.gql) `
|
|
2779
2814
|
mutation ForgotPassword($email: String!) {
|
|
2780
2815
|
forgotPassword(email: $email) {
|
package/dist/mutations.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export declare const PREVIEW_CAMPAIGN_EMAIL: import("@apollo/client").DocumentNo
|
|
|
41
41
|
export declare const CREATE_EMAIL_TEMPLATE: import("@apollo/client").DocumentNode;
|
|
42
42
|
export declare const UPDATE_EMAIL_TEMPLATE: import("@apollo/client").DocumentNode;
|
|
43
43
|
export declare const DELETE_EMAIL_TEMPLATE: import("@apollo/client").DocumentNode;
|
|
44
|
+
export declare const EMAIL_TONE: import("@apollo/client").DocumentNode;
|
|
44
45
|
export declare const SAVE_NYLAS_CONNECTION: import("@apollo/client").DocumentNode;
|
|
45
46
|
export declare const DISCONNECT_NYLAS_INTEGRATION: import("@apollo/client").DocumentNode;
|
|
46
47
|
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
|
-
exports.
|
|
4
|
-
exports.UNHIDE_RECORD = exports.HIDE_RECORD = exports.DELETE_COMPANY_NOTE = exports.UPDATE_COMPANY_NOTE = exports.CREATE_COMPANY_NOTE = exports.UPDATE_CALL_CAMPAIGN_LOG = exports.CREATE_CALL_CAMPAIGN_LOG = exports.REMOVE_SEGMENT_FROM_CALL_CAMPAIGN = exports.ADD_SEGMENT_TO_CALL_CAMPAIGN = exports.DELETE_CALL_CAMPAIGN = exports.UPDATE_CALL_CAMPAIGN = exports.CREATE_CALL_CAMPAIGN = exports.DELETE_TASK = exports.UPDATE_TASK = void 0;
|
|
3
|
+
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.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_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 = 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 = void 0;
|
|
5
5
|
const client_1 = require("@apollo/client");
|
|
6
6
|
exports.SIGNUP = (0, client_1.gql) `
|
|
7
7
|
mutation Signup($input: SignupInput!) {
|
|
@@ -2281,6 +2281,18 @@ mutation DeleteEmailTemplate($uuid: UUID!) {
|
|
|
2281
2281
|
message
|
|
2282
2282
|
}
|
|
2283
2283
|
}`;
|
|
2284
|
+
exports.EMAIL_TONE = (0, client_1.gql) `
|
|
2285
|
+
mutation EmailTone($input: EmailToneInput!) {
|
|
2286
|
+
emailTone(input: $input) {
|
|
2287
|
+
success
|
|
2288
|
+
message
|
|
2289
|
+
variations {
|
|
2290
|
+
content
|
|
2291
|
+
subject
|
|
2292
|
+
toneApplied
|
|
2293
|
+
}
|
|
2294
|
+
}
|
|
2295
|
+
}`;
|
|
2284
2296
|
exports.SAVE_NYLAS_CONNECTION = (0, client_1.gql) `
|
|
2285
2297
|
mutation SaveNylasConnection($input: SaveNylasConnectionInput!) {
|
|
2286
2298
|
saveNylasConnection(input: $input) {
|
package/dist/sdk.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CloudForgeClientOptions } from "./client";
|
|
2
|
-
import { CompanyFilterInput, CompanyNoteFilterInput, CompanyNoteInput, CompanyNoteSortInput, CompanySortInput, ContactFilterInput, ContactSortInput, CreateCallCampaignLogMutationVariables, CreateCallCampaignMutationVariables, CreateCampaignMutationVariables, CreateCompanyMutationVariables, CreateContactMutationVariables, CreateEmailTemplateMutationVariables, CreateNotificationMutationVariables, CreateSegmentMutationVariables, CreateTaskMutationVariables, FileUploadInput, HiddenRecordInput, InvitationResponseInput, InviteUserInput, MicrosoftUserInput, PaginationInput, RecentHistoryFilterInput, RecentHistorySortInput, SaveNylasConnectionMutationVariables, SegmentFilterInput, SignupInput, SubmitFeedbackMutationVariables, TaskFilterInput, UpdateCallCampaignLogMutationVariables, UpdateCallCampaignMutationVariables, UpdateCampaignMutationVariables, UpdateCompanyMutationVariables, UpdateContactMutationVariables, UpdateEmailTemplateMutationVariables, UpdateSegmentMutationVariables, UpdateTaskMutationVariables, UpdateUserProfileMutationVariables, UserTypeInput } from "./generated/graphql";
|
|
2
|
+
import { CompanyFilterInput, CompanyNoteFilterInput, CompanyNoteInput, CompanyNoteSortInput, CompanySortInput, ContactFilterInput, ContactSortInput, CreateCallCampaignLogMutationVariables, CreateCallCampaignMutationVariables, CreateCampaignMutationVariables, CreateCompanyMutationVariables, CreateContactMutationVariables, CreateEmailTemplateMutationVariables, CreateNotificationMutationVariables, CreateSegmentMutationVariables, CreateTaskMutationVariables, EmailToneInput, FileUploadInput, HiddenRecordInput, InvitationResponseInput, InviteUserInput, MicrosoftUserInput, PaginationInput, RecentHistoryFilterInput, RecentHistorySortInput, SaveNylasConnectionMutationVariables, SegmentFilterInput, SignupInput, SubmitFeedbackMutationVariables, TaskFilterInput, UpdateCallCampaignLogMutationVariables, UpdateCallCampaignMutationVariables, UpdateCampaignMutationVariables, UpdateCompanyMutationVariables, UpdateContactMutationVariables, UpdateEmailTemplateMutationVariables, UpdateSegmentMutationVariables, UpdateTaskMutationVariables, UpdateUserProfileMutationVariables, UserTypeInput } from "./generated/graphql";
|
|
3
3
|
export declare class CloudForgeSDK {
|
|
4
4
|
private client;
|
|
5
5
|
private apolloClient;
|
|
@@ -36,6 +36,7 @@ export declare class CloudForgeSDK {
|
|
|
36
36
|
deleteSegment(id: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
37
37
|
deleteTask(id: number): Promise<import("@apollo/client").FetchResult<any>>;
|
|
38
38
|
disconnectNylasIntegration(): Promise<import("@apollo/client").FetchResult<any>>;
|
|
39
|
+
emailTone(input: EmailToneInput): Promise<import("@apollo/client").FetchResult<any>>;
|
|
39
40
|
forgotPassword(email: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
40
41
|
hideRecord(input: HiddenRecordInput): Promise<import("@apollo/client").FetchResult<any>>;
|
|
41
42
|
inviteUser(input: InviteUserInput): Promise<import("@apollo/client").FetchResult<any>>;
|
package/dist/sdk.js
CHANGED
|
@@ -200,6 +200,12 @@ class CloudForgeSDK {
|
|
|
200
200
|
mutation: mutations_1.DISCONNECT_NYLAS_INTEGRATION
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
|
+
async emailTone(input) {
|
|
204
|
+
return this.apolloClient.mutate({
|
|
205
|
+
mutation: mutations_1.EMAIL_TONE,
|
|
206
|
+
variables: { ...input }
|
|
207
|
+
});
|
|
208
|
+
}
|
|
203
209
|
async forgotPassword(email) {
|
|
204
210
|
return this.apolloClient.mutate({
|
|
205
211
|
mutation: mutations_1.FORGOT_PASSWORD,
|