@open-dpp/dto 0.1.4 → 0.3.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/branding/branding.dto.d.ts +1 -0
- package/dist/branding/branding.dto.d.ts.map +1 -1
- package/dist/branding/branding.dto.js +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/passports/passport.dto.d.ts +24 -0
- package/dist/passports/passport.dto.d.ts.map +1 -1
- package/dist/passports/passport.dto.js +2 -2
- package/dist/shared/digital-product-document.schemas.d.ts +81 -0
- package/dist/shared/digital-product-document.schemas.d.ts.map +1 -0
- package/dist/shared/digital-product-document.schemas.js +33 -0
- package/dist/shared/filter.dto.d.ts +10 -0
- package/dist/shared/filter.dto.d.ts.map +1 -0
- package/dist/shared/filter.dto.js +8 -0
- package/dist/shared/get-all-params.dto.d.ts +17 -0
- package/dist/shared/get-all-params.dto.d.ts.map +1 -0
- package/dist/shared/get-all-params.dto.js +12 -0
- package/dist/shared/pagination.dto.d.ts +0 -1
- package/dist/shared/pagination.dto.d.ts.map +1 -1
- package/dist/shared/pagination.dto.js +0 -2
- package/dist/templates/template.dto.d.ts +24 -0
- package/dist/templates/template.dto.d.ts.map +1 -1
- package/dist/templates/template.dto.js +2 -2
- package/package.json +10 -1
- package/src/branding/branding.dto.ts +1 -0
- package/src/index.ts +4 -1
- package/src/passports/passport.dto.ts +2 -2
- package/src/shared/digital-product-document.schemas.ts +52 -0
- package/src/shared/filter.dto.ts +8 -0
- package/src/shared/get-all-params.dto.ts +12 -0
- package/src/shared/pagination.dto.ts +0 -2
- package/src/templates/template.dto.ts +2 -2
- package/dist/shared/dpp.schemas.d.ts +0 -28
- package/dist/shared/dpp.schemas.d.ts.map +0 -1
- package/dist/shared/dpp.schemas.js +0 -13
- package/src/shared/dpp.schemas.ts +0 -17
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const BrandingDtoSchema: z.ZodObject<{
|
|
3
3
|
logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
|
+
primaryColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
5
|
}, z.core.$strip>;
|
|
5
6
|
export type BrandingDto = z.infer<typeof BrandingDtoSchema>;
|
|
6
7
|
//# sourceMappingURL=branding.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branding.dto.d.ts","sourceRoot":"","sources":["../../src/branding/branding.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"branding.dto.d.ts","sourceRoot":"","sources":["../../src/branding/branding.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export * from "./aas/asset-information-json-schema";
|
|
|
4
4
|
export * from "./aas/common/basic-json-schema";
|
|
5
5
|
export * from "./aas/common/key-json-schema";
|
|
6
6
|
export * from "./aas/common/language-text-json-schema";
|
|
7
|
+
export * from "./shared/get-all-params.dto";
|
|
8
|
+
export * from "./shared/filter.dto";
|
|
7
9
|
export * from "./aas/common/qualifier-json-schema";
|
|
8
10
|
export * from "./aas/common/reference-json-schema";
|
|
9
11
|
export * from "./aas/concept-description-json-schema";
|
|
@@ -45,7 +47,7 @@ export * from "./aas/submodel-base/submodel-json-schema";
|
|
|
45
47
|
export * from "./branding/branding.dto";
|
|
46
48
|
export * from "./organizations/member.dto";
|
|
47
49
|
export * from "./passports/passport.dto";
|
|
48
|
-
export * from "./shared/
|
|
50
|
+
export * from "./shared/digital-product-document.schemas";
|
|
49
51
|
export * from "./shared/pagination.dto";
|
|
50
52
|
export * from "./shared/populate.dto";
|
|
51
53
|
export * from "./shared/table.dto";
|
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,8CAA8C,CAAC;AAC7D,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AAEvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC;AAC7C,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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8CAA8C,CAAC;AAC7D,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;AAEpC,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC;AAC7C,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,2CAA2C,CAAC;AAC1D,cAAc,yBAAyB,CAAC;AACxC,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"}
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,8 @@ __exportStar(require("./aas/asset-information-json-schema"), exports);
|
|
|
20
20
|
__exportStar(require("./aas/common/basic-json-schema"), exports);
|
|
21
21
|
__exportStar(require("./aas/common/key-json-schema"), exports);
|
|
22
22
|
__exportStar(require("./aas/common/language-text-json-schema"), exports);
|
|
23
|
+
__exportStar(require("./shared/get-all-params.dto"), exports);
|
|
24
|
+
__exportStar(require("./shared/filter.dto"), exports);
|
|
23
25
|
__exportStar(require("./aas/common/qualifier-json-schema"), exports);
|
|
24
26
|
__exportStar(require("./aas/common/reference-json-schema"), exports);
|
|
25
27
|
__exportStar(require("./aas/concept-description-json-schema"), exports);
|
|
@@ -61,7 +63,7 @@ __exportStar(require("./aas/submodel-base/submodel-json-schema"), exports);
|
|
|
61
63
|
__exportStar(require("./branding/branding.dto"), exports);
|
|
62
64
|
__exportStar(require("./organizations/member.dto"), exports);
|
|
63
65
|
__exportStar(require("./passports/passport.dto"), exports);
|
|
64
|
-
__exportStar(require("./shared/
|
|
66
|
+
__exportStar(require("./shared/digital-product-document.schemas"), exports);
|
|
65
67
|
__exportStar(require("./shared/pagination.dto"), exports);
|
|
66
68
|
__exportStar(require("./shared/populate.dto"), exports);
|
|
67
69
|
__exportStar(require("./shared/table.dto"), exports);
|
|
@@ -22,6 +22,18 @@ export declare const PassportDtoSchema: z.ZodObject<{
|
|
|
22
22
|
}, z.core.$strip>]>;
|
|
23
23
|
createdAt: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodDate]>;
|
|
24
24
|
updatedAt: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodDate]>;
|
|
25
|
+
lastStatusChange: z.ZodObject<{
|
|
26
|
+
previousStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
27
|
+
readonly Draft: "Draft";
|
|
28
|
+
readonly Published: "Published";
|
|
29
|
+
readonly Archived: "Archived";
|
|
30
|
+
}>>>;
|
|
31
|
+
currentStatus: z.ZodEnum<{
|
|
32
|
+
readonly Draft: "Draft";
|
|
33
|
+
readonly Published: "Published";
|
|
34
|
+
readonly Archived: "Archived";
|
|
35
|
+
}>;
|
|
36
|
+
}, z.core.$strip>;
|
|
25
37
|
templateId: z.ZodNullable<z.ZodString>;
|
|
26
38
|
uniqueProductIdentifierUuid: z.ZodOptional<z.ZodUUID>;
|
|
27
39
|
}, z.core.$strip>;
|
|
@@ -50,6 +62,18 @@ export declare const PassportPaginationDtoSchema: z.ZodObject<{
|
|
|
50
62
|
}, z.core.$strip>]>;
|
|
51
63
|
createdAt: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodDate]>;
|
|
52
64
|
updatedAt: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodDate]>;
|
|
65
|
+
lastStatusChange: z.ZodObject<{
|
|
66
|
+
previousStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
67
|
+
readonly Draft: "Draft";
|
|
68
|
+
readonly Published: "Published";
|
|
69
|
+
readonly Archived: "Archived";
|
|
70
|
+
}>>>;
|
|
71
|
+
currentStatus: z.ZodEnum<{
|
|
72
|
+
readonly Draft: "Draft";
|
|
73
|
+
readonly Published: "Published";
|
|
74
|
+
readonly Archived: "Archived";
|
|
75
|
+
}>;
|
|
76
|
+
}, z.core.$strip>;
|
|
53
77
|
templateId: z.ZodNullable<z.ZodString>;
|
|
54
78
|
uniqueProductIdentifierUuid: z.ZodOptional<z.ZodUUID>;
|
|
55
79
|
}, z.core.$strip>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"passport.dto.d.ts","sourceRoot":"","sources":["../../src/passports/passport.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"passport.dto.d.ts","sourceRoot":"","sources":["../../src/passports/passport.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAI5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKZ,CAAC;AAE7B,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;mBASzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PassportRequestCreateDtoSchema = exports.PassportPaginationDtoSchema = exports.PassportDtoSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const asset_administration_shell_json_schema_1 = require("../aas/asset-administration-shell-json-schema");
|
|
6
|
-
const
|
|
6
|
+
const digital_product_document_schemas_1 = require("../shared/digital-product-document.schemas");
|
|
7
7
|
const pagination_dto_1 = require("../shared/pagination.dto");
|
|
8
|
-
exports.PassportDtoSchema =
|
|
8
|
+
exports.PassportDtoSchema = digital_product_document_schemas_1.DigitalProductDocumentDtoSchema.extend({
|
|
9
9
|
templateId: zod_1.z.string().nullable(),
|
|
10
10
|
/** UPI uuid for presentation/chat links; set when listing passports */
|
|
11
11
|
uniqueProductIdentifierUuid: zod_1.z.uuid().optional(),
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DateTimeSchema: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodDate]>;
|
|
3
|
+
export declare const DigitalProductDocumentStatusDto: {
|
|
4
|
+
readonly Draft: "Draft";
|
|
5
|
+
readonly Published: "Published";
|
|
6
|
+
readonly Archived: "Archived";
|
|
7
|
+
};
|
|
8
|
+
export declare const DigitalProductDocumentStatusDtoEnum: z.ZodEnum<{
|
|
9
|
+
readonly Draft: "Draft";
|
|
10
|
+
readonly Published: "Published";
|
|
11
|
+
readonly Archived: "Archived";
|
|
12
|
+
}>;
|
|
13
|
+
export type DigitalProductDocumentStatusDtoType = z.infer<typeof DigitalProductDocumentStatusDtoEnum>;
|
|
14
|
+
export declare const DigitalProductDocumentStatusModificationMethodDto: {
|
|
15
|
+
readonly Publish: "Publish";
|
|
16
|
+
readonly Archive: "Archive";
|
|
17
|
+
readonly Restore: "Restore";
|
|
18
|
+
};
|
|
19
|
+
export declare const DigitalProductDocumentStatusModificationDtoEnum: z.ZodEnum<{
|
|
20
|
+
readonly Publish: "Publish";
|
|
21
|
+
readonly Archive: "Archive";
|
|
22
|
+
readonly Restore: "Restore";
|
|
23
|
+
}>;
|
|
24
|
+
export declare const DigitalProductDocumentStatusChangeDtoSchema: z.ZodObject<{
|
|
25
|
+
previousStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
26
|
+
readonly Draft: "Draft";
|
|
27
|
+
readonly Published: "Published";
|
|
28
|
+
readonly Archived: "Archived";
|
|
29
|
+
}>>>;
|
|
30
|
+
currentStatus: z.ZodEnum<{
|
|
31
|
+
readonly Draft: "Draft";
|
|
32
|
+
readonly Published: "Published";
|
|
33
|
+
readonly Archived: "Archived";
|
|
34
|
+
}>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export declare const DigitalProductDocumentStatusModificationDtoSchema: z.ZodObject<{
|
|
37
|
+
method: z.ZodEnum<{
|
|
38
|
+
readonly Publish: "Publish";
|
|
39
|
+
readonly Archive: "Archive";
|
|
40
|
+
readonly Restore: "Restore";
|
|
41
|
+
}>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type DigitalProductDocumentStatusModificationDto = z.infer<typeof DigitalProductDocumentStatusModificationDtoSchema>;
|
|
44
|
+
export declare const DigitalProductDocumentDtoSchema: z.ZodObject<{
|
|
45
|
+
id: z.ZodString;
|
|
46
|
+
organizationId: z.ZodString;
|
|
47
|
+
environment: z.ZodUnion<readonly [z.ZodObject<{
|
|
48
|
+
assetAdministrationShells: z.ZodArray<z.ZodString>;
|
|
49
|
+
submodels: z.ZodArray<z.ZodString>;
|
|
50
|
+
conceptDescriptions: z.ZodArray<z.ZodString>;
|
|
51
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
+
assetAdministrationShells: z.ZodArray<z.ZodXor<readonly [z.ZodString, z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
displayName: z.ZodArray<z.ZodObject<{
|
|
55
|
+
language: z.ZodEnum<{
|
|
56
|
+
readonly en: "en";
|
|
57
|
+
readonly de: "de";
|
|
58
|
+
}>;
|
|
59
|
+
text: z.ZodString;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
}, z.core.$strip>]>>;
|
|
62
|
+
submodels: z.ZodArray<z.ZodString>;
|
|
63
|
+
conceptDescriptions: z.ZodArray<z.ZodString>;
|
|
64
|
+
}, z.core.$strip>]>;
|
|
65
|
+
createdAt: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodDate]>;
|
|
66
|
+
updatedAt: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodDate]>;
|
|
67
|
+
lastStatusChange: z.ZodObject<{
|
|
68
|
+
previousStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
69
|
+
readonly Draft: "Draft";
|
|
70
|
+
readonly Published: "Published";
|
|
71
|
+
readonly Archived: "Archived";
|
|
72
|
+
}>>>;
|
|
73
|
+
currentStatus: z.ZodEnum<{
|
|
74
|
+
readonly Draft: "Draft";
|
|
75
|
+
readonly Published: "Published";
|
|
76
|
+
readonly Archived: "Archived";
|
|
77
|
+
}>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
export type DigitalProductDocumentDto = z.infer<typeof DigitalProductDocumentDtoSchema>;
|
|
81
|
+
//# sourceMappingURL=digital-product-document.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"digital-product-document.schemas.d.ts","sourceRoot":"","sources":["../../src/shared/digital-product-document.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,cAAc,oDAAwC,CAAC;AAEpE,eAAO,MAAM,+BAA+B;;;;CAIlC,CAAC;AAEX,eAAO,MAAM,mCAAmC;;;;EAA0C,CAAC;AAC3F,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,mCAAmC,CAC3C,CAAC;AAEF,eAAO,MAAM,iDAAiD;;;;CAIpD,CAAC;AAEX,eAAO,MAAM,+CAA+C;;;;EAE3D,CAAC;AAEF,eAAO,MAAM,2CAA2C;;;;;;;;;;;iBAGtD,CAAC;AAEH,eAAO,MAAM,iDAAiD;;;;;;iBAE5D,CAAC;AAEH,MAAM,MAAM,2CAA2C,GAAG,CAAC,CAAC,KAAK,CAC/D,OAAO,iDAAiD,CACzD,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAO1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DigitalProductDocumentDtoSchema = exports.DigitalProductDocumentStatusModificationDtoSchema = exports.DigitalProductDocumentStatusChangeDtoSchema = exports.DigitalProductDocumentStatusModificationDtoEnum = exports.DigitalProductDocumentStatusModificationMethodDto = exports.DigitalProductDocumentStatusDtoEnum = exports.DigitalProductDocumentStatusDto = exports.DateTimeSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const environment_json_schema_1 = require("../aas/environment-json-schema");
|
|
6
|
+
exports.DateTimeSchema = zod_1.z.union([zod_1.z.iso.datetime(), zod_1.z.date()]);
|
|
7
|
+
exports.DigitalProductDocumentStatusDto = {
|
|
8
|
+
Draft: "Draft",
|
|
9
|
+
Published: "Published",
|
|
10
|
+
Archived: "Archived",
|
|
11
|
+
};
|
|
12
|
+
exports.DigitalProductDocumentStatusDtoEnum = zod_1.z.enum(exports.DigitalProductDocumentStatusDto);
|
|
13
|
+
exports.DigitalProductDocumentStatusModificationMethodDto = {
|
|
14
|
+
Publish: "Publish",
|
|
15
|
+
Archive: "Archive",
|
|
16
|
+
Restore: "Restore",
|
|
17
|
+
};
|
|
18
|
+
exports.DigitalProductDocumentStatusModificationDtoEnum = zod_1.z.enum(exports.DigitalProductDocumentStatusModificationMethodDto);
|
|
19
|
+
exports.DigitalProductDocumentStatusChangeDtoSchema = zod_1.z.object({
|
|
20
|
+
previousStatus: exports.DigitalProductDocumentStatusDtoEnum.nullish(),
|
|
21
|
+
currentStatus: exports.DigitalProductDocumentStatusDtoEnum,
|
|
22
|
+
});
|
|
23
|
+
exports.DigitalProductDocumentStatusModificationDtoSchema = zod_1.z.object({
|
|
24
|
+
method: exports.DigitalProductDocumentStatusModificationDtoEnum,
|
|
25
|
+
});
|
|
26
|
+
exports.DigitalProductDocumentDtoSchema = zod_1.z.object({
|
|
27
|
+
id: zod_1.z.string(),
|
|
28
|
+
organizationId: zod_1.z.string(),
|
|
29
|
+
environment: zod_1.z.union([environment_json_schema_1.EnvironmentJsonSchema, environment_json_schema_1.ExtendedEnvironmentJsonSchema]),
|
|
30
|
+
createdAt: exports.DateTimeSchema,
|
|
31
|
+
updatedAt: exports.DateTimeSchema,
|
|
32
|
+
lastStatusChange: exports.DigitalProductDocumentStatusChangeDtoSchema,
|
|
33
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const FilterParamsDtoSchema: z.ZodObject<{
|
|
3
|
+
status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4
|
+
readonly Draft: "Draft";
|
|
5
|
+
readonly Published: "Published";
|
|
6
|
+
readonly Archived: "Archived";
|
|
7
|
+
}>>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type FilterParamsDto = z.infer<typeof FilterParamsDtoSchema>;
|
|
10
|
+
//# sourceMappingURL=filter.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter.dto.d.ts","sourceRoot":"","sources":["../../src/shared/filter.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB;;;;;;iBAEhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FilterParamsDtoSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const digital_product_document_schemas_1 = require("./digital-product-document.schemas");
|
|
6
|
+
exports.FilterParamsDtoSchema = zod_1.z.object({
|
|
7
|
+
status: digital_product_document_schemas_1.DigitalProductDocumentStatusDtoEnum.array().optional(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const GetAllParamsDtoSchema: z.ZodObject<{
|
|
3
|
+
pagination: z.ZodOptional<z.ZodObject<{
|
|
4
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>>;
|
|
7
|
+
populate: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>, z.ZodTransform<string[], string | string[] | undefined>>>;
|
|
8
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
10
|
+
readonly Draft: "Draft";
|
|
11
|
+
readonly Published: "Published";
|
|
12
|
+
readonly Archived: "Archived";
|
|
13
|
+
}>>>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export type GetAllParamsDto = z.infer<typeof GetAllParamsDtoSchema>;
|
|
17
|
+
//# sourceMappingURL=get-all-params.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-all-params.dto.d.ts","sourceRoot":"","sources":["../../src/shared/get-all-params.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;iBAIhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAllParamsDtoSchema = void 0;
|
|
4
|
+
const populate_dto_1 = require("./populate.dto");
|
|
5
|
+
const pagination_dto_1 = require("./pagination.dto");
|
|
6
|
+
const zod_1 = require("zod");
|
|
7
|
+
const filter_dto_1 = require("./filter.dto");
|
|
8
|
+
exports.GetAllParamsDtoSchema = zod_1.z.object({
|
|
9
|
+
pagination: pagination_dto_1.PagingParamsDtoSchema.optional(),
|
|
10
|
+
populate: populate_dto_1.PopulateSchema.optional(),
|
|
11
|
+
filter: filter_dto_1.FilterParamsDtoSchema.optional(),
|
|
12
|
+
});
|
|
@@ -7,7 +7,6 @@ export declare const PagingMetadataDtoSchema: z.ZodObject<{
|
|
|
7
7
|
export declare const PagingParamsDtoSchema: z.ZodObject<{
|
|
8
8
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
9
9
|
cursor: z.ZodOptional<z.ZodString>;
|
|
10
|
-
populate: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>, z.ZodTransform<string[], string | string[] | undefined>>>;
|
|
11
10
|
}, z.core.$strip>;
|
|
12
11
|
export type PagingParamsDto = z.infer<typeof PagingParamsDtoSchema>;
|
|
13
12
|
export type PagingMetadataDto = z.infer<typeof PagingMetadataDtoSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.dto.d.ts","sourceRoot":"","sources":["../../src/shared/pagination.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"pagination.dto.d.ts","sourceRoot":"","sources":["../../src/shared/pagination.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;iBAIlC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;iBAGhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PagingParamsDtoSchema = exports.PagingMetadataDtoSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const populate_dto_1 = require("./populate.dto");
|
|
6
5
|
exports.PagingMetadataDtoSchema = zod_1.z.object({
|
|
7
6
|
paging_metadata: zod_1.z.object({
|
|
8
7
|
cursor: zod_1.z.string().nullable(),
|
|
@@ -11,5 +10,4 @@ exports.PagingMetadataDtoSchema = zod_1.z.object({
|
|
|
11
10
|
exports.PagingParamsDtoSchema = zod_1.z.object({
|
|
12
11
|
limit: zod_1.z.number().optional(),
|
|
13
12
|
cursor: zod_1.z.string().optional(),
|
|
14
|
-
populate: populate_dto_1.PopulateSchema.optional(),
|
|
15
13
|
});
|
|
@@ -22,6 +22,18 @@ export declare const TemplateDtoSchema: z.ZodObject<{
|
|
|
22
22
|
}, z.core.$strip>]>;
|
|
23
23
|
createdAt: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodDate]>;
|
|
24
24
|
updatedAt: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodDate]>;
|
|
25
|
+
lastStatusChange: z.ZodObject<{
|
|
26
|
+
previousStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
27
|
+
readonly Draft: "Draft";
|
|
28
|
+
readonly Published: "Published";
|
|
29
|
+
readonly Archived: "Archived";
|
|
30
|
+
}>>>;
|
|
31
|
+
currentStatus: z.ZodEnum<{
|
|
32
|
+
readonly Draft: "Draft";
|
|
33
|
+
readonly Published: "Published";
|
|
34
|
+
readonly Archived: "Archived";
|
|
35
|
+
}>;
|
|
36
|
+
}, z.core.$strip>;
|
|
25
37
|
}, z.core.$strip>;
|
|
26
38
|
export type TemplateDto = z.infer<typeof TemplateDtoSchema>;
|
|
27
39
|
export declare const TemplatePaginationDtoSchema: z.ZodObject<{
|
|
@@ -48,6 +60,18 @@ export declare const TemplatePaginationDtoSchema: z.ZodObject<{
|
|
|
48
60
|
}, z.core.$strip>]>;
|
|
49
61
|
createdAt: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodDate]>;
|
|
50
62
|
updatedAt: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodDate]>;
|
|
63
|
+
lastStatusChange: z.ZodObject<{
|
|
64
|
+
previousStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
65
|
+
readonly Draft: "Draft";
|
|
66
|
+
readonly Published: "Published";
|
|
67
|
+
readonly Archived: "Archived";
|
|
68
|
+
}>>>;
|
|
69
|
+
currentStatus: z.ZodEnum<{
|
|
70
|
+
readonly Draft: "Draft";
|
|
71
|
+
readonly Published: "Published";
|
|
72
|
+
readonly Archived: "Archived";
|
|
73
|
+
}>;
|
|
74
|
+
}, z.core.$strip>;
|
|
51
75
|
}, z.core.$strip>>;
|
|
52
76
|
paging_metadata: z.ZodObject<{
|
|
53
77
|
cursor: z.ZodNullable<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.dto.d.ts","sourceRoot":"","sources":["../../src/templates/template.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"template.dto.d.ts","sourceRoot":"","sources":["../../src/templates/template.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAkC,CAAC;AAEjE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKZ,CAAC;AAE7B,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;iBAIlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TemplateCreateDtoSchema = exports.TemplatePaginationDtoSchema = exports.TemplateDtoSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const asset_administration_shell_json_schema_1 = require("../aas/asset-administration-shell-json-schema");
|
|
6
|
-
const
|
|
6
|
+
const digital_product_document_schemas_1 = require("../shared/digital-product-document.schemas");
|
|
7
7
|
const pagination_dto_1 = require("../shared/pagination.dto");
|
|
8
|
-
exports.TemplateDtoSchema =
|
|
8
|
+
exports.TemplateDtoSchema = digital_product_document_schemas_1.DigitalProductDocumentDtoSchema;
|
|
9
9
|
exports.TemplatePaginationDtoSchema = zod_1.z
|
|
10
10
|
.object({
|
|
11
11
|
...pagination_dto_1.PagingMetadataDtoSchema.shape,
|
package/package.json
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-dpp/dto",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
|
+
"homepage": "https://github.com/open-dpp/open-dpp#readme",
|
|
7
|
+
"bugs": {
|
|
8
|
+
"url": "https://github.com/open-dpp/open-dpp/issues"
|
|
9
|
+
},
|
|
6
10
|
"license": "ISC",
|
|
7
11
|
"author": "",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/open-dpp/open-dpp.git",
|
|
15
|
+
"directory": "packages/dto"
|
|
16
|
+
},
|
|
8
17
|
"files": [
|
|
9
18
|
"dist",
|
|
10
19
|
"src"
|
package/src/index.ts
CHANGED
|
@@ -5,6 +5,9 @@ export * from "./aas/common/basic-json-schema";
|
|
|
5
5
|
export * from "./aas/common/key-json-schema";
|
|
6
6
|
export * from "./aas/common/language-text-json-schema";
|
|
7
7
|
|
|
8
|
+
export * from "./shared/get-all-params.dto";
|
|
9
|
+
export * from "./shared/filter.dto";
|
|
10
|
+
|
|
8
11
|
export * from "./aas/common/qualifier-json-schema";
|
|
9
12
|
export * from "./aas/common/reference-json-schema";
|
|
10
13
|
export * from "./aas/concept-description-json-schema";
|
|
@@ -49,7 +52,7 @@ export * from "./aas/submodel-base/submodel-json-schema";
|
|
|
49
52
|
export * from "./branding/branding.dto";
|
|
50
53
|
export * from "./organizations/member.dto";
|
|
51
54
|
export * from "./passports/passport.dto";
|
|
52
|
-
export * from "./shared/
|
|
55
|
+
export * from "./shared/digital-product-document.schemas";
|
|
53
56
|
export * from "./shared/pagination.dto";
|
|
54
57
|
export * from "./shared/populate.dto";
|
|
55
58
|
export * from "./shared/table.dto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { AssetAdministrationShellCreateDtoSchema } from "../aas/asset-administration-shell-json-schema";
|
|
3
|
-
import {
|
|
3
|
+
import { DigitalProductDocumentDtoSchema } from "../shared/digital-product-document.schemas";
|
|
4
4
|
import { PagingMetadataDtoSchema } from "../shared/pagination.dto";
|
|
5
5
|
|
|
6
|
-
export const PassportDtoSchema =
|
|
6
|
+
export const PassportDtoSchema = DigitalProductDocumentDtoSchema.extend({
|
|
7
7
|
templateId: z.string().nullable(),
|
|
8
8
|
/** UPI uuid for presentation/chat links; set when listing passports */
|
|
9
9
|
uniqueProductIdentifierUuid: z.uuid().optional(),
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import {
|
|
3
|
+
EnvironmentJsonSchema,
|
|
4
|
+
ExtendedEnvironmentJsonSchema,
|
|
5
|
+
} from "../aas/environment-json-schema";
|
|
6
|
+
|
|
7
|
+
export const DateTimeSchema = z.union([z.iso.datetime(), z.date()]);
|
|
8
|
+
|
|
9
|
+
export const DigitalProductDocumentStatusDto = {
|
|
10
|
+
Draft: "Draft",
|
|
11
|
+
Published: "Published",
|
|
12
|
+
Archived: "Archived",
|
|
13
|
+
} as const;
|
|
14
|
+
|
|
15
|
+
export const DigitalProductDocumentStatusDtoEnum = z.enum(DigitalProductDocumentStatusDto);
|
|
16
|
+
export type DigitalProductDocumentStatusDtoType = z.infer<
|
|
17
|
+
typeof DigitalProductDocumentStatusDtoEnum
|
|
18
|
+
>;
|
|
19
|
+
|
|
20
|
+
export const DigitalProductDocumentStatusModificationMethodDto = {
|
|
21
|
+
Publish: "Publish",
|
|
22
|
+
Archive: "Archive",
|
|
23
|
+
Restore: "Restore",
|
|
24
|
+
} as const;
|
|
25
|
+
|
|
26
|
+
export const DigitalProductDocumentStatusModificationDtoEnum = z.enum(
|
|
27
|
+
DigitalProductDocumentStatusModificationMethodDto,
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
export const DigitalProductDocumentStatusChangeDtoSchema = z.object({
|
|
31
|
+
previousStatus: DigitalProductDocumentStatusDtoEnum.nullish(),
|
|
32
|
+
currentStatus: DigitalProductDocumentStatusDtoEnum,
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export const DigitalProductDocumentStatusModificationDtoSchema = z.object({
|
|
36
|
+
method: DigitalProductDocumentStatusModificationDtoEnum,
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export type DigitalProductDocumentStatusModificationDto = z.infer<
|
|
40
|
+
typeof DigitalProductDocumentStatusModificationDtoSchema
|
|
41
|
+
>;
|
|
42
|
+
|
|
43
|
+
export const DigitalProductDocumentDtoSchema = z.object({
|
|
44
|
+
id: z.string(),
|
|
45
|
+
organizationId: z.string(),
|
|
46
|
+
environment: z.union([EnvironmentJsonSchema, ExtendedEnvironmentJsonSchema]),
|
|
47
|
+
createdAt: DateTimeSchema,
|
|
48
|
+
updatedAt: DateTimeSchema,
|
|
49
|
+
lastStatusChange: DigitalProductDocumentStatusChangeDtoSchema,
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export type DigitalProductDocumentDto = z.infer<typeof DigitalProductDocumentDtoSchema>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { DigitalProductDocumentStatusDtoEnum } from "./digital-product-document.schemas";
|
|
3
|
+
|
|
4
|
+
export const FilterParamsDtoSchema = z.object({
|
|
5
|
+
status: DigitalProductDocumentStatusDtoEnum.array().optional(),
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export type FilterParamsDto = z.infer<typeof FilterParamsDtoSchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PopulateSchema } from "./populate.dto";
|
|
2
|
+
import { PagingParamsDtoSchema } from "./pagination.dto";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { FilterParamsDtoSchema } from "./filter.dto";
|
|
5
|
+
|
|
6
|
+
export const GetAllParamsDtoSchema = z.object({
|
|
7
|
+
pagination: PagingParamsDtoSchema.optional(),
|
|
8
|
+
populate: PopulateSchema.optional(),
|
|
9
|
+
filter: FilterParamsDtoSchema.optional(),
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export type GetAllParamsDto = z.infer<typeof GetAllParamsDtoSchema>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { PopulateSchema } from "./populate.dto";
|
|
3
2
|
|
|
4
3
|
export const PagingMetadataDtoSchema = z.object({
|
|
5
4
|
paging_metadata: z.object({
|
|
@@ -10,7 +9,6 @@ export const PagingMetadataDtoSchema = z.object({
|
|
|
10
9
|
export const PagingParamsDtoSchema = z.object({
|
|
11
10
|
limit: z.number().optional(),
|
|
12
11
|
cursor: z.string().optional(),
|
|
13
|
-
populate: PopulateSchema.optional(),
|
|
14
12
|
});
|
|
15
13
|
|
|
16
14
|
export type PagingParamsDto = z.infer<typeof PagingParamsDtoSchema>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { AssetAdministrationShellCreateDtoSchema } from "../aas/asset-administration-shell-json-schema";
|
|
3
|
-
import {
|
|
3
|
+
import { DigitalProductDocumentDtoSchema } from "../shared/digital-product-document.schemas";
|
|
4
4
|
import { PagingMetadataDtoSchema } from "../shared/pagination.dto";
|
|
5
5
|
|
|
6
|
-
export const TemplateDtoSchema =
|
|
6
|
+
export const TemplateDtoSchema = DigitalProductDocumentDtoSchema;
|
|
7
7
|
|
|
8
8
|
export type TemplateDto = z.infer<typeof TemplateDtoSchema>;
|
|
9
9
|
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const DateTimeSchema: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodDate]>;
|
|
3
|
-
export declare const SharedDppDtoSchema: z.ZodObject<{
|
|
4
|
-
id: z.ZodString;
|
|
5
|
-
organizationId: z.ZodString;
|
|
6
|
-
environment: z.ZodUnion<readonly [z.ZodObject<{
|
|
7
|
-
assetAdministrationShells: z.ZodArray<z.ZodString>;
|
|
8
|
-
submodels: z.ZodArray<z.ZodString>;
|
|
9
|
-
conceptDescriptions: z.ZodArray<z.ZodString>;
|
|
10
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
11
|
-
assetAdministrationShells: z.ZodArray<z.ZodXor<readonly [z.ZodString, z.ZodObject<{
|
|
12
|
-
id: z.ZodString;
|
|
13
|
-
displayName: z.ZodArray<z.ZodObject<{
|
|
14
|
-
language: z.ZodEnum<{
|
|
15
|
-
readonly en: "en";
|
|
16
|
-
readonly de: "de";
|
|
17
|
-
}>;
|
|
18
|
-
text: z.ZodString;
|
|
19
|
-
}, z.core.$strip>>;
|
|
20
|
-
}, z.core.$strip>]>>;
|
|
21
|
-
submodels: z.ZodArray<z.ZodString>;
|
|
22
|
-
conceptDescriptions: z.ZodArray<z.ZodString>;
|
|
23
|
-
}, z.core.$strip>]>;
|
|
24
|
-
createdAt: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodDate]>;
|
|
25
|
-
updatedAt: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodDate]>;
|
|
26
|
-
}, z.core.$strip>;
|
|
27
|
-
export type SharedDppDto = z.infer<typeof SharedDppDtoSchema>;
|
|
28
|
-
//# sourceMappingURL=dpp.schemas.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dpp.schemas.d.ts","sourceRoot":"","sources":["../../src/shared/dpp.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,cAAc,oDAAwC,CAAC;AAEpE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;iBAM7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SharedDppDtoSchema = exports.DateTimeSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const environment_json_schema_1 = require("../aas/environment-json-schema");
|
|
6
|
-
exports.DateTimeSchema = zod_1.z.union([zod_1.z.iso.datetime(), zod_1.z.date()]);
|
|
7
|
-
exports.SharedDppDtoSchema = zod_1.z.object({
|
|
8
|
-
id: zod_1.z.string(),
|
|
9
|
-
organizationId: zod_1.z.string(),
|
|
10
|
-
environment: zod_1.z.union([environment_json_schema_1.EnvironmentJsonSchema, environment_json_schema_1.ExtendedEnvironmentJsonSchema]),
|
|
11
|
-
createdAt: exports.DateTimeSchema,
|
|
12
|
-
updatedAt: exports.DateTimeSchema,
|
|
13
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import {
|
|
3
|
-
EnvironmentJsonSchema,
|
|
4
|
-
ExtendedEnvironmentJsonSchema,
|
|
5
|
-
} from "../aas/environment-json-schema";
|
|
6
|
-
|
|
7
|
-
export const DateTimeSchema = z.union([z.iso.datetime(), z.date()]);
|
|
8
|
-
|
|
9
|
-
export const SharedDppDtoSchema = z.object({
|
|
10
|
-
id: z.string(),
|
|
11
|
-
organizationId: z.string(),
|
|
12
|
-
environment: z.union([EnvironmentJsonSchema, ExtendedEnvironmentJsonSchema]),
|
|
13
|
-
createdAt: DateTimeSchema,
|
|
14
|
-
updatedAt: DateTimeSchema,
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
export type SharedDppDto = z.infer<typeof SharedDppDtoSchema>;
|