@droz-js/sdk 0.2.16 → 0.3.0
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 +3 -2
- package/src/client/config.js +2 -2
- package/src/client/helpers.d.ts +10 -1
- package/src/client/helpers.js +22 -7
- package/src/client/ws.js +3 -2
- package/src/droznexo.d.ts +0 -15
- package/src/index.d.ts +1 -0
- package/src/index.js +4 -1
- package/src/nucleus.d.ts +12 -0
- package/src/sdks/chatwidget.d.ts +9 -7
- package/src/sdks/chatwidget.js +2 -0
- package/src/sdks/drozbot.d.ts +10 -8
- package/src/sdks/drozbot.js +2 -0
- package/src/sdks/drozchat.d.ts +8 -7
- package/src/sdks/drozchat.js +2 -1
- package/src/sdks/droznexo.d.ts +0 -110
- package/src/sdks/droznexo.js +1 -87
- package/src/sdks/mercadolivre.d.ts +9 -7
- package/src/sdks/mercadolivre.js +2 -0
- package/src/sdks/nucleus.d.ts +94 -7
- package/src/sdks/nucleus.js +56 -2
- package/src/sdks/reclameaqui.d.ts +9 -7
- package/src/sdks/reclameaqui.js +2 -0
- package/src/sdks/zendesk.d.ts +10 -8
- package/src/sdks/zendesk.js +3 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@droz-js/sdk",
|
|
3
3
|
"description": "Droz SDK",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./src/index.js",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"clean": "npx rimraf src/*.js src/*.d.ts src/**/*.js src/**/*.d.ts",
|
|
14
14
|
"prebuild": "npm run clean",
|
|
15
15
|
"build": "tsc --project tsconfig-build.json",
|
|
16
|
-
"prepublishOnly": "npm run build"
|
|
16
|
+
"prepublishOnly": "npm run build",
|
|
17
|
+
"postpublish": "npm run clean"
|
|
17
18
|
},
|
|
18
19
|
"dependencies": {
|
|
19
20
|
"graphql": "^16.8.1",
|
package/src/client/config.js
CHANGED
|
@@ -22,7 +22,7 @@ class TenantConfig {
|
|
|
22
22
|
}
|
|
23
23
|
return instance.endpoint;
|
|
24
24
|
}
|
|
25
|
-
throw new
|
|
25
|
+
throw new helpers_1.SdkConfigurationError(`Tenant "${this.tenant}" endpoint for service "${serviceId}" and type "${type}" not found`);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
@@ -73,7 +73,7 @@ class DrozSdk {
|
|
|
73
73
|
const instances = json.instances ?? [];
|
|
74
74
|
// validate it's a valid tenant
|
|
75
75
|
if (instances.length === 0) {
|
|
76
|
-
throw new
|
|
76
|
+
throw new helpers_1.SdkConfigurationError(`Invalid tenant '${tenant}', no instances found on service discovery`);
|
|
77
77
|
}
|
|
78
78
|
// create tenant config and cache it
|
|
79
79
|
return new TenantConfig(tenant, instances);
|
package/src/client/helpers.d.ts
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
import type { ExecutionResult } from 'graphql';
|
|
1
|
+
import type { ExecutionResult, GraphQLError } from 'graphql';
|
|
2
2
|
export declare const serviceDiscoveryEndpoint = "https://root.droz.services";
|
|
3
3
|
export type AuthorizationProvider = string | (() => Promise<string>) | (() => string);
|
|
4
4
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
5
5
|
export type GetSdk<Sdk> = (requester: Requester<Sdk>) => Sdk;
|
|
6
|
+
export declare class SdkError extends Error {
|
|
7
|
+
statusCode?: number;
|
|
8
|
+
errorCode?: string;
|
|
9
|
+
errors?: ReadonlyArray<GraphQLError>;
|
|
10
|
+
constructor(errors: ReadonlyArray<GraphQLError>);
|
|
11
|
+
}
|
|
12
|
+
export declare class SdkConfigurationError extends Error {
|
|
13
|
+
constructor(message: string);
|
|
14
|
+
}
|
|
6
15
|
export declare function toAuthorizationProvider(type?: string, ...values: string[]): AuthorizationProvider;
|
|
7
16
|
export declare function resolveAuthorization(provider?: AuthorizationProvider): Promise<string>;
|
|
8
17
|
export declare function mapGraphqlResponse<T>(response: ExecutionResult<T> | Error): T;
|
package/src/client/helpers.js
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mapAsyncIterableGraphqlResponse = exports.mapGraphqlResponse = exports.resolveAuthorization = exports.toAuthorizationProvider = exports.serviceDiscoveryEndpoint = void 0;
|
|
3
|
+
exports.mapAsyncIterableGraphqlResponse = exports.mapGraphqlResponse = exports.resolveAuthorization = exports.toAuthorizationProvider = exports.SdkConfigurationError = exports.SdkError = exports.serviceDiscoveryEndpoint = void 0;
|
|
4
4
|
exports.serviceDiscoveryEndpoint = 'https://root.droz.services';
|
|
5
|
+
class SdkError extends Error {
|
|
6
|
+
statusCode;
|
|
7
|
+
errorCode;
|
|
8
|
+
errors;
|
|
9
|
+
constructor(errors) {
|
|
10
|
+
const { message, extensions } = errors?.[0] ?? {};
|
|
11
|
+
super(message ?? 'Unknown Error');
|
|
12
|
+
this.errors = errors;
|
|
13
|
+
this.statusCode = extensions?.statusCode;
|
|
14
|
+
this.errorCode = extensions?.errorCode;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.SdkError = SdkError;
|
|
18
|
+
class SdkConfigurationError extends Error {
|
|
19
|
+
constructor(message) {
|
|
20
|
+
super(message);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.SdkConfigurationError = SdkConfigurationError;
|
|
5
24
|
function toAuthorizationProvider(type, ...values) {
|
|
6
25
|
// this means it is unsetting the authorization token
|
|
7
26
|
if (!type)
|
|
@@ -15,11 +34,7 @@ function toAuthorizationProvider(type, ...values) {
|
|
|
15
34
|
if (type == 'Bearer') {
|
|
16
35
|
return `Bearer ${values[0]}`;
|
|
17
36
|
}
|
|
18
|
-
|
|
19
|
-
if (type == 'Mock') {
|
|
20
|
-
return `Mock ${values[0]}`;
|
|
21
|
-
}
|
|
22
|
-
throw new Error(`Invalid authentication type '${type}'`);
|
|
37
|
+
throw new SdkConfigurationError(`Invalid authentication type '${type}'`);
|
|
23
38
|
}
|
|
24
39
|
exports.toAuthorizationProvider = toAuthorizationProvider;
|
|
25
40
|
async function resolveAuthorization(provider) {
|
|
@@ -35,7 +50,7 @@ function mapGraphqlResponse(response) {
|
|
|
35
50
|
if (response && 'stack' in response && 'message' in response)
|
|
36
51
|
throw response;
|
|
37
52
|
if ('errors' in response)
|
|
38
|
-
throw new
|
|
53
|
+
throw new SdkError(response.errors);
|
|
39
54
|
if ('data' in response)
|
|
40
55
|
return response.data;
|
|
41
56
|
}
|
package/src/client/ws.js
CHANGED
|
@@ -32,8 +32,9 @@ class WsRequester {
|
|
|
32
32
|
return this.requester.bind(this);
|
|
33
33
|
}
|
|
34
34
|
requester(query, variables) {
|
|
35
|
-
if (!this.client)
|
|
36
|
-
throw new
|
|
35
|
+
if (!this.client) {
|
|
36
|
+
throw new helpers_1.SdkConfigurationError('ws client not connected, you must call await client.connect(); first');
|
|
37
|
+
}
|
|
37
38
|
const isSubscription = query.trim().startsWith('subscription ');
|
|
38
39
|
const operation = { query, variables };
|
|
39
40
|
const iterable = this.client.iterate(operation);
|
package/src/droznexo.d.ts
CHANGED
|
@@ -5,21 +5,6 @@ export declare const DrozNexo: new (options?: import("./client/http").HttpClient
|
|
|
5
5
|
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
|
|
6
6
|
withCustomHeaders(headers: () => Record<string, string>): any;
|
|
7
7
|
} & {
|
|
8
|
-
createDrozNexoAgent(variables: import("./sdks/droznexo").Exact<{
|
|
9
|
-
input: import("./sdks/droznexo").CreateDrozNexoAgentInput;
|
|
10
|
-
}>, options?: unknown): Promise<import("./sdks/droznexo").CreateDrozNexoAgentMutation>;
|
|
11
|
-
listDrozNexoAgents(variables?: import("./sdks/droznexo").Exact<{
|
|
12
|
-
next?: object;
|
|
13
|
-
}>, options?: unknown): Promise<import("./sdks/droznexo").ListDrozNexoAgentsQuery>;
|
|
14
|
-
getDrozNexoAgent(variables: import("./sdks/droznexo").Exact<{
|
|
15
|
-
id: string;
|
|
16
|
-
}>, options?: unknown): Promise<import("./sdks/droznexo").GetDrozNexoAgentQuery>;
|
|
17
|
-
createDrozNexoAgentGroup(variables: import("./sdks/droznexo").Exact<{
|
|
18
|
-
input: import("./sdks/droznexo").CreateDrozNexoAgentGroupInput;
|
|
19
|
-
}>, options?: unknown): Promise<import("./sdks/droznexo").CreateDrozNexoAgentGroupMutation>;
|
|
20
|
-
listDrozNexoAgentGroups(variables?: import("./sdks/droznexo").Exact<{
|
|
21
|
-
next?: object;
|
|
22
|
-
}>, options?: unknown): Promise<import("./sdks/droznexo").ListDrozNexoAgentGroupsQuery>;
|
|
23
8
|
listDrozNexoSuggestions(variables?: import("./sdks/droznexo").Exact<{
|
|
24
9
|
[key: string]: never;
|
|
25
10
|
}>, options?: unknown): Promise<import("./sdks/droznexo").ListDrozNexoSuggestionsQuery>;
|
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DrozSdk = void 0;
|
|
3
|
+
exports.SdkConfigurationError = exports.SdkError = exports.DrozSdk = void 0;
|
|
4
4
|
var config_1 = require("./client/config");
|
|
5
5
|
Object.defineProperty(exports, "DrozSdk", { enumerable: true, get: function () { return config_1.DrozSdk; } });
|
|
6
|
+
var helpers_1 = require("./client/helpers");
|
|
7
|
+
Object.defineProperty(exports, "SdkError", { enumerable: true, get: function () { return helpers_1.SdkError; } });
|
|
8
|
+
Object.defineProperty(exports, "SdkConfigurationError", { enumerable: true, get: function () { return helpers_1.SdkConfigurationError; } });
|
package/src/nucleus.d.ts
CHANGED
|
@@ -5,12 +5,18 @@ export declare const Nucleus: new (options?: import("./client/http").HttpClientO
|
|
|
5
5
|
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
|
|
6
6
|
withCustomHeaders(headers: () => Record<string, string>): any;
|
|
7
7
|
} & {
|
|
8
|
+
getMe(variables?: import("./sdks/nucleus").Exact<{
|
|
9
|
+
[key: string]: never;
|
|
10
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").GetMeQuery>;
|
|
8
11
|
getAgent(variables: import("./sdks/nucleus").Exact<{
|
|
9
12
|
id: string;
|
|
10
13
|
}>, options?: unknown): Promise<import("./sdks/nucleus").GetAgentQuery>;
|
|
11
14
|
listAgents(variables?: import("./sdks/nucleus").Exact<{
|
|
12
15
|
next?: object;
|
|
13
16
|
}>, options?: unknown): Promise<import("./sdks/nucleus").ListAgentsQuery>;
|
|
17
|
+
listApiKeyAgents(variables?: import("./sdks/nucleus").Exact<{
|
|
18
|
+
next?: object;
|
|
19
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").ListApiKeyAgentsQuery>;
|
|
14
20
|
createAgent(variables: import("./sdks/nucleus").Exact<{
|
|
15
21
|
input: import("./sdks/nucleus").CreateAgentInput;
|
|
16
22
|
}>, options?: unknown): Promise<import("./sdks/nucleus").CreateAgentMutation>;
|
|
@@ -20,6 +26,12 @@ export declare const Nucleus: new (options?: import("./client/http").HttpClientO
|
|
|
20
26
|
removeAgent(variables: import("./sdks/nucleus").Exact<{
|
|
21
27
|
input: import("./sdks/nucleus").RemoveAgentInput;
|
|
22
28
|
}>, options?: unknown): Promise<import("./sdks/nucleus").RemoveAgentMutation>;
|
|
29
|
+
addRoleToAgent(variables: import("./sdks/nucleus").Exact<{
|
|
30
|
+
input: import("./sdks/nucleus").AddRoleToAgentInput;
|
|
31
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").AddRoleToAgentMutation>;
|
|
32
|
+
removeRoleFromAgent(variables: import("./sdks/nucleus").Exact<{
|
|
33
|
+
input: import("./sdks/nucleus").RemoveRoleFromAgentInput;
|
|
34
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").RemoveRoleFromAgentMutation>;
|
|
23
35
|
getApp(variables: import("./sdks/nucleus").Exact<{
|
|
24
36
|
appId: string;
|
|
25
37
|
withInstances?: boolean;
|
package/src/sdks/chatwidget.d.ts
CHANGED
|
@@ -92,8 +92,10 @@ export declare enum AppInstanceStatus {
|
|
|
92
92
|
Inactive = "Inactive"
|
|
93
93
|
}
|
|
94
94
|
export type ChatWidget = {
|
|
95
|
+
createdAt: Scalars['DateTime']['output'];
|
|
95
96
|
id: Scalars['ID']['output'];
|
|
96
97
|
name: Scalars['String']['output'];
|
|
98
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
97
99
|
};
|
|
98
100
|
export type ChatWidgetMessage = {
|
|
99
101
|
id: Scalars['ID']['output'];
|
|
@@ -184,7 +186,7 @@ export type UpdateChatWidgetInput = {
|
|
|
184
186
|
id: Scalars['ID']['input'];
|
|
185
187
|
name: Scalars['String']['input'];
|
|
186
188
|
};
|
|
187
|
-
export type ChatWidgetFragment = Pick<ChatWidget, 'id' | 'name'>;
|
|
189
|
+
export type ChatWidgetFragment = Pick<ChatWidget, 'id' | 'name' | 'createdAt' | 'updatedAt'>;
|
|
188
190
|
export type ChatWidgetMessageFragment = (Pick<ChatWidgetMessage, 'id'> & {
|
|
189
191
|
payload: Array<Pick<ChatWidgetMessagePayload, 'contentType' | 'content' | 'filename'>>;
|
|
190
192
|
});
|
|
@@ -234,13 +236,13 @@ export type OnChatWidgetMessageSubscriptionVariables = Exact<{
|
|
|
234
236
|
export type OnChatWidgetMessageSubscription = {
|
|
235
237
|
onChatWidgetMessage: ChatWidgetMessageFragment;
|
|
236
238
|
};
|
|
237
|
-
export declare const ChatWidgetFragmentDoc = "\n fragment chatWidget on ChatWidget {\n id\n name\n}\n ";
|
|
239
|
+
export declare const ChatWidgetFragmentDoc = "\n fragment chatWidget on ChatWidget {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
238
240
|
export declare const ChatWidgetMessageFragmentDoc = "\n fragment chatWidgetMessage on ChatWidgetMessage {\n id\n payload {\n contentType\n content\n filename\n }\n}\n ";
|
|
239
|
-
export declare const GetChatWidgetDocument = "\n query getChatWidget($id: ID!) {\n getChatWidget(id: $id) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n}\n ";
|
|
240
|
-
export declare const ListChatWidgetsDocument = "\n query listChatWidgets {\n listChatWidgets {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n}\n ";
|
|
241
|
-
export declare const CreateChatWidgetDocument = "\n mutation createChatWidget($input: CreateChatWidgetInput!) {\n createChatWidget(input: $input) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n}\n ";
|
|
242
|
-
export declare const UpdateChatWidgetDocument = "\n mutation updateChatWidget($input: UpdateChatWidgetInput!) {\n updateChatWidget(input: $input) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n}\n ";
|
|
243
|
-
export declare const RemoveChatWidgetDocument = "\n mutation removeChatWidget($input: RemoveChatWidgetInput!) {\n removeChatWidget(input: $input) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n}\n ";
|
|
241
|
+
export declare const GetChatWidgetDocument = "\n query getChatWidget($id: ID!) {\n getChatWidget(id: $id) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
242
|
+
export declare const ListChatWidgetsDocument = "\n query listChatWidgets {\n listChatWidgets {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
243
|
+
export declare const CreateChatWidgetDocument = "\n mutation createChatWidget($input: CreateChatWidgetInput!) {\n createChatWidget(input: $input) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
244
|
+
export declare const UpdateChatWidgetDocument = "\n mutation updateChatWidget($input: UpdateChatWidgetInput!) {\n updateChatWidget(input: $input) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
245
|
+
export declare const RemoveChatWidgetDocument = "\n mutation removeChatWidget($input: RemoveChatWidgetInput!) {\n removeChatWidget(input: $input) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
244
246
|
export declare const StartChatWidgetSessionDocument = "\n mutation startChatWidgetSession($input: StartChatWidgetSessionInput!) {\n startChatWidgetSession(input: $input) {\n id\n }\n}\n ";
|
|
245
247
|
export declare const SendMessageToChatWidgetDocument = "\n mutation sendMessageToChatWidget($input: SendMessageToChatWidgetInput!) {\n sendMessageToChatWidget(input: $input)\n}\n ";
|
|
246
248
|
export declare const OnChatWidgetMessageDocument = "\n subscription onChatWidgetMessage($sessionId: ID!) {\n onChatWidgetMessage(sessionId: $sessionId) {\n ...chatWidgetMessage\n }\n}\n \n fragment chatWidgetMessage on ChatWidgetMessage {\n id\n payload {\n contentType\n content\n filename\n }\n}\n ";
|
package/src/sdks/chatwidget.js
CHANGED
package/src/sdks/drozbot.d.ts
CHANGED
|
@@ -102,7 +102,7 @@ export type CreateDrozBotTicketCommentInput = {
|
|
|
102
102
|
};
|
|
103
103
|
export type CreateDrozBotTicketInput = {
|
|
104
104
|
comment?: InputMaybe<Scalars['String']['input']>;
|
|
105
|
-
instanceId
|
|
105
|
+
instanceId?: InputMaybe<Scalars['ID']['input']>;
|
|
106
106
|
profile?: InputMaybe<CreateDrozBotTicketProfileInput>;
|
|
107
107
|
summary?: InputMaybe<Scalars['String']['input']>;
|
|
108
108
|
tags?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
@@ -114,10 +114,12 @@ export type CreateDrozBotTicketProfileInput = {
|
|
|
114
114
|
phone?: InputMaybe<Scalars['PhoneNumber']['input']>;
|
|
115
115
|
};
|
|
116
116
|
export type DrozBotInstance = {
|
|
117
|
+
createdAt: Scalars['DateTime']['output'];
|
|
117
118
|
credentialsId: Scalars['ID']['output'];
|
|
118
119
|
id: Scalars['ID']['output'];
|
|
119
120
|
isTest?: Maybe<Scalars['Boolean']['output']>;
|
|
120
121
|
name: Scalars['String']['output'];
|
|
122
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
121
123
|
};
|
|
122
124
|
export type DrozBotTicket = {
|
|
123
125
|
id: Scalars['ID']['output'];
|
|
@@ -180,7 +182,7 @@ export type UpdateDrozBotInstanceInput = {
|
|
|
180
182
|
isTest?: InputMaybe<Scalars['Boolean']['input']>;
|
|
181
183
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
182
184
|
};
|
|
183
|
-
export type DrozbotFragment = Pick<DrozBotInstance, 'id' | 'name' | 'credentialsId' | 'isTest'>;
|
|
185
|
+
export type DrozbotFragment = Pick<DrozBotInstance, 'id' | 'name' | 'credentialsId' | 'isTest' | 'createdAt' | 'updatedAt'>;
|
|
184
186
|
export type GetDrozBotInstanceQueryVariables = Exact<{
|
|
185
187
|
id: Scalars['ID']['input'];
|
|
186
188
|
}>;
|
|
@@ -223,12 +225,12 @@ export type CreateDrozBotTicketCommentMutationVariables = Exact<{
|
|
|
223
225
|
export type CreateDrozBotTicketCommentMutation = {
|
|
224
226
|
createDrozBotTicketComment: Pick<DrozBotTicketComment, 'id' | 'ticketId'>;
|
|
225
227
|
};
|
|
226
|
-
export declare const DrozbotFragmentDoc = "\n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n}\n ";
|
|
227
|
-
export declare const GetDrozBotInstanceDocument = "\n query getDrozBotInstance($id: ID!) {\n getDrozBotInstance(id: $id) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n}\n ";
|
|
228
|
-
export declare const ListDrozBotInstancesDocument = "\n query listDrozBotInstances {\n listDrozBotInstances {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n}\n ";
|
|
229
|
-
export declare const CreateDrozBotInstanceDocument = "\n mutation createDrozBotInstance($input: CreateDrozBotInstanceInput!) {\n createDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n}\n ";
|
|
230
|
-
export declare const UpdateDrozBotInstanceDocument = "\n mutation updateDrozBotInstance($input: UpdateDrozBotInstanceInput!) {\n updateDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n}\n ";
|
|
231
|
-
export declare const RemoveDrozBotInstanceDocument = "\n mutation removeDrozBotInstance($input: RemoveDrozBotInstanceInput!) {\n removeDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n}\n ";
|
|
228
|
+
export declare const DrozbotFragmentDoc = "\n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n createdAt\n updatedAt\n}\n ";
|
|
229
|
+
export declare const GetDrozBotInstanceDocument = "\n query getDrozBotInstance($id: ID!) {\n getDrozBotInstance(id: $id) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n createdAt\n updatedAt\n}\n ";
|
|
230
|
+
export declare const ListDrozBotInstancesDocument = "\n query listDrozBotInstances {\n listDrozBotInstances {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n createdAt\n updatedAt\n}\n ";
|
|
231
|
+
export declare const CreateDrozBotInstanceDocument = "\n mutation createDrozBotInstance($input: CreateDrozBotInstanceInput!) {\n createDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n createdAt\n updatedAt\n}\n ";
|
|
232
|
+
export declare const UpdateDrozBotInstanceDocument = "\n mutation updateDrozBotInstance($input: UpdateDrozBotInstanceInput!) {\n updateDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n createdAt\n updatedAt\n}\n ";
|
|
233
|
+
export declare const RemoveDrozBotInstanceDocument = "\n mutation removeDrozBotInstance($input: RemoveDrozBotInstanceInput!) {\n removeDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n createdAt\n updatedAt\n}\n ";
|
|
232
234
|
export declare const CreateDrozBotTicketDocument = "\n mutation createDrozBotTicket($input: CreateDrozBotTicketInput!) {\n createDrozBotTicket(input: $input) {\n id\n instanceId\n }\n}\n ";
|
|
233
235
|
export declare const CreateDrozBotTicketCommentDocument = "\n mutation createDrozBotTicketComment($input: CreateDrozBotTicketCommentInput!) {\n createDrozBotTicketComment(input: $input) {\n id\n ticketId\n }\n}\n ";
|
|
234
236
|
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
package/src/sdks/drozbot.js
CHANGED
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -106,7 +106,7 @@ export type CreateTicketInput = {
|
|
|
106
106
|
subject: Scalars['String']['input'];
|
|
107
107
|
};
|
|
108
108
|
export type CreateTicketMessageInput = {
|
|
109
|
-
|
|
109
|
+
content: Scalars['String']['input'];
|
|
110
110
|
contentType: Scalars['String']['input'];
|
|
111
111
|
ticketId: Scalars['ID']['input'];
|
|
112
112
|
type: TicketMessageType;
|
|
@@ -241,7 +241,7 @@ export type TicketChannel = {
|
|
|
241
241
|
name?: Maybe<Scalars['String']['output']>;
|
|
242
242
|
};
|
|
243
243
|
export type TicketMessage = {
|
|
244
|
-
|
|
244
|
+
content: Scalars['String']['output'];
|
|
245
245
|
contentType: Scalars['String']['output'];
|
|
246
246
|
createdAt: Scalars['DateTime']['output'];
|
|
247
247
|
id: Scalars['ID']['output'];
|
|
@@ -256,6 +256,7 @@ export type TicketMessageSubscription = {
|
|
|
256
256
|
};
|
|
257
257
|
export declare enum TicketMessageType {
|
|
258
258
|
Agent = "AGENT",
|
|
259
|
+
Marketplace = "MARKETPLACE",
|
|
259
260
|
System = "SYSTEM",
|
|
260
261
|
User = "USER"
|
|
261
262
|
}
|
|
@@ -308,7 +309,7 @@ export type TicketFragment = (Pick<Ticket, 'id' | 'state' | 'status' | 'priority
|
|
|
308
309
|
customer: CustomerFragment;
|
|
309
310
|
channel?: Maybe<DrozChatChannelFragment>;
|
|
310
311
|
});
|
|
311
|
-
export type TicketMessageFragment = Pick<TicketMessage, 'id' | 'ticketId' | 'sentBy' | 'type' | 'contentType' | '
|
|
312
|
+
export type TicketMessageFragment = Pick<TicketMessage, 'id' | 'ticketId' | 'sentBy' | 'type' | 'contentType' | 'content' | 'createdAt' | 'updatedAt'>;
|
|
312
313
|
export type GetTicketQueryVariables = Exact<{
|
|
313
314
|
id: Scalars['ID']['input'];
|
|
314
315
|
}>;
|
|
@@ -439,16 +440,16 @@ export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on
|
|
|
439
440
|
export declare const CustomerFragmentDoc = "\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n ";
|
|
440
441
|
export declare const DrozChatChannelFragmentDoc = "\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
441
442
|
export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
442
|
-
export declare const TicketMessageFragmentDoc = "\n fragment ticketMessage on TicketMessage {\n id\n ticketId\n sentBy\n type\n contentType\n
|
|
443
|
+
export declare const TicketMessageFragmentDoc = "\n fragment ticketMessage on TicketMessage {\n id\n ticketId\n sentBy\n type\n contentType\n content\n createdAt\n updatedAt\n}\n ";
|
|
443
444
|
export declare const GetTicketDocument = "\n query getTicket($id: ID!) {\n getTicket(id: $id) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
444
445
|
export declare const ListTicketsDocument = "\n query listTickets($state: TicketState!, $assigneeId: ID, $next: Base64) {\n listTickets(state: $state, assigneeId: $assigneeId, next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
445
446
|
export declare const ListTicketsInQueueDocument = "\n query listTicketsInQueue($next: Base64) {\n listTicketsInQueue(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
446
447
|
export declare const ListTicketsInProgressMineDocument = "\n query listTicketsInProgressMine($next: Base64) {\n listTicketsInProgressMine(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
447
448
|
export declare const ListTicketsClosedDocument = "\n query listTicketsClosed($next: Base64) {\n listTicketsClosed(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
448
|
-
export declare const ListTicketMessagesDocument = "\n query listTicketMessages($ticketId: ID!, $next: Base64) {\n listTicketMessages(ticketId: $ticketId, next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...ticketMessage\n }\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n sentBy\n type\n contentType\n
|
|
449
|
+
export declare const ListTicketMessagesDocument = "\n query listTicketMessages($ticketId: ID!, $next: Base64) {\n listTicketMessages(ticketId: $ticketId, next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...ticketMessage\n }\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n sentBy\n type\n contentType\n content\n createdAt\n updatedAt\n}\n ";
|
|
449
450
|
export declare const CreateTicketDocument = "\n mutation createTicket($input: CreateTicketInput!) {\n createTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
450
451
|
export declare const MarkTicketMessagesAsReadDocument = "\n mutation markTicketMessagesAsRead($input: MarkTicketMessagesAsReadInput!) {\n markTicketMessagesAsRead(input: $input)\n}\n ";
|
|
451
|
-
export declare const CreateTicketMessageDocument = "\n mutation createTicketMessage($input: CreateTicketMessageInput!) {\n createTicketMessage(input: $input) {\n ...ticketMessage\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n sentBy\n type\n contentType\n
|
|
452
|
+
export declare const CreateTicketMessageDocument = "\n mutation createTicketMessage($input: CreateTicketMessageInput!) {\n createTicketMessage(input: $input) {\n ...ticketMessage\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n sentBy\n type\n contentType\n content\n createdAt\n updatedAt\n}\n ";
|
|
452
453
|
export declare const AssignTicketDocument = "\n mutation assignTicket($input: AssignTicketInput!) {\n assignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
453
454
|
export declare const AssignTicketMyselfDocument = "\n mutation assignTicketMyself($input: AssignTicketMyselfInput!) {\n assignTicketMyself(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
454
455
|
export declare const UnassignTicketDocument = "\n mutation unassignTicket($input: UnassignTicketInput!) {\n unassignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
@@ -456,7 +457,7 @@ export declare const CloseTicketDocument = "\n mutation closeTicket($input: C
|
|
|
456
457
|
export declare const OnTicketInQueueDocument = "\n subscription onTicketInQueue {\n onTicketInQueue {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
457
458
|
export declare const OnTicketInProgressMineDocument = "\n subscription onTicketInProgressMine {\n onTicketInProgressMine {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
458
459
|
export declare const OnTicketClosedDocument = "\n subscription onTicketClosed {\n onTicketClosed {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
459
|
-
export declare const OnTicketMessageDocument = "\n subscription onTicketMessage($ticketId: ID!) {\n onTicketMessage(ticketId: $ticketId) {\n message {\n ...ticketMessage\n }\n action\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n sentBy\n type\n contentType\n
|
|
460
|
+
export declare const OnTicketMessageDocument = "\n subscription onTicketMessage($ticketId: ID!) {\n onTicketMessage(ticketId: $ticketId) {\n message {\n ...ticketMessage\n }\n action\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n sentBy\n type\n contentType\n content\n createdAt\n updatedAt\n}\n ";
|
|
460
461
|
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
461
462
|
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
462
463
|
getTicket(variables: GetTicketQueryVariables, options?: C): Promise<GetTicketQuery>;
|
package/src/sdks/drozchat.js
CHANGED
|
@@ -17,6 +17,7 @@ var SubscriptionAction;
|
|
|
17
17
|
var TicketMessageType;
|
|
18
18
|
(function (TicketMessageType) {
|
|
19
19
|
TicketMessageType["Agent"] = "AGENT";
|
|
20
|
+
TicketMessageType["Marketplace"] = "MARKETPLACE";
|
|
20
21
|
TicketMessageType["System"] = "SYSTEM";
|
|
21
22
|
TicketMessageType["User"] = "USER";
|
|
22
23
|
})(TicketMessageType || (exports.TicketMessageType = TicketMessageType = {}));
|
|
@@ -106,7 +107,7 @@ exports.TicketMessageFragmentDoc = `
|
|
|
106
107
|
sentBy
|
|
107
108
|
type
|
|
108
109
|
contentType
|
|
109
|
-
|
|
110
|
+
content
|
|
110
111
|
createdAt
|
|
111
112
|
updatedAt
|
|
112
113
|
}
|
package/src/sdks/droznexo.d.ts
CHANGED
|
@@ -91,44 +91,10 @@ export declare enum AppInstanceStatus {
|
|
|
91
91
|
Failing = "Failing",
|
|
92
92
|
Inactive = "Inactive"
|
|
93
93
|
}
|
|
94
|
-
export type CreateDrozNexoAgentGroupInput = {
|
|
95
|
-
name: Scalars['ID']['input'];
|
|
96
|
-
};
|
|
97
|
-
export type CreateDrozNexoAgentInput = {
|
|
98
|
-
email: Scalars['EmailAddress']['input'];
|
|
99
|
-
groupIds: Scalars['Set']['input'];
|
|
100
|
-
name: Scalars['String']['input'];
|
|
101
|
-
};
|
|
102
94
|
export type CreateDrozNexoConnectionInput = {
|
|
103
95
|
destinationDrn: Scalars['DRN']['input'];
|
|
104
96
|
triggerDrn: Scalars['DRN']['input'];
|
|
105
97
|
};
|
|
106
|
-
export type DrozNexoAgent = {
|
|
107
|
-
createdAt: Scalars['DateTime']['output'];
|
|
108
|
-
email: Scalars['EmailAddress']['output'];
|
|
109
|
-
extension?: Maybe<DrozNexoAgentExtension>;
|
|
110
|
-
id: Scalars['ID']['output'];
|
|
111
|
-
name: Scalars['String']['output'];
|
|
112
|
-
updatedAt: Scalars['DateTime']['output'];
|
|
113
|
-
};
|
|
114
|
-
export type DrozNexoAgentExtension = {
|
|
115
|
-
groupIds?: Maybe<Scalars['Set']['output']>;
|
|
116
|
-
groups?: Maybe<Array<DrozNexoAgentGroup>>;
|
|
117
|
-
};
|
|
118
|
-
export type DrozNexoAgentGroup = {
|
|
119
|
-
createdAt: Scalars['DateTime']['output'];
|
|
120
|
-
id: Scalars['ID']['output'];
|
|
121
|
-
name: Scalars['String']['output'];
|
|
122
|
-
updatedAt: Scalars['DateTime']['output'];
|
|
123
|
-
};
|
|
124
|
-
export type DrozNexoAgentGroupsConnection = {
|
|
125
|
-
nodes: Array<DrozNexoAgentGroup>;
|
|
126
|
-
pageInfo: PageInfo;
|
|
127
|
-
};
|
|
128
|
-
export type DrozNexoAgentsConnection = {
|
|
129
|
-
nodes: Array<DrozNexoAgent>;
|
|
130
|
-
pageInfo: PageInfo;
|
|
131
|
-
};
|
|
132
98
|
export type DrozNexoApp = {
|
|
133
99
|
description?: Maybe<Scalars['String']['output']>;
|
|
134
100
|
id: Scalars['ID']['output'];
|
|
@@ -159,18 +125,10 @@ export type DrozNexoConnectionSuggestion = {
|
|
|
159
125
|
trigger: DrozNexoAppAndAppInstance;
|
|
160
126
|
};
|
|
161
127
|
export type Mutation = {
|
|
162
|
-
createDrozNexoAgent: DrozNexoAgent;
|
|
163
|
-
createDrozNexoAgentGroup: DrozNexoAgentGroup;
|
|
164
128
|
createDrozNexoConnection: DrozNexoConnection;
|
|
165
129
|
removeDrozNexoConnection: DrozNexoConnection;
|
|
166
130
|
version?: Maybe<Scalars['String']['output']>;
|
|
167
131
|
};
|
|
168
|
-
export type MutationCreateDrozNexoAgentArgs = {
|
|
169
|
-
input: CreateDrozNexoAgentInput;
|
|
170
|
-
};
|
|
171
|
-
export type MutationCreateDrozNexoAgentGroupArgs = {
|
|
172
|
-
input: CreateDrozNexoAgentGroupInput;
|
|
173
|
-
};
|
|
174
132
|
export type MutationCreateDrozNexoConnectionArgs = {
|
|
175
133
|
input: CreateDrozNexoConnectionInput;
|
|
176
134
|
};
|
|
@@ -183,23 +141,11 @@ export type PageInfo = {
|
|
|
183
141
|
};
|
|
184
142
|
export type Query = {
|
|
185
143
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
186
|
-
getDrozNexoAgent?: Maybe<DrozNexoAgent>;
|
|
187
144
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
188
|
-
listDrozNexoAgentGroups: DrozNexoAgentGroupsConnection;
|
|
189
|
-
listDrozNexoAgents: DrozNexoAgentsConnection;
|
|
190
145
|
listDrozNexoConnections: DrozNexoConnectionConnection;
|
|
191
146
|
listDrozNexoSuggestions: Array<DrozNexoConnectionSuggestion>;
|
|
192
147
|
version?: Maybe<Scalars['String']['output']>;
|
|
193
148
|
};
|
|
194
|
-
export type QueryGetDrozNexoAgentArgs = {
|
|
195
|
-
id: Scalars['ID']['input'];
|
|
196
|
-
};
|
|
197
|
-
export type QueryListDrozNexoAgentGroupsArgs = {
|
|
198
|
-
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
199
|
-
};
|
|
200
|
-
export type QueryListDrozNexoAgentsArgs = {
|
|
201
|
-
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
202
|
-
};
|
|
203
149
|
export type QueryListDrozNexoConnectionsArgs = {
|
|
204
150
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
205
151
|
};
|
|
@@ -209,53 +155,9 @@ export type RemoveDrozNexoConnectionInput = {
|
|
|
209
155
|
};
|
|
210
156
|
export declare enum Typenames {
|
|
211
157
|
Any = "Any",
|
|
212
|
-
DrozNexoAgentExtension = "DrozNexoAgentExtension",
|
|
213
|
-
DrozNexoAgentGroups = "DrozNexoAgentGroups",
|
|
214
158
|
GraphqlConnections = "GraphqlConnections",
|
|
215
159
|
GraphqlSubscriptions = "GraphqlSubscriptions"
|
|
216
160
|
}
|
|
217
|
-
export type DrozNexoAgentFragment = (Pick<DrozNexoAgent, 'id' | 'name' | 'createdAt' | 'updatedAt'> & {
|
|
218
|
-
extension?: Maybe<(Pick<DrozNexoAgentExtension, 'groupIds'> & {
|
|
219
|
-
groups?: Maybe<Array<DrozNexoAgentGroupFragment>>;
|
|
220
|
-
})>;
|
|
221
|
-
});
|
|
222
|
-
export type DrozNexoAgentGroupFragment = Pick<DrozNexoAgentGroup, 'id' | 'name' | 'createdAt' | 'updatedAt'>;
|
|
223
|
-
export type CreateDrozNexoAgentMutationVariables = Exact<{
|
|
224
|
-
input: CreateDrozNexoAgentInput;
|
|
225
|
-
}>;
|
|
226
|
-
export type CreateDrozNexoAgentMutation = {
|
|
227
|
-
createDrozNexoAgent: DrozNexoAgentFragment;
|
|
228
|
-
};
|
|
229
|
-
export type ListDrozNexoAgentsQueryVariables = Exact<{
|
|
230
|
-
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
231
|
-
}>;
|
|
232
|
-
export type ListDrozNexoAgentsQuery = {
|
|
233
|
-
listDrozNexoAgents: {
|
|
234
|
-
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
|
|
235
|
-
nodes: Array<DrozNexoAgentFragment>;
|
|
236
|
-
};
|
|
237
|
-
};
|
|
238
|
-
export type GetDrozNexoAgentQueryVariables = Exact<{
|
|
239
|
-
id: Scalars['ID']['input'];
|
|
240
|
-
}>;
|
|
241
|
-
export type GetDrozNexoAgentQuery = {
|
|
242
|
-
getDrozNexoAgent?: Maybe<DrozNexoAgentFragment>;
|
|
243
|
-
};
|
|
244
|
-
export type CreateDrozNexoAgentGroupMutationVariables = Exact<{
|
|
245
|
-
input: CreateDrozNexoAgentGroupInput;
|
|
246
|
-
}>;
|
|
247
|
-
export type CreateDrozNexoAgentGroupMutation = {
|
|
248
|
-
createDrozNexoAgentGroup: DrozNexoAgentGroupFragment;
|
|
249
|
-
};
|
|
250
|
-
export type ListDrozNexoAgentGroupsQueryVariables = Exact<{
|
|
251
|
-
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
252
|
-
}>;
|
|
253
|
-
export type ListDrozNexoAgentGroupsQuery = {
|
|
254
|
-
listDrozNexoAgentGroups: {
|
|
255
|
-
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
|
|
256
|
-
nodes: Array<DrozNexoAgentGroupFragment>;
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
161
|
export type DrozNexoAppInstanceFragment = {
|
|
260
162
|
app: Pick<DrozNexoApp, 'id' | 'name' | 'description'>;
|
|
261
163
|
appInstance: Pick<DrozNexoAppInstance, 'drn' | 'name' | 'createdAt' | 'updatedAt'>;
|
|
@@ -295,27 +197,15 @@ export type RemoveDrozNexoConnectionMutationVariables = Exact<{
|
|
|
295
197
|
export type RemoveDrozNexoConnectionMutation = {
|
|
296
198
|
removeDrozNexoConnection: DrozNexoConnectionFragment;
|
|
297
199
|
};
|
|
298
|
-
export declare const DrozNexoAgentGroupFragmentDoc = "\n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
299
|
-
export declare const DrozNexoAgentFragmentDoc = "\n fragment drozNexoAgent on DrozNexoAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n groupIds\n groups {\n ...drozNexoAgentGroup\n }\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
300
200
|
export declare const DrozNexoAppInstanceFragmentDoc = "\n fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n createdAt\n updatedAt\n }\n}\n ";
|
|
301
201
|
export declare const DrozNexoSuggestionFragmentDoc = "\n fragment drozNexoSuggestion on DrozNexoConnectionSuggestion {\n trigger {\n ...drozNexoAppInstance\n }\n destination {\n ...drozNexoAppInstance\n }\n}\n \n fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n createdAt\n updatedAt\n }\n}\n ";
|
|
302
202
|
export declare const DrozNexoConnectionFragmentDoc = "\n fragment drozNexoConnection on DrozNexoConnection {\n id\n versionId\n trigger {\n ...drozNexoAppInstance\n }\n destination {\n ...drozNexoAppInstance\n }\n}\n \n fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n createdAt\n updatedAt\n }\n}\n ";
|
|
303
|
-
export declare const CreateDrozNexoAgentDocument = "\n mutation createDrozNexoAgent($input: CreateDrozNexoAgentInput!) {\n createDrozNexoAgent(input: $input) {\n ...drozNexoAgent\n }\n}\n \n fragment drozNexoAgent on DrozNexoAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n groupIds\n groups {\n ...drozNexoAgentGroup\n }\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
304
|
-
export declare const ListDrozNexoAgentsDocument = "\n query listDrozNexoAgents($next: Base64) {\n listDrozNexoAgents(next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...drozNexoAgent\n }\n }\n}\n \n fragment drozNexoAgent on DrozNexoAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n groupIds\n groups {\n ...drozNexoAgentGroup\n }\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
305
|
-
export declare const GetDrozNexoAgentDocument = "\n query getDrozNexoAgent($id: ID!) {\n getDrozNexoAgent(id: $id) {\n ...drozNexoAgent\n }\n}\n \n fragment drozNexoAgent on DrozNexoAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n groupIds\n groups {\n ...drozNexoAgentGroup\n }\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
306
|
-
export declare const CreateDrozNexoAgentGroupDocument = "\n mutation createDrozNexoAgentGroup($input: CreateDrozNexoAgentGroupInput!) {\n createDrozNexoAgentGroup(input: $input) {\n ...drozNexoAgentGroup\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
307
|
-
export declare const ListDrozNexoAgentGroupsDocument = "\n query listDrozNexoAgentGroups($next: Base64) {\n listDrozNexoAgentGroups(next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...drozNexoAgentGroup\n }\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
308
203
|
export declare const ListDrozNexoSuggestionsDocument = "\n query listDrozNexoSuggestions {\n listDrozNexoSuggestions {\n ...drozNexoSuggestion\n }\n}\n \n fragment drozNexoSuggestion on DrozNexoConnectionSuggestion {\n trigger {\n ...drozNexoAppInstance\n }\n destination {\n ...drozNexoAppInstance\n }\n}\n \n fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n createdAt\n updatedAt\n }\n}\n ";
|
|
309
204
|
export declare const ListDrozNexoConnectionsDocument = "\n query listDrozNexoConnections($next: Base64) {\n listDrozNexoConnections(next: $next) {\n nodes {\n ...drozNexoConnection\n }\n pageInfo {\n next\n hasNext\n }\n }\n}\n \n fragment drozNexoConnection on DrozNexoConnection {\n id\n versionId\n trigger {\n ...drozNexoAppInstance\n }\n destination {\n ...drozNexoAppInstance\n }\n}\n \n fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n createdAt\n updatedAt\n }\n}\n ";
|
|
310
205
|
export declare const CreateDrozNexoConnectionDocument = "\n mutation createDrozNexoConnection($input: CreateDrozNexoConnectionInput!) {\n createDrozNexoConnection(input: $input) {\n ...drozNexoConnection\n }\n}\n \n fragment drozNexoConnection on DrozNexoConnection {\n id\n versionId\n trigger {\n ...drozNexoAppInstance\n }\n destination {\n ...drozNexoAppInstance\n }\n}\n \n fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n createdAt\n updatedAt\n }\n}\n ";
|
|
311
206
|
export declare const RemoveDrozNexoConnectionDocument = "\n mutation removeDrozNexoConnection($input: RemoveDrozNexoConnectionInput!) {\n removeDrozNexoConnection(input: $input) {\n ...drozNexoConnection\n }\n}\n \n fragment drozNexoConnection on DrozNexoConnection {\n id\n versionId\n trigger {\n ...drozNexoAppInstance\n }\n destination {\n ...drozNexoAppInstance\n }\n}\n \n fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n createdAt\n updatedAt\n }\n}\n ";
|
|
312
207
|
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
313
208
|
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
314
|
-
createDrozNexoAgent(variables: CreateDrozNexoAgentMutationVariables, options?: C): Promise<CreateDrozNexoAgentMutation>;
|
|
315
|
-
listDrozNexoAgents(variables?: ListDrozNexoAgentsQueryVariables, options?: C): Promise<ListDrozNexoAgentsQuery>;
|
|
316
|
-
getDrozNexoAgent(variables: GetDrozNexoAgentQueryVariables, options?: C): Promise<GetDrozNexoAgentQuery>;
|
|
317
|
-
createDrozNexoAgentGroup(variables: CreateDrozNexoAgentGroupMutationVariables, options?: C): Promise<CreateDrozNexoAgentGroupMutation>;
|
|
318
|
-
listDrozNexoAgentGroups(variables?: ListDrozNexoAgentGroupsQueryVariables, options?: C): Promise<ListDrozNexoAgentGroupsQuery>;
|
|
319
209
|
listDrozNexoSuggestions(variables?: ListDrozNexoSuggestionsQueryVariables, options?: C): Promise<ListDrozNexoSuggestionsQuery>;
|
|
320
210
|
listDrozNexoConnections(variables?: ListDrozNexoConnectionsQueryVariables, options?: C): Promise<ListDrozNexoConnectionsQuery>;
|
|
321
211
|
createDrozNexoConnection(variables: CreateDrozNexoConnectionMutationVariables, options?: C): Promise<CreateDrozNexoConnectionMutation>;
|