@droz-js/sdk 0.7.0 → 0.7.1
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/droznexo.d.ts +3 -3
- package/src/sdks/ai.d.ts +5 -0
- package/src/sdks/casasbahia.d.ts +5 -0
- package/src/sdks/chatwidget.d.ts +5 -0
- package/src/sdks/drozbot.d.ts +5 -0
- package/src/sdks/drozchat.d.ts +5 -0
- package/src/sdks/drozcommons.d.ts +5 -0
- package/src/sdks/droznexo.d.ts +29 -23
- package/src/sdks/droznexo.js +25 -21
- package/src/sdks/logger.d.ts +5 -0
- package/src/sdks/mercadolivre.d.ts +5 -0
- package/src/sdks/nucleus.d.ts +5 -0
- package/src/sdks/reclameaqui.d.ts +5 -0
- package/src/sdks/utilities.d.ts +5 -0
- package/src/sdks/whatsapp.d.ts +5 -0
- package/src/sdks/zendesk.d.ts +5 -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.7.
|
|
4
|
+
"version": "0.7.1",
|
|
5
5
|
"private": false,
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./src/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"postpack": "clean-package restore"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"graphql": "^16.8.
|
|
22
|
+
"graphql": "^16.8.2",
|
|
23
23
|
"graphql-ws": "^5.16.0",
|
|
24
24
|
"isomorphic-ws": "^5.0.0",
|
|
25
25
|
"inbatches": "^0.0.10"
|
package/src/droznexo.d.ts
CHANGED
|
@@ -9,9 +9,6 @@ declare const DrozNexo_base: new (options?: import("./client/http").HttpClientOp
|
|
|
9
9
|
getUsageStatistics(variables?: import("./sdks/droznexo").Exact<{
|
|
10
10
|
[key: string]: never;
|
|
11
11
|
}>, options?: unknown): Promise<import("./sdks/droznexo").GetUsageStatisticsQuery>;
|
|
12
|
-
getLicence(variables?: import("./sdks/droznexo").Exact<{
|
|
13
|
-
[key: string]: never;
|
|
14
|
-
}>, options?: unknown): Promise<import("./sdks/droznexo").GetLicenceQuery>;
|
|
15
12
|
getFlow(variables: import("./sdks/droznexo").Exact<{
|
|
16
13
|
id: string;
|
|
17
14
|
versionId: string;
|
|
@@ -50,6 +47,9 @@ declare const DrozNexo_base: new (options?: import("./client/http").HttpClientOp
|
|
|
50
47
|
removeSimpleConnection(variables: import("./sdks/droznexo").Exact<{
|
|
51
48
|
input: import("./sdks/droznexo").RemoveSimpleConnectionInput;
|
|
52
49
|
}>, options?: unknown): Promise<import("./sdks/droznexo").RemoveSimpleConnectionMutation>;
|
|
50
|
+
getLicence(variables?: import("./sdks/droznexo").Exact<{
|
|
51
|
+
[key: string]: never;
|
|
52
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").GetLicenceQuery>;
|
|
53
53
|
};
|
|
54
54
|
export declare class DrozNexo extends DrozNexo_base {
|
|
55
55
|
}
|
package/src/sdks/ai.d.ts
CHANGED
|
@@ -118,6 +118,11 @@ export type Scalars = {
|
|
|
118
118
|
output: void;
|
|
119
119
|
};
|
|
120
120
|
};
|
|
121
|
+
export type AgentInfo = {
|
|
122
|
+
id: Scalars['ID']['output'];
|
|
123
|
+
name: Scalars['String']['output'];
|
|
124
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
125
|
+
};
|
|
121
126
|
export declare enum AppInstanceStatus {
|
|
122
127
|
Active = "Active",
|
|
123
128
|
Failing = "Failing",
|
package/src/sdks/casasbahia.d.ts
CHANGED
|
@@ -118,6 +118,11 @@ export type Scalars = {
|
|
|
118
118
|
output: void;
|
|
119
119
|
};
|
|
120
120
|
};
|
|
121
|
+
export type AgentInfo = {
|
|
122
|
+
id: Scalars['ID']['output'];
|
|
123
|
+
name: Scalars['String']['output'];
|
|
124
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
125
|
+
};
|
|
121
126
|
export declare enum AppInstanceStatus {
|
|
122
127
|
Active = "Active",
|
|
123
128
|
Failing = "Failing",
|
package/src/sdks/chatwidget.d.ts
CHANGED
|
@@ -118,6 +118,11 @@ export type Scalars = {
|
|
|
118
118
|
output: void;
|
|
119
119
|
};
|
|
120
120
|
};
|
|
121
|
+
export type AgentInfo = {
|
|
122
|
+
id: Scalars['ID']['output'];
|
|
123
|
+
name: Scalars['String']['output'];
|
|
124
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
125
|
+
};
|
|
121
126
|
export declare enum AppInstanceStatus {
|
|
122
127
|
Active = "Active",
|
|
123
128
|
Failing = "Failing",
|
package/src/sdks/drozbot.d.ts
CHANGED
|
@@ -118,6 +118,11 @@ export type Scalars = {
|
|
|
118
118
|
output: void;
|
|
119
119
|
};
|
|
120
120
|
};
|
|
121
|
+
export type AgentInfo = {
|
|
122
|
+
id: Scalars['ID']['output'];
|
|
123
|
+
name: Scalars['String']['output'];
|
|
124
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
125
|
+
};
|
|
121
126
|
export declare enum AppInstanceStatus {
|
|
122
127
|
Active = "Active",
|
|
123
128
|
Failing = "Failing",
|
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -126,6 +126,11 @@ export type AddTagsToTicketInput = {
|
|
|
126
126
|
tags: Array<Scalars['String']['input']>;
|
|
127
127
|
ticketId: Scalars['ID']['input'];
|
|
128
128
|
};
|
|
129
|
+
export type AgentInfo = {
|
|
130
|
+
id: Scalars['ID']['output'];
|
|
131
|
+
name: Scalars['String']['output'];
|
|
132
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
133
|
+
};
|
|
129
134
|
export type AgentSearchResultsFacet = {
|
|
130
135
|
name: Scalars['String']['output'];
|
|
131
136
|
stats?: Maybe<SearchResultsFacetStats>;
|
|
@@ -118,6 +118,11 @@ export type Scalars = {
|
|
|
118
118
|
output: void;
|
|
119
119
|
};
|
|
120
120
|
};
|
|
121
|
+
export type AgentInfo = {
|
|
122
|
+
id: Scalars['ID']['output'];
|
|
123
|
+
name: Scalars['String']['output'];
|
|
124
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
125
|
+
};
|
|
121
126
|
export declare enum AppInstanceStatus {
|
|
122
127
|
Active = "Active",
|
|
123
128
|
Failing = "Failing",
|
package/src/sdks/droznexo.d.ts
CHANGED
|
@@ -118,6 +118,11 @@ export type Scalars = {
|
|
|
118
118
|
output: void;
|
|
119
119
|
};
|
|
120
120
|
};
|
|
121
|
+
export type AgentInfo = {
|
|
122
|
+
id: Scalars['ID']['output'];
|
|
123
|
+
name: Scalars['String']['output'];
|
|
124
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
125
|
+
};
|
|
121
126
|
export type AppAndAppInstance = {
|
|
122
127
|
app: DrozNexoApp;
|
|
123
128
|
appInstance: DrozNexoAppInstance;
|
|
@@ -196,7 +201,7 @@ export type EditFlowInput = {
|
|
|
196
201
|
};
|
|
197
202
|
export type Flow = {
|
|
198
203
|
createdAt: Scalars['DateTime']['output'];
|
|
199
|
-
createdBy?: Maybe<
|
|
204
|
+
createdBy?: Maybe<AgentInfo>;
|
|
200
205
|
description?: Maybe<Scalars['String']['output']>;
|
|
201
206
|
edges: Array<Edge>;
|
|
202
207
|
id: Scalars['ID']['output'];
|
|
@@ -437,7 +442,8 @@ export type NodeFragment = (Pick<Node, 'id' | 'type' | 'uidata'> & {
|
|
|
437
442
|
data: AppAndAppInstanceFragment;
|
|
438
443
|
});
|
|
439
444
|
export type EdgeFragment = Pick<Edge, 'id' | 'source' | 'target' | 'targetType' | 'type' | 'sourceHandle' | 'uidata'>;
|
|
440
|
-
export type FlowFragment = (Pick<Flow, 'id' | 'versionId' | 'title' | 'description' | 'status' | 'languages' | '
|
|
445
|
+
export type FlowFragment = (Pick<Flow, 'id' | 'versionId' | 'title' | 'description' | 'status' | 'languages' | 'createdAt' | 'updatedAt'> & {
|
|
446
|
+
createdBy?: Maybe<Pick<AgentInfo, 'id' | 'name' | 'picture'>>;
|
|
441
447
|
triggers: Array<AppAndAppInstanceFragment>;
|
|
442
448
|
nodes: Array<NodeFragment>;
|
|
443
449
|
edges: Array<EdgeFragment>;
|
|
@@ -448,17 +454,6 @@ export type GetUsageStatisticsQueryVariables = Exact<{
|
|
|
448
454
|
export type GetUsageStatisticsQuery = {
|
|
449
455
|
getUsageStatistics?: Maybe<Pick<DrozNexoUsageStatistics, 'totalSecrets' | 'totalAppInstances' | 'totalConnections'>>;
|
|
450
456
|
};
|
|
451
|
-
export type GetLicenceQueryVariables = Exact<{
|
|
452
|
-
[key: string]: never;
|
|
453
|
-
}>;
|
|
454
|
-
export type GetLicenceQuery = {
|
|
455
|
-
getLicence?: Maybe<(Pick<DrozNexoLicence, 'tenantId' | 'name'> & {
|
|
456
|
-
billing: {
|
|
457
|
-
automate: Pick<AutomateConfiguration, 'isEnabled'>;
|
|
458
|
-
reclameaqui: Pick<ReclameAquiConfiguration, 'cutoffSyncDays'>;
|
|
459
|
-
};
|
|
460
|
-
})>;
|
|
461
|
-
};
|
|
462
457
|
export type GetFlowQueryVariables = Exact<{
|
|
463
458
|
id: Scalars['ID']['input'];
|
|
464
459
|
versionId: Scalars['ID']['input'];
|
|
@@ -539,30 +534,40 @@ export type RemoveSimpleConnectionMutationVariables = Exact<{
|
|
|
539
534
|
export type RemoveSimpleConnectionMutation = {
|
|
540
535
|
removeSimpleConnection: SimpleConnectionFragment;
|
|
541
536
|
};
|
|
537
|
+
export type GetLicenceQueryVariables = Exact<{
|
|
538
|
+
[key: string]: never;
|
|
539
|
+
}>;
|
|
540
|
+
export type GetLicenceQuery = {
|
|
541
|
+
getLicence?: Maybe<(Pick<DrozNexoLicence, 'tenantId' | 'name'> & {
|
|
542
|
+
billing: {
|
|
543
|
+
automate: Pick<AutomateConfiguration, 'isEnabled'>;
|
|
544
|
+
reclameaqui: Pick<ReclameAquiConfiguration, 'cutoffSyncDays'>;
|
|
545
|
+
};
|
|
546
|
+
})>;
|
|
547
|
+
};
|
|
542
548
|
export declare const AppAndAppInstanceFragmentDoc = "\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n ";
|
|
543
549
|
export declare const SimpleConnectionSuggestionFragmentDoc = "\n fragment simpleConnectionSuggestion on SimpleConnectionSuggestion {\n title\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n}\n ";
|
|
544
550
|
export declare const SimpleConnectionFragmentDoc = "\n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n}\n ";
|
|
545
551
|
export declare const NodeFragmentDoc = "\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n ";
|
|
546
552
|
export declare const EdgeFragmentDoc = "\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
547
|
-
export declare const FlowFragmentDoc = "\n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n ";
|
|
553
|
+
export declare const FlowFragmentDoc = "\n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n ";
|
|
548
554
|
export declare const GetUsageStatisticsDocument = "\n query getUsageStatistics {\n getUsageStatistics {\n totalSecrets\n totalAppInstances\n totalConnections\n }\n}\n ";
|
|
549
|
-
export declare const
|
|
550
|
-
export declare const
|
|
551
|
-
export declare const ListFlowsDocument = "\n query listFlows($statuses: [FlowStatus], $next: Base64) {\n listFlows(next: $next, statuses: $statuses) {\n nodes {\n ...flow\n }\n pageInfo {\n next\n hasNext\n }\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
555
|
+
export declare const GetFlowDocument = "\n query getFlow($id: ID!, $versionId: ID!) {\n getFlow(id: $id, versionId: $versionId) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
556
|
+
export declare const ListFlowsDocument = "\n query listFlows($statuses: [FlowStatus], $next: Base64) {\n listFlows(next: $next, statuses: $statuses) {\n nodes {\n ...flow\n }\n pageInfo {\n next\n hasNext\n }\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
552
557
|
export declare const ListSimpleSuggestionsDocument = "\n query listSimpleSuggestions {\n listSimpleConnectionSuggestions {\n ...simpleConnectionSuggestion\n }\n}\n \n fragment simpleConnectionSuggestion on SimpleConnectionSuggestion {\n title\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n ";
|
|
553
558
|
export declare const ListSimpleConnectionsDocument = "\n query listSimpleConnections($next: Base64) {\n listSimpleConnections(next: $next) {\n nodes {\n ...simpleConnection\n }\n pageInfo {\n next\n hasNext\n }\n }\n}\n \n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n ";
|
|
554
|
-
export declare const CreateFlowDocument = "\n mutation createFlow($input: CreateFlowInput!) {\n createFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
555
|
-
export declare const EditFlowDocument = "\n mutation editFlow($input: EditFlowInput!) {\n editFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
556
|
-
export declare const UpdateFlowDocument = "\n mutation updateFlow($input: UpdateFlowInput!) {\n updateFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
557
|
-
export declare const PublishFlowDocument = "\n mutation publishFlow($input: PublishFlowInput!) {\n publishFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
559
|
+
export declare const CreateFlowDocument = "\n mutation createFlow($input: CreateFlowInput!) {\n createFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
560
|
+
export declare const EditFlowDocument = "\n mutation editFlow($input: EditFlowInput!) {\n editFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
561
|
+
export declare const UpdateFlowDocument = "\n mutation updateFlow($input: UpdateFlowInput!) {\n updateFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
562
|
+
export declare const PublishFlowDocument = "\n mutation publishFlow($input: PublishFlowInput!) {\n publishFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
558
563
|
export declare const TestFlowDocument = "\n mutation testFlow($input: TestFlowInput!) {\n testFlow(input: $input) {\n sessionId\n }\n}\n ";
|
|
559
|
-
export declare const RemoveFlowDocument = "\n mutation removeFlow($input: RemoveFlowInput!) {\n removeFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
564
|
+
export declare const RemoveFlowDocument = "\n mutation removeFlow($input: RemoveFlowInput!) {\n removeFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
560
565
|
export declare const CreateSimpleConnectionDocument = "\n mutation createSimpleConnection($input: CreateSimpleConnectionInput!) {\n createSimpleConnection(input: $input) {\n ...simpleConnection\n }\n}\n \n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n ";
|
|
561
566
|
export declare const RemoveSimpleConnectionDocument = "\n mutation removeSimpleConnection($input: RemoveSimpleConnectionInput!) {\n removeSimpleConnection(input: $input) {\n ...simpleConnection\n }\n}\n \n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n ";
|
|
567
|
+
export declare const GetLicenceDocument = "\n query getLicence {\n getLicence {\n tenantId\n name\n billing {\n automate {\n isEnabled\n }\n reclameaqui {\n cutoffSyncDays\n }\n }\n }\n}\n ";
|
|
562
568
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
563
569
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
564
570
|
getUsageStatistics(variables?: GetUsageStatisticsQueryVariables, options?: C): Promise<GetUsageStatisticsQuery>;
|
|
565
|
-
getLicence(variables?: GetLicenceQueryVariables, options?: C): Promise<GetLicenceQuery>;
|
|
566
571
|
getFlow(variables: GetFlowQueryVariables, options?: C): Promise<GetFlowQuery>;
|
|
567
572
|
listFlows(variables?: ListFlowsQueryVariables, options?: C): Promise<ListFlowsQuery>;
|
|
568
573
|
listSimpleSuggestions(variables?: ListSimpleSuggestionsQueryVariables, options?: C): Promise<ListSimpleSuggestionsQuery>;
|
|
@@ -575,6 +580,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
575
580
|
removeFlow(variables: RemoveFlowMutationVariables, options?: C): Promise<RemoveFlowMutation>;
|
|
576
581
|
createSimpleConnection(variables: CreateSimpleConnectionMutationVariables, options?: C): Promise<CreateSimpleConnectionMutation>;
|
|
577
582
|
removeSimpleConnection(variables: RemoveSimpleConnectionMutationVariables, options?: C): Promise<RemoveSimpleConnectionMutation>;
|
|
583
|
+
getLicence(variables?: GetLicenceQueryVariables, options?: C): Promise<GetLicenceQuery>;
|
|
578
584
|
};
|
|
579
585
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
580
586
|
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.RemoveSimpleConnectionDocument = exports.CreateSimpleConnectionDocument = exports.RemoveFlowDocument = exports.TestFlowDocument = exports.PublishFlowDocument = exports.UpdateFlowDocument = exports.EditFlowDocument = exports.CreateFlowDocument = exports.ListSimpleConnectionsDocument = exports.ListSimpleSuggestionsDocument = exports.ListFlowsDocument = exports.GetFlowDocument = exports.
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.GetLicenceDocument = exports.RemoveSimpleConnectionDocument = exports.CreateSimpleConnectionDocument = exports.RemoveFlowDocument = exports.TestFlowDocument = exports.PublishFlowDocument = exports.UpdateFlowDocument = exports.EditFlowDocument = exports.CreateFlowDocument = exports.ListSimpleConnectionsDocument = exports.ListSimpleSuggestionsDocument = exports.ListFlowsDocument = exports.GetFlowDocument = exports.GetUsageStatisticsDocument = exports.FlowFragmentDoc = exports.EdgeFragmentDoc = exports.NodeFragmentDoc = exports.SimpleConnectionFragmentDoc = exports.SimpleConnectionSuggestionFragmentDoc = exports.AppAndAppInstanceFragmentDoc = exports.Typenames = exports.FlowStatus = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -101,7 +101,11 @@ exports.FlowFragmentDoc = `
|
|
|
101
101
|
description
|
|
102
102
|
status
|
|
103
103
|
languages
|
|
104
|
-
createdBy
|
|
104
|
+
createdBy {
|
|
105
|
+
id
|
|
106
|
+
name
|
|
107
|
+
picture
|
|
108
|
+
}
|
|
105
109
|
triggers {
|
|
106
110
|
...appAndAppInstance
|
|
107
111
|
}
|
|
@@ -124,22 +128,6 @@ exports.GetUsageStatisticsDocument = `
|
|
|
124
128
|
}
|
|
125
129
|
}
|
|
126
130
|
`;
|
|
127
|
-
exports.GetLicenceDocument = `
|
|
128
|
-
query getLicence {
|
|
129
|
-
getLicence {
|
|
130
|
-
tenantId
|
|
131
|
-
name
|
|
132
|
-
billing {
|
|
133
|
-
automate {
|
|
134
|
-
isEnabled
|
|
135
|
-
}
|
|
136
|
-
reclameaqui {
|
|
137
|
-
cutoffSyncDays
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
`;
|
|
143
131
|
exports.GetFlowDocument = `
|
|
144
132
|
query getFlow($id: ID!, $versionId: ID!) {
|
|
145
133
|
getFlow(id: $id, versionId: $versionId) {
|
|
@@ -261,14 +249,27 @@ exports.RemoveSimpleConnectionDocument = `
|
|
|
261
249
|
}
|
|
262
250
|
${exports.SimpleConnectionFragmentDoc}
|
|
263
251
|
${exports.AppAndAppInstanceFragmentDoc}`;
|
|
252
|
+
exports.GetLicenceDocument = `
|
|
253
|
+
query getLicence {
|
|
254
|
+
getLicence {
|
|
255
|
+
tenantId
|
|
256
|
+
name
|
|
257
|
+
billing {
|
|
258
|
+
automate {
|
|
259
|
+
isEnabled
|
|
260
|
+
}
|
|
261
|
+
reclameaqui {
|
|
262
|
+
cutoffSyncDays
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
`;
|
|
264
268
|
function getSdk(requester) {
|
|
265
269
|
return {
|
|
266
270
|
getUsageStatistics(variables, options) {
|
|
267
271
|
return requester(exports.GetUsageStatisticsDocument, variables, options);
|
|
268
272
|
},
|
|
269
|
-
getLicence(variables, options) {
|
|
270
|
-
return requester(exports.GetLicenceDocument, variables, options);
|
|
271
|
-
},
|
|
272
273
|
getFlow(variables, options) {
|
|
273
274
|
return requester(exports.GetFlowDocument, variables, options);
|
|
274
275
|
},
|
|
@@ -304,6 +305,9 @@ function getSdk(requester) {
|
|
|
304
305
|
},
|
|
305
306
|
removeSimpleConnection(variables, options) {
|
|
306
307
|
return requester(exports.RemoveSimpleConnectionDocument, variables, options);
|
|
308
|
+
},
|
|
309
|
+
getLicence(variables, options) {
|
|
310
|
+
return requester(exports.GetLicenceDocument, variables, options);
|
|
307
311
|
}
|
|
308
312
|
};
|
|
309
313
|
}
|
package/src/sdks/logger.d.ts
CHANGED
|
@@ -118,6 +118,11 @@ export type Scalars = {
|
|
|
118
118
|
output: void;
|
|
119
119
|
};
|
|
120
120
|
};
|
|
121
|
+
export type AgentInfo = {
|
|
122
|
+
id: Scalars['ID']['output'];
|
|
123
|
+
name: Scalars['String']['output'];
|
|
124
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
125
|
+
};
|
|
121
126
|
export declare enum AppInstanceStatus {
|
|
122
127
|
Active = "Active",
|
|
123
128
|
Failing = "Failing",
|
|
@@ -118,6 +118,11 @@ export type Scalars = {
|
|
|
118
118
|
output: void;
|
|
119
119
|
};
|
|
120
120
|
};
|
|
121
|
+
export type AgentInfo = {
|
|
122
|
+
id: Scalars['ID']['output'];
|
|
123
|
+
name: Scalars['String']['output'];
|
|
124
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
125
|
+
};
|
|
121
126
|
export declare enum AppInstanceStatus {
|
|
122
127
|
Active = "Active",
|
|
123
128
|
Failing = "Failing",
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -144,6 +144,11 @@ export type AgentConnection = {
|
|
|
144
144
|
nodes: Array<Agent>;
|
|
145
145
|
pageInfo: PageInfo;
|
|
146
146
|
};
|
|
147
|
+
export type AgentInfo = {
|
|
148
|
+
id: Scalars['ID']['output'];
|
|
149
|
+
name: Scalars['String']['output'];
|
|
150
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
151
|
+
};
|
|
147
152
|
export type ApiKeyAgent = {
|
|
148
153
|
email: Scalars['EmailAddress']['output'];
|
|
149
154
|
password: Scalars['String']['output'];
|
|
@@ -118,6 +118,11 @@ export type Scalars = {
|
|
|
118
118
|
output: void;
|
|
119
119
|
};
|
|
120
120
|
};
|
|
121
|
+
export type AgentInfo = {
|
|
122
|
+
id: Scalars['ID']['output'];
|
|
123
|
+
name: Scalars['String']['output'];
|
|
124
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
125
|
+
};
|
|
121
126
|
export declare enum AppInstanceStatus {
|
|
122
127
|
Active = "Active",
|
|
123
128
|
Failing = "Failing",
|
package/src/sdks/utilities.d.ts
CHANGED
|
@@ -118,6 +118,11 @@ export type Scalars = {
|
|
|
118
118
|
output: void;
|
|
119
119
|
};
|
|
120
120
|
};
|
|
121
|
+
export type AgentInfo = {
|
|
122
|
+
id: Scalars['ID']['output'];
|
|
123
|
+
name: Scalars['String']['output'];
|
|
124
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
125
|
+
};
|
|
121
126
|
export declare enum AppInstanceStatus {
|
|
122
127
|
Active = "Active",
|
|
123
128
|
Failing = "Failing",
|
package/src/sdks/whatsapp.d.ts
CHANGED
|
@@ -118,6 +118,11 @@ export type Scalars = {
|
|
|
118
118
|
output: void;
|
|
119
119
|
};
|
|
120
120
|
};
|
|
121
|
+
export type AgentInfo = {
|
|
122
|
+
id: Scalars['ID']['output'];
|
|
123
|
+
name: Scalars['String']['output'];
|
|
124
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
125
|
+
};
|
|
121
126
|
export declare enum AppInstanceStatus {
|
|
122
127
|
Active = "Active",
|
|
123
128
|
Failing = "Failing",
|
package/src/sdks/zendesk.d.ts
CHANGED
|
@@ -118,6 +118,11 @@ export type Scalars = {
|
|
|
118
118
|
output: void;
|
|
119
119
|
};
|
|
120
120
|
};
|
|
121
|
+
export type AgentInfo = {
|
|
122
|
+
id: Scalars['ID']['output'];
|
|
123
|
+
name: Scalars['String']['output'];
|
|
124
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
125
|
+
};
|
|
121
126
|
export declare enum AppInstanceStatus {
|
|
122
127
|
Active = "Active",
|
|
123
128
|
Failing = "Failing",
|