@droz-js/sdk
Advanced tools
Comparing version 0.9.29 to 0.9.30
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.9.29", | ||
"version": "0.9.30", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -215,2 +215,3 @@ export type Maybe<T> = T; | ||
listZendeskTicketCustomFields: Array<ZendeskCustomField>; | ||
listZendeskTicketDetails?: Maybe<ZendeskTicketDetails>; | ||
listZendeskTicketInteractions: Array<ZendeskTicketInteraction>; | ||
@@ -238,2 +239,5 @@ listZendeskTicketInteractionsBySessionId: Array<ZendeskTicketInteraction>; | ||
}; | ||
export type QueryListZendeskTicketDetailsArgs = { | ||
ticketId: Scalars['ID']['input']; | ||
}; | ||
export type QueryListZendeskTicketInteractionsArgs = { | ||
@@ -395,2 +399,17 @@ instanceId: Scalars['ID']['input']; | ||
}; | ||
export type ZendeskTicketComment = { | ||
author_id: Scalars['String']['output']; | ||
body: Scalars['String']['output']; | ||
id: Scalars['String']['output']; | ||
public: Scalars['Boolean']['output']; | ||
}; | ||
export type ZendeskTicketDetails = { | ||
comments: Array<ZendeskTicketComment>; | ||
externalId?: Maybe<Scalars['String']['output']>; | ||
id: Scalars['String']['output']; | ||
status: Scalars['String']['output']; | ||
subject: Scalars['String']['output']; | ||
tags?: Maybe<Array<Scalars['String']['output']>>; | ||
via?: Maybe<Scalars['JSON']['output']>; | ||
}; | ||
export type ZendeskTicketInteraction = { | ||
@@ -422,2 +441,5 @@ createdAt: Scalars['DateTime']['output']; | ||
export type ZendeskTicketInteractionFragment = Pick<ZendeskTicketInteraction, 'id' | 'ticketId' | 'instanceId' | 'sessionId' | 'createdAt' | 'updatedAt'>; | ||
export type ZendeskTicketDetailsFragment = (Pick<ZendeskTicketDetails, 'id' | 'subject' | 'status' | 'tags' | 'externalId'> & { | ||
comments: Array<Pick<ZendeskTicketComment, 'id' | 'author_id' | 'body' | 'public'>>; | ||
}); | ||
export type GetZendeskInstanceQueryVariables = Exact<{ | ||
@@ -442,2 +464,8 @@ id: Scalars['ID']['input']; | ||
}; | ||
export type ListZendeskTicketDetailsQueryVariables = Exact<{ | ||
ticketId: Scalars['ID']['input']; | ||
}>; | ||
export type ListZendeskTicketDetailsQuery = { | ||
listZendeskTicketDetails?: Maybe<ZendeskTicketDetailsFragment>; | ||
}; | ||
export type ListZendeskRolesQueryVariables = Exact<{ | ||
@@ -502,5 +530,7 @@ credentialId: Scalars['ID']['input']; | ||
export declare const ZendeskTicketInteractionFragmentDoc = "\n fragment zendeskTicketInteraction on ZendeskTicketInteraction {\n id\n ticketId\n instanceId\n sessionId\n createdAt\n updatedAt\n}\n "; | ||
export declare const ZendeskTicketDetailsFragmentDoc = "\n fragment zendeskTicketDetails on ZendeskTicketDetails {\n id\n subject\n status\n comments {\n id\n author_id\n body\n public\n }\n tags\n externalId\n}\n "; | ||
export declare const GetZendeskInstanceDocument = "\n query getZendeskInstance($id: ID!) {\n getZendeskInstance(id: $id) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n drn\n domain\n credentialId\n closedStatuses\n appChannelRoleMappings {\n appId\n channelId\n zendeskRoleId\n zendeskAuthorizedUserTags\n }\n sessionFieldMappings {\n expression\n customFieldId\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListZendeskInstancesDocument = "\n query listZendeskInstances {\n listZendeskInstances {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n drn\n domain\n credentialId\n closedStatuses\n appChannelRoleMappings {\n appId\n channelId\n zendeskRoleId\n zendeskAuthorizedUserTags\n }\n sessionFieldMappings {\n expression\n customFieldId\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListZendeskTicketCustomFieldsDocument = "\n query listZendeskTicketCustomFields($credentialId: ID!, $domain: String!) {\n listZendeskTicketCustomFields(credentialId: $credentialId, domain: $domain) {\n id\n title\n type\n active\n required\n }\n}\n "; | ||
export declare const ListZendeskTicketDetailsDocument = "\n query listZendeskTicketDetails($ticketId: ID!) {\n listZendeskTicketDetails(ticketId: $ticketId) {\n ...zendeskTicketDetails\n }\n}\n \n fragment zendeskTicketDetails on ZendeskTicketDetails {\n id\n subject\n status\n comments {\n id\n author_id\n body\n public\n }\n tags\n externalId\n}\n "; | ||
export declare const ListZendeskRolesDocument = "\n query listZendeskRoles($credentialId: ID!, $domain: String!) {\n listZendeskRoles(credentialId: $credentialId, domain: $domain) {\n id\n name\n }\n}\n "; | ||
@@ -520,2 +550,3 @@ export declare const AssertCanUserInteractDocument = "\n query assertCanUserInteract($ticketId: ID!, $userId: Float!) {\n assertCanUserInteract(ticketId: $ticketId, userId: $userId)\n}\n "; | ||
listZendeskTicketCustomFields(variables: ListZendeskTicketCustomFieldsQueryVariables, options?: C): Promise<ListZendeskTicketCustomFieldsQuery>; | ||
listZendeskTicketDetails(variables: ListZendeskTicketDetailsQueryVariables, options?: C): Promise<ListZendeskTicketDetailsQuery>; | ||
listZendeskRoles(variables: ListZendeskRolesQueryVariables, options?: C): Promise<ListZendeskRolesQuery>; | ||
@@ -522,0 +553,0 @@ assertCanUserInteract(variables: AssertCanUserInteractQueryVariables, options?: C): Promise<AssertCanUserInteractQuery>; |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.serviceName = exports.RemoveZendeskInstanceDocument = exports.UpdateZendeskInstanceDocument = exports.CreateZendeskInstanceDocument = exports.SwitchDisableSyncTagDocument = exports.ListZendeskTicketInteractionsBySessionIdDocument = exports.ListZendeskTicketInteractionsDocument = exports.GetTicketSessionAttributesDocument = exports.AssertCanUserInteractDocument = exports.ListZendeskRolesDocument = exports.ListZendeskTicketCustomFieldsDocument = exports.ListZendeskInstancesDocument = exports.GetZendeskInstanceDocument = exports.ZendeskTicketInteractionFragmentDoc = exports.ZendeskCustomerFragmentDoc = exports.ZendeskInstanceFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.RemoveZendeskInstanceDocument = exports.UpdateZendeskInstanceDocument = exports.CreateZendeskInstanceDocument = exports.SwitchDisableSyncTagDocument = exports.ListZendeskTicketInteractionsBySessionIdDocument = exports.ListZendeskTicketInteractionsDocument = exports.GetTicketSessionAttributesDocument = exports.AssertCanUserInteractDocument = exports.ListZendeskRolesDocument = exports.ListZendeskTicketDetailsDocument = exports.ListZendeskTicketCustomFieldsDocument = exports.ListZendeskInstancesDocument = exports.GetZendeskInstanceDocument = exports.ZendeskTicketDetailsFragmentDoc = exports.ZendeskTicketInteractionFragmentDoc = exports.ZendeskCustomerFragmentDoc = exports.ZendeskInstanceFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0; | ||
exports.getSdk = getSdk; | ||
@@ -72,2 +72,17 @@ var AppInstanceStatus; | ||
`; | ||
exports.ZendeskTicketDetailsFragmentDoc = ` | ||
fragment zendeskTicketDetails on ZendeskTicketDetails { | ||
id | ||
subject | ||
status | ||
comments { | ||
id | ||
author_id | ||
body | ||
public | ||
} | ||
tags | ||
externalId | ||
} | ||
`; | ||
exports.GetZendeskInstanceDocument = ` | ||
@@ -98,2 +113,9 @@ query getZendeskInstance($id: ID!) { | ||
`; | ||
exports.ListZendeskTicketDetailsDocument = ` | ||
query listZendeskTicketDetails($ticketId: ID!) { | ||
listZendeskTicketDetails(ticketId: $ticketId) { | ||
...zendeskTicketDetails | ||
} | ||
} | ||
${exports.ZendeskTicketDetailsFragmentDoc}`; | ||
exports.ListZendeskRolesDocument = ` | ||
@@ -183,2 +205,5 @@ query listZendeskRoles($credentialId: ID!, $domain: String!) { | ||
}, | ||
listZendeskTicketDetails(variables, options) { | ||
return requester(exports.ListZendeskTicketDetailsDocument, variables, options); | ||
}, | ||
listZendeskRoles(variables, options) { | ||
@@ -185,0 +210,0 @@ return requester(exports.ListZendeskRolesDocument, variables, options); |
@@ -19,2 +19,5 @@ export * from './sdks/zendesk'; | ||
}>, options?: unknown): Promise<import("./sdks/zendesk").ListZendeskTicketCustomFieldsQuery>; | ||
listZendeskTicketDetails(variables: import("./sdks/zendesk").Exact<{ | ||
ticketId: import("./sdks/zendesk").Scalars["ID"]["input"]; | ||
}>, options?: unknown): Promise<import("./sdks/zendesk").ListZendeskTicketDetailsQuery>; | ||
listZendeskRoles(variables: import("./sdks/zendesk").Exact<{ | ||
@@ -21,0 +24,0 @@ credentialId: import("./sdks/zendesk").Scalars["ID"]["input"]; |
1541233
30796