@deenruv/cronjobs-plugin 1.0.5 → 1.0.9
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/dist/plugin-server/strategies/kubernetes-cronjob-executor.strategy.js +2 -2
- package/dist/plugin-server/tsconfig.tsbuildinfo +1 -0
- package/dist/plugin-server/zeus/index.d.ts +18 -18
- package/dist/plugin-server/zeus/index.js +1 -1
- package/dist/plugin-server/zeus/typedDocumentNode.d.ts +2 -1
- package/dist/plugin-ui/graphql/mutations.d.ts +3 -3
- package/dist/plugin-ui/graphql/queries.d.ts +4 -4
- package/dist/plugin-ui/tsconfig.tsbuildinfo +1 -0
- package/dist/plugin-ui/zeus/index.d.ts +18 -18
- package/dist/plugin-ui/zeus/index.js +1 -1
- package/dist/plugin-ui/zeus/typedDocumentNode.d.ts +2 -1
- package/package.json +11 -11
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.KubernetesCronJobExecutor =
|
|
3
|
+
exports.KubernetesCronJobExecutor = void 0;
|
|
4
|
+
exports.importEsmModule = importEsmModule;
|
|
4
5
|
const core_1 = require("@deenruv/core");
|
|
5
6
|
const constants_js_1 = require("../constants.js");
|
|
6
7
|
async function importEsmModule(name) {
|
|
7
8
|
const module = eval(`(async () => {return await import("${name}")})()`);
|
|
8
9
|
return module;
|
|
9
10
|
}
|
|
10
|
-
exports.importEsmModule = importEsmModule;
|
|
11
11
|
class KubernetesCronJobExecutor {
|
|
12
12
|
async createClientSet() {
|
|
13
13
|
const client = await importEsmModule("@kubernetes/client-node");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"root":["../../src/plugin-server/constants.ts","../../src/plugin-server/index.ts","../../src/plugin-server/types.ts","../../src/plugin-server/api/admin-api.resolver.ts","../../src/plugin-server/controllers/cronjobs-executor.controller.ts","../../src/plugin-server/extensions/admin-api.extension.ts","../../src/plugin-server/guards/controllers.guard.ts","../../src/plugin-server/services/cronjobs.service.ts","../../src/plugin-server/strategies/default-executor.strategy.ts","../../src/plugin-server/strategies/kubernetes-cronjob-executor.strategy.ts","../../src/plugin-server/zeus/const.ts","../../src/plugin-server/zeus/index.ts","../../src/plugin-server/zeus/typedDocumentNode.ts"],"version":"5.9.3"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ops } from './const';
|
|
2
|
-
export declare const HOST = "http://localhost:
|
|
2
|
+
export declare const HOST = "http://localhost:6100/admin-api";
|
|
3
3
|
export declare const HEADERS: {};
|
|
4
4
|
export declare const apiSubscription: (options: chainOptions) => (query: string) => {
|
|
5
5
|
ws: WebSocket;
|
|
@@ -8,38 +8,38 @@ export declare const apiSubscription: (options: chainOptions) => (query: string)
|
|
|
8
8
|
error: (e: (args: any) => void) => void;
|
|
9
9
|
open: (e: () => void) => void;
|
|
10
10
|
};
|
|
11
|
-
export declare const apiFetch: (options:
|
|
11
|
+
export declare const apiFetch: (options: fetchOptions) => (query: string, variables?: Record<string, unknown>) => Promise<Record<string, any> | undefined>;
|
|
12
12
|
export declare const InternalsBuildQuery: ({ ops, props, returns, options, scalars, }: {
|
|
13
13
|
props: AllTypesPropsType;
|
|
14
14
|
returns: ReturnTypesType;
|
|
15
15
|
ops: Operations;
|
|
16
|
-
options?: OperationOptions
|
|
17
|
-
scalars?: ScalarDefinition
|
|
16
|
+
options?: OperationOptions;
|
|
17
|
+
scalars?: ScalarDefinition;
|
|
18
18
|
}) => (k: string, o: InputValueType | VType, p?: string, root?: boolean, vars?: Array<{
|
|
19
19
|
name: string;
|
|
20
20
|
graphQLType: string;
|
|
21
21
|
}>) => string;
|
|
22
22
|
type UnionOverrideKeys<T, U> = Omit<T, keyof U> & U;
|
|
23
|
-
export declare const Thunder: <SCLR extends ScalarDefinition>(fn: FetchFunction, thunderGraphQLOptions?: ThunderGraphQLOptions<SCLR>
|
|
23
|
+
export declare const Thunder: <SCLR extends ScalarDefinition>(fn: FetchFunction, thunderGraphQLOptions?: ThunderGraphQLOptions<SCLR>) => <O extends keyof typeof Ops, OVERRIDESCLR extends SCLR, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, graphqlOptions?: ThunderGraphQLOptions<OVERRIDESCLR>) => <Z extends ValueTypes[R]>(o: Z & { [P in keyof Z]: P extends keyof ValueTypes[R] ? Z[P] : never; }, ops?: OperationOptions & {
|
|
24
24
|
variables?: Record<string, unknown>;
|
|
25
25
|
}) => Promise<InputType<GraphQLTypes[R], Z, UnionOverrideKeys<SCLR, OVERRIDESCLR>>>;
|
|
26
|
-
export declare const Chain: (...options: chainOptions) => <O extends
|
|
26
|
+
export declare const Chain: (...options: chainOptions) => <O extends keyof typeof Ops, OVERRIDESCLR extends ScalarDefinition, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, graphqlOptions?: ThunderGraphQLOptions<OVERRIDESCLR> | undefined) => <Z extends ValueTypes[R]>(o: Z & { [P in keyof Z]: P extends keyof ValueTypes[R] ? Z[P] : never; }, ops?: OperationOptions & {
|
|
27
27
|
variables?: Record<string, unknown>;
|
|
28
28
|
}) => Promise<InputType<GraphQLTypes[R], Z, UnionOverrideKeys<ScalarDefinition, OVERRIDESCLR>>>;
|
|
29
|
-
export declare const SubscriptionThunder: <SCLR extends ScalarDefinition>(fn: SubscriptionFunction, thunderGraphQLOptions?: ThunderGraphQLOptions<SCLR>
|
|
30
|
-
variables?: ExtractVariables<Z
|
|
31
|
-
})
|
|
32
|
-
export declare const Subscription: (...options: chainOptions) => <O extends
|
|
33
|
-
variables?: ExtractVariables<Z
|
|
34
|
-
})
|
|
35
|
-
export declare const Zeus: <Z extends ValueTypes[R], O extends
|
|
29
|
+
export declare const SubscriptionThunder: <SCLR extends ScalarDefinition>(fn: SubscriptionFunction, thunderGraphQLOptions?: ThunderGraphQLOptions<SCLR>) => <O extends keyof typeof Ops, OVERRIDESCLR extends SCLR, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, graphqlOptions?: ThunderGraphQLOptions<OVERRIDESCLR>) => <Z extends ValueTypes[R]>(o: Z & { [P in keyof Z]: P extends keyof ValueTypes[R] ? Z[P] : never; }, ops?: OperationOptions & {
|
|
30
|
+
variables?: ExtractVariables<Z>;
|
|
31
|
+
}) => SubscriptionToGraphQL<Z, GraphQLTypes[R], UnionOverrideKeys<SCLR, OVERRIDESCLR>>;
|
|
32
|
+
export declare const Subscription: (...options: chainOptions) => <O extends keyof typeof Ops, OVERRIDESCLR extends ScalarDefinition, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, graphqlOptions?: ThunderGraphQLOptions<OVERRIDESCLR> | undefined) => <Z extends ValueTypes[R]>(o: Z & { [P in keyof Z]: P extends keyof ValueTypes[R] ? Z[P] : never; }, ops?: OperationOptions & {
|
|
33
|
+
variables?: ExtractVariables<Z>;
|
|
34
|
+
}) => SubscriptionToGraphQL<Z, GraphQLTypes[R], UnionOverrideKeys<ScalarDefinition, OVERRIDESCLR>>;
|
|
35
|
+
export declare const Zeus: <Z extends ValueTypes[R], O extends keyof typeof Ops, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, o: Z, ops?: {
|
|
36
36
|
operationOptions?: OperationOptions;
|
|
37
37
|
scalars?: ScalarDefinition;
|
|
38
38
|
}) => string;
|
|
39
39
|
export declare const ZeusSelect: <T>() => SelectionFunction<T>;
|
|
40
40
|
export declare const Selector: <T extends keyof ValueTypes>(key: T) => SelectionFunction<ValueTypes[T]>;
|
|
41
41
|
export declare const TypeFromSelector: <T extends keyof ValueTypes>(key: T) => SelectionFunction<ValueTypes[T]>;
|
|
42
|
-
export declare const Gql: <O extends
|
|
42
|
+
export declare const Gql: <O extends keyof typeof Ops, OVERRIDESCLR extends ScalarDefinition, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, graphqlOptions?: ThunderGraphQLOptions<OVERRIDESCLR> | undefined) => <Z extends ValueTypes[R]>(o: Z & { [P in keyof Z]: P extends keyof ValueTypes[R] ? Z[P] : never; }, ops?: OperationOptions & {
|
|
43
43
|
variables?: Record<string, unknown>;
|
|
44
44
|
}) => Promise<InputType<GraphQLTypes[R], Z, UnionOverrideKeys<ScalarDefinition, OVERRIDESCLR>>>;
|
|
45
45
|
export declare const ZeusScalars: SelectionFunction<ScalarCoders>;
|
|
@@ -54,7 +54,7 @@ export declare const decodeScalarsInResponse: <O extends Operations>({ response,
|
|
|
54
54
|
ops: O;
|
|
55
55
|
response: any;
|
|
56
56
|
returns: ReturnTypesType;
|
|
57
|
-
scalars?: Record<string, ScalarResolver | undefined
|
|
57
|
+
scalars?: Record<string, ScalarResolver | undefined>;
|
|
58
58
|
initialOp: keyof O;
|
|
59
59
|
initialZeusQuery: InputValueType | VType;
|
|
60
60
|
}) => any;
|
|
@@ -126,18 +126,18 @@ export declare const PrepareScalarPaths: ({ ops, returns }: {
|
|
|
126
126
|
[x: string]: `scalar.${string}`;
|
|
127
127
|
} | undefined;
|
|
128
128
|
export declare const purifyGraphQLKey: (k: string) => string;
|
|
129
|
-
export declare const ResolveFromPath: (props: AllTypesPropsType, returns: ReturnTypesType, ops: Operations) => (path: string) =>
|
|
129
|
+
export declare const ResolveFromPath: (props: AllTypesPropsType, returns: ReturnTypesType, ops: Operations) => (path: string) => "enum" | "not" | `scalar.${string}`;
|
|
130
130
|
export declare const InternalArgsBuilt: ({ props, ops, returns, scalars, vars, }: {
|
|
131
131
|
props: AllTypesPropsType;
|
|
132
132
|
returns: ReturnTypesType;
|
|
133
133
|
ops: Operations;
|
|
134
|
-
scalars?: ScalarDefinition
|
|
134
|
+
scalars?: ScalarDefinition;
|
|
135
135
|
vars: Array<{
|
|
136
136
|
name: string;
|
|
137
137
|
graphQLType: string;
|
|
138
138
|
}>;
|
|
139
139
|
}) => (a: ZeusArgsType, p?: string, root?: boolean) => string;
|
|
140
|
-
export declare const resolverFor: <X, T extends keyof ResolverInputTypes, Z extends keyof ResolverInputTypes[T]>(type: T, field: Z, fn: (args: Required<ResolverInputTypes[T]>[Z] extends [infer Input, any] ? Input : any, source: any) => Z extends keyof ModelTypes[T] ?
|
|
140
|
+
export declare const resolverFor: <X, T extends keyof ResolverInputTypes, Z extends keyof ResolverInputTypes[T]>(type: T, field: Z, fn: (args: Required<ResolverInputTypes[T]>[Z] extends [infer Input, any] ? Input : any, source: any) => Z extends keyof ModelTypes[T] ? ModelTypes[T][Z] | Promise<ModelTypes[T][Z]> | X : never) => (args?: any, source?: any) => ReturnType<typeof fn>;
|
|
141
141
|
export type UnwrapPromise<T> = T extends Promise<infer R> ? R : T;
|
|
142
142
|
export type ZeusState<T extends (...args: any[]) => Promise<any>> = NonNullable<UnwrapPromise<ReturnType<T>>>;
|
|
143
143
|
export type ZeusHook<T extends (...args: any[]) => Record<string, (...args: any[]) => Promise<any>>, N extends keyof ReturnType<T>> = ZeusState<ReturnType<T>[N]>;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.ChartMetricType = exports.MetricIntervalType = exports.MetricRangeType = exports.MetricType = exports.MetricInterval = exports.OrderType = exports.LanguageCode = exports.HistoryEntryType = exports.CurrencyCode = exports.LogicalOperator = exports.ErrorCode = exports.SortOrder = exports.Permission = exports.DeletionResult = exports.AdjustmentType = exports.GlobalFlag = exports.AssetType = exports.StockMovementType = exports.JobState = exports.$ = exports.GRAPHQL_TYPE_SEPARATOR = exports.START_VAR_NAME = exports.resolverFor = exports.InternalArgsBuilt = exports.ResolveFromPath = exports.purifyGraphQLKey = exports.PrepareScalarPaths = exports.GraphQLError = exports.SEPARATOR = exports.traverseResponse = exports.decodeScalarsInResponse = exports.fields = exports.ZeusScalars = exports.Gql = exports.TypeFromSelector = exports.Selector = exports.ZeusSelect = exports.Zeus = exports.Subscription = exports.SubscriptionThunder = exports.Chain = exports.Thunder = exports.InternalsBuildQuery = exports.apiFetch = exports.apiSubscription = exports.HEADERS = exports.HOST = void 0;
|
|
5
5
|
const const_1 = require("./const");
|
|
6
|
-
exports.HOST = "http://localhost:
|
|
6
|
+
exports.HOST = "http://localhost:6100/admin-api";
|
|
7
7
|
exports.HEADERS = {};
|
|
8
8
|
const apiSubscription = (options) => (query) => {
|
|
9
9
|
var _a, _b, _c;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { TypedDocumentNode } from '@graphql-typed-document-node/core';
|
|
2
2
|
import { ValueTypes, GenericOperation, OperationOptions, GraphQLTypes, InputType, ScalarDefinition, ThunderGraphQLOptions, ExtractVariables } from './';
|
|
3
|
-
|
|
3
|
+
import { Ops } from './const';
|
|
4
|
+
export declare const typedGql: <O extends keyof typeof Ops, SCLR extends ScalarDefinition, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, graphqlOptions?: ThunderGraphQLOptions<SCLR>) => <Z extends ValueTypes[R]>(o: Z & { [P in keyof Z]: P extends keyof ValueTypes[R] ? Z[P] : never; }, ops?: OperationOptions) => TypedDocumentNode<InputType<GraphQLTypes[R], Z, SCLR>, ExtractVariables<Z>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const CreateCronJob: import("@graphql-typed-document-node/core").TypedDocumentNode<{
|
|
2
|
-
createCronJob?: boolean | null | undefined;
|
|
2
|
+
createCronJob?: boolean | undefined | null | undefined;
|
|
3
3
|
}, {} & {
|
|
4
4
|
input: {
|
|
5
5
|
jobQueueName: string | import("../zeus/index.js").Variable<any, string>;
|
|
@@ -7,7 +7,7 @@ export declare const CreateCronJob: import("@graphql-typed-document-node/core").
|
|
|
7
7
|
};
|
|
8
8
|
}>;
|
|
9
9
|
export declare const UpdateCronJob: import("@graphql-typed-document-node/core").TypedDocumentNode<{
|
|
10
|
-
updateCronJob?: boolean | null | undefined;
|
|
10
|
+
updateCronJob?: boolean | undefined | null | undefined;
|
|
11
11
|
}, {} & {
|
|
12
12
|
job: {
|
|
13
13
|
name: string | import("../zeus/index.js").Variable<any, string>;
|
|
@@ -15,7 +15,7 @@ export declare const UpdateCronJob: import("@graphql-typed-document-node/core").
|
|
|
15
15
|
};
|
|
16
16
|
}>;
|
|
17
17
|
export declare const RemoveCronJob: import("@graphql-typed-document-node/core").TypedDocumentNode<{
|
|
18
|
-
removeCronJob?: boolean | null | undefined;
|
|
18
|
+
removeCronJob?: boolean | undefined | null | undefined;
|
|
19
19
|
}, {} & {
|
|
20
20
|
jobs: {
|
|
21
21
|
name: string | import("../zeus/index.js").Variable<any, string>;
|
|
@@ -17,14 +17,14 @@ export declare const GetCronJobs: import("@graphql-typed-document-node/core").Ty
|
|
|
17
17
|
};
|
|
18
18
|
}, {} & {
|
|
19
19
|
input: {
|
|
20
|
-
take?: number | import("../zeus/index.js").Variable<any, string
|
|
21
|
-
channelToken?: string | import("../zeus/index.js").Variable<any, string
|
|
22
|
-
jobQueueName?: string | import("../zeus/index.js").Variable<any, string
|
|
20
|
+
take?: number | undefined | null | import("../zeus/index.js").Variable<any, string>;
|
|
21
|
+
channelToken?: string | undefined | null | import("../zeus/index.js").Variable<any, string>;
|
|
22
|
+
jobQueueName?: string | undefined | null | import("../zeus/index.js").Variable<any, string>;
|
|
23
23
|
};
|
|
24
24
|
}>;
|
|
25
25
|
export declare const GetCronJobsConfig: import("@graphql-typed-document-node/core").TypedDocumentNode<{
|
|
26
26
|
cronJobsConfig: {
|
|
27
|
-
suggestedJobs: string
|
|
27
|
+
suggestedJobs: Array<string>;
|
|
28
28
|
presets: {
|
|
29
29
|
default: boolean;
|
|
30
30
|
value: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"root":["../../src/plugin-ui/index.tsx","../../src/plugin-ui/components/CronSchedule.tsx","../../src/plugin-ui/pages/CronJobsPage.tsx","../../src/plugin-ui/constants.ts","../../src/plugin-ui/graphql/mutations.ts","../../src/plugin-ui/graphql/queries.ts","../../src/plugin-ui/graphql/selectors.ts","../../src/plugin-ui/zeus/const.ts","../../src/plugin-ui/zeus/index.ts","../../src/plugin-ui/zeus/typedDocumentNode.ts","../../src/plugin-ui/tsconfig.json","../../src/plugin-ui/locales/en/translations.json","../../src/plugin-ui/locales/pl/translations.json"],"version":"5.9.3"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ops } from './const';
|
|
2
|
-
export declare const HOST = "http://localhost:
|
|
2
|
+
export declare const HOST = "http://localhost:6100/admin-api";
|
|
3
3
|
export declare const HEADERS: {};
|
|
4
4
|
export declare const apiSubscription: (options: chainOptions) => (query: string) => {
|
|
5
5
|
ws: WebSocket;
|
|
@@ -8,38 +8,38 @@ export declare const apiSubscription: (options: chainOptions) => (query: string)
|
|
|
8
8
|
error: (e: (args: any) => void) => void;
|
|
9
9
|
open: (e: () => void) => void;
|
|
10
10
|
};
|
|
11
|
-
export declare const apiFetch: (options:
|
|
11
|
+
export declare const apiFetch: (options: fetchOptions) => (query: string, variables?: Record<string, unknown>) => Promise<Record<string, any> | undefined>;
|
|
12
12
|
export declare const InternalsBuildQuery: ({ ops, props, returns, options, scalars, }: {
|
|
13
13
|
props: AllTypesPropsType;
|
|
14
14
|
returns: ReturnTypesType;
|
|
15
15
|
ops: Operations;
|
|
16
|
-
options?: OperationOptions
|
|
17
|
-
scalars?: ScalarDefinition
|
|
16
|
+
options?: OperationOptions;
|
|
17
|
+
scalars?: ScalarDefinition;
|
|
18
18
|
}) => (k: string, o: InputValueType | VType, p?: string, root?: boolean, vars?: Array<{
|
|
19
19
|
name: string;
|
|
20
20
|
graphQLType: string;
|
|
21
21
|
}>) => string;
|
|
22
22
|
type UnionOverrideKeys<T, U> = Omit<T, keyof U> & U;
|
|
23
|
-
export declare const Thunder: <SCLR extends ScalarDefinition>(fn: FetchFunction, thunderGraphQLOptions?: ThunderGraphQLOptions<SCLR>
|
|
23
|
+
export declare const Thunder: <SCLR extends ScalarDefinition>(fn: FetchFunction, thunderGraphQLOptions?: ThunderGraphQLOptions<SCLR>) => <O extends keyof typeof Ops, OVERRIDESCLR extends SCLR, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, graphqlOptions?: ThunderGraphQLOptions<OVERRIDESCLR>) => <Z extends ValueTypes[R]>(o: Z & { [P in keyof Z]: P extends keyof ValueTypes[R] ? Z[P] : never; }, ops?: OperationOptions & {
|
|
24
24
|
variables?: Record<string, unknown>;
|
|
25
25
|
}) => Promise<InputType<GraphQLTypes[R], Z, UnionOverrideKeys<SCLR, OVERRIDESCLR>>>;
|
|
26
|
-
export declare const Chain: (...options: chainOptions) => <O extends
|
|
26
|
+
export declare const Chain: (...options: chainOptions) => <O extends keyof typeof Ops, OVERRIDESCLR extends ScalarDefinition, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, graphqlOptions?: ThunderGraphQLOptions<OVERRIDESCLR> | undefined) => <Z extends ValueTypes[R]>(o: Z & { [P in keyof Z]: P extends keyof ValueTypes[R] ? Z[P] : never; }, ops?: OperationOptions & {
|
|
27
27
|
variables?: Record<string, unknown>;
|
|
28
28
|
}) => Promise<InputType<GraphQLTypes[R], Z, UnionOverrideKeys<ScalarDefinition, OVERRIDESCLR>>>;
|
|
29
|
-
export declare const SubscriptionThunder: <SCLR extends ScalarDefinition>(fn: SubscriptionFunction, thunderGraphQLOptions?: ThunderGraphQLOptions<SCLR>
|
|
30
|
-
variables?: ExtractVariables<Z
|
|
31
|
-
})
|
|
32
|
-
export declare const Subscription: (...options: chainOptions) => <O extends
|
|
33
|
-
variables?: ExtractVariables<Z
|
|
34
|
-
})
|
|
35
|
-
export declare const Zeus: <Z extends ValueTypes[R], O extends
|
|
29
|
+
export declare const SubscriptionThunder: <SCLR extends ScalarDefinition>(fn: SubscriptionFunction, thunderGraphQLOptions?: ThunderGraphQLOptions<SCLR>) => <O extends keyof typeof Ops, OVERRIDESCLR extends SCLR, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, graphqlOptions?: ThunderGraphQLOptions<OVERRIDESCLR>) => <Z extends ValueTypes[R]>(o: Z & { [P in keyof Z]: P extends keyof ValueTypes[R] ? Z[P] : never; }, ops?: OperationOptions & {
|
|
30
|
+
variables?: ExtractVariables<Z>;
|
|
31
|
+
}) => SubscriptionToGraphQL<Z, GraphQLTypes[R], UnionOverrideKeys<SCLR, OVERRIDESCLR>>;
|
|
32
|
+
export declare const Subscription: (...options: chainOptions) => <O extends keyof typeof Ops, OVERRIDESCLR extends ScalarDefinition, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, graphqlOptions?: ThunderGraphQLOptions<OVERRIDESCLR> | undefined) => <Z extends ValueTypes[R]>(o: Z & { [P in keyof Z]: P extends keyof ValueTypes[R] ? Z[P] : never; }, ops?: OperationOptions & {
|
|
33
|
+
variables?: ExtractVariables<Z>;
|
|
34
|
+
}) => SubscriptionToGraphQL<Z, GraphQLTypes[R], UnionOverrideKeys<ScalarDefinition, OVERRIDESCLR>>;
|
|
35
|
+
export declare const Zeus: <Z extends ValueTypes[R], O extends keyof typeof Ops, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, o: Z, ops?: {
|
|
36
36
|
operationOptions?: OperationOptions;
|
|
37
37
|
scalars?: ScalarDefinition;
|
|
38
38
|
}) => string;
|
|
39
39
|
export declare const ZeusSelect: <T>() => SelectionFunction<T>;
|
|
40
40
|
export declare const Selector: <T extends keyof ValueTypes>(key: T) => SelectionFunction<ValueTypes[T]>;
|
|
41
41
|
export declare const TypeFromSelector: <T extends keyof ValueTypes>(key: T) => SelectionFunction<ValueTypes[T]>;
|
|
42
|
-
export declare const Gql: <O extends
|
|
42
|
+
export declare const Gql: <O extends keyof typeof Ops, OVERRIDESCLR extends ScalarDefinition, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, graphqlOptions?: ThunderGraphQLOptions<OVERRIDESCLR> | undefined) => <Z extends ValueTypes[R]>(o: Z & { [P in keyof Z]: P extends keyof ValueTypes[R] ? Z[P] : never; }, ops?: OperationOptions & {
|
|
43
43
|
variables?: Record<string, unknown>;
|
|
44
44
|
}) => Promise<InputType<GraphQLTypes[R], Z, UnionOverrideKeys<ScalarDefinition, OVERRIDESCLR>>>;
|
|
45
45
|
export declare const ZeusScalars: SelectionFunction<ScalarCoders>;
|
|
@@ -54,7 +54,7 @@ export declare const decodeScalarsInResponse: <O extends Operations>({ response,
|
|
|
54
54
|
ops: O;
|
|
55
55
|
response: any;
|
|
56
56
|
returns: ReturnTypesType;
|
|
57
|
-
scalars?: Record<string, ScalarResolver | undefined
|
|
57
|
+
scalars?: Record<string, ScalarResolver | undefined>;
|
|
58
58
|
initialOp: keyof O;
|
|
59
59
|
initialZeusQuery: InputValueType | VType;
|
|
60
60
|
}) => any;
|
|
@@ -126,18 +126,18 @@ export declare const PrepareScalarPaths: ({ ops, returns }: {
|
|
|
126
126
|
[x: string]: `scalar.${string}`;
|
|
127
127
|
} | undefined;
|
|
128
128
|
export declare const purifyGraphQLKey: (k: string) => string;
|
|
129
|
-
export declare const ResolveFromPath: (props: AllTypesPropsType, returns: ReturnTypesType, ops: Operations) => (path: string) =>
|
|
129
|
+
export declare const ResolveFromPath: (props: AllTypesPropsType, returns: ReturnTypesType, ops: Operations) => (path: string) => "enum" | "not" | `scalar.${string}`;
|
|
130
130
|
export declare const InternalArgsBuilt: ({ props, ops, returns, scalars, vars, }: {
|
|
131
131
|
props: AllTypesPropsType;
|
|
132
132
|
returns: ReturnTypesType;
|
|
133
133
|
ops: Operations;
|
|
134
|
-
scalars?: ScalarDefinition
|
|
134
|
+
scalars?: ScalarDefinition;
|
|
135
135
|
vars: Array<{
|
|
136
136
|
name: string;
|
|
137
137
|
graphQLType: string;
|
|
138
138
|
}>;
|
|
139
139
|
}) => (a: ZeusArgsType, p?: string, root?: boolean) => string;
|
|
140
|
-
export declare const resolverFor: <X, T extends keyof ResolverInputTypes, Z extends keyof ResolverInputTypes[T]>(type: T, field: Z, fn: (args: Required<ResolverInputTypes[T]>[Z] extends [infer Input, any] ? Input : any, source: any) => Z extends keyof ModelTypes[T] ?
|
|
140
|
+
export declare const resolverFor: <X, T extends keyof ResolverInputTypes, Z extends keyof ResolverInputTypes[T]>(type: T, field: Z, fn: (args: Required<ResolverInputTypes[T]>[Z] extends [infer Input, any] ? Input : any, source: any) => Z extends keyof ModelTypes[T] ? ModelTypes[T][Z] | Promise<ModelTypes[T][Z]> | X : never) => (args?: any, source?: any) => ReturnType<typeof fn>;
|
|
141
141
|
export type UnwrapPromise<T> = T extends Promise<infer R> ? R : T;
|
|
142
142
|
export type ZeusState<T extends (...args: any[]) => Promise<any>> = NonNullable<UnwrapPromise<ReturnType<T>>>;
|
|
143
143
|
export type ZeusHook<T extends (...args: any[]) => Record<string, (...args: any[]) => Promise<any>>, N extends keyof ReturnType<T>> = ZeusState<ReturnType<T>[N]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import { AllTypesProps, ReturnTypes, Ops } from './const';
|
|
3
|
-
export const HOST = "http://localhost:
|
|
3
|
+
export const HOST = "http://localhost:6100/admin-api";
|
|
4
4
|
export const HEADERS = {};
|
|
5
5
|
export const apiSubscription = (options) => (query) => {
|
|
6
6
|
try {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { TypedDocumentNode } from '@graphql-typed-document-node/core';
|
|
2
2
|
import { ValueTypes, GenericOperation, OperationOptions, GraphQLTypes, InputType, ScalarDefinition, ThunderGraphQLOptions, ExtractVariables } from './';
|
|
3
|
-
|
|
3
|
+
import { Ops } from './const';
|
|
4
|
+
export declare const typedGql: <O extends keyof typeof Ops, SCLR extends ScalarDefinition, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, graphqlOptions?: ThunderGraphQLOptions<SCLR>) => <Z extends ValueTypes[R]>(o: Z & { [P in keyof Z]: P extends keyof ValueTypes[R] ? Z[P] : never; }, ops?: OperationOptions) => TypedDocumentNode<InputType<GraphQLTypes[R], Z, SCLR>, ExtractVariables<Z>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deenruv/cronjobs-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"homepage": "https://deenruv.com/",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
"graphql-tag": "^2.12.6",
|
|
20
20
|
"graphql-zeus": "^7.0.0",
|
|
21
21
|
"lucide-react": "^0.363.0",
|
|
22
|
-
"react-hook-form": "^7.
|
|
22
|
+
"react-hook-form": "^7.71.1",
|
|
23
23
|
"react-i18next": "^14.0.5",
|
|
24
|
-
"react-router
|
|
24
|
+
"react-router": "^7.13.0",
|
|
25
25
|
"sonner": "^1.4.41",
|
|
26
|
-
"zod": "^3.
|
|
27
|
-
"@hookform/resolvers": "^2.
|
|
28
|
-
"@deenruv/admin-types": "1.0.
|
|
29
|
-
"@deenruv/core": "1.0.
|
|
30
|
-
"@deenruv/
|
|
31
|
-
"@deenruv/
|
|
26
|
+
"zod": "^4.3.6",
|
|
27
|
+
"@hookform/resolvers": "^5.2.2",
|
|
28
|
+
"@deenruv/admin-types": "1.0.9",
|
|
29
|
+
"@deenruv/core": "1.0.9",
|
|
30
|
+
"@deenruv/common": "1.0.9",
|
|
31
|
+
"@deenruv/react-ui-devkit": "1.0.9"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"typeorm": "^0.3.20",
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"react": "^19.0.0",
|
|
44
44
|
"react-dom": "^19.0.0",
|
|
45
45
|
"rimraf": "^5.0.10",
|
|
46
|
-
"typescript": "5.
|
|
46
|
+
"typescript": "~5.9.3"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "rimraf dist && tsc --build",
|
|
50
50
|
"watch": "tsc --build --watch",
|
|
51
51
|
"lint": "eslint ./src/**/*.ts",
|
|
52
52
|
"lint:fix": "eslint --fix ./src/**/*.ts",
|
|
53
|
-
"zeus": "zeus http://localhost:
|
|
53
|
+
"zeus": "zeus http://localhost:6100/admin-api ./src/plugin-server --td && zeus http://localhost:6100/admin-api ./src/plugin-ui --td"
|
|
54
54
|
}
|
|
55
55
|
}
|