@droz-js/sdk 0.2.14 → 0.2.16
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 +2 -2
- package/src/client/helpers.d.ts +1 -1
- package/src/client/helpers.js +1 -1
- package/src/client/http.js +1 -1
- package/src/drozadmin.d.ts +18 -0
- package/src/drozadmin.js +21 -0
- package/src/drozchat-ws.d.ts +0 -9
- package/src/drozchat.d.ts +0 -9
- package/src/droznexo.d.ts +12 -0
- package/src/nucleus.d.ts +4 -2
- package/src/sdks/chatwidget.d.ts +1 -1
- package/src/sdks/drozbot.d.ts +1 -1
- package/src/sdks/drozchat.d.ts +28 -83
- package/src/sdks/drozchat.js +2 -44
- package/src/sdks/drozcommons.d.ts +172 -0
- package/src/sdks/drozcommons.js +77 -0
- package/src/sdks/droznexo.d.ts +101 -1
- package/src/sdks/droznexo.js +84 -1
- package/src/sdks/mercadolivre.d.ts +1 -1
- package/src/sdks/nucleus.d.ts +37 -25
- package/src/sdks/nucleus.js +14 -12
- package/src/sdks/reclameaqui.d.ts +1 -1
- package/src/sdks/zendesk.d.ts +1 -1
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
export type Maybe<T> = T;
|
|
2
|
+
export type InputMaybe<T> = T;
|
|
3
|
+
export type Exact<T extends {
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
}> = {
|
|
6
|
+
[K in keyof T]: T[K];
|
|
7
|
+
};
|
|
8
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
9
|
+
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
10
|
+
};
|
|
11
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
12
|
+
[SubKey in K]: Maybe<T[SubKey]>;
|
|
13
|
+
};
|
|
14
|
+
export type MakeEmpty<T extends {
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}, K extends keyof T> = {
|
|
17
|
+
[_ in K]?: never;
|
|
18
|
+
};
|
|
19
|
+
export type Incremental<T> = T | {
|
|
20
|
+
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
21
|
+
};
|
|
22
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
23
|
+
export type Scalars = {
|
|
24
|
+
ID: {
|
|
25
|
+
input: string;
|
|
26
|
+
output: string;
|
|
27
|
+
};
|
|
28
|
+
String: {
|
|
29
|
+
input: string;
|
|
30
|
+
output: string;
|
|
31
|
+
};
|
|
32
|
+
Boolean: {
|
|
33
|
+
input: boolean;
|
|
34
|
+
output: boolean;
|
|
35
|
+
};
|
|
36
|
+
Int: {
|
|
37
|
+
input: number;
|
|
38
|
+
output: number;
|
|
39
|
+
};
|
|
40
|
+
Float: {
|
|
41
|
+
input: number;
|
|
42
|
+
output: number;
|
|
43
|
+
};
|
|
44
|
+
Base64: {
|
|
45
|
+
input: object;
|
|
46
|
+
output: string;
|
|
47
|
+
};
|
|
48
|
+
DRN: {
|
|
49
|
+
input: string;
|
|
50
|
+
output: string;
|
|
51
|
+
};
|
|
52
|
+
Date: {
|
|
53
|
+
input: Date;
|
|
54
|
+
output: Date;
|
|
55
|
+
};
|
|
56
|
+
DateTime: {
|
|
57
|
+
input: Date;
|
|
58
|
+
output: Date;
|
|
59
|
+
};
|
|
60
|
+
EmailAddress: {
|
|
61
|
+
input: string;
|
|
62
|
+
output: string;
|
|
63
|
+
};
|
|
64
|
+
JSON: {
|
|
65
|
+
input: any;
|
|
66
|
+
output: any;
|
|
67
|
+
};
|
|
68
|
+
JSONObject: {
|
|
69
|
+
input: any;
|
|
70
|
+
output: any;
|
|
71
|
+
};
|
|
72
|
+
PhoneNumber: {
|
|
73
|
+
input: string;
|
|
74
|
+
output: string;
|
|
75
|
+
};
|
|
76
|
+
Set: {
|
|
77
|
+
input: any;
|
|
78
|
+
output: any[];
|
|
79
|
+
};
|
|
80
|
+
URL: {
|
|
81
|
+
input: string;
|
|
82
|
+
output: string;
|
|
83
|
+
};
|
|
84
|
+
Void: {
|
|
85
|
+
input: void;
|
|
86
|
+
output: void;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
export declare enum AppInstanceStatus {
|
|
90
|
+
Active = "Active",
|
|
91
|
+
Failing = "Failing",
|
|
92
|
+
Inactive = "Inactive"
|
|
93
|
+
}
|
|
94
|
+
export type Mutation = {
|
|
95
|
+
version?: Maybe<Scalars['String']['output']>;
|
|
96
|
+
};
|
|
97
|
+
export type PageInfo = {
|
|
98
|
+
hasNext: Scalars['Boolean']['output'];
|
|
99
|
+
next?: Maybe<Scalars['Base64']['output']>;
|
|
100
|
+
};
|
|
101
|
+
export type Query = {
|
|
102
|
+
app?: Maybe<Scalars['DRN']['output']>;
|
|
103
|
+
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
104
|
+
getTenant?: Maybe<Tenant>;
|
|
105
|
+
listServices: Array<Maybe<Service>>;
|
|
106
|
+
listTenants: Array<Maybe<Tenant>>;
|
|
107
|
+
version?: Maybe<Scalars['String']['output']>;
|
|
108
|
+
};
|
|
109
|
+
export type QueryGetTenantArgs = {
|
|
110
|
+
tenantId: Scalars['ID']['input'];
|
|
111
|
+
};
|
|
112
|
+
export type QueryListServicesArgs = {
|
|
113
|
+
tenantId: Scalars['ID']['input'];
|
|
114
|
+
};
|
|
115
|
+
export type Service = {
|
|
116
|
+
accountId: Scalars['ID']['output'];
|
|
117
|
+
endpoint: Scalars['String']['output'];
|
|
118
|
+
serviceId: Scalars['ID']['output'];
|
|
119
|
+
tenantId: Scalars['ID']['output'];
|
|
120
|
+
type: Scalars['String']['output'];
|
|
121
|
+
};
|
|
122
|
+
export type Tenant = {
|
|
123
|
+
accountId: Scalars['ID']['output'];
|
|
124
|
+
createdAt: Scalars['DateTime']['output'];
|
|
125
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
126
|
+
services: Array<Maybe<Service>>;
|
|
127
|
+
tenantId: Scalars['ID']['output'];
|
|
128
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
129
|
+
};
|
|
130
|
+
export declare enum Typenames {
|
|
131
|
+
Any = "Any",
|
|
132
|
+
GraphqlConnections = "GraphqlConnections",
|
|
133
|
+
GraphqlSubscriptions = "GraphqlSubscriptions"
|
|
134
|
+
}
|
|
135
|
+
export type ServiceFragment = Pick<Service, 'accountId' | 'tenantId' | 'serviceId' | 'type' | 'endpoint'>;
|
|
136
|
+
export type ListServicesQueryVariables = Exact<{
|
|
137
|
+
tenantId: Scalars['ID']['input'];
|
|
138
|
+
}>;
|
|
139
|
+
export type ListServicesQuery = {
|
|
140
|
+
listServices: Array<Maybe<ServiceFragment>>;
|
|
141
|
+
};
|
|
142
|
+
export type TenantFragment = Pick<Tenant, 'tenantId' | 'name' | 'createdAt' | 'updatedAt'>;
|
|
143
|
+
export type GetTenantQueryVariables = Exact<{
|
|
144
|
+
tenantId: Scalars['ID']['input'];
|
|
145
|
+
withServices?: InputMaybe<Scalars['Boolean']['input']>;
|
|
146
|
+
}>;
|
|
147
|
+
export type GetTenantQuery = {
|
|
148
|
+
getTenant?: Maybe<({
|
|
149
|
+
services?: Array<Maybe<ServiceFragment>>;
|
|
150
|
+
} & TenantFragment)>;
|
|
151
|
+
};
|
|
152
|
+
export type ListTenantsQueryVariables = Exact<{
|
|
153
|
+
withServices?: InputMaybe<Scalars['Boolean']['input']>;
|
|
154
|
+
}>;
|
|
155
|
+
export type ListTenantsQuery = {
|
|
156
|
+
listTenants: Array<Maybe<({
|
|
157
|
+
services?: Array<Maybe<ServiceFragment>>;
|
|
158
|
+
} & TenantFragment)>>;
|
|
159
|
+
};
|
|
160
|
+
export declare const ServiceFragmentDoc = "\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
|
|
161
|
+
export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n tenantId\n name\n createdAt\n updatedAt\n}\n ";
|
|
162
|
+
export declare const ListServicesDocument = "\n query listServices($tenantId: ID!) {\n listServices(tenantId: $tenantId) {\n ...service\n }\n}\n \n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
|
|
163
|
+
export declare const GetTenantDocument = "\n query getTenant($tenantId: ID!, $withServices: Boolean = true) {\n getTenant(tenantId: $tenantId) {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n }\n}\n \n fragment tenant on Tenant {\n tenantId\n name\n createdAt\n updatedAt\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
|
|
164
|
+
export declare const ListTenantsDocument = "\n query listTenants($withServices: Boolean = false) {\n listTenants {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n }\n}\n \n fragment tenant on Tenant {\n tenantId\n name\n createdAt\n updatedAt\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
|
|
165
|
+
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
166
|
+
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
167
|
+
listServices(variables: ListServicesQueryVariables, options?: C): Promise<ListServicesQuery>;
|
|
168
|
+
getTenant(variables: GetTenantQueryVariables, options?: C): Promise<GetTenantQuery>;
|
|
169
|
+
listTenants(variables?: ListTenantsQueryVariables, options?: C): Promise<ListTenantsQuery>;
|
|
170
|
+
};
|
|
171
|
+
export type Sdk = ReturnType<typeof getSdk>;
|
|
172
|
+
export declare const serviceName = "@droz/drozcommons";
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.Typenames = exports.AppInstanceStatus = void 0;
|
|
5
|
+
var AppInstanceStatus;
|
|
6
|
+
(function (AppInstanceStatus) {
|
|
7
|
+
AppInstanceStatus["Active"] = "Active";
|
|
8
|
+
AppInstanceStatus["Failing"] = "Failing";
|
|
9
|
+
AppInstanceStatus["Inactive"] = "Inactive";
|
|
10
|
+
})(AppInstanceStatus || (exports.AppInstanceStatus = AppInstanceStatus = {}));
|
|
11
|
+
var Typenames;
|
|
12
|
+
(function (Typenames) {
|
|
13
|
+
Typenames["Any"] = "Any";
|
|
14
|
+
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
15
|
+
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
16
|
+
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
17
|
+
exports.ServiceFragmentDoc = `
|
|
18
|
+
fragment service on Service {
|
|
19
|
+
accountId
|
|
20
|
+
tenantId
|
|
21
|
+
serviceId
|
|
22
|
+
type
|
|
23
|
+
endpoint
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
26
|
+
exports.TenantFragmentDoc = `
|
|
27
|
+
fragment tenant on Tenant {
|
|
28
|
+
tenantId
|
|
29
|
+
name
|
|
30
|
+
createdAt
|
|
31
|
+
updatedAt
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
exports.ListServicesDocument = `
|
|
35
|
+
query listServices($tenantId: ID!) {
|
|
36
|
+
listServices(tenantId: $tenantId) {
|
|
37
|
+
...service
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
${exports.ServiceFragmentDoc}`;
|
|
41
|
+
exports.GetTenantDocument = `
|
|
42
|
+
query getTenant($tenantId: ID!, $withServices: Boolean = true) {
|
|
43
|
+
getTenant(tenantId: $tenantId) {
|
|
44
|
+
...tenant
|
|
45
|
+
services @include(if: $withServices) {
|
|
46
|
+
...service
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
${exports.TenantFragmentDoc}
|
|
51
|
+
${exports.ServiceFragmentDoc}`;
|
|
52
|
+
exports.ListTenantsDocument = `
|
|
53
|
+
query listTenants($withServices: Boolean = false) {
|
|
54
|
+
listTenants {
|
|
55
|
+
...tenant
|
|
56
|
+
services @include(if: $withServices) {
|
|
57
|
+
...service
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
${exports.TenantFragmentDoc}
|
|
62
|
+
${exports.ServiceFragmentDoc}`;
|
|
63
|
+
function getSdk(requester) {
|
|
64
|
+
return {
|
|
65
|
+
listServices(variables, options) {
|
|
66
|
+
return requester(exports.ListServicesDocument, variables, options);
|
|
67
|
+
},
|
|
68
|
+
getTenant(variables, options) {
|
|
69
|
+
return requester(exports.GetTenantDocument, variables, options);
|
|
70
|
+
},
|
|
71
|
+
listTenants(variables, options) {
|
|
72
|
+
return requester(exports.ListTenantsDocument, variables, options);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
exports.getSdk = getSdk;
|
|
77
|
+
exports.serviceName = '@droz/drozcommons';
|
package/src/sdks/droznexo.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ export type Scalars = {
|
|
|
74
74
|
output: string;
|
|
75
75
|
};
|
|
76
76
|
Set: {
|
|
77
|
-
input:
|
|
77
|
+
input: any;
|
|
78
78
|
output: any[];
|
|
79
79
|
};
|
|
80
80
|
URL: {
|
|
@@ -99,6 +99,10 @@ export type CreateDrozNexoAgentInput = {
|
|
|
99
99
|
groupIds: Scalars['Set']['input'];
|
|
100
100
|
name: Scalars['String']['input'];
|
|
101
101
|
};
|
|
102
|
+
export type CreateDrozNexoConnectionInput = {
|
|
103
|
+
destinationDrn: Scalars['DRN']['input'];
|
|
104
|
+
triggerDrn: Scalars['DRN']['input'];
|
|
105
|
+
};
|
|
102
106
|
export type DrozNexoAgent = {
|
|
103
107
|
createdAt: Scalars['DateTime']['output'];
|
|
104
108
|
email: Scalars['EmailAddress']['output'];
|
|
@@ -125,9 +129,40 @@ export type DrozNexoAgentsConnection = {
|
|
|
125
129
|
nodes: Array<DrozNexoAgent>;
|
|
126
130
|
pageInfo: PageInfo;
|
|
127
131
|
};
|
|
132
|
+
export type DrozNexoApp = {
|
|
133
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
134
|
+
id: Scalars['ID']['output'];
|
|
135
|
+
name: Scalars['String']['output'];
|
|
136
|
+
};
|
|
137
|
+
export type DrozNexoAppAndAppInstance = {
|
|
138
|
+
app: DrozNexoApp;
|
|
139
|
+
appInstance: DrozNexoAppInstance;
|
|
140
|
+
};
|
|
141
|
+
export type DrozNexoAppInstance = {
|
|
142
|
+
createdAt: Scalars['DateTime']['output'];
|
|
143
|
+
drn: Scalars['DRN']['output'];
|
|
144
|
+
name: Scalars['String']['output'];
|
|
145
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
146
|
+
};
|
|
147
|
+
export type DrozNexoConnection = {
|
|
148
|
+
destination: DrozNexoAppAndAppInstance;
|
|
149
|
+
id: Scalars['ID']['output'];
|
|
150
|
+
trigger: DrozNexoAppAndAppInstance;
|
|
151
|
+
versionId: Scalars['ID']['output'];
|
|
152
|
+
};
|
|
153
|
+
export type DrozNexoConnectionConnection = {
|
|
154
|
+
nodes: Array<DrozNexoConnection>;
|
|
155
|
+
pageInfo: PageInfo;
|
|
156
|
+
};
|
|
157
|
+
export type DrozNexoConnectionSuggestion = {
|
|
158
|
+
destination: DrozNexoAppAndAppInstance;
|
|
159
|
+
trigger: DrozNexoAppAndAppInstance;
|
|
160
|
+
};
|
|
128
161
|
export type Mutation = {
|
|
129
162
|
createDrozNexoAgent: DrozNexoAgent;
|
|
130
163
|
createDrozNexoAgentGroup: DrozNexoAgentGroup;
|
|
164
|
+
createDrozNexoConnection: DrozNexoConnection;
|
|
165
|
+
removeDrozNexoConnection: DrozNexoConnection;
|
|
131
166
|
version?: Maybe<Scalars['String']['output']>;
|
|
132
167
|
};
|
|
133
168
|
export type MutationCreateDrozNexoAgentArgs = {
|
|
@@ -136,6 +171,12 @@ export type MutationCreateDrozNexoAgentArgs = {
|
|
|
136
171
|
export type MutationCreateDrozNexoAgentGroupArgs = {
|
|
137
172
|
input: CreateDrozNexoAgentGroupInput;
|
|
138
173
|
};
|
|
174
|
+
export type MutationCreateDrozNexoConnectionArgs = {
|
|
175
|
+
input: CreateDrozNexoConnectionInput;
|
|
176
|
+
};
|
|
177
|
+
export type MutationRemoveDrozNexoConnectionArgs = {
|
|
178
|
+
input: RemoveDrozNexoConnectionInput;
|
|
179
|
+
};
|
|
139
180
|
export type PageInfo = {
|
|
140
181
|
hasNext: Scalars['Boolean']['output'];
|
|
141
182
|
next?: Maybe<Scalars['Base64']['output']>;
|
|
@@ -146,6 +187,8 @@ export type Query = {
|
|
|
146
187
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
147
188
|
listDrozNexoAgentGroups: DrozNexoAgentGroupsConnection;
|
|
148
189
|
listDrozNexoAgents: DrozNexoAgentsConnection;
|
|
190
|
+
listDrozNexoConnections: DrozNexoConnectionConnection;
|
|
191
|
+
listDrozNexoSuggestions: Array<DrozNexoConnectionSuggestion>;
|
|
149
192
|
version?: Maybe<Scalars['String']['output']>;
|
|
150
193
|
};
|
|
151
194
|
export type QueryGetDrozNexoAgentArgs = {
|
|
@@ -157,6 +200,13 @@ export type QueryListDrozNexoAgentGroupsArgs = {
|
|
|
157
200
|
export type QueryListDrozNexoAgentsArgs = {
|
|
158
201
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
159
202
|
};
|
|
203
|
+
export type QueryListDrozNexoConnectionsArgs = {
|
|
204
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
205
|
+
};
|
|
206
|
+
export type RemoveDrozNexoConnectionInput = {
|
|
207
|
+
id: Scalars['ID']['input'];
|
|
208
|
+
versionId: Scalars['ID']['input'];
|
|
209
|
+
};
|
|
160
210
|
export declare enum Typenames {
|
|
161
211
|
Any = "Any",
|
|
162
212
|
DrozNexoAgentExtension = "DrozNexoAgentExtension",
|
|
@@ -206,13 +256,59 @@ export type ListDrozNexoAgentGroupsQuery = {
|
|
|
206
256
|
nodes: Array<DrozNexoAgentGroupFragment>;
|
|
207
257
|
};
|
|
208
258
|
};
|
|
259
|
+
export type DrozNexoAppInstanceFragment = {
|
|
260
|
+
app: Pick<DrozNexoApp, 'id' | 'name' | 'description'>;
|
|
261
|
+
appInstance: Pick<DrozNexoAppInstance, 'drn' | 'name' | 'createdAt' | 'updatedAt'>;
|
|
262
|
+
};
|
|
263
|
+
export type DrozNexoSuggestionFragment = {
|
|
264
|
+
trigger: DrozNexoAppInstanceFragment;
|
|
265
|
+
destination: DrozNexoAppInstanceFragment;
|
|
266
|
+
};
|
|
267
|
+
export type DrozNexoConnectionFragment = (Pick<DrozNexoConnection, 'id' | 'versionId'> & {
|
|
268
|
+
trigger: DrozNexoAppInstanceFragment;
|
|
269
|
+
destination: DrozNexoAppInstanceFragment;
|
|
270
|
+
});
|
|
271
|
+
export type ListDrozNexoSuggestionsQueryVariables = Exact<{
|
|
272
|
+
[key: string]: never;
|
|
273
|
+
}>;
|
|
274
|
+
export type ListDrozNexoSuggestionsQuery = {
|
|
275
|
+
listDrozNexoSuggestions: Array<DrozNexoSuggestionFragment>;
|
|
276
|
+
};
|
|
277
|
+
export type ListDrozNexoConnectionsQueryVariables = Exact<{
|
|
278
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
279
|
+
}>;
|
|
280
|
+
export type ListDrozNexoConnectionsQuery = {
|
|
281
|
+
listDrozNexoConnections: {
|
|
282
|
+
nodes: Array<DrozNexoConnectionFragment>;
|
|
283
|
+
pageInfo: Pick<PageInfo, 'next' | 'hasNext'>;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
export type CreateDrozNexoConnectionMutationVariables = Exact<{
|
|
287
|
+
input: CreateDrozNexoConnectionInput;
|
|
288
|
+
}>;
|
|
289
|
+
export type CreateDrozNexoConnectionMutation = {
|
|
290
|
+
createDrozNexoConnection: DrozNexoConnectionFragment;
|
|
291
|
+
};
|
|
292
|
+
export type RemoveDrozNexoConnectionMutationVariables = Exact<{
|
|
293
|
+
input: RemoveDrozNexoConnectionInput;
|
|
294
|
+
}>;
|
|
295
|
+
export type RemoveDrozNexoConnectionMutation = {
|
|
296
|
+
removeDrozNexoConnection: DrozNexoConnectionFragment;
|
|
297
|
+
};
|
|
209
298
|
export declare const DrozNexoAgentGroupFragmentDoc = "\n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
210
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
|
+
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
|
+
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
|
+
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 ";
|
|
211
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 ";
|
|
212
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 ";
|
|
213
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 ";
|
|
214
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 ";
|
|
215
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
|
+
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
|
+
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
|
+
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
|
+
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 ";
|
|
216
312
|
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
217
313
|
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
218
314
|
createDrozNexoAgent(variables: CreateDrozNexoAgentMutationVariables, options?: C): Promise<CreateDrozNexoAgentMutation>;
|
|
@@ -220,6 +316,10 @@ export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
|
220
316
|
getDrozNexoAgent(variables: GetDrozNexoAgentQueryVariables, options?: C): Promise<GetDrozNexoAgentQuery>;
|
|
221
317
|
createDrozNexoAgentGroup(variables: CreateDrozNexoAgentGroupMutationVariables, options?: C): Promise<CreateDrozNexoAgentGroupMutation>;
|
|
222
318
|
listDrozNexoAgentGroups(variables?: ListDrozNexoAgentGroupsQueryVariables, options?: C): Promise<ListDrozNexoAgentGroupsQuery>;
|
|
319
|
+
listDrozNexoSuggestions(variables?: ListDrozNexoSuggestionsQueryVariables, options?: C): Promise<ListDrozNexoSuggestionsQuery>;
|
|
320
|
+
listDrozNexoConnections(variables?: ListDrozNexoConnectionsQueryVariables, options?: C): Promise<ListDrozNexoConnectionsQuery>;
|
|
321
|
+
createDrozNexoConnection(variables: CreateDrozNexoConnectionMutationVariables, options?: C): Promise<CreateDrozNexoConnectionMutation>;
|
|
322
|
+
removeDrozNexoConnection(variables: RemoveDrozNexoConnectionMutationVariables, options?: C): Promise<RemoveDrozNexoConnectionMutation>;
|
|
223
323
|
};
|
|
224
324
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
225
325
|
export declare const serviceName = "@droz/droznexo";
|
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.ListDrozNexoAgentGroupsDocument = exports.CreateDrozNexoAgentGroupDocument = exports.GetDrozNexoAgentDocument = exports.ListDrozNexoAgentsDocument = exports.CreateDrozNexoAgentDocument = exports.DrozNexoAgentFragmentDoc = exports.DrozNexoAgentGroupFragmentDoc = exports.Typenames = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.RemoveDrozNexoConnectionDocument = exports.CreateDrozNexoConnectionDocument = exports.ListDrozNexoConnectionsDocument = exports.ListDrozNexoSuggestionsDocument = exports.ListDrozNexoAgentGroupsDocument = exports.CreateDrozNexoAgentGroupDocument = exports.GetDrozNexoAgentDocument = exports.ListDrozNexoAgentsDocument = exports.CreateDrozNexoAgentDocument = exports.DrozNexoConnectionFragmentDoc = exports.DrozNexoSuggestionFragmentDoc = exports.DrozNexoAppInstanceFragmentDoc = exports.DrozNexoAgentFragmentDoc = exports.DrozNexoAgentGroupFragmentDoc = exports.Typenames = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -38,6 +38,43 @@ exports.DrozNexoAgentFragmentDoc = `
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
${exports.DrozNexoAgentGroupFragmentDoc}`;
|
|
41
|
+
exports.DrozNexoAppInstanceFragmentDoc = `
|
|
42
|
+
fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {
|
|
43
|
+
app {
|
|
44
|
+
id
|
|
45
|
+
name
|
|
46
|
+
description
|
|
47
|
+
}
|
|
48
|
+
appInstance {
|
|
49
|
+
drn
|
|
50
|
+
name
|
|
51
|
+
createdAt
|
|
52
|
+
updatedAt
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
`;
|
|
56
|
+
exports.DrozNexoSuggestionFragmentDoc = `
|
|
57
|
+
fragment drozNexoSuggestion on DrozNexoConnectionSuggestion {
|
|
58
|
+
trigger {
|
|
59
|
+
...drozNexoAppInstance
|
|
60
|
+
}
|
|
61
|
+
destination {
|
|
62
|
+
...drozNexoAppInstance
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
${exports.DrozNexoAppInstanceFragmentDoc}`;
|
|
66
|
+
exports.DrozNexoConnectionFragmentDoc = `
|
|
67
|
+
fragment drozNexoConnection on DrozNexoConnection {
|
|
68
|
+
id
|
|
69
|
+
versionId
|
|
70
|
+
trigger {
|
|
71
|
+
...drozNexoAppInstance
|
|
72
|
+
}
|
|
73
|
+
destination {
|
|
74
|
+
...drozNexoAppInstance
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
${exports.DrozNexoAppInstanceFragmentDoc}`;
|
|
41
78
|
exports.CreateDrozNexoAgentDocument = `
|
|
42
79
|
mutation createDrozNexoAgent($input: CreateDrozNexoAgentInput!) {
|
|
43
80
|
createDrozNexoAgent(input: $input) {
|
|
@@ -85,6 +122,40 @@ exports.ListDrozNexoAgentGroupsDocument = `
|
|
|
85
122
|
}
|
|
86
123
|
}
|
|
87
124
|
${exports.DrozNexoAgentGroupFragmentDoc}`;
|
|
125
|
+
exports.ListDrozNexoSuggestionsDocument = `
|
|
126
|
+
query listDrozNexoSuggestions {
|
|
127
|
+
listDrozNexoSuggestions {
|
|
128
|
+
...drozNexoSuggestion
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
${exports.DrozNexoSuggestionFragmentDoc}`;
|
|
132
|
+
exports.ListDrozNexoConnectionsDocument = `
|
|
133
|
+
query listDrozNexoConnections($next: Base64) {
|
|
134
|
+
listDrozNexoConnections(next: $next) {
|
|
135
|
+
nodes {
|
|
136
|
+
...drozNexoConnection
|
|
137
|
+
}
|
|
138
|
+
pageInfo {
|
|
139
|
+
next
|
|
140
|
+
hasNext
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
${exports.DrozNexoConnectionFragmentDoc}`;
|
|
145
|
+
exports.CreateDrozNexoConnectionDocument = `
|
|
146
|
+
mutation createDrozNexoConnection($input: CreateDrozNexoConnectionInput!) {
|
|
147
|
+
createDrozNexoConnection(input: $input) {
|
|
148
|
+
...drozNexoConnection
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
${exports.DrozNexoConnectionFragmentDoc}`;
|
|
152
|
+
exports.RemoveDrozNexoConnectionDocument = `
|
|
153
|
+
mutation removeDrozNexoConnection($input: RemoveDrozNexoConnectionInput!) {
|
|
154
|
+
removeDrozNexoConnection(input: $input) {
|
|
155
|
+
...drozNexoConnection
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
${exports.DrozNexoConnectionFragmentDoc}`;
|
|
88
159
|
function getSdk(requester) {
|
|
89
160
|
return {
|
|
90
161
|
createDrozNexoAgent(variables, options) {
|
|
@@ -101,6 +172,18 @@ function getSdk(requester) {
|
|
|
101
172
|
},
|
|
102
173
|
listDrozNexoAgentGroups(variables, options) {
|
|
103
174
|
return requester(exports.ListDrozNexoAgentGroupsDocument, variables, options);
|
|
175
|
+
},
|
|
176
|
+
listDrozNexoSuggestions(variables, options) {
|
|
177
|
+
return requester(exports.ListDrozNexoSuggestionsDocument, variables, options);
|
|
178
|
+
},
|
|
179
|
+
listDrozNexoConnections(variables, options) {
|
|
180
|
+
return requester(exports.ListDrozNexoConnectionsDocument, variables, options);
|
|
181
|
+
},
|
|
182
|
+
createDrozNexoConnection(variables, options) {
|
|
183
|
+
return requester(exports.CreateDrozNexoConnectionDocument, variables, options);
|
|
184
|
+
},
|
|
185
|
+
removeDrozNexoConnection(variables, options) {
|
|
186
|
+
return requester(exports.RemoveDrozNexoConnectionDocument, variables, options);
|
|
104
187
|
}
|
|
105
188
|
};
|
|
106
189
|
}
|