@common-stack/server-core 7.2.1-alpha.47 → 7.2.1-alpha.49
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/lib/__tests__/connector-inngest-arrays.test.d.ts +1 -0
- package/lib/connector/__tests__/container-connector.test.d.ts +2 -0
- package/lib/connector/__tests__/context-connector.test.d.ts +1 -0
- package/lib/connector/__tests__/fixtures/preferenfces/sample-settings.d.ts +98 -0
- package/lib/connector/__tests__/fixtures/sample-roles-permissions/account-api/permission-contribution.d.ts +90 -0
- package/lib/connector/__tests__/graphql-middleware.test.d.ts +1 -0
- package/lib/connector/__tests__/permissions.test.d.ts +1 -0
- package/lib/connector/__tests__/policies.test.d.ts +1 -0
- package/lib/connector/__tests__/preferences.test.d.ts +1 -0
- package/lib/connector/__tests__/roles-update-connector.test.d.ts +1 -0
- package/lib/connector/__tests__/rules-connector.test.d.ts +1 -0
- package/lib/connector/__tests__/samples/graphql/types/person_entity_type.d.ts +2 -0
- package/lib/connector/__tests__/samples/graphql/types/person_search_type.d.ts +2 -0
- package/lib/connector/__tests__/samples/graphql/types/vendor_type.d.ts +2 -0
- package/lib/connector/__tests__/schema-connector.test.d.ts +1 -0
- package/lib/connector/__tests__/service-connector.test.d.ts +2 -0
- package/lib/connector/__tests__/websocket-connector.test.d.ts +1 -0
- package/lib/connector/connector.d.ts +619 -0
- package/lib/connector/connector.js +470 -0
- package/lib/connector/connector.js.map +1 -0
- package/lib/connector/index.d.ts +1 -0
- package/lib/constants/directives.d.ts +1 -0
- package/lib/constants/directives.js +1 -0
- package/lib/constants/directives.js.map +1 -0
- package/lib/constants/index.d.ts +2 -0
- package/lib/constants/types.d.ts +8 -0
- package/lib/constants/types.js +8 -0
- package/lib/constants/types.js.map +1 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -0
- package/lib/interfaces/connector.d.ts +36 -0
- package/lib/interfaces/datasource.d.ts +14 -0
- package/lib/interfaces/index.d.ts +7 -0
- package/lib/interfaces/mongo-migration.d.ts +17 -0
- package/lib/interfaces/permissions.d.ts +5 -0
- package/lib/interfaces/policies.d.ts +5 -0
- package/lib/interfaces/roles.d.ts +8 -0
- package/lib/interfaces/rules.d.ts +12 -0
- package/lib/interfaces/rules.js +6 -0
- package/lib/interfaces/rules.js.map +1 -0
- package/lib/interfaces/store.d.ts +3 -0
- package/lib/logger/index.d.ts +1 -0
- package/lib/logger/logger.d.ts +2 -0
- package/lib/logger/logger.js +5 -0
- package/lib/logger/logger.js.map +1 -0
- package/lib/moleculer-generation/__tests__/integration-proxy-moleculer.test.d.ts +6 -0
- package/lib/moleculer-generation/__tests__/moleculerEventHandler.test.d.ts +5 -0
- package/lib/moleculer-generation/__tests__/serviceGenerationUtils.test.d.ts +5 -0
- package/lib/moleculer-generation/__tests__/typedMoleculerService.test.d.ts +5 -0
- package/lib/moleculer-generation/__tests__/typedProxyService.test.d.ts +5 -0
- package/lib/moleculer-generation/generateAllServiceSchemas.cjs +628 -0
- package/lib/moleculer-generation/index.d.ts +16 -0
- package/lib/moleculer-generation/moleculerEventHandler.d.ts +73 -0
- package/lib/moleculer-generation/moleculerEventHandler.js +91 -0
- package/lib/moleculer-generation/moleculerEventHandler.js.map +1 -0
- package/lib/moleculer-generation/serviceGenerationUtils.d.ts +100 -0
- package/lib/moleculer-generation/serviceGenerationUtils.js +156 -0
- package/lib/moleculer-generation/serviceGenerationUtils.js.map +1 -0
- package/lib/moleculer-generation/typedMoleculerService.d.ts +502 -0
- package/lib/moleculer-generation/typedMoleculerService.js +685 -0
- package/lib/moleculer-generation/typedMoleculerService.js.map +1 -0
- package/lib/moleculer-generation/typedProxyService.d.ts +119 -0
- package/lib/moleculer-generation/typedProxyService.js +226 -0
- package/lib/moleculer-generation/typedProxyService.js.map +1 -0
- package/lib/moleculer-generation/zodToMoleculer.d.ts +45 -0
- package/lib/moleculer-generation/zodToMoleculer.js +120 -0
- package/lib/moleculer-generation/zodToMoleculer.js.map +1 -0
- package/lib/utils/extract-tenant-id.d.ts +1 -0
- package/lib/utils/extract-tenant-id.js +4 -0
- package/lib/utils/extract-tenant-id.js.map +1 -0
- package/lib/utils/generate-query-cache-key.d.ts +11 -0
- package/lib/utils/generate-query-cache-key.js +13 -0
- package/lib/utils/generate-query-cache-key.js.map +1 -0
- package/lib/utils/get-directive-args-from-schema.d.ts +13 -0
- package/lib/utils/get-directive-args-from-schema.js +25 -0
- package/lib/utils/get-directive-args-from-schema.js.map +1 -0
- package/lib/utils/index.d.ts +4 -0
- package/lib/utils/preferences.d.ts +87 -0
- package/lib/utils/preferences.js +40 -0
- package/lib/utils/preferences.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { IPreferences } from "../../../../interfaces";
|
|
2
|
+
export declare const defaultSettings: IPreferences;
|
|
3
|
+
export declare const convertedDefaultSettings: ({
|
|
4
|
+
type: string;
|
|
5
|
+
data: ({
|
|
6
|
+
default: boolean;
|
|
7
|
+
description: string;
|
|
8
|
+
enum: any[];
|
|
9
|
+
enumDescriptions: any[];
|
|
10
|
+
name: string;
|
|
11
|
+
overridable: boolean;
|
|
12
|
+
settings: string;
|
|
13
|
+
type: string;
|
|
14
|
+
} | {
|
|
15
|
+
default: boolean;
|
|
16
|
+
description: string;
|
|
17
|
+
enum: any[];
|
|
18
|
+
enumDescriptions: any[];
|
|
19
|
+
name: string;
|
|
20
|
+
settings: string;
|
|
21
|
+
type: string;
|
|
22
|
+
overridable?: undefined;
|
|
23
|
+
})[];
|
|
24
|
+
} | {
|
|
25
|
+
type: string;
|
|
26
|
+
data: {
|
|
27
|
+
name: string;
|
|
28
|
+
one: boolean;
|
|
29
|
+
}[];
|
|
30
|
+
})[];
|
|
31
|
+
export declare const userSettings: {
|
|
32
|
+
'files.trimTrailingWhitespace.default': boolean;
|
|
33
|
+
'tree.trimTrailingWhitespace.something': string;
|
|
34
|
+
'tree.trimTrailingWhitespace.one': boolean;
|
|
35
|
+
};
|
|
36
|
+
export declare const prefRes: {
|
|
37
|
+
'files.trimTrailingWhitespace': {
|
|
38
|
+
type: string;
|
|
39
|
+
default: boolean;
|
|
40
|
+
description: string;
|
|
41
|
+
settings: string;
|
|
42
|
+
enum: any[];
|
|
43
|
+
enumDescriptions: any[];
|
|
44
|
+
overridable: boolean;
|
|
45
|
+
};
|
|
46
|
+
'files.autosave': {
|
|
47
|
+
type: string;
|
|
48
|
+
default: boolean;
|
|
49
|
+
description: string;
|
|
50
|
+
settings: string;
|
|
51
|
+
enum: any[];
|
|
52
|
+
enumDescriptions: any[];
|
|
53
|
+
};
|
|
54
|
+
'tree.trimTrailingWhitespace': {
|
|
55
|
+
one: boolean;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export declare const prefsArrRes: ({
|
|
59
|
+
type: string;
|
|
60
|
+
data: ({
|
|
61
|
+
name: string;
|
|
62
|
+
type: string;
|
|
63
|
+
default: boolean;
|
|
64
|
+
description: string;
|
|
65
|
+
settings: string;
|
|
66
|
+
enum: any[];
|
|
67
|
+
enumDescriptions: any[];
|
|
68
|
+
overridable: boolean;
|
|
69
|
+
} | {
|
|
70
|
+
name: string;
|
|
71
|
+
type: string;
|
|
72
|
+
default: boolean;
|
|
73
|
+
description: string;
|
|
74
|
+
settings: string;
|
|
75
|
+
enum: any[];
|
|
76
|
+
enumDescriptions: any[];
|
|
77
|
+
overridable?: undefined;
|
|
78
|
+
})[];
|
|
79
|
+
} | {
|
|
80
|
+
type: string;
|
|
81
|
+
data: {
|
|
82
|
+
name: string;
|
|
83
|
+
one: boolean;
|
|
84
|
+
}[];
|
|
85
|
+
})[];
|
|
86
|
+
export declare const finalSettings: {
|
|
87
|
+
type: string;
|
|
88
|
+
data: {
|
|
89
|
+
name: string;
|
|
90
|
+
type: string;
|
|
91
|
+
default: boolean;
|
|
92
|
+
description: string;
|
|
93
|
+
settings: string;
|
|
94
|
+
enum: any[];
|
|
95
|
+
enumDescriptions: any[];
|
|
96
|
+
overridable: boolean;
|
|
97
|
+
}[];
|
|
98
|
+
}[];
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export declare const permissionContribution: {
|
|
2
|
+
"organization.teams.inviteMember": {
|
|
3
|
+
enumDescriptions: string[];
|
|
4
|
+
description: string;
|
|
5
|
+
type: string;
|
|
6
|
+
enum: string[];
|
|
7
|
+
default: string;
|
|
8
|
+
scope: number;
|
|
9
|
+
};
|
|
10
|
+
"organization.teams.view": {
|
|
11
|
+
enumDescriptions: string[];
|
|
12
|
+
description: string;
|
|
13
|
+
type: string;
|
|
14
|
+
enum: string[];
|
|
15
|
+
default: string;
|
|
16
|
+
scope: number;
|
|
17
|
+
};
|
|
18
|
+
"organization.teams.create": {
|
|
19
|
+
enumDescriptions: string[];
|
|
20
|
+
description: string;
|
|
21
|
+
type: string;
|
|
22
|
+
enum: string[];
|
|
23
|
+
default: string;
|
|
24
|
+
scope: number;
|
|
25
|
+
};
|
|
26
|
+
"organization.teams.edit": {
|
|
27
|
+
enumDescriptions: string[];
|
|
28
|
+
description: string;
|
|
29
|
+
type: string;
|
|
30
|
+
enum: string[];
|
|
31
|
+
default: string;
|
|
32
|
+
scope: number;
|
|
33
|
+
};
|
|
34
|
+
"organization.teams.delete": {
|
|
35
|
+
enumDescriptions: string[];
|
|
36
|
+
description: string;
|
|
37
|
+
type: string;
|
|
38
|
+
enum: string[];
|
|
39
|
+
default: string;
|
|
40
|
+
scope: number;
|
|
41
|
+
};
|
|
42
|
+
"organization.teams.manage": {
|
|
43
|
+
enumDescriptions: string[];
|
|
44
|
+
description: string;
|
|
45
|
+
type: string;
|
|
46
|
+
enum: string[];
|
|
47
|
+
default: string;
|
|
48
|
+
scope: number;
|
|
49
|
+
};
|
|
50
|
+
"organization.projects.view": {
|
|
51
|
+
enumDescriptions: string[];
|
|
52
|
+
description: string;
|
|
53
|
+
type: string;
|
|
54
|
+
enum: string[];
|
|
55
|
+
default: string;
|
|
56
|
+
scope: number;
|
|
57
|
+
};
|
|
58
|
+
"organization.projects.create": {
|
|
59
|
+
enumDescriptions: string[];
|
|
60
|
+
description: string;
|
|
61
|
+
type: string;
|
|
62
|
+
enum: string[];
|
|
63
|
+
default: string;
|
|
64
|
+
scope: number;
|
|
65
|
+
};
|
|
66
|
+
"organization.projects.edit": {
|
|
67
|
+
enumDescriptions: string[];
|
|
68
|
+
description: string;
|
|
69
|
+
type: string;
|
|
70
|
+
enum: string[];
|
|
71
|
+
default: string;
|
|
72
|
+
scope: number;
|
|
73
|
+
};
|
|
74
|
+
"organization.projects.delete": {
|
|
75
|
+
enumDescriptions: string[];
|
|
76
|
+
description: string;
|
|
77
|
+
type: string;
|
|
78
|
+
enum: string[];
|
|
79
|
+
default: string;
|
|
80
|
+
scope: number;
|
|
81
|
+
};
|
|
82
|
+
"organization.projects.manage": {
|
|
83
|
+
enumDescriptions: string[];
|
|
84
|
+
description: string;
|
|
85
|
+
type: string;
|
|
86
|
+
enum: string[];
|
|
87
|
+
default: string;
|
|
88
|
+
scope: number;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'jest';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'jest';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'jest';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'jest';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'jest';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'jest';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'jest';
|