@droz-js/sdk 0.2.16 → 0.2.17
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/nucleus.d.ts +9 -0
- package/src/sdks/chatwidget.d.ts +9 -7
- package/src/sdks/chatwidget.js +2 -0
- package/src/sdks/drozbot.d.ts +9 -7
- package/src/sdks/drozbot.js +2 -0
- 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 +67 -7
- package/src/sdks/nucleus.js +40 -2
- package/src/sdks/reclameaqui.d.ts +9 -7
- package/src/sdks/reclameaqui.js +2 -0
- package/src/sdks/zendesk.d.ts +9 -7
- package/src/sdks/zendesk.js +2 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@droz-js/sdk",
|
|
3
3
|
"description": "Droz SDK",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.17",
|
|
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);
|
|
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/nucleus.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ 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>;
|
|
@@ -20,6 +23,12 @@ export declare const Nucleus: new (options?: import("./client/http").HttpClientO
|
|
|
20
23
|
removeAgent(variables: import("./sdks/nucleus").Exact<{
|
|
21
24
|
input: import("./sdks/nucleus").RemoveAgentInput;
|
|
22
25
|
}>, options?: unknown): Promise<import("./sdks/nucleus").RemoveAgentMutation>;
|
|
26
|
+
addRoleToAgent(variables: import("./sdks/nucleus").Exact<{
|
|
27
|
+
input: import("./sdks/nucleus").AddRoleToAgentInput;
|
|
28
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").AddRoleToAgentMutation>;
|
|
29
|
+
removeRoleFromAgent(variables: import("./sdks/nucleus").Exact<{
|
|
30
|
+
input: import("./sdks/nucleus").RemoveRoleFromAgentInput;
|
|
31
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").RemoveRoleFromAgentMutation>;
|
|
23
32
|
getApp(variables: import("./sdks/nucleus").Exact<{
|
|
24
33
|
appId: string;
|
|
25
34
|
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
|
@@ -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/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>;
|
package/src/sdks/droznexo.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.serviceName = exports.getSdk = exports.RemoveDrozNexoConnectionDocument = exports.CreateDrozNexoConnectionDocument = exports.ListDrozNexoConnectionsDocument = exports.ListDrozNexoSuggestionsDocument = exports.
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.RemoveDrozNexoConnectionDocument = exports.CreateDrozNexoConnectionDocument = exports.ListDrozNexoConnectionsDocument = exports.ListDrozNexoSuggestionsDocument = exports.DrozNexoConnectionFragmentDoc = exports.DrozNexoSuggestionFragmentDoc = exports.DrozNexoAppInstanceFragmentDoc = exports.Typenames = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -11,33 +11,9 @@ var AppInstanceStatus;
|
|
|
11
11
|
var Typenames;
|
|
12
12
|
(function (Typenames) {
|
|
13
13
|
Typenames["Any"] = "Any";
|
|
14
|
-
Typenames["DrozNexoAgentExtension"] = "DrozNexoAgentExtension";
|
|
15
|
-
Typenames["DrozNexoAgentGroups"] = "DrozNexoAgentGroups";
|
|
16
14
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
17
15
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
18
16
|
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
19
|
-
exports.DrozNexoAgentGroupFragmentDoc = `
|
|
20
|
-
fragment drozNexoAgentGroup on DrozNexoAgentGroup {
|
|
21
|
-
id
|
|
22
|
-
name
|
|
23
|
-
createdAt
|
|
24
|
-
updatedAt
|
|
25
|
-
}
|
|
26
|
-
`;
|
|
27
|
-
exports.DrozNexoAgentFragmentDoc = `
|
|
28
|
-
fragment drozNexoAgent on DrozNexoAgent {
|
|
29
|
-
id
|
|
30
|
-
name
|
|
31
|
-
createdAt
|
|
32
|
-
updatedAt
|
|
33
|
-
extension {
|
|
34
|
-
groupIds
|
|
35
|
-
groups {
|
|
36
|
-
...drozNexoAgentGroup
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
${exports.DrozNexoAgentGroupFragmentDoc}`;
|
|
41
17
|
exports.DrozNexoAppInstanceFragmentDoc = `
|
|
42
18
|
fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {
|
|
43
19
|
app {
|
|
@@ -75,53 +51,6 @@ exports.DrozNexoConnectionFragmentDoc = `
|
|
|
75
51
|
}
|
|
76
52
|
}
|
|
77
53
|
${exports.DrozNexoAppInstanceFragmentDoc}`;
|
|
78
|
-
exports.CreateDrozNexoAgentDocument = `
|
|
79
|
-
mutation createDrozNexoAgent($input: CreateDrozNexoAgentInput!) {
|
|
80
|
-
createDrozNexoAgent(input: $input) {
|
|
81
|
-
...drozNexoAgent
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
${exports.DrozNexoAgentFragmentDoc}`;
|
|
85
|
-
exports.ListDrozNexoAgentsDocument = `
|
|
86
|
-
query listDrozNexoAgents($next: Base64) {
|
|
87
|
-
listDrozNexoAgents(next: $next) {
|
|
88
|
-
pageInfo {
|
|
89
|
-
hasNext
|
|
90
|
-
next
|
|
91
|
-
}
|
|
92
|
-
nodes {
|
|
93
|
-
...drozNexoAgent
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
${exports.DrozNexoAgentFragmentDoc}`;
|
|
98
|
-
exports.GetDrozNexoAgentDocument = `
|
|
99
|
-
query getDrozNexoAgent($id: ID!) {
|
|
100
|
-
getDrozNexoAgent(id: $id) {
|
|
101
|
-
...drozNexoAgent
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
${exports.DrozNexoAgentFragmentDoc}`;
|
|
105
|
-
exports.CreateDrozNexoAgentGroupDocument = `
|
|
106
|
-
mutation createDrozNexoAgentGroup($input: CreateDrozNexoAgentGroupInput!) {
|
|
107
|
-
createDrozNexoAgentGroup(input: $input) {
|
|
108
|
-
...drozNexoAgentGroup
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
${exports.DrozNexoAgentGroupFragmentDoc}`;
|
|
112
|
-
exports.ListDrozNexoAgentGroupsDocument = `
|
|
113
|
-
query listDrozNexoAgentGroups($next: Base64) {
|
|
114
|
-
listDrozNexoAgentGroups(next: $next) {
|
|
115
|
-
pageInfo {
|
|
116
|
-
hasNext
|
|
117
|
-
next
|
|
118
|
-
}
|
|
119
|
-
nodes {
|
|
120
|
-
...drozNexoAgentGroup
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
${exports.DrozNexoAgentGroupFragmentDoc}`;
|
|
125
54
|
exports.ListDrozNexoSuggestionsDocument = `
|
|
126
55
|
query listDrozNexoSuggestions {
|
|
127
56
|
listDrozNexoSuggestions {
|
|
@@ -158,21 +87,6 @@ exports.RemoveDrozNexoConnectionDocument = `
|
|
|
158
87
|
${exports.DrozNexoConnectionFragmentDoc}`;
|
|
159
88
|
function getSdk(requester) {
|
|
160
89
|
return {
|
|
161
|
-
createDrozNexoAgent(variables, options) {
|
|
162
|
-
return requester(exports.CreateDrozNexoAgentDocument, variables, options);
|
|
163
|
-
},
|
|
164
|
-
listDrozNexoAgents(variables, options) {
|
|
165
|
-
return requester(exports.ListDrozNexoAgentsDocument, variables, options);
|
|
166
|
-
},
|
|
167
|
-
getDrozNexoAgent(variables, options) {
|
|
168
|
-
return requester(exports.GetDrozNexoAgentDocument, variables, options);
|
|
169
|
-
},
|
|
170
|
-
createDrozNexoAgentGroup(variables, options) {
|
|
171
|
-
return requester(exports.CreateDrozNexoAgentGroupDocument, variables, options);
|
|
172
|
-
},
|
|
173
|
-
listDrozNexoAgentGroups(variables, options) {
|
|
174
|
-
return requester(exports.ListDrozNexoAgentGroupsDocument, variables, options);
|
|
175
|
-
},
|
|
176
90
|
listDrozNexoSuggestions(variables, options) {
|
|
177
91
|
return requester(exports.ListDrozNexoSuggestionsDocument, variables, options);
|
|
178
92
|
},
|
|
@@ -97,11 +97,13 @@ export type CreateMercadoLivreInstanceInput = {
|
|
|
97
97
|
type: MercadoLivreInstanceType;
|
|
98
98
|
};
|
|
99
99
|
export type MercadoLivreInstance = {
|
|
100
|
+
createdAt: Scalars['DateTime']['output'];
|
|
100
101
|
credentialId?: Maybe<Scalars['ID']['output']>;
|
|
101
102
|
cronJobId?: Maybe<Scalars['ID']['output']>;
|
|
102
103
|
id: Scalars['ID']['output'];
|
|
103
104
|
name: Scalars['String']['output'];
|
|
104
105
|
type: MercadoLivreInstanceType;
|
|
106
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
105
107
|
};
|
|
106
108
|
export declare enum MercadoLivreInstanceType {
|
|
107
109
|
PosVenda = "POS_VENDA",
|
|
@@ -151,7 +153,7 @@ export type UpdateMercadoLivreInstanceInput = {
|
|
|
151
153
|
id: Scalars['ID']['input'];
|
|
152
154
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
153
155
|
};
|
|
154
|
-
export type ReclameAquiInstanceFragment = Pick<MercadoLivreInstance, 'id' | 'name' | 'credentialId' | 'cronJobId'>;
|
|
156
|
+
export type ReclameAquiInstanceFragment = Pick<MercadoLivreInstance, 'id' | 'name' | 'credentialId' | 'cronJobId' | 'createdAt' | 'updatedAt'>;
|
|
155
157
|
export type GetMercadoLivreInstanceQueryVariables = Exact<{
|
|
156
158
|
id: Scalars['ID']['input'];
|
|
157
159
|
}>;
|
|
@@ -182,12 +184,12 @@ export type RemoveMercadoLivreInstanceMutationVariables = Exact<{
|
|
|
182
184
|
export type RemoveMercadoLivreInstanceMutation = {
|
|
183
185
|
removeMercadoLivreInstance?: Maybe<ReclameAquiInstanceFragment>;
|
|
184
186
|
};
|
|
185
|
-
export declare const ReclameAquiInstanceFragmentDoc = "\n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n}\n ";
|
|
186
|
-
export declare const GetMercadoLivreInstanceDocument = "\n query getMercadoLivreInstance($id: ID!) {\n getMercadoLivreInstance(id: $id) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n}\n ";
|
|
187
|
-
export declare const ListMercadoLivreInstancesDocument = "\n query listMercadoLivreInstances {\n listMercadoLivreInstances {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n}\n ";
|
|
188
|
-
export declare const CreateMercadoLivreInstanceDocument = "\n mutation createMercadoLivreInstance($input: CreateMercadoLivreInstanceInput!) {\n createMercadoLivreInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n}\n ";
|
|
189
|
-
export declare const UpdateMercadoLivreInstanceDocument = "\n mutation updateMercadoLivreInstance($input: UpdateMercadoLivreInstanceInput!) {\n updateMercadoLivreInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n}\n ";
|
|
190
|
-
export declare const RemoveMercadoLivreInstanceDocument = "\n mutation removeMercadoLivreInstance($input: RemoveMercadoLivreInstanceInput!) {\n removeMercadoLivreInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n}\n ";
|
|
187
|
+
export declare const ReclameAquiInstanceFragmentDoc = "\n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n createdAt\n updatedAt\n}\n ";
|
|
188
|
+
export declare const GetMercadoLivreInstanceDocument = "\n query getMercadoLivreInstance($id: ID!) {\n getMercadoLivreInstance(id: $id) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n createdAt\n updatedAt\n}\n ";
|
|
189
|
+
export declare const ListMercadoLivreInstancesDocument = "\n query listMercadoLivreInstances {\n listMercadoLivreInstances {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n createdAt\n updatedAt\n}\n ";
|
|
190
|
+
export declare const CreateMercadoLivreInstanceDocument = "\n mutation createMercadoLivreInstance($input: CreateMercadoLivreInstanceInput!) {\n createMercadoLivreInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n createdAt\n updatedAt\n}\n ";
|
|
191
|
+
export declare const UpdateMercadoLivreInstanceDocument = "\n mutation updateMercadoLivreInstance($input: UpdateMercadoLivreInstanceInput!) {\n updateMercadoLivreInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n createdAt\n updatedAt\n}\n ";
|
|
192
|
+
export declare const RemoveMercadoLivreInstanceDocument = "\n mutation removeMercadoLivreInstance($input: RemoveMercadoLivreInstanceInput!) {\n removeMercadoLivreInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n createdAt\n updatedAt\n}\n ";
|
|
191
193
|
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
192
194
|
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
193
195
|
getMercadoLivreInstance(variables: GetMercadoLivreInstanceQueryVariables, options?: C): Promise<GetMercadoLivreInstanceQuery>;
|
package/src/sdks/mercadolivre.js
CHANGED
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -86,6 +86,10 @@ export type Scalars = {
|
|
|
86
86
|
output: void;
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
|
+
export type AddRoleToAgentInput = {
|
|
90
|
+
agentId: Scalars['ID']['input'];
|
|
91
|
+
roleId: Scalars['ID']['input'];
|
|
92
|
+
};
|
|
89
93
|
export type Agent = {
|
|
90
94
|
apps?: Maybe<Scalars['Set']['output']>;
|
|
91
95
|
cognitoUserStatus?: Maybe<Scalars['String']['output']>;
|
|
@@ -95,6 +99,7 @@ export type Agent = {
|
|
|
95
99
|
id: Scalars['ID']['output'];
|
|
96
100
|
name: Scalars['String']['output'];
|
|
97
101
|
picture?: Maybe<Scalars['String']['output']>;
|
|
102
|
+
roles?: Maybe<Scalars['Set']['output']>;
|
|
98
103
|
updatedAt: Scalars['DateTime']['output'];
|
|
99
104
|
};
|
|
100
105
|
export type AgentConnection = {
|
|
@@ -249,6 +254,7 @@ export type ICredentials = {
|
|
|
249
254
|
updatedAt: Scalars['DateTime']['output'];
|
|
250
255
|
};
|
|
251
256
|
export type Mutation = {
|
|
257
|
+
addRoleToAgent?: Maybe<Agent>;
|
|
252
258
|
createAgent?: Maybe<Agent>;
|
|
253
259
|
createCredentials: SafeCredentials;
|
|
254
260
|
createCronJob: CronJob;
|
|
@@ -262,6 +268,7 @@ export type Mutation = {
|
|
|
262
268
|
removeAgent?: Maybe<Agent>;
|
|
263
269
|
removeCredentials?: Maybe<SafeCredentials>;
|
|
264
270
|
removeCronJob: CronJob;
|
|
271
|
+
removeRoleFromAgent?: Maybe<Agent>;
|
|
265
272
|
removeStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
266
273
|
removeStateMachineConfigState?: Maybe<StateMachineConfig>;
|
|
267
274
|
setSessionAttribute?: Maybe<Scalars['JSON']['output']>;
|
|
@@ -274,6 +281,9 @@ export type Mutation = {
|
|
|
274
281
|
updateStateMachineConfigState?: Maybe<StateMachineConfig>;
|
|
275
282
|
version?: Maybe<Scalars['String']['output']>;
|
|
276
283
|
};
|
|
284
|
+
export type MutationAddRoleToAgentArgs = {
|
|
285
|
+
input: AddRoleToAgentInput;
|
|
286
|
+
};
|
|
277
287
|
export type MutationCreateAgentArgs = {
|
|
278
288
|
input: CreateAgentInput;
|
|
279
289
|
};
|
|
@@ -313,6 +323,9 @@ export type MutationRemoveCredentialsArgs = {
|
|
|
313
323
|
export type MutationRemoveCronJobArgs = {
|
|
314
324
|
input: RemoveCronJobInput;
|
|
315
325
|
};
|
|
326
|
+
export type MutationRemoveRoleFromAgentArgs = {
|
|
327
|
+
input: RemoveRoleFromAgentInput;
|
|
328
|
+
};
|
|
316
329
|
export type MutationRemoveStateMachineConfigArgs = {
|
|
317
330
|
input: RemoveStateMachineConfigInput;
|
|
318
331
|
};
|
|
@@ -376,6 +389,12 @@ export type PatchSessionAttributesInput = {
|
|
|
376
389
|
patches: Array<PatchInput>;
|
|
377
390
|
sessionId: Scalars['ID']['input'];
|
|
378
391
|
};
|
|
392
|
+
export type Policy = {
|
|
393
|
+
action: Scalars['String']['output'];
|
|
394
|
+
effect: Scalars['String']['output'];
|
|
395
|
+
id: Scalars['ID']['output'];
|
|
396
|
+
resource: Scalars['String']['output'];
|
|
397
|
+
};
|
|
379
398
|
export type PublishStateMachineConfigInput = {
|
|
380
399
|
id: Scalars['ID']['input'];
|
|
381
400
|
versionId: Scalars['ID']['input'];
|
|
@@ -392,8 +411,10 @@ export type Query = {
|
|
|
392
411
|
getCronJob?: Maybe<CronJob>;
|
|
393
412
|
getCustomer?: Maybe<Customer>;
|
|
394
413
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
414
|
+
getMe?: Maybe<Agent>;
|
|
395
415
|
getSession?: Maybe<Session>;
|
|
396
416
|
getStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
417
|
+
getSystemRole?: Maybe<Role>;
|
|
397
418
|
getXStateMachineConfig?: Maybe<Scalars['JSON']['output']>;
|
|
398
419
|
listAgents: AgentConnection;
|
|
399
420
|
listAppInstances: Array<AppInstance>;
|
|
@@ -405,6 +426,7 @@ export type Query = {
|
|
|
405
426
|
listDraftStateMachineConfigs: StateMachineConfigConnection;
|
|
406
427
|
listLiveStateMachineConfigs: StateMachineConfigConnection;
|
|
407
428
|
listStateMachineConfigVersions: Array<StateMachineConfig>;
|
|
429
|
+
listSystemRoles: Array<Role>;
|
|
408
430
|
version?: Maybe<Scalars['String']['output']>;
|
|
409
431
|
};
|
|
410
432
|
export type QueryGetAgentArgs = {
|
|
@@ -435,6 +457,9 @@ export type QueryGetStateMachineConfigArgs = {
|
|
|
435
457
|
id: Scalars['ID']['input'];
|
|
436
458
|
versionId: Scalars['ID']['input'];
|
|
437
459
|
};
|
|
460
|
+
export type QueryGetSystemRoleArgs = {
|
|
461
|
+
id: Scalars['ID']['input'];
|
|
462
|
+
};
|
|
438
463
|
export type QueryGetXStateMachineConfigArgs = {
|
|
439
464
|
id: Scalars['ID']['input'];
|
|
440
465
|
versionId: Scalars['ID']['input'];
|
|
@@ -483,6 +508,10 @@ export type RemoveCredentialsInput = {
|
|
|
483
508
|
export type RemoveCronJobInput = {
|
|
484
509
|
id: Scalars['ID']['input'];
|
|
485
510
|
};
|
|
511
|
+
export type RemoveRoleFromAgentInput = {
|
|
512
|
+
agentId: Scalars['ID']['input'];
|
|
513
|
+
roleId: Scalars['ID']['input'];
|
|
514
|
+
};
|
|
486
515
|
export type RemoveStateMachineConfigInput = {
|
|
487
516
|
id: Scalars['ID']['input'];
|
|
488
517
|
versionId: Scalars['ID']['input'];
|
|
@@ -492,6 +521,11 @@ export type RemoveStateMachineConfigStateInput = {
|
|
|
492
521
|
stateId: Scalars['ID']['input'];
|
|
493
522
|
versionId: Scalars['ID']['input'];
|
|
494
523
|
};
|
|
524
|
+
export type Role = {
|
|
525
|
+
id: Scalars['ID']['output'];
|
|
526
|
+
name: Scalars['String']['output'];
|
|
527
|
+
policies: Array<Policy>;
|
|
528
|
+
};
|
|
495
529
|
export type SafeCredentials = ICredentials & {
|
|
496
530
|
createdAt: Scalars['DateTime']['output'];
|
|
497
531
|
description: Scalars['String']['output'];
|
|
@@ -576,6 +610,8 @@ export declare enum Typenames {
|
|
|
576
610
|
GraphqlSubscriptions = "GraphqlSubscriptions",
|
|
577
611
|
MachineConfigs = "MachineConfigs",
|
|
578
612
|
MachineStates = "MachineStates",
|
|
613
|
+
Policies = "Policies",
|
|
614
|
+
Roles = "Roles",
|
|
579
615
|
SessionAttributes = "SessionAttributes",
|
|
580
616
|
Sessions = "Sessions"
|
|
581
617
|
}
|
|
@@ -620,7 +656,13 @@ export type UpdateStateMachineConfigWithStateInput = {
|
|
|
620
656
|
on?: InputMaybe<Array<StateMachineConfigStatesOnInput>>;
|
|
621
657
|
stateId: Scalars['ID']['input'];
|
|
622
658
|
};
|
|
623
|
-
export type AgentFragment = Pick<Agent, 'id' | 'name' | 'createdAt' | 'updatedAt'>;
|
|
659
|
+
export type AgentFragment = Pick<Agent, 'id' | 'name' | 'email' | 'emailVerified' | 'picture' | 'apps' | 'roles' | 'cognitoUserStatus' | 'createdAt' | 'updatedAt'>;
|
|
660
|
+
export type GetMeQueryVariables = Exact<{
|
|
661
|
+
[key: string]: never;
|
|
662
|
+
}>;
|
|
663
|
+
export type GetMeQuery = {
|
|
664
|
+
getMe?: Maybe<AgentFragment>;
|
|
665
|
+
};
|
|
624
666
|
export type GetAgentQueryVariables = Exact<{
|
|
625
667
|
id: Scalars['ID']['input'];
|
|
626
668
|
}>;
|
|
@@ -654,6 +696,18 @@ export type RemoveAgentMutationVariables = Exact<{
|
|
|
654
696
|
export type RemoveAgentMutation = {
|
|
655
697
|
removeAgent?: Maybe<AgentFragment>;
|
|
656
698
|
};
|
|
699
|
+
export type AddRoleToAgentMutationVariables = Exact<{
|
|
700
|
+
input: AddRoleToAgentInput;
|
|
701
|
+
}>;
|
|
702
|
+
export type AddRoleToAgentMutation = {
|
|
703
|
+
addRoleToAgent?: Maybe<AgentFragment>;
|
|
704
|
+
};
|
|
705
|
+
export type RemoveRoleFromAgentMutationVariables = Exact<{
|
|
706
|
+
input: RemoveRoleFromAgentInput;
|
|
707
|
+
}>;
|
|
708
|
+
export type RemoveRoleFromAgentMutation = {
|
|
709
|
+
removeRoleFromAgent?: Maybe<AgentFragment>;
|
|
710
|
+
};
|
|
657
711
|
export type AppFragment = Pick<App, 'id' | 'type' | 'name' | 'description'>;
|
|
658
712
|
export type AppInstanceFragment = Pick<AppInstance, 'appId' | 'appType' | 'drn' | 'name' | 'transitions' | 'createdAt' | 'updatedAt'>;
|
|
659
713
|
export type AppWithInstancesFragment = ({
|
|
@@ -935,7 +989,7 @@ export type RemoveStateMachineConfigStateMutationVariables = Exact<{
|
|
|
935
989
|
export type RemoveStateMachineConfigStateMutation = {
|
|
936
990
|
removeStateMachineConfigState?: Maybe<StateMachineConfigFragment>;
|
|
937
991
|
};
|
|
938
|
-
export declare const AgentFragmentDoc = "\n fragment agent on Agent {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
992
|
+
export declare const AgentFragmentDoc = "\n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
|
|
939
993
|
export declare const AppFragmentDoc = "\n fragment app on App {\n id\n type\n name\n description\n}\n ";
|
|
940
994
|
export declare const AppInstanceFragmentDoc = "\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
941
995
|
export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstances on App {\n ...app\n instances {\n ...appInstance\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
@@ -947,11 +1001,14 @@ export declare const StateMachineConfigStateOnFragmentDoc = "\n fragment stat
|
|
|
947
1001
|
export declare const StateMachineConfigStateFragmentDoc = "\n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
948
1002
|
export declare const StateMachineConfigFragmentDoc = "\n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n createdAt\n updatedAt\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
949
1003
|
export declare const StateMachineConfigConnectionFragmentDoc = "\n fragment stateMachineConfigConnection on StateMachineConfigConnection {\n nodes {\n ...stateMachineConfig\n }\n pageInfo {\n hasNext\n next\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n createdAt\n updatedAt\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
950
|
-
export declare const
|
|
951
|
-
export declare const
|
|
952
|
-
export declare const
|
|
953
|
-
export declare const
|
|
954
|
-
export declare const
|
|
1004
|
+
export declare const GetMeDocument = "\n query getMe {\n getMe {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
|
|
1005
|
+
export declare const GetAgentDocument = "\n query getAgent($id: ID!) {\n getAgent(id: $id) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
|
|
1006
|
+
export declare const ListAgentsDocument = "\n query listAgents($next: Base64) {\n listAgents(next: $next) {\n nodes {\n ...agent\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
|
|
1007
|
+
export declare const CreateAgentDocument = "\n mutation createAgent($input: CreateAgentInput!) {\n createAgent(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
|
|
1008
|
+
export declare const UpdateAgentDocument = "\n mutation updateAgent($input: UpdateAgentInput!) {\n updateAgent(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
|
|
1009
|
+
export declare const RemoveAgentDocument = "\n mutation removeAgent($input: RemoveAgentInput!) {\n removeAgent(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
|
|
1010
|
+
export declare const AddRoleToAgentDocument = "\n mutation addRoleToAgent($input: AddRoleToAgentInput!) {\n addRoleToAgent(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
|
|
1011
|
+
export declare const RemoveRoleFromAgentDocument = "\n mutation removeRoleFromAgent($input: RemoveRoleFromAgentInput!) {\n removeRoleFromAgent(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
|
|
955
1012
|
export declare const GetAppDocument = "\n query getApp($appId: ID!, $withInstances: Boolean = false) {\n getApp(appId: $appId) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
956
1013
|
export declare const ListAppsDocument = "\n query listApps($type: AppType, $withInstances: Boolean = false) {\n listApps(type: $type) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
957
1014
|
export declare const GetAppInstanceDocument = "\n query getAppInstance($drn: ID!) {\n appInstance: getAppInstance(drn: $drn) {\n ...appInstance\n }\n app: getApp(appId: $drn) {\n ...app\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n \n\n fragment app on App {\n id\n type\n name\n description\n}\n ";
|
|
@@ -993,11 +1050,14 @@ export declare const UpdateStateMachineConfigStateDocument = "\n mutation upd
|
|
|
993
1050
|
export declare const RemoveStateMachineConfigStateDocument = "\n mutation removeStateMachineConfigState($input: RemoveStateMachineConfigStateInput!) {\n removeStateMachineConfigState(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n createdAt\n updatedAt\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
994
1051
|
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
995
1052
|
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
1053
|
+
getMe(variables?: GetMeQueryVariables, options?: C): Promise<GetMeQuery>;
|
|
996
1054
|
getAgent(variables: GetAgentQueryVariables, options?: C): Promise<GetAgentQuery>;
|
|
997
1055
|
listAgents(variables?: ListAgentsQueryVariables, options?: C): Promise<ListAgentsQuery>;
|
|
998
1056
|
createAgent(variables: CreateAgentMutationVariables, options?: C): Promise<CreateAgentMutation>;
|
|
999
1057
|
updateAgent(variables: UpdateAgentMutationVariables, options?: C): Promise<UpdateAgentMutation>;
|
|
1000
1058
|
removeAgent(variables: RemoveAgentMutationVariables, options?: C): Promise<RemoveAgentMutation>;
|
|
1059
|
+
addRoleToAgent(variables: AddRoleToAgentMutationVariables, options?: C): Promise<AddRoleToAgentMutation>;
|
|
1060
|
+
removeRoleFromAgent(variables: RemoveRoleFromAgentMutationVariables, options?: C): Promise<RemoveRoleFromAgentMutation>;
|
|
1001
1061
|
getApp(variables: GetAppQueryVariables, options?: C): Promise<GetAppQuery>;
|
|
1002
1062
|
listApps(variables?: ListAppsQueryVariables, options?: C): Promise<ListAppsQuery>;
|
|
1003
1063
|
getAppInstance(variables: GetAppInstanceQueryVariables, options?: C): Promise<GetAppInstanceQuery>;
|
package/src/sdks/nucleus.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.serviceName = exports.getSdk = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = void 0;
|
|
4
|
+
exports.StartSessionDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.ListAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateAgentDocument = exports.ListAgentsDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SessionFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.AppType = exports.AppInstanceStatus = void 0;
|
|
5
|
+
exports.serviceName = exports.getSdk = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionDocument = void 0;
|
|
6
6
|
var AppInstanceStatus;
|
|
7
7
|
(function (AppInstanceStatus) {
|
|
8
8
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -55,6 +55,8 @@ var Typenames;
|
|
|
55
55
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
56
56
|
Typenames["MachineConfigs"] = "MachineConfigs";
|
|
57
57
|
Typenames["MachineStates"] = "MachineStates";
|
|
58
|
+
Typenames["Policies"] = "Policies";
|
|
59
|
+
Typenames["Roles"] = "Roles";
|
|
58
60
|
Typenames["SessionAttributes"] = "SessionAttributes";
|
|
59
61
|
Typenames["Sessions"] = "Sessions";
|
|
60
62
|
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
@@ -62,6 +64,12 @@ exports.AgentFragmentDoc = `
|
|
|
62
64
|
fragment agent on Agent {
|
|
63
65
|
id
|
|
64
66
|
name
|
|
67
|
+
email
|
|
68
|
+
emailVerified
|
|
69
|
+
picture
|
|
70
|
+
apps
|
|
71
|
+
roles
|
|
72
|
+
cognitoUserStatus
|
|
65
73
|
createdAt
|
|
66
74
|
updatedAt
|
|
67
75
|
}
|
|
@@ -180,6 +188,13 @@ exports.StateMachineConfigConnectionFragmentDoc = `
|
|
|
180
188
|
}
|
|
181
189
|
}
|
|
182
190
|
${exports.StateMachineConfigFragmentDoc}`;
|
|
191
|
+
exports.GetMeDocument = `
|
|
192
|
+
query getMe {
|
|
193
|
+
getMe {
|
|
194
|
+
...agent
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
${exports.AgentFragmentDoc}`;
|
|
183
198
|
exports.GetAgentDocument = `
|
|
184
199
|
query getAgent($id: ID!) {
|
|
185
200
|
getAgent(id: $id) {
|
|
@@ -221,6 +236,20 @@ exports.RemoveAgentDocument = `
|
|
|
221
236
|
}
|
|
222
237
|
}
|
|
223
238
|
${exports.AgentFragmentDoc}`;
|
|
239
|
+
exports.AddRoleToAgentDocument = `
|
|
240
|
+
mutation addRoleToAgent($input: AddRoleToAgentInput!) {
|
|
241
|
+
addRoleToAgent(input: $input) {
|
|
242
|
+
...agent
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
${exports.AgentFragmentDoc}`;
|
|
246
|
+
exports.RemoveRoleFromAgentDocument = `
|
|
247
|
+
mutation removeRoleFromAgent($input: RemoveRoleFromAgentInput!) {
|
|
248
|
+
removeRoleFromAgent(input: $input) {
|
|
249
|
+
...agent
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
${exports.AgentFragmentDoc}`;
|
|
224
253
|
exports.GetAppDocument = `
|
|
225
254
|
query getApp($appId: ID!, $withInstances: Boolean = false) {
|
|
226
255
|
getApp(appId: $appId) {
|
|
@@ -552,6 +581,9 @@ exports.RemoveStateMachineConfigStateDocument = `
|
|
|
552
581
|
${exports.StateMachineConfigFragmentDoc}`;
|
|
553
582
|
function getSdk(requester) {
|
|
554
583
|
return {
|
|
584
|
+
getMe(variables, options) {
|
|
585
|
+
return requester(exports.GetMeDocument, variables, options);
|
|
586
|
+
},
|
|
555
587
|
getAgent(variables, options) {
|
|
556
588
|
return requester(exports.GetAgentDocument, variables, options);
|
|
557
589
|
},
|
|
@@ -567,6 +599,12 @@ function getSdk(requester) {
|
|
|
567
599
|
removeAgent(variables, options) {
|
|
568
600
|
return requester(exports.RemoveAgentDocument, variables, options);
|
|
569
601
|
},
|
|
602
|
+
addRoleToAgent(variables, options) {
|
|
603
|
+
return requester(exports.AddRoleToAgentDocument, variables, options);
|
|
604
|
+
},
|
|
605
|
+
removeRoleFromAgent(variables, options) {
|
|
606
|
+
return requester(exports.RemoveRoleFromAgentDocument, variables, options);
|
|
607
|
+
},
|
|
570
608
|
getApp(variables, options) {
|
|
571
609
|
return requester(exports.GetAppDocument, variables, options);
|
|
572
610
|
},
|
|
@@ -125,12 +125,14 @@ export type QueryGetReclameAquiInstanceArgs = {
|
|
|
125
125
|
id: Scalars['ID']['input'];
|
|
126
126
|
};
|
|
127
127
|
export type ReclameAquiInstance = {
|
|
128
|
+
createdAt: Scalars['DateTime']['output'];
|
|
128
129
|
credentialId?: Maybe<Scalars['ID']['output']>;
|
|
129
130
|
cronJobId?: Maybe<Scalars['ID']['output']>;
|
|
130
131
|
failingReason?: Maybe<Scalars['String']['output']>;
|
|
131
132
|
id: Scalars['ID']['output'];
|
|
132
133
|
name: Scalars['String']['output'];
|
|
133
134
|
status?: Maybe<AppInstanceStatus>;
|
|
135
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
134
136
|
};
|
|
135
137
|
export type RemoveReclameAquiInstanceInput = {
|
|
136
138
|
id: Scalars['ID']['input'];
|
|
@@ -146,7 +148,7 @@ export type UpdateReclameAquiInstanceInput = {
|
|
|
146
148
|
id: Scalars['ID']['input'];
|
|
147
149
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
148
150
|
};
|
|
149
|
-
export type ReclameAquiInstanceFragment = Pick<ReclameAquiInstance, 'id' | 'name' | 'credentialId' | 'cronJobId' | 'status' | 'failingReason'>;
|
|
151
|
+
export type ReclameAquiInstanceFragment = Pick<ReclameAquiInstance, 'id' | 'name' | 'credentialId' | 'cronJobId' | 'status' | 'failingReason' | 'createdAt' | 'updatedAt'>;
|
|
150
152
|
export type GetReclameAquiInstanceQueryVariables = Exact<{
|
|
151
153
|
id: Scalars['ID']['input'];
|
|
152
154
|
}>;
|
|
@@ -177,12 +179,12 @@ export type RemoveReclameAquiInstanceMutationVariables = Exact<{
|
|
|
177
179
|
export type RemoveReclameAquiInstanceMutation = {
|
|
178
180
|
removeReclameAquiInstance?: Maybe<ReclameAquiInstanceFragment>;
|
|
179
181
|
};
|
|
180
|
-
export declare const ReclameAquiInstanceFragmentDoc = "\n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n cronJobId\n status\n failingReason\n}\n ";
|
|
181
|
-
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 cronJobId\n status\n failingReason\n}\n ";
|
|
182
|
-
export declare const ListReclameAquiInstancesDocument = "\n query listReclameAquiInstances {\n listReclameAquiInstances {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n cronJobId\n status\n failingReason\n}\n ";
|
|
183
|
-
export declare const CreateReclameAquiInstanceDocument = "\n mutation createReclameAquiInstance($input: CreateReclameAquiInstanceInput!) {\n createReclameAquiInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n cronJobId\n status\n failingReason\n}\n ";
|
|
184
|
-
export declare const UpdateReclameAquiInstanceDocument = "\n mutation updateReclameAquiInstance($input: UpdateReclameAquiInstanceInput!) {\n updateReclameAquiInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n cronJobId\n status\n failingReason\n}\n ";
|
|
185
|
-
export declare const RemoveReclameAquiInstanceDocument = "\n mutation removeReclameAquiInstance($input: RemoveReclameAquiInstanceInput!) {\n removeReclameAquiInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n cronJobId\n status\n failingReason\n}\n ";
|
|
182
|
+
export declare const ReclameAquiInstanceFragmentDoc = "\n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n cronJobId\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
183
|
+
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 cronJobId\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
184
|
+
export declare const ListReclameAquiInstancesDocument = "\n query listReclameAquiInstances {\n listReclameAquiInstances {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n cronJobId\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
185
|
+
export declare const CreateReclameAquiInstanceDocument = "\n mutation createReclameAquiInstance($input: CreateReclameAquiInstanceInput!) {\n createReclameAquiInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n cronJobId\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
186
|
+
export declare const UpdateReclameAquiInstanceDocument = "\n mutation updateReclameAquiInstance($input: UpdateReclameAquiInstanceInput!) {\n updateReclameAquiInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n cronJobId\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
187
|
+
export declare const RemoveReclameAquiInstanceDocument = "\n mutation removeReclameAquiInstance($input: RemoveReclameAquiInstanceInput!) {\n removeReclameAquiInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n cronJobId\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
186
188
|
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
187
189
|
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
188
190
|
getReclameAquiInstance(variables: GetReclameAquiInstanceQueryVariables, options?: C): Promise<GetReclameAquiInstanceQuery>;
|
package/src/sdks/reclameaqui.js
CHANGED
package/src/sdks/zendesk.d.ts
CHANGED
|
@@ -156,13 +156,15 @@ export type ValidateZendeskInstancePayload = {
|
|
|
156
156
|
};
|
|
157
157
|
export type ZendeskInstance = {
|
|
158
158
|
closedStatuses: Array<Scalars['String']['output']>;
|
|
159
|
+
createdAt: Scalars['DateTime']['output'];
|
|
159
160
|
credentialId?: Maybe<Scalars['ID']['output']>;
|
|
160
161
|
domain: Scalars['String']['output'];
|
|
161
162
|
id: Scalars['ID']['output'];
|
|
162
163
|
name: Scalars['String']['output'];
|
|
164
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
163
165
|
webhookId?: Maybe<Scalars['ID']['output']>;
|
|
164
166
|
};
|
|
165
|
-
export type ZendeskInstanceFragment = Pick<ZendeskInstance, 'id' | 'name' | 'domain' | 'credentialId'>;
|
|
167
|
+
export type ZendeskInstanceFragment = Pick<ZendeskInstance, 'id' | 'name' | 'domain' | 'credentialId' | 'createdAt' | 'updatedAt'>;
|
|
166
168
|
export type GetZendeskInstanceQueryVariables = Exact<{
|
|
167
169
|
id: Scalars['ID']['input'];
|
|
168
170
|
}>;
|
|
@@ -193,12 +195,12 @@ export type RemoveZendeskInstanceMutationVariables = Exact<{
|
|
|
193
195
|
export type RemoveZendeskInstanceMutation = {
|
|
194
196
|
removeZendeskInstance?: Maybe<ZendeskInstanceFragment>;
|
|
195
197
|
};
|
|
196
|
-
export declare const ZendeskInstanceFragmentDoc = "\n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n}\n ";
|
|
197
|
-
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 domain\n credentialId\n}\n ";
|
|
198
|
-
export declare const ListZendeskInstancesDocument = "\n query listZendeskInstances {\n listZendeskInstances {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n}\n ";
|
|
199
|
-
export declare const CreateZendeskInstanceDocument = "\n mutation createZendeskInstance($input: CreateZendeskInstanceInput!) {\n createZendeskInstance(input: $input) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n}\n ";
|
|
200
|
-
export declare const UpdateZendeskInstanceDocument = "\n mutation updateZendeskInstance($input: UpdateZendeskInstanceInput!) {\n updateZendeskInstance(input: $input) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n}\n ";
|
|
201
|
-
export declare const RemoveZendeskInstanceDocument = "\n mutation removeZendeskInstance($input: RemoveZendeskInstanceInput!) {\n removeZendeskInstance(input: $input) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n}\n ";
|
|
198
|
+
export declare const ZendeskInstanceFragmentDoc = "\n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n createdAt\n updatedAt\n}\n ";
|
|
199
|
+
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 domain\n credentialId\n createdAt\n updatedAt\n}\n ";
|
|
200
|
+
export declare const ListZendeskInstancesDocument = "\n query listZendeskInstances {\n listZendeskInstances {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n createdAt\n updatedAt\n}\n ";
|
|
201
|
+
export declare const CreateZendeskInstanceDocument = "\n mutation createZendeskInstance($input: CreateZendeskInstanceInput!) {\n createZendeskInstance(input: $input) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n createdAt\n updatedAt\n}\n ";
|
|
202
|
+
export declare const UpdateZendeskInstanceDocument = "\n mutation updateZendeskInstance($input: UpdateZendeskInstanceInput!) {\n updateZendeskInstance(input: $input) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n createdAt\n updatedAt\n}\n ";
|
|
203
|
+
export declare const RemoveZendeskInstanceDocument = "\n mutation removeZendeskInstance($input: RemoveZendeskInstanceInput!) {\n removeZendeskInstance(input: $input) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n createdAt\n updatedAt\n}\n ";
|
|
202
204
|
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
203
205
|
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
204
206
|
getZendeskInstance(variables: GetZendeskInstanceQueryVariables, options?: C): Promise<GetZendeskInstanceQuery>;
|