cf-service-sdk 0.0.21 → 0.0.22
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 +105 -0
- package/dist/generated/graphql.js +64 -3
- package/dist/mutations.d.ts +2 -0
- package/dist/mutations.js +16 -1
- package/dist/sdk.d.ts +3 -1
- package/dist/sdk.js +12 -0
- package/package.json +1 -1
|
@@ -1271,6 +1271,20 @@ export type ForgotPassword = {
|
|
|
1271
1271
|
message?: Maybe<Scalars['String']['output']>;
|
|
1272
1272
|
success?: Maybe<Scalars['Boolean']['output']>;
|
|
1273
1273
|
};
|
|
1274
|
+
/** Input type for hidden record mutations */
|
|
1275
|
+
export type HiddenRecordInput = {
|
|
1276
|
+
/** ID of the record to hide/unhide */
|
|
1277
|
+
recordId: Scalars['ID']['input'];
|
|
1278
|
+
/** Type of record to hide/unhide ('contact' or 'company') */
|
|
1279
|
+
recordType: Scalars['String']['input'];
|
|
1280
|
+
};
|
|
1281
|
+
/** Mutation to hide a record (contact or company) from query results */
|
|
1282
|
+
export type HideRecord = {
|
|
1283
|
+
__typename?: 'HideRecord';
|
|
1284
|
+
hiddenRecordId?: Maybe<Scalars['ID']['output']>;
|
|
1285
|
+
message?: Maybe<Scalars['String']['output']>;
|
|
1286
|
+
success?: Maybe<Scalars['Boolean']['output']>;
|
|
1287
|
+
};
|
|
1274
1288
|
export type IndustrySectorObject = {
|
|
1275
1289
|
__typename?: 'IndustrySectorObject';
|
|
1276
1290
|
description: Scalars['String']['output'];
|
|
@@ -1408,6 +1422,8 @@ export type Mutation = {
|
|
|
1408
1422
|
disconnectNylasIntegration?: Maybe<DisconnectNylasIntegration>;
|
|
1409
1423
|
/** ForgotPassword - Request a password reset */
|
|
1410
1424
|
forgotPassword?: Maybe<ForgotPassword>;
|
|
1425
|
+
/** Mutation to hide a record (contact or company) from query results */
|
|
1426
|
+
hideRecord?: Maybe<HideRecord>;
|
|
1411
1427
|
/** InviteUser - Invite a user to join an account */
|
|
1412
1428
|
inviteUser?: Maybe<InviteUser>;
|
|
1413
1429
|
/** Custom token auth mutation that includes account member isAdmin flag */
|
|
@@ -1440,6 +1456,8 @@ export type Mutation = {
|
|
|
1440
1456
|
startCampaign?: Maybe<StartCampaign>;
|
|
1441
1457
|
/** SubmitFeedback - Submit feedback */
|
|
1442
1458
|
submitFeedback?: Maybe<SubmitFeedback>;
|
|
1459
|
+
/** Mutation to unhide a previously hidden record */
|
|
1460
|
+
unhideRecord?: Maybe<UnhideRecord>;
|
|
1443
1461
|
/** UnsubscribeFromEmails - Unsubscribe an email from specific types of emails */
|
|
1444
1462
|
unsubscribeFromEmails?: Maybe<UnsubscribeFromEmails>;
|
|
1445
1463
|
updateCallCampaign?: Maybe<UpdateCallCampaign>;
|
|
@@ -1576,6 +1594,10 @@ export type MutationForgotPasswordArgs = {
|
|
|
1576
1594
|
email: Scalars['String']['input'];
|
|
1577
1595
|
};
|
|
1578
1596
|
/** Mutations */
|
|
1597
|
+
export type MutationHideRecordArgs = {
|
|
1598
|
+
input: HiddenRecordInput;
|
|
1599
|
+
};
|
|
1600
|
+
/** Mutations */
|
|
1579
1601
|
export type MutationInviteUserArgs = {
|
|
1580
1602
|
input: InviteUserInput;
|
|
1581
1603
|
};
|
|
@@ -1670,6 +1692,10 @@ export type MutationSubmitFeedbackArgs = {
|
|
|
1670
1692
|
input: FeedbackInput;
|
|
1671
1693
|
};
|
|
1672
1694
|
/** Mutations */
|
|
1695
|
+
export type MutationUnhideRecordArgs = {
|
|
1696
|
+
input: HiddenRecordInput;
|
|
1697
|
+
};
|
|
1698
|
+
/** Mutations */
|
|
1673
1699
|
export type MutationUnsubscribeFromEmailsArgs = {
|
|
1674
1700
|
emailHash: Scalars['String']['input'];
|
|
1675
1701
|
source: Scalars['String']['input'];
|
|
@@ -2381,6 +2407,12 @@ export type UsStateData = {
|
|
|
2381
2407
|
/** Full state name */
|
|
2382
2408
|
name?: Maybe<Scalars['String']['output']>;
|
|
2383
2409
|
};
|
|
2410
|
+
/** Mutation to unhide a previously hidden record */
|
|
2411
|
+
export type UnhideRecord = {
|
|
2412
|
+
__typename?: 'UnhideRecord';
|
|
2413
|
+
message?: Maybe<Scalars['String']['output']>;
|
|
2414
|
+
success?: Maybe<Scalars['Boolean']['output']>;
|
|
2415
|
+
};
|
|
2384
2416
|
/** UnsubscribeFromEmails - Unsubscribe an email from specific types of emails */
|
|
2385
2417
|
export type UnsubscribeFromEmails = {
|
|
2386
2418
|
__typename?: 'UnsubscribeFromEmails';
|
|
@@ -4424,6 +4456,18 @@ export type ForgotPasswordMutation = {
|
|
|
4424
4456
|
message?: string | null;
|
|
4425
4457
|
} | null;
|
|
4426
4458
|
};
|
|
4459
|
+
export type HideRecordMutationVariables = Exact<{
|
|
4460
|
+
input: HiddenRecordInput;
|
|
4461
|
+
}>;
|
|
4462
|
+
export type HideRecordMutation = {
|
|
4463
|
+
__typename?: 'Mutation';
|
|
4464
|
+
hideRecord?: {
|
|
4465
|
+
__typename?: 'HideRecord';
|
|
4466
|
+
success?: boolean | null;
|
|
4467
|
+
message?: string | null;
|
|
4468
|
+
hiddenRecordId?: string | null;
|
|
4469
|
+
} | null;
|
|
4470
|
+
};
|
|
4427
4471
|
export type InviteUserMutationVariables = Exact<{
|
|
4428
4472
|
input: InviteUserInput;
|
|
4429
4473
|
}>;
|
|
@@ -5169,6 +5213,17 @@ export type SubmitFeedbackMutation = {
|
|
|
5169
5213
|
message?: string | null;
|
|
5170
5214
|
} | null;
|
|
5171
5215
|
};
|
|
5216
|
+
export type UnhideRecordMutationVariables = Exact<{
|
|
5217
|
+
input: HiddenRecordInput;
|
|
5218
|
+
}>;
|
|
5219
|
+
export type UnhideRecordMutation = {
|
|
5220
|
+
__typename?: 'Mutation';
|
|
5221
|
+
unhideRecord?: {
|
|
5222
|
+
__typename?: 'UnhideRecord';
|
|
5223
|
+
success?: boolean | null;
|
|
5224
|
+
message?: string | null;
|
|
5225
|
+
} | null;
|
|
5226
|
+
};
|
|
5172
5227
|
export type UnsubscribeFromEmailsMutationVariables = Exact<{
|
|
5173
5228
|
emailHash: Scalars['String']['input'];
|
|
5174
5229
|
source: Scalars['String']['input'];
|
|
@@ -11536,6 +11591,31 @@ export declare function useForgotPasswordMutation(baseOptions?: Apollo.MutationH
|
|
|
11536
11591
|
export type ForgotPasswordMutationHookResult = ReturnType<typeof useForgotPasswordMutation>;
|
|
11537
11592
|
export type ForgotPasswordMutationResult = Apollo.MutationResult<ForgotPasswordMutation>;
|
|
11538
11593
|
export type ForgotPasswordMutationOptions = Apollo.BaseMutationOptions<ForgotPasswordMutation, ForgotPasswordMutationVariables>;
|
|
11594
|
+
export declare const HideRecordDocument: Apollo.DocumentNode;
|
|
11595
|
+
export type HideRecordMutationFn = Apollo.MutationFunction<HideRecordMutation, HideRecordMutationVariables>;
|
|
11596
|
+
/**
|
|
11597
|
+
* __useHideRecordMutation__
|
|
11598
|
+
*
|
|
11599
|
+
* To run a mutation, you first call `useHideRecordMutation` within a React component and pass it any options that fit your needs.
|
|
11600
|
+
* When your component renders, `useHideRecordMutation` returns a tuple that includes:
|
|
11601
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
11602
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
11603
|
+
*
|
|
11604
|
+
* @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;
|
|
11605
|
+
*
|
|
11606
|
+
* @example
|
|
11607
|
+
* const [hideRecordMutation, { data, loading, error }] = useHideRecordMutation({
|
|
11608
|
+
* variables: {
|
|
11609
|
+
* input: // value for 'input'
|
|
11610
|
+
* },
|
|
11611
|
+
* });
|
|
11612
|
+
*/
|
|
11613
|
+
export declare function useHideRecordMutation(baseOptions?: Apollo.MutationHookOptions<HideRecordMutation, HideRecordMutationVariables>): Apollo.MutationTuple<HideRecordMutation, Exact<{
|
|
11614
|
+
input: HiddenRecordInput;
|
|
11615
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
11616
|
+
export type HideRecordMutationHookResult = ReturnType<typeof useHideRecordMutation>;
|
|
11617
|
+
export type HideRecordMutationResult = Apollo.MutationResult<HideRecordMutation>;
|
|
11618
|
+
export type HideRecordMutationOptions = Apollo.BaseMutationOptions<HideRecordMutation, HideRecordMutationVariables>;
|
|
11539
11619
|
export declare const InviteUserDocument: Apollo.DocumentNode;
|
|
11540
11620
|
export type InviteUserMutationFn = Apollo.MutationFunction<InviteUserMutation, InviteUserMutationVariables>;
|
|
11541
11621
|
/**
|
|
@@ -12071,6 +12151,31 @@ export declare function useSubmitFeedbackMutation(baseOptions?: Apollo.MutationH
|
|
|
12071
12151
|
export type SubmitFeedbackMutationHookResult = ReturnType<typeof useSubmitFeedbackMutation>;
|
|
12072
12152
|
export type SubmitFeedbackMutationResult = Apollo.MutationResult<SubmitFeedbackMutation>;
|
|
12073
12153
|
export type SubmitFeedbackMutationOptions = Apollo.BaseMutationOptions<SubmitFeedbackMutation, SubmitFeedbackMutationVariables>;
|
|
12154
|
+
export declare const UnhideRecordDocument: Apollo.DocumentNode;
|
|
12155
|
+
export type UnhideRecordMutationFn = Apollo.MutationFunction<UnhideRecordMutation, UnhideRecordMutationVariables>;
|
|
12156
|
+
/**
|
|
12157
|
+
* __useUnhideRecordMutation__
|
|
12158
|
+
*
|
|
12159
|
+
* To run a mutation, you first call `useUnhideRecordMutation` within a React component and pass it any options that fit your needs.
|
|
12160
|
+
* When your component renders, `useUnhideRecordMutation` returns a tuple that includes:
|
|
12161
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
12162
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
12163
|
+
*
|
|
12164
|
+
* @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;
|
|
12165
|
+
*
|
|
12166
|
+
* @example
|
|
12167
|
+
* const [unhideRecordMutation, { data, loading, error }] = useUnhideRecordMutation({
|
|
12168
|
+
* variables: {
|
|
12169
|
+
* input: // value for 'input'
|
|
12170
|
+
* },
|
|
12171
|
+
* });
|
|
12172
|
+
*/
|
|
12173
|
+
export declare function useUnhideRecordMutation(baseOptions?: Apollo.MutationHookOptions<UnhideRecordMutation, UnhideRecordMutationVariables>): Apollo.MutationTuple<UnhideRecordMutation, Exact<{
|
|
12174
|
+
input: HiddenRecordInput;
|
|
12175
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
12176
|
+
export type UnhideRecordMutationHookResult = ReturnType<typeof useUnhideRecordMutation>;
|
|
12177
|
+
export type UnhideRecordMutationResult = Apollo.MutationResult<UnhideRecordMutation>;
|
|
12178
|
+
export type UnhideRecordMutationOptions = Apollo.BaseMutationOptions<UnhideRecordMutation, UnhideRecordMutationVariables>;
|
|
12074
12179
|
export declare const UnsubscribeFromEmailsDocument: Apollo.DocumentNode;
|
|
12075
12180
|
export type UnsubscribeFromEmailsMutationFn = Apollo.MutationFunction<UnsubscribeFromEmailsMutation, UnsubscribeFromEmailsMutationVariables>;
|
|
12076
12181
|
/**
|
|
@@ -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 = void 0;
|
|
36
|
+
exports.RejectInvitationDocument = exports.PreviewCampaignEmailDocument = exports.PauseCampaignDocument = exports.MarkNotificationAsReadDocument = exports.MarkAllNotificationsAsReadDocument = exports.LoginWithMicrosoftDocument = exports.LoginWithGoogleDocument = exports.LoginDocument = exports.InviteUserDocument = exports.HideRecordDocument = exports.ForgotPasswordDocument = 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.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.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 = 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 = void 0;
|
|
39
39
|
exports.useAcceptInvitationMutation = useAcceptInvitationMutation;
|
|
40
40
|
exports.useAddContactsToSegmentMutation = useAddContactsToSegmentMutation;
|
|
41
41
|
exports.useAddSegmentToCallCampaignMutation = useAddSegmentToCallCampaignMutation;
|
|
@@ -65,6 +65,7 @@ exports.useDeleteSegmentMutation = useDeleteSegmentMutation;
|
|
|
65
65
|
exports.useDeleteTaskMutation = useDeleteTaskMutation;
|
|
66
66
|
exports.useDisconnectNylasIntegrationMutation = useDisconnectNylasIntegrationMutation;
|
|
67
67
|
exports.useForgotPasswordMutation = useForgotPasswordMutation;
|
|
68
|
+
exports.useHideRecordMutation = useHideRecordMutation;
|
|
68
69
|
exports.useInviteUserMutation = useInviteUserMutation;
|
|
69
70
|
exports.useLoginMutation = useLoginMutation;
|
|
70
71
|
exports.useLoginWithGoogleMutation = useLoginWithGoogleMutation;
|
|
@@ -85,6 +86,7 @@ exports.useSendTestEmailMutation = useSendTestEmailMutation;
|
|
|
85
86
|
exports.useSignupMutation = useSignupMutation;
|
|
86
87
|
exports.useStartCampaignMutation = useStartCampaignMutation;
|
|
87
88
|
exports.useSubmitFeedbackMutation = useSubmitFeedbackMutation;
|
|
89
|
+
exports.useUnhideRecordMutation = useUnhideRecordMutation;
|
|
88
90
|
exports.useUnsubscribeFromEmailsMutation = useUnsubscribeFromEmailsMutation;
|
|
89
91
|
exports.useUpdateCallCampaignMutation = useUpdateCallCampaignMutation;
|
|
90
92
|
exports.useUpdateCallCampaignLogMutation = useUpdateCallCampaignLogMutation;
|
|
@@ -2777,6 +2779,36 @@ function useForgotPasswordMutation(baseOptions) {
|
|
|
2777
2779
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2778
2780
|
return Apollo.useMutation(exports.ForgotPasswordDocument, options);
|
|
2779
2781
|
}
|
|
2782
|
+
exports.HideRecordDocument = (0, client_1.gql) `
|
|
2783
|
+
mutation HideRecord($input: HiddenRecordInput!) {
|
|
2784
|
+
hideRecord(input: $input) {
|
|
2785
|
+
success
|
|
2786
|
+
message
|
|
2787
|
+
hiddenRecordId
|
|
2788
|
+
}
|
|
2789
|
+
}
|
|
2790
|
+
`;
|
|
2791
|
+
/**
|
|
2792
|
+
* __useHideRecordMutation__
|
|
2793
|
+
*
|
|
2794
|
+
* To run a mutation, you first call `useHideRecordMutation` within a React component and pass it any options that fit your needs.
|
|
2795
|
+
* When your component renders, `useHideRecordMutation` returns a tuple that includes:
|
|
2796
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
2797
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
2798
|
+
*
|
|
2799
|
+
* @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;
|
|
2800
|
+
*
|
|
2801
|
+
* @example
|
|
2802
|
+
* const [hideRecordMutation, { data, loading, error }] = useHideRecordMutation({
|
|
2803
|
+
* variables: {
|
|
2804
|
+
* input: // value for 'input'
|
|
2805
|
+
* },
|
|
2806
|
+
* });
|
|
2807
|
+
*/
|
|
2808
|
+
function useHideRecordMutation(baseOptions) {
|
|
2809
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
2810
|
+
return Apollo.useMutation(exports.HideRecordDocument, options);
|
|
2811
|
+
}
|
|
2780
2812
|
exports.InviteUserDocument = (0, client_1.gql) `
|
|
2781
2813
|
mutation InviteUser($input: InviteUserInput!) {
|
|
2782
2814
|
inviteUser(input: $input) {
|
|
@@ -3862,6 +3894,35 @@ function useSubmitFeedbackMutation(baseOptions) {
|
|
|
3862
3894
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3863
3895
|
return Apollo.useMutation(exports.SubmitFeedbackDocument, options);
|
|
3864
3896
|
}
|
|
3897
|
+
exports.UnhideRecordDocument = (0, client_1.gql) `
|
|
3898
|
+
mutation UnhideRecord($input: HiddenRecordInput!) {
|
|
3899
|
+
unhideRecord(input: $input) {
|
|
3900
|
+
success
|
|
3901
|
+
message
|
|
3902
|
+
}
|
|
3903
|
+
}
|
|
3904
|
+
`;
|
|
3905
|
+
/**
|
|
3906
|
+
* __useUnhideRecordMutation__
|
|
3907
|
+
*
|
|
3908
|
+
* To run a mutation, you first call `useUnhideRecordMutation` within a React component and pass it any options that fit your needs.
|
|
3909
|
+
* When your component renders, `useUnhideRecordMutation` returns a tuple that includes:
|
|
3910
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
3911
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
3912
|
+
*
|
|
3913
|
+
* @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;
|
|
3914
|
+
*
|
|
3915
|
+
* @example
|
|
3916
|
+
* const [unhideRecordMutation, { data, loading, error }] = useUnhideRecordMutation({
|
|
3917
|
+
* variables: {
|
|
3918
|
+
* input: // value for 'input'
|
|
3919
|
+
* },
|
|
3920
|
+
* });
|
|
3921
|
+
*/
|
|
3922
|
+
function useUnhideRecordMutation(baseOptions) {
|
|
3923
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3924
|
+
return Apollo.useMutation(exports.UnhideRecordDocument, options);
|
|
3925
|
+
}
|
|
3865
3926
|
exports.UnsubscribeFromEmailsDocument = (0, client_1.gql) `
|
|
3866
3927
|
mutation UnsubscribeFromEmails($emailHash: String!, $source: String!) {
|
|
3867
3928
|
unsubscribeFromEmails(emailHash: $emailHash, source: $source) {
|
package/dist/mutations.d.ts
CHANGED
|
@@ -60,3 +60,5 @@ export declare const UPDATE_CALL_CAMPAIGN_LOG: import("@apollo/client").Document
|
|
|
60
60
|
export declare const CREATE_COMPANY_NOTE: import("@apollo/client").DocumentNode;
|
|
61
61
|
export declare const UPDATE_COMPANY_NOTE: import("@apollo/client").DocumentNode;
|
|
62
62
|
export declare const DELETE_COMPANY_NOTE: import("@apollo/client").DocumentNode;
|
|
63
|
+
export declare const HIDE_RECORD: import("@apollo/client").DocumentNode;
|
|
64
|
+
export declare const UNHIDE_RECORD: 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.CREATE_TASK = 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.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.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;
|
|
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;
|
|
5
5
|
const client_1 = require("@apollo/client");
|
|
6
6
|
exports.SIGNUP = (0, client_1.gql) `
|
|
7
7
|
mutation Signup($input: SignupInput!) {
|
|
@@ -3624,3 +3624,18 @@ mutation DeleteCompanyNote($id: ID!) {
|
|
|
3624
3624
|
success
|
|
3625
3625
|
}
|
|
3626
3626
|
}`;
|
|
3627
|
+
exports.HIDE_RECORD = (0, client_1.gql) `
|
|
3628
|
+
mutation HideRecord($input: HiddenRecordInput!) {
|
|
3629
|
+
hideRecord(input: $input) {
|
|
3630
|
+
success
|
|
3631
|
+
message
|
|
3632
|
+
hiddenRecordId
|
|
3633
|
+
}
|
|
3634
|
+
}`;
|
|
3635
|
+
exports.UNHIDE_RECORD = (0, client_1.gql) `
|
|
3636
|
+
mutation UnhideRecord($input: HiddenRecordInput!) {
|
|
3637
|
+
unhideRecord(input: $input) {
|
|
3638
|
+
success
|
|
3639
|
+
message
|
|
3640
|
+
}
|
|
3641
|
+
}`;
|
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, 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, 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;
|
|
@@ -37,6 +37,7 @@ export declare class CloudForgeSDK {
|
|
|
37
37
|
deleteTask(id: number): Promise<import("@apollo/client").FetchResult<any>>;
|
|
38
38
|
disconnectNylasIntegration(): Promise<import("@apollo/client").FetchResult<any>>;
|
|
39
39
|
forgotPassword(email: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
40
|
+
hideRecord(input: HiddenRecordInput): Promise<import("@apollo/client").FetchResult<any>>;
|
|
40
41
|
inviteUser(input: InviteUserInput): Promise<import("@apollo/client").FetchResult<any>>;
|
|
41
42
|
login(email: string, password: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
42
43
|
loginWithGoogle(token: string, user?: UserTypeInput): Promise<import("@apollo/client").FetchResult<any>>;
|
|
@@ -57,6 +58,7 @@ export declare class CloudForgeSDK {
|
|
|
57
58
|
signup(input: SignupInput): Promise<import("@apollo/client").FetchResult<any>>;
|
|
58
59
|
startCampaign(id: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
59
60
|
submitFeedback(input: SubmitFeedbackMutationVariables): Promise<import("@apollo/client").FetchResult<any>>;
|
|
61
|
+
unhideRecord(input: HiddenRecordInput): Promise<import("@apollo/client").FetchResult<any>>;
|
|
60
62
|
unsubscribeFromEmails(emailHash: string, source: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
61
63
|
updateCallCampaign(id: string, input: UpdateCallCampaignMutationVariables): Promise<import("@apollo/client").FetchResult<any>>;
|
|
62
64
|
updateCallCampaignLog(id: string, input: UpdateCallCampaignLogMutationVariables): Promise<import("@apollo/client").FetchResult<any>>;
|
package/dist/sdk.js
CHANGED
|
@@ -206,6 +206,12 @@ class CloudForgeSDK {
|
|
|
206
206
|
variables: { email }
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
|
+
async hideRecord(input) {
|
|
210
|
+
return this.apolloClient.mutate({
|
|
211
|
+
mutation: mutations_1.HIDE_RECORD,
|
|
212
|
+
variables: { ...input }
|
|
213
|
+
});
|
|
214
|
+
}
|
|
209
215
|
async inviteUser(input) {
|
|
210
216
|
return this.apolloClient.mutate({
|
|
211
217
|
mutation: mutations_1.INVITE_USER,
|
|
@@ -325,6 +331,12 @@ class CloudForgeSDK {
|
|
|
325
331
|
variables: { ...input }
|
|
326
332
|
});
|
|
327
333
|
}
|
|
334
|
+
async unhideRecord(input) {
|
|
335
|
+
return this.apolloClient.mutate({
|
|
336
|
+
mutation: mutations_1.UNHIDE_RECORD,
|
|
337
|
+
variables: { ...input }
|
|
338
|
+
});
|
|
339
|
+
}
|
|
328
340
|
async unsubscribeFromEmails(emailHash, source) {
|
|
329
341
|
return this.apolloClient.mutate({
|
|
330
342
|
mutation: mutations_1.UNSUBSCRIBE_FROM_EMAILS,
|