@droz-js/sdk 0.6.18 → 0.6.19
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/droznexo.d.ts +3 -0
- package/src/sdks/droznexo.d.ts +29 -0
- package/src/sdks/droznexo.js +20 -1
package/package.json
CHANGED
package/src/droznexo.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ export declare const DrozNexo: new (options?: import("./client/http").HttpClient
|
|
|
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>;
|
|
12
15
|
getFlow(variables: import("./sdks/droznexo").Exact<{
|
|
13
16
|
id: string;
|
|
14
17
|
versionId: string;
|
package/src/sdks/droznexo.d.ts
CHANGED
|
@@ -127,6 +127,9 @@ export declare enum AppInstanceStatus {
|
|
|
127
127
|
Failing = "Failing",
|
|
128
128
|
Inactive = "Inactive"
|
|
129
129
|
}
|
|
130
|
+
export type AutomateConfiguration = {
|
|
131
|
+
isEnabled: Scalars['Boolean']['output'];
|
|
132
|
+
};
|
|
130
133
|
export declare enum Can {
|
|
131
134
|
Manage = "manage",
|
|
132
135
|
Read = "read",
|
|
@@ -155,6 +158,15 @@ export type DrozNexoAppInstance = {
|
|
|
155
158
|
transitions: Array<Scalars['String']['output']>;
|
|
156
159
|
updatedAt: Scalars['DateTime']['output'];
|
|
157
160
|
};
|
|
161
|
+
export type DrozNexoBilling = {
|
|
162
|
+
automate: AutomateConfiguration;
|
|
163
|
+
reclameaqui: ReclameAquiConfiguration;
|
|
164
|
+
};
|
|
165
|
+
export type DrozNexoLicence = {
|
|
166
|
+
billing: DrozNexoBilling;
|
|
167
|
+
name: Scalars['String']['output'];
|
|
168
|
+
tenantId: Scalars['String']['output'];
|
|
169
|
+
};
|
|
158
170
|
export type DrozNexoUsageStatistics = {
|
|
159
171
|
totalAppInstances: Scalars['Int']['output'];
|
|
160
172
|
totalConnections: Scalars['Int']['output'];
|
|
@@ -282,6 +294,7 @@ export type Query = {
|
|
|
282
294
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
283
295
|
getFlow: Flow;
|
|
284
296
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
297
|
+
getLicence?: Maybe<DrozNexoLicence>;
|
|
285
298
|
getUsageStatistics?: Maybe<DrozNexoUsageStatistics>;
|
|
286
299
|
listFlows: FlowConnection;
|
|
287
300
|
listSimpleConnectionSuggestions: Array<SimpleConnectionSuggestion>;
|
|
@@ -299,6 +312,9 @@ export type QueryListFlowsArgs = {
|
|
|
299
312
|
export type QueryListSimpleConnectionsArgs = {
|
|
300
313
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
301
314
|
};
|
|
315
|
+
export type ReclameAquiConfiguration = {
|
|
316
|
+
cutoffSyncDays?: Maybe<Scalars['Float']['output']>;
|
|
317
|
+
};
|
|
302
318
|
export type RemoveFlowInput = {
|
|
303
319
|
id: Scalars['ID']['input'];
|
|
304
320
|
versionId: Scalars['ID']['input'];
|
|
@@ -415,6 +431,17 @@ export type GetUsageStatisticsQueryVariables = Exact<{
|
|
|
415
431
|
export type GetUsageStatisticsQuery = {
|
|
416
432
|
getUsageStatistics?: Maybe<Pick<DrozNexoUsageStatistics, 'totalSecrets' | 'totalAppInstances' | 'totalConnections'>>;
|
|
417
433
|
};
|
|
434
|
+
export type GetLicenceQueryVariables = Exact<{
|
|
435
|
+
[key: string]: never;
|
|
436
|
+
}>;
|
|
437
|
+
export type GetLicenceQuery = {
|
|
438
|
+
getLicence?: Maybe<(Pick<DrozNexoLicence, 'tenantId' | 'name'> & {
|
|
439
|
+
billing: {
|
|
440
|
+
automate: Pick<AutomateConfiguration, 'isEnabled'>;
|
|
441
|
+
reclameaqui: Pick<ReclameAquiConfiguration, 'cutoffSyncDays'>;
|
|
442
|
+
};
|
|
443
|
+
})>;
|
|
444
|
+
};
|
|
418
445
|
export type GetFlowQueryVariables = Exact<{
|
|
419
446
|
id: Scalars['ID']['input'];
|
|
420
447
|
versionId: Scalars['ID']['input'];
|
|
@@ -496,6 +523,7 @@ export declare const NodeFragmentDoc = "\n fragment node on Node {\n id\n t
|
|
|
496
523
|
export declare const EdgeFragmentDoc = "\n fragment edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n ";
|
|
497
524
|
export declare const FlowFragmentDoc = "\n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n ";
|
|
498
525
|
export declare const GetUsageStatisticsDocument = "\n query getUsageStatistics {\n getUsageStatistics {\n totalSecrets\n totalAppInstances\n totalConnections\n }\n}\n ";
|
|
526
|
+
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 ";
|
|
499
527
|
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 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 type\n sourceHandle\n uidata\n}\n ";
|
|
500
528
|
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 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 type\n sourceHandle\n uidata\n}\n ";
|
|
501
529
|
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 ";
|
|
@@ -510,6 +538,7 @@ export declare const RemoveSimpleConnectionDocument = "\n mutation removeSimp
|
|
|
510
538
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
511
539
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
512
540
|
getUsageStatistics(variables?: GetUsageStatisticsQueryVariables, options?: C): Promise<GetUsageStatisticsQuery>;
|
|
541
|
+
getLicence(variables?: GetLicenceQueryVariables, options?: C): Promise<GetLicenceQuery>;
|
|
513
542
|
getFlow(variables: GetFlowQueryVariables, options?: C): Promise<GetFlowQuery>;
|
|
514
543
|
listFlows(variables?: ListFlowsQueryVariables, options?: C): Promise<ListFlowsQuery>;
|
|
515
544
|
listSimpleSuggestions(variables?: ListSimpleSuggestionsQueryVariables, options?: C): Promise<ListSimpleSuggestionsQuery>;
|
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.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;
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.RemoveSimpleConnectionDocument = exports.CreateSimpleConnectionDocument = exports.RemoveFlowDocument = exports.PublishFlowDocument = exports.UpdateFlowDocument = exports.EditFlowDocument = exports.CreateFlowDocument = exports.ListSimpleConnectionsDocument = exports.ListSimpleSuggestionsDocument = exports.ListFlowsDocument = exports.GetFlowDocument = exports.GetLicenceDocument = 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";
|
|
@@ -121,6 +121,22 @@ exports.GetUsageStatisticsDocument = `
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
`;
|
|
124
|
+
exports.GetLicenceDocument = `
|
|
125
|
+
query getLicence {
|
|
126
|
+
getLicence {
|
|
127
|
+
tenantId
|
|
128
|
+
name
|
|
129
|
+
billing {
|
|
130
|
+
automate {
|
|
131
|
+
isEnabled
|
|
132
|
+
}
|
|
133
|
+
reclameaqui {
|
|
134
|
+
cutoffSyncDays
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
`;
|
|
124
140
|
exports.GetFlowDocument = `
|
|
125
141
|
query getFlow($id: ID!, $versionId: ID!) {
|
|
126
142
|
getFlow(id: $id, versionId: $versionId) {
|
|
@@ -240,6 +256,9 @@ function getSdk(requester) {
|
|
|
240
256
|
getUsageStatistics(variables, options) {
|
|
241
257
|
return requester(exports.GetUsageStatisticsDocument, variables, options);
|
|
242
258
|
},
|
|
259
|
+
getLicence(variables, options) {
|
|
260
|
+
return requester(exports.GetLicenceDocument, variables, options);
|
|
261
|
+
},
|
|
243
262
|
getFlow(variables, options) {
|
|
244
263
|
return requester(exports.GetFlowDocument, variables, options);
|
|
245
264
|
},
|