@open-dpp/dto 2.3.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aas/asset-administration-shell-json-schema.d.ts +3 -3
- package/dist/aas/common/key-json-schema.d.ts +1 -0
- package/dist/aas/common/key-json-schema.d.ts.map +1 -1
- package/dist/aas/security/access-permission-rule.dto.d.ts +2 -2
- package/dist/aas/security/security.dto.d.ts +3 -3
- package/dist/aas/submodel-base/property-json-schema.d.ts +2 -2
- package/dist/aas/submodel-base/property-json-schema.d.ts.map +1 -1
- package/dist/aas/submodel-base/property-json-schema.js +3 -2
- package/dist/aas/submodel-base/submodel-element-schema.d.ts +1 -1
- package/dist/activity-history/activity-history.dto.d.ts +311 -0
- package/dist/activity-history/activity-history.dto.d.ts.map +1 -0
- package/dist/activity-history/activity-history.dto.js +52 -0
- package/dist/activity-history/activity-types.dto.d.ts +47 -0
- package/dist/activity-history/activity-types.dto.d.ts.map +1 -0
- package/dist/activity-history/activity-types.dto.js +27 -0
- package/dist/activity-history/change-event-types.dto.d.ts +51 -0
- package/dist/activity-history/change-event-types.dto.d.ts.map +1 -0
- package/dist/activity-history/change-event-types.dto.js +29 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/shared/time.dto.d.ts +7 -0
- package/dist/shared/time.dto.d.ts.map +1 -0
- package/dist/shared/time.dto.js +8 -0
- package/package.json +1 -1
- package/src/aas/common/key-json-schema.ts +2 -0
- package/src/aas/submodel-base/property-json-schema.ts +4 -2
- package/src/activity-history/activity-history.dto.ts +66 -0
- package/src/activity-history/activity-types.dto.ts +26 -0
- package/src/activity-history/change-event-types.dto.ts +28 -0
- package/src/index.ts +5 -0
- package/src/shared/time.dto.ts +8 -0
|
@@ -163,7 +163,7 @@ export declare const AssetAdministrationShellJsonSchema: z.ZodObject<{
|
|
|
163
163
|
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
164
|
refersTo: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
165
165
|
}, z.core.$strip>>>;
|
|
166
|
-
value: z.ZodOptional<z.ZodNullable<z.
|
|
166
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodCoercedString<unknown>>>;
|
|
167
167
|
valueId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
168
168
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
169
169
|
idShort: z.ZodString;
|
|
@@ -521,7 +521,7 @@ export declare const AssetAdministrationShellPaginationResponseDtoSchema: z.ZodO
|
|
|
521
521
|
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
522
522
|
refersTo: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
523
523
|
}, z.core.$strip>>>;
|
|
524
|
-
value: z.ZodOptional<z.ZodNullable<z.
|
|
524
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodCoercedString<unknown>>>;
|
|
525
525
|
valueId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
526
526
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
527
527
|
idShort: z.ZodString;
|
|
@@ -835,7 +835,7 @@ export declare const AssetAdministrationShellModificationSchema: z.ZodObject<{
|
|
|
835
835
|
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
836
836
|
refersTo: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
837
837
|
}, z.core.$strip>>>;
|
|
838
|
-
value: z.ZodOptional<z.ZodNullable<z.
|
|
838
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodCoercedString<unknown>>>;
|
|
839
839
|
valueId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
840
840
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
841
841
|
idShort: z.ZodString;
|
|
@@ -28,6 +28,7 @@ export declare const KeyJsonSchema: z.ZodObject<{
|
|
|
28
28
|
}>;
|
|
29
29
|
value: z.ZodString;
|
|
30
30
|
}, z.core.$strip>;
|
|
31
|
+
export type KeyDto = z.infer<typeof KeyJsonSchema>;
|
|
31
32
|
export declare const KeyModificationSchema: z.ZodObject<{
|
|
32
33
|
type: z.ZodEnum<{
|
|
33
34
|
readonly AnnotatedRelationshipElement: "AnnotatedRelationshipElement";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key-json-schema.d.ts","sourceRoot":"","sources":["../../../src/aas/common/key-json-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGxB,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"key-json-schema.d.ts","sourceRoot":"","sources":["../../../src/aas/common/key-json-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGxB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEnD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB,CAAC"}
|
|
@@ -72,7 +72,7 @@ export declare const SubjectAttributesDtoSchema: z.ZodObject<{
|
|
|
72
72
|
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
73
|
refersTo: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
74
74
|
}, z.core.$strip>>>;
|
|
75
|
-
value: z.ZodOptional<z.ZodNullable<z.
|
|
75
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodCoercedString<unknown>>>;
|
|
76
76
|
valueId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
77
77
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
78
|
idShort: z.ZodString;
|
|
@@ -348,7 +348,7 @@ export declare const AccessPermissionRuleDtoSchema: z.ZodObject<{
|
|
|
348
348
|
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
349
349
|
refersTo: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
350
350
|
}, z.core.$strip>>>;
|
|
351
|
-
value: z.ZodOptional<z.ZodNullable<z.
|
|
351
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodCoercedString<unknown>>>;
|
|
352
352
|
valueId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
353
353
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
354
354
|
idShort: z.ZodString;
|
|
@@ -74,7 +74,7 @@ export declare const AccessControlDtoSchema: z.ZodObject<{
|
|
|
74
74
|
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
75
|
refersTo: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
76
76
|
}, z.core.$strip>>>;
|
|
77
|
-
value: z.ZodOptional<z.ZodNullable<z.
|
|
77
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodCoercedString<unknown>>>;
|
|
78
78
|
valueId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
79
79
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
80
|
idShort: z.ZodString;
|
|
@@ -341,7 +341,7 @@ export declare const SecurityDtoSchema: z.ZodObject<{
|
|
|
341
341
|
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
342
342
|
refersTo: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
343
343
|
}, z.core.$strip>>>;
|
|
344
|
-
value: z.ZodOptional<z.ZodNullable<z.
|
|
344
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodCoercedString<unknown>>>;
|
|
345
345
|
valueId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
346
346
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
347
347
|
idShort: z.ZodString;
|
|
@@ -608,7 +608,7 @@ export declare const DeletePolicyDtoSchema: z.ZodObject<{
|
|
|
608
608
|
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
609
609
|
refersTo: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
610
610
|
}, z.core.$strip>>>;
|
|
611
|
-
value: z.ZodOptional<z.ZodNullable<z.
|
|
611
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodCoercedString<unknown>>>;
|
|
612
612
|
valueId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
613
613
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
614
614
|
idShort: z.ZodString;
|
|
@@ -71,7 +71,7 @@ export declare const PropertyJsonSchema: z.ZodObject<{
|
|
|
71
71
|
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
72
|
refersTo: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
73
73
|
}, z.core.$strip>>>;
|
|
74
|
-
value: z.ZodOptional<z.ZodNullable<z.
|
|
74
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodCoercedString<unknown>>>;
|
|
75
75
|
valueId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
76
76
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
77
|
idShort: z.ZodString;
|
|
@@ -140,7 +140,7 @@ export declare const PropertyJsonSchema: z.ZodObject<{
|
|
|
140
140
|
}, z.core.$strip>>>;
|
|
141
141
|
}, z.core.$strip>;
|
|
142
142
|
export declare const PropertyModificationSchema: z.ZodObject<{
|
|
143
|
-
value: z.ZodOptional<z.ZodNullable<z.
|
|
143
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodCoercedString<unknown>>>;
|
|
144
144
|
displayName: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
145
145
|
language: z.ZodEnum<{
|
|
146
146
|
readonly en: "en";
|
|
@@ -1 +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,CAAC;
|
|
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,CAAC;AAWxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM7B,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;iBAGrC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACrE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACpE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -6,14 +6,15 @@ const basic_json_schema_1 = require("../common/basic-json-schema");
|
|
|
6
6
|
const reference_json_schema_1 = require("../common/reference-json-schema");
|
|
7
7
|
const extension_json_schema_1 = require("../extension-json-schema");
|
|
8
8
|
const submodel_base_json_schema_1 = require("./submodel-base-json-schema");
|
|
9
|
+
const PropertyValueDtoSchema = zod_1.z.nullish(zod_1.z.coerce.string());
|
|
9
10
|
exports.PropertyJsonSchema = zod_1.z.object({
|
|
10
11
|
...submodel_base_json_schema_1.SubmodelBaseJsonSchema.shape,
|
|
11
12
|
valueType: basic_json_schema_1.ValueTypeSchema,
|
|
12
13
|
extensions: extension_json_schema_1.ExtensionJsonSchema.array().default([]),
|
|
13
|
-
value:
|
|
14
|
+
value: PropertyValueDtoSchema,
|
|
14
15
|
valueId: zod_1.z.nullish(reference_json_schema_1.ReferenceJsonSchema),
|
|
15
16
|
});
|
|
16
17
|
exports.PropertyModificationSchema = zod_1.z.object({
|
|
17
18
|
...submodel_base_json_schema_1.SubmodelBaseModificationSchema.shape,
|
|
18
|
-
value:
|
|
19
|
+
value: PropertyValueDtoSchema,
|
|
19
20
|
});
|
|
@@ -808,7 +808,7 @@ export declare function SubmodelElementSchemaJsonImpl(): z.ZodDiscriminatedUnion
|
|
|
808
808
|
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
809
809
|
refersTo: z.ZodDefault<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
810
810
|
}, z.core.$strip>>>;
|
|
811
|
-
value: z.ZodOptional<z.ZodNullable<z.
|
|
811
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodCoercedString<unknown>>>;
|
|
812
812
|
valueId: z.ZodOptional<z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
813
813
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
814
814
|
idShort: z.ZodString;
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ActivityHeaderDtoSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
aggregateId: z.ZodString;
|
|
5
|
+
correlationId: z.ZodNullable<z.ZodString>;
|
|
6
|
+
createdAt: z.ZodISODateTime;
|
|
7
|
+
type: z.ZodEnum<{
|
|
8
|
+
readonly SubmodelAdded: "SubmodelAdded";
|
|
9
|
+
readonly SubmodelDeleted: "SubmodelDeleted";
|
|
10
|
+
readonly SubmodelModified: "SubmodelModified";
|
|
11
|
+
readonly SubmodelValueModified: "SubmodelValueModified";
|
|
12
|
+
readonly SubmodelElementModified: "SubmodelElementModified";
|
|
13
|
+
readonly SubmodelElementValueModified: "SubmodelElementValueModified";
|
|
14
|
+
readonly SubmodelColumnModified: "SubmodelColumnModified";
|
|
15
|
+
readonly AssetAdministrationShellModified: "AssetAdministrationShellModified";
|
|
16
|
+
readonly SubmodelElementAdded: "SubmodelElementAdded";
|
|
17
|
+
readonly SubmodelColumnAdded: "SubmodelColumnAdded";
|
|
18
|
+
readonly RowAdded: "RowAdded";
|
|
19
|
+
readonly RowDeleted: "RowDeleted";
|
|
20
|
+
readonly ColumnAdded: "ColumnAdded";
|
|
21
|
+
readonly ColumnModified: "ColumnModified";
|
|
22
|
+
readonly ColumnDeleted: "ColumnDeleted";
|
|
23
|
+
readonly SubmodelColumnDeleted: "SubmodelColumnDeleted";
|
|
24
|
+
readonly SubmodelRowDeleted: "SubmodelRowDeleted";
|
|
25
|
+
readonly SubmodelElementDeleted: "SubmodelElementDeleted";
|
|
26
|
+
readonly PolicyDeleted: "PolicyDeleted";
|
|
27
|
+
readonly DigitalProductDocumentStatusChanged: "DigitalProductDocumentStatusChanged";
|
|
28
|
+
}>;
|
|
29
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
30
|
+
version: z.ZodString;
|
|
31
|
+
exportVersion: z.ZodString;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export declare const ActivityPayloadDtoSchema: z.ZodObject<{
|
|
34
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
35
|
+
type: z.ZodEnum<{
|
|
36
|
+
readonly DisplayNameChanged: "DisplayNameChanged";
|
|
37
|
+
readonly DescriptionChanged: "DescriptionChanged";
|
|
38
|
+
readonly PropertyValueChanged: "PropertyValueChanged";
|
|
39
|
+
readonly FileValueChanged: "FileValueChanged";
|
|
40
|
+
readonly ReferenceElementValueChanged: "ReferenceElementChanged";
|
|
41
|
+
readonly RowAdded: "RowAdded";
|
|
42
|
+
readonly RowDeleted: "RowDeleted";
|
|
43
|
+
readonly ColumnAdded: "ColumnAdded";
|
|
44
|
+
readonly ColumnDeleted: "ColumnDeleted";
|
|
45
|
+
readonly SubmodelAdded: "SubmodelAdded";
|
|
46
|
+
readonly AddedSubmodelToEnv: "AddedSubmodelToEnv";
|
|
47
|
+
readonly SubmodelElementAdded: "SubmodelElementAdded";
|
|
48
|
+
readonly SubmodelElementDeleted: "SubmodelElementDeleted";
|
|
49
|
+
readonly SubmodelReferenceAdded: "SubmodelReferenceAdded";
|
|
50
|
+
readonly PolicyDeleted: "PolicyDeleted";
|
|
51
|
+
readonly PolicyAdded: "PolicyAdded";
|
|
52
|
+
readonly PolicyModified: "PolicyModified";
|
|
53
|
+
readonly DefaultThumbnailsModified: "DefaultThumbnailsModified";
|
|
54
|
+
readonly DeletedSubmodelFromEnv: "DeletedSubmodelFromEnv";
|
|
55
|
+
readonly SubmodelReferenceDeleted: "SubmodelReferenceDeleted";
|
|
56
|
+
readonly SubmodelDeleted: "SubmodelDeleted";
|
|
57
|
+
readonly DigitalProductDocumentStatusChanged: "DigitalProductDocumentStatusChanged";
|
|
58
|
+
}>;
|
|
59
|
+
path: z.ZodOptional<z.ZodString>;
|
|
60
|
+
}, z.core.$loose>>;
|
|
61
|
+
}, z.core.$loose>;
|
|
62
|
+
export declare const ActivityDtoSchema: z.ZodObject<{
|
|
63
|
+
header: z.ZodObject<{
|
|
64
|
+
id: z.ZodString;
|
|
65
|
+
aggregateId: z.ZodString;
|
|
66
|
+
correlationId: z.ZodNullable<z.ZodString>;
|
|
67
|
+
createdAt: z.ZodISODateTime;
|
|
68
|
+
type: z.ZodEnum<{
|
|
69
|
+
readonly SubmodelAdded: "SubmodelAdded";
|
|
70
|
+
readonly SubmodelDeleted: "SubmodelDeleted";
|
|
71
|
+
readonly SubmodelModified: "SubmodelModified";
|
|
72
|
+
readonly SubmodelValueModified: "SubmodelValueModified";
|
|
73
|
+
readonly SubmodelElementModified: "SubmodelElementModified";
|
|
74
|
+
readonly SubmodelElementValueModified: "SubmodelElementValueModified";
|
|
75
|
+
readonly SubmodelColumnModified: "SubmodelColumnModified";
|
|
76
|
+
readonly AssetAdministrationShellModified: "AssetAdministrationShellModified";
|
|
77
|
+
readonly SubmodelElementAdded: "SubmodelElementAdded";
|
|
78
|
+
readonly SubmodelColumnAdded: "SubmodelColumnAdded";
|
|
79
|
+
readonly RowAdded: "RowAdded";
|
|
80
|
+
readonly RowDeleted: "RowDeleted";
|
|
81
|
+
readonly ColumnAdded: "ColumnAdded";
|
|
82
|
+
readonly ColumnModified: "ColumnModified";
|
|
83
|
+
readonly ColumnDeleted: "ColumnDeleted";
|
|
84
|
+
readonly SubmodelColumnDeleted: "SubmodelColumnDeleted";
|
|
85
|
+
readonly SubmodelRowDeleted: "SubmodelRowDeleted";
|
|
86
|
+
readonly SubmodelElementDeleted: "SubmodelElementDeleted";
|
|
87
|
+
readonly PolicyDeleted: "PolicyDeleted";
|
|
88
|
+
readonly DigitalProductDocumentStatusChanged: "DigitalProductDocumentStatusChanged";
|
|
89
|
+
}>;
|
|
90
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
91
|
+
version: z.ZodString;
|
|
92
|
+
exportVersion: z.ZodString;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
payload: z.ZodUnion<readonly [z.ZodObject<{
|
|
95
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
96
|
+
type: z.ZodEnum<{
|
|
97
|
+
readonly DisplayNameChanged: "DisplayNameChanged";
|
|
98
|
+
readonly DescriptionChanged: "DescriptionChanged";
|
|
99
|
+
readonly PropertyValueChanged: "PropertyValueChanged";
|
|
100
|
+
readonly FileValueChanged: "FileValueChanged";
|
|
101
|
+
readonly ReferenceElementValueChanged: "ReferenceElementChanged";
|
|
102
|
+
readonly RowAdded: "RowAdded";
|
|
103
|
+
readonly RowDeleted: "RowDeleted";
|
|
104
|
+
readonly ColumnAdded: "ColumnAdded";
|
|
105
|
+
readonly ColumnDeleted: "ColumnDeleted";
|
|
106
|
+
readonly SubmodelAdded: "SubmodelAdded";
|
|
107
|
+
readonly AddedSubmodelToEnv: "AddedSubmodelToEnv";
|
|
108
|
+
readonly SubmodelElementAdded: "SubmodelElementAdded";
|
|
109
|
+
readonly SubmodelElementDeleted: "SubmodelElementDeleted";
|
|
110
|
+
readonly SubmodelReferenceAdded: "SubmodelReferenceAdded";
|
|
111
|
+
readonly PolicyDeleted: "PolicyDeleted";
|
|
112
|
+
readonly PolicyAdded: "PolicyAdded";
|
|
113
|
+
readonly PolicyModified: "PolicyModified";
|
|
114
|
+
readonly DefaultThumbnailsModified: "DefaultThumbnailsModified";
|
|
115
|
+
readonly DeletedSubmodelFromEnv: "DeletedSubmodelFromEnv";
|
|
116
|
+
readonly SubmodelReferenceDeleted: "SubmodelReferenceDeleted";
|
|
117
|
+
readonly SubmodelDeleted: "SubmodelDeleted";
|
|
118
|
+
readonly DigitalProductDocumentStatusChanged: "DigitalProductDocumentStatusChanged";
|
|
119
|
+
}>;
|
|
120
|
+
path: z.ZodOptional<z.ZodString>;
|
|
121
|
+
}, z.core.$loose>>;
|
|
122
|
+
}, z.core.$loose>]>;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
export type ActivityDto = z.infer<typeof ActivityDtoSchema>;
|
|
125
|
+
export declare const ActivityPaginationDtoSchema: z.ZodObject<{
|
|
126
|
+
result: z.ZodArray<z.ZodObject<{
|
|
127
|
+
header: z.ZodObject<{
|
|
128
|
+
id: z.ZodString;
|
|
129
|
+
aggregateId: z.ZodString;
|
|
130
|
+
correlationId: z.ZodNullable<z.ZodString>;
|
|
131
|
+
createdAt: z.ZodISODateTime;
|
|
132
|
+
type: z.ZodEnum<{
|
|
133
|
+
readonly SubmodelAdded: "SubmodelAdded";
|
|
134
|
+
readonly SubmodelDeleted: "SubmodelDeleted";
|
|
135
|
+
readonly SubmodelModified: "SubmodelModified";
|
|
136
|
+
readonly SubmodelValueModified: "SubmodelValueModified";
|
|
137
|
+
readonly SubmodelElementModified: "SubmodelElementModified";
|
|
138
|
+
readonly SubmodelElementValueModified: "SubmodelElementValueModified";
|
|
139
|
+
readonly SubmodelColumnModified: "SubmodelColumnModified";
|
|
140
|
+
readonly AssetAdministrationShellModified: "AssetAdministrationShellModified";
|
|
141
|
+
readonly SubmodelElementAdded: "SubmodelElementAdded";
|
|
142
|
+
readonly SubmodelColumnAdded: "SubmodelColumnAdded";
|
|
143
|
+
readonly RowAdded: "RowAdded";
|
|
144
|
+
readonly RowDeleted: "RowDeleted";
|
|
145
|
+
readonly ColumnAdded: "ColumnAdded";
|
|
146
|
+
readonly ColumnModified: "ColumnModified";
|
|
147
|
+
readonly ColumnDeleted: "ColumnDeleted";
|
|
148
|
+
readonly SubmodelColumnDeleted: "SubmodelColumnDeleted";
|
|
149
|
+
readonly SubmodelRowDeleted: "SubmodelRowDeleted";
|
|
150
|
+
readonly SubmodelElementDeleted: "SubmodelElementDeleted";
|
|
151
|
+
readonly PolicyDeleted: "PolicyDeleted";
|
|
152
|
+
readonly DigitalProductDocumentStatusChanged: "DigitalProductDocumentStatusChanged";
|
|
153
|
+
}>;
|
|
154
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
155
|
+
version: z.ZodString;
|
|
156
|
+
exportVersion: z.ZodString;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
payload: z.ZodUnion<readonly [z.ZodObject<{
|
|
159
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
160
|
+
type: z.ZodEnum<{
|
|
161
|
+
readonly DisplayNameChanged: "DisplayNameChanged";
|
|
162
|
+
readonly DescriptionChanged: "DescriptionChanged";
|
|
163
|
+
readonly PropertyValueChanged: "PropertyValueChanged";
|
|
164
|
+
readonly FileValueChanged: "FileValueChanged";
|
|
165
|
+
readonly ReferenceElementValueChanged: "ReferenceElementChanged";
|
|
166
|
+
readonly RowAdded: "RowAdded";
|
|
167
|
+
readonly RowDeleted: "RowDeleted";
|
|
168
|
+
readonly ColumnAdded: "ColumnAdded";
|
|
169
|
+
readonly ColumnDeleted: "ColumnDeleted";
|
|
170
|
+
readonly SubmodelAdded: "SubmodelAdded";
|
|
171
|
+
readonly AddedSubmodelToEnv: "AddedSubmodelToEnv";
|
|
172
|
+
readonly SubmodelElementAdded: "SubmodelElementAdded";
|
|
173
|
+
readonly SubmodelElementDeleted: "SubmodelElementDeleted";
|
|
174
|
+
readonly SubmodelReferenceAdded: "SubmodelReferenceAdded";
|
|
175
|
+
readonly PolicyDeleted: "PolicyDeleted";
|
|
176
|
+
readonly PolicyAdded: "PolicyAdded";
|
|
177
|
+
readonly PolicyModified: "PolicyModified";
|
|
178
|
+
readonly DefaultThumbnailsModified: "DefaultThumbnailsModified";
|
|
179
|
+
readonly DeletedSubmodelFromEnv: "DeletedSubmodelFromEnv";
|
|
180
|
+
readonly SubmodelReferenceDeleted: "SubmodelReferenceDeleted";
|
|
181
|
+
readonly SubmodelDeleted: "SubmodelDeleted";
|
|
182
|
+
readonly DigitalProductDocumentStatusChanged: "DigitalProductDocumentStatusChanged";
|
|
183
|
+
}>;
|
|
184
|
+
path: z.ZodOptional<z.ZodString>;
|
|
185
|
+
}, z.core.$loose>>;
|
|
186
|
+
}, z.core.$loose>]>;
|
|
187
|
+
}, z.core.$strip>>;
|
|
188
|
+
paging_metadata: z.ZodObject<{
|
|
189
|
+
cursor: z.ZodNullable<z.ZodString>;
|
|
190
|
+
}, z.core.$strip>;
|
|
191
|
+
}, z.core.$strip>;
|
|
192
|
+
export type ActivityPaginationDto = z.infer<typeof ActivityPaginationDtoSchema>;
|
|
193
|
+
export declare const ActivityFilterDtoSchema: z.ZodObject<{
|
|
194
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
195
|
+
readonly SubmodelAdded: "SubmodelAdded";
|
|
196
|
+
readonly SubmodelDeleted: "SubmodelDeleted";
|
|
197
|
+
readonly SubmodelModified: "SubmodelModified";
|
|
198
|
+
readonly SubmodelValueModified: "SubmodelValueModified";
|
|
199
|
+
readonly SubmodelElementModified: "SubmodelElementModified";
|
|
200
|
+
readonly SubmodelElementValueModified: "SubmodelElementValueModified";
|
|
201
|
+
readonly SubmodelColumnModified: "SubmodelColumnModified";
|
|
202
|
+
readonly AssetAdministrationShellModified: "AssetAdministrationShellModified";
|
|
203
|
+
readonly SubmodelElementAdded: "SubmodelElementAdded";
|
|
204
|
+
readonly SubmodelColumnAdded: "SubmodelColumnAdded";
|
|
205
|
+
readonly RowAdded: "RowAdded";
|
|
206
|
+
readonly RowDeleted: "RowDeleted";
|
|
207
|
+
readonly ColumnAdded: "ColumnAdded";
|
|
208
|
+
readonly ColumnModified: "ColumnModified";
|
|
209
|
+
readonly ColumnDeleted: "ColumnDeleted";
|
|
210
|
+
readonly SubmodelColumnDeleted: "SubmodelColumnDeleted";
|
|
211
|
+
readonly SubmodelRowDeleted: "SubmodelRowDeleted";
|
|
212
|
+
readonly SubmodelElementDeleted: "SubmodelElementDeleted";
|
|
213
|
+
readonly PolicyDeleted: "PolicyDeleted";
|
|
214
|
+
readonly DigitalProductDocumentStatusChanged: "DigitalProductDocumentStatusChanged";
|
|
215
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
216
|
+
readonly SubmodelAdded: "SubmodelAdded";
|
|
217
|
+
readonly SubmodelDeleted: "SubmodelDeleted";
|
|
218
|
+
readonly SubmodelModified: "SubmodelModified";
|
|
219
|
+
readonly SubmodelValueModified: "SubmodelValueModified";
|
|
220
|
+
readonly SubmodelElementModified: "SubmodelElementModified";
|
|
221
|
+
readonly SubmodelElementValueModified: "SubmodelElementValueModified";
|
|
222
|
+
readonly SubmodelColumnModified: "SubmodelColumnModified";
|
|
223
|
+
readonly AssetAdministrationShellModified: "AssetAdministrationShellModified";
|
|
224
|
+
readonly SubmodelElementAdded: "SubmodelElementAdded";
|
|
225
|
+
readonly SubmodelColumnAdded: "SubmodelColumnAdded";
|
|
226
|
+
readonly RowAdded: "RowAdded";
|
|
227
|
+
readonly RowDeleted: "RowDeleted";
|
|
228
|
+
readonly ColumnAdded: "ColumnAdded";
|
|
229
|
+
readonly ColumnModified: "ColumnModified";
|
|
230
|
+
readonly ColumnDeleted: "ColumnDeleted";
|
|
231
|
+
readonly SubmodelColumnDeleted: "SubmodelColumnDeleted";
|
|
232
|
+
readonly SubmodelRowDeleted: "SubmodelRowDeleted";
|
|
233
|
+
readonly SubmodelElementDeleted: "SubmodelElementDeleted";
|
|
234
|
+
readonly PolicyDeleted: "PolicyDeleted";
|
|
235
|
+
readonly DigitalProductDocumentStatusChanged: "DigitalProductDocumentStatusChanged";
|
|
236
|
+
}>>]>>;
|
|
237
|
+
path: z.ZodOptional<z.ZodString>;
|
|
238
|
+
}, z.core.$strip>;
|
|
239
|
+
export type ActivityFilterDto = z.infer<typeof ActivityFilterDtoSchema>;
|
|
240
|
+
export declare const GetAllActivitiesParamsDtoSchema: z.ZodObject<{
|
|
241
|
+
pagination: z.ZodOptional<z.ZodObject<{
|
|
242
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
243
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
244
|
+
}, z.core.$strip>>;
|
|
245
|
+
period: z.ZodOptional<z.ZodObject<{
|
|
246
|
+
startDate: z.ZodOptional<z.ZodISODateTime>;
|
|
247
|
+
endDate: z.ZodOptional<z.ZodISODateTime>;
|
|
248
|
+
}, z.core.$strip>>;
|
|
249
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
250
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
251
|
+
readonly SubmodelAdded: "SubmodelAdded";
|
|
252
|
+
readonly SubmodelDeleted: "SubmodelDeleted";
|
|
253
|
+
readonly SubmodelModified: "SubmodelModified";
|
|
254
|
+
readonly SubmodelValueModified: "SubmodelValueModified";
|
|
255
|
+
readonly SubmodelElementModified: "SubmodelElementModified";
|
|
256
|
+
readonly SubmodelElementValueModified: "SubmodelElementValueModified";
|
|
257
|
+
readonly SubmodelColumnModified: "SubmodelColumnModified";
|
|
258
|
+
readonly AssetAdministrationShellModified: "AssetAdministrationShellModified";
|
|
259
|
+
readonly SubmodelElementAdded: "SubmodelElementAdded";
|
|
260
|
+
readonly SubmodelColumnAdded: "SubmodelColumnAdded";
|
|
261
|
+
readonly RowAdded: "RowAdded";
|
|
262
|
+
readonly RowDeleted: "RowDeleted";
|
|
263
|
+
readonly ColumnAdded: "ColumnAdded";
|
|
264
|
+
readonly ColumnModified: "ColumnModified";
|
|
265
|
+
readonly ColumnDeleted: "ColumnDeleted";
|
|
266
|
+
readonly SubmodelColumnDeleted: "SubmodelColumnDeleted";
|
|
267
|
+
readonly SubmodelRowDeleted: "SubmodelRowDeleted";
|
|
268
|
+
readonly SubmodelElementDeleted: "SubmodelElementDeleted";
|
|
269
|
+
readonly PolicyDeleted: "PolicyDeleted";
|
|
270
|
+
readonly DigitalProductDocumentStatusChanged: "DigitalProductDocumentStatusChanged";
|
|
271
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
272
|
+
readonly SubmodelAdded: "SubmodelAdded";
|
|
273
|
+
readonly SubmodelDeleted: "SubmodelDeleted";
|
|
274
|
+
readonly SubmodelModified: "SubmodelModified";
|
|
275
|
+
readonly SubmodelValueModified: "SubmodelValueModified";
|
|
276
|
+
readonly SubmodelElementModified: "SubmodelElementModified";
|
|
277
|
+
readonly SubmodelElementValueModified: "SubmodelElementValueModified";
|
|
278
|
+
readonly SubmodelColumnModified: "SubmodelColumnModified";
|
|
279
|
+
readonly AssetAdministrationShellModified: "AssetAdministrationShellModified";
|
|
280
|
+
readonly SubmodelElementAdded: "SubmodelElementAdded";
|
|
281
|
+
readonly SubmodelColumnAdded: "SubmodelColumnAdded";
|
|
282
|
+
readonly RowAdded: "RowAdded";
|
|
283
|
+
readonly RowDeleted: "RowDeleted";
|
|
284
|
+
readonly ColumnAdded: "ColumnAdded";
|
|
285
|
+
readonly ColumnModified: "ColumnModified";
|
|
286
|
+
readonly ColumnDeleted: "ColumnDeleted";
|
|
287
|
+
readonly SubmodelColumnDeleted: "SubmodelColumnDeleted";
|
|
288
|
+
readonly SubmodelRowDeleted: "SubmodelRowDeleted";
|
|
289
|
+
readonly SubmodelElementDeleted: "SubmodelElementDeleted";
|
|
290
|
+
readonly PolicyDeleted: "PolicyDeleted";
|
|
291
|
+
readonly DigitalProductDocumentStatusChanged: "DigitalProductDocumentStatusChanged";
|
|
292
|
+
}>>]>>;
|
|
293
|
+
path: z.ZodOptional<z.ZodString>;
|
|
294
|
+
}, z.core.$strip>>;
|
|
295
|
+
}, z.core.$strip>;
|
|
296
|
+
export type GetAllActivitiesParamsDto = z.infer<typeof GetAllActivitiesParamsDtoSchema>;
|
|
297
|
+
export declare const LanguageTextChangedDtoSchema: z.ZodObject<{
|
|
298
|
+
lng: z.ZodEnum<{
|
|
299
|
+
readonly en: "en";
|
|
300
|
+
readonly de: "de";
|
|
301
|
+
}>;
|
|
302
|
+
op: z.ZodEnum<{
|
|
303
|
+
replace: "replace";
|
|
304
|
+
add: "add";
|
|
305
|
+
remove: "remove";
|
|
306
|
+
}>;
|
|
307
|
+
oldValue: z.ZodNullable<z.ZodString>;
|
|
308
|
+
newValue: z.ZodNullable<z.ZodString>;
|
|
309
|
+
}, z.core.$strip>;
|
|
310
|
+
export type LanguageTextChangedDto = z.infer<typeof LanguageTextChangedDtoSchema>;
|
|
311
|
+
//# sourceMappingURL=activity-history.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-history.dto.d.ts","sourceRoot":"","sources":["../../src/activity-history/activity-history.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBASlC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOnC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKX,CAAC;AAE9B,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAI1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;iBAKvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LanguageTextChangedDtoSchema = exports.GetAllActivitiesParamsDtoSchema = exports.ActivityFilterDtoSchema = exports.ActivityPaginationDtoSchema = exports.ActivityDtoSchema = exports.ActivityPayloadDtoSchema = exports.ActivityHeaderDtoSchema = void 0;
|
|
4
|
+
const pagination_dto_1 = require("../shared/pagination.dto");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const time_dto_1 = require("../shared/time.dto");
|
|
7
|
+
const change_event_types_dto_1 = require("./change-event-types.dto");
|
|
8
|
+
const activity_types_dto_1 = require("./activity-types.dto");
|
|
9
|
+
const language_enum_1 = require("../aas/enums/language-enum");
|
|
10
|
+
exports.ActivityHeaderDtoSchema = zod_1.z.object({
|
|
11
|
+
id: zod_1.z.string(),
|
|
12
|
+
aggregateId: zod_1.z.string(),
|
|
13
|
+
correlationId: zod_1.z.string().nullable(),
|
|
14
|
+
createdAt: zod_1.z.iso.datetime(),
|
|
15
|
+
type: activity_types_dto_1.ActivityDtoTypesEnum,
|
|
16
|
+
userId: zod_1.z.string().nullable(),
|
|
17
|
+
version: zod_1.z.string(),
|
|
18
|
+
exportVersion: zod_1.z.string(),
|
|
19
|
+
});
|
|
20
|
+
exports.ActivityPayloadDtoSchema = zod_1.z.looseObject({
|
|
21
|
+
changes: zod_1.z
|
|
22
|
+
.looseObject({
|
|
23
|
+
type: change_event_types_dto_1.ChangeEventDtoTypeEnum,
|
|
24
|
+
path: zod_1.z.string().optional(),
|
|
25
|
+
})
|
|
26
|
+
.array(),
|
|
27
|
+
});
|
|
28
|
+
exports.ActivityDtoSchema = zod_1.z.object({
|
|
29
|
+
header: exports.ActivityHeaderDtoSchema,
|
|
30
|
+
payload: zod_1.z.union([exports.ActivityPayloadDtoSchema]),
|
|
31
|
+
});
|
|
32
|
+
exports.ActivityPaginationDtoSchema = zod_1.z
|
|
33
|
+
.object({
|
|
34
|
+
...pagination_dto_1.PagingMetadataDtoSchema.shape,
|
|
35
|
+
result: exports.ActivityDtoSchema.array(),
|
|
36
|
+
})
|
|
37
|
+
.meta({ id: "Activities" });
|
|
38
|
+
exports.ActivityFilterDtoSchema = zod_1.z.object({
|
|
39
|
+
type: zod_1.z.union([activity_types_dto_1.ActivityDtoTypesEnum, activity_types_dto_1.ActivityDtoTypesEnum.array()]).optional(),
|
|
40
|
+
path: zod_1.z.string().optional(),
|
|
41
|
+
});
|
|
42
|
+
exports.GetAllActivitiesParamsDtoSchema = zod_1.z.object({
|
|
43
|
+
pagination: pagination_dto_1.PagingParamsDtoSchema.optional(),
|
|
44
|
+
period: time_dto_1.PeriodDtoSchema.optional(),
|
|
45
|
+
filter: exports.ActivityFilterDtoSchema.optional(),
|
|
46
|
+
});
|
|
47
|
+
exports.LanguageTextChangedDtoSchema = zod_1.z.object({
|
|
48
|
+
lng: language_enum_1.LanguageEnum,
|
|
49
|
+
op: zod_1.z.enum(["replace", "add", "remove"]),
|
|
50
|
+
oldValue: zod_1.z.string().nullable(),
|
|
51
|
+
newValue: zod_1.z.string().nullable(),
|
|
52
|
+
});
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ActivityDtoTypes: {
|
|
3
|
+
readonly SubmodelAdded: "SubmodelAdded";
|
|
4
|
+
readonly SubmodelDeleted: "SubmodelDeleted";
|
|
5
|
+
readonly SubmodelModified: "SubmodelModified";
|
|
6
|
+
readonly SubmodelValueModified: "SubmodelValueModified";
|
|
7
|
+
readonly SubmodelElementModified: "SubmodelElementModified";
|
|
8
|
+
readonly SubmodelElementValueModified: "SubmodelElementValueModified";
|
|
9
|
+
readonly SubmodelColumnModified: "SubmodelColumnModified";
|
|
10
|
+
readonly AssetAdministrationShellModified: "AssetAdministrationShellModified";
|
|
11
|
+
readonly SubmodelElementAdded: "SubmodelElementAdded";
|
|
12
|
+
readonly SubmodelColumnAdded: "SubmodelColumnAdded";
|
|
13
|
+
readonly RowAdded: "RowAdded";
|
|
14
|
+
readonly RowDeleted: "RowDeleted";
|
|
15
|
+
readonly ColumnAdded: "ColumnAdded";
|
|
16
|
+
readonly ColumnModified: "ColumnModified";
|
|
17
|
+
readonly ColumnDeleted: "ColumnDeleted";
|
|
18
|
+
readonly SubmodelColumnDeleted: "SubmodelColumnDeleted";
|
|
19
|
+
readonly SubmodelRowDeleted: "SubmodelRowDeleted";
|
|
20
|
+
readonly SubmodelElementDeleted: "SubmodelElementDeleted";
|
|
21
|
+
readonly PolicyDeleted: "PolicyDeleted";
|
|
22
|
+
readonly DigitalProductDocumentStatusChanged: "DigitalProductDocumentStatusChanged";
|
|
23
|
+
};
|
|
24
|
+
export declare const ActivityDtoTypesEnum: z.ZodEnum<{
|
|
25
|
+
readonly SubmodelAdded: "SubmodelAdded";
|
|
26
|
+
readonly SubmodelDeleted: "SubmodelDeleted";
|
|
27
|
+
readonly SubmodelModified: "SubmodelModified";
|
|
28
|
+
readonly SubmodelValueModified: "SubmodelValueModified";
|
|
29
|
+
readonly SubmodelElementModified: "SubmodelElementModified";
|
|
30
|
+
readonly SubmodelElementValueModified: "SubmodelElementValueModified";
|
|
31
|
+
readonly SubmodelColumnModified: "SubmodelColumnModified";
|
|
32
|
+
readonly AssetAdministrationShellModified: "AssetAdministrationShellModified";
|
|
33
|
+
readonly SubmodelElementAdded: "SubmodelElementAdded";
|
|
34
|
+
readonly SubmodelColumnAdded: "SubmodelColumnAdded";
|
|
35
|
+
readonly RowAdded: "RowAdded";
|
|
36
|
+
readonly RowDeleted: "RowDeleted";
|
|
37
|
+
readonly ColumnAdded: "ColumnAdded";
|
|
38
|
+
readonly ColumnModified: "ColumnModified";
|
|
39
|
+
readonly ColumnDeleted: "ColumnDeleted";
|
|
40
|
+
readonly SubmodelColumnDeleted: "SubmodelColumnDeleted";
|
|
41
|
+
readonly SubmodelRowDeleted: "SubmodelRowDeleted";
|
|
42
|
+
readonly SubmodelElementDeleted: "SubmodelElementDeleted";
|
|
43
|
+
readonly PolicyDeleted: "PolicyDeleted";
|
|
44
|
+
readonly DigitalProductDocumentStatusChanged: "DigitalProductDocumentStatusChanged";
|
|
45
|
+
}>;
|
|
46
|
+
export type ActivityDtoTypesType = z.infer<typeof ActivityDtoTypesEnum>;
|
|
47
|
+
//# sourceMappingURL=activity-types.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-types.dto.d.ts","sourceRoot":"","sources":["../../src/activity-history/activity-types.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;CAqBnB,CAAC;AACX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;EAA2B,CAAC;AAC7D,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActivityDtoTypesEnum = exports.ActivityDtoTypes = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ActivityDtoTypes = {
|
|
6
|
+
SubmodelAdded: "SubmodelAdded",
|
|
7
|
+
SubmodelDeleted: "SubmodelDeleted",
|
|
8
|
+
SubmodelModified: "SubmodelModified",
|
|
9
|
+
SubmodelValueModified: "SubmodelValueModified",
|
|
10
|
+
SubmodelElementModified: "SubmodelElementModified",
|
|
11
|
+
SubmodelElementValueModified: "SubmodelElementValueModified",
|
|
12
|
+
SubmodelColumnModified: "SubmodelColumnModified",
|
|
13
|
+
AssetAdministrationShellModified: "AssetAdministrationShellModified",
|
|
14
|
+
SubmodelElementAdded: "SubmodelElementAdded",
|
|
15
|
+
SubmodelColumnAdded: "SubmodelColumnAdded",
|
|
16
|
+
RowAdded: "RowAdded",
|
|
17
|
+
RowDeleted: "RowDeleted",
|
|
18
|
+
ColumnAdded: "ColumnAdded",
|
|
19
|
+
ColumnModified: "ColumnModified",
|
|
20
|
+
ColumnDeleted: "ColumnDeleted",
|
|
21
|
+
SubmodelColumnDeleted: "SubmodelColumnDeleted",
|
|
22
|
+
SubmodelRowDeleted: "SubmodelRowDeleted",
|
|
23
|
+
SubmodelElementDeleted: "SubmodelElementDeleted",
|
|
24
|
+
PolicyDeleted: "PolicyDeleted",
|
|
25
|
+
DigitalProductDocumentStatusChanged: "DigitalProductDocumentStatusChanged",
|
|
26
|
+
};
|
|
27
|
+
exports.ActivityDtoTypesEnum = zod_1.z.enum(exports.ActivityDtoTypes);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ChangeEventDtoTypes: {
|
|
3
|
+
readonly DisplayNameChanged: "DisplayNameChanged";
|
|
4
|
+
readonly DescriptionChanged: "DescriptionChanged";
|
|
5
|
+
readonly PropertyValueChanged: "PropertyValueChanged";
|
|
6
|
+
readonly FileValueChanged: "FileValueChanged";
|
|
7
|
+
readonly ReferenceElementValueChanged: "ReferenceElementChanged";
|
|
8
|
+
readonly RowAdded: "RowAdded";
|
|
9
|
+
readonly RowDeleted: "RowDeleted";
|
|
10
|
+
readonly ColumnAdded: "ColumnAdded";
|
|
11
|
+
readonly ColumnDeleted: "ColumnDeleted";
|
|
12
|
+
readonly SubmodelAdded: "SubmodelAdded";
|
|
13
|
+
readonly AddedSubmodelToEnv: "AddedSubmodelToEnv";
|
|
14
|
+
readonly SubmodelElementAdded: "SubmodelElementAdded";
|
|
15
|
+
readonly SubmodelElementDeleted: "SubmodelElementDeleted";
|
|
16
|
+
readonly SubmodelReferenceAdded: "SubmodelReferenceAdded";
|
|
17
|
+
readonly PolicyDeleted: "PolicyDeleted";
|
|
18
|
+
readonly PolicyAdded: "PolicyAdded";
|
|
19
|
+
readonly PolicyModified: "PolicyModified";
|
|
20
|
+
readonly DefaultThumbnailsModified: "DefaultThumbnailsModified";
|
|
21
|
+
readonly DeletedSubmodelFromEnv: "DeletedSubmodelFromEnv";
|
|
22
|
+
readonly SubmodelReferenceDeleted: "SubmodelReferenceDeleted";
|
|
23
|
+
readonly SubmodelDeleted: "SubmodelDeleted";
|
|
24
|
+
readonly DigitalProductDocumentStatusChanged: "DigitalProductDocumentStatusChanged";
|
|
25
|
+
};
|
|
26
|
+
export declare const ChangeEventDtoTypeEnum: z.ZodEnum<{
|
|
27
|
+
readonly DisplayNameChanged: "DisplayNameChanged";
|
|
28
|
+
readonly DescriptionChanged: "DescriptionChanged";
|
|
29
|
+
readonly PropertyValueChanged: "PropertyValueChanged";
|
|
30
|
+
readonly FileValueChanged: "FileValueChanged";
|
|
31
|
+
readonly ReferenceElementValueChanged: "ReferenceElementChanged";
|
|
32
|
+
readonly RowAdded: "RowAdded";
|
|
33
|
+
readonly RowDeleted: "RowDeleted";
|
|
34
|
+
readonly ColumnAdded: "ColumnAdded";
|
|
35
|
+
readonly ColumnDeleted: "ColumnDeleted";
|
|
36
|
+
readonly SubmodelAdded: "SubmodelAdded";
|
|
37
|
+
readonly AddedSubmodelToEnv: "AddedSubmodelToEnv";
|
|
38
|
+
readonly SubmodelElementAdded: "SubmodelElementAdded";
|
|
39
|
+
readonly SubmodelElementDeleted: "SubmodelElementDeleted";
|
|
40
|
+
readonly SubmodelReferenceAdded: "SubmodelReferenceAdded";
|
|
41
|
+
readonly PolicyDeleted: "PolicyDeleted";
|
|
42
|
+
readonly PolicyAdded: "PolicyAdded";
|
|
43
|
+
readonly PolicyModified: "PolicyModified";
|
|
44
|
+
readonly DefaultThumbnailsModified: "DefaultThumbnailsModified";
|
|
45
|
+
readonly DeletedSubmodelFromEnv: "DeletedSubmodelFromEnv";
|
|
46
|
+
readonly SubmodelReferenceDeleted: "SubmodelReferenceDeleted";
|
|
47
|
+
readonly SubmodelDeleted: "SubmodelDeleted";
|
|
48
|
+
readonly DigitalProductDocumentStatusChanged: "DigitalProductDocumentStatusChanged";
|
|
49
|
+
}>;
|
|
50
|
+
export type ChangeEventDtoTypesType = z.infer<typeof ChangeEventDtoTypeEnum>;
|
|
51
|
+
//# sourceMappingURL=change-event-types.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"change-event-types.dto.d.ts","sourceRoot":"","sources":["../../src/activity-history/change-event-types.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;CAuBtB,CAAC;AACX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;EAA8B,CAAC;AAClE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChangeEventDtoTypeEnum = exports.ChangeEventDtoTypes = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ChangeEventDtoTypes = {
|
|
6
|
+
DisplayNameChanged: "DisplayNameChanged",
|
|
7
|
+
DescriptionChanged: "DescriptionChanged",
|
|
8
|
+
PropertyValueChanged: "PropertyValueChanged",
|
|
9
|
+
FileValueChanged: "FileValueChanged",
|
|
10
|
+
ReferenceElementValueChanged: "ReferenceElementChanged",
|
|
11
|
+
RowAdded: "RowAdded",
|
|
12
|
+
RowDeleted: "RowDeleted",
|
|
13
|
+
ColumnAdded: "ColumnAdded",
|
|
14
|
+
ColumnDeleted: "ColumnDeleted",
|
|
15
|
+
SubmodelAdded: "SubmodelAdded",
|
|
16
|
+
AddedSubmodelToEnv: "AddedSubmodelToEnv",
|
|
17
|
+
SubmodelElementAdded: "SubmodelElementAdded",
|
|
18
|
+
SubmodelElementDeleted: "SubmodelElementDeleted",
|
|
19
|
+
SubmodelReferenceAdded: "SubmodelReferenceAdded",
|
|
20
|
+
PolicyDeleted: "PolicyDeleted",
|
|
21
|
+
PolicyAdded: "PolicyAdded",
|
|
22
|
+
PolicyModified: "PolicyModified",
|
|
23
|
+
DefaultThumbnailsModified: "DefaultThumbnailsModified",
|
|
24
|
+
DeletedSubmodelFromEnv: "DeletedSubmodelFromEnv",
|
|
25
|
+
SubmodelReferenceDeleted: "SubmodelReferenceDeleted",
|
|
26
|
+
SubmodelDeleted: "SubmodelDeleted",
|
|
27
|
+
DigitalProductDocumentStatusChanged: "DigitalProductDocumentStatusChanged",
|
|
28
|
+
};
|
|
29
|
+
exports.ChangeEventDtoTypeEnum = zod_1.z.enum(exports.ChangeEventDtoTypes);
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./aas/common/key-json-schema";
|
|
|
7
7
|
export * from "./aas/common/language-text-json-schema";
|
|
8
8
|
export * from "./shared/get-all-params.dto";
|
|
9
9
|
export * from "./shared/filter.dto";
|
|
10
|
+
export * from "./shared/time.dto";
|
|
10
11
|
export * from "./organizations/invitation.dto";
|
|
11
12
|
export * from "./instance-settings/instance-settings.dto";
|
|
12
13
|
export * from "./aas/common/qualifier-json-schema";
|
|
@@ -63,4 +64,7 @@ export * from "./templates/template.dto";
|
|
|
63
64
|
export * from "./users/create-user.dto";
|
|
64
65
|
export * from "./users/set-user-role.dto";
|
|
65
66
|
export * from "./users/user.dto";
|
|
67
|
+
export * from "./activity-history/activity-history.dto";
|
|
68
|
+
export * from "./activity-history/change-event-types.dto";
|
|
69
|
+
export * from "./activity-history/activity-types.dto";
|
|
66
70
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8CAA8C,CAAC;AAC7D,cAAc,oCAAoC,CAAC;AACnD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AAEvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8CAA8C,CAAC;AAC7D,cAAc,oCAAoC,CAAC;AACnD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AAEvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAElC,cAAc,gCAAgC,CAAC;AAE/C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6BAA6B,CAAC;AAE5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,gEAAgE,CAAC;AAE/E,cAAc,sCAAsC,CAAC;AACrD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,sCAAsC,CAAC;AACrD,cAAc,yDAAyD,CAAC;AACxE,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mDAAmD,CAAC;AAClE,cAAc,sDAAsD,CAAC;AACrE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,6DAA6D,CAAC;AAC5E,cAAc,uDAAuD,CAAC;AACtE,cAAc,0DAA0D,CAAC;AAEzE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,0CAA0C,CAAC;AACzD,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8DAA8D,CAAC;AAC7E,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yBAAyB,CAAC;AACxC,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AAEjC,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,uCAAuC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __exportStar(require("./aas/common/key-json-schema"), exports);
|
|
|
23
23
|
__exportStar(require("./aas/common/language-text-json-schema"), exports);
|
|
24
24
|
__exportStar(require("./shared/get-all-params.dto"), exports);
|
|
25
25
|
__exportStar(require("./shared/filter.dto"), exports);
|
|
26
|
+
__exportStar(require("./shared/time.dto"), exports);
|
|
26
27
|
__exportStar(require("./organizations/invitation.dto"), exports);
|
|
27
28
|
__exportStar(require("./instance-settings/instance-settings.dto"), exports);
|
|
28
29
|
__exportStar(require("./aas/common/qualifier-json-schema"), exports);
|
|
@@ -79,3 +80,6 @@ __exportStar(require("./templates/template.dto"), exports);
|
|
|
79
80
|
__exportStar(require("./users/create-user.dto"), exports);
|
|
80
81
|
__exportStar(require("./users/set-user-role.dto"), exports);
|
|
81
82
|
__exportStar(require("./users/user.dto"), exports);
|
|
83
|
+
__exportStar(require("./activity-history/activity-history.dto"), exports);
|
|
84
|
+
__exportStar(require("./activity-history/change-event-types.dto"), exports);
|
|
85
|
+
__exportStar(require("./activity-history/activity-types.dto"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PeriodDtoSchema: z.ZodObject<{
|
|
3
|
+
startDate: z.ZodOptional<z.ZodISODateTime>;
|
|
4
|
+
endDate: z.ZodOptional<z.ZodISODateTime>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type PeriodDto = z.infer<typeof PeriodDtoSchema>;
|
|
7
|
+
//# sourceMappingURL=time.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time.dto.d.ts","sourceRoot":"","sources":["../../src/shared/time.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;;;iBAG1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PeriodDtoSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.PeriodDtoSchema = zod_1.z.object({
|
|
6
|
+
startDate: zod_1.z.iso.datetime().optional(),
|
|
7
|
+
endDate: zod_1.z.iso.datetime().optional(),
|
|
8
|
+
});
|
package/package.json
CHANGED
|
@@ -7,17 +7,19 @@ import {
|
|
|
7
7
|
SubmodelBaseModificationSchema,
|
|
8
8
|
} from "./submodel-base-json-schema";
|
|
9
9
|
|
|
10
|
+
const PropertyValueDtoSchema = z.nullish(z.coerce.string());
|
|
11
|
+
|
|
10
12
|
export const PropertyJsonSchema = z.object({
|
|
11
13
|
...SubmodelBaseJsonSchema.shape,
|
|
12
14
|
valueType: ValueTypeSchema,
|
|
13
15
|
extensions: ExtensionJsonSchema.array().default([]),
|
|
14
|
-
value:
|
|
16
|
+
value: PropertyValueDtoSchema,
|
|
15
17
|
valueId: z.nullish(ReferenceJsonSchema),
|
|
16
18
|
});
|
|
17
19
|
|
|
18
20
|
export const PropertyModificationSchema = z.object({
|
|
19
21
|
...SubmodelBaseModificationSchema.shape,
|
|
20
|
-
value:
|
|
22
|
+
value: PropertyValueDtoSchema,
|
|
21
23
|
});
|
|
22
24
|
|
|
23
25
|
export type PropertyResponseDto = z.infer<typeof PropertyJsonSchema>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { PagingMetadataDtoSchema, PagingParamsDtoSchema } from "../shared/pagination.dto";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { PeriodDtoSchema } from "../shared/time.dto";
|
|
4
|
+
import { ChangeEventDtoTypeEnum } from "./change-event-types.dto";
|
|
5
|
+
import { ActivityDtoTypesEnum } from "./activity-types.dto";
|
|
6
|
+
import { LanguageEnum } from "../aas/enums/language-enum";
|
|
7
|
+
|
|
8
|
+
export const ActivityHeaderDtoSchema = z.object({
|
|
9
|
+
id: z.string(),
|
|
10
|
+
aggregateId: z.string(),
|
|
11
|
+
correlationId: z.string().nullable(),
|
|
12
|
+
createdAt: z.iso.datetime(),
|
|
13
|
+
type: ActivityDtoTypesEnum,
|
|
14
|
+
userId: z.string().nullable(),
|
|
15
|
+
version: z.string(),
|
|
16
|
+
exportVersion: z.string(),
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export const ActivityPayloadDtoSchema = z.looseObject({
|
|
20
|
+
changes: z
|
|
21
|
+
.looseObject({
|
|
22
|
+
type: ChangeEventDtoTypeEnum,
|
|
23
|
+
path: z.string().optional(),
|
|
24
|
+
})
|
|
25
|
+
.array(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export const ActivityDtoSchema = z.object({
|
|
29
|
+
header: ActivityHeaderDtoSchema,
|
|
30
|
+
payload: z.union([ActivityPayloadDtoSchema]),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export type ActivityDto = z.infer<typeof ActivityDtoSchema>;
|
|
34
|
+
|
|
35
|
+
export const ActivityPaginationDtoSchema = z
|
|
36
|
+
.object({
|
|
37
|
+
...PagingMetadataDtoSchema.shape,
|
|
38
|
+
result: ActivityDtoSchema.array(),
|
|
39
|
+
})
|
|
40
|
+
.meta({ id: "Activities" });
|
|
41
|
+
|
|
42
|
+
export type ActivityPaginationDto = z.infer<typeof ActivityPaginationDtoSchema>;
|
|
43
|
+
|
|
44
|
+
export const ActivityFilterDtoSchema = z.object({
|
|
45
|
+
type: z.union([ActivityDtoTypesEnum, ActivityDtoTypesEnum.array()]).optional(),
|
|
46
|
+
path: z.string().optional(),
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export type ActivityFilterDto = z.infer<typeof ActivityFilterDtoSchema>;
|
|
50
|
+
|
|
51
|
+
export const GetAllActivitiesParamsDtoSchema = z.object({
|
|
52
|
+
pagination: PagingParamsDtoSchema.optional(),
|
|
53
|
+
period: PeriodDtoSchema.optional(),
|
|
54
|
+
filter: ActivityFilterDtoSchema.optional(),
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
export type GetAllActivitiesParamsDto = z.infer<typeof GetAllActivitiesParamsDtoSchema>;
|
|
58
|
+
|
|
59
|
+
export const LanguageTextChangedDtoSchema = z.object({
|
|
60
|
+
lng: LanguageEnum,
|
|
61
|
+
op: z.enum(["replace", "add", "remove"]),
|
|
62
|
+
oldValue: z.string().nullable(),
|
|
63
|
+
newValue: z.string().nullable(),
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
export type LanguageTextChangedDto = z.infer<typeof LanguageTextChangedDtoSchema>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
export const ActivityDtoTypes = {
|
|
4
|
+
SubmodelAdded: "SubmodelAdded",
|
|
5
|
+
SubmodelDeleted: "SubmodelDeleted",
|
|
6
|
+
SubmodelModified: "SubmodelModified",
|
|
7
|
+
SubmodelValueModified: "SubmodelValueModified",
|
|
8
|
+
SubmodelElementModified: "SubmodelElementModified",
|
|
9
|
+
SubmodelElementValueModified: "SubmodelElementValueModified",
|
|
10
|
+
SubmodelColumnModified: "SubmodelColumnModified",
|
|
11
|
+
AssetAdministrationShellModified: "AssetAdministrationShellModified",
|
|
12
|
+
SubmodelElementAdded: "SubmodelElementAdded",
|
|
13
|
+
SubmodelColumnAdded: "SubmodelColumnAdded",
|
|
14
|
+
RowAdded: "RowAdded",
|
|
15
|
+
RowDeleted: "RowDeleted",
|
|
16
|
+
ColumnAdded: "ColumnAdded",
|
|
17
|
+
ColumnModified: "ColumnModified",
|
|
18
|
+
ColumnDeleted: "ColumnDeleted",
|
|
19
|
+
SubmodelColumnDeleted: "SubmodelColumnDeleted",
|
|
20
|
+
SubmodelRowDeleted: "SubmodelRowDeleted",
|
|
21
|
+
SubmodelElementDeleted: "SubmodelElementDeleted",
|
|
22
|
+
PolicyDeleted: "PolicyDeleted",
|
|
23
|
+
DigitalProductDocumentStatusChanged: "DigitalProductDocumentStatusChanged",
|
|
24
|
+
} as const;
|
|
25
|
+
export const ActivityDtoTypesEnum = z.enum(ActivityDtoTypes);
|
|
26
|
+
export type ActivityDtoTypesType = z.infer<typeof ActivityDtoTypesEnum>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
export const ChangeEventDtoTypes = {
|
|
4
|
+
DisplayNameChanged: "DisplayNameChanged",
|
|
5
|
+
DescriptionChanged: "DescriptionChanged",
|
|
6
|
+
PropertyValueChanged: "PropertyValueChanged",
|
|
7
|
+
FileValueChanged: "FileValueChanged",
|
|
8
|
+
ReferenceElementValueChanged: "ReferenceElementChanged",
|
|
9
|
+
RowAdded: "RowAdded",
|
|
10
|
+
RowDeleted: "RowDeleted",
|
|
11
|
+
ColumnAdded: "ColumnAdded",
|
|
12
|
+
ColumnDeleted: "ColumnDeleted",
|
|
13
|
+
SubmodelAdded: "SubmodelAdded",
|
|
14
|
+
AddedSubmodelToEnv: "AddedSubmodelToEnv",
|
|
15
|
+
SubmodelElementAdded: "SubmodelElementAdded",
|
|
16
|
+
SubmodelElementDeleted: "SubmodelElementDeleted",
|
|
17
|
+
SubmodelReferenceAdded: "SubmodelReferenceAdded",
|
|
18
|
+
PolicyDeleted: "PolicyDeleted",
|
|
19
|
+
PolicyAdded: "PolicyAdded",
|
|
20
|
+
PolicyModified: "PolicyModified",
|
|
21
|
+
DefaultThumbnailsModified: "DefaultThumbnailsModified",
|
|
22
|
+
DeletedSubmodelFromEnv: "DeletedSubmodelFromEnv",
|
|
23
|
+
SubmodelReferenceDeleted: "SubmodelReferenceDeleted",
|
|
24
|
+
SubmodelDeleted: "SubmodelDeleted",
|
|
25
|
+
DigitalProductDocumentStatusChanged: "DigitalProductDocumentStatusChanged",
|
|
26
|
+
} as const;
|
|
27
|
+
export const ChangeEventDtoTypeEnum = z.enum(ChangeEventDtoTypes);
|
|
28
|
+
export type ChangeEventDtoTypesType = z.infer<typeof ChangeEventDtoTypeEnum>;
|
package/src/index.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from "./aas/common/language-text-json-schema";
|
|
|
8
8
|
|
|
9
9
|
export * from "./shared/get-all-params.dto";
|
|
10
10
|
export * from "./shared/filter.dto";
|
|
11
|
+
export * from "./shared/time.dto";
|
|
11
12
|
|
|
12
13
|
export * from "./organizations/invitation.dto";
|
|
13
14
|
|
|
@@ -69,3 +70,7 @@ export * from "./templates/template.dto";
|
|
|
69
70
|
export * from "./users/create-user.dto";
|
|
70
71
|
export * from "./users/set-user-role.dto";
|
|
71
72
|
export * from "./users/user.dto";
|
|
73
|
+
|
|
74
|
+
export * from "./activity-history/activity-history.dto";
|
|
75
|
+
export * from "./activity-history/change-event-types.dto";
|
|
76
|
+
export * from "./activity-history/activity-types.dto";
|