@droz-js/sdk 0.7.2 → 0.7.4
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/chatwidget-ws.d.ts +3 -0
- package/src/chatwidget.d.ts +3 -0
- package/src/droznexo.d.ts +1 -1
- package/src/nucleus.d.ts +1 -1
- package/src/sdks/chatwidget.d.ts +13 -0
- package/src/sdks/chatwidget.js +9 -1
- package/src/sdks/droznexo.d.ts +18 -16
- package/src/sdks/droznexo.js +4 -2
- package/src/sdks/nucleus.d.ts +4 -3
- package/src/sdks/nucleus.js +2 -2
package/package.json
CHANGED
package/src/chatwidget-ws.d.ts
CHANGED
|
@@ -24,6 +24,9 @@ declare const ChatWidgetWs_base: new () => {
|
|
|
24
24
|
sendMessageToChatWidget(variables: import("./sdks/chatwidget").Exact<{
|
|
25
25
|
input: import("./sdks/chatwidget").SendMessageToChatWidgetInput;
|
|
26
26
|
}>, options?: unknown): Promise<import("./sdks/chatwidget").SendMessageToChatWidgetMutation>;
|
|
27
|
+
closeChatWidgetSession(variables: import("./sdks/chatwidget").Exact<{
|
|
28
|
+
input: import("./sdks/chatwidget").CloseChatWidgetSessionInput;
|
|
29
|
+
}>, options?: unknown): Promise<import("./sdks/chatwidget").CloseChatWidgetSessionMutation>;
|
|
27
30
|
onChatWidgetMessage(variables: import("./sdks/chatwidget").Exact<{
|
|
28
31
|
sessionId: string;
|
|
29
32
|
}>, options?: unknown): AsyncIterableIterator<import("./sdks/chatwidget").OnChatWidgetMessageSubscription>;
|
package/src/chatwidget.d.ts
CHANGED
|
@@ -27,6 +27,9 @@ declare const ChatWidget_base: new (options?: import("./client/http").HttpClient
|
|
|
27
27
|
sendMessageToChatWidget(variables: import("./sdks/chatwidget").Exact<{
|
|
28
28
|
input: import("./sdks/chatwidget").SendMessageToChatWidgetInput;
|
|
29
29
|
}>, options?: unknown): Promise<import("./sdks/chatwidget").SendMessageToChatWidgetMutation>;
|
|
30
|
+
closeChatWidgetSession(variables: import("./sdks/chatwidget").Exact<{
|
|
31
|
+
input: import("./sdks/chatwidget").CloseChatWidgetSessionInput;
|
|
32
|
+
}>, options?: unknown): Promise<import("./sdks/chatwidget").CloseChatWidgetSessionMutation>;
|
|
30
33
|
onChatWidgetMessage(variables: import("./sdks/chatwidget").Exact<{
|
|
31
34
|
sessionId: string;
|
|
32
35
|
}>, options?: unknown): AsyncIterableIterator<import("./sdks/chatwidget").OnChatWidgetMessageSubscription>;
|
package/src/droznexo.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ declare const DrozNexo_base: new (options?: import("./client/http").HttpClientOp
|
|
|
14
14
|
versionId: string;
|
|
15
15
|
}>, options?: unknown): Promise<import("./sdks/droznexo").GetFlowQuery>;
|
|
16
16
|
listFlows(variables?: import("./sdks/droznexo").Exact<{
|
|
17
|
-
|
|
17
|
+
status?: import("./sdks/droznexo").FlowStatus;
|
|
18
18
|
next?: object;
|
|
19
19
|
}>, options?: unknown): Promise<import("./sdks/droznexo").ListFlowsQuery>;
|
|
20
20
|
listSimpleSuggestions(variables?: import("./sdks/droznexo").Exact<{
|
package/src/nucleus.d.ts
CHANGED
|
@@ -208,7 +208,7 @@ declare const Nucleus_base: new (options?: import("./client/http").HttpClientOpt
|
|
|
208
208
|
}>, options?: unknown): Promise<import("./sdks/nucleus").ListDraftStateMachineConfigsQuery>;
|
|
209
209
|
listStateMachineConfigsByStatus(variables?: import("./sdks/nucleus").Exact<{
|
|
210
210
|
createdByAppId?: string;
|
|
211
|
-
|
|
211
|
+
status?: import("./sdks/nucleus").StateMachineConfigStatus;
|
|
212
212
|
next?: object;
|
|
213
213
|
}>, options?: unknown): Promise<import("./sdks/nucleus").ListStateMachineConfigsByStatusQuery>;
|
|
214
214
|
listStateMachineConfigVersions(variables: import("./sdks/nucleus").Exact<{
|
package/src/sdks/chatwidget.d.ts
CHANGED
|
@@ -170,6 +170,9 @@ export type ChatWidgetMessagePayload = {
|
|
|
170
170
|
export type ChatWidgetSession = {
|
|
171
171
|
id: Scalars['ID']['output'];
|
|
172
172
|
};
|
|
173
|
+
export type CloseChatWidgetSessionInput = {
|
|
174
|
+
sessionId: Scalars['ID']['input'];
|
|
175
|
+
};
|
|
173
176
|
export type CreateChatWidgetInput = {
|
|
174
177
|
name: Scalars['String']['input'];
|
|
175
178
|
};
|
|
@@ -182,6 +185,7 @@ export type I18nTextInput = {
|
|
|
182
185
|
value: Scalars['String']['input'];
|
|
183
186
|
};
|
|
184
187
|
export type Mutation = {
|
|
188
|
+
closeChatWidgetSession?: Maybe<Scalars['Void']['output']>;
|
|
185
189
|
createChatWidget?: Maybe<ChatWidget>;
|
|
186
190
|
removeChatWidget?: Maybe<ChatWidget>;
|
|
187
191
|
sendMessageToChatWidget?: Maybe<Scalars['Void']['output']>;
|
|
@@ -189,6 +193,9 @@ export type Mutation = {
|
|
|
189
193
|
updateChatWidget?: Maybe<ChatWidget>;
|
|
190
194
|
version?: Maybe<Scalars['String']['output']>;
|
|
191
195
|
};
|
|
196
|
+
export type MutationCloseChatWidgetSessionArgs = {
|
|
197
|
+
input: CloseChatWidgetSessionInput;
|
|
198
|
+
};
|
|
192
199
|
export type MutationCreateChatWidgetArgs = {
|
|
193
200
|
input: CreateChatWidgetInput;
|
|
194
201
|
};
|
|
@@ -364,6 +371,10 @@ export type SendMessageToChatWidgetMutationVariables = Exact<{
|
|
|
364
371
|
input: SendMessageToChatWidgetInput;
|
|
365
372
|
}>;
|
|
366
373
|
export type SendMessageToChatWidgetMutation = Pick<Mutation, 'sendMessageToChatWidget'>;
|
|
374
|
+
export type CloseChatWidgetSessionMutationVariables = Exact<{
|
|
375
|
+
input: CloseChatWidgetSessionInput;
|
|
376
|
+
}>;
|
|
377
|
+
export type CloseChatWidgetSessionMutation = Pick<Mutation, 'closeChatWidgetSession'>;
|
|
367
378
|
export type OnChatWidgetMessageSubscriptionVariables = Exact<{
|
|
368
379
|
sessionId: Scalars['ID']['input'];
|
|
369
380
|
}>;
|
|
@@ -379,6 +390,7 @@ export declare const UpdateChatWidgetDocument = "\n mutation updateChatWidget
|
|
|
379
390
|
export declare const RemoveChatWidgetDocument = "\n mutation removeChatWidget($input: RemoveChatWidgetInput!) {\n removeChatWidget(input: $input) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
380
391
|
export declare const StartChatWidgetSessionDocument = "\n mutation startChatWidgetSession($input: StartChatWidgetSessionInput!) {\n startChatWidgetSession(input: $input) {\n id\n }\n}\n ";
|
|
381
392
|
export declare const SendMessageToChatWidgetDocument = "\n mutation sendMessageToChatWidget($input: SendMessageToChatWidgetInput!) {\n sendMessageToChatWidget(input: $input)\n}\n ";
|
|
393
|
+
export declare const CloseChatWidgetSessionDocument = "\n mutation closeChatWidgetSession($input: CloseChatWidgetSessionInput!) {\n closeChatWidgetSession(input: $input)\n}\n ";
|
|
382
394
|
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 sessionClosed\n}\n ";
|
|
383
395
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
384
396
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
@@ -389,6 +401,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
389
401
|
removeChatWidget(variables: RemoveChatWidgetMutationVariables, options?: C): Promise<RemoveChatWidgetMutation>;
|
|
390
402
|
startChatWidgetSession(variables: StartChatWidgetSessionMutationVariables, options?: C): Promise<StartChatWidgetSessionMutation>;
|
|
391
403
|
sendMessageToChatWidget(variables: SendMessageToChatWidgetMutationVariables, options?: C): Promise<SendMessageToChatWidgetMutation>;
|
|
404
|
+
closeChatWidgetSession(variables: CloseChatWidgetSessionMutationVariables, options?: C): Promise<CloseChatWidgetSessionMutation>;
|
|
392
405
|
onChatWidgetMessage(variables: OnChatWidgetMessageSubscriptionVariables, options?: C): AsyncIterableIterator<OnChatWidgetMessageSubscription>;
|
|
393
406
|
};
|
|
394
407
|
export type Sdk = ReturnType<typeof getSdk>;
|
package/src/sdks/chatwidget.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.OnChatWidgetMessageDocument = exports.SendMessageToChatWidgetDocument = exports.StartChatWidgetSessionDocument = exports.RemoveChatWidgetDocument = exports.UpdateChatWidgetDocument = exports.CreateChatWidgetDocument = exports.ListChatWidgetsDocument = exports.GetChatWidgetDocument = exports.ChatWidgetMessageFragmentDoc = exports.ChatWidgetFragmentDoc = exports.Typenames = exports.SubscriptionAction = exports.Can = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.OnChatWidgetMessageDocument = exports.CloseChatWidgetSessionDocument = exports.SendMessageToChatWidgetDocument = exports.StartChatWidgetSessionDocument = exports.RemoveChatWidgetDocument = exports.UpdateChatWidgetDocument = exports.CreateChatWidgetDocument = exports.ListChatWidgetsDocument = exports.GetChatWidgetDocument = exports.ChatWidgetMessageFragmentDoc = exports.ChatWidgetFragmentDoc = exports.Typenames = exports.SubscriptionAction = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -95,6 +95,11 @@ exports.SendMessageToChatWidgetDocument = `
|
|
|
95
95
|
sendMessageToChatWidget(input: $input)
|
|
96
96
|
}
|
|
97
97
|
`;
|
|
98
|
+
exports.CloseChatWidgetSessionDocument = `
|
|
99
|
+
mutation closeChatWidgetSession($input: CloseChatWidgetSessionInput!) {
|
|
100
|
+
closeChatWidgetSession(input: $input)
|
|
101
|
+
}
|
|
102
|
+
`;
|
|
98
103
|
exports.OnChatWidgetMessageDocument = `
|
|
99
104
|
subscription onChatWidgetMessage($sessionId: ID!) {
|
|
100
105
|
onChatWidgetMessage(sessionId: $sessionId) {
|
|
@@ -125,6 +130,9 @@ function getSdk(requester) {
|
|
|
125
130
|
sendMessageToChatWidget(variables, options) {
|
|
126
131
|
return requester(exports.SendMessageToChatWidgetDocument, variables, options);
|
|
127
132
|
},
|
|
133
|
+
closeChatWidgetSession(variables, options) {
|
|
134
|
+
return requester(exports.CloseChatWidgetSessionDocument, variables, options);
|
|
135
|
+
},
|
|
128
136
|
onChatWidgetMessage(variables, options) {
|
|
129
137
|
return requester(exports.OnChatWidgetMessageDocument, variables, options);
|
|
130
138
|
}
|
package/src/sdks/droznexo.d.ts
CHANGED
|
@@ -206,6 +206,7 @@ export type EditFlowInput = {
|
|
|
206
206
|
export type Flow = {
|
|
207
207
|
createdAt: Scalars['DateTime']['output'];
|
|
208
208
|
createdBy?: Maybe<AgentInfo>;
|
|
209
|
+
createdByAppId?: Maybe<Scalars['ID']['output']>;
|
|
209
210
|
description?: Maybe<Scalars['String']['output']>;
|
|
210
211
|
edges: Array<Edge>;
|
|
211
212
|
id: Scalars['ID']['output'];
|
|
@@ -325,7 +326,7 @@ export type QueryGetFlowArgs = {
|
|
|
325
326
|
};
|
|
326
327
|
export type QueryListFlowsArgs = {
|
|
327
328
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
328
|
-
|
|
329
|
+
status?: InputMaybe<FlowStatus>;
|
|
329
330
|
};
|
|
330
331
|
export type QueryListSimpleConnectionsArgs = {
|
|
331
332
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
@@ -364,6 +365,7 @@ export type SearchResultsStats = {
|
|
|
364
365
|
};
|
|
365
366
|
export type SimpleConnection = {
|
|
366
367
|
createdAt: Scalars['DateTime']['output'];
|
|
368
|
+
createdByAppId?: Maybe<Scalars['ID']['output']>;
|
|
367
369
|
description?: Maybe<Scalars['String']['output']>;
|
|
368
370
|
destination: AppAndAppInstance;
|
|
369
371
|
id: Scalars['ID']['output'];
|
|
@@ -438,7 +440,7 @@ export type SimpleConnectionSuggestionFragment = (Pick<SimpleConnectionSuggestio
|
|
|
438
440
|
trigger: AppAndAppInstanceFragment;
|
|
439
441
|
destination: AppAndAppInstanceFragment;
|
|
440
442
|
});
|
|
441
|
-
export type SimpleConnectionFragment = (Pick<SimpleConnection, 'id' | 'versionId' | 'title' | 'description' | 'createdAt' | 'updatedAt'> & {
|
|
443
|
+
export type SimpleConnectionFragment = (Pick<SimpleConnection, 'id' | 'versionId' | 'title' | 'description' | 'createdAt' | 'updatedAt' | 'createdByAppId'> & {
|
|
442
444
|
trigger: AppAndAppInstanceFragment;
|
|
443
445
|
destination: AppAndAppInstanceFragment;
|
|
444
446
|
});
|
|
@@ -446,7 +448,7 @@ export type NodeFragment = (Pick<Node, 'id' | 'type' | 'uidata'> & {
|
|
|
446
448
|
data: AppAndAppInstanceFragment;
|
|
447
449
|
});
|
|
448
450
|
export type EdgeFragment = Pick<Edge, 'id' | 'source' | 'target' | 'targetType' | 'type' | 'sourceHandle' | 'uidata'>;
|
|
449
|
-
export type FlowFragment = (Pick<Flow, 'id' | 'versionId' | 'title' | 'description' | 'status' | 'languages' | 'createdAt' | 'updatedAt'> & {
|
|
451
|
+
export type FlowFragment = (Pick<Flow, 'id' | 'versionId' | 'title' | 'description' | 'status' | 'languages' | 'createdAt' | 'updatedAt' | 'createdByAppId'> & {
|
|
450
452
|
createdBy?: Maybe<Pick<AgentInfo, 'id' | 'name' | 'picture'>>;
|
|
451
453
|
triggers: Array<AppAndAppInstanceFragment>;
|
|
452
454
|
nodes: Array<NodeFragment>;
|
|
@@ -466,7 +468,7 @@ export type GetFlowQuery = {
|
|
|
466
468
|
getFlow: FlowFragment;
|
|
467
469
|
};
|
|
468
470
|
export type ListFlowsQueryVariables = Exact<{
|
|
469
|
-
|
|
471
|
+
status?: InputMaybe<FlowStatus>;
|
|
470
472
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
471
473
|
}>;
|
|
472
474
|
export type ListFlowsQuery = {
|
|
@@ -551,23 +553,23 @@ export type GetLicenceQuery = {
|
|
|
551
553
|
};
|
|
552
554
|
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 ";
|
|
553
555
|
export declare const SimpleConnectionSuggestionFragmentDoc = "\n fragment simpleConnectionSuggestion on SimpleConnectionSuggestion {\n title\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n}\n ";
|
|
554
|
-
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 ";
|
|
556
|
+
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 ";
|
|
555
557
|
export declare const NodeFragmentDoc = "\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n ";
|
|
556
558
|
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 ";
|
|
557
|
-
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 ";
|
|
559
|
+
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 ";
|
|
558
560
|
export declare const GetUsageStatisticsDocument = "\n query getUsageStatistics {\n getUsageStatistics {\n totalSecrets\n totalAppInstances\n totalConnections\n }\n}\n ";
|
|
559
|
-
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 ";
|
|
560
|
-
export declare const ListFlowsDocument = "\n query listFlows($
|
|
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 targetType\n type\n sourceHandle\n uidata\n}\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 targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
561
563
|
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 ";
|
|
562
|
-
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 ";
|
|
563
|
-
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 ";
|
|
564
|
-
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 ";
|
|
565
|
-
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 ";
|
|
566
|
-
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 ";
|
|
564
|
+
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 targetType\n type\n sourceHandle\n uidata\n}\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 targetType\n type\n sourceHandle\n uidata\n}\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 targetType\n type\n sourceHandle\n uidata\n}\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 targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
567
569
|
export declare const TestFlowDocument = "\n mutation testFlow($input: TestFlowInput!) {\n testFlow(input: $input) {\n sessionId\n }\n}\n ";
|
|
568
|
-
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 ";
|
|
569
|
-
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 ";
|
|
570
|
-
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 ";
|
|
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 targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
571
|
+
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
|
+
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 ";
|
|
571
573
|
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 ";
|
|
572
574
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
573
575
|
export declare function getSdk<C>(requester: Requester<C>): {
|
package/src/sdks/droznexo.js
CHANGED
|
@@ -70,6 +70,7 @@ exports.SimpleConnectionFragmentDoc = `
|
|
|
70
70
|
}
|
|
71
71
|
createdAt
|
|
72
72
|
updatedAt
|
|
73
|
+
createdByAppId
|
|
73
74
|
}
|
|
74
75
|
`;
|
|
75
76
|
exports.NodeFragmentDoc = `
|
|
@@ -117,6 +118,7 @@ exports.FlowFragmentDoc = `
|
|
|
117
118
|
}
|
|
118
119
|
createdAt
|
|
119
120
|
updatedAt
|
|
121
|
+
createdByAppId
|
|
120
122
|
}
|
|
121
123
|
`;
|
|
122
124
|
exports.GetUsageStatisticsDocument = `
|
|
@@ -139,8 +141,8 @@ ${exports.AppAndAppInstanceFragmentDoc}
|
|
|
139
141
|
${exports.NodeFragmentDoc}
|
|
140
142
|
${exports.EdgeFragmentDoc}`;
|
|
141
143
|
exports.ListFlowsDocument = `
|
|
142
|
-
query listFlows($
|
|
143
|
-
listFlows(next: $next,
|
|
144
|
+
query listFlows($status: FlowStatus, $next: Base64) {
|
|
145
|
+
listFlows(next: $next, status: $status) {
|
|
144
146
|
nodes {
|
|
145
147
|
...flow
|
|
146
148
|
}
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -278,6 +278,7 @@ export type CreatePresignedUploadUrlInput = {
|
|
|
278
278
|
fileName: Scalars['String']['input'];
|
|
279
279
|
};
|
|
280
280
|
export type CreateStateMachineConfigInput = {
|
|
281
|
+
createdByAppId?: InputMaybe<Scalars['ID']['input']>;
|
|
281
282
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
282
283
|
states?: InputMaybe<Array<CreateStateMachineConfigWithStateInput>>;
|
|
283
284
|
title?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -776,7 +777,7 @@ export type QueryListStateMachineConfigVersionsArgs = {
|
|
|
776
777
|
export type QueryListStateMachineConfigsByStatusArgs = {
|
|
777
778
|
createdByAppId?: InputMaybe<Scalars['ID']['input']>;
|
|
778
779
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
779
|
-
|
|
780
|
+
status?: InputMaybe<StateMachineConfigStatus>;
|
|
780
781
|
};
|
|
781
782
|
export type QuerySearchSessionsArgs = {
|
|
782
783
|
q?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -1480,7 +1481,7 @@ export type ListDraftStateMachineConfigsQuery = {
|
|
|
1480
1481
|
};
|
|
1481
1482
|
export type ListStateMachineConfigsByStatusQueryVariables = Exact<{
|
|
1482
1483
|
createdByAppId?: InputMaybe<Scalars['ID']['input']>;
|
|
1483
|
-
|
|
1484
|
+
status?: InputMaybe<StateMachineConfigStatus>;
|
|
1484
1485
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
1485
1486
|
}>;
|
|
1486
1487
|
export type ListStateMachineConfigsByStatusQuery = {
|
|
@@ -1642,7 +1643,7 @@ export declare const GetStateMachineDocument = "\n query getStateMachine($id:
|
|
|
1642
1643
|
export declare const CountLiveStateMachineConfigsDocument = "\n query countLiveStateMachineConfigs {\n countLiveStateMachineConfigs\n}\n ";
|
|
1643
1644
|
export declare const ListLiveStateMachineConfigsDocument = "\n query listLiveStateMachineConfigs($createdByAppId: ID, $next: Base64) {\n listLiveStateMachineConfigs(createdByAppId: $createdByAppId, next: $next) {\n ...stateMachineConfigConnection\n }\n}\n \n fragment stateMachineConfigConnection on StateMachineConfigConnection {\n nodes {\n ...stateMachineConfig\n }\n pageInfo {\n hasNext\n next\n }\n}\n \n\n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n createdAt\n updatedAt\n}\n \n\n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n\n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
1644
1645
|
export declare const ListDraftStateMachineConfigsDocument = "\n query listDraftStateMachineConfigs($createdByAppId: ID, $next: Base64) {\n listDraftStateMachineConfigs(createdByAppId: $createdByAppId, next: $next) {\n ...stateMachineConfigConnection\n }\n}\n \n fragment stateMachineConfigConnection on StateMachineConfigConnection {\n nodes {\n ...stateMachineConfig\n }\n pageInfo {\n hasNext\n next\n }\n}\n \n\n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n createdAt\n updatedAt\n}\n \n\n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n\n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
1645
|
-
export declare const ListStateMachineConfigsByStatusDocument = "\n query listStateMachineConfigsByStatus($createdByAppId: ID, $
|
|
1646
|
+
export declare const ListStateMachineConfigsByStatusDocument = "\n query listStateMachineConfigsByStatus($createdByAppId: ID, $status: StateMachineConfigStatus, $next: Base64) {\n listStateMachineConfigsByStatus(\n createdByAppId: $createdByAppId\n status: $status\n next: $next\n ) {\n ...stateMachineConfigConnection\n }\n}\n \n fragment stateMachineConfigConnection on StateMachineConfigConnection {\n nodes {\n ...stateMachineConfig\n }\n pageInfo {\n hasNext\n next\n }\n}\n \n\n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n createdAt\n updatedAt\n}\n \n\n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n\n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
1646
1647
|
export declare const ListStateMachineConfigVersionsDocument = "\n query listStateMachineConfigVersions($id: ID!) {\n listStateMachineConfigVersions(id: $id) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n createdAt\n updatedAt\n}\n \n\n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n\n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
1647
1648
|
export declare const GetXStateMachineConfigDocument = "\n query getXStateMachineConfig($id: ID!, $versionId: ID!) {\n getXStateMachineConfig(id: $id, versionId: $versionId)\n}\n ";
|
|
1648
1649
|
export declare const IsAppInstanceInUseDocument = "\n query isAppInstanceInUse($drn: DRN!) {\n isAppInstanceInUse(drn: $drn)\n}\n ";
|
package/src/sdks/nucleus.js
CHANGED
|
@@ -808,10 +808,10 @@ ${exports.StateMachineConfigFragmentDoc}
|
|
|
808
808
|
${exports.StateMachineConfigStateFragmentDoc}
|
|
809
809
|
${exports.StateMachineConfigStateOnFragmentDoc}`;
|
|
810
810
|
exports.ListStateMachineConfigsByStatusDocument = `
|
|
811
|
-
query listStateMachineConfigsByStatus($createdByAppId: ID, $
|
|
811
|
+
query listStateMachineConfigsByStatus($createdByAppId: ID, $status: StateMachineConfigStatus, $next: Base64) {
|
|
812
812
|
listStateMachineConfigsByStatus(
|
|
813
813
|
createdByAppId: $createdByAppId
|
|
814
|
-
|
|
814
|
+
status: $status
|
|
815
815
|
next: $next
|
|
816
816
|
) {
|
|
817
817
|
...stateMachineConfigConnection
|