cf-service-sdk 0.0.20 → 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 +129 -0
- package/dist/generated/graphql.js +72 -7
- package/dist/mutations.d.ts +2 -0
- package/dist/mutations.js +16 -1
- package/dist/queries.js +4 -4
- package/dist/sdk.d.ts +5 -3
- package/dist/sdk.js +16 -4
- 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'];
|
|
@@ -2010,6 +2036,8 @@ export type QueryCallCampaignLogsArgs = {
|
|
|
2010
2036
|
/** Query */
|
|
2011
2037
|
export type QueryCallCampaignsArgs = {
|
|
2012
2038
|
pagination: PaginationInput;
|
|
2039
|
+
sortBy?: InputMaybe<Scalars['String']['input']>;
|
|
2040
|
+
status?: InputMaybe<Scalars['String']['input']>;
|
|
2013
2041
|
};
|
|
2014
2042
|
/** Query */
|
|
2015
2043
|
export type QueryCampaignArgs = {
|
|
@@ -2033,6 +2061,8 @@ export type QueryCampaignStatsArgs = {
|
|
|
2033
2061
|
/** Query */
|
|
2034
2062
|
export type QueryCampaignsArgs = {
|
|
2035
2063
|
pagination: PaginationInput;
|
|
2064
|
+
sortBy?: InputMaybe<Scalars['String']['input']>;
|
|
2065
|
+
status?: InputMaybe<Scalars['String']['input']>;
|
|
2036
2066
|
};
|
|
2037
2067
|
/** Query */
|
|
2038
2068
|
export type QueryCompaniesArgs = {
|
|
@@ -2377,6 +2407,12 @@ export type UsStateData = {
|
|
|
2377
2407
|
/** Full state name */
|
|
2378
2408
|
name?: Maybe<Scalars['String']['output']>;
|
|
2379
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
|
+
};
|
|
2380
2416
|
/** UnsubscribeFromEmails - Unsubscribe an email from specific types of emails */
|
|
2381
2417
|
export type UnsubscribeFromEmails = {
|
|
2382
2418
|
__typename?: 'UnsubscribeFromEmails';
|
|
@@ -4420,6 +4456,18 @@ export type ForgotPasswordMutation = {
|
|
|
4420
4456
|
message?: string | null;
|
|
4421
4457
|
} | null;
|
|
4422
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
|
+
};
|
|
4423
4471
|
export type InviteUserMutationVariables = Exact<{
|
|
4424
4472
|
input: InviteUserInput;
|
|
4425
4473
|
}>;
|
|
@@ -5165,6 +5213,17 @@ export type SubmitFeedbackMutation = {
|
|
|
5165
5213
|
message?: string | null;
|
|
5166
5214
|
} | null;
|
|
5167
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
|
+
};
|
|
5168
5227
|
export type UnsubscribeFromEmailsMutationVariables = Exact<{
|
|
5169
5228
|
emailHash: Scalars['String']['input'];
|
|
5170
5229
|
source: Scalars['String']['input'];
|
|
@@ -7100,6 +7159,8 @@ export type CallCampaignLogsQuery = {
|
|
|
7100
7159
|
};
|
|
7101
7160
|
export type CallCampaignsQueryVariables = Exact<{
|
|
7102
7161
|
pagination: PaginationInput;
|
|
7162
|
+
sortBy?: InputMaybe<Scalars['String']['input']>;
|
|
7163
|
+
status?: InputMaybe<Scalars['String']['input']>;
|
|
7103
7164
|
}>;
|
|
7104
7165
|
export type CallCampaignsQuery = {
|
|
7105
7166
|
__typename?: 'Query';
|
|
@@ -7515,6 +7576,8 @@ export type CampaignStatsQuery = {
|
|
|
7515
7576
|
};
|
|
7516
7577
|
export type CampaignsQueryVariables = Exact<{
|
|
7517
7578
|
pagination: PaginationInput;
|
|
7579
|
+
status?: InputMaybe<Scalars['String']['input']>;
|
|
7580
|
+
sortBy?: InputMaybe<Scalars['String']['input']>;
|
|
7518
7581
|
}>;
|
|
7519
7582
|
export type CampaignsQuery = {
|
|
7520
7583
|
__typename?: 'Query';
|
|
@@ -11528,6 +11591,31 @@ export declare function useForgotPasswordMutation(baseOptions?: Apollo.MutationH
|
|
|
11528
11591
|
export type ForgotPasswordMutationHookResult = ReturnType<typeof useForgotPasswordMutation>;
|
|
11529
11592
|
export type ForgotPasswordMutationResult = Apollo.MutationResult<ForgotPasswordMutation>;
|
|
11530
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>;
|
|
11531
11619
|
export declare const InviteUserDocument: Apollo.DocumentNode;
|
|
11532
11620
|
export type InviteUserMutationFn = Apollo.MutationFunction<InviteUserMutation, InviteUserMutationVariables>;
|
|
11533
11621
|
/**
|
|
@@ -12063,6 +12151,31 @@ export declare function useSubmitFeedbackMutation(baseOptions?: Apollo.MutationH
|
|
|
12063
12151
|
export type SubmitFeedbackMutationHookResult = ReturnType<typeof useSubmitFeedbackMutation>;
|
|
12064
12152
|
export type SubmitFeedbackMutationResult = Apollo.MutationResult<SubmitFeedbackMutation>;
|
|
12065
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>;
|
|
12066
12179
|
export declare const UnsubscribeFromEmailsDocument: Apollo.DocumentNode;
|
|
12067
12180
|
export type UnsubscribeFromEmailsMutationFn = Apollo.MutationFunction<UnsubscribeFromEmailsMutation, UnsubscribeFromEmailsMutationVariables>;
|
|
12068
12181
|
/**
|
|
@@ -12629,6 +12742,8 @@ export declare const CallCampaignsDocument: Apollo.DocumentNode;
|
|
|
12629
12742
|
* const { data, loading, error } = useCallCampaignsQuery({
|
|
12630
12743
|
* variables: {
|
|
12631
12744
|
* pagination: // value for 'pagination'
|
|
12745
|
+
* sortBy: // value for 'sortBy'
|
|
12746
|
+
* status: // value for 'status'
|
|
12632
12747
|
* },
|
|
12633
12748
|
* });
|
|
12634
12749
|
*/
|
|
@@ -12639,12 +12754,18 @@ export declare function useCallCampaignsQuery(baseOptions: Apollo.QueryHookOptio
|
|
|
12639
12754
|
skip: boolean;
|
|
12640
12755
|
})): Apollo.QueryResult<CallCampaignsQuery, Exact<{
|
|
12641
12756
|
pagination: PaginationInput;
|
|
12757
|
+
sortBy?: InputMaybe<Scalars["String"]["input"]>;
|
|
12758
|
+
status?: InputMaybe<Scalars["String"]["input"]>;
|
|
12642
12759
|
}>>;
|
|
12643
12760
|
export declare function useCallCampaignsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<CallCampaignsQuery, CallCampaignsQueryVariables>): Apollo.LazyQueryResultTuple<CallCampaignsQuery, Exact<{
|
|
12644
12761
|
pagination: PaginationInput;
|
|
12762
|
+
sortBy?: InputMaybe<Scalars["String"]["input"]>;
|
|
12763
|
+
status?: InputMaybe<Scalars["String"]["input"]>;
|
|
12645
12764
|
}>>;
|
|
12646
12765
|
export declare function useCallCampaignsSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<CallCampaignsQuery, CallCampaignsQueryVariables>): Apollo.UseSuspenseQueryResult<CallCampaignsQuery | undefined, Exact<{
|
|
12647
12766
|
pagination: PaginationInput;
|
|
12767
|
+
sortBy?: InputMaybe<Scalars["String"]["input"]>;
|
|
12768
|
+
status?: InputMaybe<Scalars["String"]["input"]>;
|
|
12648
12769
|
}>>;
|
|
12649
12770
|
export type CallCampaignsQueryHookResult = ReturnType<typeof useCallCampaignsQuery>;
|
|
12650
12771
|
export type CallCampaignsLazyQueryHookResult = ReturnType<typeof useCallCampaignsLazyQuery>;
|
|
@@ -12811,6 +12932,8 @@ export declare const CampaignsDocument: Apollo.DocumentNode;
|
|
|
12811
12932
|
* const { data, loading, error } = useCampaignsQuery({
|
|
12812
12933
|
* variables: {
|
|
12813
12934
|
* pagination: // value for 'pagination'
|
|
12935
|
+
* status: // value for 'status'
|
|
12936
|
+
* sortBy: // value for 'sortBy'
|
|
12814
12937
|
* },
|
|
12815
12938
|
* });
|
|
12816
12939
|
*/
|
|
@@ -12821,12 +12944,18 @@ export declare function useCampaignsQuery(baseOptions: Apollo.QueryHookOptions<C
|
|
|
12821
12944
|
skip: boolean;
|
|
12822
12945
|
})): Apollo.QueryResult<CampaignsQuery, Exact<{
|
|
12823
12946
|
pagination: PaginationInput;
|
|
12947
|
+
status?: InputMaybe<Scalars["String"]["input"]>;
|
|
12948
|
+
sortBy?: InputMaybe<Scalars["String"]["input"]>;
|
|
12824
12949
|
}>>;
|
|
12825
12950
|
export declare function useCampaignsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<CampaignsQuery, CampaignsQueryVariables>): Apollo.LazyQueryResultTuple<CampaignsQuery, Exact<{
|
|
12826
12951
|
pagination: PaginationInput;
|
|
12952
|
+
status?: InputMaybe<Scalars["String"]["input"]>;
|
|
12953
|
+
sortBy?: InputMaybe<Scalars["String"]["input"]>;
|
|
12827
12954
|
}>>;
|
|
12828
12955
|
export declare function useCampaignsSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<CampaignsQuery, CampaignsQueryVariables>): Apollo.UseSuspenseQueryResult<CampaignsQuery | undefined, Exact<{
|
|
12829
12956
|
pagination: PaginationInput;
|
|
12957
|
+
status?: InputMaybe<Scalars["String"]["input"]>;
|
|
12958
|
+
sortBy?: InputMaybe<Scalars["String"]["input"]>;
|
|
12830
12959
|
}>>;
|
|
12831
12960
|
export type CampaignsQueryHookResult = ReturnType<typeof useCampaignsQuery>;
|
|
12832
12961
|
export type CampaignsLazyQueryHookResult = ReturnType<typeof useCampaignsLazyQuery>;
|
|
@@ -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) {
|
|
@@ -6064,8 +6125,8 @@ function useCallCampaignLogsSuspenseQuery(baseOptions) {
|
|
|
6064
6125
|
return Apollo.useSuspenseQuery(exports.CallCampaignLogsDocument, options);
|
|
6065
6126
|
}
|
|
6066
6127
|
exports.CallCampaignsDocument = (0, client_1.gql) `
|
|
6067
|
-
query CallCampaigns($pagination: PaginationInput
|
|
6068
|
-
callCampaigns(pagination: $pagination) {
|
|
6128
|
+
query CallCampaigns($pagination: PaginationInput!, $sortBy: String, $status: String) {
|
|
6129
|
+
callCampaigns(pagination: $pagination, sortBy: $sortBy, status: $status) {
|
|
6069
6130
|
items {
|
|
6070
6131
|
id
|
|
6071
6132
|
user {
|
|
@@ -6138,6 +6199,8 @@ exports.CallCampaignsDocument = (0, client_1.gql) `
|
|
|
6138
6199
|
* const { data, loading, error } = useCallCampaignsQuery({
|
|
6139
6200
|
* variables: {
|
|
6140
6201
|
* pagination: // value for 'pagination'
|
|
6202
|
+
* sortBy: // value for 'sortBy'
|
|
6203
|
+
* status: // value for 'status'
|
|
6141
6204
|
* },
|
|
6142
6205
|
* });
|
|
6143
6206
|
*/
|
|
@@ -6575,8 +6638,8 @@ function useCampaignStatsSuspenseQuery(baseOptions) {
|
|
|
6575
6638
|
return Apollo.useSuspenseQuery(exports.CampaignStatsDocument, options);
|
|
6576
6639
|
}
|
|
6577
6640
|
exports.CampaignsDocument = (0, client_1.gql) `
|
|
6578
|
-
query Campaigns($pagination: PaginationInput
|
|
6579
|
-
campaigns(pagination: $pagination) {
|
|
6641
|
+
query Campaigns($pagination: PaginationInput!, $status: String, $sortBy: String) {
|
|
6642
|
+
campaigns(pagination: $pagination, status: $status, sortBy: $sortBy) {
|
|
6580
6643
|
items {
|
|
6581
6644
|
uuid
|
|
6582
6645
|
name
|
|
@@ -6653,6 +6716,8 @@ exports.CampaignsDocument = (0, client_1.gql) `
|
|
|
6653
6716
|
* const { data, loading, error } = useCampaignsQuery({
|
|
6654
6717
|
* variables: {
|
|
6655
6718
|
* pagination: // value for 'pagination'
|
|
6719
|
+
* status: // value for 'status'
|
|
6720
|
+
* sortBy: // value for 'sortBy'
|
|
6656
6721
|
* },
|
|
6657
6722
|
* });
|
|
6658
6723
|
*/
|
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/queries.js
CHANGED
|
@@ -1079,8 +1079,8 @@ query CompanyNote($id: ID!) {
|
|
|
1079
1079
|
}
|
|
1080
1080
|
}`;
|
|
1081
1081
|
exports.CALL_CAMPAIGNS = (0, client_1.gql) `
|
|
1082
|
-
query CallCampaigns($pagination: PaginationInput
|
|
1083
|
-
callCampaigns(pagination: $pagination) {
|
|
1082
|
+
query CallCampaigns($pagination: PaginationInput!, $sortBy: String, $status: String) {
|
|
1083
|
+
callCampaigns(pagination: $pagination, sortBy: $sortBy, status: $status) {
|
|
1084
1084
|
items {
|
|
1085
1085
|
id
|
|
1086
1086
|
user {
|
|
@@ -1816,8 +1816,8 @@ query EmailTemplates($campaignType: String, $campaignTypes: [String]) {
|
|
|
1816
1816
|
}
|
|
1817
1817
|
}`;
|
|
1818
1818
|
exports.CAMPAIGNS = (0, client_1.gql) `
|
|
1819
|
-
query Campaigns($pagination: PaginationInput
|
|
1820
|
-
campaigns(pagination: $pagination) {
|
|
1819
|
+
query Campaigns($pagination: PaginationInput!, $status: String, $sortBy: String) {
|
|
1820
|
+
campaigns(pagination: $pagination, status: $status, sortBy: $sortBy) {
|
|
1821
1821
|
items {
|
|
1822
1822
|
uuid
|
|
1823
1823
|
name
|
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>>;
|
|
@@ -76,12 +78,12 @@ export declare class CloudForgeSDK {
|
|
|
76
78
|
callCampaignAnalytics(campaignId?: string, startDate?: string, endDate?: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
77
79
|
callCampaignLog(id: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
78
80
|
callCampaignLogs(callCampaignId: string, pagination: PaginationInput, search?: string, status?: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
79
|
-
callCampaigns(pagination: PaginationInput): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
81
|
+
callCampaigns(pagination: PaginationInput, sortBy?: string, status?: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
80
82
|
campaign(id: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
81
83
|
campaignAnalytics(campaignId: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
82
84
|
campaignLogs(campaignId: string, pagination: PaginationInput, search?: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
83
85
|
campaignStats(fromDate?: string, toDate?: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
84
|
-
campaigns(pagination: PaginationInput): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
86
|
+
campaigns(pagination: PaginationInput, status?: string, sortBy?: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
85
87
|
companies(filters?: CompanyFilterInput, pagination?: PaginationInput, sort?: CompanySortInput): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
86
88
|
company(id?: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
87
89
|
companyNote(id: string): Promise<import("@apollo/client").ApolloQueryResult<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,
|
|
@@ -440,10 +452,10 @@ class CloudForgeSDK {
|
|
|
440
452
|
variables: { callCampaignId, pagination, search, status }
|
|
441
453
|
});
|
|
442
454
|
}
|
|
443
|
-
async callCampaigns(pagination) {
|
|
455
|
+
async callCampaigns(pagination, sortBy, status) {
|
|
444
456
|
return this.apolloClient.query({
|
|
445
457
|
query: queries_1.CALL_CAMPAIGNS,
|
|
446
|
-
variables: { pagination }
|
|
458
|
+
variables: { pagination, sortBy, status }
|
|
447
459
|
});
|
|
448
460
|
}
|
|
449
461
|
async campaign(id) {
|
|
@@ -470,10 +482,10 @@ class CloudForgeSDK {
|
|
|
470
482
|
variables: { fromDate, toDate }
|
|
471
483
|
});
|
|
472
484
|
}
|
|
473
|
-
async campaigns(pagination) {
|
|
485
|
+
async campaigns(pagination, status, sortBy) {
|
|
474
486
|
return this.apolloClient.query({
|
|
475
487
|
query: queries_1.CAMPAIGNS,
|
|
476
|
-
variables: { pagination }
|
|
488
|
+
variables: { pagination, status, sortBy }
|
|
477
489
|
});
|
|
478
490
|
}
|
|
479
491
|
async companies(filters, pagination, sort) {
|