@droz-js/sdk 0.1.3 → 0.1.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/nucleus.d.ts +2 -2
- package/src/sdks/nucleus.d.ts +4 -4
- package/src/sdks/nucleus.js +5 -5
package/package.json
CHANGED
package/src/nucleus.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ export declare const Nucleus: new () => {
|
|
|
4
4
|
appId: string;
|
|
5
5
|
withInstances?: boolean;
|
|
6
6
|
}>, options?: unknown): Promise<import("./sdks/nucleus").GetAppQuery>;
|
|
7
|
-
|
|
7
|
+
listApps(variables?: import("./sdks/nucleus").Exact<{
|
|
8
8
|
type?: import("./sdks/nucleus").AppType;
|
|
9
9
|
withInstances?: boolean;
|
|
10
|
-
}>, options?: unknown): Promise<import("./sdks/nucleus").
|
|
10
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").ListAppsQuery>;
|
|
11
11
|
listAppInstances(variables?: import("./sdks/nucleus").Exact<{
|
|
12
12
|
appId?: string;
|
|
13
13
|
appType?: import("./sdks/nucleus").AppType;
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -483,11 +483,11 @@ export type GetAppQuery = {
|
|
|
483
483
|
instances?: Array<AppInstanceFragment>;
|
|
484
484
|
} & AppFragment)>;
|
|
485
485
|
};
|
|
486
|
-
export type
|
|
486
|
+
export type ListAppsQueryVariables = Exact<{
|
|
487
487
|
type?: InputMaybe<AppType>;
|
|
488
488
|
withInstances?: InputMaybe<Scalars['Boolean']['input']>;
|
|
489
489
|
}>;
|
|
490
|
-
export type
|
|
490
|
+
export type ListAppsQuery = {
|
|
491
491
|
listApps: Array<({
|
|
492
492
|
instances?: Array<AppInstanceFragment>;
|
|
493
493
|
} & AppFragment)>;
|
|
@@ -614,7 +614,7 @@ export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstan
|
|
|
614
614
|
export declare const SafeCredentialsFragmentDoc = "\n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n}\n ";
|
|
615
615
|
export declare const CronJobFragmentDoc = "\n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n runs\n}\n ";
|
|
616
616
|
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}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n}\n ";
|
|
617
|
-
export declare const
|
|
617
|
+
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}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n}\n ";
|
|
618
618
|
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}\n \n\n fragment app on App {\n id\n type\n name\n description\n}\n ";
|
|
619
619
|
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}\n ";
|
|
620
620
|
export declare const GetCredentialsSecretDocument = "\n query getCredentialsSecret($id: ID!) {\n getCredentialsSecret(id: $id) {\n ... on ICredentials {\n id\n type\n description\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 }\n}\n ";
|
|
@@ -635,7 +635,7 @@ export declare const GetStateMachineDocument = "\n query getStateMachine($id:
|
|
|
635
635
|
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | Observable<R>;
|
|
636
636
|
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
637
637
|
getApp(variables: GetAppQueryVariables, options?: C): Promise<GetAppQuery>;
|
|
638
|
-
|
|
638
|
+
listApps(variables?: ListAppsQueryVariables, options?: C): Promise<ListAppsQuery>;
|
|
639
639
|
listAppInstances(variables?: ListAppInstancesQueryVariables, options?: C): Promise<ListAppInstancesQuery>;
|
|
640
640
|
getCredentials(variables: GetCredentialsQueryVariables, options?: C): Promise<GetCredentialsQuery>;
|
|
641
641
|
getCredentialsSecret(variables: GetCredentialsSecretQueryVariables, options?: C): Promise<GetCredentialsSecretQuery>;
|
package/src/sdks/nucleus.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.GetStateMachineDocument = exports.PatchSessionDataDocument = exports.SetSessionDataDocument = exports.GetSessionDataDocument = exports.ResolveSessionDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.ListAppInstancesDocument = exports.
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.GetStateMachineDocument = exports.PatchSessionDataDocument = exports.SetSessionDataDocument = exports.GetSessionDataDocument = exports.ResolveSessionDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.ListAppInstancesDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.CronJobFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CredentialsType = exports.AppType = void 0;
|
|
5
5
|
var AppType;
|
|
6
6
|
(function (AppType) {
|
|
7
7
|
AppType["Regular"] = "Regular";
|
|
@@ -100,8 +100,8 @@ exports.GetAppDocument = `
|
|
|
100
100
|
}
|
|
101
101
|
${exports.AppFragmentDoc}
|
|
102
102
|
${exports.AppInstanceFragmentDoc}`;
|
|
103
|
-
exports.
|
|
104
|
-
query
|
|
103
|
+
exports.ListAppsDocument = `
|
|
104
|
+
query listApps($type: AppType, $withInstances: Boolean = false) {
|
|
105
105
|
listApps(type: $type) {
|
|
106
106
|
...app
|
|
107
107
|
instances @include(if: $withInstances) {
|
|
@@ -270,8 +270,8 @@ function getSdk(requester) {
|
|
|
270
270
|
getApp(variables, options) {
|
|
271
271
|
return requester(exports.GetAppDocument, variables, options);
|
|
272
272
|
},
|
|
273
|
-
|
|
274
|
-
return requester(exports.
|
|
273
|
+
listApps(variables, options) {
|
|
274
|
+
return requester(exports.ListAppsDocument, variables, options);
|
|
275
275
|
},
|
|
276
276
|
listAppInstances(variables, options) {
|
|
277
277
|
return requester(exports.ListAppInstancesDocument, variables, options);
|