@qelos/global-types 3.7.7 → 3.8.0

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/LICENSE CHANGED
@@ -16,16 +16,16 @@ For full license details, see [Apache License 2.0](https://www.apache.org/licens
16
16
 
17
17
  ## Restriction on Managed Services - Custom Clause
18
18
 
19
- While the software is open and free to use for internal or personal purposes, **you are not permitted to offer this software or any derivative of it as a paid managed service** or **Software as a Service (SaaS)** without explicit permission from Qelos LTD.
19
+ While the software is open and free to use for internal or personal purposes, **you are not permitted to offer this software or any derivative of it as a paid managed service** or **Software as a Service (SaaS)** without explicit permission from Velocitech LTD.
20
20
 
21
21
  ### Key Restriction:
22
22
  - You **may not** sell, offer, or commercialize this software as a managed service, SaaS, or any similar hosted service.
23
23
 
24
24
  ### How to Obtain Permission:
25
- If you wish to offer a managed or commercial version of this software, you must obtain a **commercial license** from Qelos LTD. Please contact us at [support@qelos.io](mailto:support@qelos.io) for details.
25
+ If you wish to offer a managed or commercial version of this software, you must obtain a **commercial license** from Velocitech LTD. Please contact us at [support@qelos.io](mailto:support@qelos.io) for details.
26
26
 
27
27
  ## Additional Notes
28
28
 
29
- This license ensures the software remains free for personal use and community development, while protecting Qelos LTD’s right to control the commercialization of managed services based on the software.
29
+ This license ensures the software remains free for personal use and community development, while protecting Velocitech LTD’s right to control the commercialization of managed services based on the software.
30
30
 
31
31
  For any questions regarding the license, feel free to reach out at [support@qelos.io].
@@ -0,0 +1,19 @@
1
+
2
+ export interface IAppConfigurationMetadata {
3
+ name: string;
4
+ logoUrl: string;
5
+ description: string;
6
+ keywords: string;
7
+ slogan: string;
8
+ language: string;
9
+ direction: string;
10
+ themeStylesUrl: string;
11
+ scriptUrl: string;
12
+ homeScreen: string;
13
+ colorsPalette: Record<string, string>;
14
+ borderRadius: number;
15
+ baseFontSize: number;
16
+ websiteUrls: string[];
17
+
18
+ [key: string]: any;
19
+ }
@@ -12,10 +12,14 @@ export interface IUserAdditionalField {
12
12
 
13
13
  export interface IAuthConfigurationMetadata {
14
14
  treatUsernameAs: 'email' | 'username' | 'phone',
15
+ formPosition: 'left' | 'right' | 'center' | 'top' | 'bottom',
16
+ loginTitle?: string,
15
17
  showLoginPage: boolean,
16
18
  showRegisterPage: boolean,
19
+ backgroundImage?: string,
17
20
  socialLoginsSources?: {
18
21
  linkedin?: string,
19
22
  }
23
+ allowSocialAutoRegistration?: boolean,
20
24
  additionalUserFields: Array<IUserAdditionalField>
21
25
  }
package/blueprint.ts CHANGED
@@ -10,7 +10,8 @@ export enum BlueprintPropertyType {
10
10
  DATE = 'date',
11
11
  DATETIME = 'datetime',
12
12
  TIME = 'time',
13
- OBJECT = 'object'
13
+ OBJECT = 'object',
14
+ FILE = 'file'
14
15
  }
15
16
 
16
17
  export enum PermissionScope {
@@ -49,6 +50,8 @@ export interface IBlueprintPropertyDescriptor {
49
50
 
50
51
  export interface IBlueprintLimitation {
51
52
  scope: PermissionScope;
53
+ workspaceLabels: string[];
54
+ roles: string[];
52
55
  properties?: string[];
53
56
  value: number;
54
57
  }
@@ -72,5 +75,4 @@ export interface IBlueprint {
72
75
  };
73
76
  created: Date;
74
77
  updated: Date;
75
- workspaceLabelsBased?: string[];
76
78
  }
package/index.ts CHANGED
@@ -9,5 +9,6 @@ export * from './plugin-crud'
9
9
  export * from './query-filters'
10
10
  export * from './workspace-configuration-metadata'
11
11
  export * from './auth-configuration-metadata'
12
+ export * from './app-configuration-metadata'
12
13
  export * from './integration-sources'
13
14
  export * from './integration'
@@ -5,9 +5,11 @@ export enum IntegrationSourceKind {
5
5
  N8n = 'n8n',
6
6
  Supabase = 'supabase',
7
7
  LinkedIn = 'linkedin',
8
+ Http = 'http',
8
9
  }
9
10
 
10
11
  export interface IIntegrationSource {
12
+ _id?: string;
11
13
  tenant: string;
12
14
  plugin?: string;
13
15
  user: string;
@@ -19,6 +21,27 @@ export interface IIntegrationSource {
19
21
  created: Date;
20
22
  }
21
23
 
24
+ export enum HttpTargetOperation {
25
+ makeRequest = 'makeRequest',
26
+ }
27
+
28
+ export enum QelosTriggerOperation {
29
+ webhook = 'webhook',
30
+ }
31
+
32
+ export enum QelosTargetOperation {
33
+ webhook = 'webhook',
34
+ createBlueprintEntity = 'createBlueprintEntity',
35
+ createUser = 'createUser',
36
+ updateUser = 'updateUser',
37
+ setUserRoles = 'setUserRoles',
38
+ setWorkspaceLabels = 'setWorkspaceLabels',
39
+ }
40
+
41
+ export enum OpenAITargetOperation {
42
+ chatCompletion = 'chatCompletion',
43
+ }
44
+
22
45
  export interface ILinkedInSource extends IIntegrationSource {
23
46
  _id?: string;
24
47
  kind: IntegrationSourceKind.LinkedIn;
@@ -77,4 +100,17 @@ export interface IEmailSource extends IIntegrationSource {
77
100
  smtp: string;
78
101
  senderName: string;
79
102
  };
80
- }
103
+ }
104
+
105
+ export interface IHttpSource extends IIntegrationSource {
106
+ _id?: string;
107
+ kind: IntegrationSourceKind.Http;
108
+ authentication: {
109
+ securedHeaders: Record<string, string>;
110
+ };
111
+ metadata: {
112
+ baseUrl: string;
113
+ headers: Record<string, string>;
114
+ query: Record<string, string>;
115
+ };
116
+ }
package/integration.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  export interface IDataManipulationStep {
2
2
  map: Record<string, string> // JQ expressions to be assigned to the key
3
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; }>
4
+ populate: Record<string, { source: 'user' | 'workspace' | 'blueprintEntity'; blueprint?: string; }>,
5
+ clean?: boolean
5
6
  }
6
7
 
7
8
  export interface IIntegration {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@qelos/global-types",
3
- "version": "3.7.7",
3
+ "version": "3.8.0",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "types": "index.ts",
7
7
  "scripts": {},
8
8
  "author": "",
9
- "gitHead": "3d16633c443daab6a480b7ee511b1154d40afe4d",
9
+ "gitHead": "cb6281585059df8baa9b2ce388fb00577b2cf99b",
10
10
  "license": "MIT",
11
11
  "publishConfig": {
12
12
  "access": "public"
@@ -18,4 +18,5 @@ export interface IScreenRequirement {
18
18
  dependsField?: string;
19
19
  },
20
20
  fromData?: any;
21
+ lazy?: boolean;
21
22
  }
@@ -1,7 +1,8 @@
1
1
  export interface WorkspaceLabelDefinition {
2
2
  title: string,
3
3
  description: string,
4
- value: string[]
4
+ value: string[],
5
+ allowedRolesForCreation?: string[],
5
6
  }
6
7
 
7
8
  export interface WorkspaceConfigurationMetadata {
@@ -9,5 +10,9 @@ export interface WorkspaceConfigurationMetadata {
9
10
  creationPrivilegedRoles: string[],
10
11
  viewMembersPrivilegedWsRoles: string[],
11
12
  labels: WorkspaceLabelDefinition[],
12
- allowNonLabeledWorkspaces: true
13
+ allowNonLabeledWorkspaces: boolean,
14
+ allowNonWorkspaceUsers: boolean,
15
+ allowLogo?: boolean,
16
+ createWorkspacePageTitle?: string,
17
+ labelsSelectorTitle?: string,
13
18
  }