@mittwald/api-models 4.126.0 → 4.127.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/dist/esm/domain/IngressTarget/IngressTarget.js +0 -11
- package/dist/esm/domain/IngressTarget/IngressTarget.test-types.js +0 -3
- package/dist/types/customer/Customer/Customer.d.ts +4 -0
- package/dist/types/domain/IngressTarget/IngressTarget.d.ts +2 -7
- package/dist/types/domain/IngressTarget/types.d.ts +1 -2
- package/package.json +3 -3
|
@@ -15,14 +15,6 @@ export class IngressRedirectTarget extends IngressTargetBase {
|
|
|
15
15
|
this.url = new URL(data.url);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
export class IngressDirectoryTarget extends IngressTargetBase {
|
|
19
|
-
type = "directory";
|
|
20
|
-
directory;
|
|
21
|
-
constructor(path, data) {
|
|
22
|
-
super(path, data);
|
|
23
|
-
this.directory = data.directory;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
18
|
export class IngressAppInstallationTarget extends IngressTargetBase {
|
|
27
19
|
type = "appInstallation";
|
|
28
20
|
appInstallation;
|
|
@@ -35,9 +27,6 @@ export class IngressUndefinedTarget extends IngressTargetBase {
|
|
|
35
27
|
type = "undefined";
|
|
36
28
|
}
|
|
37
29
|
export const ingressTargetFactory = (path, data) => {
|
|
38
|
-
if ("directory" in data) {
|
|
39
|
-
return new IngressDirectoryTarget(path, data);
|
|
40
|
-
}
|
|
41
30
|
if ("url" in data) {
|
|
42
31
|
return new IngressRedirectTarget(path, data);
|
|
43
32
|
}
|
|
@@ -32,6 +32,7 @@ declare const CustomerCommon_base: import("polytype").Polytype.ClusteredConstruc
|
|
|
32
32
|
customerNumber: string;
|
|
33
33
|
executingUserRoles?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerRole[] | undefined;
|
|
34
34
|
flags?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerCustomerFlag[] | undefined;
|
|
35
|
+
isAllowedToPlaceOrders?: boolean | undefined;
|
|
35
36
|
isBanned?: boolean | undefined;
|
|
36
37
|
isInDefaultOfPayment?: boolean | undefined;
|
|
37
38
|
levelOfUndeliverableDunningNotice?: "first" | "second" | undefined;
|
|
@@ -52,6 +53,7 @@ declare const CustomerCommon_base: import("polytype").Polytype.ClusteredConstruc
|
|
|
52
53
|
customerNumber: string;
|
|
53
54
|
executingUserRoles?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerRole[] | undefined;
|
|
54
55
|
flags?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerCustomerFlag[] | undefined;
|
|
56
|
+
isAllowedToPlaceOrders?: boolean | undefined;
|
|
55
57
|
isBanned?: boolean | undefined;
|
|
56
58
|
isInDefaultOfPayment?: boolean | undefined;
|
|
57
59
|
levelOfUndeliverableDunningNotice?: "first" | "second" | undefined;
|
|
@@ -78,6 +80,7 @@ declare const CustomerDetailed_base: import("polytype").Polytype.ClusteredConstr
|
|
|
78
80
|
customerNumber: string;
|
|
79
81
|
executingUserRoles?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerRole[] | undefined;
|
|
80
82
|
flags?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerCustomerFlag[] | undefined;
|
|
83
|
+
isAllowedToPlaceOrders?: boolean | undefined;
|
|
81
84
|
isBanned?: boolean | undefined;
|
|
82
85
|
isInDefaultOfPayment?: boolean | undefined;
|
|
83
86
|
levelOfUndeliverableDunningNotice?: "first" | "second" | undefined;
|
|
@@ -98,6 +101,7 @@ declare const CustomerDetailed_base: import("polytype").Polytype.ClusteredConstr
|
|
|
98
101
|
customerNumber: string;
|
|
99
102
|
executingUserRoles?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerRole[] | undefined;
|
|
100
103
|
flags?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerCustomerFlag[] | undefined;
|
|
104
|
+
isAllowedToPlaceOrders?: boolean | undefined;
|
|
101
105
|
isBanned?: boolean | undefined;
|
|
102
106
|
isInDefaultOfPayment?: boolean | undefined;
|
|
103
107
|
levelOfUndeliverableDunningNotice?: "first" | "second" | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DataModel } from "../../base/DataModel.js";
|
|
2
|
-
import { IngressUndefinedTargetData,
|
|
2
|
+
import { IngressUndefinedTargetData, IngressAppInstallationTargetData, IngressRedirectTargetData, IngressTargetData } from "./types.js";
|
|
3
3
|
import { IngressPath } from "../IngressPath/IngressPath.js";
|
|
4
4
|
import { AppInstallation } from "../../app/AppInstallation/index.js";
|
|
5
5
|
declare abstract class IngressTargetBase<T extends IngressTargetData> extends DataModel<T> {
|
|
@@ -11,11 +11,6 @@ export declare class IngressRedirectTarget extends IngressTargetBase<IngressRedi
|
|
|
11
11
|
readonly url: URL;
|
|
12
12
|
constructor(path: IngressPath, data: IngressRedirectTargetData);
|
|
13
13
|
}
|
|
14
|
-
export declare class IngressDirectoryTarget extends IngressTargetBase<IngressDirectoryTargetData> {
|
|
15
|
-
readonly type = "directory";
|
|
16
|
-
readonly directory: string;
|
|
17
|
-
constructor(path: IngressPath, data: IngressDirectoryTargetData);
|
|
18
|
-
}
|
|
19
14
|
export declare class IngressAppInstallationTarget extends IngressTargetBase<IngressAppInstallationTargetData> {
|
|
20
15
|
readonly type = "appInstallation";
|
|
21
16
|
readonly appInstallation: AppInstallation;
|
|
@@ -24,6 +19,6 @@ export declare class IngressAppInstallationTarget extends IngressTargetBase<Ingr
|
|
|
24
19
|
export declare class IngressUndefinedTarget extends IngressTargetBase<IngressUndefinedTargetData> {
|
|
25
20
|
readonly type = "undefined";
|
|
26
21
|
}
|
|
27
|
-
export type IngressTarget = IngressRedirectTarget |
|
|
22
|
+
export type IngressTarget = IngressRedirectTarget | IngressAppInstallationTarget | IngressUndefinedTarget;
|
|
28
23
|
export declare const ingressTargetFactory: (path: IngressPath, data: IngressTargetData) => IngressTarget;
|
|
29
24
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MittwaldAPIV2 } from "@mittwald/api-client";
|
|
2
2
|
export type IngressRedirectTargetData = MittwaldAPIV2.Components.Schemas.IngressTargetUrl;
|
|
3
|
-
export type IngressDirectoryTargetData = MittwaldAPIV2.Components.Schemas.IngressTargetDirectory;
|
|
4
3
|
export type IngressAppInstallationTargetData = MittwaldAPIV2.Components.Schemas.IngressTargetInstallation;
|
|
5
4
|
export type IngressContainerTargetData = MittwaldAPIV2.Components.Schemas.IngressTargetContainer;
|
|
6
5
|
export type IngressUndefinedTargetData = MittwaldAPIV2.Components.Schemas.IngressTargetUseDefaultPage;
|
|
7
|
-
export type IngressTargetData = IngressRedirectTargetData |
|
|
6
|
+
export type IngressTargetData = IngressRedirectTargetData | IngressAppInstallationTargetData | IngressUndefinedTargetData | IngressContainerTargetData;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/api-models",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.127.0",
|
|
4
4
|
"author": "Mittwald CM Service GmbH & Co. KG <opensource@mittwald.de>",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Collection of domain models for coherent interaction with the API",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"test:unit": "node --experimental-vm-modules $(yarn bin jest)"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@mittwald/api-client": "^4.
|
|
42
|
+
"@mittwald/api-client": "^4.127.0",
|
|
43
43
|
"another-deep-freeze": "^1.0.0",
|
|
44
44
|
"context": "^3.0.33",
|
|
45
45
|
"dinero.js": "^1.9.1",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"optional": true
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "93464277f81f01fb623aa7cb4d3b7b7a4a763cac"
|
|
88
88
|
}
|