@droz-js/sdk 0.20.15 → 0.20.16
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/drozai.d.ts +3 -0
- package/src/drozchat-ws.d.ts +19 -0
- package/src/drozchat.d.ts +19 -0
- package/src/sdks/ai.d.ts +15 -0
- package/src/sdks/ai.js +10 -2
- package/src/sdks/drozbot.d.ts +1 -0
- package/src/sdks/drozchat.d.ts +53 -4
- package/src/sdks/drozchat.js +180 -101
package/package.json
CHANGED
package/src/drozai.d.ts
CHANGED
|
@@ -75,6 +75,9 @@ declare const DrozAi_base: new (options?: import("./client/http").HttpClientOpti
|
|
|
75
75
|
removeAiAgentProcedure(variables: import("./sdks/ai").Exact<{
|
|
76
76
|
input: import("./sdks/ai").AiAgentAuthoringRefInput;
|
|
77
77
|
}>, options?: unknown): Promise<import("./sdks/ai").RemoveAiAgentProcedureMutation>;
|
|
78
|
+
rememberAiAgentSessionFacts(variables: import("./sdks/ai").Exact<{
|
|
79
|
+
input: import("./sdks/ai").RememberAiAgentSessionFactsInput;
|
|
80
|
+
}>, options?: unknown): Promise<import("./sdks/ai").RememberAiAgentSessionFactsMutation>;
|
|
78
81
|
resolveAiAgentApproval(variables: import("./sdks/ai").Exact<{
|
|
79
82
|
input: import("./sdks/ai").ResolveAiAgentApprovalInput;
|
|
80
83
|
}>, options?: unknown): Promise<import("./sdks/ai").ResolveAiAgentApprovalMutation>;
|
package/src/drozchat-ws.d.ts
CHANGED
|
@@ -88,6 +88,25 @@ declare const DrozChatWs_base: new () => {
|
|
|
88
88
|
listCustomFields(variables?: import("./sdks/drozchat").Exact<{
|
|
89
89
|
[key: string]: never;
|
|
90
90
|
}>, options?: unknown): Promise<import("./sdks/drozchat").ListCustomFieldsQuery>;
|
|
91
|
+
createCustomField(variables: import("./sdks/drozchat").Exact<{
|
|
92
|
+
input: import("./sdks/drozchat").CreateCustomFieldInput;
|
|
93
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateCustomFieldMutation>;
|
|
94
|
+
updateCustomField(variables: import("./sdks/drozchat").Exact<{
|
|
95
|
+
input: import("./sdks/drozchat").UpdateCustomFieldInput;
|
|
96
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").UpdateCustomFieldMutation>;
|
|
97
|
+
deleteCustomField(variables: import("./sdks/drozchat").Exact<{
|
|
98
|
+
id: import("./sdks/drozchat").Scalars["ID"]["input"];
|
|
99
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").DeleteCustomFieldMutation>;
|
|
100
|
+
reorderCustomFields(variables: import("./sdks/drozchat").Exact<{
|
|
101
|
+
input: import("./sdks/drozchat").ReorderCustomFieldsInput;
|
|
102
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ReorderCustomFieldsMutation>;
|
|
103
|
+
searchTicketsWithCustomFieldValues(variables?: import("./sdks/drozchat").Exact<{
|
|
104
|
+
q?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["String"]["input"]>;
|
|
105
|
+
filters?: import("./sdks/drozchat").InputMaybe<Array<import("./sdks/drozchat").TicketSearchFilterInput> | import("./sdks/drozchat").TicketSearchFilterInput>;
|
|
106
|
+
sortBy?: import("./sdks/drozchat").InputMaybe<Array<import("./sdks/drozchat").TicketSearchSortBy> | import("./sdks/drozchat").TicketSearchSortBy>;
|
|
107
|
+
page?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Number"]["input"]>;
|
|
108
|
+
perPage?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Number"]["input"]>;
|
|
109
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").SearchTicketsWithCustomFieldValuesQuery>;
|
|
91
110
|
setCustomFieldValue(variables: import("./sdks/drozchat").Exact<{
|
|
92
111
|
input: import("./sdks/drozchat").SetCustomFieldValueInput;
|
|
93
112
|
}>, options?: unknown): Promise<import("./sdks/drozchat").SetCustomFieldValueMutation>;
|
package/src/drozchat.d.ts
CHANGED
|
@@ -91,6 +91,25 @@ declare const DrozChat_base: new (options?: import("./client/http").HttpClientOp
|
|
|
91
91
|
listCustomFields(variables?: import("./sdks/drozchat").Exact<{
|
|
92
92
|
[key: string]: never;
|
|
93
93
|
}>, options?: unknown): Promise<import("./sdks/drozchat").ListCustomFieldsQuery>;
|
|
94
|
+
createCustomField(variables: import("./sdks/drozchat").Exact<{
|
|
95
|
+
input: import("./sdks/drozchat").CreateCustomFieldInput;
|
|
96
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateCustomFieldMutation>;
|
|
97
|
+
updateCustomField(variables: import("./sdks/drozchat").Exact<{
|
|
98
|
+
input: import("./sdks/drozchat").UpdateCustomFieldInput;
|
|
99
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").UpdateCustomFieldMutation>;
|
|
100
|
+
deleteCustomField(variables: import("./sdks/drozchat").Exact<{
|
|
101
|
+
id: import("./sdks/drozchat").Scalars["ID"]["input"];
|
|
102
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").DeleteCustomFieldMutation>;
|
|
103
|
+
reorderCustomFields(variables: import("./sdks/drozchat").Exact<{
|
|
104
|
+
input: import("./sdks/drozchat").ReorderCustomFieldsInput;
|
|
105
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ReorderCustomFieldsMutation>;
|
|
106
|
+
searchTicketsWithCustomFieldValues(variables?: import("./sdks/drozchat").Exact<{
|
|
107
|
+
q?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["String"]["input"]>;
|
|
108
|
+
filters?: import("./sdks/drozchat").InputMaybe<Array<import("./sdks/drozchat").TicketSearchFilterInput> | import("./sdks/drozchat").TicketSearchFilterInput>;
|
|
109
|
+
sortBy?: import("./sdks/drozchat").InputMaybe<Array<import("./sdks/drozchat").TicketSearchSortBy> | import("./sdks/drozchat").TicketSearchSortBy>;
|
|
110
|
+
page?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Number"]["input"]>;
|
|
111
|
+
perPage?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Number"]["input"]>;
|
|
112
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").SearchTicketsWithCustomFieldValuesQuery>;
|
|
94
113
|
setCustomFieldValue(variables: import("./sdks/drozchat").Exact<{
|
|
95
114
|
input: import("./sdks/drozchat").SetCustomFieldValueInput;
|
|
96
115
|
}>, options?: unknown): Promise<import("./sdks/drozchat").SetCustomFieldValueMutation>;
|
package/src/sdks/ai.d.ts
CHANGED
|
@@ -763,6 +763,7 @@ export type Mutation = {
|
|
|
763
763
|
publishAiAgentVersion: Array<AiAgentVersion>;
|
|
764
764
|
/** Cadastre o backend da ferramenta como Connector (Nexo > Conectores) primeiro, depois amarre o spec do agente a ele aqui. */
|
|
765
765
|
registerAiAgentTool?: Maybe<AiAgentTool>;
|
|
766
|
+
rememberAiAgentSessionFacts: Scalars['Boolean']['output'];
|
|
766
767
|
/** Apaga o agente e a autoria dele. Agente no ar precisa ser pausado antes. */
|
|
767
768
|
removeAiAgent: Scalars['Boolean']['output'];
|
|
768
769
|
removeAiAgentProcedure: Scalars['Boolean']['output'];
|
|
@@ -807,6 +808,9 @@ export type MutationPublishAiAgentVersionArgs = {
|
|
|
807
808
|
export type MutationRegisterAiAgentToolArgs = {
|
|
808
809
|
input: RegisterAiAgentToolInput;
|
|
809
810
|
};
|
|
811
|
+
export type MutationRememberAiAgentSessionFactsArgs = {
|
|
812
|
+
input: RememberAiAgentSessionFactsInput;
|
|
813
|
+
};
|
|
810
814
|
export type MutationRemoveAiAgentArgs = {
|
|
811
815
|
input: AiAgentRefInput;
|
|
812
816
|
};
|
|
@@ -1019,6 +1023,11 @@ export type RegisterAiAgentToolInput = {
|
|
|
1019
1023
|
connectorId: Scalars['ID']['input'];
|
|
1020
1024
|
spec: AiAgentToolSpecInput;
|
|
1021
1025
|
};
|
|
1026
|
+
export type RememberAiAgentSessionFactsInput = {
|
|
1027
|
+
agentId: Scalars['ID']['input'];
|
|
1028
|
+
facts: Scalars['JSON']['input'];
|
|
1029
|
+
sessionId: Scalars['ID']['input'];
|
|
1030
|
+
};
|
|
1022
1031
|
export type RemoveAiAgentScenarioInput = {
|
|
1023
1032
|
agentId: Scalars['ID']['input'];
|
|
1024
1033
|
scenarioId: Scalars['ID']['input'];
|
|
@@ -1367,6 +1376,10 @@ export type RemoveAiAgentProcedureMutationVariables = Exact<{
|
|
|
1367
1376
|
input: AiAgentAuthoringRefInput;
|
|
1368
1377
|
}>;
|
|
1369
1378
|
export type RemoveAiAgentProcedureMutation = Pick<Mutation, 'removeAiAgentProcedure'>;
|
|
1379
|
+
export type RememberAiAgentSessionFactsMutationVariables = Exact<{
|
|
1380
|
+
input: RememberAiAgentSessionFactsInput;
|
|
1381
|
+
}>;
|
|
1382
|
+
export type RememberAiAgentSessionFactsMutation = Pick<Mutation, 'rememberAiAgentSessionFacts'>;
|
|
1370
1383
|
export type ResolveAiAgentApprovalMutationVariables = Exact<{
|
|
1371
1384
|
input: ResolveAiAgentApprovalInput;
|
|
1372
1385
|
}>;
|
|
@@ -1586,6 +1599,7 @@ export declare const SaveAiAgentUseCaseDocument = "\n mutation saveAiAgentUse
|
|
|
1586
1599
|
export declare const SaveAiAgentProcedureDocument = "\n mutation saveAiAgentProcedure($input: SaveAiAgentProcedureInput!) {\n saveAiAgentProcedure(input: $input) {\n ...aiAgentProcedure\n }\n}\n \n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n guidanceSteps\n toolIds\n contingency\n executionAutonomy\n status\n updatedAt\n}\n ";
|
|
1587
1600
|
export declare const RemoveAiAgentUseCaseDocument = "\n mutation removeAiAgentUseCase($input: AiAgentAuthoringRefInput!) {\n removeAiAgentUseCase(input: $input)\n}\n ";
|
|
1588
1601
|
export declare const RemoveAiAgentProcedureDocument = "\n mutation removeAiAgentProcedure($input: AiAgentAuthoringRefInput!) {\n removeAiAgentProcedure(input: $input)\n}\n ";
|
|
1602
|
+
export declare const RememberAiAgentSessionFactsDocument = "\n mutation rememberAiAgentSessionFacts($input: RememberAiAgentSessionFactsInput!) {\n rememberAiAgentSessionFacts(input: $input)\n}\n ";
|
|
1589
1603
|
export declare const ResolveAiAgentApprovalDocument = "\n mutation resolveAiAgentApproval($input: ResolveAiAgentApprovalInput!) {\n resolveAiAgentApproval(input: $input)\n}\n ";
|
|
1590
1604
|
export declare const RegisterAiAgentToolDocument = "\n mutation registerAiAgentTool($input: RegisterAiAgentToolInput!) {\n registerAiAgentTool(input: $input) {\n ...aiAgentTool\n }\n}\n \n fragment aiAgentTool on AiAgentTool {\n toolId\n name\n description\n effect\n availability\n requiresAuthenticatedCustomer\n onFailure\n customerScope\n returns\n approval\n parameters {\n name\n type\n required\n description\n grounding\n }\n}\n ";
|
|
1591
1605
|
export declare const UnregisterAiAgentToolDocument = "\n mutation unregisterAiAgentTool($input: UnregisterAiAgentToolInput!) {\n unregisterAiAgentTool(input: $input)\n}\n ";
|
|
@@ -1636,6 +1650,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1636
1650
|
saveAiAgentProcedure(variables: SaveAiAgentProcedureMutationVariables, options?: C): Promise<SaveAiAgentProcedureMutation>;
|
|
1637
1651
|
removeAiAgentUseCase(variables: RemoveAiAgentUseCaseMutationVariables, options?: C): Promise<RemoveAiAgentUseCaseMutation>;
|
|
1638
1652
|
removeAiAgentProcedure(variables: RemoveAiAgentProcedureMutationVariables, options?: C): Promise<RemoveAiAgentProcedureMutation>;
|
|
1653
|
+
rememberAiAgentSessionFacts(variables: RememberAiAgentSessionFactsMutationVariables, options?: C): Promise<RememberAiAgentSessionFactsMutation>;
|
|
1639
1654
|
resolveAiAgentApproval(variables: ResolveAiAgentApprovalMutationVariables, options?: C): Promise<ResolveAiAgentApprovalMutation>;
|
|
1640
1655
|
registerAiAgentTool(variables: RegisterAiAgentToolMutationVariables, options?: C): Promise<RegisterAiAgentToolMutation>;
|
|
1641
1656
|
unregisterAiAgentTool(variables: UnregisterAiAgentToolMutationVariables, options?: C): Promise<UnregisterAiAgentToolMutation>;
|
package/src/sdks/ai.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.RemoveQnAInstanceDocument = exports.UpdateQnAInstanceDocument = exports.CreateQnAInstanceDocument = exports.TestQnAInstanceDocument = exports.ListQnAInstancesDocument = exports.GetQnAInstanceDocument = exports.TestNlpInstanceDocument = exports.RemoveNlpInstanceDocument = exports.UpdateNlpInstanceDocument = exports.CreateNlpInstanceDocument = exports.ListNlpInstancesDocument = exports.GetNlpInstanceDocument = exports.ExtractImageMetadataDocument = exports.AiAgentKnowledgeBasesDocument = exports.AiAgentRoutingPreviewDocument = exports.AiAgentVersionSpecDocument = exports.AiAgentMetricsDocument = exports.AiAgentCheckLimitsDocument = exports.GetAiAgentCheckRunDocument = exports.CheckAiAgentVersionDocument = exports.SaveAiAgentScenarioDocument = exports.RemoveAiAgentScenarioDocument = exports.UnregisterAiAgentToolDocument = exports.RegisterAiAgentToolDocument = void 0;
|
|
4
|
+
exports.RememberAiAgentSessionFactsDocument = exports.RemoveAiAgentProcedureDocument = exports.RemoveAiAgentUseCaseDocument = exports.SaveAiAgentProcedureDocument = exports.SaveAiAgentUseCaseDocument = exports.AiAgentConversationOutcomeDocument = exports.AiAgentConversationMetricsDocument = exports.AiAgentRetentionPolicyDocument = exports.SetAiAgentRetentionPolicyDocument = exports.ListAiAgentScenariosDocument = exports.AiAgentTraceDocument = exports.AiAgentUseCaseOverlapDocument = exports.ListAiAgentToolsDocument = exports.ListAiAgentProceduresDocument = exports.ListAiAgentUseCasesDocument = exports.RemoveAiAgentDocument = exports.RemoveAiAgentVersionDocument = exports.RollbackAiAgentVersionDocument = exports.UnpublishAiAgentVersionDocument = exports.PublishAiAgentVersionDocument = exports.DraftAiAgentDocument = exports.AiAgentMetricsByAgentDocument = exports.ListAiAgentVersionsDocument = exports.ListAiAgentsDocument = exports.QnaFragmentFragmentDoc = exports.NlpInstanceFragmentDoc = exports.AiAgentMetricsReportFragmentDoc = exports.AiAgentCheckRunFragmentDoc = exports.AiAgentScenarioFragmentDoc = exports.AiAgentTraceFragmentDoc = exports.AiAgentToolFragmentDoc = exports.AiAgentProcedureFragmentDoc = exports.AiAgentUseCaseFragmentDoc = exports.AiAgentListingMetricsFragmentDoc = exports.AiAgentVersionWithSpecFragmentDoc = exports.AiAgentToolExclusionFragmentDoc = exports.AiAgentSpecFragmentDoc = exports.AiAgentVersionFragmentDoc = exports.AiAgentSummaryFragmentDoc = exports.Typenames = exports.ToolParameterType = exports.ToolEffect = exports.ToolAvailability = exports.TonePreset = exports.ParameterGrounding = exports.Can = exports.BudgetExceededAction = exports.AppInstanceStatus = exports.AiAgentVersionStatus = exports.AiAgentCheckRunStatus = void 0;
|
|
5
|
+
exports.serviceName = exports.RemoveQnAInstanceDocument = exports.UpdateQnAInstanceDocument = exports.CreateQnAInstanceDocument = exports.TestQnAInstanceDocument = exports.ListQnAInstancesDocument = exports.GetQnAInstanceDocument = exports.TestNlpInstanceDocument = exports.RemoveNlpInstanceDocument = exports.UpdateNlpInstanceDocument = exports.CreateNlpInstanceDocument = exports.ListNlpInstancesDocument = exports.GetNlpInstanceDocument = exports.ExtractImageMetadataDocument = exports.AiAgentKnowledgeBasesDocument = exports.AiAgentRoutingPreviewDocument = exports.AiAgentVersionSpecDocument = exports.AiAgentMetricsDocument = exports.AiAgentCheckLimitsDocument = exports.GetAiAgentCheckRunDocument = exports.CheckAiAgentVersionDocument = exports.SaveAiAgentScenarioDocument = exports.RemoveAiAgentScenarioDocument = exports.UnregisterAiAgentToolDocument = exports.RegisterAiAgentToolDocument = exports.ResolveAiAgentApprovalDocument = void 0;
|
|
6
6
|
exports.getSdk = getSdk;
|
|
7
7
|
var AiAgentCheckRunStatus;
|
|
8
8
|
(function (AiAgentCheckRunStatus) {
|
|
@@ -602,6 +602,11 @@ exports.RemoveAiAgentProcedureDocument = `
|
|
|
602
602
|
removeAiAgentProcedure(input: $input)
|
|
603
603
|
}
|
|
604
604
|
`;
|
|
605
|
+
exports.RememberAiAgentSessionFactsDocument = `
|
|
606
|
+
mutation rememberAiAgentSessionFacts($input: RememberAiAgentSessionFactsInput!) {
|
|
607
|
+
rememberAiAgentSessionFacts(input: $input)
|
|
608
|
+
}
|
|
609
|
+
`;
|
|
605
610
|
exports.ResolveAiAgentApprovalDocument = `
|
|
606
611
|
mutation resolveAiAgentApproval($input: ResolveAiAgentApprovalInput!) {
|
|
607
612
|
resolveAiAgentApproval(input: $input)
|
|
@@ -872,6 +877,9 @@ function getSdk(requester) {
|
|
|
872
877
|
removeAiAgentProcedure(variables, options) {
|
|
873
878
|
return requester(exports.RemoveAiAgentProcedureDocument, variables, options);
|
|
874
879
|
},
|
|
880
|
+
rememberAiAgentSessionFacts(variables, options) {
|
|
881
|
+
return requester(exports.RememberAiAgentSessionFactsDocument, variables, options);
|
|
882
|
+
},
|
|
875
883
|
resolveAiAgentApproval(variables, options) {
|
|
876
884
|
return requester(exports.ResolveAiAgentApprovalDocument, variables, options);
|
|
877
885
|
},
|
package/src/sdks/drozbot.d.ts
CHANGED
|
@@ -221,6 +221,7 @@ export type CreateDrozBotTicketCommentsInput = {
|
|
|
221
221
|
export type CreateDrozBotTicketInput = {
|
|
222
222
|
/** Abre a sessão já no agente de IA, sem depender de automação ligada à instância. */
|
|
223
223
|
agentId?: InputMaybe<Scalars['ID']['input']>;
|
|
224
|
+
collectedFacts?: InputMaybe<Scalars['JSON']['input']>;
|
|
224
225
|
comment?: InputMaybe<Scalars['String']['input']>;
|
|
225
226
|
/** Destino da conversa quando o agente passa para uma pessoa: DRN da instância que recebe (fila do Droz Chat, Zendesk, Salesforce...). Ausente: a sessão encerra. */
|
|
226
227
|
handoffDrn?: InputMaybe<Scalars['DRN']['input']>;
|
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -1865,12 +1865,50 @@ export type CustomFieldFragment = (Pick<CustomField, 'id' | 'name' | 'type' | 'i
|
|
|
1865
1865
|
export type TicketCustomFieldValueFragment = (Pick<TicketCustomFieldValue, 'value'> & {
|
|
1866
1866
|
field: CustomFieldFragment;
|
|
1867
1867
|
});
|
|
1868
|
+
export type TicketWithCustomFieldValuesFragment = ({
|
|
1869
|
+
customFieldValues: Array<TicketCustomFieldValueFragment>;
|
|
1870
|
+
} & TicketFragment);
|
|
1868
1871
|
export type ListCustomFieldsQueryVariables = Exact<{
|
|
1869
1872
|
[key: string]: never;
|
|
1870
1873
|
}>;
|
|
1871
1874
|
export type ListCustomFieldsQuery = {
|
|
1872
1875
|
listCustomFields: Array<CustomFieldFragment>;
|
|
1873
1876
|
};
|
|
1877
|
+
export type CreateCustomFieldMutationVariables = Exact<{
|
|
1878
|
+
input: CreateCustomFieldInput;
|
|
1879
|
+
}>;
|
|
1880
|
+
export type CreateCustomFieldMutation = {
|
|
1881
|
+
createCustomField: CustomFieldFragment;
|
|
1882
|
+
};
|
|
1883
|
+
export type UpdateCustomFieldMutationVariables = Exact<{
|
|
1884
|
+
input: UpdateCustomFieldInput;
|
|
1885
|
+
}>;
|
|
1886
|
+
export type UpdateCustomFieldMutation = {
|
|
1887
|
+
updateCustomField: CustomFieldFragment;
|
|
1888
|
+
};
|
|
1889
|
+
export type DeleteCustomFieldMutationVariables = Exact<{
|
|
1890
|
+
id: Scalars['ID']['input'];
|
|
1891
|
+
}>;
|
|
1892
|
+
export type DeleteCustomFieldMutation = Pick<Mutation, 'deleteCustomField'>;
|
|
1893
|
+
export type ReorderCustomFieldsMutationVariables = Exact<{
|
|
1894
|
+
input: ReorderCustomFieldsInput;
|
|
1895
|
+
}>;
|
|
1896
|
+
export type ReorderCustomFieldsMutation = {
|
|
1897
|
+
reorderCustomFields: Array<CustomFieldFragment>;
|
|
1898
|
+
};
|
|
1899
|
+
export type SearchTicketsWithCustomFieldValuesQueryVariables = Exact<{
|
|
1900
|
+
q?: InputMaybe<Scalars['String']['input']>;
|
|
1901
|
+
filters?: InputMaybe<Array<TicketSearchFilterInput> | TicketSearchFilterInput>;
|
|
1902
|
+
sortBy?: InputMaybe<Array<TicketSearchSortBy> | TicketSearchSortBy>;
|
|
1903
|
+
page?: InputMaybe<Scalars['Number']['input']>;
|
|
1904
|
+
perPage?: InputMaybe<Scalars['Number']['input']>;
|
|
1905
|
+
}>;
|
|
1906
|
+
export type SearchTicketsWithCustomFieldValuesQuery = {
|
|
1907
|
+
searchTickets?: Maybe<{
|
|
1908
|
+
nodes: Array<TicketWithCustomFieldValuesFragment>;
|
|
1909
|
+
stats: Pick<SearchResultsStats, 'found' | 'outOf' | 'page' | 'totalPages' | 'perPage' | 'searchTime'>;
|
|
1910
|
+
}>;
|
|
1911
|
+
};
|
|
1874
1912
|
export type SetCustomFieldValueMutationVariables = Exact<{
|
|
1875
1913
|
input: SetCustomFieldValueInput;
|
|
1876
1914
|
}>;
|
|
@@ -2514,11 +2552,15 @@ export declare const BulkCloseRoutineConfigFragmentDoc = "\n fragment bulkClo
|
|
|
2514
2552
|
export declare const BulkCloseRunFragmentDoc = "\n fragment bulkCloseRun on BulkCloseRun {\n id\n status\n windowStart\n startedAt\n finishedAt\n totals {\n planned\n closed\n alreadyClosed\n errors\n uncreated\n }\n createdAt\n updatedAt\n}\n ";
|
|
2515
2553
|
export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
2516
2554
|
export declare const CustomerNoteFragmentDoc = "\n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
|
|
2555
|
+
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 ";
|
|
2556
|
+
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 ";
|
|
2557
|
+
export declare const DrozChatChannelFragmentDoc = "\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n maxSimultaneousAttendances\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
2558
|
+
export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n channelId\n id\n subject\n description\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n closedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n participants {\n email\n name\n }\n unreadMessagesCount\n}\n ";
|
|
2517
2559
|
export declare const CustomFieldFragmentDoc = "\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
|
|
2518
2560
|
export declare const TicketCustomFieldValueFragmentDoc = "\n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n}\n ";
|
|
2561
|
+
export declare const TicketWithCustomFieldValuesFragmentDoc = "\n fragment ticketWithCustomFieldValues on Ticket {\n ...ticket\n customFieldValues {\n ...ticketCustomFieldValue\n }\n}\n ";
|
|
2519
2562
|
export declare const GlobalConfigurationFragmentDoc = "\n fragment globalConfiguration on GlobalConfiguration {\n maxSimultaneousAttendances\n createdAt\n updatedAt\n}\n ";
|
|
2520
2563
|
export declare const DrozChatAgentGroupFragmentDoc = "\n fragment drozChatAgentGroup on DrozChatAgentGroup {\n id\n name\n description\n agentIds\n drn\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
2521
|
-
export declare const DrozChatChannelFragmentDoc = "\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n maxSimultaneousAttendances\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
2522
2564
|
export declare const LiveQueueSummaryFragmentDoc = "\n fragment liveQueueSummary on LiveQueueSummary {\n channelId\n channel {\n ...drozChatChannel\n }\n waiting\n oldestWaitingSince\n oldestWaitingMs\n unassigned\n avgWaitingMs\n closedToday\n onlineAgents\n}\n ";
|
|
2523
2565
|
export declare const LiveAgentLoadFragmentDoc = "\n fragment liveAgentLoad on LiveAgentLoad {\n agentId\n agent {\n ...drozChatAgent\n }\n status\n statusSince\n presence\n presenceSince\n inProgress\n capacity\n closedToday\n satisfaction {\n type\n average\n count\n }\n firstResponseAvgMs\n attendanceAvgMs\n queues {\n id\n name\n capacity\n }\n}\n ";
|
|
2524
2566
|
export declare const LiveSummaryFragmentDoc = "\n fragment liveSummary on LiveSummary {\n generatedAt\n queues {\n ...liveQueueSummary\n }\n agents {\n ...liveAgentLoad\n }\n surveyType\n surveyConfigured\n agentsOnline\n agentsAway\n agentsOffline\n ticketsInProgressTotal\n overallSatisfaction {\n type\n average\n count\n }\n queuesCount\n ticketsWaitingTotal\n unassignedTotal\n avgWaitingMs\n closedTodayTotal\n}\n ";
|
|
@@ -2528,10 +2570,7 @@ export declare const TicketPresenceFragmentDoc = "\n fragment ticketPresence
|
|
|
2528
2570
|
export declare const QuickAnswerFragmentDoc = "\n fragment quickAnswer on QuickAnswer {\n id\n name\n message\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
|
|
2529
2571
|
export declare const QuickAnswerFacetsFragmentDoc = "\n fragment quickAnswerFacets on SearchResultsFacet {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n}\n ";
|
|
2530
2572
|
export declare const TagFragmentDoc = "\n fragment tag on TicketTag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
|
|
2531
|
-
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 ";
|
|
2532
2573
|
export declare const TicketWithoutCustomerFragmentDoc = "\n fragment ticketWithoutCustomer on Ticket {\n channelId\n id\n subject\n description\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n closedBy {\n ...drozChatAgent\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n ";
|
|
2533
|
-
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 ";
|
|
2534
|
-
export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n channelId\n id\n subject\n description\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n closedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n participants {\n email\n name\n }\n unreadMessagesCount\n}\n ";
|
|
2535
2574
|
export declare const SessionAttributesFragmentDoc = "\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n reviewRequest\n review\n tags\n}\n ";
|
|
2536
2575
|
export declare const TicketWithSessionFragmentDoc = "\n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n ";
|
|
2537
2576
|
export declare const DrozChatUserFragmentDoc = "\n fragment drozChatUser on DrozChatUser {\n ... on DrozChatAgent {\n id\n name\n }\n ... on DrozChatCustomer {\n id\n name\n }\n ... on DrozChatExternalParticipant {\n email\n externalName: name\n }\n}\n ";
|
|
@@ -2568,6 +2607,11 @@ export declare const CreateNoteDocument = "\n mutation createNote($input: Cre
|
|
|
2568
2607
|
export declare const UpdateNoteDocument = "\n mutation updateNote($input: UpdateCustomerNoteInput!) {\n updateNote(input: $input) {\n ...customerNote\n }\n}\n \n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
2569
2608
|
export declare const DeleteNoteDocument = "\n mutation deleteNote($input: DeleteCustomerNoteInput!) {\n deleteNote(input: $input) {\n ...customerNote\n }\n}\n \n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
2570
2609
|
export declare const ListCustomFieldsDocument = "\n query listCustomFields {\n listCustomFields {\n ...customField\n }\n}\n \n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
|
|
2610
|
+
export declare const CreateCustomFieldDocument = "\n mutation createCustomField($input: CreateCustomFieldInput!) {\n createCustomField(input: $input) {\n ...customField\n }\n}\n \n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
|
|
2611
|
+
export declare const UpdateCustomFieldDocument = "\n mutation updateCustomField($input: UpdateCustomFieldInput!) {\n updateCustomField(input: $input) {\n ...customField\n }\n}\n \n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
|
|
2612
|
+
export declare const DeleteCustomFieldDocument = "\n mutation deleteCustomField($id: ID!) {\n deleteCustomField(id: $id)\n}\n ";
|
|
2613
|
+
export declare const ReorderCustomFieldsDocument = "\n mutation reorderCustomFields($input: ReorderCustomFieldsInput!) {\n reorderCustomFields(input: $input) {\n ...customField\n }\n}\n \n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
|
|
2614
|
+
export declare const SearchTicketsWithCustomFieldValuesDocument = "\n query searchTicketsWithCustomFieldValues($q: String, $filters: [TicketSearchFilterInput!], $sortBy: [TicketSearchSortBy!], $page: Number, $perPage: Number) {\n searchTickets(\n q: $q\n filters: $filters\n sortBy: $sortBy\n page: $page\n perPage: $perPage\n ) {\n nodes {\n ...ticketWithCustomFieldValues\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n }\n}\n \n fragment ticketWithCustomFieldValues on Ticket {\n ...ticket\n customFieldValues {\n ...ticketCustomFieldValue\n }\n}\n \n\n fragment ticket on Ticket {\n channelId\n id\n subject\n description\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n closedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n participants {\n email\n name\n }\n unreadMessagesCount\n}\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 drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n maxSimultaneousAttendances\n createdAt\n updatedAt\n deletedAt\n}\n \n\n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n}\n \n\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
|
|
2571
2615
|
export declare const SetCustomFieldValueDocument = "\n mutation setCustomFieldValue($input: SetCustomFieldValueInput!) {\n setCustomFieldValue(input: $input) {\n id\n customFieldValues {\n ...ticketCustomFieldValue\n }\n }\n}\n \n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n}\n \n\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
|
|
2572
2616
|
export declare const ClearCustomFieldValueDocument = "\n mutation clearCustomFieldValue($input: ClearCustomFieldValueInput!) {\n clearCustomFieldValue(input: $input) {\n id\n customFieldValues {\n ...ticketCustomFieldValue\n }\n }\n}\n \n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n}\n \n\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
|
|
2573
2617
|
export declare const CustomFieldValuesForTicketDocument = "\n query customFieldValuesForTicket($ticketId: ID!) {\n customFieldValuesForTicket(ticketId: $ticketId) {\n ...ticketCustomFieldValue\n }\n}\n \n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n}\n \n\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
|
|
@@ -2671,6 +2715,11 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
2671
2715
|
updateNote(variables: UpdateNoteMutationVariables, options?: C): Promise<UpdateNoteMutation>;
|
|
2672
2716
|
deleteNote(variables: DeleteNoteMutationVariables, options?: C): Promise<DeleteNoteMutation>;
|
|
2673
2717
|
listCustomFields(variables?: ListCustomFieldsQueryVariables, options?: C): Promise<ListCustomFieldsQuery>;
|
|
2718
|
+
createCustomField(variables: CreateCustomFieldMutationVariables, options?: C): Promise<CreateCustomFieldMutation>;
|
|
2719
|
+
updateCustomField(variables: UpdateCustomFieldMutationVariables, options?: C): Promise<UpdateCustomFieldMutation>;
|
|
2720
|
+
deleteCustomField(variables: DeleteCustomFieldMutationVariables, options?: C): Promise<DeleteCustomFieldMutation>;
|
|
2721
|
+
reorderCustomFields(variables: ReorderCustomFieldsMutationVariables, options?: C): Promise<ReorderCustomFieldsMutation>;
|
|
2722
|
+
searchTicketsWithCustomFieldValues(variables?: SearchTicketsWithCustomFieldValuesQueryVariables, options?: C): Promise<SearchTicketsWithCustomFieldValuesQuery>;
|
|
2674
2723
|
setCustomFieldValue(variables: SetCustomFieldValueMutationVariables, options?: C): Promise<SetCustomFieldValueMutation>;
|
|
2675
2724
|
clearCustomFieldValue(variables: ClearCustomFieldValueMutationVariables, options?: C): Promise<ClearCustomFieldValueMutation>;
|
|
2676
2725
|
customFieldValuesForTicket(variables: CustomFieldValuesForTicketQueryVariables, options?: C): Promise<CustomFieldValuesForTicketQuery>;
|
package/src/sdks/drozchat.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.serviceName = exports.DeleteViewDocument = exports.UpdateViewDocument = exports.CloneViewDocument = exports.CreateViewDocument = exports.ListTicketsByViewDocument = exports.ListViewsDocument = void 0;
|
|
4
|
+
exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketWithoutCustomerFragmentDoc = exports.TagFragmentDoc = exports.QuickAnswerFacetsFragmentDoc = exports.QuickAnswerFragmentDoc = exports.TicketPresenceFragmentDoc = exports.SurveyFragmentDoc = exports.MonitoringTicketSnapshotFragmentDoc = exports.LiveSummaryFragmentDoc = exports.LiveAgentLoadFragmentDoc = exports.LiveQueueSummaryFragmentDoc = exports.DrozChatAgentGroupFragmentDoc = exports.GlobalConfigurationFragmentDoc = exports.TicketWithCustomFieldValuesFragmentDoc = exports.TicketCustomFieldValueFragmentDoc = exports.CustomFieldFragmentDoc = exports.TicketFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.CustomerFragmentDoc = exports.CustomerNoteFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.BulkCloseRunFragmentDoc = exports.BulkCloseRoutineConfigFragmentDoc = exports.AgentPresenceFragmentDoc = exports.Typenames = exports.TriggerScope = exports.TriggerEventType = exports.TriggerActionType = exports.TicketStatus = exports.TicketState = exports.TicketSearchSortBy = exports.TicketPriority = exports.TicketOrigin = exports.TicketMessageType = exports.TicketMessageRecipient = exports.TicketAutoAssignerType = exports.TicketAssessType = exports.SurveyTypes = exports.SurveyChannels = exports.SubscriptionAction = exports.QuickAnswersSortBy = exports.OpenTicketState = exports.LiveAgentStatus = exports.CustomFieldType = exports.Can = exports.AppInstanceStatus = exports.AgentPresenceStatus = exports.ActiveDispatchConnector = void 0;
|
|
5
|
+
exports.UpdateDrozChatAgentGroupDocument = exports.CreateDrozChatAgentGroupDocument = exports.ListDrozChatAgentGroupsDocument = exports.ListDrozChatGroupsDocument = exports.GetDrozChatAgentGroupDocument = exports.ClearMaxSimultaneousAttendancesDocument = exports.SetMaxSimultaneousAttendancesDocument = exports.GetGlobalConfigurationDocument = exports.CustomFieldValuesForTicketDocument = exports.ClearCustomFieldValueDocument = exports.SetCustomFieldValueDocument = exports.SearchTicketsWithCustomFieldValuesDocument = exports.ReorderCustomFieldsDocument = exports.DeleteCustomFieldDocument = exports.UpdateCustomFieldDocument = exports.CreateCustomFieldDocument = exports.ListCustomFieldsDocument = exports.DeleteNoteDocument = exports.UpdateNoteDocument = exports.CreateNoteDocument = exports.ListNotesDocument = exports.RemoveDrozChatChannelGroupDocument = exports.AddDrozChatChannelGroupDocument = exports.RemoveDrozChatChannelAgentDocument = exports.AddDrozChatChannelAgentDocument = exports.EnableDrozChatChannelDocument = exports.DisableDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatAgentChannelsDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.GetBulkCloseRunsDocument = exports.DeleteBulkCloseRoutineConfigDocument = exports.DisableBulkCloseRoutineConfigDocument = exports.EnableBulkCloseRoutineConfigDocument = exports.UpdateBulkCloseRoutineConfigDocument = exports.CreateBulkCloseRoutineConfigDocument = exports.GetBulkCloseRoutineConfigDocument = exports.GenerateAnalyticsTokenDocument = exports.AgentLogoffDocument = exports.AgentHeartbeatDocument = exports.MyPresenceDocument = exports.ActiveDispatchDocument = exports.ViewFragmentDoc = exports.TriggerFragmentDoc = exports.TriggerConditionFieldsFragmentDoc = exports.FacetsFragmentDoc = exports.TicketMessageFragmentDoc = exports.DrozChatUserFragmentDoc = void 0;
|
|
6
|
+
exports.ListTriggersDocument = exports.OnMessageByStateMineDocument = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.RemoveTagsFromTicketDocument = exports.AddTagsToTicketDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageEnvelopeDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.UpdateTicketDocument = exports.CreateTicketDocument = exports.AgentRemainingCapacityDocument = exports.AssertChatActionsDocument = exports.UnsafeSearchTicketsDocument = exports.SearchTicketsWithoutCustomerDocument = exports.SearchTicketsDocument = exports.ListTicketInternalNotesDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineWithoutCustomerDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.DeleteTagsDocument = exports.CreateTagsDocument = exports.ListTagsDocument = exports.UpdateQuickAnswerDocument = exports.DeleteQuickAnswerDocument = exports.CreateQuickAnswerDocument = exports.SearchQuickAnswersDocument = exports.ListQuickAnswersDocument = exports.OnTicketPresenceDocument = exports.LeaveTicketPresenceDocument = exports.EnterTicketPresenceDocument = exports.TicketPresenceDocument = exports.DisableSurveyDocument = exports.UpsertSurveyDocument = exports.GetSurveyDocument = exports.OnMonitoringTicketChangeDocument = exports.LiveSummaryDocument = exports.RemoveDrozChatAgentGroupDocument = exports.AddDrozChatAgentGroupDocument = exports.EnableDrozChatAgentGroupDocument = exports.DisableDrozChatAgentGroupDocument = void 0;
|
|
7
|
+
exports.serviceName = exports.DeleteViewDocument = exports.UpdateViewDocument = exports.CloneViewDocument = exports.CreateViewDocument = exports.ListTicketsByViewDocument = exports.ListViewsDocument = exports.GetViewDocument = exports.ReorderTriggersByEventTypeDocument = exports.DeleteTriggerDocument = exports.UpdateTriggerDocument = exports.CreateTriggerDocument = exports.GetTriggerDocument = void 0;
|
|
8
8
|
exports.getSdk = getSdk;
|
|
9
9
|
var ActiveDispatchConnector;
|
|
10
10
|
(function (ActiveDispatchConnector) {
|
|
@@ -249,6 +249,103 @@ exports.CustomerNoteFragmentDoc = `
|
|
|
249
249
|
updatedAt
|
|
250
250
|
}
|
|
251
251
|
`;
|
|
252
|
+
exports.CustomerFragmentDoc = `
|
|
253
|
+
fragment customer on DrozChatCustomer {
|
|
254
|
+
id
|
|
255
|
+
name
|
|
256
|
+
alternateName
|
|
257
|
+
email
|
|
258
|
+
phone
|
|
259
|
+
document
|
|
260
|
+
externalId
|
|
261
|
+
emails
|
|
262
|
+
phones
|
|
263
|
+
documents
|
|
264
|
+
externalIds
|
|
265
|
+
createdAt
|
|
266
|
+
updatedAt
|
|
267
|
+
}
|
|
268
|
+
`;
|
|
269
|
+
exports.TicketTriggerAppFragmentDoc = `
|
|
270
|
+
fragment ticketTriggerApp on TicketTriggerApp {
|
|
271
|
+
drn
|
|
272
|
+
name
|
|
273
|
+
appId
|
|
274
|
+
appName
|
|
275
|
+
appColor
|
|
276
|
+
channels {
|
|
277
|
+
id
|
|
278
|
+
main
|
|
279
|
+
readonly
|
|
280
|
+
hidden
|
|
281
|
+
sources
|
|
282
|
+
unreadMessagesCount
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
`;
|
|
286
|
+
exports.DrozChatChannelFragmentDoc = `
|
|
287
|
+
fragment drozChatChannel on DrozChatChannel {
|
|
288
|
+
id
|
|
289
|
+
name
|
|
290
|
+
drn
|
|
291
|
+
agentIds
|
|
292
|
+
groupIds
|
|
293
|
+
ticketAutoAssigner
|
|
294
|
+
ticketAutoAssignerType
|
|
295
|
+
maxSimultaneousAttendances
|
|
296
|
+
createdAt
|
|
297
|
+
updatedAt
|
|
298
|
+
deletedAt
|
|
299
|
+
}
|
|
300
|
+
`;
|
|
301
|
+
exports.TicketFragmentDoc = `
|
|
302
|
+
fragment ticket on Ticket {
|
|
303
|
+
channelId
|
|
304
|
+
id
|
|
305
|
+
subject
|
|
306
|
+
description
|
|
307
|
+
state
|
|
308
|
+
status
|
|
309
|
+
priority
|
|
310
|
+
tags
|
|
311
|
+
externalProviderId
|
|
312
|
+
externalId
|
|
313
|
+
protocol
|
|
314
|
+
assignee {
|
|
315
|
+
...drozChatAgent
|
|
316
|
+
}
|
|
317
|
+
modifiedBy {
|
|
318
|
+
...drozChatAgent
|
|
319
|
+
}
|
|
320
|
+
closedBy {
|
|
321
|
+
...drozChatAgent
|
|
322
|
+
}
|
|
323
|
+
customer {
|
|
324
|
+
...customer
|
|
325
|
+
}
|
|
326
|
+
triggerApp {
|
|
327
|
+
...ticketTriggerApp
|
|
328
|
+
}
|
|
329
|
+
channel {
|
|
330
|
+
...drozChatChannel
|
|
331
|
+
}
|
|
332
|
+
createdAt
|
|
333
|
+
updatedAt
|
|
334
|
+
assignedAt
|
|
335
|
+
closedAt
|
|
336
|
+
lastMessageAt
|
|
337
|
+
firstAgentResponseAt
|
|
338
|
+
timeToFirstAgentResponseInMs
|
|
339
|
+
timeToCloseInMs
|
|
340
|
+
messagesCount
|
|
341
|
+
lastMessage
|
|
342
|
+
participants {
|
|
343
|
+
email
|
|
344
|
+
name
|
|
345
|
+
}
|
|
346
|
+
unreadMessagesCount
|
|
347
|
+
}
|
|
348
|
+
`;
|
|
252
349
|
exports.CustomFieldFragmentDoc = `
|
|
253
350
|
fragment customField on CustomField {
|
|
254
351
|
id
|
|
@@ -274,6 +371,14 @@ exports.TicketCustomFieldValueFragmentDoc = `
|
|
|
274
371
|
value
|
|
275
372
|
}
|
|
276
373
|
`;
|
|
374
|
+
exports.TicketWithCustomFieldValuesFragmentDoc = `
|
|
375
|
+
fragment ticketWithCustomFieldValues on Ticket {
|
|
376
|
+
...ticket
|
|
377
|
+
customFieldValues {
|
|
378
|
+
...ticketCustomFieldValue
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
`;
|
|
277
382
|
exports.GlobalConfigurationFragmentDoc = `
|
|
278
383
|
fragment globalConfiguration on GlobalConfiguration {
|
|
279
384
|
maxSimultaneousAttendances
|
|
@@ -293,21 +398,6 @@ exports.DrozChatAgentGroupFragmentDoc = `
|
|
|
293
398
|
deletedAt
|
|
294
399
|
}
|
|
295
400
|
`;
|
|
296
|
-
exports.DrozChatChannelFragmentDoc = `
|
|
297
|
-
fragment drozChatChannel on DrozChatChannel {
|
|
298
|
-
id
|
|
299
|
-
name
|
|
300
|
-
drn
|
|
301
|
-
agentIds
|
|
302
|
-
groupIds
|
|
303
|
-
ticketAutoAssigner
|
|
304
|
-
ticketAutoAssignerType
|
|
305
|
-
maxSimultaneousAttendances
|
|
306
|
-
createdAt
|
|
307
|
-
updatedAt
|
|
308
|
-
deletedAt
|
|
309
|
-
}
|
|
310
|
-
`;
|
|
311
401
|
exports.LiveQueueSummaryFragmentDoc = `
|
|
312
402
|
fragment liveQueueSummary on LiveQueueSummary {
|
|
313
403
|
channelId
|
|
@@ -448,23 +538,6 @@ exports.TagFragmentDoc = `
|
|
|
448
538
|
updatedAt
|
|
449
539
|
}
|
|
450
540
|
`;
|
|
451
|
-
exports.TicketTriggerAppFragmentDoc = `
|
|
452
|
-
fragment ticketTriggerApp on TicketTriggerApp {
|
|
453
|
-
drn
|
|
454
|
-
name
|
|
455
|
-
appId
|
|
456
|
-
appName
|
|
457
|
-
appColor
|
|
458
|
-
channels {
|
|
459
|
-
id
|
|
460
|
-
main
|
|
461
|
-
readonly
|
|
462
|
-
hidden
|
|
463
|
-
sources
|
|
464
|
-
unreadMessagesCount
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
`;
|
|
468
541
|
exports.TicketWithoutCustomerFragmentDoc = `
|
|
469
542
|
fragment ticketWithoutCustomer on Ticket {
|
|
470
543
|
channelId
|
|
@@ -506,71 +579,6 @@ exports.TicketWithoutCustomerFragmentDoc = `
|
|
|
506
579
|
unreadMessagesCount
|
|
507
580
|
}
|
|
508
581
|
`;
|
|
509
|
-
exports.CustomerFragmentDoc = `
|
|
510
|
-
fragment customer on DrozChatCustomer {
|
|
511
|
-
id
|
|
512
|
-
name
|
|
513
|
-
alternateName
|
|
514
|
-
email
|
|
515
|
-
phone
|
|
516
|
-
document
|
|
517
|
-
externalId
|
|
518
|
-
emails
|
|
519
|
-
phones
|
|
520
|
-
documents
|
|
521
|
-
externalIds
|
|
522
|
-
createdAt
|
|
523
|
-
updatedAt
|
|
524
|
-
}
|
|
525
|
-
`;
|
|
526
|
-
exports.TicketFragmentDoc = `
|
|
527
|
-
fragment ticket on Ticket {
|
|
528
|
-
channelId
|
|
529
|
-
id
|
|
530
|
-
subject
|
|
531
|
-
description
|
|
532
|
-
state
|
|
533
|
-
status
|
|
534
|
-
priority
|
|
535
|
-
tags
|
|
536
|
-
externalProviderId
|
|
537
|
-
externalId
|
|
538
|
-
protocol
|
|
539
|
-
assignee {
|
|
540
|
-
...drozChatAgent
|
|
541
|
-
}
|
|
542
|
-
modifiedBy {
|
|
543
|
-
...drozChatAgent
|
|
544
|
-
}
|
|
545
|
-
closedBy {
|
|
546
|
-
...drozChatAgent
|
|
547
|
-
}
|
|
548
|
-
customer {
|
|
549
|
-
...customer
|
|
550
|
-
}
|
|
551
|
-
triggerApp {
|
|
552
|
-
...ticketTriggerApp
|
|
553
|
-
}
|
|
554
|
-
channel {
|
|
555
|
-
...drozChatChannel
|
|
556
|
-
}
|
|
557
|
-
createdAt
|
|
558
|
-
updatedAt
|
|
559
|
-
assignedAt
|
|
560
|
-
closedAt
|
|
561
|
-
lastMessageAt
|
|
562
|
-
firstAgentResponseAt
|
|
563
|
-
timeToFirstAgentResponseInMs
|
|
564
|
-
timeToCloseInMs
|
|
565
|
-
messagesCount
|
|
566
|
-
lastMessage
|
|
567
|
-
participants {
|
|
568
|
-
email
|
|
569
|
-
name
|
|
570
|
-
}
|
|
571
|
-
unreadMessagesCount
|
|
572
|
-
}
|
|
573
|
-
`;
|
|
574
582
|
exports.SessionAttributesFragmentDoc = `
|
|
575
583
|
fragment sessionAttributes on TicketSessionAttributes {
|
|
576
584
|
organization
|
|
@@ -1116,6 +1124,62 @@ exports.ListCustomFieldsDocument = `
|
|
|
1116
1124
|
}
|
|
1117
1125
|
}
|
|
1118
1126
|
${exports.CustomFieldFragmentDoc}`;
|
|
1127
|
+
exports.CreateCustomFieldDocument = `
|
|
1128
|
+
mutation createCustomField($input: CreateCustomFieldInput!) {
|
|
1129
|
+
createCustomField(input: $input) {
|
|
1130
|
+
...customField
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
${exports.CustomFieldFragmentDoc}`;
|
|
1134
|
+
exports.UpdateCustomFieldDocument = `
|
|
1135
|
+
mutation updateCustomField($input: UpdateCustomFieldInput!) {
|
|
1136
|
+
updateCustomField(input: $input) {
|
|
1137
|
+
...customField
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
${exports.CustomFieldFragmentDoc}`;
|
|
1141
|
+
exports.DeleteCustomFieldDocument = `
|
|
1142
|
+
mutation deleteCustomField($id: ID!) {
|
|
1143
|
+
deleteCustomField(id: $id)
|
|
1144
|
+
}
|
|
1145
|
+
`;
|
|
1146
|
+
exports.ReorderCustomFieldsDocument = `
|
|
1147
|
+
mutation reorderCustomFields($input: ReorderCustomFieldsInput!) {
|
|
1148
|
+
reorderCustomFields(input: $input) {
|
|
1149
|
+
...customField
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
${exports.CustomFieldFragmentDoc}`;
|
|
1153
|
+
exports.SearchTicketsWithCustomFieldValuesDocument = `
|
|
1154
|
+
query searchTicketsWithCustomFieldValues($q: String, $filters: [TicketSearchFilterInput!], $sortBy: [TicketSearchSortBy!], $page: Number, $perPage: Number) {
|
|
1155
|
+
searchTickets(
|
|
1156
|
+
q: $q
|
|
1157
|
+
filters: $filters
|
|
1158
|
+
sortBy: $sortBy
|
|
1159
|
+
page: $page
|
|
1160
|
+
perPage: $perPage
|
|
1161
|
+
) {
|
|
1162
|
+
nodes {
|
|
1163
|
+
...ticketWithCustomFieldValues
|
|
1164
|
+
}
|
|
1165
|
+
stats {
|
|
1166
|
+
found
|
|
1167
|
+
outOf
|
|
1168
|
+
page
|
|
1169
|
+
totalPages
|
|
1170
|
+
perPage
|
|
1171
|
+
searchTime
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
${exports.TicketWithCustomFieldValuesFragmentDoc}
|
|
1176
|
+
${exports.TicketFragmentDoc}
|
|
1177
|
+
${exports.DrozChatAgentFragmentDoc}
|
|
1178
|
+
${exports.CustomerFragmentDoc}
|
|
1179
|
+
${exports.TicketTriggerAppFragmentDoc}
|
|
1180
|
+
${exports.DrozChatChannelFragmentDoc}
|
|
1181
|
+
${exports.TicketCustomFieldValueFragmentDoc}
|
|
1182
|
+
${exports.CustomFieldFragmentDoc}`;
|
|
1119
1183
|
exports.SetCustomFieldValueDocument = `
|
|
1120
1184
|
mutation setCustomFieldValue($input: SetCustomFieldValueInput!) {
|
|
1121
1185
|
setCustomFieldValue(input: $input) {
|
|
@@ -1984,6 +2048,21 @@ function getSdk(requester) {
|
|
|
1984
2048
|
listCustomFields(variables, options) {
|
|
1985
2049
|
return requester(exports.ListCustomFieldsDocument, variables, options);
|
|
1986
2050
|
},
|
|
2051
|
+
createCustomField(variables, options) {
|
|
2052
|
+
return requester(exports.CreateCustomFieldDocument, variables, options);
|
|
2053
|
+
},
|
|
2054
|
+
updateCustomField(variables, options) {
|
|
2055
|
+
return requester(exports.UpdateCustomFieldDocument, variables, options);
|
|
2056
|
+
},
|
|
2057
|
+
deleteCustomField(variables, options) {
|
|
2058
|
+
return requester(exports.DeleteCustomFieldDocument, variables, options);
|
|
2059
|
+
},
|
|
2060
|
+
reorderCustomFields(variables, options) {
|
|
2061
|
+
return requester(exports.ReorderCustomFieldsDocument, variables, options);
|
|
2062
|
+
},
|
|
2063
|
+
searchTicketsWithCustomFieldValues(variables, options) {
|
|
2064
|
+
return requester(exports.SearchTicketsWithCustomFieldValuesDocument, variables, options);
|
|
2065
|
+
},
|
|
1987
2066
|
setCustomFieldValue(variables, options) {
|
|
1988
2067
|
return requester(exports.SetCustomFieldValueDocument, variables, options);
|
|
1989
2068
|
},
|