@lilaquadrat/interfaces 0.0.1

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.
Files changed (127) hide show
  1. package/dist/Action.interface.d.ts +1 -0
  2. package/dist/AdditionalContentInformation.interface.d.ts +4 -0
  3. package/dist/Address.interface.d.ts +9 -0
  4. package/dist/Agreement.interface.d.ts +6 -0
  5. package/dist/AgreementResponse.interface.d.ts +4 -0
  6. package/dist/ApiResponses.interface.d.ts +11 -0
  7. package/dist/App.interface.d.ts +14 -0
  8. package/dist/AppFilter.interface.d.ts +2 -0
  9. package/dist/AppPermissions.d.ts +7 -0
  10. package/dist/AvailableStorageTypes.interface.d.ts +2 -0
  11. package/dist/AvailableVariant.interface.d.ts +8 -0
  12. package/dist/BaseFilterOptions.interface.d.ts +7 -0
  13. package/dist/BasicData.interface.d.ts +16 -0
  14. package/dist/CallResponse.interface.d.ts +5 -0
  15. package/dist/CertificateActionResult.interface.d.ts +4 -0
  16. package/dist/ChildData.interface.d.ts +7 -0
  17. package/dist/CompanyProject.interface.d.ts +3 -0
  18. package/dist/Content.interface.d.ts +3 -0
  19. package/dist/ContentPrepared.interface.d.ts +10 -0
  20. package/dist/Contract.interface.d.ts +7 -0
  21. package/dist/CreateResult.interface.d.ts +5 -0
  22. package/dist/DataObject.interface.d.ts +11 -0
  23. package/dist/DatabaseQuery.interface.d.ts +3 -0
  24. package/dist/DatabaseQueryOptions.interface.d.ts +31 -0
  25. package/dist/DatabaseQuerySites.interface.d.ts +11 -0
  26. package/dist/DesignModule.interface.d.ts +14 -0
  27. package/dist/DomainConf.interface.d.ts +13 -0
  28. package/dist/EditorActiveModule.interface.d.ts +4 -0
  29. package/dist/EditorLegacy.interface.d.ts +5 -0
  30. package/dist/GenericData.interface.d.ts +9 -0
  31. package/dist/GenericDataWithContent.interface.d.ts +6 -0
  32. package/dist/HistoryReason.interface.d.ts +1 -0
  33. package/dist/HostingPorts.interface.d.ts +4 -0
  34. package/dist/HostingWithSettings.interface.d.ts +6 -0
  35. package/dist/HttpStatusCode.enum.d.ts +319 -0
  36. package/dist/ListCustomQueries.interface.d.ts +5 -0
  37. package/dist/ListOfModels.interface.d.ts +5 -0
  38. package/dist/ListParticipantsDetails.interface.d.ts +7 -0
  39. package/dist/Location.interface.d.ts +25 -0
  40. package/dist/Modelv2.interface.d.ts +3 -0
  41. package/dist/ModuleGeneric.interface.d.ts +16 -0
  42. package/dist/ModuleIndexOptions.interface.d.ts +6 -0
  43. package/dist/ModulePDFOptions.interface.d.ts +4 -0
  44. package/dist/ModuleSettings.interface.d.ts +7 -0
  45. package/dist/Options.interface.d.ts +4 -0
  46. package/dist/Partner.interface.d.ts +14 -0
  47. package/dist/Permissions.interface.d.ts +16 -0
  48. package/dist/Price.interface.d.ts +5 -0
  49. package/dist/PublishResult.interface.d.ts +9 -0
  50. package/dist/PublishResultStatistics.interface.d.ts +6 -0
  51. package/dist/RenderContext.interface.d.ts +15 -0
  52. package/dist/Scope.interface.d.ts +10 -0
  53. package/dist/ShareClientOptions.interface.d.ts +6 -0
  54. package/dist/SkipLimitSort.interface.d.ts +8 -0
  55. package/dist/StudioIframeMessage.interface.d.ts +6 -0
  56. package/dist/TrackerStatistics.interface.d.ts +23 -0
  57. package/dist/Universal.interface.d.ts +8 -0
  58. package/dist/UserApp.interface.d.ts +4 -0
  59. package/dist/UserAppOptionsRequired.interface.d.ts +6 -0
  60. package/dist/UserAppWithOptions.interface.d.ts +4 -0
  61. package/dist/Wildcardcertificates.interface.d.ts +13 -0
  62. package/helper.js +31 -0
  63. package/package.json +18 -0
  64. package/src/Action.interface.ts +1 -0
  65. package/src/AdditionalContentInformation.interface.ts +5 -0
  66. package/src/Address.interface.ts +9 -0
  67. package/src/Agreement.interface.ts +6 -0
  68. package/src/AgreementResponse.interface.ts +4 -0
  69. package/src/ApiResponses.interface.ts +15 -0
  70. package/src/App.interface.ts +23 -0
  71. package/src/AppFilter.interface.ts +1 -0
  72. package/src/AppPermissions.ts +9 -0
  73. package/src/AvailableStorageTypes.interface.ts +2 -0
  74. package/src/AvailableVariant.interface.ts +10 -0
  75. package/src/BaseFilterOptions.interface.ts +7 -0
  76. package/src/BasicData.interface.ts +19 -0
  77. package/src/CallResponse.interface.ts +6 -0
  78. package/src/CertificateActionResult.interface.ts +4 -0
  79. package/src/ChildData.interface.ts +8 -0
  80. package/src/CompanyProject.interface.ts +3 -0
  81. package/src/Content.interface.ts +3 -0
  82. package/src/ContentPrepared.interface.ts +13 -0
  83. package/src/Contract.interface.ts +9 -0
  84. package/src/CreateResult.interface.ts +8 -0
  85. package/src/DataObject.interface.ts +13 -0
  86. package/src/DatabaseQuery.interface.ts +3 -0
  87. package/src/DatabaseQueryOptions.interface.ts +31 -0
  88. package/src/DatabaseQuerySites.interface.ts +13 -0
  89. package/src/DesignModule.interface.ts +15 -0
  90. package/src/DomainConf.interface.ts +20 -0
  91. package/src/EditorActiveModule.interface.ts +4 -0
  92. package/src/EditorLegacy.interface.ts +5 -0
  93. package/src/GenericData.interface.ts +14 -0
  94. package/src/GenericDataWithContent.interface.ts +8 -0
  95. package/src/HistoryReason.interface.ts +1 -0
  96. package/src/HostingPorts.interface.ts +4 -0
  97. package/src/HostingWithSettings.interface.ts +7 -0
  98. package/src/HttpStatusCode.enum.ts +383 -0
  99. package/src/ListCustomQueries.interface.ts +8 -0
  100. package/src/ListOfModels.interface.ts +5 -0
  101. package/src/ListParticipantsDetails.interface.ts +6 -0
  102. package/src/Location.interface.ts +25 -0
  103. package/src/Modelv2.interface.ts +5 -0
  104. package/src/ModuleGeneric.interface.ts +29 -0
  105. package/src/ModuleIndexOptions.interface.ts +6 -0
  106. package/src/ModulePDFOptions.interface.ts +6 -0
  107. package/src/ModuleSettings.interface.ts +8 -0
  108. package/src/MulterFile.interface.ts +31 -0
  109. package/src/Options.interface.ts +4 -0
  110. package/src/Partner.interface.ts +20 -0
  111. package/src/Permissions.interface.ts +26 -0
  112. package/src/Price.interface.ts +7 -0
  113. package/src/PublishResult.interface.ts +10 -0
  114. package/src/PublishResultStatistics.interface.ts +6 -0
  115. package/src/RenderContext.interface.ts +16 -0
  116. package/src/Scope.interface.ts +10 -0
  117. package/src/ShareClient.interface.ts +36 -0
  118. package/src/ShareClientOptions.interface.ts +6 -0
  119. package/src/SkipLimitSort.interface.ts +7 -0
  120. package/src/StudioIframeMessage.interface.ts +6 -0
  121. package/src/TrackerStatistics.interface.ts +26 -0
  122. package/src/Universal.interface.ts +9 -0
  123. package/src/UserApp.interface.ts +5 -0
  124. package/src/UserAppOptionsRequired.interface.ts +7 -0
  125. package/src/UserAppWithOptions.interface.ts +6 -0
  126. package/src/Wildcardcertificates.interface.ts +11 -0
  127. package/tsconfig.json +19 -0
