cf-service-sdk 0.0.26 → 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 +124 -0
- package/dist/generated/graphql.js +68 -3
- package/dist/mutations.d.ts +1 -0
- package/dist/mutations.js +26 -2
- package/dist/queries.js +18 -0
- package/dist/sdk.d.ts +2 -1
- package/dist/sdk.js +6 -0
- package/package.json +1 -1
|
@@ -693,6 +693,8 @@ export type CompanyFilterInput = {
|
|
|
693
693
|
showOwned?: InputMaybe<Scalars['Boolean']['input']>;
|
|
694
694
|
/** Filter by state(s) */
|
|
695
695
|
state?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
696
|
+
/** Filter by tag ID(s) */
|
|
697
|
+
tag?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>;
|
|
696
698
|
/** Filter by zip code(s) - searches all company locations */
|
|
697
699
|
zipCode?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
698
700
|
};
|
|
@@ -872,6 +874,7 @@ export type CompanyObject = {
|
|
|
872
874
|
primaryLocation?: Maybe<CompanyLocationType>;
|
|
873
875
|
productMetalScores?: Maybe<Array<Maybe<CompanyProductMetalScoreObject>>>;
|
|
874
876
|
state?: Maybe<Scalars['String']['output']>;
|
|
877
|
+
tags?: Maybe<Array<Maybe<TagObject>>>;
|
|
875
878
|
tasks?: Maybe<Array<Maybe<TaskObject>>>;
|
|
876
879
|
twitterUrl?: Maybe<Scalars['String']['output']>;
|
|
877
880
|
updatedAt: Scalars['DateTime']['output'];
|
|
@@ -1247,6 +1250,34 @@ export type EmailTemplateType = {
|
|
|
1247
1250
|
updatedAt: Scalars['DateTime']['output'];
|
|
1248
1251
|
uuid: Scalars['UUID']['output'];
|
|
1249
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
|
+
};
|
|
1250
1281
|
export type EmployeeSizeData = {
|
|
1251
1282
|
__typename?: 'EmployeeSizeData';
|
|
1252
1283
|
/** Employee size abbreviation */
|
|
@@ -1424,6 +1455,11 @@ export type Mutation = {
|
|
|
1424
1455
|
deleteTask?: Maybe<DeleteTask>;
|
|
1425
1456
|
/** DisconnectNylasIntegration - Disconnect the current user's Nylas integration */
|
|
1426
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>;
|
|
1427
1463
|
/** ForgotPassword - Request a password reset */
|
|
1428
1464
|
forgotPassword?: Maybe<ForgotPassword>;
|
|
1429
1465
|
/** Mutation to hide a record (contact or company) from query results */
|
|
@@ -1594,6 +1630,10 @@ export type MutationDeleteTaskArgs = {
|
|
|
1594
1630
|
id: Scalars['Int']['input'];
|
|
1595
1631
|
};
|
|
1596
1632
|
/** Mutations */
|
|
1633
|
+
export type MutationEmailToneArgs = {
|
|
1634
|
+
input: EmailToneInput;
|
|
1635
|
+
};
|
|
1636
|
+
/** Mutations */
|
|
1597
1637
|
export type MutationForgotPasswordArgs = {
|
|
1598
1638
|
email: Scalars['String']['input'];
|
|
1599
1639
|
};
|
|
@@ -2375,6 +2415,13 @@ export type SubmitFeedback = {
|
|
|
2375
2415
|
message?: Maybe<Scalars['String']['output']>;
|
|
2376
2416
|
success?: Maybe<Scalars['Boolean']['output']>;
|
|
2377
2417
|
};
|
|
2418
|
+
export type TagObject = {
|
|
2419
|
+
__typename?: 'TagObject';
|
|
2420
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
2421
|
+
id?: Maybe<Scalars['ID']['output']>;
|
|
2422
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
2423
|
+
pk?: Maybe<Scalars['ID']['output']>;
|
|
2424
|
+
};
|
|
2378
2425
|
export type TaskFilterInput = {
|
|
2379
2426
|
companyId?: InputMaybe<Scalars['Int']['input']>;
|
|
2380
2427
|
dueDateFrom?: InputMaybe<Scalars['DateTime']['input']>;
|
|
@@ -3199,6 +3246,13 @@ export type CreateCompanyMutation = {
|
|
|
3199
3246
|
averageScore?: number | null;
|
|
3200
3247
|
ownedByUser?: boolean | null;
|
|
3201
3248
|
isProspect?: boolean | null;
|
|
3249
|
+
tags?: Array<{
|
|
3250
|
+
__typename?: 'TagObject';
|
|
3251
|
+
id?: string | null;
|
|
3252
|
+
pk?: string | null;
|
|
3253
|
+
name?: string | null;
|
|
3254
|
+
description?: string | null;
|
|
3255
|
+
} | null> | null;
|
|
3202
3256
|
locations?: Array<{
|
|
3203
3257
|
__typename?: 'CompanyLocationType';
|
|
3204
3258
|
id?: string | null;
|
|
@@ -4470,6 +4524,23 @@ export type DisconnectNylasIntegrationMutation = {
|
|
|
4470
4524
|
message?: string | null;
|
|
4471
4525
|
} | null;
|
|
4472
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
|
+
};
|
|
4473
4544
|
export type ForgotPasswordMutationVariables = Exact<{
|
|
4474
4545
|
email: Scalars['String']['input'];
|
|
4475
4546
|
}>;
|
|
@@ -5572,6 +5643,13 @@ export type UpdateCompanyMutation = {
|
|
|
5572
5643
|
averageScore?: number | null;
|
|
5573
5644
|
ownedByUser?: boolean | null;
|
|
5574
5645
|
isProspect?: boolean | null;
|
|
5646
|
+
tags?: Array<{
|
|
5647
|
+
__typename?: 'TagObject';
|
|
5648
|
+
id?: string | null;
|
|
5649
|
+
pk?: string | null;
|
|
5650
|
+
name?: string | null;
|
|
5651
|
+
description?: string | null;
|
|
5652
|
+
} | null> | null;
|
|
5575
5653
|
locations?: Array<{
|
|
5576
5654
|
__typename?: 'CompanyLocationType';
|
|
5577
5655
|
id?: string | null;
|
|
@@ -7735,6 +7813,13 @@ export type CompaniesQuery = {
|
|
|
7735
7813
|
averageScore?: number | null;
|
|
7736
7814
|
ownedByUser?: boolean | null;
|
|
7737
7815
|
isProspect?: boolean | null;
|
|
7816
|
+
tags?: Array<{
|
|
7817
|
+
__typename?: 'TagObject';
|
|
7818
|
+
id?: string | null;
|
|
7819
|
+
pk?: string | null;
|
|
7820
|
+
name?: string | null;
|
|
7821
|
+
description?: string | null;
|
|
7822
|
+
} | null> | null;
|
|
7738
7823
|
locations?: Array<{
|
|
7739
7824
|
__typename?: 'CompanyLocationType';
|
|
7740
7825
|
id?: string | null;
|
|
@@ -8271,6 +8356,13 @@ export type CompanyQuery = {
|
|
|
8271
8356
|
averageScore?: number | null;
|
|
8272
8357
|
ownedByUser?: boolean | null;
|
|
8273
8358
|
isProspect?: boolean | null;
|
|
8359
|
+
tags?: Array<{
|
|
8360
|
+
__typename?: 'TagObject';
|
|
8361
|
+
id?: string | null;
|
|
8362
|
+
pk?: string | null;
|
|
8363
|
+
name?: string | null;
|
|
8364
|
+
description?: string | null;
|
|
8365
|
+
} | null> | null;
|
|
8274
8366
|
locations?: Array<{
|
|
8275
8367
|
__typename?: 'CompanyLocationType';
|
|
8276
8368
|
id?: string | null;
|
|
@@ -10017,6 +10109,13 @@ export type RecentHistoryQuery = {
|
|
|
10017
10109
|
averageScore?: number | null;
|
|
10018
10110
|
ownedByUser?: boolean | null;
|
|
10019
10111
|
isProspect?: boolean | null;
|
|
10112
|
+
tags?: Array<{
|
|
10113
|
+
__typename?: 'TagObject';
|
|
10114
|
+
id?: string | null;
|
|
10115
|
+
pk?: string | null;
|
|
10116
|
+
name?: string | null;
|
|
10117
|
+
description?: string | null;
|
|
10118
|
+
} | null> | null;
|
|
10020
10119
|
locations?: Array<{
|
|
10021
10120
|
__typename?: 'CompanyLocationType';
|
|
10022
10121
|
id?: string | null;
|
|
@@ -11655,6 +11754,31 @@ export declare function useDisconnectNylasIntegrationMutation(baseOptions?: Apol
|
|
|
11655
11754
|
export type DisconnectNylasIntegrationMutationHookResult = ReturnType<typeof useDisconnectNylasIntegrationMutation>;
|
|
11656
11755
|
export type DisconnectNylasIntegrationMutationResult = Apollo.MutationResult<DisconnectNylasIntegrationMutation>;
|
|
11657
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>;
|
|
11658
11782
|
export declare const ForgotPasswordDocument: Apollo.DocumentNode;
|
|
11659
11783
|
export type ForgotPasswordMutationFn = Apollo.MutationFunction<ForgotPasswordMutation, ForgotPasswordMutationVariables>;
|
|
11660
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;
|
|
@@ -1268,6 +1269,12 @@ exports.CreateCompanyDocument = (0, client_1.gql) `
|
|
|
1268
1269
|
phone
|
|
1269
1270
|
email
|
|
1270
1271
|
annualRevenue
|
|
1272
|
+
tags {
|
|
1273
|
+
id
|
|
1274
|
+
pk
|
|
1275
|
+
name
|
|
1276
|
+
description
|
|
1277
|
+
}
|
|
1271
1278
|
locations {
|
|
1272
1279
|
id
|
|
1273
1280
|
address1
|
|
@@ -2769,6 +2776,40 @@ function useDisconnectNylasIntegrationMutation(baseOptions) {
|
|
|
2769
2776
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2770
2777
|
return Apollo.useMutation(exports.DisconnectNylasIntegrationDocument, options);
|
|
2771
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
|
+
}
|
|
2772
2813
|
exports.ForgotPasswordDocument = (0, client_1.gql) `
|
|
2773
2814
|
mutation ForgotPassword($email: String!) {
|
|
2774
2815
|
forgotPassword(email: $email) {
|
|
@@ -4311,6 +4352,12 @@ exports.UpdateCompanyDocument = (0, client_1.gql) `
|
|
|
4311
4352
|
phone
|
|
4312
4353
|
email
|
|
4313
4354
|
annualRevenue
|
|
4355
|
+
tags {
|
|
4356
|
+
id
|
|
4357
|
+
pk
|
|
4358
|
+
name
|
|
4359
|
+
description
|
|
4360
|
+
}
|
|
4314
4361
|
locations {
|
|
4315
4362
|
id
|
|
4316
4363
|
address1
|
|
@@ -6802,6 +6849,12 @@ exports.CompaniesDocument = (0, client_1.gql) `
|
|
|
6802
6849
|
phone
|
|
6803
6850
|
email
|
|
6804
6851
|
annualRevenue
|
|
6852
|
+
tags {
|
|
6853
|
+
id
|
|
6854
|
+
pk
|
|
6855
|
+
name
|
|
6856
|
+
description
|
|
6857
|
+
}
|
|
6805
6858
|
locations {
|
|
6806
6859
|
id
|
|
6807
6860
|
address1
|
|
@@ -7323,6 +7376,12 @@ exports.CompanyDocument = (0, client_1.gql) `
|
|
|
7323
7376
|
phone
|
|
7324
7377
|
email
|
|
7325
7378
|
annualRevenue
|
|
7379
|
+
tags {
|
|
7380
|
+
id
|
|
7381
|
+
pk
|
|
7382
|
+
name
|
|
7383
|
+
description
|
|
7384
|
+
}
|
|
7326
7385
|
locations {
|
|
7327
7386
|
id
|
|
7328
7387
|
address1
|
|
@@ -9480,6 +9539,12 @@ exports.RecentHistoryDocument = (0, client_1.gql) `
|
|
|
9480
9539
|
phone
|
|
9481
9540
|
email
|
|
9482
9541
|
annualRevenue
|
|
9542
|
+
tags {
|
|
9543
|
+
id
|
|
9544
|
+
pk
|
|
9545
|
+
name
|
|
9546
|
+
description
|
|
9547
|
+
}
|
|
9483
9548
|
locations {
|
|
9484
9549
|
id
|
|
9485
9550
|
address1
|
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!) {
|
|
@@ -313,6 +313,12 @@ mutation CreateCompany($input: CompanyInput) {
|
|
|
313
313
|
phone
|
|
314
314
|
email
|
|
315
315
|
annualRevenue
|
|
316
|
+
tags {
|
|
317
|
+
id
|
|
318
|
+
pk
|
|
319
|
+
name
|
|
320
|
+
description
|
|
321
|
+
}
|
|
316
322
|
locations {
|
|
317
323
|
id
|
|
318
324
|
address1
|
|
@@ -889,6 +895,12 @@ mutation UpdateCompany($input: CompanyInput) {
|
|
|
889
895
|
phone
|
|
890
896
|
email
|
|
891
897
|
annualRevenue
|
|
898
|
+
tags {
|
|
899
|
+
id
|
|
900
|
+
pk
|
|
901
|
+
name
|
|
902
|
+
description
|
|
903
|
+
}
|
|
892
904
|
locations {
|
|
893
905
|
id
|
|
894
906
|
address1
|
|
@@ -2269,6 +2281,18 @@ mutation DeleteEmailTemplate($uuid: UUID!) {
|
|
|
2269
2281
|
message
|
|
2270
2282
|
}
|
|
2271
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
|
+
}`;
|
|
2272
2296
|
exports.SAVE_NYLAS_CONNECTION = (0, client_1.gql) `
|
|
2273
2297
|
mutation SaveNylasConnection($input: SaveNylasConnectionInput!) {
|
|
2274
2298
|
saveNylasConnection(input: $input) {
|
package/dist/queries.js
CHANGED
|
@@ -100,6 +100,12 @@ query RecentHistory($filter: RecentHistoryFilterInput, $sort: RecentHistorySortI
|
|
|
100
100
|
phone
|
|
101
101
|
email
|
|
102
102
|
annualRevenue
|
|
103
|
+
tags {
|
|
104
|
+
id
|
|
105
|
+
pk
|
|
106
|
+
name
|
|
107
|
+
description
|
|
108
|
+
}
|
|
103
109
|
locations {
|
|
104
110
|
id
|
|
105
111
|
address1
|
|
@@ -2333,6 +2339,12 @@ query Companies($filters: CompanyFilterInput, $pagination: PaginationInput, $sor
|
|
|
2333
2339
|
phone
|
|
2334
2340
|
email
|
|
2335
2341
|
annualRevenue
|
|
2342
|
+
tags {
|
|
2343
|
+
id
|
|
2344
|
+
pk
|
|
2345
|
+
name
|
|
2346
|
+
description
|
|
2347
|
+
}
|
|
2336
2348
|
locations {
|
|
2337
2349
|
id
|
|
2338
2350
|
address1
|
|
@@ -2921,6 +2933,12 @@ query Company($id: String) {
|
|
|
2921
2933
|
phone
|
|
2922
2934
|
email
|
|
2923
2935
|
annualRevenue
|
|
2936
|
+
tags {
|
|
2937
|
+
id
|
|
2938
|
+
pk
|
|
2939
|
+
name
|
|
2940
|
+
description
|
|
2941
|
+
}
|
|
2924
2942
|
locations {
|
|
2925
2943
|
id
|
|
2926
2944
|
address1
|
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,
|