cf-service-sdk 0.0.80 → 0.0.81
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 +187 -0
- package/dist/generated/graphql.js +128 -4
- package/dist/mutations.d.ts +4 -4
- package/dist/mutations.js +68 -68
- package/dist/queries.d.ts +2 -0
- package/dist/queries.js +51 -2
- package/dist/sdk.d.ts +2 -0
- package/dist/sdk.js +12 -0
- package/package.json +1 -1
|
@@ -187,6 +187,15 @@ export type AddSegmentToCampaign = {
|
|
|
187
187
|
success?: Maybe<Scalars['Boolean']['output']>;
|
|
188
188
|
};
|
|
189
189
|
/** An enumeration. */
|
|
190
|
+
export declare enum AgentConversationMessageRoleChoices {
|
|
191
|
+
/** Assistant */
|
|
192
|
+
Assistant = "ASSISTANT",
|
|
193
|
+
/** System */
|
|
194
|
+
System = "SYSTEM",
|
|
195
|
+
/** User */
|
|
196
|
+
User = "USER"
|
|
197
|
+
}
|
|
198
|
+
/** An enumeration. */
|
|
190
199
|
export declare enum AppAccountInvitationStatusChoices {
|
|
191
200
|
/** Accepted */
|
|
192
201
|
Accepted = "ACCEPTED",
|
|
@@ -1655,6 +1664,36 @@ export type ContactStatsType = {
|
|
|
1655
1664
|
/** Total number of emails replied to */
|
|
1656
1665
|
totalReplied?: Maybe<Scalars['Int']['output']>;
|
|
1657
1666
|
};
|
|
1667
|
+
/** Type for conversation history list. */
|
|
1668
|
+
export type ConversationHistoryType = {
|
|
1669
|
+
__typename?: 'ConversationHistoryType';
|
|
1670
|
+
conversations?: Maybe<Array<Maybe<ConversationType>>>;
|
|
1671
|
+
totalCount?: Maybe<Scalars['Int']['output']>;
|
|
1672
|
+
};
|
|
1673
|
+
/** GraphQL type for ConversationMessage model. */
|
|
1674
|
+
export type ConversationMessageType = Node & {
|
|
1675
|
+
__typename?: 'ConversationMessageType';
|
|
1676
|
+
content: Scalars['JSONString']['output'];
|
|
1677
|
+
conversation?: Maybe<ConversationType>;
|
|
1678
|
+
createdAt: Scalars['DateTime']['output'];
|
|
1679
|
+
/** The ID of the object */
|
|
1680
|
+
id: Scalars['ID']['output'];
|
|
1681
|
+
role: AgentConversationMessageRoleChoices;
|
|
1682
|
+
/** Tool calls made by the assistant */
|
|
1683
|
+
toolCalls?: Maybe<Scalars['JSONString']['output']>;
|
|
1684
|
+
/** Results from tool executions */
|
|
1685
|
+
toolResults?: Maybe<Scalars['JSONString']['output']>;
|
|
1686
|
+
};
|
|
1687
|
+
/** GraphQL type for Conversation model. */
|
|
1688
|
+
export type ConversationType = Node & {
|
|
1689
|
+
__typename?: 'ConversationType';
|
|
1690
|
+
createdAt: Scalars['DateTime']['output'];
|
|
1691
|
+
/** The ID of the object */
|
|
1692
|
+
id: Scalars['ID']['output'];
|
|
1693
|
+
messages?: Maybe<Array<Maybe<ConversationMessageType>>>;
|
|
1694
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
1695
|
+
user?: Maybe<UserType>;
|
|
1696
|
+
};
|
|
1658
1697
|
export type CreateCallCampaign = {
|
|
1659
1698
|
__typename?: 'CreateCallCampaign';
|
|
1660
1699
|
callCampaign?: Maybe<CallCampaignObject>;
|
|
@@ -2723,6 +2762,11 @@ export type MyInvitationsType = {
|
|
|
2723
2762
|
status: Scalars['String']['output'];
|
|
2724
2763
|
token: Scalars['String']['output'];
|
|
2725
2764
|
};
|
|
2765
|
+
/** An object with an ID */
|
|
2766
|
+
export type Node = {
|
|
2767
|
+
/** The ID of the object */
|
|
2768
|
+
id: Scalars['ID']['output'];
|
|
2769
|
+
};
|
|
2726
2770
|
/** GraphQL type for Notification model */
|
|
2727
2771
|
export type NotificationType = {
|
|
2728
2772
|
__typename?: 'NotificationType';
|
|
@@ -2988,6 +3032,8 @@ export type Query = {
|
|
|
2988
3032
|
contacts?: Maybe<Array<Maybe<ContactObject>>>;
|
|
2989
3033
|
/** Get paginated list of contacts in a segment */
|
|
2990
3034
|
contactsInSegment?: Maybe<PaginatedContactList>;
|
|
3035
|
+
conversation?: Maybe<ConversationType>;
|
|
3036
|
+
conversationHistory?: Maybe<ConversationHistoryType>;
|
|
2991
3037
|
currentAccount?: Maybe<AccountType>;
|
|
2992
3038
|
/** Get dashboard statistics across different features */
|
|
2993
3039
|
dashboardStats?: Maybe<DashboardStatsType>;
|
|
@@ -3172,6 +3218,15 @@ export type QueryContactsInSegmentArgs = {
|
|
|
3172
3218
|
segmentId: Scalars['ID']['input'];
|
|
3173
3219
|
};
|
|
3174
3220
|
/** Query */
|
|
3221
|
+
export type QueryConversationArgs = {
|
|
3222
|
+
conversationId: Scalars['String']['input'];
|
|
3223
|
+
};
|
|
3224
|
+
/** Query */
|
|
3225
|
+
export type QueryConversationHistoryArgs = {
|
|
3226
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
3227
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
3228
|
+
};
|
|
3229
|
+
/** Query */
|
|
3175
3230
|
export type QueryDashboardStatsArgs = {
|
|
3176
3231
|
endDate?: InputMaybe<Scalars['DateTime']['input']>;
|
|
3177
3232
|
startDate?: InputMaybe<Scalars['DateTime']['input']>;
|
|
@@ -33726,6 +33781,69 @@ export type ContactsInSegmentQuery = {
|
|
|
33726
33781
|
} | null;
|
|
33727
33782
|
} | null;
|
|
33728
33783
|
};
|
|
33784
|
+
export type ConversationQueryVariables = Exact<{
|
|
33785
|
+
conversationId: Scalars['String']['input'];
|
|
33786
|
+
}>;
|
|
33787
|
+
export type ConversationQuery = {
|
|
33788
|
+
__typename?: 'Query';
|
|
33789
|
+
conversation?: {
|
|
33790
|
+
__typename?: 'ConversationType';
|
|
33791
|
+
id: string;
|
|
33792
|
+
createdAt: any;
|
|
33793
|
+
updatedAt: any;
|
|
33794
|
+
user?: {
|
|
33795
|
+
__typename?: 'UserType';
|
|
33796
|
+
id?: string | null;
|
|
33797
|
+
email?: string | null;
|
|
33798
|
+
firstName?: string | null;
|
|
33799
|
+
lastName?: string | null;
|
|
33800
|
+
picture?: string | null;
|
|
33801
|
+
} | null;
|
|
33802
|
+
messages?: Array<{
|
|
33803
|
+
__typename?: 'ConversationMessageType';
|
|
33804
|
+
id: string;
|
|
33805
|
+
role: AgentConversationMessageRoleChoices;
|
|
33806
|
+
content: any;
|
|
33807
|
+
toolCalls?: any | null;
|
|
33808
|
+
toolResults?: any | null;
|
|
33809
|
+
createdAt: any;
|
|
33810
|
+
} | null> | null;
|
|
33811
|
+
} | null;
|
|
33812
|
+
};
|
|
33813
|
+
export type ConversationHistoryQueryVariables = Exact<{
|
|
33814
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
33815
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
33816
|
+
}>;
|
|
33817
|
+
export type ConversationHistoryQuery = {
|
|
33818
|
+
__typename?: 'Query';
|
|
33819
|
+
conversationHistory?: {
|
|
33820
|
+
__typename?: 'ConversationHistoryType';
|
|
33821
|
+
totalCount?: number | null;
|
|
33822
|
+
conversations?: Array<{
|
|
33823
|
+
__typename?: 'ConversationType';
|
|
33824
|
+
id: string;
|
|
33825
|
+
createdAt: any;
|
|
33826
|
+
updatedAt: any;
|
|
33827
|
+
user?: {
|
|
33828
|
+
__typename?: 'UserType';
|
|
33829
|
+
id?: string | null;
|
|
33830
|
+
email?: string | null;
|
|
33831
|
+
firstName?: string | null;
|
|
33832
|
+
lastName?: string | null;
|
|
33833
|
+
picture?: string | null;
|
|
33834
|
+
} | null;
|
|
33835
|
+
messages?: Array<{
|
|
33836
|
+
__typename?: 'ConversationMessageType';
|
|
33837
|
+
id: string;
|
|
33838
|
+
role: AgentConversationMessageRoleChoices;
|
|
33839
|
+
content: any;
|
|
33840
|
+
toolCalls?: any | null;
|
|
33841
|
+
toolResults?: any | null;
|
|
33842
|
+
createdAt: any;
|
|
33843
|
+
} | null> | null;
|
|
33844
|
+
} | null> | null;
|
|
33845
|
+
} | null;
|
|
33846
|
+
};
|
|
33729
33847
|
export type CurrentAccountQueryVariables = Exact<{
|
|
33730
33848
|
[key: string]: never;
|
|
33731
33849
|
}>;
|
|
@@ -40347,6 +40465,75 @@ export type ContactsInSegmentQueryHookResult = ReturnType<typeof useContactsInSe
|
|
|
40347
40465
|
export type ContactsInSegmentLazyQueryHookResult = ReturnType<typeof useContactsInSegmentLazyQuery>;
|
|
40348
40466
|
export type ContactsInSegmentSuspenseQueryHookResult = ReturnType<typeof useContactsInSegmentSuspenseQuery>;
|
|
40349
40467
|
export type ContactsInSegmentQueryResult = Apollo.QueryResult<ContactsInSegmentQuery, ContactsInSegmentQueryVariables>;
|
|
40468
|
+
export declare const ConversationDocument: Apollo.DocumentNode;
|
|
40469
|
+
/**
|
|
40470
|
+
* __useConversationQuery__
|
|
40471
|
+
*
|
|
40472
|
+
* To run a query within a React component, call `useConversationQuery` and pass it any options that fit your needs.
|
|
40473
|
+
* When your component renders, `useConversationQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
40474
|
+
* you can use to render your UI.
|
|
40475
|
+
*
|
|
40476
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
40477
|
+
*
|
|
40478
|
+
* @example
|
|
40479
|
+
* const { data, loading, error } = useConversationQuery({
|
|
40480
|
+
* variables: {
|
|
40481
|
+
* conversationId: // value for 'conversationId'
|
|
40482
|
+
* },
|
|
40483
|
+
* });
|
|
40484
|
+
*/
|
|
40485
|
+
export declare function useConversationQuery(baseOptions: Apollo.QueryHookOptions<ConversationQuery, ConversationQueryVariables> & ({
|
|
40486
|
+
variables: ConversationQueryVariables;
|
|
40487
|
+
skip?: boolean;
|
|
40488
|
+
} | {
|
|
40489
|
+
skip: boolean;
|
|
40490
|
+
})): Apollo.QueryResult<ConversationQuery, Exact<{
|
|
40491
|
+
conversationId: Scalars["String"]["input"];
|
|
40492
|
+
}>>;
|
|
40493
|
+
export declare function useConversationLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ConversationQuery, ConversationQueryVariables>): Apollo.LazyQueryResultTuple<ConversationQuery, Exact<{
|
|
40494
|
+
conversationId: Scalars["String"]["input"];
|
|
40495
|
+
}>>;
|
|
40496
|
+
export declare function useConversationSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<ConversationQuery, ConversationQueryVariables>): Apollo.UseSuspenseQueryResult<ConversationQuery | undefined, Exact<{
|
|
40497
|
+
conversationId: Scalars["String"]["input"];
|
|
40498
|
+
}>>;
|
|
40499
|
+
export type ConversationQueryHookResult = ReturnType<typeof useConversationQuery>;
|
|
40500
|
+
export type ConversationLazyQueryHookResult = ReturnType<typeof useConversationLazyQuery>;
|
|
40501
|
+
export type ConversationSuspenseQueryHookResult = ReturnType<typeof useConversationSuspenseQuery>;
|
|
40502
|
+
export type ConversationQueryResult = Apollo.QueryResult<ConversationQuery, ConversationQueryVariables>;
|
|
40503
|
+
export declare const ConversationHistoryDocument: Apollo.DocumentNode;
|
|
40504
|
+
/**
|
|
40505
|
+
* __useConversationHistoryQuery__
|
|
40506
|
+
*
|
|
40507
|
+
* To run a query within a React component, call `useConversationHistoryQuery` and pass it any options that fit your needs.
|
|
40508
|
+
* When your component renders, `useConversationHistoryQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
40509
|
+
* you can use to render your UI.
|
|
40510
|
+
*
|
|
40511
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
40512
|
+
*
|
|
40513
|
+
* @example
|
|
40514
|
+
* const { data, loading, error } = useConversationHistoryQuery({
|
|
40515
|
+
* variables: {
|
|
40516
|
+
* limit: // value for 'limit'
|
|
40517
|
+
* offset: // value for 'offset'
|
|
40518
|
+
* },
|
|
40519
|
+
* });
|
|
40520
|
+
*/
|
|
40521
|
+
export declare function useConversationHistoryQuery(baseOptions?: Apollo.QueryHookOptions<ConversationHistoryQuery, ConversationHistoryQueryVariables>): Apollo.QueryResult<ConversationHistoryQuery, Exact<{
|
|
40522
|
+
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
40523
|
+
offset?: InputMaybe<Scalars["Int"]["input"]>;
|
|
40524
|
+
}>>;
|
|
40525
|
+
export declare function useConversationHistoryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ConversationHistoryQuery, ConversationHistoryQueryVariables>): Apollo.LazyQueryResultTuple<ConversationHistoryQuery, Exact<{
|
|
40526
|
+
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
40527
|
+
offset?: InputMaybe<Scalars["Int"]["input"]>;
|
|
40528
|
+
}>>;
|
|
40529
|
+
export declare function useConversationHistorySuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<ConversationHistoryQuery, ConversationHistoryQueryVariables>): Apollo.UseSuspenseQueryResult<ConversationHistoryQuery | undefined, Exact<{
|
|
40530
|
+
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
40531
|
+
offset?: InputMaybe<Scalars["Int"]["input"]>;
|
|
40532
|
+
}>>;
|
|
40533
|
+
export type ConversationHistoryQueryHookResult = ReturnType<typeof useConversationHistoryQuery>;
|
|
40534
|
+
export type ConversationHistoryLazyQueryHookResult = ReturnType<typeof useConversationHistoryLazyQuery>;
|
|
40535
|
+
export type ConversationHistorySuspenseQueryHookResult = ReturnType<typeof useConversationHistorySuspenseQuery>;
|
|
40536
|
+
export type ConversationHistoryQueryResult = Apollo.QueryResult<ConversationHistoryQuery, ConversationHistoryQueryVariables>;
|
|
40350
40537
|
export declare const CurrentAccountDocument: Apollo.DocumentNode;
|
|
40351
40538
|
/**
|
|
40352
40539
|
* __useCurrentAccountQuery__
|
|
@@ -33,10 +33,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.UserProfileDocument = exports.UsStatesDocument = exports.UnreadNotificationsCountDocument = exports.TasksDocument = exports.TaskDocument = exports.SegmentsDocument = exports.SegmentDocument = exports.SearchContactsDocument = exports.RecentNotificationsDocument = exports.RecentHistoryDocument = exports.ProductTypesDocument = exports.ProductCategoriesDocument = void 0;
|
|
36
|
+
exports.DeleteSegmentDocument = exports.DeleteNotificationDocument = exports.DeleteEmailTemplateDocument = exports.DeleteConversationDocument = exports.DeleteContactDocument = exports.DeleteCompanyNoteDocument = exports.DeleteCompanyDocument = exports.DeleteCombinedCampaignTemplateDocument = exports.DeleteCombinedCampaignDocument = exports.DeleteCampaignDocument = exports.DeleteCallCampaignDocument = exports.CreateTaskDocument = exports.CreateSegmentDocument = exports.CreateNotificationDocument = exports.CreateEmailTemplateDocument = exports.CreateContactDocument = exports.CreateCompanyNoteDocument = exports.CreateCompanyDocument = exports.CreateCombinedCampaignTemplateDocument = exports.CreateCombinedCampaignDocument = exports.CreateCampaignDocument = exports.CreateCallCampaignLogDocument = exports.CreateCallCampaignDocument = exports.CompleteCampaignDocument = exports.ClearAllNotificationsDocument = exports.ChangePasswordDocument = exports.CancelInvitationDocument = exports.CancelCombinedCampaignDocument = exports.CancelCampaignDocument = exports.BulkAssignCompanyOwnersDocument = exports.AiAgentExecuteDocument = exports.AiAgentContinueDocument = exports.AiAgentChatDocument = exports.AddSegmentToCampaignDocument = exports.AddSegmentToCallCampaignDocument = exports.AddContactsToSegmentDocument = exports.AddContactsToCombinedCampaignDocument = exports.AddContactsToCampaignDocument = exports.AcceptInvitationDocument = exports.SortDirection = exports.RecentHistorySortField = exports.NotificationTypeEnum = exports.ContactSortField = exports.CompanySortField = exports.CompanyNoteSortField = exports.CallCampaignLogOutcomeEnum = exports.AppEmailTemplateCampaignTypeChoices = exports.AppBusinessProfileStateChoices = exports.AppAccountInvitationStatusChoices = exports.AgentConversationMessageRoleChoices = void 0;
|
|
37
|
+
exports.UpdateEmailTemplateDocument = exports.UpdateContactDocument = exports.UpdateCompanyNoteDocument = exports.UpdateCompanyExternalIdentifierDocument = exports.UpdateCompanyDocument = exports.UpdateCombinedCampaignTemplateDocument = exports.UpdateCombinedCampaignLogsDocument = exports.UpdateCombinedCampaignLogDocument = exports.UpdateCombinedCampaignDocument = exports.UpdateCampaignDocument = exports.UpdateCallCampaignLogDocument = exports.UpdateCallCampaignDocument = exports.UnsubscribeFromEmailsDocument = exports.UnhideRecordDocument = exports.SubmitFeedbackDocument = exports.StartCombinedCampaignDocument = exports.StartCampaignDocument = exports.SignupDocument = exports.SetLeadNotInterestedDocument = exports.SendTestEmailCombinedDocument = exports.SendTestEmailDocument = exports.SendManualEmailDocument = exports.SendEmailToContactDocument = exports.ScheduleCombinedCampaignDocument = exports.ScheduleCampaignDocument = exports.SaveNylasConnectionDocument = exports.ResumeCombinedCampaignDocument = exports.RemoveSegmentFromCampaignDocument = exports.RemoveSegmentFromCallCampaignDocument = exports.RemoveMemberDocument = exports.RemoveContactsFromSegmentDocument = exports.RemoveContactsFromCombinedCampaignDocument = exports.RemoveContactsFromCampaignDocument = exports.RejectInvitationDocument = exports.ReduceSpamDocument = exports.PreviewCampaignEmailDocument = exports.PauseCombinedCampaignDocument = exports.PauseCampaignDocument = exports.MarkNotificationAsReadDocument = exports.MarkAllNotificationsAsReadDocument = exports.LoginWithMicrosoftDocument = exports.LoginWithGoogleDocument = exports.LoginDocument = exports.InviteUserDocument = exports.HideRecordDocument = exports.GenerateNewEmailDocument = exports.ForgotPasswordDocument = exports.EmailToneDocument = exports.DisconnectNylasIntegrationDocument = exports.DeleteTaskDocument = void 0;
|
|
38
|
+
exports.NotificationDocument = exports.MyInvitationsDocument = exports.MetalTypesDocument = exports.MetalGradesDocument = exports.IndustryTypesDocument = exports.IndustrySectorsDocument = exports.EmployeeSizesDocument = exports.EmailTemplatesDocument = exports.EmailTemplateDocument = exports.DashboardStatsDocument = exports.CurrentAccountDocument = exports.ConversationHistoryDocument = exports.ConversationDocument = exports.ContactsInSegmentDocument = exports.ContactsDocument = exports.ContactDocument = exports.CompanySearchDocument = exports.CompanyNotesDocument = exports.CompanyNoteDocument = exports.CompanyMetadataDocument = exports.CompanyExternalIdentifierDocument = exports.CompanyAudiencesAndCampaignsDocument = exports.CompanyDocument = exports.CompaniesDocument = exports.CombinedCampaignsDocument = exports.CombinedCampaignTemplatesDocument = exports.CombinedCampaignTemplateDocument = exports.CombinedCampaignStepsDocument = exports.CombinedCampaignLogsDocument = exports.CombinedCampaignContactsDocument = exports.CombinedCampaignDocument = exports.CampaignsDocument = exports.CampaignStatsDocument = exports.CampaignLogsDocument = exports.CampaignContactsDocument = exports.CampaignAnalyticsDocument = exports.CampaignDocument = exports.CallCampaignsDocument = exports.CallCampaignReportDocument = exports.CallCampaignLogsDocument = exports.CallCampaignLogDocument = exports.CallCampaignAnalyticsDocument = exports.CallCampaignDocument = exports.BusinessProfileDocument = exports.AccountMembersDocument = exports.ValidateOtpAndResetPasswordDocument = exports.UploadFileDocument = exports.UpdateUserProfileDocument = exports.UpdateTaskDocument = exports.UpdateSegmentDocument = void 0;
|
|
39
|
+
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 = void 0;
|
|
40
40
|
exports.useAcceptInvitationMutation = useAcceptInvitationMutation;
|
|
41
41
|
exports.useAddContactsToCampaignMutation = useAddContactsToCampaignMutation;
|
|
42
42
|
exports.useAddContactsToCombinedCampaignMutation = useAddContactsToCombinedCampaignMutation;
|
|
@@ -227,6 +227,12 @@ exports.useContactsSuspenseQuery = useContactsSuspenseQuery;
|
|
|
227
227
|
exports.useContactsInSegmentQuery = useContactsInSegmentQuery;
|
|
228
228
|
exports.useContactsInSegmentLazyQuery = useContactsInSegmentLazyQuery;
|
|
229
229
|
exports.useContactsInSegmentSuspenseQuery = useContactsInSegmentSuspenseQuery;
|
|
230
|
+
exports.useConversationQuery = useConversationQuery;
|
|
231
|
+
exports.useConversationLazyQuery = useConversationLazyQuery;
|
|
232
|
+
exports.useConversationSuspenseQuery = useConversationSuspenseQuery;
|
|
233
|
+
exports.useConversationHistoryQuery = useConversationHistoryQuery;
|
|
234
|
+
exports.useConversationHistoryLazyQuery = useConversationHistoryLazyQuery;
|
|
235
|
+
exports.useConversationHistorySuspenseQuery = useConversationHistorySuspenseQuery;
|
|
230
236
|
exports.useCurrentAccountQuery = useCurrentAccountQuery;
|
|
231
237
|
exports.useCurrentAccountLazyQuery = useCurrentAccountLazyQuery;
|
|
232
238
|
exports.useCurrentAccountSuspenseQuery = useCurrentAccountSuspenseQuery;
|
|
@@ -309,6 +315,16 @@ const client_1 = require("@apollo/client");
|
|
|
309
315
|
const Apollo = __importStar(require("@apollo/client"));
|
|
310
316
|
const defaultOptions = {};
|
|
311
317
|
/** An enumeration. */
|
|
318
|
+
var AgentConversationMessageRoleChoices;
|
|
319
|
+
(function (AgentConversationMessageRoleChoices) {
|
|
320
|
+
/** Assistant */
|
|
321
|
+
AgentConversationMessageRoleChoices["Assistant"] = "ASSISTANT";
|
|
322
|
+
/** System */
|
|
323
|
+
AgentConversationMessageRoleChoices["System"] = "SYSTEM";
|
|
324
|
+
/** User */
|
|
325
|
+
AgentConversationMessageRoleChoices["User"] = "USER";
|
|
326
|
+
})(AgentConversationMessageRoleChoices || (exports.AgentConversationMessageRoleChoices = AgentConversationMessageRoleChoices = {}));
|
|
327
|
+
/** An enumeration. */
|
|
312
328
|
var AppAccountInvitationStatusChoices;
|
|
313
329
|
(function (AppAccountInvitationStatusChoices) {
|
|
314
330
|
/** Accepted */
|
|
@@ -30674,6 +30690,114 @@ function useContactsInSegmentSuspenseQuery(baseOptions) {
|
|
|
30674
30690
|
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
30675
30691
|
return Apollo.useSuspenseQuery(exports.ContactsInSegmentDocument, options);
|
|
30676
30692
|
}
|
|
30693
|
+
exports.ConversationDocument = (0, client_1.gql) `
|
|
30694
|
+
query Conversation($conversationId: String!) {
|
|
30695
|
+
conversation(conversationId: $conversationId) {
|
|
30696
|
+
id
|
|
30697
|
+
user {
|
|
30698
|
+
id
|
|
30699
|
+
email
|
|
30700
|
+
firstName
|
|
30701
|
+
lastName
|
|
30702
|
+
picture
|
|
30703
|
+
}
|
|
30704
|
+
createdAt
|
|
30705
|
+
updatedAt
|
|
30706
|
+
messages {
|
|
30707
|
+
id
|
|
30708
|
+
role
|
|
30709
|
+
content
|
|
30710
|
+
toolCalls
|
|
30711
|
+
toolResults
|
|
30712
|
+
createdAt
|
|
30713
|
+
}
|
|
30714
|
+
}
|
|
30715
|
+
}
|
|
30716
|
+
`;
|
|
30717
|
+
/**
|
|
30718
|
+
* __useConversationQuery__
|
|
30719
|
+
*
|
|
30720
|
+
* To run a query within a React component, call `useConversationQuery` and pass it any options that fit your needs.
|
|
30721
|
+
* When your component renders, `useConversationQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
30722
|
+
* you can use to render your UI.
|
|
30723
|
+
*
|
|
30724
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
30725
|
+
*
|
|
30726
|
+
* @example
|
|
30727
|
+
* const { data, loading, error } = useConversationQuery({
|
|
30728
|
+
* variables: {
|
|
30729
|
+
* conversationId: // value for 'conversationId'
|
|
30730
|
+
* },
|
|
30731
|
+
* });
|
|
30732
|
+
*/
|
|
30733
|
+
function useConversationQuery(baseOptions) {
|
|
30734
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
30735
|
+
return Apollo.useQuery(exports.ConversationDocument, options);
|
|
30736
|
+
}
|
|
30737
|
+
function useConversationLazyQuery(baseOptions) {
|
|
30738
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
30739
|
+
return Apollo.useLazyQuery(exports.ConversationDocument, options);
|
|
30740
|
+
}
|
|
30741
|
+
function useConversationSuspenseQuery(baseOptions) {
|
|
30742
|
+
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
30743
|
+
return Apollo.useSuspenseQuery(exports.ConversationDocument, options);
|
|
30744
|
+
}
|
|
30745
|
+
exports.ConversationHistoryDocument = (0, client_1.gql) `
|
|
30746
|
+
query ConversationHistory($limit: Int, $offset: Int) {
|
|
30747
|
+
conversationHistory(limit: $limit, offset: $offset) {
|
|
30748
|
+
conversations {
|
|
30749
|
+
id
|
|
30750
|
+
user {
|
|
30751
|
+
id
|
|
30752
|
+
email
|
|
30753
|
+
firstName
|
|
30754
|
+
lastName
|
|
30755
|
+
picture
|
|
30756
|
+
}
|
|
30757
|
+
createdAt
|
|
30758
|
+
updatedAt
|
|
30759
|
+
messages {
|
|
30760
|
+
id
|
|
30761
|
+
role
|
|
30762
|
+
content
|
|
30763
|
+
toolCalls
|
|
30764
|
+
toolResults
|
|
30765
|
+
createdAt
|
|
30766
|
+
}
|
|
30767
|
+
}
|
|
30768
|
+
totalCount
|
|
30769
|
+
}
|
|
30770
|
+
}
|
|
30771
|
+
`;
|
|
30772
|
+
/**
|
|
30773
|
+
* __useConversationHistoryQuery__
|
|
30774
|
+
*
|
|
30775
|
+
* To run a query within a React component, call `useConversationHistoryQuery` and pass it any options that fit your needs.
|
|
30776
|
+
* When your component renders, `useConversationHistoryQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
30777
|
+
* you can use to render your UI.
|
|
30778
|
+
*
|
|
30779
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
30780
|
+
*
|
|
30781
|
+
* @example
|
|
30782
|
+
* const { data, loading, error } = useConversationHistoryQuery({
|
|
30783
|
+
* variables: {
|
|
30784
|
+
* limit: // value for 'limit'
|
|
30785
|
+
* offset: // value for 'offset'
|
|
30786
|
+
* },
|
|
30787
|
+
* });
|
|
30788
|
+
*/
|
|
30789
|
+
function useConversationHistoryQuery(baseOptions) {
|
|
30790
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
30791
|
+
return Apollo.useQuery(exports.ConversationHistoryDocument, options);
|
|
30792
|
+
}
|
|
30793
|
+
function useConversationHistoryLazyQuery(baseOptions) {
|
|
30794
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
30795
|
+
return Apollo.useLazyQuery(exports.ConversationHistoryDocument, options);
|
|
30796
|
+
}
|
|
30797
|
+
function useConversationHistorySuspenseQuery(baseOptions) {
|
|
30798
|
+
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
30799
|
+
return Apollo.useSuspenseQuery(exports.ConversationHistoryDocument, options);
|
|
30800
|
+
}
|
|
30677
30801
|
exports.CurrentAccountDocument = (0, client_1.gql) `
|
|
30678
30802
|
query CurrentAccount {
|
|
30679
30803
|
currentAccount {
|
package/dist/mutations.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export declare const AI_AGENT_CHAT: import("@apollo/client").DocumentNode;
|
|
2
|
+
export declare const AI_AGENT_EXECUTE: import("@apollo/client").DocumentNode;
|
|
3
|
+
export declare const AI_AGENT_CONTINUE: import("@apollo/client").DocumentNode;
|
|
4
|
+
export declare const DELETE_CONVERSATION: import("@apollo/client").DocumentNode;
|
|
1
5
|
export declare const CREATE_COMBINED_CAMPAIGN: import("@apollo/client").DocumentNode;
|
|
2
6
|
export declare const UPDATE_COMBINED_CAMPAIGN: import("@apollo/client").DocumentNode;
|
|
3
7
|
export declare const DELETE_COMBINED_CAMPAIGN: import("@apollo/client").DocumentNode;
|
|
@@ -85,10 +89,6 @@ export declare const UPDATE_COMPANY_NOTE: import("@apollo/client").DocumentNode;
|
|
|
85
89
|
export declare const DELETE_COMPANY_NOTE: import("@apollo/client").DocumentNode;
|
|
86
90
|
export declare const HIDE_RECORD: import("@apollo/client").DocumentNode;
|
|
87
91
|
export declare const UNHIDE_RECORD: import("@apollo/client").DocumentNode;
|
|
88
|
-
export declare const AI_AGENT_CHAT: import("@apollo/client").DocumentNode;
|
|
89
|
-
export declare const AI_AGENT_EXECUTE: import("@apollo/client").DocumentNode;
|
|
90
|
-
export declare const AI_AGENT_CONTINUE: import("@apollo/client").DocumentNode;
|
|
91
|
-
export declare const DELETE_CONVERSATION: import("@apollo/client").DocumentNode;
|
|
92
92
|
export declare const BULK_ASSIGN_COMPANY_OWNERS: import("@apollo/client").DocumentNode;
|
|
93
93
|
export declare const SET_LEAD_NOT_INTERESTED: import("@apollo/client").DocumentNode;
|
|
94
94
|
export declare const UPDATE_COMPANY_EXTERNAL_IDENTIFIER: import("@apollo/client").DocumentNode;
|
package/dist/mutations.js
CHANGED
|
@@ -1,8 +1,74 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UPDATE_COMPANY_EXTERNAL_IDENTIFIER = exports.SET_LEAD_NOT_INTERESTED = exports.BULK_ASSIGN_COMPANY_OWNERS = exports.
|
|
3
|
+
exports.REMOVE_CONTACTS_FROM_CAMPAIGN = exports.ADD_CONTACTS_TO_CAMPAIGN = exports.REMOVE_CONTACTS_FROM_SEGMENT = exports.ADD_CONTACTS_TO_SEGMENT = exports.DELETE_SEGMENT = exports.UPDATE_SEGMENT = exports.CREATE_SEGMENT = exports.DELETE_COMPANY = exports.UPDATE_COMPANY = exports.CREATE_COMPANY = exports.DELETE_CONTACT = exports.UPDATE_CONTACT = exports.CREATE_CONTACT = exports.SUBMIT_FEEDBACK = exports.LOGIN_WITH_MICROSOFT = exports.LOGIN_WITH_GOOGLE = exports.UNSUBSCRIBE_FROM_EMAILS = exports.VALIDATE_OTP_AND_RESET_PASSWORD = exports.CHANGE_PASSWORD = exports.UPDATE_USER_PROFILE = exports.LOGIN = exports.CANCEL_INVITATION = exports.REMOVE_MEMBER = exports.REJECT_INVITATION = exports.ACCEPT_INVITATION = exports.INVITE_USER = exports.UPLOAD_FILE = exports.FORGOT_PASSWORD = exports.SIGNUP = exports.DELETE_COMBINED_CAMPAIGN_TEMPLATE = exports.UPDATE_COMBINED_CAMPAIGN_TEMPLATE = exports.CREATE_COMBINED_CAMPAIGN_TEMPLATE = exports.REMOVE_CONTACTS_FROM_COMBINED_CAMPAIGN = exports.ADD_CONTACTS_TO_COMBINED_CAMPAIGN = exports.SEND_TEST_EMAIL_COMBINED = exports.SEND_MANUAL_EMAIL = exports.UPDATE_COMBINED_CAMPAIGN_LOGS = exports.UPDATE_COMBINED_CAMPAIGN_LOG = exports.CANCEL_COMBINED_CAMPAIGN = exports.RESUME_COMBINED_CAMPAIGN = exports.PAUSE_COMBINED_CAMPAIGN = exports.SCHEDULE_COMBINED_CAMPAIGN = exports.START_COMBINED_CAMPAIGN = exports.DELETE_COMBINED_CAMPAIGN = exports.UPDATE_COMBINED_CAMPAIGN = exports.CREATE_COMBINED_CAMPAIGN = exports.DELETE_CONVERSATION = exports.AI_AGENT_CONTINUE = exports.AI_AGENT_EXECUTE = exports.AI_AGENT_CHAT = void 0;
|
|
4
|
+
exports.UPDATE_COMPANY_EXTERNAL_IDENTIFIER = exports.SET_LEAD_NOT_INTERESTED = exports.BULK_ASSIGN_COMPANY_OWNERS = exports.UNHIDE_RECORD = exports.HIDE_RECORD = exports.DELETE_COMPANY_NOTE = exports.UPDATE_COMPANY_NOTE = exports.CREATE_COMPANY_NOTE = exports.UPDATE_CALL_CAMPAIGN_LOG = exports.CREATE_CALL_CAMPAIGN_LOG = exports.REMOVE_SEGMENT_FROM_CALL_CAMPAIGN = exports.ADD_SEGMENT_TO_CALL_CAMPAIGN = exports.DELETE_CALL_CAMPAIGN = exports.UPDATE_CALL_CAMPAIGN = exports.CREATE_CALL_CAMPAIGN = exports.DELETE_TASK = exports.UPDATE_TASK = exports.CREATE_TASK = exports.CLEAR_ALL_NOTIFICATIONS = exports.DELETE_NOTIFICATION = exports.MARK_ALL_NOTIFICATIONS_AS_READ = exports.MARK_NOTIFICATION_AS_READ = exports.CREATE_NOTIFICATION = exports.DISCONNECT_NYLAS_INTEGRATION = exports.SAVE_NYLAS_CONNECTION = exports.GENERATE_NEW_EMAIL = exports.REDUCE_SPAM = exports.EMAIL_TONE = exports.DELETE_EMAIL_TEMPLATE = exports.UPDATE_EMAIL_TEMPLATE = exports.CREATE_EMAIL_TEMPLATE = exports.PREVIEW_CAMPAIGN_EMAIL = exports.SCHEDULE_CAMPAIGN = exports.SEND_EMAIL_TO_CONTACT = exports.SEND_TEST_EMAIL = exports.CANCEL_CAMPAIGN = exports.COMPLETE_CAMPAIGN = 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 = void 0;
|
|
5
5
|
const client_1 = require("@apollo/client");
|
|
6
|
+
exports.AI_AGENT_CHAT = (0, client_1.gql) `
|
|
7
|
+
mutation AiAgentChat($conversationId: String, $enableTools: Boolean, $message: String!) {
|
|
8
|
+
aiAgentChat(conversationId: $conversationId, enableTools: $enableTools, message: $message) {
|
|
9
|
+
success
|
|
10
|
+
conversationId
|
|
11
|
+
response
|
|
12
|
+
toolCalls {
|
|
13
|
+
type
|
|
14
|
+
id
|
|
15
|
+
name
|
|
16
|
+
input
|
|
17
|
+
}
|
|
18
|
+
toolResults {
|
|
19
|
+
toolUseId
|
|
20
|
+
type
|
|
21
|
+
success
|
|
22
|
+
result
|
|
23
|
+
error
|
|
24
|
+
}
|
|
25
|
+
requiresExecution
|
|
26
|
+
error
|
|
27
|
+
}
|
|
28
|
+
}`;
|
|
29
|
+
exports.AI_AGENT_EXECUTE = (0, client_1.gql) `
|
|
30
|
+
mutation AiAgentExecute($conversationId: String!, $toolCalls: [JSONString]!) {
|
|
31
|
+
aiAgentExecute(conversationId: $conversationId, toolCalls: $toolCalls) {
|
|
32
|
+
success
|
|
33
|
+
results {
|
|
34
|
+
toolUseId
|
|
35
|
+
type
|
|
36
|
+
success
|
|
37
|
+
result
|
|
38
|
+
error
|
|
39
|
+
}
|
|
40
|
+
error
|
|
41
|
+
}
|
|
42
|
+
}`;
|
|
43
|
+
exports.AI_AGENT_CONTINUE = (0, client_1.gql) `
|
|
44
|
+
mutation AiAgentContinue($conversationId: String!, $toolResults: [JSONString]!) {
|
|
45
|
+
aiAgentContinue(conversationId: $conversationId, toolResults: $toolResults) {
|
|
46
|
+
success
|
|
47
|
+
response
|
|
48
|
+
toolCalls {
|
|
49
|
+
type
|
|
50
|
+
id
|
|
51
|
+
name
|
|
52
|
+
input
|
|
53
|
+
}
|
|
54
|
+
toolResults {
|
|
55
|
+
toolUseId
|
|
56
|
+
type
|
|
57
|
+
success
|
|
58
|
+
result
|
|
59
|
+
error
|
|
60
|
+
}
|
|
61
|
+
requiresExecution
|
|
62
|
+
error
|
|
63
|
+
}
|
|
64
|
+
}`;
|
|
65
|
+
exports.DELETE_CONVERSATION = (0, client_1.gql) `
|
|
66
|
+
mutation DeleteConversation($conversationId: String!) {
|
|
67
|
+
deleteConversation(conversationId: $conversationId) {
|
|
68
|
+
success
|
|
69
|
+
message
|
|
70
|
+
}
|
|
71
|
+
}`;
|
|
6
72
|
exports.CREATE_COMBINED_CAMPAIGN = (0, client_1.gql) `
|
|
7
73
|
mutation CreateCombinedCampaign($input: CombinedCampaignInput!, $steps: [CombinedCampaignStepInput]) {
|
|
8
74
|
createCombinedCampaign(input: $input, steps: $steps) {
|
|
@@ -13818,72 +13884,6 @@ mutation UnhideRecord($input: HiddenRecordInput!) {
|
|
|
13818
13884
|
message
|
|
13819
13885
|
}
|
|
13820
13886
|
}`;
|
|
13821
|
-
exports.AI_AGENT_CHAT = (0, client_1.gql) `
|
|
13822
|
-
mutation AiAgentChat($conversationId: String, $enableTools: Boolean, $message: String!) {
|
|
13823
|
-
aiAgentChat(conversationId: $conversationId, enableTools: $enableTools, message: $message) {
|
|
13824
|
-
success
|
|
13825
|
-
conversationId
|
|
13826
|
-
response
|
|
13827
|
-
toolCalls {
|
|
13828
|
-
type
|
|
13829
|
-
id
|
|
13830
|
-
name
|
|
13831
|
-
input
|
|
13832
|
-
}
|
|
13833
|
-
toolResults {
|
|
13834
|
-
toolUseId
|
|
13835
|
-
type
|
|
13836
|
-
success
|
|
13837
|
-
result
|
|
13838
|
-
error
|
|
13839
|
-
}
|
|
13840
|
-
requiresExecution
|
|
13841
|
-
error
|
|
13842
|
-
}
|
|
13843
|
-
}`;
|
|
13844
|
-
exports.AI_AGENT_EXECUTE = (0, client_1.gql) `
|
|
13845
|
-
mutation AiAgentExecute($conversationId: String!, $toolCalls: [JSONString]!) {
|
|
13846
|
-
aiAgentExecute(conversationId: $conversationId, toolCalls: $toolCalls) {
|
|
13847
|
-
success
|
|
13848
|
-
results {
|
|
13849
|
-
toolUseId
|
|
13850
|
-
type
|
|
13851
|
-
success
|
|
13852
|
-
result
|
|
13853
|
-
error
|
|
13854
|
-
}
|
|
13855
|
-
error
|
|
13856
|
-
}
|
|
13857
|
-
}`;
|
|
13858
|
-
exports.AI_AGENT_CONTINUE = (0, client_1.gql) `
|
|
13859
|
-
mutation AiAgentContinue($conversationId: String!, $toolResults: [JSONString]!) {
|
|
13860
|
-
aiAgentContinue(conversationId: $conversationId, toolResults: $toolResults) {
|
|
13861
|
-
success
|
|
13862
|
-
response
|
|
13863
|
-
toolCalls {
|
|
13864
|
-
type
|
|
13865
|
-
id
|
|
13866
|
-
name
|
|
13867
|
-
input
|
|
13868
|
-
}
|
|
13869
|
-
toolResults {
|
|
13870
|
-
toolUseId
|
|
13871
|
-
type
|
|
13872
|
-
success
|
|
13873
|
-
result
|
|
13874
|
-
error
|
|
13875
|
-
}
|
|
13876
|
-
requiresExecution
|
|
13877
|
-
error
|
|
13878
|
-
}
|
|
13879
|
-
}`;
|
|
13880
|
-
exports.DELETE_CONVERSATION = (0, client_1.gql) `
|
|
13881
|
-
mutation DeleteConversation($conversationId: String!) {
|
|
13882
|
-
deleteConversation(conversationId: $conversationId) {
|
|
13883
|
-
success
|
|
13884
|
-
message
|
|
13885
|
-
}
|
|
13886
|
-
}`;
|
|
13887
13887
|
exports.BULK_ASSIGN_COMPANY_OWNERS = (0, client_1.gql) `
|
|
13888
13888
|
mutation BulkAssignCompanyOwners($input: BulkAssignOwnersInput) {
|
|
13889
13889
|
bulkAssignCompanyOwners(input: $input) {
|
package/dist/queries.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export declare const CONVERSATION_HISTORY: import("@apollo/client").DocumentNode;
|
|
2
|
+
export declare const CONVERSATION: import("@apollo/client").DocumentNode;
|
|
1
3
|
export declare const COMBINED_CAMPAIGNS: import("@apollo/client").DocumentNode;
|
|
2
4
|
export declare const COMBINED_CAMPAIGN: import("@apollo/client").DocumentNode;
|
|
3
5
|
export declare const COMBINED_CAMPAIGN_LOGS: import("@apollo/client").DocumentNode;
|
package/dist/queries.js
CHANGED
|
@@ -1,8 +1,57 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.USER_PROFILE = exports.MY_INVITATIONS = exports.BUSINESS_PROFILE = exports.PENDING_INVITATIONS = exports.ACCOUNT_MEMBERS = exports.CURRENT_ACCOUNT = exports.COMPANY_EXTERNAL_IDENTIFIER = exports.COMPANY_AUDIENCES_AND_CAMPAIGNS = void 0;
|
|
3
|
+
exports.METAL_GRADES = exports.METAL_TYPES = exports.PRODUCT_CATEGORIES = exports.PRODUCT_TYPES = exports.INDUSTRY_SECTORS = exports.INDUSTRY_TYPES = exports.COMPANY_METADATA = exports.CONTACT = exports.COMPANY = exports.SEARCH_CONTACTS = exports.CONTACTS = exports.COMPANY_SEARCH = exports.COMPANIES = exports.CONTACTS_IN_SEGMENT = exports.SEGMENT = exports.SEGMENTS = exports.CAMPAIGN_CONTACTS = exports.CAMPAIGN_LOGS = exports.CAMPAIGN_ANALYTICS = exports.CAMPAIGN_STATS = exports.CAMPAIGN = exports.CAMPAIGNS = exports.EMAIL_TEMPLATES = exports.EMAIL_TEMPLATE = exports.NYLAS_CONNECTION = exports.RECENT_NOTIFICATIONS = exports.NOTIFICATION = exports.NOTIFICATIONS = exports.UNREAD_NOTIFICATIONS_COUNT = exports.TASK = exports.TASKS = exports.CALL_CAMPAIGN_REPORT = exports.CALL_CAMPAIGN_LOG = exports.CALL_CAMPAIGN_LOGS = exports.CALL_CAMPAIGN_ANALYTICS = exports.CALL_CAMPAIGN = exports.CALL_CAMPAIGNS = exports.COMPANY_NOTE = exports.COMPANY_NOTES = exports.RECENT_HISTORY = exports.DASHBOARD_STATS = exports.COMBINED_CAMPAIGN_TEMPLATE = exports.COMBINED_CAMPAIGN_TEMPLATES = exports.COMBINED_CAMPAIGN_STEPS = exports.COMBINED_CAMPAIGN_CONTACTS = exports.COMBINED_CAMPAIGN_LOGS = exports.COMBINED_CAMPAIGN = exports.COMBINED_CAMPAIGNS = exports.CONVERSATION = exports.CONVERSATION_HISTORY = void 0;
|
|
4
|
+
exports.USER_PROFILE = exports.MY_INVITATIONS = exports.BUSINESS_PROFILE = exports.PENDING_INVITATIONS = exports.ACCOUNT_MEMBERS = exports.CURRENT_ACCOUNT = exports.COMPANY_EXTERNAL_IDENTIFIER = exports.COMPANY_AUDIENCES_AND_CAMPAIGNS = exports.EMPLOYEE_SIZES = exports.US_STATES = void 0;
|
|
5
5
|
const client_1 = require("@apollo/client");
|
|
6
|
+
exports.CONVERSATION_HISTORY = (0, client_1.gql) `
|
|
7
|
+
query ConversationHistory($limit: Int, $offset: Int) {
|
|
8
|
+
conversationHistory(limit: $limit, offset: $offset) {
|
|
9
|
+
conversations {
|
|
10
|
+
id
|
|
11
|
+
user {
|
|
12
|
+
id
|
|
13
|
+
email
|
|
14
|
+
firstName
|
|
15
|
+
lastName
|
|
16
|
+
picture
|
|
17
|
+
}
|
|
18
|
+
createdAt
|
|
19
|
+
updatedAt
|
|
20
|
+
messages {
|
|
21
|
+
id
|
|
22
|
+
role
|
|
23
|
+
content
|
|
24
|
+
toolCalls
|
|
25
|
+
toolResults
|
|
26
|
+
createdAt
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
totalCount
|
|
30
|
+
}
|
|
31
|
+
}`;
|
|
32
|
+
exports.CONVERSATION = (0, client_1.gql) `
|
|
33
|
+
query Conversation($conversationId: String!) {
|
|
34
|
+
conversation(conversationId: $conversationId) {
|
|
35
|
+
id
|
|
36
|
+
user {
|
|
37
|
+
id
|
|
38
|
+
email
|
|
39
|
+
firstName
|
|
40
|
+
lastName
|
|
41
|
+
picture
|
|
42
|
+
}
|
|
43
|
+
createdAt
|
|
44
|
+
updatedAt
|
|
45
|
+
messages {
|
|
46
|
+
id
|
|
47
|
+
role
|
|
48
|
+
content
|
|
49
|
+
toolCalls
|
|
50
|
+
toolResults
|
|
51
|
+
createdAt
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}`;
|
|
6
55
|
exports.COMBINED_CAMPAIGNS = (0, client_1.gql) `
|
|
7
56
|
query CombinedCampaigns($pagination: PaginationInput, $status: String, $sortBy: String) {
|
|
8
57
|
combinedCampaigns(pagination: $pagination, status: $status, sortBy: $sortBy) {
|
package/dist/sdk.d.ts
CHANGED
|
@@ -134,6 +134,8 @@ export declare class CloudForgeSDK {
|
|
|
134
134
|
contact(id?: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
135
135
|
contacts(): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
136
136
|
contactsInSegment(segmentId: string, pagination?: PaginationInput): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
137
|
+
conversation(conversationId: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
138
|
+
conversationHistory(limit?: number, offset?: number): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
137
139
|
currentAccount(): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
138
140
|
dashboardStats(startDate?: string, endDate?: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
139
141
|
emailTemplate(uuid: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
package/dist/sdk.js
CHANGED
|
@@ -785,6 +785,18 @@ class CloudForgeSDK {
|
|
|
785
785
|
variables: { segmentId, pagination }
|
|
786
786
|
});
|
|
787
787
|
}
|
|
788
|
+
async conversation(conversationId) {
|
|
789
|
+
return this.apolloClient.query({
|
|
790
|
+
query: queries_1.CONVERSATION,
|
|
791
|
+
variables: { conversationId }
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
async conversationHistory(limit, offset) {
|
|
795
|
+
return this.apolloClient.query({
|
|
796
|
+
query: queries_1.CONVERSATION_HISTORY,
|
|
797
|
+
variables: { limit, offset }
|
|
798
|
+
});
|
|
799
|
+
}
|
|
788
800
|
async currentAccount() {
|
|
789
801
|
return this.apolloClient.query({
|
|
790
802
|
query: queries_1.CURRENT_ACCOUNT
|