@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 +16 -0
- package/lib/cjs/Auth0ProjectSettings.d.ts +3 -0
- package/lib/cjs/ContentOptions.d.ts +13 -0
- package/lib/cjs/CustomerAccounts.d.ts +5 -0
- package/lib/cjs/CustomerPerson.d.ts +2 -0
- package/lib/cjs/CustomersModelActions.d.ts +1 -1
- package/lib/cjs/GenericData.d.ts +1 -1
- package/lib/cjs/GenericDataWithContent.d.ts +7 -1
- package/lib/cjs/Project.d.ts +2 -0
- package/lib/cjs/index.d.ts +3 -0
- package/lib/esm/Auth0ProjectSettings.d.ts +3 -0
- package/lib/esm/Auth0ProjectSettings.js +2 -0
- package/lib/esm/Auth0ProjectSettings.js.map +1 -0
- package/lib/esm/ContentOptions.d.ts +13 -0
- package/lib/esm/ContentOptions.js +2 -0
- package/lib/esm/ContentOptions.js.map +1 -0
- package/lib/esm/CustomerAccounts.d.ts +5 -0
- package/lib/esm/CustomerAccounts.js +2 -0
- package/lib/esm/CustomerAccounts.js.map +1 -0
- package/lib/esm/CustomerPerson.d.ts +2 -0
- package/lib/esm/CustomersModelActions.d.ts +1 -1
- package/lib/esm/GenericData.d.ts +1 -1
- package/lib/esm/GenericDataWithContent.d.ts +7 -1
- package/lib/esm/Project.d.ts +2 -0
- package/lib/esm/index.d.ts +3 -0
- package/package.json +1 -1
- package/src/Auth0ProjectSettings.ts +5 -0
- package/src/ContentOptions.ts +14 -0
- package/src/CustomerAccounts.ts +5 -0
- package/src/CustomerPerson.ts +3 -0
- package/src/CustomersModelActions.ts +2 -1
- package/src/GenericData.ts +2 -1
- package/src/GenericDataWithContent.ts +10 -3
- package/src/Project.ts +4 -0
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,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
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type CustomersModelActions = 'createPersonMinimal' | 'createPersonExternal' | 'createPersonExternalWithAddress' | 'createCompanyMinimal' | 'changePersonMinimal' | 'changeCompanyMinimal';
|
|
1
|
+
export type CustomersModelActions = 'createPersonMinimal' | 'createPersonExternal' | 'createPersonExternalWithAddress' | 'createCompanyMinimal' | 'changePersonMinimal' | 'changeCompanyMinimal' | 'connectPersonAccount' | 'disconnectPersonAccount';
|
package/lib/cjs/GenericData.d.ts
CHANGED
|
@@ -7,6 +7,6 @@ type CompatibleGenericDataType = 'editor' | 'lists' | 'customers' | 'media';
|
|
|
7
7
|
type GenericData = {
|
|
8
8
|
[key in CompatibleGenericDataType]: string[];
|
|
9
9
|
} & {
|
|
10
|
-
data:
|
|
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]:
|
|
8
|
+
[key in CompatibleGenericDataType]: string[];
|
|
9
|
+
} & {
|
|
10
|
+
data: Record<string, BasicData<Content | List | Customers | Media>>;
|
|
5
11
|
};
|
|
6
12
|
export { GenericDataWithContent };
|
package/lib/cjs/Project.d.ts
CHANGED
|
@@ -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
|
}
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"ContentOptions.js","sourceRoot":"","sources":["../../src/ContentOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomerAccounts.js","sourceRoot":"","sources":["../../src/CustomerAccounts.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type CustomersModelActions = 'createPersonMinimal' | 'createPersonExternal' | 'createPersonExternalWithAddress' | 'createCompanyMinimal' | 'changePersonMinimal' | 'changeCompanyMinimal';
|
|
1
|
+
export type CustomersModelActions = 'createPersonMinimal' | 'createPersonExternal' | 'createPersonExternalWithAddress' | 'createCompanyMinimal' | 'changePersonMinimal' | 'changeCompanyMinimal' | 'connectPersonAccount' | 'disconnectPersonAccount';
|
package/lib/esm/GenericData.d.ts
CHANGED
|
@@ -7,6 +7,6 @@ type CompatibleGenericDataType = 'editor' | 'lists' | 'customers' | 'media';
|
|
|
7
7
|
type GenericData = {
|
|
8
8
|
[key in CompatibleGenericDataType]: string[];
|
|
9
9
|
} & {
|
|
10
|
-
data:
|
|
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]:
|
|
8
|
+
[key in CompatibleGenericDataType]: string[];
|
|
9
|
+
} & {
|
|
10
|
+
data: Record<string, BasicData<Content | List | Customers | Media>>;
|
|
5
11
|
};
|
|
6
12
|
export { GenericDataWithContent };
|
package/lib/esm/Project.d.ts
CHANGED
|
@@ -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
|
}
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -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
|
@@ -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
|
+
}
|
package/src/CustomerPerson.ts
CHANGED
|
@@ -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'
|
package/src/GenericData.ts
CHANGED
|
@@ -9,9 +9,10 @@ type CompatibleGenericDataType = 'editor' | 'lists' | 'customers' | 'media';
|
|
|
9
9
|
type GenericData = {
|
|
10
10
|
[key in CompatibleGenericDataType]: string[]
|
|
11
11
|
} & {
|
|
12
|
-
data:
|
|
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 {
|
|
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]:
|
|
9
|
+
[key in CompatibleGenericDataType]: string[]
|
|
10
|
+
} & {
|
|
11
|
+
data: Record<string, BasicData<Content | List | Customers | Media>>
|
|
6
12
|
}
|
|
7
13
|
|
|
8
|
-
|
|
14
|
+
|
|
15
|
+
export { GenericDataWithContent };
|
package/src/Project.ts
CHANGED