@mittwald/api-models 4.242.1 → 4.242.2
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/package.json +3 -3
- package/dist/esm/app/AppInstallation/AppInstallation.js +0 -89
- package/dist/esm/app/AppInstallation/behaviors/api.js +0 -24
- package/dist/esm/app/AppInstallation/behaviors/index.js +0 -2
- package/dist/esm/app/AppInstallation/behaviors/types.js +0 -1
- package/dist/esm/app/AppInstallation/index.js +0 -2
- package/dist/esm/app/AppInstallation/types.js +0 -1
- package/dist/esm/app/index.js +0 -1
- package/dist/esm/article/Article/Article.js +0 -79
- package/dist/esm/article/Article/behaviors/api.js +0 -22
- package/dist/esm/article/Article/behaviors/index.js +0 -2
- package/dist/esm/article/Article/behaviors/types.js +0 -1
- package/dist/esm/article/Article/index.js +0 -2
- package/dist/esm/article/Article/types.js +0 -1
- package/dist/esm/article/index.js +0 -1
- package/dist/esm/base/DataModel.js +0 -7
- package/dist/esm/base/ListDataModel.js +0 -8
- package/dist/esm/base/ListQueryModel.js +0 -11
- package/dist/esm/base/Money.js +0 -5
- package/dist/esm/base/ReferenceModel.js +0 -9
- package/dist/esm/base/assertObjectFound.js +0 -9
- package/dist/esm/base/index.js +0 -6
- package/dist/esm/base/types.js +0 -1
- package/dist/esm/config/behaviors/api.js +0 -49
- package/dist/esm/config/behaviors/index.js +0 -1
- package/dist/esm/config/config.js +0 -13
- package/dist/esm/config/index.js +0 -1
- package/dist/esm/contract/Contract/Contract.js +0 -78
- package/dist/esm/contract/Contract/behaviors/api.js +0 -20
- package/dist/esm/contract/Contract/behaviors/index.js +0 -2
- package/dist/esm/contract/Contract/behaviors/types.js +0 -1
- package/dist/esm/contract/Contract/index.js +0 -2
- package/dist/esm/contract/Contract/types.js +0 -1
- package/dist/esm/contract/ContractItem/ContractItem.js +0 -31
- package/dist/esm/contract/ContractItem/behaviors/api.js +0 -13
- package/dist/esm/contract/ContractItem/behaviors/index.js +0 -2
- package/dist/esm/contract/ContractItem/behaviors/types.js +0 -1
- package/dist/esm/contract/ContractItem/index.js +0 -2
- package/dist/esm/contract/ContractItem/types.js +0 -1
- package/dist/esm/contract/index.js +0 -2
- package/dist/esm/customer/Customer/Customer.js +0 -96
- package/dist/esm/customer/Customer/behaviors/api.js +0 -30
- package/dist/esm/customer/Customer/behaviors/index.js +0 -2
- package/dist/esm/customer/Customer/behaviors/types.js +0 -1
- package/dist/esm/customer/Customer/index.js +0 -2
- package/dist/esm/customer/Customer/types.js +0 -1
- package/dist/esm/customer/index.js +0 -1
- package/dist/esm/domain/Ingress/Ingress.js +0 -106
- package/dist/esm/domain/Ingress/behaviors/api.js +0 -25
- package/dist/esm/domain/Ingress/behaviors/index.js +0 -2
- package/dist/esm/domain/Ingress/behaviors/types.js +0 -1
- package/dist/esm/domain/Ingress/index.js +0 -2
- package/dist/esm/domain/Ingress/types.js +0 -1
- package/dist/esm/domain/IngressPath/IngressPath.js +0 -15
- package/dist/esm/domain/IngressPath/IngressPath.test.js +0 -16
- package/dist/esm/domain/IngressPath/index.js +0 -2
- package/dist/esm/domain/IngressPath/types.js +0 -1
- package/dist/esm/domain/IngressTarget/IngressTarget.js +0 -40
- package/dist/esm/domain/IngressTarget/IngressTarget.test-types.js +0 -10
- package/dist/esm/domain/IngressTarget/index.js +0 -2
- package/dist/esm/domain/IngressTarget/types.js +0 -1
- package/dist/esm/domain/index.js +0 -1
- package/dist/esm/errors/ObjectNotFoundError.js +0 -7
- package/dist/esm/index.js +0 -7
- package/dist/esm/lib/deepFreeze.js +0 -4
- package/dist/esm/lib/joinedId.js +0 -1
- package/dist/esm/lib/types.js +0 -1
- package/dist/esm/project/Project/Project.js +0 -121
- package/dist/esm/project/Project/behaviors/api.js +0 -58
- package/dist/esm/project/Project/behaviors/inMem.js +0 -27
- package/dist/esm/project/Project/behaviors/index.js +0 -3
- package/dist/esm/project/Project/behaviors/types.js +0 -1
- package/dist/esm/project/Project/index.js +0 -2
- package/dist/esm/project/Project/types.js +0 -1
- package/dist/esm/project/index.js +0 -1
- package/dist/esm/react/MittwaldApiModelProvider.js +0 -12
- package/dist/esm/react/asyncResourceInvalidation.js +0 -29
- package/dist/esm/react/index.js +0 -4
- package/dist/esm/react/provideReact.js +0 -27
- package/dist/esm/react/provideReact.test-types.js +0 -21
- package/dist/esm/react/reactProvisionContext.js +0 -2
- package/dist/esm/react/reactUsePromise.js +0 -17
- package/dist/esm/react.js +0 -1
- package/dist/esm/server/Server/Server.js +0 -102
- package/dist/esm/server/Server/behaviors/api.js +0 -22
- package/dist/esm/server/Server/behaviors/index.js +0 -2
- package/dist/esm/server/Server/behaviors/types.js +0 -1
- package/dist/esm/server/Server/index.js +0 -1
- package/dist/esm/server/Server/types.js +0 -1
- package/dist/esm/server/index.js +0 -1
- package/dist/types/app/AppInstallation/AppInstallation.d.ts +0 -138
- package/dist/types/app/AppInstallation/behaviors/api.d.ts +0 -3
- package/dist/types/app/AppInstallation/behaviors/index.d.ts +0 -2
- package/dist/types/app/AppInstallation/behaviors/types.d.ts +0 -6
- package/dist/types/app/AppInstallation/index.d.ts +0 -2
- package/dist/types/app/AppInstallation/types.d.ts +0 -4
- package/dist/types/app/index.d.ts +0 -1
- package/dist/types/article/Article/Article.d.ts +0 -133
- package/dist/types/article/Article/behaviors/api.d.ts +0 -3
- package/dist/types/article/Article/behaviors/index.d.ts +0 -2
- package/dist/types/article/Article/behaviors/types.d.ts +0 -6
- package/dist/types/article/Article/index.d.ts +0 -2
- package/dist/types/article/Article/types.d.ts +0 -5
- package/dist/types/article/index.d.ts +0 -1
- package/dist/types/base/DataModel.d.ts +0 -5
- package/dist/types/base/ListDataModel.d.ts +0 -5
- package/dist/types/base/ListQueryModel.d.ts +0 -9
- package/dist/types/base/Money.d.ts +0 -3
- package/dist/types/base/ReferenceModel.d.ts +0 -5
- package/dist/types/base/assertObjectFound.d.ts +0 -3
- package/dist/types/base/index.d.ts +0 -6
- package/dist/types/base/types.d.ts +0 -6
- package/dist/types/config/behaviors/api.d.ts +0 -12
- package/dist/types/config/behaviors/index.d.ts +0 -1
- package/dist/types/config/config.d.ts +0 -23
- package/dist/types/config/index.d.ts +0 -1
- package/dist/types/contract/Contract/Contract.d.ts +0 -68
- package/dist/types/contract/Contract/behaviors/api.d.ts +0 -3
- package/dist/types/contract/Contract/behaviors/index.d.ts +0 -2
- package/dist/types/contract/Contract/behaviors/types.d.ts +0 -9
- package/dist/types/contract/Contract/index.d.ts +0 -2
- package/dist/types/contract/Contract/types.d.ts +0 -8
- package/dist/types/contract/ContractItem/ContractItem.d.ts +0 -64
- package/dist/types/contract/ContractItem/behaviors/api.d.ts +0 -3
- package/dist/types/contract/ContractItem/behaviors/index.d.ts +0 -2
- package/dist/types/contract/ContractItem/behaviors/types.d.ts +0 -4
- package/dist/types/contract/ContractItem/index.d.ts +0 -2
- package/dist/types/contract/ContractItem/types.d.ts +0 -2
- package/dist/types/contract/index.d.ts +0 -2
- package/dist/types/customer/Customer/Customer.d.ts +0 -138
- package/dist/types/customer/Customer/behaviors/api.d.ts +0 -3
- package/dist/types/customer/Customer/behaviors/index.d.ts +0 -2
- package/dist/types/customer/Customer/behaviors/types.d.ts +0 -7
- package/dist/types/customer/Customer/index.d.ts +0 -2
- package/dist/types/customer/Customer/types.d.ts +0 -5
- package/dist/types/customer/index.d.ts +0 -1
- package/dist/types/domain/Ingress/Ingress.d.ts +0 -109
- package/dist/types/domain/Ingress/behaviors/api.d.ts +0 -3
- package/dist/types/domain/Ingress/behaviors/index.d.ts +0 -2
- package/dist/types/domain/Ingress/behaviors/types.d.ts +0 -6
- package/dist/types/domain/Ingress/index.d.ts +0 -2
- package/dist/types/domain/Ingress/types.d.ts +0 -8
- package/dist/types/domain/IngressPath/IngressPath.d.ts +0 -11
- package/dist/types/domain/IngressPath/IngressPath.test.d.ts +0 -1
- package/dist/types/domain/IngressPath/index.d.ts +0 -2
- package/dist/types/domain/IngressPath/types.d.ts +0 -2
- package/dist/types/domain/IngressTarget/IngressTarget.d.ts +0 -24
- package/dist/types/domain/IngressTarget/IngressTarget.test-types.d.ts +0 -1
- package/dist/types/domain/IngressTarget/index.d.ts +0 -2
- package/dist/types/domain/IngressTarget/types.d.ts +0 -6
- package/dist/types/domain/index.d.ts +0 -1
- package/dist/types/errors/ObjectNotFoundError.d.ts +0 -3
- package/dist/types/index.d.ts +0 -7
- package/dist/types/lib/deepFreeze.d.ts +0 -5
- package/dist/types/lib/joinedId.d.ts +0 -1
- package/dist/types/lib/types.d.ts +0 -2
- package/dist/types/project/Project/Project.d.ts +0 -292
- package/dist/types/project/Project/behaviors/api.d.ts +0 -3
- package/dist/types/project/Project/behaviors/inMem.d.ts +0 -3
- package/dist/types/project/Project/behaviors/index.d.ts +0 -3
- package/dist/types/project/Project/behaviors/types.d.ts +0 -12
- package/dist/types/project/Project/index.d.ts +0 -2
- package/dist/types/project/Project/types.d.ts +0 -10
- package/dist/types/project/index.d.ts +0 -1
- package/dist/types/react/MittwaldApiModelProvider.d.ts +0 -6
- package/dist/types/react/asyncResourceInvalidation.d.ts +0 -4
- package/dist/types/react/index.d.ts +0 -5
- package/dist/types/react/provideReact.d.ts +0 -12
- package/dist/types/react/provideReact.test-types.d.ts +0 -1
- package/dist/types/react/reactProvisionContext.d.ts +0 -3
- package/dist/types/react/reactUsePromise.d.ts +0 -2
- package/dist/types/react.d.ts +0 -1
- package/dist/types/server/Server/Server.d.ts +0 -115
- package/dist/types/server/Server/behaviors/api.d.ts +0 -3
- package/dist/types/server/Server/behaviors/index.d.ts +0 -2
- package/dist/types/server/Server/behaviors/types.d.ts +0 -6
- package/dist/types/server/Server/index.d.ts +0 -1
- package/dist/types/server/Server/types.d.ts +0 -8
- package/dist/types/server/index.d.ts +0 -1
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MittwaldAPIV2Client } from "@mittwald/api-client";
|
|
2
|
-
declare class ApiSetupState {
|
|
3
|
-
private _client;
|
|
4
|
-
setupWithClient(client: MittwaldAPIV2Client): void;
|
|
5
|
-
setupWithApiToken(apiToken: string): void;
|
|
6
|
-
setupUnauthenticated(): void;
|
|
7
|
-
get client(): MittwaldAPIV2Client;
|
|
8
|
-
get defaults(): (typeof this.client)["axios"]["defaults"];
|
|
9
|
-
get interceptors(): (typeof this.client)["axios"]["interceptors"];
|
|
10
|
-
}
|
|
11
|
-
export declare const api: ApiSetupState;
|
|
12
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./api.js";
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ProjectBehaviors } from "../project/Project/behaviors/index.js";
|
|
2
|
-
import { ServerBehaviors } from "../server/Server/behaviors/index.js";
|
|
3
|
-
import { CustomerBehaviors } from "../customer/Customer/behaviors/index.js";
|
|
4
|
-
import { IngressBehaviors } from "../domain/Ingress/behaviors/index.js";
|
|
5
|
-
import { ContractBehaviors } from "../contract/Contract/behaviors/index.js";
|
|
6
|
-
import { AppInstallationBehaviors } from "../app/AppInstallation/behaviors/index.js";
|
|
7
|
-
import { ContractItemBehaviors } from "../contract/ContractItem/behaviors/index.js";
|
|
8
|
-
import { ArticleBehaviors } from "../article/Article/behaviors/index.js";
|
|
9
|
-
interface Config {
|
|
10
|
-
defaultPaginationLimit: number;
|
|
11
|
-
behaviors: {
|
|
12
|
-
contract: ContractBehaviors;
|
|
13
|
-
contractItem: ContractItemBehaviors;
|
|
14
|
-
article: ArticleBehaviors;
|
|
15
|
-
project: ProjectBehaviors;
|
|
16
|
-
server: ServerBehaviors;
|
|
17
|
-
customer: CustomerBehaviors;
|
|
18
|
-
ingress: IngressBehaviors;
|
|
19
|
-
appInstallation: AppInstallationBehaviors;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export declare const config: Config;
|
|
23
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./behaviors/index.js";
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { DataModel, ListDataModel, ListQueryModel, ReferenceModel } from "../../base/index.js";
|
|
2
|
-
import { ContractData, ContractListItemData, ContractListQueryData, ContractListQueryModelData } from "./types.js";
|
|
3
|
-
export declare class Contract extends ReferenceModel {
|
|
4
|
-
static ofId(id: string): Contract;
|
|
5
|
-
static find: import("../../react/provideReact.js").AsyncResourceVariant<(id: string) => Promise<ContractDetailed | undefined>>;
|
|
6
|
-
static query(query: ContractListQueryModelData): ContractListQuery;
|
|
7
|
-
static get: import("../../react/provideReact.js").AsyncResourceVariant<(id: string) => Promise<ContractDetailed>>;
|
|
8
|
-
}
|
|
9
|
-
declare const ContractCommon_base: import("polytype").Polytype.ClusteredConstructor<[{
|
|
10
|
-
new (data: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractContract | {
|
|
11
|
-
additionalItems?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractContractItem[] | undefined;
|
|
12
|
-
baseItem: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractContractItem;
|
|
13
|
-
contractId: string;
|
|
14
|
-
contractNumber: string;
|
|
15
|
-
customerId: string;
|
|
16
|
-
termination?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractTermination | undefined;
|
|
17
|
-
}): DataModel<import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractContract | {
|
|
18
|
-
additionalItems?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractContractItem[] | undefined;
|
|
19
|
-
baseItem: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractContractItem;
|
|
20
|
-
contractId: string;
|
|
21
|
-
contractNumber: string;
|
|
22
|
-
customerId: string;
|
|
23
|
-
termination?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractTermination | undefined;
|
|
24
|
-
}>;
|
|
25
|
-
}, typeof Contract]>;
|
|
26
|
-
declare class ContractCommon extends ContractCommon_base {
|
|
27
|
-
constructor(data: ContractListItemData | ContractData);
|
|
28
|
-
}
|
|
29
|
-
declare const ContractDetailed_base: import("polytype").Polytype.ClusteredConstructor<[typeof ContractCommon, {
|
|
30
|
-
new (data: {
|
|
31
|
-
additionalItems?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractContractItem[] | undefined;
|
|
32
|
-
baseItem: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractContractItem;
|
|
33
|
-
contractId: string;
|
|
34
|
-
contractNumber: string;
|
|
35
|
-
customerId: string;
|
|
36
|
-
termination?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractTermination | undefined;
|
|
37
|
-
}): DataModel<{
|
|
38
|
-
additionalItems?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractContractItem[] | undefined;
|
|
39
|
-
baseItem: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractContractItem;
|
|
40
|
-
contractId: string;
|
|
41
|
-
contractNumber: string;
|
|
42
|
-
customerId: string;
|
|
43
|
-
termination?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractTermination | undefined;
|
|
44
|
-
}>;
|
|
45
|
-
}]>;
|
|
46
|
-
export declare class ContractDetailed extends ContractDetailed_base {
|
|
47
|
-
constructor(data: ContractData);
|
|
48
|
-
}
|
|
49
|
-
declare const ContractListItem_base: import("polytype").Polytype.ClusteredConstructor<[typeof ContractCommon, {
|
|
50
|
-
new (data: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractContract): DataModel<import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractContract>;
|
|
51
|
-
}]>;
|
|
52
|
-
export declare class ContractListItem extends ContractListItem_base {
|
|
53
|
-
constructor(data: ContractListItemData);
|
|
54
|
-
}
|
|
55
|
-
export declare class ContractListQuery extends ListQueryModel<ContractListQueryModelData> {
|
|
56
|
-
constructor(query: ContractListQueryModelData);
|
|
57
|
-
refine(query: ContractListQueryData): ContractListQuery;
|
|
58
|
-
execute: import("../../react/provideReact.js").AsyncResourceVariant<() => Promise<ContractList>>;
|
|
59
|
-
getTotalCount: import("../../react/provideReact.js").AsyncResourceVariant<() => Promise<number>>;
|
|
60
|
-
findOneAndOnly: import("../../react/provideReact.js").AsyncResourceVariant<() => Promise<ContractListItem | undefined>>;
|
|
61
|
-
}
|
|
62
|
-
declare const ContractList_base: import("polytype").Polytype.ClusteredConstructor<[typeof ContractListQuery, {
|
|
63
|
-
new (items: ContractListItem[], totalCount: number): ListDataModel<ContractListItem>;
|
|
64
|
-
}]>;
|
|
65
|
-
export declare class ContractList extends ContractList_base {
|
|
66
|
-
constructor(query: ContractListQueryModelData, contracts: ContractListItem[], totalCount: number);
|
|
67
|
-
}
|
|
68
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ContractData, ContractListItemData, ContractListQueryData } from "../types.js";
|
|
2
|
-
import { QueryResponseData } from "../../../base/index.js";
|
|
3
|
-
export interface ContractBehaviors {
|
|
4
|
-
find: (id: string) => Promise<ContractData | undefined>;
|
|
5
|
-
list: (request: {
|
|
6
|
-
customerId: string;
|
|
7
|
-
queryParameters?: ContractListQueryData;
|
|
8
|
-
}) => Promise<QueryResponseData<ContractListItemData>>;
|
|
9
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { MittwaldAPIV2 } from "@mittwald/api-client";
|
|
2
|
-
import { Customer } from "../../customer/index.js";
|
|
3
|
-
export type ContractListQueryData = MittwaldAPIV2.Paths.V2ContractsContractId.Get.Parameters.Query;
|
|
4
|
-
export type ContractListQueryModelData = Omit<ContractListQueryData, "customerId"> & {
|
|
5
|
-
customer: Customer;
|
|
6
|
-
};
|
|
7
|
-
export type ContractData = MittwaldAPIV2.Operations.ContractGetDetailOfContract.ResponseData;
|
|
8
|
-
export type ContractListItemData = MittwaldAPIV2.Operations.ContractListContracts.ResponseData[number];
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { ContractItemData } from "./types.js";
|
|
2
|
-
import { DataModel, ReferenceModel } from "../../base/index.js";
|
|
3
|
-
export declare class ContractItem extends ReferenceModel {
|
|
4
|
-
static ofId(contractId: string, id: string): ContractItem;
|
|
5
|
-
static find: import("../../react/provideReact.js").AsyncResourceVariant<(contractId: string, contractItemId: string) => Promise<ContractItemDetailed | undefined>>;
|
|
6
|
-
static get: import("../../react/provideReact.js").AsyncResourceVariant<(contractId: string, contractItemId: string) => Promise<ContractItemDetailed>>;
|
|
7
|
-
readonly contractId: string;
|
|
8
|
-
constructor(contractId: string, id: string);
|
|
9
|
-
}
|
|
10
|
-
declare const ContractItemDetailed_base: import("polytype").Polytype.ClusteredConstructor<[{
|
|
11
|
-
new (data: {
|
|
12
|
-
activationDate?: string | undefined;
|
|
13
|
-
aggregateReference?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractAggregateReference | undefined;
|
|
14
|
-
articles: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractArticle[];
|
|
15
|
-
contractPeriod: number;
|
|
16
|
-
description: string;
|
|
17
|
-
freeTrialDays?: number | undefined;
|
|
18
|
-
groupByProjectId?: string | undefined;
|
|
19
|
-
invoiceStop?: string | undefined;
|
|
20
|
-
invoicingPeriod?: number | undefined;
|
|
21
|
-
isActivated: boolean;
|
|
22
|
-
isBaseItem: boolean;
|
|
23
|
-
isInFreeTrial?: boolean | undefined;
|
|
24
|
-
isInclusive?: boolean | undefined;
|
|
25
|
-
itemId: string;
|
|
26
|
-
nextPossibleDowngradeDate?: string | undefined;
|
|
27
|
-
nextPossibleTerminationDate?: string | undefined;
|
|
28
|
-
nextPossibleUpgradeDate?: string | undefined;
|
|
29
|
-
orderDate?: string | undefined;
|
|
30
|
-
orderId?: string | undefined;
|
|
31
|
-
replacedByItem?: string | undefined;
|
|
32
|
-
tariffChange?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractTariffChange | undefined;
|
|
33
|
-
termination?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractTermination | undefined;
|
|
34
|
-
totalPrice: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractPrice;
|
|
35
|
-
}): DataModel<{
|
|
36
|
-
activationDate?: string | undefined;
|
|
37
|
-
aggregateReference?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractAggregateReference | undefined;
|
|
38
|
-
articles: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractArticle[];
|
|
39
|
-
contractPeriod: number;
|
|
40
|
-
description: string;
|
|
41
|
-
freeTrialDays?: number | undefined;
|
|
42
|
-
groupByProjectId?: string | undefined;
|
|
43
|
-
invoiceStop?: string | undefined;
|
|
44
|
-
invoicingPeriod?: number | undefined;
|
|
45
|
-
isActivated: boolean;
|
|
46
|
-
isBaseItem: boolean;
|
|
47
|
-
isInFreeTrial?: boolean | undefined;
|
|
48
|
-
isInclusive?: boolean | undefined;
|
|
49
|
-
itemId: string;
|
|
50
|
-
nextPossibleDowngradeDate?: string | undefined;
|
|
51
|
-
nextPossibleTerminationDate?: string | undefined;
|
|
52
|
-
nextPossibleUpgradeDate?: string | undefined;
|
|
53
|
-
orderDate?: string | undefined;
|
|
54
|
-
orderId?: string | undefined;
|
|
55
|
-
replacedByItem?: string | undefined;
|
|
56
|
-
tariffChange?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractTariffChange | undefined;
|
|
57
|
-
termination?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractTermination | undefined;
|
|
58
|
-
totalPrice: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.ContractPrice;
|
|
59
|
-
}>;
|
|
60
|
-
}, typeof ContractItem]>;
|
|
61
|
-
export declare class ContractItemDetailed extends ContractItemDetailed_base {
|
|
62
|
-
constructor(contractId: string, data: ContractItemData);
|
|
63
|
-
}
|
|
64
|
-
export {};
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { DataModel } from "../../base/DataModel.js";
|
|
2
|
-
import { ReferenceModel } from "../../base/ReferenceModel.js";
|
|
3
|
-
import { AsyncResourceVariant } from "../../react/provideReact.js";
|
|
4
|
-
import { CustomerData, CustomerListItemData, CustomerListQueryData, CustomerUpdateRequestData } from "./types.js";
|
|
5
|
-
import { ListQueryModel } from "../../base/ListQueryModel.js";
|
|
6
|
-
import { ListDataModel } from "../../base/ListDataModel.js";
|
|
7
|
-
import { ServerListQuery } from "../../server/index.js";
|
|
8
|
-
import { ProjectListQuery } from "../../project/index.js";
|
|
9
|
-
export declare class Customer extends ReferenceModel {
|
|
10
|
-
readonly servers: ServerListQuery;
|
|
11
|
-
readonly projects: ProjectListQuery;
|
|
12
|
-
constructor(id: string);
|
|
13
|
-
static ofId(id: string): Customer;
|
|
14
|
-
static find: AsyncResourceVariant<(id: string) => Promise<CustomerDetailed | undefined>>;
|
|
15
|
-
static query(query?: CustomerListQueryData): CustomerListQuery;
|
|
16
|
-
/** @deprecated Use query() */
|
|
17
|
-
static list: AsyncResourceVariant<(query?: CustomerListQueryData) => Promise<Readonly<Array<CustomerListItem>>>>;
|
|
18
|
-
static get: AsyncResourceVariant<(id: string) => Promise<CustomerDetailed>>;
|
|
19
|
-
getDetailed: AsyncResourceVariant<() => Promise<CustomerDetailed>>;
|
|
20
|
-
findDetailed: AsyncResourceVariant<() => Promise<CustomerDetailed | undefined>>;
|
|
21
|
-
update(data: CustomerUpdateRequestData): Promise<void>;
|
|
22
|
-
}
|
|
23
|
-
declare const CustomerCommon_base: import("polytype").Polytype.ClusteredConstructor<[{
|
|
24
|
-
new (data: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerCustomer | {
|
|
25
|
-
activeSuspension?: {
|
|
26
|
-
createdAt: string;
|
|
27
|
-
} | undefined;
|
|
28
|
-
avatarRefId?: string | undefined;
|
|
29
|
-
categoryId?: string | undefined;
|
|
30
|
-
creationDate: string;
|
|
31
|
-
customerId: string;
|
|
32
|
-
customerNumber: string;
|
|
33
|
-
executingUserRoles?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerRole[] | undefined;
|
|
34
|
-
flags?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerCustomerFlag[] | undefined;
|
|
35
|
-
isAllowedToPlaceOrders?: boolean | undefined;
|
|
36
|
-
isBanned?: boolean | undefined;
|
|
37
|
-
isInDefaultOfPayment?: boolean | undefined;
|
|
38
|
-
levelOfUndeliverableDunningNotice?: "first" | "second" | undefined;
|
|
39
|
-
memberCount: number;
|
|
40
|
-
name: string;
|
|
41
|
-
owner?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerContact | undefined;
|
|
42
|
-
projectCount: number;
|
|
43
|
-
vatId?: string | undefined;
|
|
44
|
-
vatIdValidationState?: "valid" | "invalid" | "pending" | "unspecified" | undefined;
|
|
45
|
-
}): DataModel<import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerCustomer | {
|
|
46
|
-
activeSuspension?: {
|
|
47
|
-
createdAt: string;
|
|
48
|
-
} | undefined;
|
|
49
|
-
avatarRefId?: string | undefined;
|
|
50
|
-
categoryId?: string | undefined;
|
|
51
|
-
creationDate: string;
|
|
52
|
-
customerId: string;
|
|
53
|
-
customerNumber: string;
|
|
54
|
-
executingUserRoles?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerRole[] | undefined;
|
|
55
|
-
flags?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerCustomerFlag[] | undefined;
|
|
56
|
-
isAllowedToPlaceOrders?: boolean | undefined;
|
|
57
|
-
isBanned?: boolean | undefined;
|
|
58
|
-
isInDefaultOfPayment?: boolean | undefined;
|
|
59
|
-
levelOfUndeliverableDunningNotice?: "first" | "second" | undefined;
|
|
60
|
-
memberCount: number;
|
|
61
|
-
name: string;
|
|
62
|
-
owner?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerContact | undefined;
|
|
63
|
-
projectCount: number;
|
|
64
|
-
vatId?: string | undefined;
|
|
65
|
-
vatIdValidationState?: "valid" | "invalid" | "pending" | "unspecified" | undefined;
|
|
66
|
-
}>;
|
|
67
|
-
}, typeof Customer]>;
|
|
68
|
-
declare class CustomerCommon extends CustomerCommon_base {
|
|
69
|
-
constructor(data: CustomerListItemData | CustomerData);
|
|
70
|
-
}
|
|
71
|
-
declare const CustomerDetailed_base: import("polytype").Polytype.ClusteredConstructor<[typeof CustomerCommon, {
|
|
72
|
-
new (data: {
|
|
73
|
-
activeSuspension?: {
|
|
74
|
-
createdAt: string;
|
|
75
|
-
} | undefined;
|
|
76
|
-
avatarRefId?: string | undefined;
|
|
77
|
-
categoryId?: string | undefined;
|
|
78
|
-
creationDate: string;
|
|
79
|
-
customerId: string;
|
|
80
|
-
customerNumber: string;
|
|
81
|
-
executingUserRoles?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerRole[] | undefined;
|
|
82
|
-
flags?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerCustomerFlag[] | undefined;
|
|
83
|
-
isAllowedToPlaceOrders?: boolean | undefined;
|
|
84
|
-
isBanned?: boolean | undefined;
|
|
85
|
-
isInDefaultOfPayment?: boolean | undefined;
|
|
86
|
-
levelOfUndeliverableDunningNotice?: "first" | "second" | undefined;
|
|
87
|
-
memberCount: number;
|
|
88
|
-
name: string;
|
|
89
|
-
owner?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerContact | undefined;
|
|
90
|
-
projectCount: number;
|
|
91
|
-
vatId?: string | undefined;
|
|
92
|
-
vatIdValidationState?: "valid" | "invalid" | "pending" | "unspecified" | undefined;
|
|
93
|
-
}): DataModel<{
|
|
94
|
-
activeSuspension?: {
|
|
95
|
-
createdAt: string;
|
|
96
|
-
} | undefined;
|
|
97
|
-
avatarRefId?: string | undefined;
|
|
98
|
-
categoryId?: string | undefined;
|
|
99
|
-
creationDate: string;
|
|
100
|
-
customerId: string;
|
|
101
|
-
customerNumber: string;
|
|
102
|
-
executingUserRoles?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerRole[] | undefined;
|
|
103
|
-
flags?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerCustomerFlag[] | undefined;
|
|
104
|
-
isAllowedToPlaceOrders?: boolean | undefined;
|
|
105
|
-
isBanned?: boolean | undefined;
|
|
106
|
-
isInDefaultOfPayment?: boolean | undefined;
|
|
107
|
-
levelOfUndeliverableDunningNotice?: "first" | "second" | undefined;
|
|
108
|
-
memberCount: number;
|
|
109
|
-
name: string;
|
|
110
|
-
owner?: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerContact | undefined;
|
|
111
|
-
projectCount: number;
|
|
112
|
-
vatId?: string | undefined;
|
|
113
|
-
vatIdValidationState?: "valid" | "invalid" | "pending" | "unspecified" | undefined;
|
|
114
|
-
}>;
|
|
115
|
-
}]>;
|
|
116
|
-
export declare class CustomerDetailed extends CustomerDetailed_base {
|
|
117
|
-
constructor(data: CustomerData);
|
|
118
|
-
}
|
|
119
|
-
declare const CustomerListItem_base: import("polytype").Polytype.ClusteredConstructor<[typeof CustomerCommon, {
|
|
120
|
-
new (data: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerCustomer): DataModel<import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.CustomerCustomer>;
|
|
121
|
-
}]>;
|
|
122
|
-
export declare class CustomerListItem extends CustomerListItem_base {
|
|
123
|
-
constructor(data: CustomerListItemData);
|
|
124
|
-
}
|
|
125
|
-
export declare class CustomerListQuery extends ListQueryModel<CustomerListQueryData> {
|
|
126
|
-
constructor(query?: CustomerListQueryData);
|
|
127
|
-
refine(query: CustomerListQueryData): CustomerListQuery;
|
|
128
|
-
execute: AsyncResourceVariant<() => Promise<CustomerList>>;
|
|
129
|
-
getTotalCount: AsyncResourceVariant<() => Promise<number>>;
|
|
130
|
-
findOneAndOnly: AsyncResourceVariant<() => Promise<CustomerListItem | undefined>>;
|
|
131
|
-
}
|
|
132
|
-
declare const CustomerList_base: import("polytype").Polytype.ClusteredConstructor<[typeof CustomerListQuery, {
|
|
133
|
-
new (items: CustomerListItem[], totalCount: number): ListDataModel<CustomerListItem>;
|
|
134
|
-
}]>;
|
|
135
|
-
export declare class CustomerList extends CustomerList_base {
|
|
136
|
-
constructor(query: CustomerListQueryData, customers: CustomerListItem[], totalCount: number);
|
|
137
|
-
}
|
|
138
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CustomerListItemData, CustomerData, CustomerListQueryData, CustomerUpdateRequestData } from "../types.js";
|
|
2
|
-
import { QueryResponseData } from "../../../base/index.js";
|
|
3
|
-
export interface CustomerBehaviors {
|
|
4
|
-
find: (id: string) => Promise<CustomerData | undefined>;
|
|
5
|
-
list: (query?: CustomerListQueryData) => Promise<QueryResponseData<CustomerListItemData>>;
|
|
6
|
-
update: (id: string, data: CustomerUpdateRequestData) => Promise<void>;
|
|
7
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { MittwaldAPIV2 } from "@mittwald/api-client";
|
|
2
|
-
export type CustomerListQueryData = MittwaldAPIV2.Paths.V2Customers.Get.Parameters.Query;
|
|
3
|
-
export type CustomerData = MittwaldAPIV2.Operations.CustomerGetCustomer.ResponseData;
|
|
4
|
-
export type CustomerListItemData = MittwaldAPIV2.Operations.CustomerListCustomers.ResponseData[number];
|
|
5
|
-
export type CustomerUpdateRequestData = MittwaldAPIV2.Paths.V2CustomersCustomerId.Put.Parameters.RequestBody;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Customer/index.js";
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { DataModel } from "../../base/DataModel.js";
|
|
2
|
-
import { ReferenceModel } from "../../base/ReferenceModel.js";
|
|
3
|
-
import { AsyncResourceVariant } from "../../react/provideReact.js";
|
|
4
|
-
import { IngressData, IngressListItemData, IngressListQueryData, IngressListQueryModelData } from "./types.js";
|
|
5
|
-
import { IngressPath } from "../IngressPath/IngressPath.js";
|
|
6
|
-
import { ListQueryModel } from "../../base/ListQueryModel.js";
|
|
7
|
-
import { ListDataModel } from "../../base/ListDataModel.js";
|
|
8
|
-
export declare class Ingress extends ReferenceModel {
|
|
9
|
-
static ofId(id: string): Ingress;
|
|
10
|
-
static ofHostname(hostname: string): Ingress;
|
|
11
|
-
/** @deprecated: use query() or project.ingresses */
|
|
12
|
-
static list: AsyncResourceVariant<(query?: IngressListQueryData) => Promise<Readonly<Array<IngressListItem>>>>;
|
|
13
|
-
static find: AsyncResourceVariant<(id: string) => Promise<IngressDetailed | undefined>>;
|
|
14
|
-
static get: AsyncResourceVariant<(id: string) => Promise<IngressDetailed>>;
|
|
15
|
-
getDetailed: AsyncResourceVariant<() => Promise<IngressDetailed>>;
|
|
16
|
-
findDetailed: AsyncResourceVariant<() => Promise<IngressDetailed | undefined>>;
|
|
17
|
-
}
|
|
18
|
-
declare const IngressCommon_base: import("polytype").Polytype.ClusteredConstructor<[{
|
|
19
|
-
new (data: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.IngressIngress | {
|
|
20
|
-
dnsValidationErrors: ("ERROR_UNSPECIFIED" | "ERROR_QUAD_A" | "ERROR_NO_A_RECORD" | "ERROR_ACME_CERTIFICATE_REQUEST_DEADLINE_EXCEEDED")[];
|
|
21
|
-
hostname: string;
|
|
22
|
-
id: string;
|
|
23
|
-
ips: {
|
|
24
|
-
v4: string[];
|
|
25
|
-
};
|
|
26
|
-
isDefault: boolean;
|
|
27
|
-
isDomain?: boolean | undefined;
|
|
28
|
-
isEnabled: boolean;
|
|
29
|
-
ownership: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.IngressOwnership;
|
|
30
|
-
paths: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.IngressPath[];
|
|
31
|
-
projectId: string;
|
|
32
|
-
tls: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.IngressTlsAcme | import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.IngressTlsCertificate;
|
|
33
|
-
}): DataModel<import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.IngressIngress | {
|
|
34
|
-
dnsValidationErrors: ("ERROR_UNSPECIFIED" | "ERROR_QUAD_A" | "ERROR_NO_A_RECORD" | "ERROR_ACME_CERTIFICATE_REQUEST_DEADLINE_EXCEEDED")[];
|
|
35
|
-
hostname: string;
|
|
36
|
-
id: string;
|
|
37
|
-
ips: {
|
|
38
|
-
v4: string[];
|
|
39
|
-
};
|
|
40
|
-
isDefault: boolean;
|
|
41
|
-
isDomain?: boolean | undefined;
|
|
42
|
-
isEnabled: boolean;
|
|
43
|
-
ownership: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.IngressOwnership;
|
|
44
|
-
paths: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.IngressPath[];
|
|
45
|
-
projectId: string;
|
|
46
|
-
tls: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.IngressTlsAcme | import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.IngressTlsCertificate;
|
|
47
|
-
}>;
|
|
48
|
-
}, typeof Ingress]>;
|
|
49
|
-
export declare class IngressCommon extends IngressCommon_base {
|
|
50
|
-
readonly baseUrl: string;
|
|
51
|
-
readonly paths: ReadonlyArray<IngressPath>;
|
|
52
|
-
readonly defaultPath: IngressPath;
|
|
53
|
-
constructor(data: IngressListItemData | IngressData);
|
|
54
|
-
}
|
|
55
|
-
declare const IngressDetailed_base: import("polytype").Polytype.ClusteredConstructor<[typeof IngressCommon, {
|
|
56
|
-
new (data: {
|
|
57
|
-
dnsValidationErrors: ("ERROR_UNSPECIFIED" | "ERROR_QUAD_A" | "ERROR_NO_A_RECORD" | "ERROR_ACME_CERTIFICATE_REQUEST_DEADLINE_EXCEEDED")[];
|
|
58
|
-
hostname: string;
|
|
59
|
-
id: string;
|
|
60
|
-
ips: {
|
|
61
|
-
v4: string[];
|
|
62
|
-
};
|
|
63
|
-
isDefault: boolean;
|
|
64
|
-
isDomain?: boolean | undefined;
|
|
65
|
-
isEnabled: boolean;
|
|
66
|
-
ownership: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.IngressOwnership;
|
|
67
|
-
paths: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.IngressPath[];
|
|
68
|
-
projectId: string;
|
|
69
|
-
tls: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.IngressTlsAcme | import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.IngressTlsCertificate;
|
|
70
|
-
}): DataModel<{
|
|
71
|
-
dnsValidationErrors: ("ERROR_UNSPECIFIED" | "ERROR_QUAD_A" | "ERROR_NO_A_RECORD" | "ERROR_ACME_CERTIFICATE_REQUEST_DEADLINE_EXCEEDED")[];
|
|
72
|
-
hostname: string;
|
|
73
|
-
id: string;
|
|
74
|
-
ips: {
|
|
75
|
-
v4: string[];
|
|
76
|
-
};
|
|
77
|
-
isDefault: boolean;
|
|
78
|
-
isDomain?: boolean | undefined;
|
|
79
|
-
isEnabled: boolean;
|
|
80
|
-
ownership: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.IngressOwnership;
|
|
81
|
-
paths: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.IngressPath[];
|
|
82
|
-
projectId: string;
|
|
83
|
-
tls: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.IngressTlsAcme | import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.IngressTlsCertificate;
|
|
84
|
-
}>;
|
|
85
|
-
}]>;
|
|
86
|
-
export declare class IngressDetailed extends IngressDetailed_base {
|
|
87
|
-
constructor(data: IngressData);
|
|
88
|
-
}
|
|
89
|
-
declare const IngressListItem_base: import("polytype").Polytype.ClusteredConstructor<[typeof IngressCommon, {
|
|
90
|
-
new (data: import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.IngressIngress): DataModel<import("@mittwald/api-client").MittwaldAPIV2.Components.Schemas.IngressIngress>;
|
|
91
|
-
}]>;
|
|
92
|
-
export declare class IngressListItem extends IngressListItem_base {
|
|
93
|
-
constructor(data: IngressListItemData);
|
|
94
|
-
}
|
|
95
|
-
export declare class IngressListQuery extends ListQueryModel<IngressListQueryModelData> {
|
|
96
|
-
constructor(query?: IngressListQueryModelData);
|
|
97
|
-
refine(query?: IngressListQueryModelData): IngressListQuery;
|
|
98
|
-
execute: AsyncResourceVariant<() => Promise<IngressList>>;
|
|
99
|
-
getTotalCount: AsyncResourceVariant<() => Promise<number>>;
|
|
100
|
-
findOneAndOnly: AsyncResourceVariant<() => Promise<IngressListItem | undefined>>;
|
|
101
|
-
}
|
|
102
|
-
declare const IngressList_base: import("polytype").Polytype.ClusteredConstructor<[typeof IngressListQuery, {
|
|
103
|
-
new (items: IngressListItem[], totalCount: number): ListDataModel<IngressListItem>;
|
|
104
|
-
}]>;
|
|
105
|
-
export declare class IngressList extends IngressList_base {
|
|
106
|
-
constructor(query: IngressListQueryModelData, ingresses: IngressListItem[], totalCount: number);
|
|
107
|
-
getDefault(): IngressListItem;
|
|
108
|
-
}
|
|
109
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IngressListItemData, IngressData, IngressListQueryData } from "../types.js";
|
|
2
|
-
import { QueryResponseData } from "../../../base/index.js";
|
|
3
|
-
export interface IngressBehaviors {
|
|
4
|
-
find: (id: string) => Promise<IngressData | undefined>;
|
|
5
|
-
list: (query?: IngressListQueryData) => Promise<QueryResponseData<IngressListItemData>>;
|
|
6
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { MittwaldAPIV2 } from "@mittwald/api-client";
|
|
2
|
-
import { Project } from "../../project/index.js";
|
|
3
|
-
export type IngressListQueryData = MittwaldAPIV2.Paths.V2Ingresses.Get.Parameters.Query;
|
|
4
|
-
export type IngressListQueryModelData = Omit<IngressListQueryData, "projectId"> & {
|
|
5
|
-
project?: Project;
|
|
6
|
-
};
|
|
7
|
-
export type IngressData = MittwaldAPIV2.Operations.IngressGetIngress.ResponseData;
|
|
8
|
-
export type IngressListItemData = MittwaldAPIV2.Operations.IngressListIngresses.ResponseData[number];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DataModel } from "../../base/DataModel.js";
|
|
2
|
-
import { IngressPathData } from "./types.js";
|
|
3
|
-
import { IngressCommon, Ingress } from "../Ingress/index.js";
|
|
4
|
-
import { IngressTarget } from "../IngressTarget/IngressTarget.js";
|
|
5
|
-
export declare class IngressPath extends DataModel<IngressPathData> {
|
|
6
|
-
readonly ingress: Ingress;
|
|
7
|
-
readonly path: string;
|
|
8
|
-
readonly url: URL;
|
|
9
|
-
readonly target: IngressTarget;
|
|
10
|
-
constructor(ingress: IngressCommon, data: IngressPathData);
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { DataModel } from "../../base/DataModel.js";
|
|
2
|
-
import { IngressUndefinedTargetData, IngressAppInstallationTargetData, IngressRedirectTargetData, IngressTargetData } from "./types.js";
|
|
3
|
-
import { IngressPath } from "../IngressPath/IngressPath.js";
|
|
4
|
-
import { AppInstallation } from "../../app/AppInstallation/index.js";
|
|
5
|
-
declare abstract class IngressTargetBase<T extends IngressTargetData> extends DataModel<T> {
|
|
6
|
-
readonly path: IngressPath;
|
|
7
|
-
constructor(path: IngressPath, data: T);
|
|
8
|
-
}
|
|
9
|
-
export declare class IngressRedirectTarget extends IngressTargetBase<IngressRedirectTargetData> {
|
|
10
|
-
readonly type = "redirect";
|
|
11
|
-
readonly url: URL;
|
|
12
|
-
constructor(path: IngressPath, data: IngressRedirectTargetData);
|
|
13
|
-
}
|
|
14
|
-
export declare class IngressAppInstallationTarget extends IngressTargetBase<IngressAppInstallationTargetData> {
|
|
15
|
-
readonly type = "appInstallation";
|
|
16
|
-
readonly appInstallation: AppInstallation;
|
|
17
|
-
constructor(path: IngressPath, data: IngressAppInstallationTargetData);
|
|
18
|
-
}
|
|
19
|
-
export declare class IngressUndefinedTarget extends IngressTargetBase<IngressUndefinedTargetData> {
|
|
20
|
-
readonly type = "undefined";
|
|
21
|
-
}
|
|
22
|
-
export type IngressTarget = IngressRedirectTarget | IngressAppInstallationTarget | IngressUndefinedTarget;
|
|
23
|
-
export declare const ingressTargetFactory: (path: IngressPath, data: IngressTargetData) => IngressTarget;
|
|
24
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { MittwaldAPIV2 } from "@mittwald/api-client";
|
|
2
|
-
export type IngressRedirectTargetData = MittwaldAPIV2.Components.Schemas.IngressTargetUrl;
|
|
3
|
-
export type IngressAppInstallationTargetData = MittwaldAPIV2.Components.Schemas.IngressTargetInstallation;
|
|
4
|
-
export type IngressContainerTargetData = MittwaldAPIV2.Components.Schemas.IngressTargetContainer;
|
|
5
|
-
export type IngressUndefinedTargetData = MittwaldAPIV2.Components.Schemas.IngressTargetUseDefaultPage;
|
|
6
|
-
export type IngressTargetData = IngressRedirectTargetData | IngressAppInstallationTargetData | IngressUndefinedTargetData | IngressContainerTargetData;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Ingress/index.js";
|