@@ -0,0 +1,25 @@
1
+ export default interface Location {
2
+ place_id: string;
3
+ licence: string;
4
+ osm_type: string;
5
+ osm_id: string;
6
+ boundingbox: string[];
7
+ lat: string;
8
+ lon: string;
9
+ display_name: string;
10
+ class: string;
11
+ type: string;
12
+ importance: number;
13
+ address: {
14
+ name: string;
15
+ house_number: string;
16
+ road: string;
17
+ neighbourhood: string;
18
+ suburb: string;
19
+ city: string;
20
+ state: string;
21
+ postcode: string;
22
+ country: string;
23
+ country_code: string;
24
+ };
25
+ }
@@ -0,0 +1,3 @@
1
+ export default interface Modelv2 {
2
+ SchemaType: 'change' | 'create' | string;
3
+ }
@@ -0,0 +1,16 @@
1
+ import ChildData from './ChildData.interface';
2
+ import ModuleIndexOptions from './ModuleIndexOptions.interface';
3
+ import ModulePDFOptions from './ModulePDFOptions.interface';
4
+ export default interface ModuleGeneric {
5
+ [key: string]: any;
6
+ id?: string;
7
+ type: string;
8
+ uuid?: string;
9
+ variant?: string[];
10
+ position?: string;
11
+ layout?: 'first' | 'last' | '';
12
+ source?: string;
13
+ childData?: ChildData;
14
+ index?: ModuleIndexOptions;
15
+ pdf?: ModulePDFOptions;
16
+ }
@@ -0,0 +1,6 @@
1
+ export default interface ModuleIndexOptions {
2
+ anchor?: string;
3
+ title?: string;
4
+ type?: string;
5
+ uuid?: string;
6
+ }
@@ -0,0 +1,4 @@
1
+ export default interface ModulePDFOptions {
2
+ newSiteAfter?: boolean;
3
+ newSiteBefore?: boolean;
4
+ }
@@ -0,0 +1,7 @@
1
+ import AvailableVariant, { EditorMode } from "./AvailableVariant.interface";
2
+ export default interface ModuleSettings {
3
+ variants: AvailableVariant[];
4
+ editor: {
5
+ modes: EditorMode[];
6
+ };
7
+ }
@@ -0,0 +1,4 @@
1
+ export default interface Options {
2
+ company?: string;
3
+ project?: string;
4
+ }
@@ -0,0 +1,14 @@
1
+ import BasicDataInterface from './BasicData.interface';
2
+ import Contract from './Contract.interface';
3
+ export default interface Partner extends BasicDataInterface {
4
+ id?: string;
5
+ state?: string;
6
+ contract?: {
7
+ file?: string | Contract;
8
+ user?: string;
9
+ date?: Date;
10
+ path?: string;
11
+ confirmed?: boolean;
12
+ };
13
+ contacts?: string[];
14
+ }
@@ -0,0 +1,16 @@
1
+ interface ProjectPermissions {
2
+ _id: string;
3
+ company: string;
4
+ project: string;
5
+ name: string;
6
+ id: string;
7
+ scope: string[];
8
+ }
9
+ interface CompanyWithProjectsPermissions<T = ProjectPermissions> {
10
+ _id?: string;
11
+ name?: string;
12
+ projects?: T[];
13
+ scope: string[];
14
+ }
15
+ type Permissions = CompanyWithProjectsPermissions[];
16
+ export { Permissions, ProjectPermissions, CompanyWithProjectsPermissions };
@@ -0,0 +1,5 @@
1
+ export default interface Price {
2
+ amount: number;
3
+ currency: string;
4
+ tax: number;
5
+ }
@@ -0,0 +1,9 @@
1
+ import { ObjectId } from 'mongodb';
2
+ export default interface PublishResult {
3
+ referenceId: ObjectId;
4
+ state: 'error' | 'success';
5
+ error?: string;
6
+ message?: string;
7
+ id?: string;
8
+ name?: string;
9
+ }
@@ -0,0 +1,6 @@
1
+ export default interface PublishResultStatistics {
2
+ affected: number;
3
+ error: number;
4
+ success: number;
5
+ successPercent: number;
6
+ }
@@ -0,0 +1,15 @@
1
+ import Content from './Content.interface';
2
+ export default interface RenderContext {
3
+ url?: string;
4
+ data?: Content;
5
+ layout?: Content;
6
+ title?: string;
7
+ description?: string;
8
+ settings?: Record<string, unknown>;
9
+ translation?: Record<string, string>;
10
+ tags?: string[];
11
+ app?: string;
12
+ css?: string;
13
+ cdn?: string;
14
+ renderTarget?: 'pdf' | 'web';
15
+ }
@@ -0,0 +1,10 @@
1
+ export interface Scope extends Array<SingleScope> {
2
+ }
3
+ export interface SingleScope extends String {
4
+ }
5
+ export interface ScopeObject {
6
+ [key: string]: Scope;
7
+ }
8
+ export interface ScopeObjectWithAdmin {
9
+ [key: string]: Scope;
10
+ }
@@ -0,0 +1,6 @@
1
+ export default interface ShareClientOptions {
2
+ connectionString: string;
3
+ container?: string;
4
+ shareName?: string;
5
+ baseFolder?: string;
6
+ }
@@ -0,0 +1,8 @@
1
+ import { SortDirection } from "mongodb";
2
+ export default interface SkipLimitSort {
3
+ skip: number;
4
+ limit: number;
5
+ sort: {
6
+ [key: string]: SortDirection;
7
+ };
8
+ }
@@ -0,0 +1,6 @@
1
+ export default interface StudioIframeMessage<T> {
2
+ data: {
3
+ type: 'studio-content' | 'studio-editor-settings' | 'studio-settings' | 'studio-active' | 'studio-cookie-reset';
4
+ data: T;
5
+ };
6
+ }
@@ -0,0 +1,23 @@
1
+ import { Tracker } from '../../studio-package/src/models/tracker.model';
2
+ export type TrackerCategories = 'call' | 'worktime' | 'all';
3
+ export interface TrackerData {
4
+ count: number;
5
+ time: number;
6
+ }
7
+ export default interface TrackerStatistics {
8
+ count: number;
9
+ all: TrackerData;
10
+ categories: {
11
+ all?: Partial<Record<TrackerCategories, TrackerData>>;
12
+ byMonth?: Partial<Record<string, Partial<Record<TrackerCategories, TrackerData>>>>;
13
+ byDay?: Partial<Record<string, Partial<Record<TrackerCategories, TrackerData>>>>;
14
+ };
15
+ start: Date;
16
+ end: Date;
17
+ }
18
+ export interface TrackerStatisticsDay {
19
+ data: Tracker[];
20
+ count: number;
21
+ statistics: Partial<Record<TrackerCategories, TrackerData>>;
22
+ date: Date;
23
+ }
@@ -0,0 +1,8 @@
1
+ import { ObjectId } from 'mongodb';
2
+ export default interface UniversalInterface {
3
+ [key: string]: unknown;
4
+ id?: string | number;
5
+ _id?: ObjectId;
6
+ referenceId?: ObjectId;
7
+ company: string;
8
+ }
@@ -0,0 +1,4 @@
1
+ export default interface UserApp {
2
+ user?: string;
3
+ app?: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ export default interface UserAppOptionsRequired {
2
+ user: string;
3
+ app: string;
4
+ company: string;
5
+ project: string;
6
+ }
@@ -0,0 +1,4 @@
1
+ import Options from './Options.interface';
2
+ import UserApp from './UserApp.interface';
3
+ type UserAppWithOptions = Options & UserApp;
4
+ export default UserAppWithOptions;
@@ -0,0 +1,13 @@
1
+ export default interface WildcartCertificate {
2
+ identifiers?: IdentifiersEntity[];
3
+ cert: string;
4
+ chain: string;
5
+ valid: {
6
+ from: Date;
7
+ to: Date;
8
+ };
9
+ }
10
+ export interface IdentifiersEntity {
11
+ type: string;
12
+ value: string;
13
+ }
package/helper.js ADDED
@@ -0,0 +1,31 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+
4
+ const distDir = './dist';
5
+ const outputPath = path.join(distDir, 'index.d.ts');
6
+
7
+ // Read all files in the dist directory
8
+ fs.readdir(distDir, (err, files) => {
9
+ if (err) {
10
+ console.error('Error reading dist directory:', err);
11
+ return;
12
+ }
13
+
14
+ // Filter out only .d.ts files and exclude index.d.ts
15
+ const exports = files
16
+ .filter(file => file.endsWith('.d.ts') && file !== 'index.d.ts')
17
+ .map(file => {
18
+ // Assuming the structure is flat and files can be exported directly
19
+ const moduleName = file.replace('.d.ts', '');
20
+ return `export * from './${moduleName}';`;
21
+ });
22
+
23
+ // Write the index.d.ts file
24
+ fs.writeFile(outputPath, exports.join('\n'), (err) => {
25
+ if (err) {
26
+ console.error('Error writing index.d.ts:', err);
27
+ } else {
28
+ console.log('index.d.ts created successfully.');
29
+ }
30
+ });
31
+ });
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@lilaquadrat/interfaces",
3
+ "version": "0.0.1",
4
+ "description": "interfaces in context of lilaquadrat STUDIO",
5
+ "author": "mschuebel <m.schuebel@lila2.de>",
6
+ "license": "MIT",
7
+ "dependencies": {
8
+ "typescript": "^5.3.3"
9
+ },
10
+ "scripts": {
11
+ "build": "tsc && node create-index.js"
12
+ },
13
+ "main": "dist/index.d.ts",
14
+ "types": "dist/index.d.ts",
15
+ "publishConfig": {
16
+ "access": "public"
17
+ }
18
+ }
@@ -0,0 +1 @@
1
+ export type Action = 'read' | 'remove' | 'create' | 'edit' | 'list' | 'history' | 'settings';
@@ -0,0 +1,5 @@
1
+ import ModuleIndexOptions from './ModuleIndexOptions.interface';
2
+
3
+ export default interface AdditionalContentInformation {
4
+ index?: ModuleIndexOptions[]
5
+ }
@@ -0,0 +1,9 @@
1
+ export default interface Address {
2
+ osm_id?: number;
3
+ street?: string;
4
+ streetNumber?: string;
5
+ zipcode?: string;
6
+ city?: string;
7
+ country?: string;
8
+ addressAddition?: string;
9
+ }
@@ -0,0 +1,6 @@
1
+ export default interface Agreement {
2
+ required: boolean
3
+ text: string
4
+ contentId: string
5
+ predefined?: boolean
6
+ }
@@ -0,0 +1,4 @@
1
+ export default interface AgreementResponse {
2
+ id: string
3
+ version: number
4
+ }
@@ -0,0 +1,15 @@
1
+ import HttpStatusCode from './HttpStatusCode.enum';
2
+
3
+ export default interface ApiResponses<T = void> {
4
+
5
+ post: {
6
+ data: T,
7
+ status: HttpStatusCode.OK | HttpStatusCode.NO_CONTENT
8
+ }
9
+
10
+ put: {
11
+ data: T,
12
+ status: HttpStatusCode.OK | HttpStatusCode.NO_CONTENT
13
+ }
14
+
15
+ }
@@ -0,0 +1,23 @@
1
+ import BasicDataInterface from './BasicData.interface';
2
+
3
+ export default interface App extends BasicDataInterface {
4
+
5
+ id: string
6
+ name: string;
7
+
8
+ universal: boolean
9
+ description?: string
10
+
11
+ /** list of models that are used in this app. needed for model based permissions */
12
+ models: string[]
13
+
14
+ icon: string
15
+
16
+ companyAvailable: boolean
17
+ projectAvailable: boolean
18
+
19
+ attributes?: 'previewInternal'|'previewPublic'|'paid'[]
20
+
21
+ available?: 'unavailable' | 'internal' | 'preview' | 'public';
22
+
23
+ }
@@ -0,0 +1 @@
1
+ export default interface AppFilter extends Array<'active' | 'admin' | 'previewPublic' | 'previewInternal' | 'paid'> { }
@@ -0,0 +1,9 @@
1
+ import { Scope } from './Scope.interface';
2
+
3
+ export default interface AppPermissions {
4
+ app: string;
5
+ company: string;
6
+ project: string;
7
+
8
+ scope: Scope;
9
+ }
@@ -0,0 +1,2 @@
1
+ type AvailableStorageTypes = 'mock'|'azureBlob'|'azureStorage'|'filesystem';
2
+ export default AvailableStorageTypes;
@@ -0,0 +1,10 @@
1
+ export default interface AvailableVariant {
2
+ key: string
3
+ name: string
4
+ description: string
5
+ group?: string
6
+ }
7
+ type EditorMode = Omit<AvailableVariant, 'group'>;
8
+ export {
9
+ EditorMode
10
+ };
@@ -0,0 +1,7 @@
1
+ export default interface BaseFilterOptions {
2
+ partial?: boolean
3
+ layout?: boolean
4
+ available?: boolean
5
+ tags?: string[]
6
+ search?: string
7
+ }
@@ -0,0 +1,19 @@
1
+ import { ObjectId } from 'mongodb';
2
+
3
+ export default interface BasicDataInterface {
4
+
5
+ id?: string | number
6
+ company?: string
7
+ project?: string
8
+ app?: string
9
+ model?: string
10
+ _id?: ObjectId
11
+ history?: {
12
+ version?: number
13
+ source: string
14
+ created?: Date
15
+ updated?: Date
16
+ additional?: any
17
+ };
18
+
19
+ }
@@ -0,0 +1,6 @@
1
+ import HttpStatusCode from './HttpStatusCode.enum';
2
+
3
+ export default interface CallResponse<T> {
4
+ status: HttpStatusCode;
5
+ r: T;
6
+ }
@@ -0,0 +1,4 @@
1
+ export default interface CertificateActionResult {
2
+ error?: string
3
+ message?: string
4
+ }
@@ -0,0 +1,8 @@
1
+ import Content from './Content.interface';
2
+
3
+ export default interface ChildData {
4
+ data: {
5
+ [key: string]: Content
6
+ }
7
+ index: string[]
8
+ }
@@ -0,0 +1,3 @@
1
+ import Options from './Options.interface';
2
+
3
+ export default interface CompanyProject extends Required<Options> {}
@@ -0,0 +1,3 @@
1
+ import { Editor } from '../../studio-package/src/models/editor.model';
2
+
3
+ export default interface Content extends Editor { }
@@ -0,0 +1,13 @@
1
+ import AdditionalContentInformation from './AdditionalContentInformation.interface';
2
+ import Content from './Content.interface';
3
+
4
+ export default interface ContentPrepared {
5
+
6
+ id?: Content['id']
7
+ settings: Content['settings']
8
+ top: Content['modules']
9
+ content: Content['modules']
10
+ bottom: Content['modules']
11
+ additional: AdditionalContentInformation
12
+
13
+ }
@@ -0,0 +1,9 @@
1
+ export default interface Contract {
2
+
3
+ filename: string
4
+ size: number
5
+ fromCompany: string
6
+ mimetype: string
7
+ path?: string
8
+
9
+ }
@@ -0,0 +1,8 @@
1
+ import { InferIdType } from 'mongodb';
2
+
3
+ export default interface CreateResult<T> {
4
+
5
+ _id: InferIdType<T>
6
+ id?: string | number
7
+
8
+ }
@@ -0,0 +1,13 @@
1
+ export default interface DataObject<T> {
2
+ count?: number;
3
+ all?: number;
4
+
5
+ sites?: {
6
+ first: number,
7
+ last: number,
8
+ current: number,
9
+ range: [number, number]
10
+ }
11
+
12
+ data?: T;
13
+ }
@@ -0,0 +1,3 @@
1
+ export default interface DatabaseQuery {
2
+ [key: string]: any
3
+ }
@@ -0,0 +1,31 @@
1
+ export default interface DatabaseQueryOptions {
2
+ /**
3
+ * include immutable history entries in the data
4
+ *
5
+ * @type {boolean}
6
+ * @memberof DatabaseQueryOptions
7
+ */
8
+ includeHistory?: boolean;
9
+ /**
10
+ * query for history entries, doesnt delete immutable_parent
11
+ *
12
+ * @type {boolean}
13
+ * @memberof DatabaseQueryOptions
14
+ */
15
+ isHistory?: boolean;
16
+ /**
17
+ * tags is a predefined attribute
18
+ * is this is true, the query builder will leave them alone
19
+ *
20
+ * @type {boolean}
21
+ * @memberof DatabaseQueryOptions
22
+ */
23
+ keepTags?: boolean;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof DatabaseQueryOptions
28
+ */
29
+ keepSearch?: boolean;
30
+ keepSort?: boolean;
31
+ }
@@ -0,0 +1,13 @@
1
+ export default interface DatabaseQuerySites {
2
+
3
+ first: number;
4
+ current: number;
5
+ last: number;
6
+
7
+ /**
8
+ * the range of documents you got
9
+ * example: site 1, limit 10, 10 or more documents in the database
10
+ * [1, 10]
11
+ */
12
+ range: [number, number];
13
+ }
@@ -0,0 +1,15 @@
1
+ import AvailableVariant, { EditorMode } from "./AvailableVariant.interface"
2
+
3
+ export default interface DesignModule {
4
+ name: string,
5
+ /**
6
+ * helps complex modules like contact.module for show different states like the form and the sucess content after submitting the form
7
+ *
8
+ * only available in editor mode
9
+ */
10
+ editor: {
11
+ modes: EditorMode[]
12
+ },
13
+ variants: AvailableVariant[],
14
+ component: () => void
15
+ }
@@ -0,0 +1,20 @@
1
+ import { Domain } from '../../studio-package/interfaces';
2
+
3
+ export default interface DomainConf {
4
+
5
+ domains: Domain[]
6
+
7
+ port?: number
8
+
9
+ ports?: {
10
+ http?: number,
11
+ https?: number,
12
+ }
13
+
14
+ company: string
15
+ project: string
16
+
17
+ defaultDomain?: string
18
+
19
+ certificate?: string
20
+ }
@@ -0,0 +1,4 @@
1
+ export default interface EditorActiveModule {
2
+ uuid?: string
3
+ position?: string
4
+ }
@@ -0,0 +1,5 @@
1
+ export default interface EditorLegacy {
2
+ __v?: string;
3
+ immutable_history?: string;
4
+ immutable_user?: string;
5
+ }
@@ -0,0 +1,14 @@
1
+ import Content from "./Content.interface"
2
+
3
+ type CompatibleGenericDataType = 'editor' | 'lists' | 'customers' | 'media';
4
+
5
+ type GenericData = {
6
+ [key in CompatibleGenericDataType]: string[]
7
+ } & {
8
+ data: Content[]
9
+ }
10
+
11
+ export default GenericData;
12
+ export {
13
+ CompatibleGenericDataType
14
+ }
@@ -0,0 +1,8 @@
1
+ import Content from "./Content.interface"
2
+ import { CompatibleGenericDataType } from "./GenericData.interface";
3
+
4
+ type GenericDataWithContent = {
5
+ [key in CompatibleGenericDataType]: Record<string, Content>
6
+ }
7
+
8
+ export default GenericDataWithContent;