@open-dpp/dto 0.1.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/LICENSE +661 -0
- package/dist/aas/administrative-information-json-schema.d.ts +6 -0
- package/dist/aas/administrative-information-json-schema.d.ts.map +1 -0
- package/dist/aas/administrative-information-json-schema.js +8 -0
- package/dist/aas/asset-administration-shell-json-schema.d.ts +1032 -0
- package/dist/aas/asset-administration-shell-json-schema.d.ts.map +1 -0
- package/dist/aas/asset-administration-shell-json-schema.js +42 -0
- package/dist/aas/asset-information-json-schema.d.ts +29 -0
- package/dist/aas/asset-information-json-schema.d.ts.map +1 -0
- package/dist/aas/asset-information-json-schema.js +15 -0
- package/dist/aas/common/basic-json-schema.d.ts +51 -0
- package/dist/aas/common/basic-json-schema.d.ts.map +1 -0
- package/dist/aas/common/basic-json-schema.js +23 -0
- package/dist/aas/common/key-json-schema.d.ts +60 -0
- package/dist/aas/common/key-json-schema.d.ts.map +1 -0
- package/dist/aas/common/key-json-schema.js +10 -0
- package/dist/aas/common/language-text-json-schema.d.ts +10 -0
- package/dist/aas/common/language-text-json-schema.d.ts.map +1 -0
- package/dist/aas/common/language-text-json-schema.js +9 -0
- package/dist/aas/common/qualifier-json-schema.d.ts +46 -0
- package/dist/aas/common/qualifier-json-schema.d.ts.map +1 -0
- package/dist/aas/common/qualifier-json-schema.js +16 -0
- package/dist/aas/common/reference-json-schema.d.ts +22 -0
- package/dist/aas/common/reference-json-schema.d.ts.map +1 -0
- package/dist/aas/common/reference-json-schema.js +16 -0
- package/dist/aas/concept-description-json-schema.d.ts +69 -0
- package/dist/aas/concept-description-json-schema.d.ts.map +1 -0
- package/dist/aas/concept-description-json-schema.js +21 -0
- package/dist/aas/dto/value-response.dto.d.ts +5 -0
- package/dist/aas/dto/value-response.dto.d.ts.map +1 -0
- package/dist/aas/dto/value-response.dto.js +5 -0
- package/dist/aas/embedded-data-specification-json-schema.d.ts +5 -0
- package/dist/aas/embedded-data-specification-json-schema.d.ts.map +1 -0
- package/dist/aas/embedded-data-specification-json-schema.js +8 -0
- package/dist/aas/enums/aas-submodel-elements.d.ts +43 -0
- package/dist/aas/enums/aas-submodel-elements.d.ts.map +1 -0
- package/dist/aas/enums/aas-submodel-elements.js +25 -0
- package/dist/aas/enums/asset-kind-enum.d.ts +11 -0
- package/dist/aas/enums/asset-kind-enum.d.ts.map +1 -0
- package/dist/aas/enums/asset-kind-enum.js +9 -0
- package/dist/aas/enums/data-type-def.d.ts +67 -0
- package/dist/aas/enums/data-type-def.d.ts.map +1 -0
- package/dist/aas/enums/data-type-def.js +37 -0
- package/dist/aas/enums/entity-type-enum.d.ts +11 -0
- package/dist/aas/enums/entity-type-enum.d.ts.map +1 -0
- package/dist/aas/enums/entity-type-enum.js +9 -0
- package/dist/aas/enums/key-types-enum.d.ts +55 -0
- package/dist/aas/enums/key-types-enum.d.ts.map +1 -0
- package/dist/aas/enums/key-types-enum.js +31 -0
- package/dist/aas/enums/language-enum.d.ts +11 -0
- package/dist/aas/enums/language-enum.d.ts.map +1 -0
- package/dist/aas/enums/language-enum.js +9 -0
- package/dist/aas/enums/modelling-kind-enum.d.ts +11 -0
- package/dist/aas/enums/modelling-kind-enum.d.ts.map +1 -0
- package/dist/aas/enums/modelling-kind-enum.js +9 -0
- package/dist/aas/enums/permission-enum.d.ts +15 -0
- package/dist/aas/enums/permission-enum.d.ts.map +1 -0
- package/dist/aas/enums/permission-enum.js +13 -0
- package/dist/aas/enums/permission-kind-enum.d.ts +9 -0
- package/dist/aas/enums/permission-kind-enum.d.ts.map +1 -0
- package/dist/aas/enums/permission-kind-enum.js +8 -0
- package/dist/aas/enums/qualifier-kind-enum.d.ts +13 -0
- package/dist/aas/enums/qualifier-kind-enum.d.ts.map +1 -0
- package/dist/aas/enums/qualifier-kind-enum.js +10 -0
- package/dist/aas/enums/reference-types-enum.d.ts +11 -0
- package/dist/aas/enums/reference-types-enum.d.ts.map +1 -0
- package/dist/aas/enums/reference-types-enum.js +9 -0
- package/dist/aas/environment-json-schema.d.ts +22 -0
- package/dist/aas/environment-json-schema.d.ts.map +1 -0
- package/dist/aas/environment-json-schema.js +15 -0
- package/dist/aas/extension-json-schema.d.ts +41 -0
- package/dist/aas/extension-json-schema.d.ts.map +1 -0
- package/dist/aas/extension-json-schema.js +14 -0
- package/dist/aas/resource-json-schema.d.ts +6 -0
- package/dist/aas/resource-json-schema.d.ts.map +1 -0
- package/dist/aas/resource-json-schema.js +8 -0
- package/dist/aas/security/access-permission-rule.dto.d.ts +542 -0
- package/dist/aas/security/access-permission-rule.dto.d.ts.map +1 -0
- package/dist/aas/security/access-permission-rule.dto.js +23 -0
- package/dist/aas/security/security.dto.d.ts +683 -0
- package/dist/aas/security/security.dto.d.ts.map +1 -0
- package/dist/aas/security/security.dto.js +15 -0
- package/dist/aas/specific-asset-id-json-schema.d.ts +9 -0
- package/dist/aas/specific-asset-id-json-schema.d.ts.map +1 -0
- package/dist/aas/specific-asset-id-json-schema.js +12 -0
- package/dist/aas/submodel-base/annotated-relationship-element-json-schema.d.ts +328 -0
- package/dist/aas/submodel-base/annotated-relationship-element-json-schema.d.ts.map +1 -0
- package/dist/aas/submodel-base/annotated-relationship-element-json-schema.js +20 -0
- package/dist/aas/submodel-base/blob-json-schema.d.ts +110 -0
- package/dist/aas/submodel-base/blob-json-schema.d.ts.map +1 -0
- package/dist/aas/submodel-base/blob-json-schema.js +12 -0
- package/dist/aas/submodel-base/entity-type-json-schema.d.ts +348 -0
- package/dist/aas/submodel-base/entity-type-json-schema.d.ts.map +1 -0
- package/dist/aas/submodel-base/entity-type-json-schema.js +22 -0
- package/dist/aas/submodel-base/file-json-schema.d.ts +132 -0
- package/dist/aas/submodel-base/file-json-schema.d.ts.map +1 -0
- package/dist/aas/submodel-base/file-json-schema.js +17 -0
- package/dist/aas/submodel-base/multi-language-property-json-schema.d.ts +116 -0
- package/dist/aas/submodel-base/multi-language-property-json-schema.d.ts.map +1 -0
- package/dist/aas/submodel-base/multi-language-property-json-schema.js +14 -0
- package/dist/aas/submodel-base/property-json-schema.d.ts +163 -0
- package/dist/aas/submodel-base/property-json-schema.d.ts.map +1 -0
- package/dist/aas/submodel-base/property-json-schema.js +19 -0
- package/dist/aas/submodel-base/range-json-schema.d.ts +142 -0
- package/dist/aas/submodel-base/range-json-schema.d.ts.map +1 -0
- package/dist/aas/submodel-base/range-json-schema.js +14 -0
- package/dist/aas/submodel-base/reference-element-json-schema.d.ts +132 -0
- package/dist/aas/submodel-base/reference-element-json-schema.d.ts.map +1 -0
- package/dist/aas/submodel-base/reference-element-json-schema.js +16 -0
- package/dist/aas/submodel-base/relationship-element-json-schema.d.ts +110 -0
- package/dist/aas/submodel-base/relationship-element-json-schema.d.ts.map +1 -0
- package/dist/aas/submodel-base/relationship-element-json-schema.js +13 -0
- package/dist/aas/submodel-base/submodel-base-json-schema.d.ts +86 -0
- package/dist/aas/submodel-base/submodel-base-json-schema.d.ts.map +1 -0
- package/dist/aas/submodel-base/submodel-base-json-schema.js +20 -0
- package/dist/aas/submodel-base/submodel-element-collection-json-schema.d.ts +361 -0
- package/dist/aas/submodel-base/submodel-element-collection-json-schema.d.ts.map +1 -0
- package/dist/aas/submodel-base/submodel-element-collection-json-schema.js +22 -0
- package/dist/aas/submodel-base/submodel-element-list-json-schema.d.ts +469 -0
- package/dist/aas/submodel-base/submodel-element-list-json-schema.d.ts.map +1 -0
- package/dist/aas/submodel-base/submodel-element-list-json-schema.js +29 -0
- package/dist/aas/submodel-base/submodel-element-modification-schema.d.ts +20 -0
- package/dist/aas/submodel-base/submodel-element-modification-schema.d.ts.map +1 -0
- package/dist/aas/submodel-base/submodel-element-modification-schema.js +6 -0
- package/dist/aas/submodel-base/submodel-element-schema.d.ts +1674 -0
- package/dist/aas/submodel-base/submodel-element-schema.d.ts.map +1 -0
- package/dist/aas/submodel-base/submodel-element-schema.js +62 -0
- package/dist/aas/submodel-base/submodel-json-schema.d.ts +538 -0
- package/dist/aas/submodel-base/submodel-json-schema.d.ts.map +1 -0
- package/dist/aas/submodel-base/submodel-json-schema.js +29 -0
- package/dist/branding/branding.dto.d.ts +6 -0
- package/dist/branding/branding.dto.d.ts.map +1 -0
- package/dist/branding/branding.dto.js +7 -0
- package/dist/index.d.ts +56 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +71 -0
- package/dist/organizations/member.dto.d.ts +11 -0
- package/dist/organizations/member.dto.d.ts.map +1 -0
- package/dist/organizations/member.dto.js +2 -0
- package/dist/passports/passport.dto.d.ts +84 -0
- package/dist/passports/passport.dto.d.ts.map +1 -0
- package/dist/passports/passport.dto.js +26 -0
- package/dist/shared/dpp.schemas.d.ts +28 -0
- package/dist/shared/dpp.schemas.d.ts.map +1 -0
- package/dist/shared/dpp.schemas.js +13 -0
- package/dist/shared/pagination.dto.d.ts +14 -0
- package/dist/shared/pagination.dto.d.ts.map +1 -0
- package/dist/shared/pagination.dto.js +15 -0
- package/dist/shared/populate.dto.d.ts +7 -0
- package/dist/shared/populate.dto.d.ts.map +1 -0
- package/dist/shared/populate.dto.js +15 -0
- package/dist/shared/table.dto.d.ts +6 -0
- package/dist/shared/table.dto.d.ts.map +1 -0
- package/dist/shared/table.dto.js +7 -0
- package/dist/templates/template.dto.d.ts +78 -0
- package/dist/templates/template.dto.d.ts.map +1 -0
- package/dist/templates/template.dto.js +17 -0
- package/dist/users/create-user.dto.d.ts +8 -0
- package/dist/users/create-user.dto.d.ts.map +1 -0
- package/dist/users/create-user.dto.js +9 -0
- package/dist/users/set-user-role.dto.d.ts +9 -0
- package/dist/users/set-user-role.dto.d.ts.map +1 -0
- package/dist/users/set-user-role.dto.js +7 -0
- package/dist/users/user.dto.d.ts +31 -0
- package/dist/users/user.dto.d.ts.map +1 -0
- package/dist/users/user.dto.js +15 -0
- package/package.json +48 -0
- package/src/aas/aas-json-schemas.spec.ts +145 -0
- package/src/aas/administrative-information-json-schema.ts +6 -0
- package/src/aas/asset-administration-shell-json-schema.ts +52 -0
- package/src/aas/asset-information-json-schema.ts +18 -0
- package/src/aas/common/basic-json-schema.ts +27 -0
- package/src/aas/common/key-json-schema.ts +10 -0
- package/src/aas/common/language-text-json-schema.ts +10 -0
- package/src/aas/common/qualifier-json-schema.ts +14 -0
- package/src/aas/common/reference-json-schema.ts +33 -0
- package/src/aas/concept-description-json-schema.ts +19 -0
- package/src/aas/dto/value-response.dto.spec.ts +17 -0
- package/src/aas/dto/value-response.dto.ts +7 -0
- package/src/aas/embedded-data-specification-json-schema.ts +6 -0
- package/src/aas/enums/aas-submodel-elements.ts +25 -0
- package/src/aas/enums/asset-kind-enum.ts +8 -0
- package/src/aas/enums/data-type-def.ts +37 -0
- package/src/aas/enums/entity-type-enum.ts +9 -0
- package/src/aas/enums/key-types-enum.ts +30 -0
- package/src/aas/enums/language-enum.ts +8 -0
- package/src/aas/enums/modelling-kind-enum.ts +8 -0
- package/src/aas/enums/permission-enum.ts +14 -0
- package/src/aas/enums/permission-kind-enum.ts +7 -0
- package/src/aas/enums/qualifier-kind-enum.ts +9 -0
- package/src/aas/enums/reference-types-enum.ts +8 -0
- package/src/aas/environment-json-schema.ts +16 -0
- package/src/aas/extension-json-schema.ts +12 -0
- package/src/aas/resource-json-schema.ts +6 -0
- package/src/aas/security/access-permission-rule.dto.ts +30 -0
- package/src/aas/security/security.dto.ts +18 -0
- package/src/aas/specific-asset-id-json-schema.ts +10 -0
- package/src/aas/submodel-base/annotated-relationship-element-json-schema.ts +19 -0
- package/src/aas/submodel-base/blob-json-schema.ts +10 -0
- package/src/aas/submodel-base/entity-type-json-schema.ts +21 -0
- package/src/aas/submodel-base/file-json-schema.ts +21 -0
- package/src/aas/submodel-base/multi-language-property-json-schema.ts +12 -0
- package/src/aas/submodel-base/property-json-schema.ts +22 -0
- package/src/aas/submodel-base/range-json-schema.ts +12 -0
- package/src/aas/submodel-base/reference-element-json-schema.ts +20 -0
- package/src/aas/submodel-base/relationship-element-json-schema.ts +11 -0
- package/src/aas/submodel-base/submodel-base-json-schema.ts +19 -0
- package/src/aas/submodel-base/submodel-element-collection-json-schema.ts +27 -0
- package/src/aas/submodel-base/submodel-element-list-json-schema.ts +34 -0
- package/src/aas/submodel-base/submodel-element-modification-schema.ts +6 -0
- package/src/aas/submodel-base/submodel-element-schema.ts +71 -0
- package/src/aas/submodel-base/submodel-json-schema.ts +33 -0
- package/src/branding/branding.dto.ts +7 -0
- package/src/index.ts +59 -0
- package/src/organizations/member.dto.ts +11 -0
- package/src/passports/passport.dto.ts +32 -0
- package/src/shared/dpp.schemas.ts +16 -0
- package/src/shared/pagination.dto.ts +17 -0
- package/src/shared/populate.dto.ts +18 -0
- package/src/shared/table.dto.ts +7 -0
- package/src/templates/template.dto.ts +22 -0
- package/src/users/create-user.dto.ts +9 -0
- package/src/users/set-user-role.dto.ts +7 -0
- package/src/users/user.dto.ts +28 -0
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const EntityTypeJsonSchema: z.ZodLazy<z.ZodObject<{
|
|
3
|
+
entityType: z.ZodEnum<{
|
|
4
|
+
CoManagedEntity: string;
|
|
5
|
+
SelfManagedEntity: string;
|
|
6
|
+
}>;
|
|
7
|
+
extensions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
semanticId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
10
|
+
supplementalSemanticIds: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
11
|
+
valueType: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
12
|
+
readonly AnyUri: "AnyUri";
|
|
13
|
+
readonly Base64Binary: "Base64Binary";
|
|
14
|
+
readonly Boolean: "Boolean";
|
|
15
|
+
readonly Byte: "Byte";
|
|
16
|
+
readonly Date: "Date";
|
|
17
|
+
readonly DateTime: "DateTime";
|
|
18
|
+
readonly Decimal: "Decimal";
|
|
19
|
+
readonly Double: "Double";
|
|
20
|
+
readonly Duration: "Duration";
|
|
21
|
+
readonly Float: "Float";
|
|
22
|
+
readonly GDay: "GDay";
|
|
23
|
+
readonly GMonth: "GMonth";
|
|
24
|
+
readonly GMonthDay: "GMonthDay";
|
|
25
|
+
readonly GYear: "GYear";
|
|
26
|
+
readonly GYearMonth: "GYearMonth";
|
|
27
|
+
readonly HexBinary: "HexBinary";
|
|
28
|
+
readonly Int: "Int";
|
|
29
|
+
readonly Integer: "Integer";
|
|
30
|
+
readonly Long: "Long";
|
|
31
|
+
readonly NegativeInteger: "NegativeInteger";
|
|
32
|
+
readonly NonNegativeInteger: "NonNegativeInteger";
|
|
33
|
+
readonly NonPositiveInteger: "NonPositiveInteger";
|
|
34
|
+
readonly PositiveInteger: "PositiveInteger";
|
|
35
|
+
readonly Short: "Short";
|
|
36
|
+
readonly String: "String";
|
|
37
|
+
readonly Time: "Time";
|
|
38
|
+
readonly UnsignedByte: "UnsignedByte";
|
|
39
|
+
readonly UnsignedInt: "UnsignedInt";
|
|
40
|
+
readonly UnsignedLong: "UnsignedLong";
|
|
41
|
+
readonly UnsignedShort: "UnsignedShort";
|
|
42
|
+
}>>>>;
|
|
43
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
refersTo: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
45
|
+
}, z.core.$strip>>>;
|
|
46
|
+
statements: z.ZodDefault<z.ZodArray<z.ZodType<{
|
|
47
|
+
[x: string]: unknown;
|
|
48
|
+
modelType: string;
|
|
49
|
+
idShort: string;
|
|
50
|
+
displayName: {
|
|
51
|
+
language: "en" | "de";
|
|
52
|
+
text: string;
|
|
53
|
+
}[];
|
|
54
|
+
description: {
|
|
55
|
+
language: "en" | "de";
|
|
56
|
+
text: string;
|
|
57
|
+
}[];
|
|
58
|
+
supplementalSemanticIds: any[];
|
|
59
|
+
qualifiers: {
|
|
60
|
+
type: string;
|
|
61
|
+
valueType: "AnyUri" | "Base64Binary" | "Boolean" | "Byte" | "Date" | "DateTime" | "Decimal" | "Double" | "Duration" | "Float" | "GDay" | "GMonth" | "GMonthDay" | "GYear" | "GYearMonth" | "HexBinary" | "Int" | "Integer" | "Long" | "NegativeInteger" | "NonNegativeInteger" | "NonPositiveInteger" | "PositiveInteger" | "Short" | "String" | "Time" | "UnsignedByte" | "UnsignedInt" | "UnsignedLong" | "UnsignedShort";
|
|
62
|
+
supplementalSemanticIds: any[];
|
|
63
|
+
kind: "ValueQualifier" | "ConceptQualifier" | "TemplateQualifier";
|
|
64
|
+
semanticId?: any;
|
|
65
|
+
value?: string | null | undefined;
|
|
66
|
+
valueId?: any;
|
|
67
|
+
}[];
|
|
68
|
+
embeddedDataSpecifications: {
|
|
69
|
+
dataSpecification: any;
|
|
70
|
+
}[];
|
|
71
|
+
category?: string | null | undefined;
|
|
72
|
+
semanticId?: any;
|
|
73
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
74
|
+
[x: string]: unknown;
|
|
75
|
+
modelType: string;
|
|
76
|
+
idShort: string;
|
|
77
|
+
displayName: {
|
|
78
|
+
language: "en" | "de";
|
|
79
|
+
text: string;
|
|
80
|
+
}[];
|
|
81
|
+
description: {
|
|
82
|
+
language: "en" | "de";
|
|
83
|
+
text: string;
|
|
84
|
+
}[];
|
|
85
|
+
supplementalSemanticIds: any[];
|
|
86
|
+
qualifiers: {
|
|
87
|
+
type: string;
|
|
88
|
+
valueType: "AnyUri" | "Base64Binary" | "Boolean" | "Byte" | "Date" | "DateTime" | "Decimal" | "Double" | "Duration" | "Float" | "GDay" | "GMonth" | "GMonthDay" | "GYear" | "GYearMonth" | "HexBinary" | "Int" | "Integer" | "Long" | "NegativeInteger" | "NonNegativeInteger" | "NonPositiveInteger" | "PositiveInteger" | "Short" | "String" | "Time" | "UnsignedByte" | "UnsignedInt" | "UnsignedLong" | "UnsignedShort";
|
|
89
|
+
supplementalSemanticIds: any[];
|
|
90
|
+
kind: "ValueQualifier" | "ConceptQualifier" | "TemplateQualifier";
|
|
91
|
+
semanticId?: any;
|
|
92
|
+
value?: string | null | undefined;
|
|
93
|
+
valueId?: any;
|
|
94
|
+
}[];
|
|
95
|
+
embeddedDataSpecifications: {
|
|
96
|
+
dataSpecification: any;
|
|
97
|
+
}[];
|
|
98
|
+
category?: string | null | undefined;
|
|
99
|
+
semanticId?: any;
|
|
100
|
+
}, unknown>>>>;
|
|
101
|
+
globalAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
specificAssetIds: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
103
|
+
name: z.ZodString;
|
|
104
|
+
value: z.ZodString;
|
|
105
|
+
semanticId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
106
|
+
supplementalSemanticIds: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
107
|
+
externalSubjectId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
108
|
+
}, z.core.$strip>>>;
|
|
109
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
|
+
idShort: z.ZodString;
|
|
111
|
+
displayName: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
112
|
+
language: z.ZodEnum<{
|
|
113
|
+
readonly en: "en";
|
|
114
|
+
readonly de: "de";
|
|
115
|
+
}>;
|
|
116
|
+
text: z.ZodString;
|
|
117
|
+
}, z.core.$strip>>>;
|
|
118
|
+
description: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
119
|
+
language: z.ZodEnum<{
|
|
120
|
+
readonly en: "en";
|
|
121
|
+
readonly de: "de";
|
|
122
|
+
}>;
|
|
123
|
+
text: z.ZodString;
|
|
124
|
+
}, z.core.$strip>>>;
|
|
125
|
+
semanticId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
126
|
+
supplementalSemanticIds: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
127
|
+
qualifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
128
|
+
type: z.ZodString;
|
|
129
|
+
valueType: z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
130
|
+
readonly AnyUri: "AnyUri";
|
|
131
|
+
readonly Base64Binary: "Base64Binary";
|
|
132
|
+
readonly Boolean: "Boolean";
|
|
133
|
+
readonly Byte: "Byte";
|
|
134
|
+
readonly Date: "Date";
|
|
135
|
+
readonly DateTime: "DateTime";
|
|
136
|
+
readonly Decimal: "Decimal";
|
|
137
|
+
readonly Double: "Double";
|
|
138
|
+
readonly Duration: "Duration";
|
|
139
|
+
readonly Float: "Float";
|
|
140
|
+
readonly GDay: "GDay";
|
|
141
|
+
readonly GMonth: "GMonth";
|
|
142
|
+
readonly GMonthDay: "GMonthDay";
|
|
143
|
+
readonly GYear: "GYear";
|
|
144
|
+
readonly GYearMonth: "GYearMonth";
|
|
145
|
+
readonly HexBinary: "HexBinary";
|
|
146
|
+
readonly Int: "Int";
|
|
147
|
+
readonly Integer: "Integer";
|
|
148
|
+
readonly Long: "Long";
|
|
149
|
+
readonly NegativeInteger: "NegativeInteger";
|
|
150
|
+
readonly NonNegativeInteger: "NonNegativeInteger";
|
|
151
|
+
readonly NonPositiveInteger: "NonPositiveInteger";
|
|
152
|
+
readonly PositiveInteger: "PositiveInteger";
|
|
153
|
+
readonly Short: "Short";
|
|
154
|
+
readonly String: "String";
|
|
155
|
+
readonly Time: "Time";
|
|
156
|
+
readonly UnsignedByte: "UnsignedByte";
|
|
157
|
+
readonly UnsignedInt: "UnsignedInt";
|
|
158
|
+
readonly UnsignedLong: "UnsignedLong";
|
|
159
|
+
readonly UnsignedShort: "UnsignedShort";
|
|
160
|
+
}>>;
|
|
161
|
+
semanticId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
162
|
+
supplementalSemanticIds: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
163
|
+
kind: z.ZodEnum<{
|
|
164
|
+
readonly ValueQualifier: "ValueQualifier";
|
|
165
|
+
readonly ConceptQualifier: "ConceptQualifier";
|
|
166
|
+
readonly TemplateQualifier: "TemplateQualifier";
|
|
167
|
+
}>;
|
|
168
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
169
|
+
valueId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
170
|
+
}, z.core.$strip>>>;
|
|
171
|
+
embeddedDataSpecifications: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
172
|
+
dataSpecification: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
173
|
+
}, z.core.$strip>>>;
|
|
174
|
+
}, z.core.$strip>>;
|
|
175
|
+
export declare function EntityTypeJsonSchemaImpl(): z.ZodObject<{
|
|
176
|
+
entityType: z.ZodEnum<{
|
|
177
|
+
CoManagedEntity: string;
|
|
178
|
+
SelfManagedEntity: string;
|
|
179
|
+
}>;
|
|
180
|
+
extensions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
181
|
+
name: z.ZodString;
|
|
182
|
+
semanticId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
183
|
+
supplementalSemanticIds: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
184
|
+
valueType: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
185
|
+
readonly AnyUri: "AnyUri";
|
|
186
|
+
readonly Base64Binary: "Base64Binary";
|
|
187
|
+
readonly Boolean: "Boolean";
|
|
188
|
+
readonly Byte: "Byte";
|
|
189
|
+
readonly Date: "Date";
|
|
190
|
+
readonly DateTime: "DateTime";
|
|
191
|
+
readonly Decimal: "Decimal";
|
|
192
|
+
readonly Double: "Double";
|
|
193
|
+
readonly Duration: "Duration";
|
|
194
|
+
readonly Float: "Float";
|
|
195
|
+
readonly GDay: "GDay";
|
|
196
|
+
readonly GMonth: "GMonth";
|
|
197
|
+
readonly GMonthDay: "GMonthDay";
|
|
198
|
+
readonly GYear: "GYear";
|
|
199
|
+
readonly GYearMonth: "GYearMonth";
|
|
200
|
+
readonly HexBinary: "HexBinary";
|
|
201
|
+
readonly Int: "Int";
|
|
202
|
+
readonly Integer: "Integer";
|
|
203
|
+
readonly Long: "Long";
|
|
204
|
+
readonly NegativeInteger: "NegativeInteger";
|
|
205
|
+
readonly NonNegativeInteger: "NonNegativeInteger";
|
|
206
|
+
readonly NonPositiveInteger: "NonPositiveInteger";
|
|
207
|
+
readonly PositiveInteger: "PositiveInteger";
|
|
208
|
+
readonly Short: "Short";
|
|
209
|
+
readonly String: "String";
|
|
210
|
+
readonly Time: "Time";
|
|
211
|
+
readonly UnsignedByte: "UnsignedByte";
|
|
212
|
+
readonly UnsignedInt: "UnsignedInt";
|
|
213
|
+
readonly UnsignedLong: "UnsignedLong";
|
|
214
|
+
readonly UnsignedShort: "UnsignedShort";
|
|
215
|
+
}>>>>;
|
|
216
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
217
|
+
refersTo: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
218
|
+
}, z.core.$strip>>>;
|
|
219
|
+
statements: z.ZodDefault<z.ZodArray<z.ZodType<{
|
|
220
|
+
[x: string]: unknown;
|
|
221
|
+
modelType: string;
|
|
222
|
+
idShort: string;
|
|
223
|
+
displayName: {
|
|
224
|
+
language: "en" | "de";
|
|
225
|
+
text: string;
|
|
226
|
+
}[];
|
|
227
|
+
description: {
|
|
228
|
+
language: "en" | "de";
|
|
229
|
+
text: string;
|
|
230
|
+
}[];
|
|
231
|
+
supplementalSemanticIds: any[];
|
|
232
|
+
qualifiers: {
|
|
233
|
+
type: string;
|
|
234
|
+
valueType: "AnyUri" | "Base64Binary" | "Boolean" | "Byte" | "Date" | "DateTime" | "Decimal" | "Double" | "Duration" | "Float" | "GDay" | "GMonth" | "GMonthDay" | "GYear" | "GYearMonth" | "HexBinary" | "Int" | "Integer" | "Long" | "NegativeInteger" | "NonNegativeInteger" | "NonPositiveInteger" | "PositiveInteger" | "Short" | "String" | "Time" | "UnsignedByte" | "UnsignedInt" | "UnsignedLong" | "UnsignedShort";
|
|
235
|
+
supplementalSemanticIds: any[];
|
|
236
|
+
kind: "ValueQualifier" | "ConceptQualifier" | "TemplateQualifier";
|
|
237
|
+
semanticId?: any;
|
|
238
|
+
value?: string | null | undefined;
|
|
239
|
+
valueId?: any;
|
|
240
|
+
}[];
|
|
241
|
+
embeddedDataSpecifications: {
|
|
242
|
+
dataSpecification: any;
|
|
243
|
+
}[];
|
|
244
|
+
category?: string | null | undefined;
|
|
245
|
+
semanticId?: any;
|
|
246
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
247
|
+
[x: string]: unknown;
|
|
248
|
+
modelType: string;
|
|
249
|
+
idShort: string;
|
|
250
|
+
displayName: {
|
|
251
|
+
language: "en" | "de";
|
|
252
|
+
text: string;
|
|
253
|
+
}[];
|
|
254
|
+
description: {
|
|
255
|
+
language: "en" | "de";
|
|
256
|
+
text: string;
|
|
257
|
+
}[];
|
|
258
|
+
supplementalSemanticIds: any[];
|
|
259
|
+
qualifiers: {
|
|
260
|
+
type: string;
|
|
261
|
+
valueType: "AnyUri" | "Base64Binary" | "Boolean" | "Byte" | "Date" | "DateTime" | "Decimal" | "Double" | "Duration" | "Float" | "GDay" | "GMonth" | "GMonthDay" | "GYear" | "GYearMonth" | "HexBinary" | "Int" | "Integer" | "Long" | "NegativeInteger" | "NonNegativeInteger" | "NonPositiveInteger" | "PositiveInteger" | "Short" | "String" | "Time" | "UnsignedByte" | "UnsignedInt" | "UnsignedLong" | "UnsignedShort";
|
|
262
|
+
supplementalSemanticIds: any[];
|
|
263
|
+
kind: "ValueQualifier" | "ConceptQualifier" | "TemplateQualifier";
|
|
264
|
+
semanticId?: any;
|
|
265
|
+
value?: string | null | undefined;
|
|
266
|
+
valueId?: any;
|
|
267
|
+
}[];
|
|
268
|
+
embeddedDataSpecifications: {
|
|
269
|
+
dataSpecification: any;
|
|
270
|
+
}[];
|
|
271
|
+
category?: string | null | undefined;
|
|
272
|
+
semanticId?: any;
|
|
273
|
+
}, unknown>>>>;
|
|
274
|
+
globalAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
275
|
+
specificAssetIds: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
276
|
+
name: z.ZodString;
|
|
277
|
+
value: z.ZodString;
|
|
278
|
+
semanticId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
279
|
+
supplementalSemanticIds: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
280
|
+
externalSubjectId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
281
|
+
}, z.core.$strip>>>;
|
|
282
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
283
|
+
idShort: z.ZodString;
|
|
284
|
+
displayName: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
285
|
+
language: z.ZodEnum<{
|
|
286
|
+
readonly en: "en";
|
|
287
|
+
readonly de: "de";
|
|
288
|
+
}>;
|
|
289
|
+
text: z.ZodString;
|
|
290
|
+
}, z.core.$strip>>>;
|
|
291
|
+
description: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
292
|
+
language: z.ZodEnum<{
|
|
293
|
+
readonly en: "en";
|
|
294
|
+
readonly de: "de";
|
|
295
|
+
}>;
|
|
296
|
+
text: z.ZodString;
|
|
297
|
+
}, z.core.$strip>>>;
|
|
298
|
+
semanticId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
299
|
+
supplementalSemanticIds: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
300
|
+
qualifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
301
|
+
type: z.ZodString;
|
|
302
|
+
valueType: z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
303
|
+
readonly AnyUri: "AnyUri";
|
|
304
|
+
readonly Base64Binary: "Base64Binary";
|
|
305
|
+
readonly Boolean: "Boolean";
|
|
306
|
+
readonly Byte: "Byte";
|
|
307
|
+
readonly Date: "Date";
|
|
308
|
+
readonly DateTime: "DateTime";
|
|
309
|
+
readonly Decimal: "Decimal";
|
|
310
|
+
readonly Double: "Double";
|
|
311
|
+
readonly Duration: "Duration";
|
|
312
|
+
readonly Float: "Float";
|
|
313
|
+
readonly GDay: "GDay";
|
|
314
|
+
readonly GMonth: "GMonth";
|
|
315
|
+
readonly GMonthDay: "GMonthDay";
|
|
316
|
+
readonly GYear: "GYear";
|
|
317
|
+
readonly GYearMonth: "GYearMonth";
|
|
318
|
+
readonly HexBinary: "HexBinary";
|
|
319
|
+
readonly Int: "Int";
|
|
320
|
+
readonly Integer: "Integer";
|
|
321
|
+
readonly Long: "Long";
|
|
322
|
+
readonly NegativeInteger: "NegativeInteger";
|
|
323
|
+
readonly NonNegativeInteger: "NonNegativeInteger";
|
|
324
|
+
readonly NonPositiveInteger: "NonPositiveInteger";
|
|
325
|
+
readonly PositiveInteger: "PositiveInteger";
|
|
326
|
+
readonly Short: "Short";
|
|
327
|
+
readonly String: "String";
|
|
328
|
+
readonly Time: "Time";
|
|
329
|
+
readonly UnsignedByte: "UnsignedByte";
|
|
330
|
+
readonly UnsignedInt: "UnsignedInt";
|
|
331
|
+
readonly UnsignedLong: "UnsignedLong";
|
|
332
|
+
readonly UnsignedShort: "UnsignedShort";
|
|
333
|
+
}>>;
|
|
334
|
+
semanticId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
335
|
+
supplementalSemanticIds: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
336
|
+
kind: z.ZodEnum<{
|
|
337
|
+
readonly ValueQualifier: "ValueQualifier";
|
|
338
|
+
readonly ConceptQualifier: "ConceptQualifier";
|
|
339
|
+
readonly TemplateQualifier: "TemplateQualifier";
|
|
340
|
+
}>;
|
|
341
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
342
|
+
valueId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
343
|
+
}, z.core.$strip>>>;
|
|
344
|
+
embeddedDataSpecifications: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
345
|
+
dataSpecification: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
346
|
+
}, z.core.$strip>>>;
|
|
347
|
+
}, z.core.$strip>;
|
|
348
|
+
//# sourceMappingURL=entity-type-json-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-type-json-schema.d.ts","sourceRoot":"","sources":["../../../src/aas/submodel-base/entity-type-json-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAOvB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAET,CAAA;AAExB,wBAAgB,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBASvC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EntityTypeJsonSchema = void 0;
|
|
4
|
+
exports.EntityTypeJsonSchemaImpl = EntityTypeJsonSchemaImpl;
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const entity_type_enum_1 = require("../enums/entity-type-enum");
|
|
7
|
+
const extension_json_schema_1 = require("../extension-json-schema");
|
|
8
|
+
const specific_asset_id_json_schema_1 = require("../specific-asset-id-json-schema");
|
|
9
|
+
const submodel_base_json_schema_1 = require("./submodel-base-json-schema");
|
|
10
|
+
const submodel_element_schema_1 = require("./submodel-element-schema");
|
|
11
|
+
exports.EntityTypeJsonSchema = zod_1.z.lazy(() => EntityTypeJsonSchemaImpl()).meta({ id: 'Entity' });
|
|
12
|
+
function EntityTypeJsonSchemaImpl() {
|
|
13
|
+
return zod_1.z.object({
|
|
14
|
+
...submodel_base_json_schema_1.SubmodelBaseJsonSchema.shape,
|
|
15
|
+
entityType: entity_type_enum_1.EntityTypeEnum,
|
|
16
|
+
extensions: extension_json_schema_1.ExtensionJsonSchema.array().default([]),
|
|
17
|
+
statements: submodel_element_schema_1.SubmodelElementSchema.array().default([]),
|
|
18
|
+
globalAssetId: zod_1.z.nullish(zod_1.z.string()),
|
|
19
|
+
specificAssetIds: specific_asset_id_json_schema_1.SpecificAssetIdJsonSchema.array().default([]),
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const FileJsonSchema: z.ZodObject<{
|
|
3
|
+
extensions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
semanticId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
6
|
+
supplementalSemanticIds: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
7
|
+
valueType: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
8
|
+
readonly AnyUri: "AnyUri";
|
|
9
|
+
readonly Base64Binary: "Base64Binary";
|
|
10
|
+
readonly Boolean: "Boolean";
|
|
11
|
+
readonly Byte: "Byte";
|
|
12
|
+
readonly Date: "Date";
|
|
13
|
+
readonly DateTime: "DateTime";
|
|
14
|
+
readonly Decimal: "Decimal";
|
|
15
|
+
readonly Double: "Double";
|
|
16
|
+
readonly Duration: "Duration";
|
|
17
|
+
readonly Float: "Float";
|
|
18
|
+
readonly GDay: "GDay";
|
|
19
|
+
readonly GMonth: "GMonth";
|
|
20
|
+
readonly GMonthDay: "GMonthDay";
|
|
21
|
+
readonly GYear: "GYear";
|
|
22
|
+
readonly GYearMonth: "GYearMonth";
|
|
23
|
+
readonly HexBinary: "HexBinary";
|
|
24
|
+
readonly Int: "Int";
|
|
25
|
+
readonly Integer: "Integer";
|
|
26
|
+
readonly Long: "Long";
|
|
27
|
+
readonly NegativeInteger: "NegativeInteger";
|
|
28
|
+
readonly NonNegativeInteger: "NonNegativeInteger";
|
|
29
|
+
readonly NonPositiveInteger: "NonPositiveInteger";
|
|
30
|
+
readonly PositiveInteger: "PositiveInteger";
|
|
31
|
+
readonly Short: "Short";
|
|
32
|
+
readonly String: "String";
|
|
33
|
+
readonly Time: "Time";
|
|
34
|
+
readonly UnsignedByte: "UnsignedByte";
|
|
35
|
+
readonly UnsignedInt: "UnsignedInt";
|
|
36
|
+
readonly UnsignedLong: "UnsignedLong";
|
|
37
|
+
readonly UnsignedShort: "UnsignedShort";
|
|
38
|
+
}>>>>;
|
|
39
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
refersTo: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
41
|
+
}, z.core.$strip>>>;
|
|
42
|
+
contentType: z.ZodString;
|
|
43
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
idShort: z.ZodString;
|
|
46
|
+
displayName: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
47
|
+
language: z.ZodEnum<{
|
|
48
|
+
readonly en: "en";
|
|
49
|
+
readonly de: "de";
|
|
50
|
+
}>;
|
|
51
|
+
text: z.ZodString;
|
|
52
|
+
}, z.core.$strip>>>;
|
|
53
|
+
description: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
54
|
+
language: z.ZodEnum<{
|
|
55
|
+
readonly en: "en";
|
|
56
|
+
readonly de: "de";
|
|
57
|
+
}>;
|
|
58
|
+
text: z.ZodString;
|
|
59
|
+
}, z.core.$strip>>>;
|
|
60
|
+
semanticId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
61
|
+
supplementalSemanticIds: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
62
|
+
qualifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
63
|
+
type: z.ZodString;
|
|
64
|
+
valueType: z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
65
|
+
readonly AnyUri: "AnyUri";
|
|
66
|
+
readonly Base64Binary: "Base64Binary";
|
|
67
|
+
readonly Boolean: "Boolean";
|
|
68
|
+
readonly Byte: "Byte";
|
|
69
|
+
readonly Date: "Date";
|
|
70
|
+
readonly DateTime: "DateTime";
|
|
71
|
+
readonly Decimal: "Decimal";
|
|
72
|
+
readonly Double: "Double";
|
|
73
|
+
readonly Duration: "Duration";
|
|
74
|
+
readonly Float: "Float";
|
|
75
|
+
readonly GDay: "GDay";
|
|
76
|
+
readonly GMonth: "GMonth";
|
|
77
|
+
readonly GMonthDay: "GMonthDay";
|
|
78
|
+
readonly GYear: "GYear";
|
|
79
|
+
readonly GYearMonth: "GYearMonth";
|
|
80
|
+
readonly HexBinary: "HexBinary";
|
|
81
|
+
readonly Int: "Int";
|
|
82
|
+
readonly Integer: "Integer";
|
|
83
|
+
readonly Long: "Long";
|
|
84
|
+
readonly NegativeInteger: "NegativeInteger";
|
|
85
|
+
readonly NonNegativeInteger: "NonNegativeInteger";
|
|
86
|
+
readonly NonPositiveInteger: "NonPositiveInteger";
|
|
87
|
+
readonly PositiveInteger: "PositiveInteger";
|
|
88
|
+
readonly Short: "Short";
|
|
89
|
+
readonly String: "String";
|
|
90
|
+
readonly Time: "Time";
|
|
91
|
+
readonly UnsignedByte: "UnsignedByte";
|
|
92
|
+
readonly UnsignedInt: "UnsignedInt";
|
|
93
|
+
readonly UnsignedLong: "UnsignedLong";
|
|
94
|
+
readonly UnsignedShort: "UnsignedShort";
|
|
95
|
+
}>>;
|
|
96
|
+
semanticId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
97
|
+
supplementalSemanticIds: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
98
|
+
kind: z.ZodEnum<{
|
|
99
|
+
readonly ValueQualifier: "ValueQualifier";
|
|
100
|
+
readonly ConceptQualifier: "ConceptQualifier";
|
|
101
|
+
readonly TemplateQualifier: "TemplateQualifier";
|
|
102
|
+
}>;
|
|
103
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
+
valueId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
105
|
+
}, z.core.$strip>>>;
|
|
106
|
+
embeddedDataSpecifications: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
107
|
+
dataSpecification: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
108
|
+
}, z.core.$strip>>>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
export type FileResponseDto = z.infer<typeof FileJsonSchema>;
|
|
111
|
+
export type FileRequestDto = z.input<typeof FileJsonSchema>;
|
|
112
|
+
export declare const FileModificationSchema: z.ZodObject<{
|
|
113
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
|
+
contentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
115
|
+
displayName: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
116
|
+
language: z.ZodEnum<{
|
|
117
|
+
readonly en: "en";
|
|
118
|
+
readonly de: "de";
|
|
119
|
+
}>;
|
|
120
|
+
text: z.ZodString;
|
|
121
|
+
}, z.core.$strip>>>;
|
|
122
|
+
description: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
123
|
+
language: z.ZodEnum<{
|
|
124
|
+
readonly en: "en";
|
|
125
|
+
readonly de: "de";
|
|
126
|
+
}>;
|
|
127
|
+
text: z.ZodString;
|
|
128
|
+
}, z.core.$strip>>>;
|
|
129
|
+
idShort: z.ZodString;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
export type FileModificationDto = z.input<typeof FileModificationSchema>;
|
|
132
|
+
//# sourceMappingURL=file-json-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-json-schema.d.ts","sourceRoot":"","sources":["../../../src/aas/submodel-base/file-json-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKzB,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAC5D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAE3D,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;iBAIjC,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FileModificationSchema = exports.FileJsonSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const extension_json_schema_1 = require("../extension-json-schema");
|
|
6
|
+
const submodel_base_json_schema_1 = require("./submodel-base-json-schema");
|
|
7
|
+
exports.FileJsonSchema = zod_1.z.object({
|
|
8
|
+
...submodel_base_json_schema_1.SubmodelBaseJsonSchema.shape,
|
|
9
|
+
extensions: extension_json_schema_1.ExtensionJsonSchema.array().default([]),
|
|
10
|
+
contentType: zod_1.z.string(),
|
|
11
|
+
value: zod_1.z.nullish(zod_1.z.string()),
|
|
12
|
+
});
|
|
13
|
+
exports.FileModificationSchema = zod_1.z.object({
|
|
14
|
+
...submodel_base_json_schema_1.SubmodelBaseModificationSchema.shape,
|
|
15
|
+
value: zod_1.z.nullish(zod_1.z.string()),
|
|
16
|
+
contentType: zod_1.z.nullish(zod_1.z.string()),
|
|
17
|
+
});
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const MultiLanguagePropertyJsonSchema: z.ZodObject<{
|
|
3
|
+
extensions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
semanticId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
6
|
+
supplementalSemanticIds: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
7
|
+
valueType: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
8
|
+
readonly AnyUri: "AnyUri";
|
|
9
|
+
readonly Base64Binary: "Base64Binary";
|
|
10
|
+
readonly Boolean: "Boolean";
|
|
11
|
+
readonly Byte: "Byte";
|
|
12
|
+
readonly Date: "Date";
|
|
13
|
+
readonly DateTime: "DateTime";
|
|
14
|
+
readonly Decimal: "Decimal";
|
|
15
|
+
readonly Double: "Double";
|
|
16
|
+
readonly Duration: "Duration";
|
|
17
|
+
readonly Float: "Float";
|
|
18
|
+
readonly GDay: "GDay";
|
|
19
|
+
readonly GMonth: "GMonth";
|
|
20
|
+
readonly GMonthDay: "GMonthDay";
|
|
21
|
+
readonly GYear: "GYear";
|
|
22
|
+
readonly GYearMonth: "GYearMonth";
|
|
23
|
+
readonly HexBinary: "HexBinary";
|
|
24
|
+
readonly Int: "Int";
|
|
25
|
+
readonly Integer: "Integer";
|
|
26
|
+
readonly Long: "Long";
|
|
27
|
+
readonly NegativeInteger: "NegativeInteger";
|
|
28
|
+
readonly NonNegativeInteger: "NonNegativeInteger";
|
|
29
|
+
readonly NonPositiveInteger: "NonPositiveInteger";
|
|
30
|
+
readonly PositiveInteger: "PositiveInteger";
|
|
31
|
+
readonly Short: "Short";
|
|
32
|
+
readonly String: "String";
|
|
33
|
+
readonly Time: "Time";
|
|
34
|
+
readonly UnsignedByte: "UnsignedByte";
|
|
35
|
+
readonly UnsignedInt: "UnsignedInt";
|
|
36
|
+
readonly UnsignedLong: "UnsignedLong";
|
|
37
|
+
readonly UnsignedShort: "UnsignedShort";
|
|
38
|
+
}>>>>;
|
|
39
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
refersTo: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
41
|
+
}, z.core.$strip>>>;
|
|
42
|
+
value: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
43
|
+
language: z.ZodEnum<{
|
|
44
|
+
readonly en: "en";
|
|
45
|
+
readonly de: "de";
|
|
46
|
+
}>;
|
|
47
|
+
text: z.ZodString;
|
|
48
|
+
}, z.core.$strip>>>;
|
|
49
|
+
valueId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
50
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
idShort: z.ZodString;
|
|
52
|
+
displayName: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
53
|
+
language: z.ZodEnum<{
|
|
54
|
+
readonly en: "en";
|
|
55
|
+
readonly de: "de";
|
|
56
|
+
}>;
|
|
57
|
+
text: z.ZodString;
|
|
58
|
+
}, z.core.$strip>>>;
|
|
59
|
+
description: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
60
|
+
language: z.ZodEnum<{
|
|
61
|
+
readonly en: "en";
|
|
62
|
+
readonly de: "de";
|
|
63
|
+
}>;
|
|
64
|
+
text: z.ZodString;
|
|
65
|
+
}, z.core.$strip>>>;
|
|
66
|
+
semanticId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
67
|
+
supplementalSemanticIds: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
68
|
+
qualifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
69
|
+
type: z.ZodString;
|
|
70
|
+
valueType: z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
71
|
+
readonly AnyUri: "AnyUri";
|
|
72
|
+
readonly Base64Binary: "Base64Binary";
|
|
73
|
+
readonly Boolean: "Boolean";
|
|
74
|
+
readonly Byte: "Byte";
|
|
75
|
+
readonly Date: "Date";
|
|
76
|
+
readonly DateTime: "DateTime";
|
|
77
|
+
readonly Decimal: "Decimal";
|
|
78
|
+
readonly Double: "Double";
|
|
79
|
+
readonly Duration: "Duration";
|
|
80
|
+
readonly Float: "Float";
|
|
81
|
+
readonly GDay: "GDay";
|
|
82
|
+
readonly GMonth: "GMonth";
|
|
83
|
+
readonly GMonthDay: "GMonthDay";
|
|
84
|
+
readonly GYear: "GYear";
|
|
85
|
+
readonly GYearMonth: "GYearMonth";
|
|
86
|
+
readonly HexBinary: "HexBinary";
|
|
87
|
+
readonly Int: "Int";
|
|
88
|
+
readonly Integer: "Integer";
|
|
89
|
+
readonly Long: "Long";
|
|
90
|
+
readonly NegativeInteger: "NegativeInteger";
|
|
91
|
+
readonly NonNegativeInteger: "NonNegativeInteger";
|
|
92
|
+
readonly NonPositiveInteger: "NonPositiveInteger";
|
|
93
|
+
readonly PositiveInteger: "PositiveInteger";
|
|
94
|
+
readonly Short: "Short";
|
|
95
|
+
readonly String: "String";
|
|
96
|
+
readonly Time: "Time";
|
|
97
|
+
readonly UnsignedByte: "UnsignedByte";
|
|
98
|
+
readonly UnsignedInt: "UnsignedInt";
|
|
99
|
+
readonly UnsignedLong: "UnsignedLong";
|
|
100
|
+
readonly UnsignedShort: "UnsignedShort";
|
|
101
|
+
}>>;
|
|
102
|
+
semanticId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
103
|
+
supplementalSemanticIds: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
104
|
+
kind: z.ZodEnum<{
|
|
105
|
+
readonly ValueQualifier: "ValueQualifier";
|
|
106
|
+
readonly ConceptQualifier: "ConceptQualifier";
|
|
107
|
+
readonly TemplateQualifier: "TemplateQualifier";
|
|
108
|
+
}>;
|
|
109
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
|
+
valueId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
111
|
+
}, z.core.$strip>>>;
|
|
112
|
+
embeddedDataSpecifications: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
113
|
+
dataSpecification: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
114
|
+
}, z.core.$strip>>>;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
//# sourceMappingURL=multi-language-property-json-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multi-language-property-json-schema.d.ts","sourceRoot":"","sources":["../../../src/aas/submodel-base/multi-language-property-json-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAMvB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK1C,CAAA"}
|