@lilaquadrat/interfaces 1.1.0 → 1.2.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/CHANGELOG.md CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [1.2.0](https://github.com/lilaquadrat/interfaces/compare/v1.1.2...v1.2.0) (2024-02-16)
6
+
7
+
8
+ ### Features
9
+
10
+ * **customers, genericdata:** fixed genericData, added accounts to customers ([db0b518](https://github.com/lilaquadrat/interfaces/commit/db0b518f143160bfcd1a391ca0eede24a967a6b1))
11
+
12
+ ### [1.1.2](https://github.com/lilaquadrat/interfaces/compare/v1.1.1...v1.1.2) (2024-02-09)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **genericdata:** fixed genericData data ([4ca1362](https://github.com/lilaquadrat/interfaces/commit/4ca13628661e1c92594e65c18c48563cec52bb41))
18
+
19
+ ### [1.1.1](https://github.com/lilaquadrat/interfaces/compare/v1.1.0...v1.1.1) (2024-02-09)
20
+
5
21
  ## [1.1.0](https://github.com/lilaquadrat/interfaces/compare/v1.0.2...v1.1.0) (2024-02-09)
6
22
 
7
23
 
@@ -0,0 +1,3 @@
1
+ export default interface Auth0ProjectSettings {
2
+ domain?: string;
3
+ }
@@ -0,0 +1,13 @@
1
+ import { Content } from "./Content";
2
+ export interface ContentOptions {
3
+ company: string;
4
+ project: string;
5
+ partials?: boolean;
6
+ children?: boolean;
7
+ genericData?: boolean;
8
+ affectedStates?: Content['state'][];
9
+ categories?: {
10
+ not?: string[];
11
+ in?: string[];
12
+ };
13
+ }
@@ -0,0 +1,5 @@
1
+ export default interface CustomerAccounts {
2
+ account: string;
3
+ project: string;
4
+ app: string;
5
+ }
@@ -1,6 +1,8 @@
1
+ import CustomerAccounts from "./CustomerAccounts";
1
2
  import { CustomerBase } from "./CustomerBase";
2
3
  export interface CustomerPerson extends CustomerBase {
3
4
  type?: 'person';
4
5
  prename: string;
5
6
  gender?: 'm' | 'w' | 'd';
7
+ accounts?: CustomerAccounts[];
6
8
  }
@@ -1 +1 @@
1
- export type CustomersModelActions = 'createPersonMinimal' | 'createPersonExternal' | 'createPersonExternalWithAddress' | 'createCompanyMinimal' | 'changePersonMinimal' | 'changeCompanyMinimal';
1
+ export type CustomersModelActions = 'createPersonMinimal' | 'createPersonExternal' | 'createPersonExternalWithAddress' | 'createCompanyMinimal' | 'changePersonMinimal' | 'changeCompanyMinimal' | 'connectPersonAccount' | 'disconnectPersonAccount';
@@ -7,6 +7,6 @@ type CompatibleGenericDataType = 'editor' | 'lists' | 'customers' | 'media';
7
7
  type GenericData = {
8
8
  [key in CompatibleGenericDataType]: string[];
9
9
  } & {
10
- data: Record<string, BasicData<Content | List | Customers | Media>>;
10
+ data: BasicData<Content | List | Customers | Media>[];
11
11
  };
12
12
  export { GenericData, CompatibleGenericDataType };
@@ -1,6 +1,12 @@
1
+ import { BasicData } from "./BasicData";
1
2
  import { Content } from "./Content";
3
+ import { Customers } from "./Customers";
2
4
  import { CompatibleGenericDataType } from "./GenericData";
5
+ import { List } from "./List";
6
+ import { Media } from "./Media";
3
7
  type GenericDataWithContent = {
4
- [key in CompatibleGenericDataType]: Record<string, Content>;
8
+ [key in CompatibleGenericDataType]: string[];
9
+ } & {
10
+ data: Record<string, BasicData<Content | List | Customers | Media>>;
5
11
  };
6
12
  export { GenericDataWithContent };
@@ -1,3 +1,4 @@
1
+ import Auth0ProjectSettings from "./Auth0ProjectSettings";
1
2
  export interface Project {
2
3
  name: string;
3
4
  description?: string;
@@ -5,4 +6,5 @@ export interface Project {
5
6
  company: string;
6
7
  tags?: string[];
7
8
  apps?: string[];
9
+ auth0?: Auth0ProjectSettings;
8
10
  }
@@ -8,6 +8,7 @@ export * from './ApiResponses';
8
8
  export * from './App';
9
9
  export * from './AppFilter';
10
10
  export * from './AppPermissions';
11
+ export * from './Auth0ProjectSettings';
11
12
  export * from './AvailableStorageTypes';
12
13
  export * from './AvailableVariant';
13
14
  export * from './BaseFilterOptions';
@@ -25,9 +26,11 @@ export * from './CompanyProject';
25
26
  export * from './Contact';
26
27
  export * from './ContactAgreement';
27
28
  export * from './Content';
29
+ export * from './ContentOptions';
28
30
  export * from './ContentWithPositions';
29
31
  export * from './Contract';
30
32
  export * from './CreateResult';
33
+ export * from './CustomerAccounts';
31
34
  export * from './CustomerBase';
32
35
  export * from './CustomerCompany';
33
36
  export * from './CustomerPerson';
@@ -0,0 +1,3 @@
1
+ export default interface Auth0ProjectSettings {
2
+ domain?: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Auth0ProjectSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Auth0ProjectSettings.js","sourceRoot":"","sources":["../../src/Auth0ProjectSettings.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import { Content } from "./Content";
2
+ export interface ContentOptions {
3
+ company: string;
4
+ project: string;
5
+ partials?: boolean;
6
+ children?: boolean;
7
+ genericData?: boolean;
8
+ affectedStates?: Content['state'][];
9
+ categories?: {
10
+ not?: string[];
11
+ in?: string[];
12
+ };
13
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ContentOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentOptions.js","sourceRoot":"","sources":["../../src/ContentOptions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export default interface CustomerAccounts {
2
+ account: string;
3
+ project: string;
4
+ app: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CustomerAccounts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomerAccounts.js","sourceRoot":"","sources":["../../src/CustomerAccounts.ts"],"names":[],"mappings":""}
@@ -1,6 +1,8 @@
1
+ import CustomerAccounts from "./CustomerAccounts";
1
2
  import { CustomerBase } from "./CustomerBase";
2
3
  export interface CustomerPerson extends CustomerBase {
3
4
  type?: 'person';
4
5
  prename: string;
5
6
  gender?: 'm' | 'w' | 'd';
7
+ accounts?: CustomerAccounts[];
6
8
  }
@@ -1 +1 @@
1
- export type CustomersModelActions = 'createPersonMinimal' | 'createPersonExternal' | 'createPersonExternalWithAddress' | 'createCompanyMinimal' | 'changePersonMinimal' | 'changeCompanyMinimal';
1
+ export type CustomersModelActions = 'createPersonMinimal' | 'createPersonExternal' | 'createPersonExternalWithAddress' | 'createCompanyMinimal' | 'changePersonMinimal' | 'changeCompanyMinimal' | 'connectPersonAccount' | 'disconnectPersonAccount';
@@ -7,6 +7,6 @@ type CompatibleGenericDataType = 'editor' | 'lists' | 'customers' | 'media';
7
7
  type GenericData = {
8
8
  [key in CompatibleGenericDataType]: string[];
9
9
  } & {
10
- data: Record<string, BasicData<Content | List | Customers | Media>>;
10
+ data: BasicData<Content | List | Customers | Media>[];
11
11
  };
12
12
  export { GenericData, CompatibleGenericDataType };
@@ -1,6 +1,12 @@
1
+ import { BasicData } from "./BasicData";
1
2
  import { Content } from "./Content";
3
+ import { Customers } from "./Customers";
2
4
  import { CompatibleGenericDataType } from "./GenericData";
5
+ import { List } from "./List";
6
+ import { Media } from "./Media";
3
7
  type GenericDataWithContent = {
4
- [key in CompatibleGenericDataType]: Record<string, Content>;
8
+ [key in CompatibleGenericDataType]: string[];
9
+ } & {
10
+ data: Record<string, BasicData<Content | List | Customers | Media>>;
5
11
  };
6
12
  export { GenericDataWithContent };
@@ -1,3 +1,4 @@
1
+ import Auth0ProjectSettings from "./Auth0ProjectSettings";
1
2
  export interface Project {
2
3
  name: string;
3
4
  description?: string;
@@ -5,4 +6,5 @@ export interface Project {
5
6
  company: string;
6
7
  tags?: string[];
7
8
  apps?: string[];
9
+ auth0?: Auth0ProjectSettings;
8
10
  }
@@ -8,6 +8,7 @@ export * from './ApiResponses';
8
8
  export * from './App';
9
9
  export * from './AppFilter';
10
10
  export * from './AppPermissions';
11
+ export * from './Auth0ProjectSettings';
11
12
  export * from './AvailableStorageTypes';
12
13
  export * from './AvailableVariant';
13
14
  export * from './BaseFilterOptions';
@@ -25,9 +26,11 @@ export * from './CompanyProject';
25
26
  export * from './Contact';
26
27
  export * from './ContactAgreement';
27
28
  export * from './Content';
29
+ export * from './ContentOptions';
28
30
  export * from './ContentWithPositions';
29
31
  export * from './Contract';
30
32
  export * from './CreateResult';
33
+ export * from './CustomerAccounts';
31
34
  export * from './CustomerBase';
32
35
  export * from './CustomerCompany';
33
36
  export * from './CustomerPerson';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lilaquadrat/interfaces",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "interfaces in context of lilaquadrat STUDIO",
5
5
  "author": {
6
6
  "email": "m.schuebel@lila2.de",
@@ -0,0 +1,5 @@
1
+ export default interface Auth0ProjectSettings {
2
+
3
+ domain?: string
4
+
5
+ }
@@ -0,0 +1,14 @@
1
+ import { Content } from "./Content";
2
+
3
+ export interface ContentOptions {
4
+ company: string,
5
+ project: string,
6
+ partials?: boolean,
7
+ children?: boolean,
8
+ genericData?: boolean,
9
+ affectedStates?: Content['state'][],
10
+ categories?: {
11
+ not?: string[]
12
+ in?: string[]
13
+ }
14
+ }
@@ -0,0 +1,5 @@
1
+ export default interface CustomerAccounts {
2
+ account: string
3
+ project: string
4
+ app: string
5
+ }
@@ -1,3 +1,4 @@
1
+ import CustomerAccounts from "./CustomerAccounts"
1
2
  import { CustomerBase } from "./CustomerBase"
2
3
 
3
4
  export interface CustomerPerson extends CustomerBase {
@@ -9,4 +10,6 @@ export interface CustomerPerson extends CustomerBase {
9
10
  // birthday?: Date
10
11
  gender?: 'm' | 'w' | 'd'
11
12
 
13
+ accounts?: CustomerAccounts[]
14
+
12
15
  }
@@ -1,2 +1,3 @@
1
1
  export type CustomersModelActions = 'createPersonMinimal' | 'createPersonExternal'
2
- | 'createPersonExternalWithAddress' | 'createCompanyMinimal' | 'changePersonMinimal' | 'changeCompanyMinimal'
2
+ | 'createPersonExternalWithAddress' | 'createCompanyMinimal' | 'changePersonMinimal' | 'changeCompanyMinimal'
3
+ | 'connectPersonAccount' | 'disconnectPersonAccount'
@@ -9,9 +9,10 @@ type CompatibleGenericDataType = 'editor' | 'lists' | 'customers' | 'media';
9
9
  type GenericData = {
10
10
  [key in CompatibleGenericDataType]: string[]
11
11
  } & {
12
- data: Record<string, BasicData<Content | List | Customers | Media>>
12
+ data: BasicData<Content | List | Customers | Media>[];
13
13
  }
14
14
 
15
+
15
16
  export {
16
17
  GenericData,
17
18
  CompatibleGenericDataType
@@ -1,8 +1,15 @@
1
- import {Content} from "./Content"
1
+ import { BasicData } from "./BasicData";
2
+ import { Content } from "./Content"
3
+ import { Customers } from "./Customers";
2
4
  import { CompatibleGenericDataType } from "./GenericData";
5
+ import { List } from "./List";
6
+ import { Media } from "./Media";
3
7
 
4
8
  type GenericDataWithContent = {
5
- [key in CompatibleGenericDataType]: Record<string, Content>
9
+ [key in CompatibleGenericDataType]: string[]
10
+ } & {
11
+ data: Record<string, BasicData<Content | List | Customers | Media>>
6
12
  }
7
13
 
8
- export {GenericDataWithContent};
14
+
15
+ export { GenericDataWithContent };
package/src/Project.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import Auth0ProjectSettings from "./Auth0ProjectSettings"
2
+
1
3
  export interface Project {
2
4
 
3
5
  name: string
@@ -7,4 +9,6 @@ export interface Project {
7
9
  tags?: string[]
8
10
  apps?: string[]
9
11
 
12
+ auth0?: Auth0ProjectSettings
13
+
10
14
  }