@droz-js/sdk 0.7.5 → 0.7.6
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 +1 -1
- package/src/sdks/chatwidget.d.ts +13 -7
- package/src/sdks/chatwidget.js +9 -3
- package/src/sdks/droznexo.d.ts +12 -13
- package/src/sdks/droznexo.js +1 -1
- package/src/sdks/nucleus.d.ts +10 -9
- package/src/sdks/nucleus.js +1 -0
package/package.json
CHANGED
package/src/sdks/chatwidget.d.ts
CHANGED
|
@@ -162,11 +162,15 @@ export type ChatWidgetMessage = {
|
|
|
162
162
|
id: Scalars['ID']['output'];
|
|
163
163
|
payload: Array<ChatWidgetMessagePayload>;
|
|
164
164
|
sessionClosed: Scalars['Boolean']['output'];
|
|
165
|
+
type: Scalars['String']['output'];
|
|
165
166
|
};
|
|
166
167
|
export type ChatWidgetMessagePayload = {
|
|
168
|
+
channelId: Scalars['String']['output'];
|
|
167
169
|
content: Scalars['String']['output'];
|
|
168
170
|
contentType: Scalars['String']['output'];
|
|
169
171
|
filename?: Maybe<Scalars['String']['output']>;
|
|
172
|
+
from: Scalars['String']['output'];
|
|
173
|
+
to: Scalars['String']['output'];
|
|
170
174
|
};
|
|
171
175
|
export type ChatWidgetSession = {
|
|
172
176
|
id: Scalars['ID']['output'];
|
|
@@ -189,7 +193,7 @@ export type Mutation = {
|
|
|
189
193
|
closeChatWidgetSession?: Maybe<Scalars['Void']['output']>;
|
|
190
194
|
createChatWidget?: Maybe<ChatWidget>;
|
|
191
195
|
removeChatWidget?: Maybe<ChatWidget>;
|
|
192
|
-
sendMessageToChatWidget?: Maybe<
|
|
196
|
+
sendMessageToChatWidget?: Maybe<ChatWidgetMessage>;
|
|
193
197
|
startChatWidgetSession?: Maybe<ChatWidgetSession>;
|
|
194
198
|
updateChatWidget?: Maybe<ChatWidget>;
|
|
195
199
|
version?: Maybe<Scalars['String']['output']>;
|
|
@@ -329,8 +333,8 @@ export type UpdateChatWidgetInput = {
|
|
|
329
333
|
name: Scalars['String']['input'];
|
|
330
334
|
};
|
|
331
335
|
export type ChatWidgetFragment = Pick<ChatWidget, 'id' | 'name' | 'drn' | 'createdAt' | 'updatedAt'>;
|
|
332
|
-
export type ChatWidgetMessageFragment = (Pick<ChatWidgetMessage, 'id' | 'sessionClosed'> & {
|
|
333
|
-
payload: Array<Pick<ChatWidgetMessagePayload, 'contentType' | 'content' | 'filename'>>;
|
|
336
|
+
export type ChatWidgetMessageFragment = (Pick<ChatWidgetMessage, 'id' | 'type' | 'sessionClosed'> & {
|
|
337
|
+
payload: Array<Pick<ChatWidgetMessagePayload, 'from' | 'to' | 'channelId' | 'contentType' | 'content' | 'filename'>>;
|
|
334
338
|
});
|
|
335
339
|
export type GetChatWidgetQueryVariables = Exact<{
|
|
336
340
|
id: Scalars['ID']['input'];
|
|
@@ -371,7 +375,9 @@ export type StartChatWidgetSessionMutation = {
|
|
|
371
375
|
export type SendMessageToChatWidgetMutationVariables = Exact<{
|
|
372
376
|
input: SendMessageToChatWidgetInput;
|
|
373
377
|
}>;
|
|
374
|
-
export type SendMessageToChatWidgetMutation =
|
|
378
|
+
export type SendMessageToChatWidgetMutation = {
|
|
379
|
+
sendMessageToChatWidget?: Maybe<ChatWidgetMessageFragment>;
|
|
380
|
+
};
|
|
375
381
|
export type CloseChatWidgetSessionMutationVariables = Exact<{
|
|
376
382
|
input: CloseChatWidgetSessionInput;
|
|
377
383
|
}>;
|
|
@@ -383,16 +389,16 @@ export type OnChatWidgetMessageSubscription = {
|
|
|
383
389
|
onChatWidgetMessage: ChatWidgetMessageFragment;
|
|
384
390
|
};
|
|
385
391
|
export declare const ChatWidgetFragmentDoc = "\n fragment chatWidget on ChatWidget {\n id\n name\n drn\n createdAt\n updatedAt\n}\n ";
|
|
386
|
-
export declare const ChatWidgetMessageFragmentDoc = "\n fragment chatWidgetMessage on ChatWidgetMessage {\n id\n payload {\n contentType\n content\n filename\n }\n
|
|
392
|
+
export declare const ChatWidgetMessageFragmentDoc = "\n fragment chatWidgetMessage on ChatWidgetMessage {\n id\n type\n sessionClosed\n payload {\n from\n to\n channelId\n contentType\n content\n filename\n }\n}\n ";
|
|
387
393
|
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 drn\n createdAt\n updatedAt\n}\n ";
|
|
388
394
|
export declare const ListChatWidgetsDocument = "\n query listChatWidgets {\n listChatWidgets {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n drn\n createdAt\n updatedAt\n}\n ";
|
|
389
395
|
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 drn\n createdAt\n updatedAt\n}\n ";
|
|
390
396
|
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 drn\n createdAt\n updatedAt\n}\n ";
|
|
391
397
|
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 drn\n createdAt\n updatedAt\n}\n ";
|
|
392
398
|
export declare const StartChatWidgetSessionDocument = "\n mutation startChatWidgetSession($input: StartChatWidgetSessionInput!) {\n startChatWidgetSession(input: $input) {\n id\n }\n}\n ";
|
|
393
|
-
export declare const SendMessageToChatWidgetDocument = "\n mutation sendMessageToChatWidget($input: SendMessageToChatWidgetInput!) {\n sendMessageToChatWidget(input: $input)\n}\n ";
|
|
399
|
+
export declare const SendMessageToChatWidgetDocument = "\n mutation sendMessageToChatWidget($input: SendMessageToChatWidgetInput!) {\n sendMessageToChatWidget(input: $input) {\n ...chatWidgetMessage\n }\n}\n \n fragment chatWidgetMessage on ChatWidgetMessage {\n id\n type\n sessionClosed\n payload {\n from\n to\n channelId\n contentType\n content\n filename\n }\n}\n ";
|
|
394
400
|
export declare const CloseChatWidgetSessionDocument = "\n mutation closeChatWidgetSession($input: CloseChatWidgetSessionInput!) {\n closeChatWidgetSession(input: $input)\n}\n ";
|
|
395
|
-
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
|
|
401
|
+
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 type\n sessionClosed\n payload {\n from\n to\n channelId\n contentType\n content\n filename\n }\n}\n ";
|
|
396
402
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
397
403
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
398
404
|
getChatWidget(variables: GetChatWidgetQueryVariables, options?: C): Promise<GetChatWidgetQuery>;
|
package/src/sdks/chatwidget.js
CHANGED
|
@@ -41,12 +41,16 @@ exports.ChatWidgetFragmentDoc = `
|
|
|
41
41
|
exports.ChatWidgetMessageFragmentDoc = `
|
|
42
42
|
fragment chatWidgetMessage on ChatWidgetMessage {
|
|
43
43
|
id
|
|
44
|
+
type
|
|
45
|
+
sessionClosed
|
|
44
46
|
payload {
|
|
47
|
+
from
|
|
48
|
+
to
|
|
49
|
+
channelId
|
|
45
50
|
contentType
|
|
46
51
|
content
|
|
47
52
|
filename
|
|
48
53
|
}
|
|
49
|
-
sessionClosed
|
|
50
54
|
}
|
|
51
55
|
`;
|
|
52
56
|
exports.GetChatWidgetDocument = `
|
|
@@ -93,9 +97,11 @@ exports.StartChatWidgetSessionDocument = `
|
|
|
93
97
|
`;
|
|
94
98
|
exports.SendMessageToChatWidgetDocument = `
|
|
95
99
|
mutation sendMessageToChatWidget($input: SendMessageToChatWidgetInput!) {
|
|
96
|
-
sendMessageToChatWidget(input: $input)
|
|
100
|
+
sendMessageToChatWidget(input: $input) {
|
|
101
|
+
...chatWidgetMessage
|
|
102
|
+
}
|
|
97
103
|
}
|
|
98
|
-
`;
|
|
104
|
+
${exports.ChatWidgetMessageFragmentDoc}`;
|
|
99
105
|
exports.CloseChatWidgetSessionDocument = `
|
|
100
106
|
mutation closeChatWidgetSession($input: CloseChatWidgetSessionInput!) {
|
|
101
107
|
closeChatWidgetSession(input: $input)
|
package/src/sdks/droznexo.d.ts
CHANGED
|
@@ -187,7 +187,6 @@ export type Edge = {
|
|
|
187
187
|
source: Scalars['ID']['output'];
|
|
188
188
|
sourceHandle: Scalars['String']['output'];
|
|
189
189
|
target: Scalars['ID']['output'];
|
|
190
|
-
targetType: Scalars['String']['output'];
|
|
191
190
|
type: Scalars['String']['output'];
|
|
192
191
|
uidata?: Maybe<Scalars['JSON']['output']>;
|
|
193
192
|
};
|
|
@@ -196,7 +195,6 @@ export type EdgeInput = {
|
|
|
196
195
|
source: Scalars['ID']['input'];
|
|
197
196
|
sourceHandle: Scalars['String']['input'];
|
|
198
197
|
target: Scalars['ID']['input'];
|
|
199
|
-
targetType: Scalars['String']['input'];
|
|
200
198
|
type: Scalars['String']['input'];
|
|
201
199
|
uidata?: InputMaybe<Scalars['JSON']['input']>;
|
|
202
200
|
};
|
|
@@ -275,6 +273,7 @@ export type MutationUpdateFlowArgs = {
|
|
|
275
273
|
export type Node = {
|
|
276
274
|
data: AppAndAppInstance;
|
|
277
275
|
id: Scalars['ID']['output'];
|
|
276
|
+
instanceId?: Maybe<Scalars['ID']['output']>;
|
|
278
277
|
type: Scalars['String']['output'];
|
|
279
278
|
uidata?: Maybe<Scalars['JSON']['output']>;
|
|
280
279
|
};
|
|
@@ -444,10 +443,10 @@ export type SimpleConnectionFragment = (Pick<SimpleConnection, 'id' | 'versionId
|
|
|
444
443
|
trigger: AppAndAppInstanceFragment;
|
|
445
444
|
destination: AppAndAppInstanceFragment;
|
|
446
445
|
});
|
|
447
|
-
export type NodeFragment = (Pick<Node, 'id' | 'type' | 'uidata'> & {
|
|
446
|
+
export type NodeFragment = (Pick<Node, 'id' | 'type' | 'instanceId' | 'uidata'> & {
|
|
448
447
|
data: AppAndAppInstanceFragment;
|
|
449
448
|
});
|
|
450
|
-
export type EdgeFragment = Pick<Edge, 'id' | 'source' | 'target' | '
|
|
449
|
+
export type EdgeFragment = Pick<Edge, 'id' | 'source' | 'target' | 'type' | 'sourceHandle' | 'uidata'>;
|
|
451
450
|
export type FlowFragment = (Pick<Flow, 'id' | 'versionId' | 'title' | 'description' | 'status' | 'languages' | 'createdAt' | 'updatedAt' | 'createdByAppId'> & {
|
|
452
451
|
createdBy?: Maybe<Pick<AgentInfo, 'id' | 'name' | 'picture'>>;
|
|
453
452
|
triggers: Array<AppAndAppInstanceFragment>;
|
|
@@ -554,20 +553,20 @@ export type GetLicenceQuery = {
|
|
|
554
553
|
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 ";
|
|
555
554
|
export declare const SimpleConnectionSuggestionFragmentDoc = "\n fragment simpleConnectionSuggestion on SimpleConnectionSuggestion {\n title\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n}\n ";
|
|
556
555
|
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 createdByAppId\n}\n ";
|
|
557
|
-
export declare const NodeFragmentDoc = "\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n ";
|
|
558
|
-
export declare const EdgeFragmentDoc = "\n fragment edge on Edge {\n id\n source\n target\n
|
|
556
|
+
export declare const NodeFragmentDoc = "\n fragment node on Node {\n id\n type\n instanceId\n data {\n ...appAndAppInstance\n }\n uidata\n}\n ";
|
|
557
|
+
export declare const EdgeFragmentDoc = "\n fragment edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n ";
|
|
559
558
|
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 createdByAppId\n}\n ";
|
|
560
559
|
export declare const GetUsageStatisticsDocument = "\n query getUsageStatistics {\n getUsageStatistics {\n totalSecrets\n totalAppInstances\n totalConnections\n }\n}\n ";
|
|
561
|
-
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 createdByAppId\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
|
|
562
|
-
export declare const ListFlowsDocument = "\n query listFlows($status: FlowStatus, $next: Base64) {\n listFlows(next: $next, status: $status) {\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 createdByAppId\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
|
|
560
|
+
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 createdByAppId\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 instanceId\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n ";
|
|
561
|
+
export declare const ListFlowsDocument = "\n query listFlows($status: FlowStatus, $next: Base64) {\n listFlows(next: $next, status: $status) {\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 createdByAppId\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 instanceId\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n ";
|
|
563
562
|
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 ";
|
|
564
563
|
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 createdByAppId\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 ";
|
|
565
|
-
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 createdByAppId\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
|
|
566
|
-
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 createdByAppId\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
|
|
567
|
-
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 createdByAppId\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
|
|
568
|
-
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 createdByAppId\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
|
|
564
|
+
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 createdByAppId\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 instanceId\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n ";
|
|
565
|
+
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 createdByAppId\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 instanceId\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n ";
|
|
566
|
+
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 createdByAppId\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 instanceId\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n ";
|
|
567
|
+
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 createdByAppId\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 instanceId\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n ";
|
|
569
568
|
export declare const TestFlowDocument = "\n mutation testFlow($input: TestFlowInput!) {\n testFlow(input: $input) {\n sessionId\n }\n}\n ";
|
|
570
|
-
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 createdByAppId\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
|
|
569
|
+
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 createdByAppId\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 instanceId\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n ";
|
|
571
570
|
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 createdByAppId\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 ";
|
|
572
571
|
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 createdByAppId\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 ";
|
|
573
572
|
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 ";
|
package/src/sdks/droznexo.js
CHANGED
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -193,6 +193,7 @@ export type AppInstance = {
|
|
|
193
193
|
appType: AppType;
|
|
194
194
|
createdAt: Scalars['DateTime']['output'];
|
|
195
195
|
drn: Scalars['DRN']['output'];
|
|
196
|
+
instanceId: Scalars['ID']['output'];
|
|
196
197
|
name: Scalars['String']['output'];
|
|
197
198
|
transitions: Array<Scalars['String']['output']>;
|
|
198
199
|
updatedAt: Scalars['DateTime']['output'];
|
|
@@ -1147,7 +1148,7 @@ export type JoinAsSuperAdminMutation = Pick<Mutation, 'joinAsSuperAdmin'>;
|
|
|
1147
1148
|
export type AppFragment = (Pick<App, 'id' | 'type' | 'name' | 'description' | 'color'> & {
|
|
1148
1149
|
channels?: Maybe<Array<Pick<AppChannel, 'id' | 'sources' | 'main' | 'readonly' | 'hidden'>>>;
|
|
1149
1150
|
});
|
|
1150
|
-
export type AppInstanceFragment = Pick<AppInstance, 'appId' | 'appType' | 'drn' | 'name' | 'transitions' | 'createdAt' | 'updatedAt'>;
|
|
1151
|
+
export type AppInstanceFragment = Pick<AppInstance, 'appId' | 'appType' | 'drn' | 'instanceId' | 'name' | 'transitions' | 'createdAt' | 'updatedAt'>;
|
|
1151
1152
|
export type AppWithInstancesFragment = ({
|
|
1152
1153
|
instances: Array<AppInstanceFragment>;
|
|
1153
1154
|
} & AppFragment);
|
|
@@ -1566,7 +1567,7 @@ export type CreatePresignedUploadUrlMutation = {
|
|
|
1566
1567
|
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 systemAgent\n removed\n createdAt\n updatedAt\n}\n ";
|
|
1567
1568
|
export declare const ApiKeyFragmentDoc = "\n fragment apiKey on ApiKeyAgent {\n email\n password\n token\n user {\n ...agent\n }\n}\n ";
|
|
1568
1569
|
export declare const AppFragmentDoc = "\n fragment app on App {\n id\n type\n name\n description\n color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n ";
|
|
1569
|
-
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 ";
|
|
1570
|
+
export declare const AppInstanceFragmentDoc = "\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1570
1571
|
export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstances on App {\n ...app\n instances {\n ...appInstance\n }\n}\n ";
|
|
1571
1572
|
export declare const SafeCredentialsFragmentDoc = "\n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1572
1573
|
export declare const CredentialsWithSecretFragmentDoc = "\n fragment credentialsWithSecret on Credentials {\n ... on ICredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n }\n ... on BasicCredentialsType {\n credentials {\n username\n password\n }\n }\n ... on ApiKeyCredentialsType {\n credentials {\n apiKey\n }\n }\n ... on OAuth2CredentialsType {\n credentials {\n clientId\n clientSecret\n }\n }\n ... on MetaCredentialsType {\n credentials {\n code\n accessToken\n wabaId\n }\n }\n ... on MercadoLivreCredentialsType {\n credentials {\n code\n }\n }\n}\n ";
|
|
@@ -1597,14 +1598,14 @@ export declare const RemoveSystemApiKeyAgentDocument = "\n mutation removeSys
|
|
|
1597
1598
|
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 systemAgent\n removed\n createdAt\n updatedAt\n}\n ";
|
|
1598
1599
|
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 systemAgent\n removed\n createdAt\n updatedAt\n}\n ";
|
|
1599
1600
|
export declare const JoinAsSuperAdminDocument = "\n mutation joinAsSuperAdmin($input: JoinAsSuperAdminInput!) {\n joinAsSuperAdmin(input: $input)\n}\n ";
|
|
1600
|
-
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 color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1601
|
-
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 color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1602
|
-
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 color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n ";
|
|
1603
|
-
export declare const GetAppInstancesDocument = "\n query getAppInstances($drns: [ID!]!) {\n getAppInstances(drns: $drns) {\n ...appInstance\n app {\n ...app\n }\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 color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n ";
|
|
1604
|
-
export declare const ListAppInstancesDocument = "\n query listAppInstances($appId: ID, $appType: AppType, $withApp: Boolean = false) {\n listAppInstances(appId: $appId, appType: $appType) {\n ...appInstance\n app @include(if: $withApp) {\n ...app\n }\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 color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n ";
|
|
1601
|
+
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 color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1602
|
+
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 color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1603
|
+
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 instanceId\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 color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n ";
|
|
1604
|
+
export declare const GetAppInstancesDocument = "\n query getAppInstances($drns: [ID!]!) {\n getAppInstances(drns: $drns) {\n ...appInstance\n app {\n ...app\n }\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\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 color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n ";
|
|
1605
|
+
export declare const ListAppInstancesDocument = "\n query listAppInstances($appId: ID, $appType: AppType, $withApp: Boolean = false) {\n listAppInstances(appId: $appId, appType: $appType) {\n ...appInstance\n app @include(if: $withApp) {\n ...app\n }\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\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 color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n ";
|
|
1605
1606
|
export declare const CountAppInstancesDocument = "\n query countAppInstances {\n countAppInstances\n}\n ";
|
|
1606
|
-
export declare const RegisterAppInstanceDocument = "\n mutation registerAppInstance($input: RegisterAppInstanceInput!) {\n registerAppInstance(input: $input) {\n ...appInstance\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1607
|
-
export declare const UnregisterAppInstanceDocument = "\n mutation unregisterAppInstance($input: UnregisterAppInstanceInput!) {\n unregisterAppInstance(input: $input) {\n ...appInstance\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1607
|
+
export declare const RegisterAppInstanceDocument = "\n mutation registerAppInstance($input: RegisterAppInstanceInput!) {\n registerAppInstance(input: $input) {\n ...appInstance\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1608
|
+
export declare const UnregisterAppInstanceDocument = "\n mutation unregisterAppInstance($input: UnregisterAppInstanceInput!) {\n unregisterAppInstance(input: $input) {\n ...appInstance\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1608
1609
|
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig {\n amplifyConfig\n}\n ";
|
|
1609
1610
|
export declare const GetAuthInfoDocument = "\n query getAuthInfo {\n authInfo {\n authenticationEndpoint\n jwtIssuer\n loginUrl\n logoutUrl\n cognitoConfig {\n region\n userPoolId\n userPoolWebClientId\n }\n }\n}\n ";
|
|
1610
1611
|
export declare const GetCredentialsDocument = "\n query getCredentials($id: ID!) {\n getCredentials(id: $id) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|