@qelos/global-types 3.7.4 → 3.7.7
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/auth-configuration-metadata.ts +21 -0
- package/blueprint.ts +1 -0
- package/index.ts +5 -1
- package/integration-sources.ts +80 -0
- package/integration.ts +23 -0
- package/micro-frontend.ts +2 -0
- package/package.json +2 -2
- package/screen-requirement.ts +2 -0
- package/workspace-configuration-metadata.ts +13 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
export interface IUserAdditionalField {
|
|
3
|
+
key: string
|
|
4
|
+
name: string,
|
|
5
|
+
label: string,
|
|
6
|
+
inputType: 'text' | 'email' | 'phone' | 'select' | 'checkbox' | 'radio',
|
|
7
|
+
valueType: 'string' | 'number' | 'boolean',
|
|
8
|
+
required: boolean,
|
|
9
|
+
defaultValue?: any;
|
|
10
|
+
options?: Array<{ label: string, value: string }>,
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface IAuthConfigurationMetadata {
|
|
14
|
+
treatUsernameAs: 'email' | 'username' | 'phone',
|
|
15
|
+
showLoginPage: boolean,
|
|
16
|
+
showRegisterPage: boolean,
|
|
17
|
+
socialLoginsSources?: {
|
|
18
|
+
linkedin?: string,
|
|
19
|
+
}
|
|
20
|
+
additionalUserFields: Array<IUserAdditionalField>
|
|
21
|
+
}
|
package/blueprint.ts
CHANGED
package/index.ts
CHANGED
|
@@ -6,4 +6,8 @@ export * from './micro-frontend'
|
|
|
6
6
|
export * from './screen-requirement'
|
|
7
7
|
export * from './navbar-group'
|
|
8
8
|
export * from './plugin-crud'
|
|
9
|
-
export * from './query-filters'
|
|
9
|
+
export * from './query-filters'
|
|
10
|
+
export * from './workspace-configuration-metadata'
|
|
11
|
+
export * from './auth-configuration-metadata'
|
|
12
|
+
export * from './integration-sources'
|
|
13
|
+
export * from './integration'
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export enum IntegrationSourceKind {
|
|
2
|
+
Qelos = 'qelos',
|
|
3
|
+
OpenAI = 'openai',
|
|
4
|
+
Email = 'email',
|
|
5
|
+
N8n = 'n8n',
|
|
6
|
+
Supabase = 'supabase',
|
|
7
|
+
LinkedIn = 'linkedin',
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface IIntegrationSource {
|
|
11
|
+
tenant: string;
|
|
12
|
+
plugin?: string;
|
|
13
|
+
user: string;
|
|
14
|
+
authentication: any;
|
|
15
|
+
metadata: any;
|
|
16
|
+
name: string;
|
|
17
|
+
labels: string[];
|
|
18
|
+
kind: IntegrationSourceKind;
|
|
19
|
+
created: Date;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface ILinkedInSource extends IIntegrationSource {
|
|
23
|
+
_id?: string;
|
|
24
|
+
kind: IntegrationSourceKind.LinkedIn;
|
|
25
|
+
authentication: {
|
|
26
|
+
clientSecret?: string;
|
|
27
|
+
};
|
|
28
|
+
metadata: {
|
|
29
|
+
clientId: string;
|
|
30
|
+
scope: string;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface IQelosSource extends IIntegrationSource {
|
|
35
|
+
_id?: string;
|
|
36
|
+
kind: IntegrationSourceKind.Qelos;
|
|
37
|
+
authentication: {
|
|
38
|
+
password: string;
|
|
39
|
+
};
|
|
40
|
+
metadata: {
|
|
41
|
+
url: string;
|
|
42
|
+
username: string;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface ISupabaseSource extends IIntegrationSource {
|
|
47
|
+
_id?: string;
|
|
48
|
+
kind: IntegrationSourceKind.Supabase;
|
|
49
|
+
metadata: {
|
|
50
|
+
url: string;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface IOpenAISource extends IIntegrationSource {
|
|
55
|
+
_id?: string;
|
|
56
|
+
kind: IntegrationSourceKind.OpenAI;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface IN8nSource extends IIntegrationSource {
|
|
60
|
+
_id?: string;
|
|
61
|
+
kind: IntegrationSourceKind.N8n;
|
|
62
|
+
metadata: {
|
|
63
|
+
url: string;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface IEmailSource extends IIntegrationSource {
|
|
68
|
+
_id?: string;
|
|
69
|
+
kind: IntegrationSourceKind.Email;
|
|
70
|
+
authentication: {
|
|
71
|
+
password: string;
|
|
72
|
+
};
|
|
73
|
+
metadata: {
|
|
74
|
+
username: string;
|
|
75
|
+
email: string;
|
|
76
|
+
pop3: string;
|
|
77
|
+
smtp: string;
|
|
78
|
+
senderName: string;
|
|
79
|
+
};
|
|
80
|
+
}
|
package/integration.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface IDataManipulationStep {
|
|
2
|
+
map: Record<string, string> // JQ expressions to be assigned to the key
|
|
3
|
+
// populate data from given object using qelos source. If blueprint is provided, it will be used to fetch the blueprint entity
|
|
4
|
+
populate: Record<string, { source: 'user' | 'workspace' | 'blueprintEntity'; blueprint?: string; }>
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface IIntegration {
|
|
8
|
+
_id: string;
|
|
9
|
+
tenant: string;
|
|
10
|
+
plugin?: string;
|
|
11
|
+
user: string;
|
|
12
|
+
kind: string[];
|
|
13
|
+
trigger: IIntegrationEntity;
|
|
14
|
+
target: IIntegrationEntity;
|
|
15
|
+
dataManipulation: IDataManipulationStep[]
|
|
16
|
+
created: Date;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface IIntegrationEntity {
|
|
20
|
+
source: string;
|
|
21
|
+
operation: string;
|
|
22
|
+
details: any;
|
|
23
|
+
}
|
package/micro-frontend.ts
CHANGED
|
@@ -5,11 +5,13 @@ export interface IMicroFrontend {
|
|
|
5
5
|
name: string;
|
|
6
6
|
description: string;
|
|
7
7
|
manifestUrl: string;
|
|
8
|
+
guest?: boolean;
|
|
8
9
|
url: string;
|
|
9
10
|
active: boolean;
|
|
10
11
|
opened: boolean;
|
|
11
12
|
roles: string[],
|
|
12
13
|
workspaceRoles: string[],
|
|
14
|
+
workspaceLabels?: string[],
|
|
13
15
|
crud?: string;
|
|
14
16
|
use?: string;
|
|
15
17
|
structure?: string;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qelos/global-types",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"types": "index.ts",
|
|
7
7
|
"scripts": {},
|
|
8
8
|
"author": "",
|
|
9
|
-
"gitHead": "
|
|
9
|
+
"gitHead": "3d16633c443daab6a480b7ee511b1154d40afe4d",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public"
|
package/screen-requirement.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface WorkspaceLabelDefinition {
|
|
2
|
+
title: string,
|
|
3
|
+
description: string,
|
|
4
|
+
value: string[]
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface WorkspaceConfigurationMetadata {
|
|
8
|
+
isActive: boolean,
|
|
9
|
+
creationPrivilegedRoles: string[],
|
|
10
|
+
viewMembersPrivilegedWsRoles: string[],
|
|
11
|
+
labels: WorkspaceLabelDefinition[],
|
|
12
|
+
allowNonLabeledWorkspaces: true
|
|
13
|
+
}
|