@droz-js/sdk
Advanced tools
Comparing version 0.5.23 to 0.5.24
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.5.23", | ||
"version": "0.5.24", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -460,11 +460,11 @@ export type Maybe<T> = T; | ||
export declare enum TicketSearchSortBy { | ||
ClosedAtAsc = "CLOSED_AT_ASC", | ||
ClosedAtDesc = "CLOSED_AT_DESC", | ||
CreatedAtAsc = "CREATED_AT_ASC", | ||
CreatedAtDesc = "CREATED_AT_DESC", | ||
Relevance = "RELEVANCE", | ||
StatusAsc = "STATUS_ASC", | ||
StatusDesc = "STATUS_DESC", | ||
UpdatedAtAsc = "UPDATED_AT_ASC", | ||
UpdatedAtDesc = "UPDATED_AT_DESC" | ||
ClosedAtAsc = "closedAt_asc", | ||
ClosedAtDesc = "closedAt_desc", | ||
CreatedAtAsc = "createdAt_asc", | ||
CreatedAtDesc = "createdAt_desc", | ||
Relevance = "relevance", | ||
StatusAsc = "status_asc", | ||
StatusDesc = "status_desc", | ||
UpdatedAtAsc = "updatedAt_asc", | ||
UpdatedAtDesc = "updatedAt_desc" | ||
} | ||
@@ -471,0 +471,0 @@ export type TicketSessionAttributes = { |
@@ -35,11 +35,11 @@ "use strict"; | ||
(function (TicketSearchSortBy) { | ||
TicketSearchSortBy["ClosedAtAsc"] = "CLOSED_AT_ASC"; | ||
TicketSearchSortBy["ClosedAtDesc"] = "CLOSED_AT_DESC"; | ||
TicketSearchSortBy["CreatedAtAsc"] = "CREATED_AT_ASC"; | ||
TicketSearchSortBy["CreatedAtDesc"] = "CREATED_AT_DESC"; | ||
TicketSearchSortBy["Relevance"] = "RELEVANCE"; | ||
TicketSearchSortBy["StatusAsc"] = "STATUS_ASC"; | ||
TicketSearchSortBy["StatusDesc"] = "STATUS_DESC"; | ||
TicketSearchSortBy["UpdatedAtAsc"] = "UPDATED_AT_ASC"; | ||
TicketSearchSortBy["UpdatedAtDesc"] = "UPDATED_AT_DESC"; | ||
TicketSearchSortBy["ClosedAtAsc"] = "closedAt_asc"; | ||
TicketSearchSortBy["ClosedAtDesc"] = "closedAt_desc"; | ||
TicketSearchSortBy["CreatedAtAsc"] = "createdAt_asc"; | ||
TicketSearchSortBy["CreatedAtDesc"] = "createdAt_desc"; | ||
TicketSearchSortBy["Relevance"] = "relevance"; | ||
TicketSearchSortBy["StatusAsc"] = "status_asc"; | ||
TicketSearchSortBy["StatusDesc"] = "status_desc"; | ||
TicketSearchSortBy["UpdatedAtAsc"] = "updatedAt_asc"; | ||
TicketSearchSortBy["UpdatedAtDesc"] = "updatedAt_desc"; | ||
})(TicketSearchSortBy || (exports.TicketSearchSortBy = TicketSearchSortBy = {})); | ||
@@ -46,0 +46,0 @@ var TicketState; |
@@ -102,2 +102,11 @@ export type Maybe<T> = T; | ||
}; | ||
export type CreateHttpInstanceInput = { | ||
body?: InputMaybe<Scalars['JSONObject']['input']>; | ||
credentialsId?: InputMaybe<Scalars['String']['input']>; | ||
headers?: InputMaybe<Scalars['JSONObject']['input']>; | ||
key: Scalars['String']['input']; | ||
method: HttpMethod; | ||
name: Scalars['String']['input']; | ||
url: Scalars['String']['input']; | ||
}; | ||
export type EchoInstance = { | ||
@@ -110,2 +119,20 @@ createdAt: Scalars['DateTime']['output']; | ||
}; | ||
export type HttpInstance = { | ||
body?: Maybe<Scalars['JSONObject']['output']>; | ||
createdAt: Scalars['DateTime']['output']; | ||
headers?: Maybe<Scalars['JSONObject']['output']>; | ||
id: Scalars['ID']['output']; | ||
key: Scalars['String']['output']; | ||
method: HttpMethod; | ||
name: Scalars['String']['output']; | ||
updatedAt: Scalars['DateTime']['output']; | ||
url: Scalars['String']['output']; | ||
}; | ||
export declare enum HttpMethod { | ||
Delete = "DELETE", | ||
Get = "GET", | ||
Patch = "PATCH", | ||
Post = "POST", | ||
Put = "PUT" | ||
} | ||
export type I18nText = { | ||
@@ -121,4 +148,7 @@ lang: Scalars['Locale']['output']; | ||
createEchoInstance?: Maybe<EchoInstance>; | ||
createHttpInstance?: Maybe<HttpInstance>; | ||
removeEchoInstance?: Maybe<EchoInstance>; | ||
removeHttpInstance?: Maybe<HttpInstance>; | ||
updateEchoInstance?: Maybe<EchoInstance>; | ||
updateHttpInstance?: Maybe<HttpInstance>; | ||
version?: Maybe<Scalars['String']['output']>; | ||
@@ -129,8 +159,17 @@ }; | ||
}; | ||
export type MutationCreateHttpInstanceArgs = { | ||
input: CreateHttpInstanceInput; | ||
}; | ||
export type MutationRemoveEchoInstanceArgs = { | ||
id: Scalars['ID']['input']; | ||
}; | ||
export type MutationRemoveHttpInstanceArgs = { | ||
id: Scalars['ID']['input']; | ||
}; | ||
export type MutationUpdateEchoInstanceArgs = { | ||
input: UpdateEchoAppInput; | ||
}; | ||
export type MutationUpdateHttpInstanceArgs = { | ||
input: UpdateHttpInstanceInput; | ||
}; | ||
export type NumberFilterInput = { | ||
@@ -153,2 +192,5 @@ btw?: InputMaybe<Array<Scalars['Float']['input']>>; | ||
getHttpEndpoint?: Maybe<Scalars['String']['output']>; | ||
getHttpInstance?: Maybe<HttpInstance>; | ||
listEchoInstances?: Maybe<Array<Maybe<EchoInstance>>>; | ||
listHttpInstances?: Maybe<Array<Maybe<HttpInstance>>>; | ||
version?: Maybe<Scalars['String']['output']>; | ||
@@ -159,2 +201,5 @@ }; | ||
}; | ||
export type QueryGetHttpInstanceArgs = { | ||
id: Scalars['ID']['input']; | ||
}; | ||
export type SearchResultsFacet = { | ||
@@ -190,3 +235,4 @@ name: Scalars['String']['output']; | ||
GraphqlConnections = "GraphqlConnections", | ||
GraphqlSubscriptions = "GraphqlSubscriptions" | ||
GraphqlSubscriptions = "GraphqlSubscriptions", | ||
Http = "Http" | ||
} | ||
@@ -198,2 +244,12 @@ export type UpdateEchoAppInput = { | ||
}; | ||
export type UpdateHttpInstanceInput = { | ||
body?: InputMaybe<Scalars['JSONObject']['input']>; | ||
credentialsId?: InputMaybe<Scalars['String']['input']>; | ||
headers?: InputMaybe<Scalars['JSONObject']['input']>; | ||
id: Scalars['ID']['input']; | ||
key?: InputMaybe<Scalars['String']['input']>; | ||
method?: InputMaybe<HttpMethod>; | ||
name?: InputMaybe<Scalars['String']['input']>; | ||
url?: InputMaybe<Scalars['String']['input']>; | ||
}; | ||
export type EchoInstanceFragment = (Pick<EchoInstance, 'id' | 'name' | 'createdAt' | 'updatedAt'> & { | ||
@@ -208,2 +264,8 @@ messages: Array<Pick<I18nText, 'lang' | 'value'>>; | ||
}; | ||
export type ListEchoInstancesQueryVariables = Exact<{ | ||
[key: string]: never; | ||
}>; | ||
export type ListEchoInstancesQuery = { | ||
listEchoInstances?: Maybe<Array<Maybe<EchoInstanceFragment>>>; | ||
}; | ||
export type CreateEchoInstanceMutationVariables = Exact<{ | ||
@@ -227,15 +289,59 @@ input: CreateEchoAppInput; | ||
}; | ||
export type HttpInstanceFragment = Pick<HttpInstance, 'id' | 'name' | 'url' | 'key' | 'method' | 'headers' | 'body' | 'createdAt' | 'updatedAt'>; | ||
export type GetHttpInstanceQueryVariables = Exact<{ | ||
id: Scalars['ID']['input']; | ||
}>; | ||
export type GetHttpInstanceQuery = { | ||
getHttpInstance?: Maybe<HttpInstanceFragment>; | ||
}; | ||
export type ListHttpInstancesQueryVariables = Exact<{ | ||
[key: string]: never; | ||
}>; | ||
export type ListHttpInstancesQuery = { | ||
listHttpInstances?: Maybe<Array<Maybe<HttpInstanceFragment>>>; | ||
}; | ||
export type CreateHttpInstanceMutationVariables = Exact<{ | ||
input: CreateHttpInstanceInput; | ||
}>; | ||
export type CreateHttpInstanceMutation = { | ||
createHttpInstance?: Maybe<HttpInstanceFragment>; | ||
}; | ||
export type UpdateHttpInstanceMutationVariables = Exact<{ | ||
input: UpdateHttpInstanceInput; | ||
}>; | ||
export type UpdateHttpInstanceMutation = { | ||
updateHttpInstance?: Maybe<HttpInstanceFragment>; | ||
}; | ||
export type RemoveHttpInstanceMutationVariables = Exact<{ | ||
id: Scalars['ID']['input']; | ||
}>; | ||
export type RemoveHttpInstanceMutation = { | ||
removeHttpInstance?: Maybe<HttpInstanceFragment>; | ||
}; | ||
export declare const EchoInstanceFragmentDoc = "\n fragment echoInstance on EchoInstance {\n id\n name\n messages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const HttpInstanceFragmentDoc = "\n fragment httpInstance on HttpInstance {\n id\n name\n url\n key\n method\n headers\n body\n createdAt\n updatedAt\n}\n "; | ||
export declare const GetEchoInstanceDocument = "\n query getEchoInstance($id: ID!) {\n getEchoInstance(id: $id) {\n ...echoInstance\n }\n}\n \n fragment echoInstance on EchoInstance {\n id\n name\n messages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListEchoInstancesDocument = "\n query listEchoInstances {\n listEchoInstances {\n ...echoInstance\n }\n}\n \n fragment echoInstance on EchoInstance {\n id\n name\n messages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const CreateEchoInstanceDocument = "\n mutation createEchoInstance($input: CreateEchoAppInput!) {\n createEchoInstance(input: $input) {\n ...echoInstance\n }\n}\n \n fragment echoInstance on EchoInstance {\n id\n name\n messages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const UpdateEchoInstanceDocument = "\n mutation updateEchoInstance($input: UpdateEchoAppInput!) {\n updateEchoInstance(input: $input) {\n ...echoInstance\n }\n}\n \n fragment echoInstance on EchoInstance {\n id\n name\n messages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const RemoveEchoInstanceDocument = "\n mutation removeEchoInstance($id: ID!) {\n removeEchoInstance(id: $id) {\n ...echoInstance\n }\n}\n \n fragment echoInstance on EchoInstance {\n id\n name\n messages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const GetHttpInstanceDocument = "\n query getHttpInstance($id: ID!) {\n getHttpInstance(id: $id) {\n ...httpInstance\n }\n}\n \n fragment httpInstance on HttpInstance {\n id\n name\n url\n key\n method\n headers\n body\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListHttpInstancesDocument = "\n query listHttpInstances {\n listHttpInstances {\n ...httpInstance\n }\n}\n \n fragment httpInstance on HttpInstance {\n id\n name\n url\n key\n method\n headers\n body\n createdAt\n updatedAt\n}\n "; | ||
export declare const CreateHttpInstanceDocument = "\n mutation createHttpInstance($input: CreateHttpInstanceInput!) {\n createHttpInstance(input: $input) {\n ...httpInstance\n }\n}\n \n fragment httpInstance on HttpInstance {\n id\n name\n url\n key\n method\n headers\n body\n createdAt\n updatedAt\n}\n "; | ||
export declare const UpdateHttpInstanceDocument = "\n mutation updateHttpInstance($input: UpdateHttpInstanceInput!) {\n updateHttpInstance(input: $input) {\n ...httpInstance\n }\n}\n \n fragment httpInstance on HttpInstance {\n id\n name\n url\n key\n method\n headers\n body\n createdAt\n updatedAt\n}\n "; | ||
export declare const RemoveHttpInstanceDocument = "\n mutation removeHttpInstance($id: ID!) {\n removeHttpInstance(id: $id) {\n ...httpInstance\n }\n}\n \n fragment httpInstance on HttpInstance {\n id\n name\n url\n key\n method\n headers\n body\n createdAt\n updatedAt\n}\n "; | ||
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>; | ||
export declare function getSdk<C>(requester: Requester<C>): { | ||
getEchoInstance(variables: GetEchoInstanceQueryVariables, options?: C): Promise<GetEchoInstanceQuery>; | ||
listEchoInstances(variables?: ListEchoInstancesQueryVariables, options?: C): Promise<ListEchoInstancesQuery>; | ||
createEchoInstance(variables: CreateEchoInstanceMutationVariables, options?: C): Promise<CreateEchoInstanceMutation>; | ||
updateEchoInstance(variables: UpdateEchoInstanceMutationVariables, options?: C): Promise<UpdateEchoInstanceMutation>; | ||
removeEchoInstance(variables: RemoveEchoInstanceMutationVariables, options?: C): Promise<RemoveEchoInstanceMutation>; | ||
getHttpInstance(variables: GetHttpInstanceQueryVariables, options?: C): Promise<GetHttpInstanceQuery>; | ||
listHttpInstances(variables?: ListHttpInstancesQueryVariables, options?: C): Promise<ListHttpInstancesQuery>; | ||
createHttpInstance(variables: CreateHttpInstanceMutationVariables, options?: C): Promise<CreateHttpInstanceMutation>; | ||
updateHttpInstance(variables: UpdateHttpInstanceMutationVariables, options?: C): Promise<UpdateHttpInstanceMutation>; | ||
removeHttpInstance(variables: RemoveHttpInstanceMutationVariables, options?: C): Promise<RemoveHttpInstanceMutation>; | ||
}; | ||
export type Sdk = ReturnType<typeof getSdk>; | ||
export declare const serviceName = "@droz/utilities"; |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.serviceName = exports.getSdk = exports.RemoveEchoInstanceDocument = exports.UpdateEchoInstanceDocument = exports.CreateEchoInstanceDocument = exports.GetEchoInstanceDocument = exports.EchoInstanceFragmentDoc = exports.Typenames = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.getSdk = exports.RemoveHttpInstanceDocument = exports.UpdateHttpInstanceDocument = exports.CreateHttpInstanceDocument = exports.ListHttpInstancesDocument = exports.GetHttpInstanceDocument = exports.RemoveEchoInstanceDocument = exports.UpdateEchoInstanceDocument = exports.CreateEchoInstanceDocument = exports.ListEchoInstancesDocument = exports.GetEchoInstanceDocument = exports.HttpInstanceFragmentDoc = exports.EchoInstanceFragmentDoc = exports.Typenames = exports.HttpMethod = exports.AppInstanceStatus = void 0; | ||
var AppInstanceStatus; | ||
@@ -11,2 +11,10 @@ (function (AppInstanceStatus) { | ||
})(AppInstanceStatus || (exports.AppInstanceStatus = AppInstanceStatus = {})); | ||
var HttpMethod; | ||
(function (HttpMethod) { | ||
HttpMethod["Delete"] = "DELETE"; | ||
HttpMethod["Get"] = "GET"; | ||
HttpMethod["Patch"] = "PATCH"; | ||
HttpMethod["Post"] = "POST"; | ||
HttpMethod["Put"] = "PUT"; | ||
})(HttpMethod || (exports.HttpMethod = HttpMethod = {})); | ||
var Typenames; | ||
@@ -18,2 +26,3 @@ (function (Typenames) { | ||
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions"; | ||
Typenames["Http"] = "Http"; | ||
})(Typenames || (exports.Typenames = Typenames = {})); | ||
@@ -32,2 +41,15 @@ exports.EchoInstanceFragmentDoc = ` | ||
`; | ||
exports.HttpInstanceFragmentDoc = ` | ||
fragment httpInstance on HttpInstance { | ||
id | ||
name | ||
url | ||
key | ||
method | ||
headers | ||
body | ||
createdAt | ||
updatedAt | ||
} | ||
`; | ||
exports.GetEchoInstanceDocument = ` | ||
@@ -40,2 +62,9 @@ query getEchoInstance($id: ID!) { | ||
${exports.EchoInstanceFragmentDoc}`; | ||
exports.ListEchoInstancesDocument = ` | ||
query listEchoInstances { | ||
listEchoInstances { | ||
...echoInstance | ||
} | ||
} | ||
${exports.EchoInstanceFragmentDoc}`; | ||
exports.CreateEchoInstanceDocument = ` | ||
@@ -62,2 +91,37 @@ mutation createEchoInstance($input: CreateEchoAppInput!) { | ||
${exports.EchoInstanceFragmentDoc}`; | ||
exports.GetHttpInstanceDocument = ` | ||
query getHttpInstance($id: ID!) { | ||
getHttpInstance(id: $id) { | ||
...httpInstance | ||
} | ||
} | ||
${exports.HttpInstanceFragmentDoc}`; | ||
exports.ListHttpInstancesDocument = ` | ||
query listHttpInstances { | ||
listHttpInstances { | ||
...httpInstance | ||
} | ||
} | ||
${exports.HttpInstanceFragmentDoc}`; | ||
exports.CreateHttpInstanceDocument = ` | ||
mutation createHttpInstance($input: CreateHttpInstanceInput!) { | ||
createHttpInstance(input: $input) { | ||
...httpInstance | ||
} | ||
} | ||
${exports.HttpInstanceFragmentDoc}`; | ||
exports.UpdateHttpInstanceDocument = ` | ||
mutation updateHttpInstance($input: UpdateHttpInstanceInput!) { | ||
updateHttpInstance(input: $input) { | ||
...httpInstance | ||
} | ||
} | ||
${exports.HttpInstanceFragmentDoc}`; | ||
exports.RemoveHttpInstanceDocument = ` | ||
mutation removeHttpInstance($id: ID!) { | ||
removeHttpInstance(id: $id) { | ||
...httpInstance | ||
} | ||
} | ||
${exports.HttpInstanceFragmentDoc}`; | ||
function getSdk(requester) { | ||
@@ -68,2 +132,5 @@ return { | ||
}, | ||
listEchoInstances(variables, options) { | ||
return requester(exports.ListEchoInstancesDocument, variables, options); | ||
}, | ||
createEchoInstance(variables, options) { | ||
@@ -77,2 +144,17 @@ return requester(exports.CreateEchoInstanceDocument, variables, options); | ||
return requester(exports.RemoveEchoInstanceDocument, variables, options); | ||
}, | ||
getHttpInstance(variables, options) { | ||
return requester(exports.GetHttpInstanceDocument, variables, options); | ||
}, | ||
listHttpInstances(variables, options) { | ||
return requester(exports.ListHttpInstancesDocument, variables, options); | ||
}, | ||
createHttpInstance(variables, options) { | ||
return requester(exports.CreateHttpInstanceDocument, variables, options); | ||
}, | ||
updateHttpInstance(variables, options) { | ||
return requester(exports.UpdateHttpInstanceDocument, variables, options); | ||
}, | ||
removeHttpInstance(variables, options) { | ||
return requester(exports.RemoveHttpInstanceDocument, variables, options); | ||
} | ||
@@ -79,0 +161,0 @@ }; |
440631
9639