@droz-js/sdk
Advanced tools
Comparing version 0.5.9 to 0.5.10
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.5.9", | ||
"version": "0.5.10", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -24,2 +24,5 @@ export * from './sdks/casasbahia'; | ||
}>, options?: unknown): Promise<import("./sdks/casasbahia").RemoveCasasBahiaInstanceMutation>; | ||
applySolution(variables: import("./sdks/casasbahia").Exact<{ | ||
input: import("./sdks/casasbahia").ApplySolutionInput; | ||
}>, options?: unknown): Promise<import("./sdks/casasbahia").ApplySolutionMutation>; | ||
}; |
@@ -94,2 +94,18 @@ export type Maybe<T> = T; | ||
} | ||
export type ApplySolutionInput = { | ||
incidentId: Scalars['Int']['input']; | ||
instanceId: Scalars['ID']['input']; | ||
payload: ApplySolutionPayloadInput; | ||
}; | ||
export type ApplySolutionPayloadFields = { | ||
name: Scalars['String']['input']; | ||
type: Scalars['String']['input']; | ||
value: Scalars['String']['input']; | ||
}; | ||
export type ApplySolutionPayloadInput = { | ||
annotation?: InputMaybe<Scalars['String']['input']>; | ||
attachments?: InputMaybe<Array<Scalars['String']['input']>>; | ||
fields: Array<ApplySolutionPayloadFields>; | ||
solutionId: Scalars['Int']['input']; | ||
}; | ||
export type CasasBahiaInstance = { | ||
@@ -115,2 +131,3 @@ credentialId?: Maybe<Scalars['ID']['output']>; | ||
export type Mutation = { | ||
applySolution?: Maybe<Scalars['Boolean']['output']>; | ||
createCasasBahiaInstance?: Maybe<CasasBahiaInstance>; | ||
@@ -121,2 +138,5 @@ removeCasasBahiaInstance?: Maybe<CasasBahiaInstance>; | ||
}; | ||
export type MutationApplySolutionArgs = { | ||
input: ApplySolutionInput; | ||
}; | ||
export type MutationCreateCasasBahiaInstanceArgs = { | ||
@@ -191,2 +211,6 @@ input: CreateCasasBahiaInstanceInput; | ||
}; | ||
export type ApplySolutionMutationVariables = Exact<{ | ||
input: ApplySolutionInput; | ||
}>; | ||
export type ApplySolutionMutation = Pick<Mutation, 'applySolution'>; | ||
export declare const CasasbahiaInstanceFragmentDoc = "\n fragment casasbahiaInstance on CasasBahiaInstance {\n id\n name\n credentialId\n cronJobId\n}\n "; | ||
@@ -198,2 +222,3 @@ export declare const GetCasasBahiaInstanceDocument = "\n query getCasasBahiaInstance($id: ID!) {\n getCasasBahiaInstance(id: $id) {\n ...casasbahiaInstance\n }\n}\n \n fragment casasbahiaInstance on CasasBahiaInstance {\n id\n name\n credentialId\n cronJobId\n}\n "; | ||
export declare const RemoveCasasBahiaInstanceDocument = "\n mutation removeCasasBahiaInstance($input: RemoveCasasBahiaInstanceInput!) {\n removeCasasBahiaInstance(input: $input) {\n ...casasbahiaInstance\n }\n}\n \n fragment casasbahiaInstance on CasasBahiaInstance {\n id\n name\n credentialId\n cronJobId\n}\n "; | ||
export declare const ApplySolutionDocument = "\n mutation applySolution($input: ApplySolutionInput!) {\n applySolution(input: $input)\n}\n "; | ||
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>; | ||
@@ -206,4 +231,5 @@ export declare function getSdk<C>(requester: Requester<C>): { | ||
removeCasasBahiaInstance(variables: RemoveCasasBahiaInstanceMutationVariables, options?: C): Promise<RemoveCasasBahiaInstanceMutation>; | ||
applySolution(variables: ApplySolutionMutationVariables, options?: C): Promise<ApplySolutionMutation>; | ||
}; | ||
export type Sdk = ReturnType<typeof getSdk>; | ||
export declare const serviceName = "@droz/casasbahia"; |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.serviceName = exports.getSdk = exports.RemoveCasasBahiaInstanceDocument = exports.UpdateCasasBahiaInstanceDocument = exports.CreateCasasBahiaInstanceDocument = exports.ListCasasBahiaInstancesDocument = exports.GetCasasBahiaInstanceDocument = exports.CasasbahiaInstanceFragmentDoc = exports.Typenames = exports.CasasBahiaInstanceType = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.getSdk = exports.ApplySolutionDocument = exports.RemoveCasasBahiaInstanceDocument = exports.UpdateCasasBahiaInstanceDocument = exports.CreateCasasBahiaInstanceDocument = exports.ListCasasBahiaInstancesDocument = exports.GetCasasBahiaInstanceDocument = exports.CasasbahiaInstanceFragmentDoc = exports.Typenames = exports.CasasBahiaInstanceType = exports.AppInstanceStatus = void 0; | ||
var AppInstanceStatus; | ||
@@ -67,2 +67,7 @@ (function (AppInstanceStatus) { | ||
${exports.CasasbahiaInstanceFragmentDoc}`; | ||
exports.ApplySolutionDocument = ` | ||
mutation applySolution($input: ApplySolutionInput!) { | ||
applySolution(input: $input) | ||
} | ||
`; | ||
function getSdk(requester) { | ||
@@ -84,2 +89,5 @@ return { | ||
return requester(exports.RemoveCasasBahiaInstanceDocument, variables, options); | ||
}, | ||
applySolution(variables, options) { | ||
return requester(exports.ApplySolutionDocument, variables, options); | ||
} | ||
@@ -86,0 +94,0 @@ }; |
392229
8530