@droz-js/sdk
Advanced tools
Comparing version 0.4.14 to 0.4.15
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.4.14", | ||
"version": "0.4.15", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -32,2 +32,5 @@ export * from './sdks/reclameaqui'; | ||
}>, options?: unknown): Promise<import("./sdks/reclameaqui").SendReclameAquiModerationRequestMutation>; | ||
requestReclameAquiTicketEvaluation(variables: import("./sdks/reclameaqui").Exact<{ | ||
input: import("./sdks/reclameaqui").RequestReclameAquiTicketEvaluationInput; | ||
}>, options?: unknown): Promise<import("./sdks/reclameaqui").RequestReclameAquiTicketEvaluationMutation>; | ||
}; |
@@ -102,3 +102,4 @@ export type Maybe<T> = T; | ||
removeReclameAquiInstance?: Maybe<ReclameAquiInstance>; | ||
sendReclameAquiModerationRequest?: Maybe<ReclameAquiModerationRequest>; | ||
requestReclameAquiTicketEvaluation?: Maybe<ReclameAquiTicketEvaluationResponse>; | ||
sendReclameAquiModerationRequest?: Maybe<ReclameAquiModerationResponse>; | ||
updateReclameAquiInstance?: Maybe<ReclameAquiInstance>; | ||
@@ -113,2 +114,5 @@ version?: Maybe<Scalars['String']['output']>; | ||
}; | ||
export type MutationRequestReclameAquiTicketEvaluationArgs = { | ||
input: RequestReclameAquiTicketEvaluationInput; | ||
}; | ||
export type MutationSendReclameAquiModerationRequestArgs = { | ||
@@ -158,8 +162,14 @@ input: SendReclameAquiModerationRequestInput; | ||
}; | ||
export type ReclameAquiModerationRequest = { | ||
export type ReclameAquiModerationResponse = { | ||
success: Scalars['Boolean']['output']; | ||
}; | ||
export type ReclameAquiTicketEvaluationResponse = { | ||
success: Scalars['Boolean']['output']; | ||
}; | ||
export type RemoveReclameAquiInstanceInput = { | ||
id: Scalars['ID']['input']; | ||
}; | ||
export type RequestReclameAquiTicketEvaluationInput = { | ||
sessionId: Scalars['ID']['input']; | ||
}; | ||
export type SendReclameAquiModerationRequestInput = { | ||
@@ -230,4 +240,10 @@ moderationAttachmentUrl?: InputMaybe<Scalars['String']['input']>; | ||
export type SendReclameAquiModerationRequestMutation = { | ||
sendReclameAquiModerationRequest?: Maybe<Pick<ReclameAquiModerationRequest, 'success'>>; | ||
sendReclameAquiModerationRequest?: Maybe<Pick<ReclameAquiModerationResponse, 'success'>>; | ||
}; | ||
export type RequestReclameAquiTicketEvaluationMutationVariables = Exact<{ | ||
input: RequestReclameAquiTicketEvaluationInput; | ||
}>; | ||
export type RequestReclameAquiTicketEvaluationMutation = { | ||
requestReclameAquiTicketEvaluation?: Maybe<Pick<ReclameAquiTicketEvaluationResponse, 'success'>>; | ||
}; | ||
export declare const ReclameAquiInstanceFragmentDoc = "\n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n createdAt\n updatedAt\n}\n "; | ||
@@ -242,2 +258,3 @@ export declare const GetReclameAquiInstanceDocument = "\n query getReclameAquiInstance($id: ID!) {\n getReclameAquiInstance(id: $id) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n createdAt\n updatedAt\n}\n "; | ||
export declare const SendReclameAquiModerationRequestDocument = "\n mutation sendReclameAquiModerationRequest($input: SendReclameAquiModerationRequestInput!) {\n sendReclameAquiModerationRequest(input: $input) {\n success\n }\n}\n "; | ||
export declare const RequestReclameAquiTicketEvaluationDocument = "\n mutation requestReclameAquiTicketEvaluation($input: RequestReclameAquiTicketEvaluationInput!) {\n requestReclameAquiTicketEvaluation(input: $input) {\n success\n }\n}\n "; | ||
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>; | ||
@@ -253,4 +270,5 @@ export declare function getSdk<C, E>(requester: Requester<C, E>): { | ||
sendReclameAquiModerationRequest(variables: SendReclameAquiModerationRequestMutationVariables, options?: C): Promise<SendReclameAquiModerationRequestMutation>; | ||
requestReclameAquiTicketEvaluation(variables: RequestReclameAquiTicketEvaluationMutationVariables, options?: C): Promise<RequestReclameAquiTicketEvaluationMutation>; | ||
}; | ||
export type Sdk = ReturnType<typeof getSdk>; | ||
export declare const serviceName = "@droz/reclameaqui"; |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.serviceName = exports.getSdk = exports.SendReclameAquiModerationRequestDocument = exports.RemoveReclameAquiInstanceDocument = exports.UpdateReclameAquiInstanceDocument = exports.CreateReclameAquiInstanceDocument = exports.ListReclameAquiModerationReasonsDocument = exports.ListReclameAquiCompaniesDocument = exports.ListReclameAquiInstancesDocument = exports.GetReclameAquiInstanceDocument = exports.ReclameAquiInstanceFragmentDoc = exports.Typenames = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.getSdk = exports.RequestReclameAquiTicketEvaluationDocument = exports.SendReclameAquiModerationRequestDocument = exports.RemoveReclameAquiInstanceDocument = exports.UpdateReclameAquiInstanceDocument = exports.CreateReclameAquiInstanceDocument = exports.ListReclameAquiModerationReasonsDocument = exports.ListReclameAquiCompaniesDocument = exports.ListReclameAquiInstancesDocument = exports.GetReclameAquiInstanceDocument = exports.ReclameAquiInstanceFragmentDoc = exports.Typenames = exports.AppInstanceStatus = void 0; | ||
var AppInstanceStatus; | ||
@@ -89,2 +89,9 @@ (function (AppInstanceStatus) { | ||
`; | ||
exports.RequestReclameAquiTicketEvaluationDocument = ` | ||
mutation requestReclameAquiTicketEvaluation($input: RequestReclameAquiTicketEvaluationInput!) { | ||
requestReclameAquiTicketEvaluation(input: $input) { | ||
success | ||
} | ||
} | ||
`; | ||
function getSdk(requester) { | ||
@@ -115,2 +122,5 @@ return { | ||
return requester(exports.SendReclameAquiModerationRequestDocument, variables, options); | ||
}, | ||
requestReclameAquiTicketEvaluation(variables, options) { | ||
return requester(exports.RequestReclameAquiTicketEvaluationDocument, variables, options); | ||
} | ||
@@ -117,0 +127,0 @@ }; |
@@ -95,2 +95,3 @@ export type Maybe<T> = T; | ||
export type CreateZendeskInstanceInput = { | ||
appChannelRoleMappings?: InputMaybe<Array<ZendeskAppChannelRoleMappingInput>>; | ||
closedStatuses: Array<Scalars['String']['input']>; | ||
@@ -127,2 +128,3 @@ credentialId?: InputMaybe<Scalars['ID']['input']>; | ||
app?: Maybe<Scalars['DRN']['output']>; | ||
assertCanUserInteract: Scalars['Boolean']['output']; | ||
getHttpEndpoint?: Maybe<Scalars['String']['output']>; | ||
@@ -132,5 +134,10 @@ getTicketSessionAttributes?: Maybe<ZendeskTicketSessionAttributes>; | ||
listZendeskInstances: Array<ZendeskInstance>; | ||
listZendeskRoles: Array<ZendeskRole>; | ||
listZendeskTicketCustomFields: Array<ZendeskCustomField>; | ||
version?: Maybe<Scalars['String']['output']>; | ||
}; | ||
export type QueryAssertCanUserInteractArgs = { | ||
ticketId: Scalars['ID']['input']; | ||
userId: Scalars['Float']['input']; | ||
}; | ||
export type QueryGetTicketSessionAttributesArgs = { | ||
@@ -142,2 +149,6 @@ ticketId: Scalars['ID']['input']; | ||
}; | ||
export type QueryListZendeskRolesArgs = { | ||
credentialId: Scalars['ID']['input']; | ||
domain: Scalars['String']['input']; | ||
}; | ||
export type QueryListZendeskTicketCustomFieldsArgs = { | ||
@@ -163,2 +174,3 @@ credentialId: Scalars['ID']['input']; | ||
export type UpdateZendeskInstanceInput = { | ||
appChannelRoleMappings?: InputMaybe<Array<ZendeskAppChannelRoleMappingInput>>; | ||
closedStatuses?: InputMaybe<Array<Scalars['String']['input']>>; | ||
@@ -178,2 +190,12 @@ credentialId?: InputMaybe<Scalars['ID']['input']>; | ||
}; | ||
export type ZendeskAppChannelRoleMapping = { | ||
appId: Scalars['ID']['output']; | ||
channelId: Scalars['String']['output']; | ||
zendeskRoleId: Scalars['Float']['output']; | ||
}; | ||
export type ZendeskAppChannelRoleMappingInput = { | ||
appId: Scalars['ID']['input']; | ||
channelId: Scalars['String']['input']; | ||
zendeskRoleId: Scalars['Float']['input']; | ||
}; | ||
export type ZendeskCustomField = { | ||
@@ -197,2 +219,3 @@ active: Scalars['Boolean']['output']; | ||
export type ZendeskInstance = { | ||
appChannelRoleMappings?: Maybe<Array<ZendeskAppChannelRoleMapping>>; | ||
closedStatuses: Array<Scalars['String']['output']>; | ||
@@ -208,2 +231,6 @@ createdAt: Scalars['DateTime']['output']; | ||
}; | ||
export type ZendeskRole = { | ||
id: Scalars['Float']['output']; | ||
name: Scalars['String']['output']; | ||
}; | ||
export type ZendeskSessionFieldMapping = { | ||
@@ -210,0 +237,0 @@ customFieldId: Scalars['Float']['output']; |
364906
8101