@droz-js/sdk 0.20.15 → 0.20.17
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 +63 -12
- package/src/sdks/drozchat.js +182 -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
|
@@ -401,6 +401,7 @@ export type CustomField = {
|
|
|
401
401
|
id: Scalars['ID']['output'];
|
|
402
402
|
isActive: Scalars['Boolean']['output'];
|
|
403
403
|
isRequired: Scalars['Boolean']['output'];
|
|
404
|
+
maxLength?: Maybe<Scalars['Int']['output']>;
|
|
404
405
|
name: Scalars['String']['output'];
|
|
405
406
|
options: Array<CustomFieldOption>;
|
|
406
407
|
order: Scalars['Int']['output'];
|
|
@@ -1254,6 +1255,7 @@ export declare enum TicketAutoAssignerType {
|
|
|
1254
1255
|
}
|
|
1255
1256
|
export type TicketCustomFieldValue = {
|
|
1256
1257
|
field: CustomField;
|
|
1258
|
+
isMissingRequired: Scalars['Boolean']['output'];
|
|
1257
1259
|
value: Scalars['JSON']['output'];
|
|
1258
1260
|
};
|
|
1259
1261
|
export type TicketMessage = {
|
|
@@ -1859,18 +1861,56 @@ export type DeleteNoteMutationVariables = Exact<{
|
|
|
1859
1861
|
export type DeleteNoteMutation = {
|
|
1860
1862
|
deleteNote: CustomerNoteFragment;
|
|
1861
1863
|
};
|
|
1862
|
-
export type CustomFieldFragment = (Pick<CustomField, 'id' | 'name' | 'type' | 'isRequired' | 'order' | 'isActive' | 'usedInTicket' | 'createdAt' | 'updatedAt'> & {
|
|
1864
|
+
export type CustomFieldFragment = (Pick<CustomField, 'id' | 'name' | 'type' | 'isRequired' | 'order' | 'isActive' | 'usedInTicket' | 'maxLength' | 'createdAt' | 'updatedAt'> & {
|
|
1863
1865
|
options: Array<Pick<CustomFieldOption, 'label' | 'tag'>>;
|
|
1864
1866
|
});
|
|
1865
|
-
export type TicketCustomFieldValueFragment = (Pick<TicketCustomFieldValue, 'value'> & {
|
|
1867
|
+
export type TicketCustomFieldValueFragment = (Pick<TicketCustomFieldValue, 'value' | 'isMissingRequired'> & {
|
|
1866
1868
|
field: CustomFieldFragment;
|
|
1867
1869
|
});
|
|
1870
|
+
export type TicketWithCustomFieldValuesFragment = ({
|
|
1871
|
+
customFieldValues: Array<TicketCustomFieldValueFragment>;
|
|
1872
|
+
} & TicketFragment);
|
|
1868
1873
|
export type ListCustomFieldsQueryVariables = Exact<{
|
|
1869
1874
|
[key: string]: never;
|
|
1870
1875
|
}>;
|
|
1871
1876
|
export type ListCustomFieldsQuery = {
|
|
1872
1877
|
listCustomFields: Array<CustomFieldFragment>;
|
|
1873
1878
|
};
|
|
1879
|
+
export type CreateCustomFieldMutationVariables = Exact<{
|
|
1880
|
+
input: CreateCustomFieldInput;
|
|
1881
|
+
}>;
|
|
1882
|
+
export type CreateCustomFieldMutation = {
|
|
1883
|
+
createCustomField: CustomFieldFragment;
|
|
1884
|
+
};
|
|
1885
|
+
export type UpdateCustomFieldMutationVariables = Exact<{
|
|
1886
|
+
input: UpdateCustomFieldInput;
|
|
1887
|
+
}>;
|
|
1888
|
+
export type UpdateCustomFieldMutation = {
|
|
1889
|
+
updateCustomField: CustomFieldFragment;
|
|
1890
|
+
};
|
|
1891
|
+
export type DeleteCustomFieldMutationVariables = Exact<{
|
|
1892
|
+
id: Scalars['ID']['input'];
|
|
1893
|
+
}>;
|
|
1894
|
+
export type DeleteCustomFieldMutation = Pick<Mutation, 'deleteCustomField'>;
|
|
1895
|
+
export type ReorderCustomFieldsMutationVariables = Exact<{
|
|
1896
|
+
input: ReorderCustomFieldsInput;
|
|
1897
|
+
}>;
|
|
1898
|
+
export type ReorderCustomFieldsMutation = {
|
|
1899
|
+
reorderCustomFields: Array<CustomFieldFragment>;
|
|
1900
|
+
};
|
|
1901
|
+
export type SearchTicketsWithCustomFieldValuesQueryVariables = Exact<{
|
|
1902
|
+
q?: InputMaybe<Scalars['String']['input']>;
|
|
1903
|
+
filters?: InputMaybe<Array<TicketSearchFilterInput> | TicketSearchFilterInput>;
|
|
1904
|
+
sortBy?: InputMaybe<Array<TicketSearchSortBy> | TicketSearchSortBy>;
|
|
1905
|
+
page?: InputMaybe<Scalars['Number']['input']>;
|
|
1906
|
+
perPage?: InputMaybe<Scalars['Number']['input']>;
|
|
1907
|
+
}>;
|
|
1908
|
+
export type SearchTicketsWithCustomFieldValuesQuery = {
|
|
1909
|
+
searchTickets?: Maybe<{
|
|
1910
|
+
nodes: Array<TicketWithCustomFieldValuesFragment>;
|
|
1911
|
+
stats: Pick<SearchResultsStats, 'found' | 'outOf' | 'page' | 'totalPages' | 'perPage' | 'searchTime'>;
|
|
1912
|
+
}>;
|
|
1913
|
+
};
|
|
1874
1914
|
export type SetCustomFieldValueMutationVariables = Exact<{
|
|
1875
1915
|
input: SetCustomFieldValueInput;
|
|
1876
1916
|
}>;
|
|
@@ -2514,11 +2554,15 @@ export declare const BulkCloseRoutineConfigFragmentDoc = "\n fragment bulkClo
|
|
|
2514
2554
|
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
2555
|
export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
2516
2556
|
export declare const CustomerNoteFragmentDoc = "\n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
|
|
2517
|
-
export declare const
|
|
2518
|
-
export declare const
|
|
2557
|
+
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 ";
|
|
2558
|
+
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 ";
|
|
2559
|
+
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 ";
|
|
2560
|
+
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 ";
|
|
2561
|
+
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 maxLength\n createdAt\n updatedAt\n}\n ";
|
|
2562
|
+
export declare const TicketCustomFieldValueFragmentDoc = "\n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n isMissingRequired\n}\n ";
|
|
2563
|
+
export declare const TicketWithCustomFieldValuesFragmentDoc = "\n fragment ticketWithCustomFieldValues on Ticket {\n ...ticket\n customFieldValues {\n ...ticketCustomFieldValue\n }\n}\n ";
|
|
2519
2564
|
export declare const GlobalConfigurationFragmentDoc = "\n fragment globalConfiguration on GlobalConfiguration {\n maxSimultaneousAttendances\n createdAt\n updatedAt\n}\n ";
|
|
2520
2565
|
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
2566
|
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
2567
|
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
2568
|
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 +2572,7 @@ export declare const TicketPresenceFragmentDoc = "\n fragment ticketPresence
|
|
|
2528
2572
|
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
2573
|
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
2574
|
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
2575
|
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
2576
|
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
2577
|
export declare const TicketWithSessionFragmentDoc = "\n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n ";
|
|
2537
2578
|
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 ";
|
|
@@ -2567,10 +2608,15 @@ export declare const ListNotesDocument = "\n query listNotes($customerId: Str
|
|
|
2567
2608
|
export declare const CreateNoteDocument = "\n mutation createNote($input: CreateCustomerNoteInput!) {\n createNote(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 ";
|
|
2568
2609
|
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
2610
|
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
|
-
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 ";
|
|
2571
|
-
export declare const
|
|
2572
|
-
export declare const
|
|
2573
|
-
export declare const
|
|
2611
|
+
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 maxLength\n createdAt\n updatedAt\n}\n ";
|
|
2612
|
+
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 maxLength\n createdAt\n updatedAt\n}\n ";
|
|
2613
|
+
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 maxLength\n createdAt\n updatedAt\n}\n ";
|
|
2614
|
+
export declare const DeleteCustomFieldDocument = "\n mutation deleteCustomField($id: ID!) {\n deleteCustomField(id: $id)\n}\n ";
|
|
2615
|
+
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 maxLength\n createdAt\n updatedAt\n}\n ";
|
|
2616
|
+
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 isMissingRequired\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 maxLength\n createdAt\n updatedAt\n}\n ";
|
|
2617
|
+
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 isMissingRequired\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 maxLength\n createdAt\n updatedAt\n}\n ";
|
|
2618
|
+
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 isMissingRequired\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 maxLength\n createdAt\n updatedAt\n}\n ";
|
|
2619
|
+
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 isMissingRequired\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 maxLength\n createdAt\n updatedAt\n}\n ";
|
|
2574
2620
|
export declare const GetGlobalConfigurationDocument = "\n query getGlobalConfiguration {\n getGlobalConfiguration {\n ...globalConfiguration\n }\n}\n \n fragment globalConfiguration on GlobalConfiguration {\n maxSimultaneousAttendances\n createdAt\n updatedAt\n}\n ";
|
|
2575
2621
|
export declare const SetMaxSimultaneousAttendancesDocument = "\n mutation setMaxSimultaneousAttendances($input: SetMaxSimultaneousAttendancesInput!) {\n setMaxSimultaneousAttendances(input: $input) {\n ...globalConfiguration\n }\n}\n \n fragment globalConfiguration on GlobalConfiguration {\n maxSimultaneousAttendances\n createdAt\n updatedAt\n}\n ";
|
|
2576
2622
|
export declare const ClearMaxSimultaneousAttendancesDocument = "\n mutation clearMaxSimultaneousAttendances {\n clearMaxSimultaneousAttendances {\n ...globalConfiguration\n }\n}\n \n fragment globalConfiguration on GlobalConfiguration {\n maxSimultaneousAttendances\n createdAt\n updatedAt\n}\n ";
|
|
@@ -2671,6 +2717,11 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
2671
2717
|
updateNote(variables: UpdateNoteMutationVariables, options?: C): Promise<UpdateNoteMutation>;
|
|
2672
2718
|
deleteNote(variables: DeleteNoteMutationVariables, options?: C): Promise<DeleteNoteMutation>;
|
|
2673
2719
|
listCustomFields(variables?: ListCustomFieldsQueryVariables, options?: C): Promise<ListCustomFieldsQuery>;
|
|
2720
|
+
createCustomField(variables: CreateCustomFieldMutationVariables, options?: C): Promise<CreateCustomFieldMutation>;
|
|
2721
|
+
updateCustomField(variables: UpdateCustomFieldMutationVariables, options?: C): Promise<UpdateCustomFieldMutation>;
|
|
2722
|
+
deleteCustomField(variables: DeleteCustomFieldMutationVariables, options?: C): Promise<DeleteCustomFieldMutation>;
|
|
2723
|
+
reorderCustomFields(variables: ReorderCustomFieldsMutationVariables, options?: C): Promise<ReorderCustomFieldsMutation>;
|
|
2724
|
+
searchTicketsWithCustomFieldValues(variables?: SearchTicketsWithCustomFieldValuesQueryVariables, options?: C): Promise<SearchTicketsWithCustomFieldValuesQuery>;
|
|
2674
2725
|
setCustomFieldValue(variables: SetCustomFieldValueMutationVariables, options?: C): Promise<SetCustomFieldValueMutation>;
|
|
2675
2726
|
clearCustomFieldValue(variables: ClearCustomFieldValueMutationVariables, options?: C): Promise<ClearCustomFieldValueMutation>;
|
|
2676
2727
|
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
|
|
@@ -262,6 +359,7 @@ exports.CustomFieldFragmentDoc = `
|
|
|
262
359
|
order
|
|
263
360
|
isActive
|
|
264
361
|
usedInTicket
|
|
362
|
+
maxLength
|
|
265
363
|
createdAt
|
|
266
364
|
updatedAt
|
|
267
365
|
}
|
|
@@ -272,6 +370,15 @@ exports.TicketCustomFieldValueFragmentDoc = `
|
|
|
272
370
|
...customField
|
|
273
371
|
}
|
|
274
372
|
value
|
|
373
|
+
isMissingRequired
|
|
374
|
+
}
|
|
375
|
+
`;
|
|
376
|
+
exports.TicketWithCustomFieldValuesFragmentDoc = `
|
|
377
|
+
fragment ticketWithCustomFieldValues on Ticket {
|
|
378
|
+
...ticket
|
|
379
|
+
customFieldValues {
|
|
380
|
+
...ticketCustomFieldValue
|
|
381
|
+
}
|
|
275
382
|
}
|
|
276
383
|
`;
|
|
277
384
|
exports.GlobalConfigurationFragmentDoc = `
|
|
@@ -293,21 +400,6 @@ exports.DrozChatAgentGroupFragmentDoc = `
|
|
|
293
400
|
deletedAt
|
|
294
401
|
}
|
|
295
402
|
`;
|
|
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
403
|
exports.LiveQueueSummaryFragmentDoc = `
|
|
312
404
|
fragment liveQueueSummary on LiveQueueSummary {
|
|
313
405
|
channelId
|
|
@@ -448,23 +540,6 @@ exports.TagFragmentDoc = `
|
|
|
448
540
|
updatedAt
|
|
449
541
|
}
|
|
450
542
|
`;
|
|
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
543
|
exports.TicketWithoutCustomerFragmentDoc = `
|
|
469
544
|
fragment ticketWithoutCustomer on Ticket {
|
|
470
545
|
channelId
|
|
@@ -506,71 +581,6 @@ exports.TicketWithoutCustomerFragmentDoc = `
|
|
|
506
581
|
unreadMessagesCount
|
|
507
582
|
}
|
|
508
583
|
`;
|
|
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
584
|
exports.SessionAttributesFragmentDoc = `
|
|
575
585
|
fragment sessionAttributes on TicketSessionAttributes {
|
|
576
586
|
organization
|
|
@@ -1116,6 +1126,62 @@ exports.ListCustomFieldsDocument = `
|
|
|
1116
1126
|
}
|
|
1117
1127
|
}
|
|
1118
1128
|
${exports.CustomFieldFragmentDoc}`;
|
|
1129
|
+
exports.CreateCustomFieldDocument = `
|
|
1130
|
+
mutation createCustomField($input: CreateCustomFieldInput!) {
|
|
1131
|
+
createCustomField(input: $input) {
|
|
1132
|
+
...customField
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
${exports.CustomFieldFragmentDoc}`;
|
|
1136
|
+
exports.UpdateCustomFieldDocument = `
|
|
1137
|
+
mutation updateCustomField($input: UpdateCustomFieldInput!) {
|
|
1138
|
+
updateCustomField(input: $input) {
|
|
1139
|
+
...customField
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
${exports.CustomFieldFragmentDoc}`;
|
|
1143
|
+
exports.DeleteCustomFieldDocument = `
|
|
1144
|
+
mutation deleteCustomField($id: ID!) {
|
|
1145
|
+
deleteCustomField(id: $id)
|
|
1146
|
+
}
|
|
1147
|
+
`;
|
|
1148
|
+
exports.ReorderCustomFieldsDocument = `
|
|
1149
|
+
mutation reorderCustomFields($input: ReorderCustomFieldsInput!) {
|
|
1150
|
+
reorderCustomFields(input: $input) {
|
|
1151
|
+
...customField
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
${exports.CustomFieldFragmentDoc}`;
|
|
1155
|
+
exports.SearchTicketsWithCustomFieldValuesDocument = `
|
|
1156
|
+
query searchTicketsWithCustomFieldValues($q: String, $filters: [TicketSearchFilterInput!], $sortBy: [TicketSearchSortBy!], $page: Number, $perPage: Number) {
|
|
1157
|
+
searchTickets(
|
|
1158
|
+
q: $q
|
|
1159
|
+
filters: $filters
|
|
1160
|
+
sortBy: $sortBy
|
|
1161
|
+
page: $page
|
|
1162
|
+
perPage: $perPage
|
|
1163
|
+
) {
|
|
1164
|
+
nodes {
|
|
1165
|
+
...ticketWithCustomFieldValues
|
|
1166
|
+
}
|
|
1167
|
+
stats {
|
|
1168
|
+
found
|
|
1169
|
+
outOf
|
|
1170
|
+
page
|
|
1171
|
+
totalPages
|
|
1172
|
+
perPage
|
|
1173
|
+
searchTime
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
${exports.TicketWithCustomFieldValuesFragmentDoc}
|
|
1178
|
+
${exports.TicketFragmentDoc}
|
|
1179
|
+
${exports.DrozChatAgentFragmentDoc}
|
|
1180
|
+
${exports.CustomerFragmentDoc}
|
|
1181
|
+
${exports.TicketTriggerAppFragmentDoc}
|
|
1182
|
+
${exports.DrozChatChannelFragmentDoc}
|
|
1183
|
+
${exports.TicketCustomFieldValueFragmentDoc}
|
|
1184
|
+
${exports.CustomFieldFragmentDoc}`;
|
|
1119
1185
|
exports.SetCustomFieldValueDocument = `
|
|
1120
1186
|
mutation setCustomFieldValue($input: SetCustomFieldValueInput!) {
|
|
1121
1187
|
setCustomFieldValue(input: $input) {
|
|
@@ -1984,6 +2050,21 @@ function getSdk(requester) {
|
|
|
1984
2050
|
listCustomFields(variables, options) {
|
|
1985
2051
|
return requester(exports.ListCustomFieldsDocument, variables, options);
|
|
1986
2052
|
},
|
|
2053
|
+
createCustomField(variables, options) {
|
|
2054
|
+
return requester(exports.CreateCustomFieldDocument, variables, options);
|
|
2055
|
+
},
|
|
2056
|
+
updateCustomField(variables, options) {
|
|
2057
|
+
return requester(exports.UpdateCustomFieldDocument, variables, options);
|
|
2058
|
+
},
|
|
2059
|
+
deleteCustomField(variables, options) {
|
|
2060
|
+
return requester(exports.DeleteCustomFieldDocument, variables, options);
|
|
2061
|
+
},
|
|
2062
|
+
reorderCustomFields(variables, options) {
|
|
2063
|
+
return requester(exports.ReorderCustomFieldsDocument, variables, options);
|
|
2064
|
+
},
|
|
2065
|
+
searchTicketsWithCustomFieldValues(variables, options) {
|
|
2066
|
+
return requester(exports.SearchTicketsWithCustomFieldValuesDocument, variables, options);
|
|
2067
|
+
},
|
|
1987
2068
|
setCustomFieldValue(variables, options) {
|
|
1988
2069
|
return requester(exports.SetCustomFieldValueDocument, variables, options);
|
|
1989
2070
|
},
|