@droz-js/sdk 0.6.6 → 0.6.8
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/package.json +1 -1
- package/src/nucleus.d.ts +3 -0
- package/src/sdks/drozchat.d.ts +73 -28
- package/src/sdks/drozchat.js +54 -12
- package/src/sdks/drozcommons.d.ts +12 -4
- package/src/sdks/drozcommons.js +4 -0
- package/src/sdks/nucleus.d.ts +69 -21
- package/src/sdks/nucleus.js +55 -28
- package/src/sdks/whatsapp.d.ts +35 -39
- package/src/sdks/whatsapp.js +19 -18
- package/src/whatsapp.d.ts +8 -8
- package/src/whatsapp.js +2 -2
package/package.json
CHANGED
package/src/nucleus.d.ts
CHANGED
|
@@ -14,6 +14,9 @@ declare const Nucleus_base: new (options?: import("./client/http").HttpClientOpt
|
|
|
14
14
|
getAgent(variables: import("./sdks/nucleus").Exact<{
|
|
15
15
|
id: string;
|
|
16
16
|
}>, options?: unknown): Promise<import("./sdks/nucleus").GetAgentQuery>;
|
|
17
|
+
getAgents(variables: import("./sdks/nucleus").Exact<{
|
|
18
|
+
ids: string | string[];
|
|
19
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").GetAgentsQuery>;
|
|
17
20
|
listAgents(variables?: import("./sdks/nucleus").Exact<{
|
|
18
21
|
next?: object;
|
|
19
22
|
}>, options?: unknown): Promise<import("./sdks/nucleus").ListAgentsQuery>;
|
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -122,6 +122,15 @@ export type AddTagsToTicketInput = {
|
|
|
122
122
|
tags: Array<Scalars['String']['input']>;
|
|
123
123
|
ticketId: Scalars['ID']['input'];
|
|
124
124
|
};
|
|
125
|
+
export type AgentSearchResultsFacet = {
|
|
126
|
+
name: Scalars['String']['output'];
|
|
127
|
+
stats?: Maybe<SearchResultsFacetStats>;
|
|
128
|
+
values?: Maybe<Array<AgentSearchResultsFacetValue>>;
|
|
129
|
+
};
|
|
130
|
+
export type AgentSearchResultsFacetValue = {
|
|
131
|
+
agent?: Maybe<DrozChatAgent>;
|
|
132
|
+
count: Scalars['Float']['output'];
|
|
133
|
+
};
|
|
125
134
|
export declare enum AppInstanceStatus {
|
|
126
135
|
Active = "Active",
|
|
127
136
|
Failing = "Failing",
|
|
@@ -140,6 +149,15 @@ export declare enum Can {
|
|
|
140
149
|
Remove = "remove",
|
|
141
150
|
Write = "write"
|
|
142
151
|
}
|
|
152
|
+
export type ChannelSearchResultsFacet = {
|
|
153
|
+
name: Scalars['String']['output'];
|
|
154
|
+
stats?: Maybe<SearchResultsFacetStats>;
|
|
155
|
+
values?: Maybe<Array<ChannelSearchResultsFacetValue>>;
|
|
156
|
+
};
|
|
157
|
+
export type ChannelSearchResultsFacetValue = {
|
|
158
|
+
channel?: Maybe<DrozChatChannel>;
|
|
159
|
+
count: Scalars['Float']['output'];
|
|
160
|
+
};
|
|
143
161
|
export type CloseTicketInput = {
|
|
144
162
|
ticketId: Scalars['ID']['input'];
|
|
145
163
|
};
|
|
@@ -163,7 +181,7 @@ export type CreateTicketMessageInput = {
|
|
|
163
181
|
ticketId: Scalars['ID']['input'];
|
|
164
182
|
};
|
|
165
183
|
export type CreateTicketTagInput = {
|
|
166
|
-
tags: Array<Scalars['
|
|
184
|
+
tags: Array<Scalars['Tag']['input']>;
|
|
167
185
|
};
|
|
168
186
|
export type DeleteTicketTagInput = {
|
|
169
187
|
tags: Array<Scalars['String']['input']>;
|
|
@@ -185,13 +203,23 @@ export type DrozChatChannel = {
|
|
|
185
203
|
updatedAt: Scalars['DateTime']['output'];
|
|
186
204
|
};
|
|
187
205
|
export type DrozChatCustomer = {
|
|
188
|
-
|
|
206
|
+
alternateName?: Maybe<Scalars['String']['output']>;
|
|
207
|
+
createdAt: Scalars['DateTime']['output'];
|
|
208
|
+
/** @deprecated Use documents instead */
|
|
189
209
|
document?: Maybe<Scalars['String']['output']>;
|
|
190
|
-
|
|
210
|
+
documents?: Maybe<Array<Scalars['String']['output']>>;
|
|
211
|
+
/** @deprecated Use emails instead */
|
|
212
|
+
email?: Maybe<Scalars['String']['output']>;
|
|
213
|
+
emails?: Maybe<Array<Scalars['String']['output']>>;
|
|
214
|
+
/** @deprecated Use externalIds instead */
|
|
215
|
+
externalId?: Maybe<Scalars['ID']['output']>;
|
|
216
|
+
externalIds?: Maybe<Array<Scalars['ID']['output']>>;
|
|
191
217
|
id: Scalars['ID']['output'];
|
|
192
218
|
name: Scalars['String']['output'];
|
|
219
|
+
/** @deprecated Use phones instead */
|
|
193
220
|
phone?: Maybe<Scalars['String']['output']>;
|
|
194
|
-
|
|
221
|
+
phones?: Maybe<Array<Scalars['String']['output']>>;
|
|
222
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
195
223
|
};
|
|
196
224
|
export type EnableDrozChatChannelInput = {
|
|
197
225
|
id: Scalars['ID']['input'];
|
|
@@ -547,10 +575,11 @@ export type TicketsConnection = {
|
|
|
547
575
|
pageInfo: PageInfo;
|
|
548
576
|
};
|
|
549
577
|
export type TicketsSearchResults = {
|
|
550
|
-
facets: Array<
|
|
578
|
+
facets: Array<TicketsSearchResultsFacet>;
|
|
551
579
|
nodes: Array<Ticket>;
|
|
552
580
|
stats: SearchResultsStats;
|
|
553
581
|
};
|
|
582
|
+
export type TicketsSearchResultsFacet = AgentSearchResultsFacet | ChannelSearchResultsFacet | SearchResultsFacet;
|
|
554
583
|
export type TransferTicketToChannelInput = {
|
|
555
584
|
channelId: Scalars['ID']['input'];
|
|
556
585
|
ticketId: Scalars['ID']['input'];
|
|
@@ -656,7 +685,7 @@ export type DeleteTagsMutationVariables = Exact<{
|
|
|
656
685
|
export type DeleteTagsMutation = {
|
|
657
686
|
deleteTags: Array<Maybe<TagFragment>>;
|
|
658
687
|
};
|
|
659
|
-
export type CustomerFragment = Pick<DrozChatCustomer, 'id' | 'name' | 'email' | 'phone' | 'document' | 'createdAt' | 'updatedAt'>;
|
|
688
|
+
export type CustomerFragment = Pick<DrozChatCustomer, 'id' | 'name' | 'alternateName' | 'email' | 'phone' | 'document' | 'externalId' | 'emails' | 'phones' | 'documents' | 'externalIds' | 'createdAt' | 'updatedAt'>;
|
|
660
689
|
export type DrozChatAgentFragment = Pick<DrozChatAgent, 'id' | 'name'>;
|
|
661
690
|
export type TicketTriggerAppFragment = (Pick<TicketTriggerApp, 'drn' | 'name' | 'appId' | 'appName' | 'appColor'> & {
|
|
662
691
|
channels: Array<Pick<TicketTriggerAppChannel, 'id' | 'main' | 'readonly' | 'hidden' | 'sources' | 'unreadMessagesCount'>>;
|
|
@@ -672,6 +701,23 @@ export type TicketWithSessionFragment = ({
|
|
|
672
701
|
} & TicketFragment);
|
|
673
702
|
export type TicketMessageFragment = Pick<TicketMessage, 'id' | 'ticketId' | 'from' | 'to' | 'channelId' | 'contentType' | 'content' | 'filename' | 'size' | 'createdAt' | 'updatedAt'>;
|
|
674
703
|
export type SessionAttributesFragment = Pick<TicketSessionAttributes, 'organization' | 'source' | 'order' | 'products' | 'review' | 'tags'>;
|
|
704
|
+
type Facets_AgentSearchResultsFacet_Fragment = (Pick<AgentSearchResultsFacet, 'name'> & {
|
|
705
|
+
values?: Maybe<Array<(Pick<AgentSearchResultsFacetValue, 'count'> & {
|
|
706
|
+
agent?: Maybe<Pick<DrozChatAgent, 'id' | 'name'>>;
|
|
707
|
+
})>>;
|
|
708
|
+
stats?: Maybe<Pick<SearchResultsFacetStats, 'min' | 'max'>>;
|
|
709
|
+
});
|
|
710
|
+
type Facets_ChannelSearchResultsFacet_Fragment = (Pick<ChannelSearchResultsFacet, 'name'> & {
|
|
711
|
+
values?: Maybe<Array<(Pick<ChannelSearchResultsFacetValue, 'count'> & {
|
|
712
|
+
channel?: Maybe<Pick<DrozChatChannel, 'id' | 'name'>>;
|
|
713
|
+
})>>;
|
|
714
|
+
stats?: Maybe<Pick<SearchResultsFacetStats, 'min' | 'max'>>;
|
|
715
|
+
});
|
|
716
|
+
type Facets_SearchResultsFacet_Fragment = (Pick<SearchResultsFacet, 'name'> & {
|
|
717
|
+
values?: Maybe<Array<Pick<SearchResultsFacetValue, 'value' | 'count'>>>;
|
|
718
|
+
stats?: Maybe<Pick<SearchResultsFacetStats, 'min' | 'max'>>;
|
|
719
|
+
});
|
|
720
|
+
export type FacetsFragment = Facets_AgentSearchResultsFacet_Fragment | Facets_ChannelSearchResultsFacet_Fragment | Facets_SearchResultsFacet_Fragment;
|
|
675
721
|
export type GetTicketQueryVariables = Exact<{
|
|
676
722
|
id: Scalars['ID']['input'];
|
|
677
723
|
}>;
|
|
@@ -721,10 +767,7 @@ export type SearchTicketsQuery = {
|
|
|
721
767
|
searchTickets?: Maybe<{
|
|
722
768
|
nodes: Array<TicketFragment>;
|
|
723
769
|
stats: Pick<SearchResultsStats, 'found' | 'outOf' | 'page' | 'totalPages' | 'perPage' | 'searchTime'>;
|
|
724
|
-
facets: Array<
|
|
725
|
-
values?: Maybe<Array<Pick<SearchResultsFacetValue, 'value' | 'count'>>>;
|
|
726
|
-
stats?: Maybe<Pick<SearchResultsFacetStats, 'min' | 'max'>>;
|
|
727
|
-
})>;
|
|
770
|
+
facets: Array<Facets_AgentSearchResultsFacet_Fragment | Facets_ChannelSearchResultsFacet_Fragment | Facets_SearchResultsFacet_Fragment>;
|
|
728
771
|
}>;
|
|
729
772
|
};
|
|
730
773
|
export type CreateTicketMutationVariables = Exact<{
|
|
@@ -823,13 +866,14 @@ export type OnTicketMessageSubscription = {
|
|
|
823
866
|
};
|
|
824
867
|
export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
825
868
|
export declare const TagFragmentDoc = "\n fragment tag on TicketTag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
826
|
-
export declare const CustomerFragmentDoc = "\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n ";
|
|
869
|
+
export declare const CustomerFragmentDoc = "\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n ";
|
|
827
870
|
export declare const TicketTriggerAppFragmentDoc = "\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n ";
|
|
828
871
|
export declare const DrozChatChannelFragmentDoc = "\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
829
|
-
export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
872
|
+
export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
830
873
|
export declare const SessionAttributesFragmentDoc = "\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
831
|
-
export declare const TicketWithSessionFragmentDoc = "\n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
874
|
+
export declare const TicketWithSessionFragmentDoc = "\n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
832
875
|
export declare const TicketMessageFragmentDoc = "\n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n channelId\n contentType\n content\n filename\n size\n createdAt\n updatedAt\n}\n ";
|
|
876
|
+
export declare const FacetsFragmentDoc = "\n fragment facets on TicketsSearchResultsFacet {\n ... on SearchResultsFacet {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n }\n ... on AgentSearchResultsFacet {\n name\n values {\n agent {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n ... on ChannelSearchResultsFacet {\n name\n values {\n channel {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n}\n ";
|
|
833
877
|
export declare const GetDrozChatChannelDocument = "\n query getDrozChatChannel($id: ID!) {\n getDrozChatChannel(id: $id) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
834
878
|
export declare const ListDrozChatChannelsDocument = "\n query listDrozChatChannels {\n listDrozChatChannels {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
835
879
|
export declare const ListDrozChatAgentChannelsDocument = "\n query listDrozChatAgentChannels($agentId: ID!) {\n listDrozChatAgentChannels(agentId: $agentId) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
@@ -842,25 +886,25 @@ export declare const RemoveDrozChatChannelAgentDocument = "\n mutation remove
|
|
|
842
886
|
export declare const ListTagsDocument = "\n query listTags($next: Base64) {\n listTags(next: $next) {\n nodes {\n ...tag\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment tag on TicketTag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
843
887
|
export declare const CreateTagsDocument = "\n mutation createTags($input: CreateTicketTagInput!) {\n createTags(input: $input) {\n ...tag\n }\n}\n \n fragment tag on TicketTag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
844
888
|
export declare const DeleteTagsDocument = "\n mutation deleteTags($input: DeleteTicketTagInput!) {\n deleteTags(input: $input) {\n ...tag\n }\n}\n \n fragment tag on TicketTag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
845
|
-
export declare const GetTicketDocument = "\n query getTicket($id: ID!) {\n getTicket(id: $id) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
846
|
-
export declare const ListTicketsDocument = "\n query listTickets($state: TicketState!, $status: [TicketStatus!], $assigneeId: ID, $next: Base64) {\n listTickets(\n state: $state\n status: $status\n assigneeId: $assigneeId\n next: $next\n ) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
847
|
-
export declare const ListTicketsInProgressMineDocument = "\n query listTicketsInProgressMine($next: Base64) {\n listTicketsInProgressMine(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
889
|
+
export declare const GetTicketDocument = "\n query getTicket($id: ID!) {\n getTicket(id: $id) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
890
|
+
export declare const ListTicketsDocument = "\n query listTickets($state: TicketState!, $status: [TicketStatus!], $assigneeId: ID, $next: Base64) {\n listTickets(\n state: $state\n status: $status\n assigneeId: $assigneeId\n next: $next\n ) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
891
|
+
export declare const ListTicketsInProgressMineDocument = "\n query listTicketsInProgressMine($next: Base64) {\n listTicketsInProgressMine(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
848
892
|
export declare const ListTicketMessagesDocument = "\n query listTicketMessages($ticketId: ID!, $channelId: ID!, $next: Base64) {\n listTicketMessages(ticketId: $ticketId, channelId: $channelId, next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...ticketMessage\n }\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n channelId\n contentType\n content\n filename\n size\n createdAt\n updatedAt\n}\n ";
|
|
849
|
-
export declare const SearchTicketsDocument = "\n query searchTickets($q: String, $filters: [TicketSearchFilterInput!], $sortBy: [TicketSearchSortBy!], $page: Int, $perPage: Int) {\n searchTickets(\n q: $q\n filters: $filters\n sortBy: $sortBy\n page: $page\n perPage: $perPage\n ) {\n nodes {\n ...ticket\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n facets {\n
|
|
850
|
-
export declare const CreateTicketDocument = "\n mutation createTicket($input: CreateTicketInput!) {\n createTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
851
|
-
export declare const UpdateTicketDocument = "\n mutation updateTicket($input: UpdateTicketInput!) {\n updateTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
893
|
+
export declare const SearchTicketsDocument = "\n query searchTickets($q: String, $filters: [TicketSearchFilterInput!], $sortBy: [TicketSearchSortBy!], $page: Int, $perPage: Int) {\n searchTickets(\n q: $q\n filters: $filters\n sortBy: $sortBy\n page: $page\n perPage: $perPage\n ) {\n nodes {\n ...ticket\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n facets {\n ...facets\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment facets on TicketsSearchResultsFacet {\n ... on SearchResultsFacet {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n }\n ... on AgentSearchResultsFacet {\n name\n values {\n agent {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n ... on ChannelSearchResultsFacet {\n name\n values {\n channel {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n}\n ";
|
|
894
|
+
export declare const CreateTicketDocument = "\n mutation createTicket($input: CreateTicketInput!) {\n createTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
895
|
+
export declare const UpdateTicketDocument = "\n mutation updateTicket($input: UpdateTicketInput!) {\n updateTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
852
896
|
export declare const MarkTicketMessagesAsReadDocument = "\n mutation markTicketMessagesAsRead($input: MarkTicketMessagesAsReadInput!) {\n markTicketMessagesAsRead(input: $input)\n}\n ";
|
|
853
897
|
export declare const CreateTicketMessageDocument = "\n mutation createTicketMessage($input: CreateTicketMessageInput!) {\n createTicketMessage(input: $input) {\n ...ticketMessage\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n channelId\n contentType\n content\n filename\n size\n createdAt\n updatedAt\n}\n ";
|
|
854
898
|
export declare const CreateTicketMessageForStorageDocument = "\n mutation createTicketMessageForStorage($input: CreateTicketMessageForStorageInput!) {\n createTicketMessageForStorage(input: $input) {\n ...ticketMessage\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n channelId\n contentType\n content\n filename\n size\n createdAt\n updatedAt\n}\n ";
|
|
855
|
-
export declare const AssignTicketDocument = "\n mutation assignTicket($input: AssignTicketInput!) {\n assignTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
856
|
-
export declare const AssignTicketMyselfDocument = "\n mutation assignTicketMyself($input: AssignTicketMyselfInput!) {\n assignTicketMyself(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
857
|
-
export declare const UnassignTicketDocument = "\n mutation unassignTicket($input: UnassignTicketInput!) {\n unassignTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
858
|
-
export declare const CloseTicketDocument = "\n mutation closeTicket($input: CloseTicketInput!) {\n closeTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
859
|
-
export declare const AddTagsToTicketDocument = "\n mutation addTagsToTicket($input: AddTagsToTicketInput!) {\n addTagsToTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
860
|
-
export declare const RemoveTagsFromTicketDocument = "\n mutation removeTagsFromTicket($input: RemoveTagsFromTicketInput!) {\n removeTagsFromTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
861
|
-
export declare const TransferTicketToChannelDocument = "\n mutation transferTicketToChannel($input: TransferTicketToChannelInput!) {\n transferTicketToChannel(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
862
|
-
export declare const OnTicketInProgressMineDocument = "\n subscription onTicketInProgressMine {\n onTicketInProgressMine {\n ticket {\n ...ticketWithSession\n }\n action\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
863
|
-
export declare const OnTicketByStateDocument = "\n subscription onTicketByState($state: TicketState!) {\n onTicketByState(state: $state) {\n ticket {\n ...ticketWithSession\n }\n action\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
899
|
+
export declare const AssignTicketDocument = "\n mutation assignTicket($input: AssignTicketInput!) {\n assignTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
900
|
+
export declare const AssignTicketMyselfDocument = "\n mutation assignTicketMyself($input: AssignTicketMyselfInput!) {\n assignTicketMyself(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
901
|
+
export declare const UnassignTicketDocument = "\n mutation unassignTicket($input: UnassignTicketInput!) {\n unassignTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
902
|
+
export declare const CloseTicketDocument = "\n mutation closeTicket($input: CloseTicketInput!) {\n closeTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
903
|
+
export declare const AddTagsToTicketDocument = "\n mutation addTagsToTicket($input: AddTagsToTicketInput!) {\n addTagsToTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
904
|
+
export declare const RemoveTagsFromTicketDocument = "\n mutation removeTagsFromTicket($input: RemoveTagsFromTicketInput!) {\n removeTagsFromTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
905
|
+
export declare const TransferTicketToChannelDocument = "\n mutation transferTicketToChannel($input: TransferTicketToChannelInput!) {\n transferTicketToChannel(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
906
|
+
export declare const OnTicketInProgressMineDocument = "\n subscription onTicketInProgressMine {\n onTicketInProgressMine {\n ticket {\n ...ticketWithSession\n }\n action\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
907
|
+
export declare const OnTicketByStateDocument = "\n subscription onTicketByState($state: TicketState!) {\n onTicketByState(state: $state) {\n ticket {\n ...ticketWithSession\n }\n action\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
864
908
|
export declare const OnTicketMessageDocument = "\n subscription onTicketMessage($ticketId: ID!) {\n onTicketMessage(ticketId: $ticketId) {\n message {\n ...ticketMessage\n }\n action\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n channelId\n contentType\n content\n filename\n size\n createdAt\n updatedAt\n}\n ";
|
|
865
909
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
866
910
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
@@ -899,3 +943,4 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
899
943
|
};
|
|
900
944
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
901
945
|
export declare const serviceName = "@droz/drozchat";
|
|
946
|
+
export {};
|
package/src/sdks/drozchat.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.serviceName = exports.getSdk = void 0;
|
|
4
|
+
exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.RemoveTagsFromTicketDocument = exports.AddTagsToTicketDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.UpdateTicketDocument = exports.CreateTicketDocument = exports.SearchTicketsDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.DeleteTagsDocument = exports.CreateTagsDocument = exports.ListTagsDocument = exports.RemoveDrozChatChannelAgentDocument = exports.AddDrozChatChannelAgentDocument = exports.EnableDrozChatChannelDocument = exports.DisableDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatAgentChannelsDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.FacetsFragmentDoc = exports.TicketMessageFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.CustomerFragmentDoc = exports.TagFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketSearchSortBy = exports.TicketPriority = exports.TicketMessageRecipient = exports.SubscriptionAction = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
|
+
exports.serviceName = exports.getSdk = exports.OnTicketMessageDocument = void 0;
|
|
6
6
|
var AppInstanceStatus;
|
|
7
7
|
(function (AppInstanceStatus) {
|
|
8
8
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -94,9 +94,15 @@ exports.CustomerFragmentDoc = `
|
|
|
94
94
|
fragment customer on DrozChatCustomer {
|
|
95
95
|
id
|
|
96
96
|
name
|
|
97
|
+
alternateName
|
|
97
98
|
email
|
|
98
99
|
phone
|
|
99
100
|
document
|
|
101
|
+
externalId
|
|
102
|
+
emails
|
|
103
|
+
phones
|
|
104
|
+
documents
|
|
105
|
+
externalIds
|
|
100
106
|
createdAt
|
|
101
107
|
updatedAt
|
|
102
108
|
}
|
|
@@ -199,6 +205,49 @@ exports.TicketMessageFragmentDoc = `
|
|
|
199
205
|
updatedAt
|
|
200
206
|
}
|
|
201
207
|
`;
|
|
208
|
+
exports.FacetsFragmentDoc = `
|
|
209
|
+
fragment facets on TicketsSearchResultsFacet {
|
|
210
|
+
... on SearchResultsFacet {
|
|
211
|
+
name
|
|
212
|
+
values {
|
|
213
|
+
value
|
|
214
|
+
count
|
|
215
|
+
}
|
|
216
|
+
stats {
|
|
217
|
+
min
|
|
218
|
+
max
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
... on AgentSearchResultsFacet {
|
|
222
|
+
name
|
|
223
|
+
values {
|
|
224
|
+
agent {
|
|
225
|
+
id
|
|
226
|
+
name
|
|
227
|
+
}
|
|
228
|
+
count
|
|
229
|
+
}
|
|
230
|
+
stats {
|
|
231
|
+
min
|
|
232
|
+
max
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
... on ChannelSearchResultsFacet {
|
|
236
|
+
name
|
|
237
|
+
values {
|
|
238
|
+
channel {
|
|
239
|
+
id
|
|
240
|
+
name
|
|
241
|
+
}
|
|
242
|
+
count
|
|
243
|
+
}
|
|
244
|
+
stats {
|
|
245
|
+
min
|
|
246
|
+
max
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
`;
|
|
202
251
|
exports.GetDrozChatChannelDocument = `
|
|
203
252
|
query getDrozChatChannel($id: ID!) {
|
|
204
253
|
getDrozChatChannel(id: $id) {
|
|
@@ -361,19 +410,12 @@ exports.SearchTicketsDocument = `
|
|
|
361
410
|
searchTime
|
|
362
411
|
}
|
|
363
412
|
facets {
|
|
364
|
-
|
|
365
|
-
values {
|
|
366
|
-
value
|
|
367
|
-
count
|
|
368
|
-
}
|
|
369
|
-
stats {
|
|
370
|
-
min
|
|
371
|
-
max
|
|
372
|
-
}
|
|
413
|
+
...facets
|
|
373
414
|
}
|
|
374
415
|
}
|
|
375
416
|
}
|
|
376
|
-
${exports.TicketFragmentDoc}
|
|
417
|
+
${exports.TicketFragmentDoc}
|
|
418
|
+
${exports.FacetsFragmentDoc}`;
|
|
377
419
|
exports.CreateTicketDocument = `
|
|
378
420
|
mutation createTicket($input: CreateTicketInput!) {
|
|
379
421
|
createTicket(input: $input) {
|
|
@@ -135,6 +135,10 @@ export type AwsAccount = {
|
|
|
135
135
|
tenantsCount: Scalars['Int']['output'];
|
|
136
136
|
};
|
|
137
137
|
export type AwsAccountParameters = {
|
|
138
|
+
metaAppId?: Maybe<Scalars['String']['output']>;
|
|
139
|
+
metaClientSecret?: Maybe<Scalars['String']['output']>;
|
|
140
|
+
metaConfigurationId?: Maybe<Scalars['String']['output']>;
|
|
141
|
+
metaWebhookVerificationToken?: Maybe<Scalars['String']['output']>;
|
|
138
142
|
openAIApiKey?: Maybe<Scalars['String']['output']>;
|
|
139
143
|
typesenseApiKey?: Maybe<Scalars['String']['output']>;
|
|
140
144
|
typesenseNodes?: Maybe<Scalars['String']['output']>;
|
|
@@ -378,6 +382,10 @@ export declare enum Typenames {
|
|
|
378
382
|
}
|
|
379
383
|
export type UpdateAccountParametersInput = {
|
|
380
384
|
id: Scalars['ID']['input'];
|
|
385
|
+
metaAppId?: InputMaybe<Scalars['String']['input']>;
|
|
386
|
+
metaClientSecret?: InputMaybe<Scalars['String']['input']>;
|
|
387
|
+
metaConfigurationId?: InputMaybe<Scalars['String']['input']>;
|
|
388
|
+
metaWebhookVerificationToken?: InputMaybe<Scalars['String']['input']>;
|
|
381
389
|
openAIApiKey?: InputMaybe<Scalars['String']['input']>;
|
|
382
390
|
typesenseApiKey?: InputMaybe<Scalars['String']['input']>;
|
|
383
391
|
typesenseNodes?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -389,7 +397,7 @@ export type UpdateTenantInput = {
|
|
|
389
397
|
};
|
|
390
398
|
export type AwsAccountFragment = (Pick<AwsAccount, 'id' | 'name' | 'tenantsCount'> & {
|
|
391
399
|
availableRegions: Array<RegionFragment>;
|
|
392
|
-
parameters: Pick<AwsAccountParameters, 'typesenseNodes' | 'typesenseApiKey' | 'openAIApiKey'>;
|
|
400
|
+
parameters: Pick<AwsAccountParameters, 'typesenseNodes' | 'typesenseApiKey' | 'openAIApiKey' | 'metaAppId' | 'metaClientSecret' | 'metaConfigurationId' | 'metaWebhookVerificationToken'>;
|
|
393
401
|
});
|
|
394
402
|
export type RegionFragment = Pick<Region, 'name'>;
|
|
395
403
|
export type ListAccountsQueryVariables = Exact<{
|
|
@@ -535,15 +543,15 @@ export type RemoveTenantMutation = {
|
|
|
535
543
|
removeTenant: TenantFragment;
|
|
536
544
|
};
|
|
537
545
|
export declare const RegionFragmentDoc = "\n fragment region on Region {\n name\n}\n ";
|
|
538
|
-
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n }\n}\n \n fragment region on Region {\n name\n}\n ";
|
|
546
|
+
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n }\n}\n \n fragment region on Region {\n name\n}\n ";
|
|
539
547
|
export declare const DeploymentFragmentDoc = "\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
540
548
|
export declare const GitBranchFragmentDoc = "\n fragment gitBranch on GitBranch {\n name\n}\n ";
|
|
541
549
|
export declare const GitRepositoryFragmentDoc = "\n fragment gitRepository on GitRepository {\n id\n name\n branches {\n ...gitBranch\n }\n}\n \n fragment gitBranch on GitBranch {\n name\n}\n ";
|
|
542
550
|
export declare const ServiceFragmentDoc = "\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
|
|
543
551
|
export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n }\n account {\n id\n name\n }\n}\n ";
|
|
544
|
-
export declare const ListAccountsDocument = "\n query listAccounts {\n listAccounts {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n }\n}\n \n fragment region on Region {\n name\n}\n ";
|
|
552
|
+
export declare const ListAccountsDocument = "\n query listAccounts {\n listAccounts {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n }\n}\n \n fragment region on Region {\n name\n}\n ";
|
|
545
553
|
export declare const ListRegionsDocument = "\n query listRegions {\n listRegions {\n ...region\n }\n}\n \n fragment region on Region {\n name\n}\n ";
|
|
546
|
-
export declare const UpdateAccountParametersDocument = "\n mutation updateAccountParameters($input: UpdateAccountParametersInput!) {\n updateAccountParameters(input: $input) {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n }\n}\n \n fragment region on Region {\n name\n}\n ";
|
|
554
|
+
export declare const UpdateAccountParametersDocument = "\n mutation updateAccountParameters($input: UpdateAccountParametersInput!) {\n updateAccountParameters(input: $input) {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n }\n}\n \n fragment region on Region {\n name\n}\n ";
|
|
547
555
|
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig($forDev: Boolean) {\n amplifyConfig(forDev: $forDev)\n}\n ";
|
|
548
556
|
export declare const GetAuthInfoDocument = "\n query getAuthInfo {\n authInfo {\n authenticationEndpoint\n jwtIssuer\n loginUrl\n logoutUrl\n cognitoConfig {\n region\n userPoolId\n userPoolWebClientId\n }\n }\n}\n ";
|
|
549
557
|
export declare const ListGitRepositoriesDocument = "\n query listGitRepositories {\n listGitRepositories {\n ...gitRepository\n }\n}\n \n fragment gitRepository on GitRepository {\n id\n name\n branches {\n ...gitBranch\n }\n}\n \n fragment gitBranch on GitBranch {\n name\n}\n ";
|
package/src/sdks/drozcommons.js
CHANGED
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -281,10 +281,11 @@ export type CreateStateMachineConfigWithStateInput = {
|
|
|
281
281
|
on?: InputMaybe<Array<StateMachineConfigStatesOnInput>>;
|
|
282
282
|
stateId: Scalars['ID']['input'];
|
|
283
283
|
};
|
|
284
|
-
export type Credentials = ApiKeyCredentialsType | BasicCredentialsType | OAuth2CredentialsType;
|
|
284
|
+
export type Credentials = ApiKeyCredentialsType | BasicCredentialsType | MetaCredentialsType | OAuth2CredentialsType;
|
|
285
285
|
export declare enum CredentialsType {
|
|
286
286
|
ApiKey = "ApiKey",
|
|
287
287
|
Basic = "Basic",
|
|
288
|
+
Meta = "Meta",
|
|
288
289
|
OAuth2 = "OAuth2"
|
|
289
290
|
}
|
|
290
291
|
export type CronJob = {
|
|
@@ -302,12 +303,20 @@ export type Customer = {
|
|
|
302
303
|
alternateName?: Maybe<Scalars['String']['output']>;
|
|
303
304
|
apps?: Maybe<Array<App>>;
|
|
304
305
|
createdAt: Scalars['DateTime']['output'];
|
|
306
|
+
/** @deprecated Use documents instead */
|
|
305
307
|
document?: Maybe<Scalars['String']['output']>;
|
|
306
|
-
|
|
308
|
+
documents?: Maybe<Array<Scalars['String']['output']>>;
|
|
309
|
+
/** @deprecated Use emails instead */
|
|
310
|
+
email?: Maybe<Scalars['String']['output']>;
|
|
311
|
+
emails?: Maybe<Array<Scalars['String']['output']>>;
|
|
312
|
+
/** @deprecated Use externalIds instead */
|
|
307
313
|
externalId?: Maybe<Scalars['ID']['output']>;
|
|
314
|
+
externalIds?: Maybe<Array<Scalars['ID']['output']>>;
|
|
308
315
|
id: Scalars['ID']['output'];
|
|
309
316
|
name: Scalars['String']['output'];
|
|
317
|
+
/** @deprecated Use phones instead */
|
|
310
318
|
phone?: Maybe<Scalars['String']['output']>;
|
|
319
|
+
phones?: Maybe<Array<Scalars['String']['output']>>;
|
|
311
320
|
updatedAt: Scalars['DateTime']['output'];
|
|
312
321
|
};
|
|
313
322
|
export declare enum CustomerIndex {
|
|
@@ -325,12 +334,12 @@ export type EditStateMachineConfigInput = {
|
|
|
325
334
|
};
|
|
326
335
|
export type GetOrCreateCustomerInput = {
|
|
327
336
|
alternateName?: InputMaybe<Scalars['String']['input']>;
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
337
|
+
documents?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
338
|
+
emails?: InputMaybe<Array<InputMaybe<Scalars['EmailAddress']['input']>>>;
|
|
339
|
+
externalIds?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>;
|
|
331
340
|
id?: InputMaybe<Scalars['ID']['input']>;
|
|
332
341
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
333
|
-
|
|
342
|
+
phones?: InputMaybe<Array<InputMaybe<Scalars['PhoneNumber']['input']>>>;
|
|
334
343
|
};
|
|
335
344
|
export type I18nText = {
|
|
336
345
|
lang: Scalars['Locale']['output'];
|
|
@@ -348,6 +357,23 @@ export type ICredentials = {
|
|
|
348
357
|
type: CredentialsType;
|
|
349
358
|
updatedAt: Scalars['DateTime']['output'];
|
|
350
359
|
};
|
|
360
|
+
export type MetaAuthInfo = {
|
|
361
|
+
metaAppId: Scalars['String']['output'];
|
|
362
|
+
scope: Scalars['String']['output'];
|
|
363
|
+
};
|
|
364
|
+
export type MetaCredentials = {
|
|
365
|
+
accessToken: Scalars['String']['output'];
|
|
366
|
+
code: Scalars['String']['output'];
|
|
367
|
+
};
|
|
368
|
+
export type MetaCredentialsType = ICredentials & {
|
|
369
|
+
createdAt: Scalars['DateTime']['output'];
|
|
370
|
+
credentials: MetaCredentials;
|
|
371
|
+
description: Scalars['String']['output'];
|
|
372
|
+
id: Scalars['ID']['output'];
|
|
373
|
+
systemCredentials?: Maybe<Scalars['Boolean']['output']>;
|
|
374
|
+
type: CredentialsType;
|
|
375
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
376
|
+
};
|
|
351
377
|
export type Mutation = {
|
|
352
378
|
addRoleToAgent?: Maybe<Agent>;
|
|
353
379
|
addTagsToSessionAttributes?: Maybe<Scalars['JSON']['output']>;
|
|
@@ -549,6 +575,7 @@ export type Query = {
|
|
|
549
575
|
countCredentials: Scalars['Int']['output'];
|
|
550
576
|
countLiveStateMachineConfigs: Scalars['Int']['output'];
|
|
551
577
|
getAgent?: Maybe<Agent>;
|
|
578
|
+
getAgents: Array<Agent>;
|
|
552
579
|
getApp?: Maybe<App>;
|
|
553
580
|
getAppInstance?: Maybe<AppInstance>;
|
|
554
581
|
getAppInstances: Array<AppInstance>;
|
|
@@ -558,6 +585,7 @@ export type Query = {
|
|
|
558
585
|
getCustomer?: Maybe<Customer>;
|
|
559
586
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
560
587
|
getMe?: Maybe<Agent>;
|
|
588
|
+
getMetaAuthInfo: MetaAuthInfo;
|
|
561
589
|
getSession?: Maybe<Session>;
|
|
562
590
|
getSessionSchema: Array<AppSessionSchemaFields>;
|
|
563
591
|
getSessionSchemaForAppId?: Maybe<AppSessionSchemaFields>;
|
|
@@ -590,6 +618,9 @@ export type QueryCheckPermissionsArgs = {
|
|
|
590
618
|
export type QueryGetAgentArgs = {
|
|
591
619
|
id: Scalars['ID']['input'];
|
|
592
620
|
};
|
|
621
|
+
export type QueryGetAgentsArgs = {
|
|
622
|
+
ids: Array<Scalars['ID']['input']>;
|
|
623
|
+
};
|
|
593
624
|
export type QueryGetAppArgs = {
|
|
594
625
|
appId: Scalars['ID']['input'];
|
|
595
626
|
};
|
|
@@ -918,6 +949,12 @@ export type GetAgentQueryVariables = Exact<{
|
|
|
918
949
|
export type GetAgentQuery = {
|
|
919
950
|
getAgent?: Maybe<AgentFragment>;
|
|
920
951
|
};
|
|
952
|
+
export type GetAgentsQueryVariables = Exact<{
|
|
953
|
+
ids: Array<Scalars['ID']['input']> | Scalars['ID']['input'];
|
|
954
|
+
}>;
|
|
955
|
+
export type GetAgentsQuery = {
|
|
956
|
+
getAgents: Array<AgentFragment>;
|
|
957
|
+
};
|
|
921
958
|
export type ListAgentsQueryVariables = Exact<{
|
|
922
959
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
923
960
|
}>;
|
|
@@ -1069,6 +1106,19 @@ export type GetAuthInfoQuery = {
|
|
|
1069
1106
|
})>;
|
|
1070
1107
|
};
|
|
1071
1108
|
export type SafeCredentialsFragment = Pick<SafeCredentials, 'id' | 'type' | 'description' | 'systemCredentials' | 'createdAt' | 'updatedAt'>;
|
|
1109
|
+
type CredentialsWithSecret_ApiKeyCredentialsType_Fragment = (Pick<ApiKeyCredentialsType, 'id' | 'type' | 'description' | 'systemCredentials' | 'createdAt' | 'updatedAt'> & {
|
|
1110
|
+
credentials: Pick<ApiKeyCredentials, 'apiKey'>;
|
|
1111
|
+
});
|
|
1112
|
+
type CredentialsWithSecret_BasicCredentialsType_Fragment = (Pick<BasicCredentialsType, 'id' | 'type' | 'description' | 'systemCredentials' | 'createdAt' | 'updatedAt'> & {
|
|
1113
|
+
credentials: Pick<BasicCredentials, 'username' | 'password'>;
|
|
1114
|
+
});
|
|
1115
|
+
type CredentialsWithSecret_MetaCredentialsType_Fragment = (Pick<MetaCredentialsType, 'id' | 'type' | 'description' | 'systemCredentials' | 'createdAt' | 'updatedAt'> & {
|
|
1116
|
+
credentials: Pick<MetaCredentials, 'code' | 'accessToken'>;
|
|
1117
|
+
});
|
|
1118
|
+
type CredentialsWithSecret_OAuth2CredentialsType_Fragment = (Pick<OAuth2CredentialsType, 'id' | 'type' | 'description' | 'systemCredentials' | 'createdAt' | 'updatedAt'> & {
|
|
1119
|
+
credentials: Pick<OAuth2Credentials, 'clientId' | 'clientSecret'>;
|
|
1120
|
+
});
|
|
1121
|
+
export type CredentialsWithSecretFragment = CredentialsWithSecret_ApiKeyCredentialsType_Fragment | CredentialsWithSecret_BasicCredentialsType_Fragment | CredentialsWithSecret_MetaCredentialsType_Fragment | CredentialsWithSecret_OAuth2CredentialsType_Fragment;
|
|
1072
1122
|
export type GetCredentialsQueryVariables = Exact<{
|
|
1073
1123
|
id: Scalars['ID']['input'];
|
|
1074
1124
|
}>;
|
|
@@ -1079,13 +1129,7 @@ export type GetCredentialsSecretQueryVariables = Exact<{
|
|
|
1079
1129
|
id: Scalars['ID']['input'];
|
|
1080
1130
|
}>;
|
|
1081
1131
|
export type GetCredentialsSecretQuery = {
|
|
1082
|
-
getCredentialsSecret?: Maybe<
|
|
1083
|
-
credentials: Pick<ApiKeyCredentials, 'apiKey'>;
|
|
1084
|
-
}) | (Pick<BasicCredentialsType, 'id' | 'type' | 'description' | 'systemCredentials' | 'updatedAt' | 'createdAt'> & {
|
|
1085
|
-
credentials: Pick<BasicCredentials, 'username' | 'password'>;
|
|
1086
|
-
}) | (Pick<OAuth2CredentialsType, 'id' | 'type' | 'description' | 'systemCredentials' | 'updatedAt' | 'createdAt'> & {
|
|
1087
|
-
credentials: Pick<OAuth2Credentials, 'clientId' | 'clientSecret'>;
|
|
1088
|
-
})>;
|
|
1132
|
+
getCredentialsSecret?: Maybe<CredentialsWithSecret_ApiKeyCredentialsType_Fragment | CredentialsWithSecret_BasicCredentialsType_Fragment | CredentialsWithSecret_MetaCredentialsType_Fragment | CredentialsWithSecret_OAuth2CredentialsType_Fragment>;
|
|
1089
1133
|
};
|
|
1090
1134
|
export type ListCredentialsQueryVariables = Exact<{
|
|
1091
1135
|
type?: InputMaybe<CredentialsType>;
|
|
@@ -1127,7 +1171,7 @@ export type RemoveSystemCredentialsMutationVariables = Exact<{
|
|
|
1127
1171
|
export type RemoveSystemCredentialsMutation = {
|
|
1128
1172
|
removeSystemCredentials?: Maybe<SafeCredentialsFragment>;
|
|
1129
1173
|
};
|
|
1130
|
-
export type CustomerFragment = (Pick<Customer, 'id' | 'name' | 'alternateName' | 'email' | 'phone' | 'document' | 'createdAt' | 'updatedAt'> & {
|
|
1174
|
+
export type CustomerFragment = (Pick<Customer, 'id' | 'name' | 'alternateName' | 'email' | 'phone' | 'document' | 'externalId' | 'emails' | 'phones' | 'documents' | 'externalIds' | 'createdAt' | 'updatedAt'> & {
|
|
1131
1175
|
apps?: Maybe<Array<Pick<App, 'id' | 'name'>>>;
|
|
1132
1176
|
});
|
|
1133
1177
|
export type GetCustomerQueryVariables = Exact<{
|
|
@@ -1373,7 +1417,8 @@ export declare const AppFragmentDoc = "\n fragment app on App {\n id\n type
|
|
|
1373
1417
|
export declare const AppInstanceFragmentDoc = "\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1374
1418
|
export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstances on App {\n ...app\n instances {\n ...appInstance\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1375
1419
|
export declare const SafeCredentialsFragmentDoc = "\n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1376
|
-
export declare const
|
|
1420
|
+
export declare const CredentialsWithSecretFragmentDoc = "\n fragment credentialsWithSecret on Credentials {\n ... on ICredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n }\n ... on BasicCredentialsType {\n credentials {\n username\n password\n }\n }\n ... on ApiKeyCredentialsType {\n credentials {\n apiKey\n }\n }\n ... on OAuth2CredentialsType {\n credentials {\n clientId\n clientSecret\n }\n }\n ... on MetaCredentialsType {\n credentials {\n code\n accessToken\n }\n }\n}\n ";
|
|
1421
|
+
export declare const CustomerFragmentDoc = "\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1377
1422
|
export declare const CronJobFragmentDoc = "\n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n runs\n}\n ";
|
|
1378
1423
|
export declare const PolicyFragmentDoc = "\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
1379
1424
|
export declare const RoleFragmentDoc = "\n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n \n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
@@ -1386,6 +1431,7 @@ export declare const StateMachineConfigConnectionFragmentDoc = "\n fragment s
|
|
|
1386
1431
|
export declare const StorageFragmentDoc = "\n fragment storage on Storage {\n key\n versionId\n name\n contentType\n size\n eTag\n cdnUrl\n createdAt\n updatedAt\n}\n ";
|
|
1387
1432
|
export declare const GetMeDocument = "\n query getMe {\n getMe {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n systemAgent\n createdAt\n updatedAt\n}\n ";
|
|
1388
1433
|
export declare const GetAgentDocument = "\n query getAgent($id: ID!) {\n getAgent(id: $id) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n systemAgent\n createdAt\n updatedAt\n}\n ";
|
|
1434
|
+
export declare const GetAgentsDocument = "\n query getAgents($ids: [ID!]!) {\n getAgents(ids: $ids) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n systemAgent\n createdAt\n updatedAt\n}\n ";
|
|
1389
1435
|
export declare const ListAgentsDocument = "\n query listAgents($next: Base64) {\n listAgents(next: $next) {\n nodes {\n ...agent\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n systemAgent\n createdAt\n updatedAt\n}\n ";
|
|
1390
1436
|
export declare const ListApiKeyAgentsDocument = "\n query listApiKeyAgents($next: Base64) {\n listApiKeyAgents(next: $next) {\n nodes {\n ...agent\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n systemAgent\n createdAt\n updatedAt\n}\n ";
|
|
1391
1437
|
export declare const UpdateMyProfileDocument = "\n mutation updateMyProfile($input: UpdateMyProfileInput!) {\n updateMyProfile(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n systemAgent\n createdAt\n updatedAt\n}\n ";
|
|
@@ -1408,7 +1454,7 @@ export declare const UnregisterAppInstanceDocument = "\n mutation unregisterA
|
|
|
1408
1454
|
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig {\n amplifyConfig\n}\n ";
|
|
1409
1455
|
export declare const GetAuthInfoDocument = "\n query getAuthInfo {\n authInfo {\n authenticationEndpoint\n jwtIssuer\n loginUrl\n logoutUrl\n cognitoConfig {\n region\n userPoolId\n userPoolWebClientId\n }\n }\n}\n ";
|
|
1410
1456
|
export declare const GetCredentialsDocument = "\n query getCredentials($id: ID!) {\n getCredentials(id: $id) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1411
|
-
export declare const GetCredentialsSecretDocument = "\n query getCredentialsSecret($id: ID!) {\n getCredentialsSecret(id: $id) {\n ... on ICredentials {\n
|
|
1457
|
+
export declare const GetCredentialsSecretDocument = "\n query getCredentialsSecret($id: ID!) {\n getCredentialsSecret(id: $id) {\n ...credentialsWithSecret\n }\n}\n \n fragment credentialsWithSecret on Credentials {\n ... on ICredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n }\n ... on BasicCredentialsType {\n credentials {\n username\n password\n }\n }\n ... on ApiKeyCredentialsType {\n credentials {\n apiKey\n }\n }\n ... on OAuth2CredentialsType {\n credentials {\n clientId\n clientSecret\n }\n }\n ... on MetaCredentialsType {\n credentials {\n code\n accessToken\n }\n }\n}\n ";
|
|
1412
1458
|
export declare const ListCredentialsDocument = "\n query listCredentials($type: CredentialsType) {\n listCredentials(type: $type) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1413
1459
|
export declare const CountCredentialsDocument = "\n query countCredentials {\n countCredentials\n}\n ";
|
|
1414
1460
|
export declare const CreateCredentialsDocument = "\n mutation createCredentials($input: CreateCredentialsInput!) {\n createCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
@@ -1416,9 +1462,9 @@ export declare const CreateSystemCredentialsDocument = "\n mutation createSys
|
|
|
1416
1462
|
export declare const UpdateCredentialsDocument = "\n mutation updateCredentials($input: UpdateCredentialsInput!) {\n updateCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1417
1463
|
export declare const RemoveCredentialsDocument = "\n mutation removeCredentials($input: RemoveCredentialsInput!) {\n removeCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1418
1464
|
export declare const RemoveSystemCredentialsDocument = "\n mutation removeSystemCredentials($input: RemoveCredentialsInput!) {\n removeSystemCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1419
|
-
export declare const GetCustomerDocument = "\n query getCustomer($identifier: ID!) {\n getCustomer(identifier: $identifier) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1420
|
-
export declare const ListCustomersDocument = "\n query listCustomers($next: Base64) {\n listCustomers(next: $next) {\n nodes {\n ...customer\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1421
|
-
export declare const GetOrCreateCustomerDocument = "\n mutation getOrCreateCustomer($input: GetOrCreateCustomerInput!) {\n getOrCreateCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1465
|
+
export declare const GetCustomerDocument = "\n query getCustomer($identifier: ID!) {\n getCustomer(identifier: $identifier) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1466
|
+
export declare const ListCustomersDocument = "\n query listCustomers($next: Base64) {\n listCustomers(next: $next) {\n nodes {\n ...customer\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1467
|
+
export declare const GetOrCreateCustomerDocument = "\n mutation getOrCreateCustomer($input: GetOrCreateCustomerInput!) {\n getOrCreateCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1422
1468
|
export declare const GetCronJobDocument = "\n query getCronJob($id: ID!) {\n getCronJob(id: $id) {\n ...cronJob\n }\n}\n \n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n runs\n}\n ";
|
|
1423
1469
|
export declare const ListCronJobsDocument = "\n query listCronJobs {\n listCronJobs {\n ...cronJob\n }\n}\n \n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n runs\n}\n ";
|
|
1424
1470
|
export declare const CreateCronJobDocument = "\n mutation createCronJob($input: CreateCronJobInput!) {\n createCronJob(input: $input) {\n ...cronJob\n }\n}\n \n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n runs\n}\n ";
|
|
@@ -1427,8 +1473,8 @@ export declare const RemoveCronJobDocument = "\n mutation removeCronJob($inpu
|
|
|
1427
1473
|
export declare const ListSystemRolesDocument = "\n query listSystemRoles {\n listSystemRoles {\n ...role\n }\n}\n \n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n \n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
1428
1474
|
export declare const GetSystemRoleDocument = "\n query getSystemRole($id: ID!) {\n getSystemRole(id: $id) {\n ...role\n }\n}\n \n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n \n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
1429
1475
|
export declare const CheckPermissionsDocument = "\n query checkPermissions($can: Can!, $resources: [String!]!) {\n checkPermissions(can: $can, resources: $resources)\n}\n ";
|
|
1430
|
-
export declare const StartSessionDocument = "\n mutation startSession($input: StartSessionInput!, $withCustomer: Boolean = true) {\n startSession(input: $input) {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n customer @include(if: $withCustomer) {\n ...customer\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1431
|
-
export declare const GetSessionDocument = "\n query getSession($sessionId: ID!, $withCustomer: Boolean = true, $withAttributes: Boolean = true) {\n getSession(sessionId: $sessionId) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n attributes @include(if: $withAttributes)\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n}\n \n\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1476
|
+
export declare const StartSessionDocument = "\n mutation startSession($input: StartSessionInput!, $withCustomer: Boolean = true) {\n startSession(input: $input) {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n customer @include(if: $withCustomer) {\n ...customer\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1477
|
+
export declare const GetSessionDocument = "\n query getSession($sessionId: ID!, $withCustomer: Boolean = true, $withAttributes: Boolean = true) {\n getSession(sessionId: $sessionId) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n attributes @include(if: $withAttributes)\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n}\n \n\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1432
1478
|
export declare const GetSessionSchemaDocument = "\n query getSessionSchema($lang: String) {\n getSessionSchema(lang: $lang) {\n ...sessionSchema\n }\n}\n \n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
|
|
1433
1479
|
export declare const GetSessionSchemaForAppIdDocument = "\n query getSessionSchemaForAppId($appId: ID!, $lang: String) {\n getSessionSchemaForAppId(appId: $appId, lang: $lang) {\n ...sessionSchema\n }\n}\n \n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
|
|
1434
1480
|
export declare const SetSessionAttributeDocument = "\n mutation setSessionAttribute($input: SetSessionAttributeInput!) {\n setSessionAttribute(input: $input)\n}\n ";
|
|
@@ -1456,6 +1502,7 @@ export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Pr
|
|
|
1456
1502
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
1457
1503
|
getMe(variables?: GetMeQueryVariables, options?: C): Promise<GetMeQuery>;
|
|
1458
1504
|
getAgent(variables: GetAgentQueryVariables, options?: C): Promise<GetAgentQuery>;
|
|
1505
|
+
getAgents(variables: GetAgentsQueryVariables, options?: C): Promise<GetAgentsQuery>;
|
|
1459
1506
|
listAgents(variables?: ListAgentsQueryVariables, options?: C): Promise<ListAgentsQuery>;
|
|
1460
1507
|
listApiKeyAgents(variables?: ListApiKeyAgentsQueryVariables, options?: C): Promise<ListApiKeyAgentsQuery>;
|
|
1461
1508
|
updateMyProfile(variables: UpdateMyProfileMutationVariables, options?: C): Promise<UpdateMyProfileMutation>;
|
|
@@ -1525,3 +1572,4 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1525
1572
|
};
|
|
1526
1573
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
1527
1574
|
export declare const serviceName = "@droz/nucleus";
|
|
1575
|
+
export {};
|
package/src/sdks/nucleus.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.serviceName = exports.getSdk = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartSessionDocument = exports.CheckPermissionsDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveSystemCredentialsDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateSystemCredentialsDocument = exports.CreateCredentialsDocument = exports.CountCredentialsDocument = exports.ListCredentialsDocument = void 0;
|
|
4
|
+
exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.CountAppInstancesDocument = exports.ListAppInstancesDocument = exports.GetAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveSystemApiKeyAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateSystemApiKeyAgentDocument = exports.CreateApiKeyAgentDocument = exports.CreateAgentDocument = exports.UpdateMyProfileDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentsDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StorageFragmentDoc = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SessionSchemaFragmentDoc = exports.SessionFragmentDoc = exports.RoleFragmentDoc = exports.PolicyFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.CredentialsWithSecretFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.ApiKeyFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.Can = exports.AppType = exports.AppInstanceStatus = void 0;
|
|
5
|
+
exports.serviceName = exports.getSdk = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartSessionDocument = exports.CheckPermissionsDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveSystemCredentialsDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateSystemCredentialsDocument = exports.CreateCredentialsDocument = exports.CountCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = void 0;
|
|
6
6
|
var AppInstanceStatus;
|
|
7
7
|
(function (AppInstanceStatus) {
|
|
8
8
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -26,6 +26,7 @@ var CredentialsType;
|
|
|
26
26
|
(function (CredentialsType) {
|
|
27
27
|
CredentialsType["ApiKey"] = "ApiKey";
|
|
28
28
|
CredentialsType["Basic"] = "Basic";
|
|
29
|
+
CredentialsType["Meta"] = "Meta";
|
|
29
30
|
CredentialsType["OAuth2"] = "OAuth2";
|
|
30
31
|
})(CredentialsType || (exports.CredentialsType = CredentialsType = {}));
|
|
31
32
|
var CustomerIndex;
|
|
@@ -142,6 +143,41 @@ exports.SafeCredentialsFragmentDoc = `
|
|
|
142
143
|
updatedAt
|
|
143
144
|
}
|
|
144
145
|
`;
|
|
146
|
+
exports.CredentialsWithSecretFragmentDoc = `
|
|
147
|
+
fragment credentialsWithSecret on Credentials {
|
|
148
|
+
... on ICredentials {
|
|
149
|
+
id
|
|
150
|
+
type
|
|
151
|
+
description
|
|
152
|
+
systemCredentials
|
|
153
|
+
createdAt
|
|
154
|
+
updatedAt
|
|
155
|
+
}
|
|
156
|
+
... on BasicCredentialsType {
|
|
157
|
+
credentials {
|
|
158
|
+
username
|
|
159
|
+
password
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
... on ApiKeyCredentialsType {
|
|
163
|
+
credentials {
|
|
164
|
+
apiKey
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
... on OAuth2CredentialsType {
|
|
168
|
+
credentials {
|
|
169
|
+
clientId
|
|
170
|
+
clientSecret
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
... on MetaCredentialsType {
|
|
174
|
+
credentials {
|
|
175
|
+
code
|
|
176
|
+
accessToken
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
`;
|
|
145
181
|
exports.CustomerFragmentDoc = `
|
|
146
182
|
fragment customer on Customer {
|
|
147
183
|
id
|
|
@@ -150,6 +186,11 @@ exports.CustomerFragmentDoc = `
|
|
|
150
186
|
email
|
|
151
187
|
phone
|
|
152
188
|
document
|
|
189
|
+
externalId
|
|
190
|
+
emails
|
|
191
|
+
phones
|
|
192
|
+
documents
|
|
193
|
+
externalIds
|
|
153
194
|
apps {
|
|
154
195
|
id
|
|
155
196
|
name
|
|
@@ -274,6 +315,13 @@ exports.GetAgentDocument = `
|
|
|
274
315
|
}
|
|
275
316
|
}
|
|
276
317
|
${exports.AgentFragmentDoc}`;
|
|
318
|
+
exports.GetAgentsDocument = `
|
|
319
|
+
query getAgents($ids: [ID!]!) {
|
|
320
|
+
getAgents(ids: $ids) {
|
|
321
|
+
...agent
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
${exports.AgentFragmentDoc}`;
|
|
277
325
|
exports.ListAgentsDocument = `
|
|
278
326
|
query listAgents($next: Base64) {
|
|
279
327
|
listAgents(next: $next) {
|
|
@@ -467,34 +515,10 @@ exports.GetCredentialsDocument = `
|
|
|
467
515
|
exports.GetCredentialsSecretDocument = `
|
|
468
516
|
query getCredentialsSecret($id: ID!) {
|
|
469
517
|
getCredentialsSecret(id: $id) {
|
|
470
|
-
...
|
|
471
|
-
id
|
|
472
|
-
type
|
|
473
|
-
description
|
|
474
|
-
systemCredentials
|
|
475
|
-
updatedAt
|
|
476
|
-
createdAt
|
|
477
|
-
}
|
|
478
|
-
... on BasicCredentialsType {
|
|
479
|
-
credentials {
|
|
480
|
-
username
|
|
481
|
-
password
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
... on ApiKeyCredentialsType {
|
|
485
|
-
credentials {
|
|
486
|
-
apiKey
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
... on OAuth2CredentialsType {
|
|
490
|
-
credentials {
|
|
491
|
-
clientId
|
|
492
|
-
clientSecret
|
|
493
|
-
}
|
|
494
|
-
}
|
|
518
|
+
...credentialsWithSecret
|
|
495
519
|
}
|
|
496
520
|
}
|
|
497
|
-
`;
|
|
521
|
+
${exports.CredentialsWithSecretFragmentDoc}`;
|
|
498
522
|
exports.ListCredentialsDocument = `
|
|
499
523
|
query listCredentials($type: CredentialsType) {
|
|
500
524
|
listCredentials(type: $type) {
|
|
@@ -806,6 +830,9 @@ function getSdk(requester) {
|
|
|
806
830
|
getAgent(variables, options) {
|
|
807
831
|
return requester(exports.GetAgentDocument, variables, options);
|
|
808
832
|
},
|
|
833
|
+
getAgents(variables, options) {
|
|
834
|
+
return requester(exports.GetAgentsDocument, variables, options);
|
|
835
|
+
},
|
|
809
836
|
listAgents(variables, options) {
|
|
810
837
|
return requester(exports.ListAgentsDocument, variables, options);
|
|
811
838
|
},
|
package/src/sdks/whatsapp.d.ts
CHANGED
|
@@ -125,11 +125,9 @@ export declare enum Can {
|
|
|
125
125
|
Remove = "remove",
|
|
126
126
|
Write = "write"
|
|
127
127
|
}
|
|
128
|
-
export type
|
|
128
|
+
export type CreateWhatsAppInstanceInput = {
|
|
129
129
|
exchangeCode: Scalars['String']['input'];
|
|
130
|
-
|
|
131
|
-
phoneNumberId: Scalars['String']['input'];
|
|
132
|
-
wabaId: Scalars['String']['input'];
|
|
130
|
+
instance: InstanceInput;
|
|
133
131
|
};
|
|
134
132
|
export type I18nText = {
|
|
135
133
|
lang: Scalars['Locale']['output'];
|
|
@@ -139,21 +137,23 @@ export type I18nTextInput = {
|
|
|
139
137
|
lang: Scalars['Locale']['input'];
|
|
140
138
|
value: Scalars['String']['input'];
|
|
141
139
|
};
|
|
140
|
+
export type InstanceInput = {
|
|
141
|
+
credentialsId: Scalars['ID']['input'];
|
|
142
|
+
name: Scalars['String']['input'];
|
|
143
|
+
phoneNumberId: Scalars['String']['input'];
|
|
144
|
+
wabaId: Scalars['String']['input'];
|
|
145
|
+
};
|
|
142
146
|
export type Mutation = {
|
|
143
|
-
|
|
147
|
+
createWhatsAppInstance?: Maybe<WhatsAppInstance>;
|
|
144
148
|
receiveWhatsAppMessage?: Maybe<Scalars['Void']['output']>;
|
|
145
|
-
sendWhatsappMessage?: Maybe<Scalars['Void']['output']>;
|
|
146
149
|
version?: Maybe<Scalars['String']['output']>;
|
|
147
150
|
};
|
|
148
|
-
export type
|
|
149
|
-
input:
|
|
151
|
+
export type MutationCreateWhatsAppInstanceArgs = {
|
|
152
|
+
input: CreateWhatsAppInstanceInput;
|
|
150
153
|
};
|
|
151
154
|
export type MutationReceiveWhatsAppMessageArgs = {
|
|
152
155
|
input: ReceiveWhatsAppMessageInput;
|
|
153
156
|
};
|
|
154
|
-
export type MutationSendWhatsappMessageArgs = {
|
|
155
|
-
input: SendWhatsappMessageInput;
|
|
156
|
-
};
|
|
157
157
|
export type NumberFilterInput = {
|
|
158
158
|
btw?: InputMaybe<Array<Scalars['Float']['input']>>;
|
|
159
159
|
eq?: InputMaybe<Scalars['Float']['input']>;
|
|
@@ -170,11 +170,11 @@ export type PageInfo = {
|
|
|
170
170
|
export type Query = {
|
|
171
171
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
172
172
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
getWhatsAppInstance?: Maybe<WhatsAppInstance>;
|
|
174
|
+
listWhatsAppInstances?: Maybe<Array<Maybe<WhatsAppInstance>>>;
|
|
175
175
|
version?: Maybe<Scalars['String']['output']>;
|
|
176
176
|
};
|
|
177
|
-
export type
|
|
177
|
+
export type QueryGetWhatsAppInstanceArgs = {
|
|
178
178
|
id: Scalars['ID']['input'];
|
|
179
179
|
};
|
|
180
180
|
export type ReceiveWhatsAppMessageInput = {
|
|
@@ -203,11 +203,6 @@ export type SearchResultsStats = {
|
|
|
203
203
|
searchTime: Scalars['Float']['output'];
|
|
204
204
|
totalPages: Scalars['Float']['output'];
|
|
205
205
|
};
|
|
206
|
-
export type SendWhatsappMessageInput = {
|
|
207
|
-
instanceId: Scalars['ID']['input'];
|
|
208
|
-
message: Scalars['String']['input'];
|
|
209
|
-
recipient: Scalars['String']['input'];
|
|
210
|
-
};
|
|
211
206
|
export type StringFilterInput = {
|
|
212
207
|
eq?: InputMaybe<Scalars['String']['input']>;
|
|
213
208
|
in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
@@ -217,49 +212,50 @@ export declare enum Typenames {
|
|
|
217
212
|
Any = "Any",
|
|
218
213
|
GraphqlConnections = "GraphqlConnections",
|
|
219
214
|
GraphqlSubscriptions = "GraphqlSubscriptions",
|
|
220
|
-
|
|
215
|
+
WhatsApp = "WhatsApp"
|
|
221
216
|
}
|
|
222
|
-
export type
|
|
217
|
+
export type WhatsAppInstance = {
|
|
223
218
|
createdAt: Scalars['DateTime']['output'];
|
|
219
|
+
credentialsId: Scalars['ID']['output'];
|
|
224
220
|
id: Scalars['ID']['output'];
|
|
225
221
|
name: Scalars['String']['output'];
|
|
226
222
|
phoneNumberId: Scalars['String']['output'];
|
|
227
223
|
updatedAt: Scalars['DateTime']['output'];
|
|
228
224
|
wabaId: Scalars['String']['output'];
|
|
229
225
|
};
|
|
230
|
-
export type WhatsappInstanceFragment = Pick<
|
|
231
|
-
export type
|
|
226
|
+
export type WhatsappInstanceFragment = Pick<WhatsAppInstance, 'id' | 'name' | 'phoneNumberId' | 'wabaId' | 'credentialsId' | 'createdAt' | 'updatedAt'>;
|
|
227
|
+
export type GetWhatsAppInstanceQueryVariables = Exact<{
|
|
232
228
|
id: Scalars['ID']['input'];
|
|
233
229
|
}>;
|
|
234
|
-
export type
|
|
235
|
-
|
|
230
|
+
export type GetWhatsAppInstanceQuery = {
|
|
231
|
+
getWhatsAppInstance?: Maybe<WhatsappInstanceFragment>;
|
|
236
232
|
};
|
|
237
|
-
export type
|
|
233
|
+
export type ListWhatsAppInstancesQueryVariables = Exact<{
|
|
238
234
|
[key: string]: never;
|
|
239
235
|
}>;
|
|
240
|
-
export type
|
|
241
|
-
|
|
236
|
+
export type ListWhatsAppInstancesQuery = {
|
|
237
|
+
listWhatsAppInstances?: Maybe<Array<Maybe<WhatsappInstanceFragment>>>;
|
|
242
238
|
};
|
|
243
|
-
export type
|
|
244
|
-
input:
|
|
239
|
+
export type CreateWhatsAppInstanceMutationVariables = Exact<{
|
|
240
|
+
input: CreateWhatsAppInstanceInput;
|
|
245
241
|
}>;
|
|
246
|
-
export type
|
|
247
|
-
|
|
242
|
+
export type CreateWhatsAppInstanceMutation = {
|
|
243
|
+
createWhatsAppInstance?: Maybe<WhatsappInstanceFragment>;
|
|
248
244
|
};
|
|
249
245
|
export type ReceiveWhatsAppMessageMutationVariables = Exact<{
|
|
250
246
|
input: ReceiveWhatsAppMessageInput;
|
|
251
247
|
}>;
|
|
252
248
|
export type ReceiveWhatsAppMessageMutation = Pick<Mutation, 'receiveWhatsAppMessage'>;
|
|
253
|
-
export declare const WhatsappInstanceFragmentDoc = "\n fragment whatsappInstance on
|
|
254
|
-
export declare const
|
|
255
|
-
export declare const
|
|
256
|
-
export declare const
|
|
249
|
+
export declare const WhatsappInstanceFragmentDoc = "\n fragment whatsappInstance on WhatsAppInstance {\n id\n name\n phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n ";
|
|
250
|
+
export declare const GetWhatsAppInstanceDocument = "\n query getWhatsAppInstance($id: ID!) {\n getWhatsAppInstance(id: $id) {\n ...whatsappInstance\n }\n}\n \n fragment whatsappInstance on WhatsAppInstance {\n id\n name\n phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n ";
|
|
251
|
+
export declare const ListWhatsAppInstancesDocument = "\n query listWhatsAppInstances {\n listWhatsAppInstances {\n ...whatsappInstance\n }\n}\n \n fragment whatsappInstance on WhatsAppInstance {\n id\n name\n phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n ";
|
|
252
|
+
export declare const CreateWhatsAppInstanceDocument = "\n mutation createWhatsAppInstance($input: CreateWhatsAppInstanceInput!) {\n createWhatsAppInstance(input: $input) {\n ...whatsappInstance\n }\n}\n \n fragment whatsappInstance on WhatsAppInstance {\n id\n name\n phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n ";
|
|
257
253
|
export declare const ReceiveWhatsAppMessageDocument = "\n mutation receiveWhatsAppMessage($input: ReceiveWhatsAppMessageInput!) {\n receiveWhatsAppMessage(input: $input)\n}\n ";
|
|
258
254
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
259
255
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
256
|
+
getWhatsAppInstance(variables: GetWhatsAppInstanceQueryVariables, options?: C): Promise<GetWhatsAppInstanceQuery>;
|
|
257
|
+
listWhatsAppInstances(variables?: ListWhatsAppInstancesQueryVariables, options?: C): Promise<ListWhatsAppInstancesQuery>;
|
|
258
|
+
createWhatsAppInstance(variables: CreateWhatsAppInstanceMutationVariables, options?: C): Promise<CreateWhatsAppInstanceMutation>;
|
|
263
259
|
receiveWhatsAppMessage(variables: ReceiveWhatsAppMessageMutationVariables, options?: C): Promise<ReceiveWhatsAppMessageMutation>;
|
|
264
260
|
};
|
|
265
261
|
export type Sdk = ReturnType<typeof getSdk>;
|
package/src/sdks/whatsapp.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.serviceName = exports.getSdk = exports.ReceiveWhatsAppMessageDocument = exports.
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.ReceiveWhatsAppMessageDocument = exports.CreateWhatsAppInstanceDocument = exports.ListWhatsAppInstancesDocument = exports.GetWhatsAppInstanceDocument = exports.WhatsappInstanceFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -20,35 +20,36 @@ var Typenames;
|
|
|
20
20
|
Typenames["Any"] = "Any";
|
|
21
21
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
22
22
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
23
|
-
Typenames["
|
|
23
|
+
Typenames["WhatsApp"] = "WhatsApp";
|
|
24
24
|
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
25
25
|
exports.WhatsappInstanceFragmentDoc = `
|
|
26
|
-
fragment whatsappInstance on
|
|
26
|
+
fragment whatsappInstance on WhatsAppInstance {
|
|
27
27
|
id
|
|
28
28
|
name
|
|
29
29
|
phoneNumberId
|
|
30
30
|
wabaId
|
|
31
|
+
credentialsId
|
|
31
32
|
createdAt
|
|
32
33
|
updatedAt
|
|
33
34
|
}
|
|
34
35
|
`;
|
|
35
|
-
exports.
|
|
36
|
-
query
|
|
37
|
-
|
|
36
|
+
exports.GetWhatsAppInstanceDocument = `
|
|
37
|
+
query getWhatsAppInstance($id: ID!) {
|
|
38
|
+
getWhatsAppInstance(id: $id) {
|
|
38
39
|
...whatsappInstance
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
${exports.WhatsappInstanceFragmentDoc}`;
|
|
42
|
-
exports.
|
|
43
|
-
query
|
|
44
|
-
|
|
43
|
+
exports.ListWhatsAppInstancesDocument = `
|
|
44
|
+
query listWhatsAppInstances {
|
|
45
|
+
listWhatsAppInstances {
|
|
45
46
|
...whatsappInstance
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
${exports.WhatsappInstanceFragmentDoc}`;
|
|
49
|
-
exports.
|
|
50
|
-
mutation
|
|
51
|
-
|
|
50
|
+
exports.CreateWhatsAppInstanceDocument = `
|
|
51
|
+
mutation createWhatsAppInstance($input: CreateWhatsAppInstanceInput!) {
|
|
52
|
+
createWhatsAppInstance(input: $input) {
|
|
52
53
|
...whatsappInstance
|
|
53
54
|
}
|
|
54
55
|
}
|
|
@@ -60,14 +61,14 @@ exports.ReceiveWhatsAppMessageDocument = `
|
|
|
60
61
|
`;
|
|
61
62
|
function getSdk(requester) {
|
|
62
63
|
return {
|
|
63
|
-
|
|
64
|
-
return requester(exports.
|
|
64
|
+
getWhatsAppInstance(variables, options) {
|
|
65
|
+
return requester(exports.GetWhatsAppInstanceDocument, variables, options);
|
|
65
66
|
},
|
|
66
|
-
|
|
67
|
-
return requester(exports.
|
|
67
|
+
listWhatsAppInstances(variables, options) {
|
|
68
|
+
return requester(exports.ListWhatsAppInstancesDocument, variables, options);
|
|
68
69
|
},
|
|
69
|
-
|
|
70
|
-
return requester(exports.
|
|
70
|
+
createWhatsAppInstance(variables, options) {
|
|
71
|
+
return requester(exports.CreateWhatsAppInstanceDocument, variables, options);
|
|
71
72
|
},
|
|
72
73
|
receiveWhatsAppMessage(variables, options) {
|
|
73
74
|
return requester(exports.ReceiveWhatsAppMessageDocument, variables, options);
|
package/src/whatsapp.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export * from './sdks/whatsapp';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const WhatsApp: new (options?: import("./client/http").HttpClientOptions) => {
|
|
3
3
|
readonly http: any;
|
|
4
4
|
forTenant(tenant: string): any;
|
|
5
5
|
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
|
|
6
6
|
withCustomHeaders(headers: () => Record<string, string>): any;
|
|
7
7
|
withHttpRequestExecutor(httpRequestExecutor: import("./client/http").HttpRequestExecutor): any;
|
|
8
8
|
} & {
|
|
9
|
-
|
|
9
|
+
getWhatsAppInstance(variables: import("./sdks/whatsapp").Exact<{
|
|
10
10
|
id: string;
|
|
11
|
-
}>, options?: unknown): Promise<import("./sdks/whatsapp").
|
|
12
|
-
|
|
11
|
+
}>, options?: unknown): Promise<import("./sdks/whatsapp").GetWhatsAppInstanceQuery>;
|
|
12
|
+
listWhatsAppInstances(variables?: import("./sdks/whatsapp").Exact<{
|
|
13
13
|
[key: string]: never;
|
|
14
|
-
}>, options?: unknown): Promise<import("./sdks/whatsapp").
|
|
15
|
-
|
|
16
|
-
input: import("./sdks/whatsapp").
|
|
17
|
-
}>, options?: unknown): Promise<import("./sdks/whatsapp").
|
|
14
|
+
}>, options?: unknown): Promise<import("./sdks/whatsapp").ListWhatsAppInstancesQuery>;
|
|
15
|
+
createWhatsAppInstance(variables: import("./sdks/whatsapp").Exact<{
|
|
16
|
+
input: import("./sdks/whatsapp").CreateWhatsAppInstanceInput;
|
|
17
|
+
}>, options?: unknown): Promise<import("./sdks/whatsapp").CreateWhatsAppInstanceMutation>;
|
|
18
18
|
receiveWhatsAppMessage(variables: import("./sdks/whatsapp").Exact<{
|
|
19
19
|
input: import("./sdks/whatsapp").ReceiveWhatsAppMessageInput;
|
|
20
20
|
}>, options?: unknown): Promise<import("./sdks/whatsapp").ReceiveWhatsAppMessageMutation>;
|
package/src/whatsapp.js
CHANGED
|
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.WhatsApp = void 0;
|
|
18
18
|
const http_1 = require("./client/http");
|
|
19
19
|
const whatsapp_1 = require("./sdks/whatsapp");
|
|
20
20
|
__exportStar(require("./sdks/whatsapp"), exports);
|
|
21
|
-
exports.
|
|
21
|
+
exports.WhatsApp = (0, http_1.HttpClientBuilder)(whatsapp_1.serviceName, whatsapp_1.getSdk);
|