@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,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MultiLanguagePropertyJsonSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const language_text_json_schema_1 = require("../common/language-text-json-schema");
|
|
6
|
+
const reference_json_schema_1 = require("../common/reference-json-schema");
|
|
7
|
+
const extension_json_schema_1 = require("../extension-json-schema");
|
|
8
|
+
const submodel_base_json_schema_1 = require("./submodel-base-json-schema");
|
|
9
|
+
exports.MultiLanguagePropertyJsonSchema = zod_1.z.object({
|
|
10
|
+
...submodel_base_json_schema_1.SubmodelBaseJsonSchema.shape,
|
|
11
|
+
extensions: extension_json_schema_1.ExtensionJsonSchema.array().default([]),
|
|
12
|
+
value: language_text_json_schema_1.LanguageTextJsonSchema.array().default([]),
|
|
13
|
+
valueId: zod_1.z.nullish(reference_json_schema_1.ReferenceJsonSchema),
|
|
14
|
+
});
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PropertyJsonSchema: z.ZodObject<{
|
|
3
|
+
valueType: z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
4
|
+
readonly AnyUri: "AnyUri";
|
|
5
|
+
readonly Base64Binary: "Base64Binary";
|
|
6
|
+
readonly Boolean: "Boolean";
|
|
7
|
+
readonly Byte: "Byte";
|
|
8
|
+
readonly Date: "Date";
|
|
9
|
+
readonly DateTime: "DateTime";
|
|
10
|
+
readonly Decimal: "Decimal";
|
|
11
|
+
readonly Double: "Double";
|
|
12
|
+
readonly Duration: "Duration";
|
|
13
|
+
readonly Float: "Float";
|
|
14
|
+
readonly GDay: "GDay";
|
|
15
|
+
readonly GMonth: "GMonth";
|
|
16
|
+
readonly GMonthDay: "GMonthDay";
|
|
17
|
+
readonly GYear: "GYear";
|
|
18
|
+
readonly GYearMonth: "GYearMonth";
|
|
19
|
+
readonly HexBinary: "HexBinary";
|
|
20
|
+
readonly Int: "Int";
|
|
21
|
+
readonly Integer: "Integer";
|
|
22
|
+
readonly Long: "Long";
|
|
23
|
+
readonly NegativeInteger: "NegativeInteger";
|
|
24
|
+
readonly NonNegativeInteger: "NonNegativeInteger";
|
|
25
|
+
readonly NonPositiveInteger: "NonPositiveInteger";
|
|
26
|
+
readonly PositiveInteger: "PositiveInteger";
|
|
27
|
+
readonly Short: "Short";
|
|
28
|
+
readonly String: "String";
|
|
29
|
+
readonly Time: "Time";
|
|
30
|
+
readonly UnsignedByte: "UnsignedByte";
|
|
31
|
+
readonly UnsignedInt: "UnsignedInt";
|
|
32
|
+
readonly UnsignedLong: "UnsignedLong";
|
|
33
|
+
readonly UnsignedShort: "UnsignedShort";
|
|
34
|
+
}>>;
|
|
35
|
+
extensions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
semanticId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
38
|
+
supplementalSemanticIds: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
39
|
+
valueType: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
40
|
+
readonly AnyUri: "AnyUri";
|
|
41
|
+
readonly Base64Binary: "Base64Binary";
|
|
42
|
+
readonly Boolean: "Boolean";
|
|
43
|
+
readonly Byte: "Byte";
|
|
44
|
+
readonly Date: "Date";
|
|
45
|
+
readonly DateTime: "DateTime";
|
|
46
|
+
readonly Decimal: "Decimal";
|
|
47
|
+
readonly Double: "Double";
|
|
48
|
+
readonly Duration: "Duration";
|
|
49
|
+
readonly Float: "Float";
|
|
50
|
+
readonly GDay: "GDay";
|
|
51
|
+
readonly GMonth: "GMonth";
|
|
52
|
+
readonly GMonthDay: "GMonthDay";
|
|
53
|
+
readonly GYear: "GYear";
|
|
54
|
+
readonly GYearMonth: "GYearMonth";
|
|
55
|
+
readonly HexBinary: "HexBinary";
|
|
56
|
+
readonly Int: "Int";
|
|
57
|
+
readonly Integer: "Integer";
|
|
58
|
+
readonly Long: "Long";
|
|
59
|
+
readonly NegativeInteger: "NegativeInteger";
|
|
60
|
+
readonly NonNegativeInteger: "NonNegativeInteger";
|
|
61
|
+
readonly NonPositiveInteger: "NonPositiveInteger";
|
|
62
|
+
readonly PositiveInteger: "PositiveInteger";
|
|
63
|
+
readonly Short: "Short";
|
|
64
|
+
readonly String: "String";
|
|
65
|
+
readonly Time: "Time";
|
|
66
|
+
readonly UnsignedByte: "UnsignedByte";
|
|
67
|
+
readonly UnsignedInt: "UnsignedInt";
|
|
68
|
+
readonly UnsignedLong: "UnsignedLong";
|
|
69
|
+
readonly UnsignedShort: "UnsignedShort";
|
|
70
|
+
}>>>>;
|
|
71
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
refersTo: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
73
|
+
}, z.core.$strip>>>;
|
|
74
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
valueId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
76
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
idShort: z.ZodString;
|
|
78
|
+
displayName: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
79
|
+
language: z.ZodEnum<{
|
|
80
|
+
readonly en: "en";
|
|
81
|
+
readonly de: "de";
|
|
82
|
+
}>;
|
|
83
|
+
text: z.ZodString;
|
|
84
|
+
}, z.core.$strip>>>;
|
|
85
|
+
description: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
86
|
+
language: z.ZodEnum<{
|
|
87
|
+
readonly en: "en";
|
|
88
|
+
readonly de: "de";
|
|
89
|
+
}>;
|
|
90
|
+
text: z.ZodString;
|
|
91
|
+
}, z.core.$strip>>>;
|
|
92
|
+
semanticId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
93
|
+
supplementalSemanticIds: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
94
|
+
qualifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
95
|
+
type: z.ZodString;
|
|
96
|
+
valueType: z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
97
|
+
readonly AnyUri: "AnyUri";
|
|
98
|
+
readonly Base64Binary: "Base64Binary";
|
|
99
|
+
readonly Boolean: "Boolean";
|
|
100
|
+
readonly Byte: "Byte";
|
|
101
|
+
readonly Date: "Date";
|
|
102
|
+
readonly DateTime: "DateTime";
|
|
103
|
+
readonly Decimal: "Decimal";
|
|
104
|
+
readonly Double: "Double";
|
|
105
|
+
readonly Duration: "Duration";
|
|
106
|
+
readonly Float: "Float";
|
|
107
|
+
readonly GDay: "GDay";
|
|
108
|
+
readonly GMonth: "GMonth";
|
|
109
|
+
readonly GMonthDay: "GMonthDay";
|
|
110
|
+
readonly GYear: "GYear";
|
|
111
|
+
readonly GYearMonth: "GYearMonth";
|
|
112
|
+
readonly HexBinary: "HexBinary";
|
|
113
|
+
readonly Int: "Int";
|
|
114
|
+
readonly Integer: "Integer";
|
|
115
|
+
readonly Long: "Long";
|
|
116
|
+
readonly NegativeInteger: "NegativeInteger";
|
|
117
|
+
readonly NonNegativeInteger: "NonNegativeInteger";
|
|
118
|
+
readonly NonPositiveInteger: "NonPositiveInteger";
|
|
119
|
+
readonly PositiveInteger: "PositiveInteger";
|
|
120
|
+
readonly Short: "Short";
|
|
121
|
+
readonly String: "String";
|
|
122
|
+
readonly Time: "Time";
|
|
123
|
+
readonly UnsignedByte: "UnsignedByte";
|
|
124
|
+
readonly UnsignedInt: "UnsignedInt";
|
|
125
|
+
readonly UnsignedLong: "UnsignedLong";
|
|
126
|
+
readonly UnsignedShort: "UnsignedShort";
|
|
127
|
+
}>>;
|
|
128
|
+
semanticId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
129
|
+
supplementalSemanticIds: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
130
|
+
kind: z.ZodEnum<{
|
|
131
|
+
readonly ValueQualifier: "ValueQualifier";
|
|
132
|
+
readonly ConceptQualifier: "ConceptQualifier";
|
|
133
|
+
readonly TemplateQualifier: "TemplateQualifier";
|
|
134
|
+
}>;
|
|
135
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
136
|
+
valueId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
137
|
+
}, z.core.$strip>>>;
|
|
138
|
+
embeddedDataSpecifications: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
139
|
+
dataSpecification: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
140
|
+
}, z.core.$strip>>>;
|
|
141
|
+
}, z.core.$strip>;
|
|
142
|
+
export declare const PropertyModificationSchema: z.ZodObject<{
|
|
143
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
144
|
+
displayName: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
145
|
+
language: z.ZodEnum<{
|
|
146
|
+
readonly en: "en";
|
|
147
|
+
readonly de: "de";
|
|
148
|
+
}>;
|
|
149
|
+
text: z.ZodString;
|
|
150
|
+
}, z.core.$strip>>>;
|
|
151
|
+
description: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
152
|
+
language: z.ZodEnum<{
|
|
153
|
+
readonly en: "en";
|
|
154
|
+
readonly de: "de";
|
|
155
|
+
}>;
|
|
156
|
+
text: z.ZodString;
|
|
157
|
+
}, z.core.$strip>>>;
|
|
158
|
+
idShort: z.ZodString;
|
|
159
|
+
}, z.core.$strip>;
|
|
160
|
+
export type PropertyResponseDto = z.infer<typeof PropertyJsonSchema>;
|
|
161
|
+
export type PropertyRequestDto = z.input<typeof PropertyJsonSchema>;
|
|
162
|
+
export type PropertyModificationDto = z.input<typeof PropertyModificationSchema>;
|
|
163
|
+
//# sourceMappingURL=property-json-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property-json-schema.d.ts","sourceRoot":"","sources":["../../../src/aas/submodel-base/property-json-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAMvB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM7B,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;iBAGrC,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AACpE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AACnE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PropertyModificationSchema = exports.PropertyJsonSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const basic_json_schema_1 = require("../common/basic-json-schema");
|
|
6
|
+
const reference_json_schema_1 = require("../common/reference-json-schema");
|
|
7
|
+
const extension_json_schema_1 = require("../extension-json-schema");
|
|
8
|
+
const submodel_base_json_schema_1 = require("./submodel-base-json-schema");
|
|
9
|
+
exports.PropertyJsonSchema = zod_1.z.object({
|
|
10
|
+
...submodel_base_json_schema_1.SubmodelBaseJsonSchema.shape,
|
|
11
|
+
valueType: basic_json_schema_1.ValueTypeSchema,
|
|
12
|
+
extensions: extension_json_schema_1.ExtensionJsonSchema.array().default([]),
|
|
13
|
+
value: zod_1.z.nullish(zod_1.z.string()),
|
|
14
|
+
valueId: zod_1.z.nullish(reference_json_schema_1.ReferenceJsonSchema),
|
|
15
|
+
});
|
|
16
|
+
exports.PropertyModificationSchema = zod_1.z.object({
|
|
17
|
+
...submodel_base_json_schema_1.SubmodelBaseModificationSchema.shape,
|
|
18
|
+
value: zod_1.z.nullish(zod_1.z.string()),
|
|
19
|
+
});
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const RangeJsonSchema: z.ZodObject<{
|
|
3
|
+
valueType: z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
4
|
+
readonly AnyUri: "AnyUri";
|
|
5
|
+
readonly Base64Binary: "Base64Binary";
|
|
6
|
+
readonly Boolean: "Boolean";
|
|
7
|
+
readonly Byte: "Byte";
|
|
8
|
+
readonly Date: "Date";
|
|
9
|
+
readonly DateTime: "DateTime";
|
|
10
|
+
readonly Decimal: "Decimal";
|
|
11
|
+
readonly Double: "Double";
|
|
12
|
+
readonly Duration: "Duration";
|
|
13
|
+
readonly Float: "Float";
|
|
14
|
+
readonly GDay: "GDay";
|
|
15
|
+
readonly GMonth: "GMonth";
|
|
16
|
+
readonly GMonthDay: "GMonthDay";
|
|
17
|
+
readonly GYear: "GYear";
|
|
18
|
+
readonly GYearMonth: "GYearMonth";
|
|
19
|
+
readonly HexBinary: "HexBinary";
|
|
20
|
+
readonly Int: "Int";
|
|
21
|
+
readonly Integer: "Integer";
|
|
22
|
+
readonly Long: "Long";
|
|
23
|
+
readonly NegativeInteger: "NegativeInteger";
|
|
24
|
+
readonly NonNegativeInteger: "NonNegativeInteger";
|
|
25
|
+
readonly NonPositiveInteger: "NonPositiveInteger";
|
|
26
|
+
readonly PositiveInteger: "PositiveInteger";
|
|
27
|
+
readonly Short: "Short";
|
|
28
|
+
readonly String: "String";
|
|
29
|
+
readonly Time: "Time";
|
|
30
|
+
readonly UnsignedByte: "UnsignedByte";
|
|
31
|
+
readonly UnsignedInt: "UnsignedInt";
|
|
32
|
+
readonly UnsignedLong: "UnsignedLong";
|
|
33
|
+
readonly UnsignedShort: "UnsignedShort";
|
|
34
|
+
}>>;
|
|
35
|
+
extensions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
semanticId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
38
|
+
supplementalSemanticIds: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
39
|
+
valueType: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
40
|
+
readonly AnyUri: "AnyUri";
|
|
41
|
+
readonly Base64Binary: "Base64Binary";
|
|
42
|
+
readonly Boolean: "Boolean";
|
|
43
|
+
readonly Byte: "Byte";
|
|
44
|
+
readonly Date: "Date";
|
|
45
|
+
readonly DateTime: "DateTime";
|
|
46
|
+
readonly Decimal: "Decimal";
|
|
47
|
+
readonly Double: "Double";
|
|
48
|
+
readonly Duration: "Duration";
|
|
49
|
+
readonly Float: "Float";
|
|
50
|
+
readonly GDay: "GDay";
|
|
51
|
+
readonly GMonth: "GMonth";
|
|
52
|
+
readonly GMonthDay: "GMonthDay";
|
|
53
|
+
readonly GYear: "GYear";
|
|
54
|
+
readonly GYearMonth: "GYearMonth";
|
|
55
|
+
readonly HexBinary: "HexBinary";
|
|
56
|
+
readonly Int: "Int";
|
|
57
|
+
readonly Integer: "Integer";
|
|
58
|
+
readonly Long: "Long";
|
|
59
|
+
readonly NegativeInteger: "NegativeInteger";
|
|
60
|
+
readonly NonNegativeInteger: "NonNegativeInteger";
|
|
61
|
+
readonly NonPositiveInteger: "NonPositiveInteger";
|
|
62
|
+
readonly PositiveInteger: "PositiveInteger";
|
|
63
|
+
readonly Short: "Short";
|
|
64
|
+
readonly String: "String";
|
|
65
|
+
readonly Time: "Time";
|
|
66
|
+
readonly UnsignedByte: "UnsignedByte";
|
|
67
|
+
readonly UnsignedInt: "UnsignedInt";
|
|
68
|
+
readonly UnsignedLong: "UnsignedLong";
|
|
69
|
+
readonly UnsignedShort: "UnsignedShort";
|
|
70
|
+
}>>>>;
|
|
71
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
refersTo: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
73
|
+
}, z.core.$strip>>>;
|
|
74
|
+
min: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
max: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
idShort: z.ZodString;
|
|
78
|
+
displayName: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
79
|
+
language: z.ZodEnum<{
|
|
80
|
+
readonly en: "en";
|
|
81
|
+
readonly de: "de";
|
|
82
|
+
}>;
|
|
83
|
+
text: z.ZodString;
|
|
84
|
+
}, z.core.$strip>>>;
|
|
85
|
+
description: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
86
|
+
language: z.ZodEnum<{
|
|
87
|
+
readonly en: "en";
|
|
88
|
+
readonly de: "de";
|
|
89
|
+
}>;
|
|
90
|
+
text: z.ZodString;
|
|
91
|
+
}, z.core.$strip>>>;
|
|
92
|
+
semanticId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
93
|
+
supplementalSemanticIds: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
94
|
+
qualifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
95
|
+
type: z.ZodString;
|
|
96
|
+
valueType: z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
97
|
+
readonly AnyUri: "AnyUri";
|
|
98
|
+
readonly Base64Binary: "Base64Binary";
|
|
99
|
+
readonly Boolean: "Boolean";
|
|
100
|
+
readonly Byte: "Byte";
|
|
101
|
+
readonly Date: "Date";
|
|
102
|
+
readonly DateTime: "DateTime";
|
|
103
|
+
readonly Decimal: "Decimal";
|
|
104
|
+
readonly Double: "Double";
|
|
105
|
+
readonly Duration: "Duration";
|
|
106
|
+
readonly Float: "Float";
|
|
107
|
+
readonly GDay: "GDay";
|
|
108
|
+
readonly GMonth: "GMonth";
|
|
109
|
+
readonly GMonthDay: "GMonthDay";
|
|
110
|
+
readonly GYear: "GYear";
|
|
111
|
+
readonly GYearMonth: "GYearMonth";
|
|
112
|
+
readonly HexBinary: "HexBinary";
|
|
113
|
+
readonly Int: "Int";
|
|
114
|
+
readonly Integer: "Integer";
|
|
115
|
+
readonly Long: "Long";
|
|
116
|
+
readonly NegativeInteger: "NegativeInteger";
|
|
117
|
+
readonly NonNegativeInteger: "NonNegativeInteger";
|
|
118
|
+
readonly NonPositiveInteger: "NonPositiveInteger";
|
|
119
|
+
readonly PositiveInteger: "PositiveInteger";
|
|
120
|
+
readonly Short: "Short";
|
|
121
|
+
readonly String: "String";
|
|
122
|
+
readonly Time: "Time";
|
|
123
|
+
readonly UnsignedByte: "UnsignedByte";
|
|
124
|
+
readonly UnsignedInt: "UnsignedInt";
|
|
125
|
+
readonly UnsignedLong: "UnsignedLong";
|
|
126
|
+
readonly UnsignedShort: "UnsignedShort";
|
|
127
|
+
}>>;
|
|
128
|
+
semanticId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
129
|
+
supplementalSemanticIds: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
130
|
+
kind: z.ZodEnum<{
|
|
131
|
+
readonly ValueQualifier: "ValueQualifier";
|
|
132
|
+
readonly ConceptQualifier: "ConceptQualifier";
|
|
133
|
+
readonly TemplateQualifier: "TemplateQualifier";
|
|
134
|
+
}>;
|
|
135
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
136
|
+
valueId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
137
|
+
}, z.core.$strip>>>;
|
|
138
|
+
embeddedDataSpecifications: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
139
|
+
dataSpecification: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
140
|
+
}, z.core.$strip>>>;
|
|
141
|
+
}, z.core.$strip>;
|
|
142
|
+
//# sourceMappingURL=range-json-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range-json-schema.d.ts","sourceRoot":"","sources":["../../../src/aas/submodel-base/range-json-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM1B,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RangeJsonSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const basic_json_schema_1 = require("../common/basic-json-schema");
|
|
6
|
+
const extension_json_schema_1 = require("../extension-json-schema");
|
|
7
|
+
const submodel_base_json_schema_1 = require("./submodel-base-json-schema");
|
|
8
|
+
exports.RangeJsonSchema = zod_1.z.object({
|
|
9
|
+
...submodel_base_json_schema_1.SubmodelBaseJsonSchema.shape,
|
|
10
|
+
valueType: basic_json_schema_1.ValueTypeSchema,
|
|
11
|
+
extensions: extension_json_schema_1.ExtensionJsonSchema.array().default([]),
|
|
12
|
+
min: zod_1.z.nullish(zod_1.z.string()),
|
|
13
|
+
max: zod_1.z.nullish(zod_1.z.string()),
|
|
14
|
+
});
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ReferenceJsonSchema } from '../common/reference-json-schema';
|
|
3
|
+
export declare const ReferenceElementJsonSchema: z.ZodObject<{
|
|
4
|
+
extensions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
semanticId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
7
|
+
supplementalSemanticIds: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
8
|
+
valueType: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
9
|
+
readonly AnyUri: "AnyUri";
|
|
10
|
+
readonly Base64Binary: "Base64Binary";
|
|
11
|
+
readonly Boolean: "Boolean";
|
|
12
|
+
readonly Byte: "Byte";
|
|
13
|
+
readonly Date: "Date";
|
|
14
|
+
readonly DateTime: "DateTime";
|
|
15
|
+
readonly Decimal: "Decimal";
|
|
16
|
+
readonly Double: "Double";
|
|
17
|
+
readonly Duration: "Duration";
|
|
18
|
+
readonly Float: "Float";
|
|
19
|
+
readonly GDay: "GDay";
|
|
20
|
+
readonly GMonth: "GMonth";
|
|
21
|
+
readonly GMonthDay: "GMonthDay";
|
|
22
|
+
readonly GYear: "GYear";
|
|
23
|
+
readonly GYearMonth: "GYearMonth";
|
|
24
|
+
readonly HexBinary: "HexBinary";
|
|
25
|
+
readonly Int: "Int";
|
|
26
|
+
readonly Integer: "Integer";
|
|
27
|
+
readonly Long: "Long";
|
|
28
|
+
readonly NegativeInteger: "NegativeInteger";
|
|
29
|
+
readonly NonNegativeInteger: "NonNegativeInteger";
|
|
30
|
+
readonly NonPositiveInteger: "NonPositiveInteger";
|
|
31
|
+
readonly PositiveInteger: "PositiveInteger";
|
|
32
|
+
readonly Short: "Short";
|
|
33
|
+
readonly String: "String";
|
|
34
|
+
readonly Time: "Time";
|
|
35
|
+
readonly UnsignedByte: "UnsignedByte";
|
|
36
|
+
readonly UnsignedInt: "UnsignedInt";
|
|
37
|
+
readonly UnsignedLong: "UnsignedLong";
|
|
38
|
+
readonly UnsignedShort: "UnsignedShort";
|
|
39
|
+
}>>>>;
|
|
40
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
refersTo: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
42
|
+
}, z.core.$strip>>>;
|
|
43
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
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 declare const ReferenceElementModificationSchema: z.ZodObject<{
|
|
111
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodType<import("../common/reference-json-schema").ReferenceModification, unknown, z.core.$ZodTypeInternals<import("../common/reference-json-schema").ReferenceModification, unknown>>>>;
|
|
112
|
+
displayName: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
113
|
+
language: z.ZodEnum<{
|
|
114
|
+
readonly en: "en";
|
|
115
|
+
readonly de: "de";
|
|
116
|
+
}>;
|
|
117
|
+
text: z.ZodString;
|
|
118
|
+
}, z.core.$strip>>>;
|
|
119
|
+
description: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
120
|
+
language: z.ZodEnum<{
|
|
121
|
+
readonly en: "en";
|
|
122
|
+
readonly de: "de";
|
|
123
|
+
}>;
|
|
124
|
+
text: z.ZodString;
|
|
125
|
+
}, z.core.$strip>>>;
|
|
126
|
+
idShort: z.ZodString;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
export type ReferenceElementValue = z.infer<typeof ReferenceJsonSchema>;
|
|
129
|
+
export type ReferenceElementResponseDto = z.infer<typeof ReferenceElementJsonSchema>;
|
|
130
|
+
export type ReferenceElementRequestDto = z.input<typeof ReferenceElementJsonSchema>;
|
|
131
|
+
export type ReferenceElementModificationDto = z.input<typeof ReferenceElementModificationSchema>;
|
|
132
|
+
//# sourceMappingURL=reference-element-json-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reference-element-json-schema.d.ts","sourceRoot":"","sources":["../../../src/aas/submodel-base/reference-element-json-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,mBAAmB,EAA+B,MAAM,iCAAiC,CAAA;AAIlG,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIrC,CAAA;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;iBAG7C,CAAA;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AACvE,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AACpF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AACnF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReferenceElementModificationSchema = exports.ReferenceElementJsonSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const reference_json_schema_1 = require("../common/reference-json-schema");
|
|
6
|
+
const extension_json_schema_1 = require("../extension-json-schema");
|
|
7
|
+
const submodel_base_json_schema_1 = require("./submodel-base-json-schema");
|
|
8
|
+
exports.ReferenceElementJsonSchema = zod_1.z.object({
|
|
9
|
+
...submodel_base_json_schema_1.SubmodelBaseJsonSchema.shape,
|
|
10
|
+
extensions: extension_json_schema_1.ExtensionJsonSchema.array().default([]),
|
|
11
|
+
value: zod_1.z.nullish(reference_json_schema_1.ReferenceJsonSchema),
|
|
12
|
+
});
|
|
13
|
+
exports.ReferenceElementModificationSchema = zod_1.z.object({
|
|
14
|
+
...submodel_base_json_schema_1.SubmodelBaseModificationSchema.shape,
|
|
15
|
+
value: zod_1.z.nullish(reference_json_schema_1.ReferenceModificationSchema),
|
|
16
|
+
});
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const RelationshipElementJsonSchema: z.ZodObject<{
|
|
3
|
+
first: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
4
|
+
second: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
5
|
+
extensions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
semanticId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
8
|
+
supplementalSemanticIds: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
9
|
+
valueType: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
10
|
+
readonly AnyUri: "AnyUri";
|
|
11
|
+
readonly Base64Binary: "Base64Binary";
|
|
12
|
+
readonly Boolean: "Boolean";
|
|
13
|
+
readonly Byte: "Byte";
|
|
14
|
+
readonly Date: "Date";
|
|
15
|
+
readonly DateTime: "DateTime";
|
|
16
|
+
readonly Decimal: "Decimal";
|
|
17
|
+
readonly Double: "Double";
|
|
18
|
+
readonly Duration: "Duration";
|
|
19
|
+
readonly Float: "Float";
|
|
20
|
+
readonly GDay: "GDay";
|
|
21
|
+
readonly GMonth: "GMonth";
|
|
22
|
+
readonly GMonthDay: "GMonthDay";
|
|
23
|
+
readonly GYear: "GYear";
|
|
24
|
+
readonly GYearMonth: "GYearMonth";
|
|
25
|
+
readonly HexBinary: "HexBinary";
|
|
26
|
+
readonly Int: "Int";
|
|
27
|
+
readonly Integer: "Integer";
|
|
28
|
+
readonly Long: "Long";
|
|
29
|
+
readonly NegativeInteger: "NegativeInteger";
|
|
30
|
+
readonly NonNegativeInteger: "NonNegativeInteger";
|
|
31
|
+
readonly NonPositiveInteger: "NonPositiveInteger";
|
|
32
|
+
readonly PositiveInteger: "PositiveInteger";
|
|
33
|
+
readonly Short: "Short";
|
|
34
|
+
readonly String: "String";
|
|
35
|
+
readonly Time: "Time";
|
|
36
|
+
readonly UnsignedByte: "UnsignedByte";
|
|
37
|
+
readonly UnsignedInt: "UnsignedInt";
|
|
38
|
+
readonly UnsignedLong: "UnsignedLong";
|
|
39
|
+
readonly UnsignedShort: "UnsignedShort";
|
|
40
|
+
}>>>>;
|
|
41
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
refersTo: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
43
|
+
}, z.core.$strip>>>;
|
|
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
|
+
//# sourceMappingURL=relationship-element-json-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relationship-element-json-schema.d.ts","sourceRoot":"","sources":["../../../src/aas/submodel-base/relationship-element-json-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKxC,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RelationshipElementJsonSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const reference_json_schema_1 = require("../common/reference-json-schema");
|
|
6
|
+
const extension_json_schema_1 = require("../extension-json-schema");
|
|
7
|
+
const submodel_base_json_schema_1 = require("./submodel-base-json-schema");
|
|
8
|
+
exports.RelationshipElementJsonSchema = zod_1.z.object({
|
|
9
|
+
...submodel_base_json_schema_1.SubmodelBaseJsonSchema.shape,
|
|
10
|
+
first: reference_json_schema_1.ReferenceJsonSchema,
|
|
11
|
+
second: reference_json_schema_1.ReferenceJsonSchema,
|
|
12
|
+
extensions: extension_json_schema_1.ExtensionJsonSchema.array().default([]),
|
|
13
|
+
});
|