@tiangong-lca/tidas-sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +0 -0
- package/dist/core/base/TidasEntity.d.ts +97 -0
- package/dist/core/base/TidasEntity.d.ts.map +1 -0
- package/dist/core/base/TidasEntity.js +241 -0
- package/dist/core/base/TidasEntity.js.map +1 -0
- package/dist/core/config/GlobalConfig.d.ts +60 -0
- package/dist/core/config/GlobalConfig.d.ts.map +1 -0
- package/dist/core/config/GlobalConfig.js +110 -0
- package/dist/core/config/GlobalConfig.js.map +1 -0
- package/dist/core/config/ValidationConfig.d.ts +70 -0
- package/dist/core/config/ValidationConfig.d.ts.map +1 -0
- package/dist/core/config/ValidationConfig.js +159 -0
- package/dist/core/config/ValidationConfig.js.map +1 -0
- package/dist/core/entities/TidasContact.d.ts +14 -0
- package/dist/core/entities/TidasContact.d.ts.map +1 -0
- package/dist/core/entities/TidasContact.js +87 -0
- package/dist/core/entities/TidasContact.js.map +1 -0
- package/dist/core/entities/TidasFlow.d.ts +14 -0
- package/dist/core/entities/TidasFlow.d.ts.map +1 -0
- package/dist/core/entities/TidasFlow.js +105 -0
- package/dist/core/entities/TidasFlow.js.map +1 -0
- package/dist/core/entities/TidasFlowProperty.d.ts +14 -0
- package/dist/core/entities/TidasFlowProperty.d.ts.map +1 -0
- package/dist/core/entities/TidasFlowProperty.js +111 -0
- package/dist/core/entities/TidasFlowProperty.js.map +1 -0
- package/dist/core/entities/TidasLCIAMethod.d.ts +14 -0
- package/dist/core/entities/TidasLCIAMethod.d.ts.map +1 -0
- package/dist/core/entities/TidasLCIAMethod.js +125 -0
- package/dist/core/entities/TidasLCIAMethod.js.map +1 -0
- package/dist/core/entities/TidasLifeCycleModel.d.ts +14 -0
- package/dist/core/entities/TidasLifeCycleModel.d.ts.map +1 -0
- package/dist/core/entities/TidasLifeCycleModel.js +117 -0
- package/dist/core/entities/TidasLifeCycleModel.js.map +1 -0
- package/dist/core/entities/TidasProcess.d.ts +14 -0
- package/dist/core/entities/TidasProcess.d.ts.map +1 -0
- package/dist/core/entities/TidasProcess.js +129 -0
- package/dist/core/entities/TidasProcess.js.map +1 -0
- package/dist/core/entities/TidasSource.d.ts +14 -0
- package/dist/core/entities/TidasSource.d.ts.map +1 -0
- package/dist/core/entities/TidasSource.js +101 -0
- package/dist/core/entities/TidasSource.js.map +1 -0
- package/dist/core/entities/TidasUnitGroup.d.ts +14 -0
- package/dist/core/entities/TidasUnitGroup.d.ts.map +1 -0
- package/dist/core/entities/TidasUnitGroup.js +121 -0
- package/dist/core/entities/TidasUnitGroup.js.map +1 -0
- package/dist/core/factories/index.d.ts +49 -0
- package/dist/core/factories/index.d.ts.map +1 -0
- package/dist/core/factories/index.js +171 -0
- package/dist/core/factories/index.js.map +1 -0
- package/dist/core/index.d.ts +11 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +47 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/zod-factories.d.ts +71 -0
- package/dist/core/zod-factories.d.ts.map +1 -0
- package/dist/core/zod-factories.js +169 -0
- package/dist/core/zod-factories.js.map +1 -0
- package/dist/core/zod-proxy.d.ts +108 -0
- package/dist/core/zod-proxy.d.ts.map +1 -0
- package/dist/core/zod-proxy.js +382 -0
- package/dist/core/zod-proxy.js.map +1 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +64 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/index.d.ts +48 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +111 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/tidas_contacts.schema.d.ts +2340 -0
- package/dist/schemas/tidas_contacts.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_contacts.schema.js +75 -0
- package/dist/schemas/tidas_contacts.schema.js.map +1 -0
- package/dist/schemas/tidas_contacts_category.schema.d.ts +3 -0
- package/dist/schemas/tidas_contacts_category.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_contacts_category.schema.js +53 -0
- package/dist/schemas/tidas_contacts_category.schema.js.map +1 -0
- package/dist/schemas/tidas_data_types.schema.d.ts +172 -0
- package/dist/schemas/tidas_data_types.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_data_types.schema.js +74 -0
- package/dist/schemas/tidas_data_types.schema.js.map +1 -0
- package/dist/schemas/tidas_flowproperties.schema.d.ts +2505 -0
- package/dist/schemas/tidas_flowproperties.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_flowproperties.schema.js +78 -0
- package/dist/schemas/tidas_flowproperties.schema.js.map +1 -0
- package/dist/schemas/tidas_flowproperties_category.schema.d.ts +3 -0
- package/dist/schemas/tidas_flowproperties_category.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_flowproperties_category.schema.js +28 -0
- package/dist/schemas/tidas_flowproperties_category.schema.js.map +1 -0
- package/dist/schemas/tidas_flows.schema.d.ts +3366 -0
- package/dist/schemas/tidas_flows.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_flows.schema.js +125 -0
- package/dist/schemas/tidas_flows.schema.js.map +1 -0
- package/dist/schemas/tidas_flows_elementary_category.schema.d.ts +3 -0
- package/dist/schemas/tidas_flows_elementary_category.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_flows_elementary_category.schema.js +309 -0
- package/dist/schemas/tidas_flows_elementary_category.schema.js.map +1 -0
- package/dist/schemas/tidas_flows_product_category.schema.d.ts +3 -0
- package/dist/schemas/tidas_flows_product_category.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_flows_product_category.schema.js +28508 -0
- package/dist/schemas/tidas_flows_product_category.schema.js.map +1 -0
- package/dist/schemas/tidas_lciamethods.schema.d.ts +11025 -0
- package/dist/schemas/tidas_lciamethods.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_lciamethods.schema.js +439 -0
- package/dist/schemas/tidas_lciamethods.schema.js.map +1 -0
- package/dist/schemas/tidas_lciamethods_category.schema.d.ts +3 -0
- package/dist/schemas/tidas_lciamethods_category.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_lciamethods_category.schema.js +278 -0
- package/dist/schemas/tidas_lciamethods_category.schema.js.map +1 -0
- package/dist/schemas/tidas_lifecyclemodels.schema.d.ts +9362 -0
- package/dist/schemas/tidas_lifecyclemodels.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_lifecyclemodels.schema.js +384 -0
- package/dist/schemas/tidas_lifecyclemodels.schema.js.map +1 -0
- package/dist/schemas/tidas_locations_category.schema.d.ts +3 -0
- package/dist/schemas/tidas_locations_category.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_locations_category.schema.js +655 -0
- package/dist/schemas/tidas_locations_category.schema.js.map +1 -0
- package/dist/schemas/tidas_processes.schema.d.ts +12861 -0
- package/dist/schemas/tidas_processes.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_processes.schema.js +547 -0
- package/dist/schemas/tidas_processes.schema.js.map +1 -0
- package/dist/schemas/tidas_processes_category.schema.d.ts +3 -0
- package/dist/schemas/tidas_processes_category.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_processes_category.schema.js +4480 -0
- package/dist/schemas/tidas_processes_category.schema.js.map +1 -0
- package/dist/schemas/tidas_sources.schema.d.ts +2007 -0
- package/dist/schemas/tidas_sources.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_sources.schema.js +73 -0
- package/dist/schemas/tidas_sources.schema.js.map +1 -0
- package/dist/schemas/tidas_sources_category.schema.d.ts +3 -0
- package/dist/schemas/tidas_sources_category.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_sources_category.schema.js +43 -0
- package/dist/schemas/tidas_sources_category.schema.js.map +1 -0
- package/dist/schemas/tidas_unitgroups.schema.d.ts +2088 -0
- package/dist/schemas/tidas_unitgroups.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_unitgroups.schema.js +92 -0
- package/dist/schemas/tidas_unitgroups.schema.js.map +1 -0
- package/dist/schemas/tidas_unitgroups_category.schema.d.ts +3 -0
- package/dist/schemas/tidas_unitgroups_category.schema.d.ts.map +1 -0
- package/dist/schemas/tidas_unitgroups_category.schema.js +28 -0
- package/dist/schemas/tidas_unitgroups_category.schema.js.map +1 -0
- package/dist/types/index.d.ts +21 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +6 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/tidas_contacts.d.ts +72 -0
- package/dist/types/tidas_contacts.d.ts.map +1 -0
- package/dist/types/tidas_contacts.js +8 -0
- package/dist/types/tidas_contacts.js.map +1 -0
- package/dist/types/tidas_contacts_category.d.ts +43 -0
- package/dist/types/tidas_contacts_category.d.ts.map +1 -0
- package/dist/types/tidas_contacts_category.js +8 -0
- package/dist/types/tidas_contacts_category.js.map +1 -0
- package/dist/types/tidas_data_types.d.ts +145 -0
- package/dist/types/tidas_data_types.d.ts.map +1 -0
- package/dist/types/tidas_data_types.js +8 -0
- package/dist/types/tidas_data_types.js.map +1 -0
- package/dist/types/tidas_flowproperties.d.ts +70 -0
- package/dist/types/tidas_flowproperties.d.ts.map +1 -0
- package/dist/types/tidas_flowproperties.js +8 -0
- package/dist/types/tidas_flowproperties.js.map +1 -0
- package/dist/types/tidas_flowproperties_category.d.ts +23 -0
- package/dist/types/tidas_flowproperties_category.d.ts.map +1 -0
- package/dist/types/tidas_flowproperties_category.js +8 -0
- package/dist/types/tidas_flowproperties_category.js.map +1 -0
- package/dist/types/tidas_flows.d.ts +98 -0
- package/dist/types/tidas_flows.d.ts.map +1 -0
- package/dist/types/tidas_flows.js +8 -0
- package/dist/types/tidas_flows.js.map +1 -0
- package/dist/types/tidas_flows_elementary_category.d.ts +227 -0
- package/dist/types/tidas_flows_elementary_category.d.ts.map +1 -0
- package/dist/types/tidas_flows_elementary_category.js +8 -0
- package/dist/types/tidas_flows_elementary_category.js.map +1 -0
- package/dist/types/tidas_flows_product_category.d.ts +18391 -0
- package/dist/types/tidas_flows_product_category.d.ts.map +1 -0
- package/dist/types/tidas_flows_product_category.js +8 -0
- package/dist/types/tidas_flows_product_category.js.map +1 -0
- package/dist/types/tidas_lciamethods.d.ts +218 -0
- package/dist/types/tidas_lciamethods.d.ts.map +1 -0
- package/dist/types/tidas_lciamethods.js +8 -0
- package/dist/types/tidas_lciamethods.js.map +1 -0
- package/dist/types/tidas_lciamethods_category.d.ts +215 -0
- package/dist/types/tidas_lciamethods_category.d.ts.map +1 -0
- package/dist/types/tidas_lciamethods_category.js +8 -0
- package/dist/types/tidas_lciamethods_category.js.map +1 -0
- package/dist/types/tidas_lifecyclemodels.d.ts +250 -0
- package/dist/types/tidas_lifecyclemodels.d.ts.map +1 -0
- package/dist/types/tidas_lifecyclemodels.js +8 -0
- package/dist/types/tidas_lifecyclemodels.js.map +1 -0
- package/dist/types/tidas_locations_category.d.ts +7 -0
- package/dist/types/tidas_locations_category.d.ts.map +1 -0
- package/dist/types/tidas_locations_category.js +8 -0
- package/dist/types/tidas_locations_category.js.map +1 -0
- package/dist/types/tidas_processes.d.ts +278 -0
- package/dist/types/tidas_processes.d.ts.map +1 -0
- package/dist/types/tidas_processes.js +8 -0
- package/dist/types/tidas_processes.js.map +1 -0
- package/dist/types/tidas_processes_category.d.ts +3071 -0
- package/dist/types/tidas_processes_category.d.ts.map +1 -0
- package/dist/types/tidas_processes_category.js +8 -0
- package/dist/types/tidas_processes_category.js.map +1 -0
- package/dist/types/tidas_sources.d.ts +58 -0
- package/dist/types/tidas_sources.d.ts.map +1 -0
- package/dist/types/tidas_sources.js +8 -0
- package/dist/types/tidas_sources.js.map +1 -0
- package/dist/types/tidas_sources_category.d.ts +35 -0
- package/dist/types/tidas_sources_category.d.ts.map +1 -0
- package/dist/types/tidas_sources_category.js +8 -0
- package/dist/types/tidas_sources_category.js.map +1 -0
- package/dist/types/tidas_unitgroups.d.ts +81 -0
- package/dist/types/tidas_unitgroups.d.ts.map +1 -0
- package/dist/types/tidas_unitgroups.js +8 -0
- package/dist/types/tidas_unitgroups.js.map +1 -0
- package/dist/types/tidas_unitgroups_category.d.ts +23 -0
- package/dist/types/tidas_unitgroups_category.d.ts.map +1 -0
- package/dist/types/tidas_unitgroups_category.js +8 -0
- package/dist/types/tidas_unitgroups_category.js.map +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +31 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/object-utils.d.ts +29 -0
- package/dist/utils/object-utils.d.ts.map +1 -0
- package/dist/utils/object-utils.js +156 -0
- package/dist/utils/object-utils.js.map +1 -0
- package/package.json +90 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tidas_contacts.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/tidas_contacts.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsEzB,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContactsSchema = void 0;
|
|
4
|
+
// Generated by ts-to-zod
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const tidas_data_types_schema_1 = require("./tidas_data_types.schema");
|
|
7
|
+
exports.ContactsSchema = zod_1.z.object({
|
|
8
|
+
contactDataSet: zod_1.z.object({
|
|
9
|
+
'@xmlns': zod_1.z.literal('http://lca.jrc.it/ILCD/Contact'),
|
|
10
|
+
'@xmlns:common': zod_1.z.literal('http://lca.jrc.it/ILCD/Common'),
|
|
11
|
+
'@xmlns:xsi': zod_1.z.literal('http://www.w3.org/2001/XMLSchema-instance'),
|
|
12
|
+
'@version': zod_1.z.literal('1.1'),
|
|
13
|
+
'@xsi:schemaLocation': zod_1.z.literal('http://lca.jrc.it/ILCD/Contact ../../schemas/ILCD_ContactDataSet.xsd'),
|
|
14
|
+
contactInformation: zod_1.z.object({
|
|
15
|
+
dataSetInformation: zod_1.z.object({
|
|
16
|
+
'common:UUID': tidas_data_types_schema_1.UUIDSchema,
|
|
17
|
+
'common:shortName': tidas_data_types_schema_1.StringMultiLangSchema,
|
|
18
|
+
'common:name': tidas_data_types_schema_1.StringMultiLangSchema,
|
|
19
|
+
classificationInformation: zod_1.z.object({
|
|
20
|
+
'common:classification': zod_1.z.object({
|
|
21
|
+
'common:class': zod_1.z.union([
|
|
22
|
+
zod_1.z.tuple([
|
|
23
|
+
zod_1.z.object({
|
|
24
|
+
'@level': tidas_data_types_schema_1.LevelTypeSchema,
|
|
25
|
+
'@classId': zod_1.z.string(),
|
|
26
|
+
'#text': zod_1.z.string(),
|
|
27
|
+
}),
|
|
28
|
+
zod_1.z.object({
|
|
29
|
+
'@level': tidas_data_types_schema_1.LevelTypeSchema,
|
|
30
|
+
'@classId': zod_1.z.string(),
|
|
31
|
+
'#text': zod_1.z.string(),
|
|
32
|
+
}),
|
|
33
|
+
]),
|
|
34
|
+
zod_1.z.object({
|
|
35
|
+
'@level': tidas_data_types_schema_1.LevelTypeSchema,
|
|
36
|
+
'@classId': zod_1.z.string(),
|
|
37
|
+
'#text': zod_1.z.string(),
|
|
38
|
+
}),
|
|
39
|
+
]),
|
|
40
|
+
}),
|
|
41
|
+
'common:other': zod_1.z.string().optional(),
|
|
42
|
+
}),
|
|
43
|
+
contactAddress: tidas_data_types_schema_1.STMultiLangSchema.optional(),
|
|
44
|
+
email: tidas_data_types_schema_1.StringSchema.optional(),
|
|
45
|
+
telephone: tidas_data_types_schema_1.StringSchema.optional(),
|
|
46
|
+
telefax: tidas_data_types_schema_1.StringSchema.optional(),
|
|
47
|
+
WWWAddress: tidas_data_types_schema_1.STSchema.optional(),
|
|
48
|
+
centralContactPoint: tidas_data_types_schema_1.STMultiLangSchema.optional(),
|
|
49
|
+
contactDescriptionOrComment: tidas_data_types_schema_1.STMultiLangSchema.optional(),
|
|
50
|
+
referenceToContact: tidas_data_types_schema_1.GlobalReferenceTypeSchema.optional(),
|
|
51
|
+
referenceToLogo: tidas_data_types_schema_1.GlobalReferenceTypeSchema.optional(),
|
|
52
|
+
'common:other': zod_1.z.string().optional(),
|
|
53
|
+
}),
|
|
54
|
+
'common:other': zod_1.z.string().optional(),
|
|
55
|
+
}),
|
|
56
|
+
administrativeInformation: zod_1.z.object({
|
|
57
|
+
dataEntryBy: zod_1.z.object({
|
|
58
|
+
'common:timeStamp': tidas_data_types_schema_1.dateTimeSchema,
|
|
59
|
+
'common:referenceToDataSetFormat': tidas_data_types_schema_1.GlobalReferenceTypeSchema,
|
|
60
|
+
'common:other': zod_1.z.string().optional(),
|
|
61
|
+
}),
|
|
62
|
+
publicationAndOwnership: zod_1.z.object({
|
|
63
|
+
'common:dataSetVersion': zod_1.z.string(),
|
|
64
|
+
referenceToPrecedingDataSetVersion: tidas_data_types_schema_1.GlobalReferenceTypeSchema.optional(),
|
|
65
|
+
'common:permanentDataSetURI': zod_1.z.string().optional(),
|
|
66
|
+
'common:referenceToOwnershipOfDataSet': tidas_data_types_schema_1.GlobalReferenceTypeSchema,
|
|
67
|
+
'common:other': zod_1.z.string().optional(),
|
|
68
|
+
}),
|
|
69
|
+
'common:other': zod_1.z.string().optional(),
|
|
70
|
+
}),
|
|
71
|
+
'common:other': zod_1.z.string().optional(),
|
|
72
|
+
}),
|
|
73
|
+
'common:other': zod_1.z.string().optional(),
|
|
74
|
+
});
|
|
75
|
+
//# sourceMappingURL=tidas_contacts.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tidas_contacts.schema.js","sourceRoot":"","sources":["../../src/schemas/tidas_contacts.schema.ts"],"names":[],"mappings":";;;AAAA,yBAAyB;AACzB,6BAAwB;AAExB,uEASmC;AAEtB,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,cAAc,EAAE,OAAC,CAAC,MAAM,CAAC;QACvB,QAAQ,EAAE,OAAC,CAAC,OAAO,CAAC,gCAAgC,CAAC;QACrD,eAAe,EAAE,OAAC,CAAC,OAAO,CAAC,+BAA+B,CAAC;QAC3D,YAAY,EAAE,OAAC,CAAC,OAAO,CAAC,2CAA2C,CAAC;QACpE,UAAU,EAAE,OAAC,CAAC,OAAO,CAAC,KAAK,CAAC;QAC5B,qBAAqB,EAAE,OAAC,CAAC,OAAO,CAC9B,sEAAsE,CACvE;QACD,kBAAkB,EAAE,OAAC,CAAC,MAAM,CAAC;YAC3B,kBAAkB,EAAE,OAAC,CAAC,MAAM,CAAC;gBAC3B,aAAa,EAAE,oCAAU;gBACzB,kBAAkB,EAAE,+CAAqB;gBACzC,aAAa,EAAE,+CAAqB;gBACpC,yBAAyB,EAAE,OAAC,CAAC,MAAM,CAAC;oBAClC,uBAAuB,EAAE,OAAC,CAAC,MAAM,CAAC;wBAChC,cAAc,EAAE,OAAC,CAAC,KAAK,CAAC;4BACtB,OAAC,CAAC,KAAK,CAAC;gCACN,OAAC,CAAC,MAAM,CAAC;oCACP,QAAQ,EAAE,yCAAe;oCACzB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;oCACtB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;iCACpB,CAAC;gCACF,OAAC,CAAC,MAAM,CAAC;oCACP,QAAQ,EAAE,yCAAe;oCACzB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;oCACtB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;iCACpB,CAAC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AC,MAAM,EAAE,CAAC,QAAQ,EAAE;gBACnD,sCAAsC,EAAE,mDAAyB;gBACjE,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;aACtC,CAAC;YACF,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SACtC,CAAC;QACF,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACtC,CAAC;IACF,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tidas_contacts_category.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/tidas_contacts_category.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CA8ChD,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContactsCategorySchema = void 0;
|
|
4
|
+
// Generated by ts-to-zod
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
exports.ContactsCategorySchema = zod_1.z.union([
|
|
7
|
+
zod_1.z.object({
|
|
8
|
+
'@level': zod_1.z.literal('0').optional(),
|
|
9
|
+
'@classId': zod_1.z.literal('1').optional(),
|
|
10
|
+
'#text': zod_1.z.literal('Group of organisations, project').optional(),
|
|
11
|
+
}),
|
|
12
|
+
zod_1.z.object({
|
|
13
|
+
'@level': zod_1.z.literal('0').optional(),
|
|
14
|
+
'@classId': zod_1.z.literal('2').optional(),
|
|
15
|
+
'#text': zod_1.z.literal('Organisations').optional(),
|
|
16
|
+
}),
|
|
17
|
+
zod_1.z.object({
|
|
18
|
+
'@level': zod_1.z.literal('1').optional(),
|
|
19
|
+
'@classId': zod_1.z.literal('2.1').optional(),
|
|
20
|
+
'#text': zod_1.z.literal('Private companies').optional(),
|
|
21
|
+
}),
|
|
22
|
+
zod_1.z.object({
|
|
23
|
+
'@level': zod_1.z.literal('1').optional(),
|
|
24
|
+
'@classId': zod_1.z.literal('2.2').optional(),
|
|
25
|
+
'#text': zod_1.z.literal('Governmental organisations').optional(),
|
|
26
|
+
}),
|
|
27
|
+
zod_1.z.object({
|
|
28
|
+
'@level': zod_1.z.literal('1').optional(),
|
|
29
|
+
'@classId': zod_1.z.literal('2.3').optional(),
|
|
30
|
+
'#text': zod_1.z.literal('Non-governmental organisations').optional(),
|
|
31
|
+
}),
|
|
32
|
+
zod_1.z.object({
|
|
33
|
+
'@level': zod_1.z.literal('1').optional(),
|
|
34
|
+
'@classId': zod_1.z.literal('2.4').optional(),
|
|
35
|
+
'#text': zod_1.z.literal('Other organisations').optional(),
|
|
36
|
+
}),
|
|
37
|
+
zod_1.z.object({
|
|
38
|
+
'@level': zod_1.z.literal('0').optional(),
|
|
39
|
+
'@classId': zod_1.z.literal('3').optional(),
|
|
40
|
+
'#text': zod_1.z.literal('Working groups within organisation').optional(),
|
|
41
|
+
}),
|
|
42
|
+
zod_1.z.object({
|
|
43
|
+
'@level': zod_1.z.literal('0').optional(),
|
|
44
|
+
'@classId': zod_1.z.literal('4').optional(),
|
|
45
|
+
'#text': zod_1.z.literal('Persons').optional(),
|
|
46
|
+
}),
|
|
47
|
+
zod_1.z.object({
|
|
48
|
+
'@level': zod_1.z.literal('0').optional(),
|
|
49
|
+
'@classId': zod_1.z.literal('5').optional(),
|
|
50
|
+
'#text': zod_1.z.literal('Other').optional(),
|
|
51
|
+
}),
|
|
52
|
+
]);
|
|
53
|
+
//# sourceMappingURL=tidas_contacts_category.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tidas_contacts_category.schema.js","sourceRoot":"","sources":["../../src/schemas/tidas_contacts_category.schema.ts"],"names":[],"mappings":";;;AAA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
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const CASNumberSchema: z.ZodString;
|
|
3
|
+
export declare const FTSchema: z.ZodString;
|
|
4
|
+
export declare const StringMultiLangSchema: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
5
|
+
'@xml:lang': z.ZodString;
|
|
6
|
+
'#text': z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
'@xml:lang': string;
|
|
9
|
+
'#text': string;
|
|
10
|
+
}, {
|
|
11
|
+
'@xml:lang': string;
|
|
12
|
+
'#text': string;
|
|
13
|
+
}>, "many">, z.ZodObject<{
|
|
14
|
+
'@xml:lang': z.ZodString;
|
|
15
|
+
'#text': z.ZodString;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
'@xml:lang': string;
|
|
18
|
+
'#text': string;
|
|
19
|
+
}, {
|
|
20
|
+
'@xml:lang': string;
|
|
21
|
+
'#text': string;
|
|
22
|
+
}>]>;
|
|
23
|
+
export declare const Int1Schema: z.ZodString;
|
|
24
|
+
export declare const Int5Schema: z.ZodString;
|
|
25
|
+
export declare const Int6Schema: z.ZodString;
|
|
26
|
+
export declare const LevelTypeSchema: z.ZodString;
|
|
27
|
+
export declare const PercSchema: z.ZodString;
|
|
28
|
+
export declare const MatRSchema: z.ZodString;
|
|
29
|
+
export declare const MatVSchema: z.ZodString;
|
|
30
|
+
export declare const RealSchema: z.ZodString;
|
|
31
|
+
export declare const STSchema: z.ZodString;
|
|
32
|
+
export declare const StringSchema: z.ZodString;
|
|
33
|
+
export declare const STMultiLangSchema: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
34
|
+
'@xml:lang': z.ZodString;
|
|
35
|
+
'#text': z.ZodString;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
'@xml:lang': string;
|
|
38
|
+
'#text': string;
|
|
39
|
+
}, {
|
|
40
|
+
'@xml:lang': string;
|
|
41
|
+
'#text': string;
|
|
42
|
+
}>, "many">, z.ZodObject<{
|
|
43
|
+
'@xml:lang': z.ZodString;
|
|
44
|
+
'#text': z.ZodString;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
'@xml:lang': string;
|
|
47
|
+
'#text': string;
|
|
48
|
+
}, {
|
|
49
|
+
'@xml:lang': string;
|
|
50
|
+
'#text': string;
|
|
51
|
+
}>]>;
|
|
52
|
+
export declare const FTMultiLangSchema: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
53
|
+
'@xml:lang': z.ZodString;
|
|
54
|
+
'#text': z.ZodString;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
'@xml:lang': string;
|
|
57
|
+
'#text': string;
|
|
58
|
+
}, {
|
|
59
|
+
'@xml:lang': string;
|
|
60
|
+
'#text': string;
|
|
61
|
+
}>, "many">, z.ZodObject<{
|
|
62
|
+
'@xml:lang': z.ZodString;
|
|
63
|
+
'#text': z.ZodString;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
'@xml:lang': string;
|
|
66
|
+
'#text': string;
|
|
67
|
+
}, {
|
|
68
|
+
'@xml:lang': string;
|
|
69
|
+
'#text': string;
|
|
70
|
+
}>]>;
|
|
71
|
+
export declare const GlobalReferenceTypeSchema: z.ZodUnion<[z.ZodObject<{
|
|
72
|
+
'@type': z.ZodString;
|
|
73
|
+
'@refObjectId': z.ZodString;
|
|
74
|
+
'@version': z.ZodString;
|
|
75
|
+
'@uri': z.ZodString;
|
|
76
|
+
'common:shortDescription': z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
77
|
+
'@xml:lang': z.ZodString;
|
|
78
|
+
'#text': z.ZodString;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
'@xml:lang': string;
|
|
81
|
+
'#text': string;
|
|
82
|
+
}, {
|
|
83
|
+
'@xml:lang': string;
|
|
84
|
+
'#text': string;
|
|
85
|
+
}>, "many">, z.ZodObject<{
|
|
86
|
+
'@xml:lang': z.ZodString;
|
|
87
|
+
'#text': z.ZodString;
|
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
'@xml:lang': string;
|
|
90
|
+
'#text': string;
|
|
91
|
+
}, {
|
|
92
|
+
'@xml:lang': string;
|
|
93
|
+
'#text': string;
|
|
94
|
+
}>]>;
|
|
95
|
+
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
'@type': string;
|
|
97
|
+
'@refObjectId': string;
|
|
98
|
+
'@version': string;
|
|
99
|
+
'@uri': string;
|
|
100
|
+
'common:shortDescription': {
|
|
101
|
+
'@xml:lang': string;
|
|
102
|
+
'#text': string;
|
|
103
|
+
}[] | {
|
|
104
|
+
'@xml:lang': string;
|
|
105
|
+
'#text': string;
|
|
106
|
+
};
|
|
107
|
+
}, {
|
|
108
|
+
'@type': string;
|
|
109
|
+
'@refObjectId': string;
|
|
110
|
+
'@version': string;
|
|
111
|
+
'@uri': string;
|
|
112
|
+
'common:shortDescription': {
|
|
113
|
+
'@xml:lang': string;
|
|
114
|
+
'#text': string;
|
|
115
|
+
}[] | {
|
|
116
|
+
'@xml:lang': string;
|
|
117
|
+
'#text': string;
|
|
118
|
+
};
|
|
119
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
120
|
+
'@type': z.ZodString;
|
|
121
|
+
'@refObjectId': z.ZodString;
|
|
122
|
+
'@version': z.ZodString;
|
|
123
|
+
'@uri': z.ZodString;
|
|
124
|
+
'common:shortDescription': z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
125
|
+
'@xml:lang': z.ZodString;
|
|
126
|
+
'#text': z.ZodString;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
'@xml:lang': string;
|
|
129
|
+
'#text': string;
|
|
130
|
+
}, {
|
|
131
|
+
'@xml:lang': string;
|
|
132
|
+
'#text': string;
|
|
133
|
+
}>, "many">, z.ZodObject<{
|
|
134
|
+
'@xml:lang': z.ZodString;
|
|
135
|
+
'#text': z.ZodString;
|
|
136
|
+
}, "strip", z.ZodTypeAny, {
|
|
137
|
+
'@xml:lang': string;
|
|
138
|
+
'#text': string;
|
|
139
|
+
}, {
|
|
140
|
+
'@xml:lang': string;
|
|
141
|
+
'#text': string;
|
|
142
|
+
}>]>;
|
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
|
144
|
+
'@type': string;
|
|
145
|
+
'@refObjectId': string;
|
|
146
|
+
'@version': string;
|
|
147
|
+
'@uri': string;
|
|
148
|
+
'common:shortDescription': {
|
|
149
|
+
'@xml:lang': string;
|
|
150
|
+
'#text': string;
|
|
151
|
+
}[] | {
|
|
152
|
+
'@xml:lang': string;
|
|
153
|
+
'#text': string;
|
|
154
|
+
};
|
|
155
|
+
}, {
|
|
156
|
+
'@type': string;
|
|
157
|
+
'@refObjectId': string;
|
|
158
|
+
'@version': string;
|
|
159
|
+
'@uri': string;
|
|
160
|
+
'common:shortDescription': {
|
|
161
|
+
'@xml:lang': string;
|
|
162
|
+
'#text': string;
|
|
163
|
+
}[] | {
|
|
164
|
+
'@xml:lang': string;
|
|
165
|
+
'#text': string;
|
|
166
|
+
};
|
|
167
|
+
}>, "many">]>;
|
|
168
|
+
export declare const GISSchema: z.ZodString;
|
|
169
|
+
export declare const UUIDSchema: z.ZodString;
|
|
170
|
+
export declare const YearSchema: z.ZodNumber;
|
|
171
|
+
export declare const dateTimeSchema: z.ZodString;
|
|
172
|
+
//# sourceMappingURL=tidas_data_types.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tidas_data_types.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/tidas_data_types.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe,aAAkD,CAAC;AAE/E,eAAO,MAAM,QAAQ,aAAa,CAAC;AAEnC,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;IAWhC,CAAC;AAEH,eAAO,MAAM,UAAU,aAA2B,CAAC;AAEnD,eAAO,MAAM,UAAU,aAA+B,CAAC;AAEvD,eAAO,MAAM,UAAU,aAAgC,CAAC;AAExD,eAAO,MAAM,eAAe,aAAa,CAAC;AAE1C,eAAO,MAAM,UAAU,aAA+B,CAAC;AAEvD,eAAO,MAAM,UAAU,aAAa,CAAC;AAErC,eAAO,MAAM,UAAU,aAAa,CAAC;AAErC,eAAO,MAAM,UAAU,aAE6B,CAAC;AAErD,eAAO,MAAM,QAAQ,aAAuB,CAAC;AAE7C,eAAO,MAAM,YAAY,aAA6B,CAAC;AAEvD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;IAW5B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;IAW5B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAiBpC,CAAC;AAEH,eAAO,MAAM,SAAS,aAInB,CAAC;AAEJ,eAAO,MAAM,UAAU,aAEmD,CAAC;AAE3E,eAAO,MAAM,UAAU,aAAiC,CAAC;AAEzD,eAAO,MAAM,cAAc,aAAwB,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dateTimeSchema = exports.YearSchema = exports.UUIDSchema = exports.GISSchema = exports.GlobalReferenceTypeSchema = exports.FTMultiLangSchema = exports.STMultiLangSchema = exports.StringSchema = exports.STSchema = exports.RealSchema = exports.MatVSchema = exports.MatRSchema = exports.PercSchema = exports.LevelTypeSchema = exports.Int6Schema = exports.Int5Schema = exports.Int1Schema = exports.StringMultiLangSchema = exports.FTSchema = exports.CASNumberSchema = void 0;
|
|
4
|
+
// Generated by ts-to-zod
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
exports.CASNumberSchema = zod_1.z.string().regex(/^[0-9]{2,7}-[0-9]{2}-[0-9]$/);
|
|
7
|
+
exports.FTSchema = zod_1.z.string();
|
|
8
|
+
exports.StringMultiLangSchema = zod_1.z.union([
|
|
9
|
+
zod_1.z.array(zod_1.z.object({
|
|
10
|
+
'@xml:lang': zod_1.z.string(),
|
|
11
|
+
'#text': zod_1.z.string().max(500),
|
|
12
|
+
})),
|
|
13
|
+
zod_1.z.object({
|
|
14
|
+
'@xml:lang': zod_1.z.string(),
|
|
15
|
+
'#text': zod_1.z.string().max(500),
|
|
16
|
+
}),
|
|
17
|
+
]);
|
|
18
|
+
exports.Int1Schema = zod_1.z.string().min(0).max(9);
|
|
19
|
+
exports.Int5Schema = zod_1.z.string().min(0).max(99999);
|
|
20
|
+
exports.Int6Schema = zod_1.z.string().min(0).max(999999);
|
|
21
|
+
exports.LevelTypeSchema = exports.Int1Schema;
|
|
22
|
+
exports.PercSchema = zod_1.z.string().regex(/^0\.\d+$/);
|
|
23
|
+
exports.MatRSchema = zod_1.z.string();
|
|
24
|
+
exports.MatVSchema = zod_1.z.string();
|
|
25
|
+
exports.RealSchema = zod_1.z
|
|
26
|
+
.string()
|
|
27
|
+
.regex(/[+-]?(\d+(\.\d*)?|\.\d+)([Ee][+-]?\d+)?$/);
|
|
28
|
+
exports.STSchema = zod_1.z.string().max(1000);
|
|
29
|
+
exports.StringSchema = zod_1.z.string().min(1).max(500);
|
|
30
|
+
exports.STMultiLangSchema = zod_1.z.union([
|
|
31
|
+
zod_1.z.array(zod_1.z.object({
|
|
32
|
+
'@xml:lang': zod_1.z.string(),
|
|
33
|
+
'#text': zod_1.z.string().max(1000),
|
|
34
|
+
})),
|
|
35
|
+
zod_1.z.object({
|
|
36
|
+
'@xml:lang': zod_1.z.string(),
|
|
37
|
+
'#text': zod_1.z.string().max(1000),
|
|
38
|
+
}),
|
|
39
|
+
]);
|
|
40
|
+
exports.FTMultiLangSchema = zod_1.z.union([
|
|
41
|
+
zod_1.z.array(zod_1.z.object({
|
|
42
|
+
'@xml:lang': zod_1.z.string(),
|
|
43
|
+
'#text': zod_1.z.string(),
|
|
44
|
+
})),
|
|
45
|
+
zod_1.z.object({
|
|
46
|
+
'@xml:lang': zod_1.z.string(),
|
|
47
|
+
'#text': zod_1.z.string(),
|
|
48
|
+
}),
|
|
49
|
+
]);
|
|
50
|
+
exports.GlobalReferenceTypeSchema = zod_1.z.union([
|
|
51
|
+
zod_1.z.object({
|
|
52
|
+
'@type': zod_1.z.string(),
|
|
53
|
+
'@refObjectId': zod_1.z.string(),
|
|
54
|
+
'@version': zod_1.z.string(),
|
|
55
|
+
'@uri': zod_1.z.string(),
|
|
56
|
+
'common:shortDescription': exports.STMultiLangSchema,
|
|
57
|
+
}),
|
|
58
|
+
zod_1.z.array(zod_1.z.object({
|
|
59
|
+
'@type': zod_1.z.string(),
|
|
60
|
+
'@refObjectId': zod_1.z.string(),
|
|
61
|
+
'@version': zod_1.z.string(),
|
|
62
|
+
'@uri': zod_1.z.string(),
|
|
63
|
+
'common:shortDescription': exports.STMultiLangSchema,
|
|
64
|
+
})),
|
|
65
|
+
]);
|
|
66
|
+
exports.GISSchema = zod_1.z
|
|
67
|
+
.string()
|
|
68
|
+
.regex(/^\s*[+-]?((90(\.0+)?)|([0-8]?\d(\.\d+)?))\s*;\s*[+-]?((180(\.0+)?)|((1[0-7]\d|[0-9]?\d)(\.\d+)?))\s*$/);
|
|
69
|
+
exports.UUIDSchema = zod_1.z
|
|
70
|
+
.string()
|
|
71
|
+
.regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/);
|
|
72
|
+
exports.YearSchema = zod_1.z.number().min(1000).max(9999);
|
|
73
|
+
exports.dateTimeSchema = zod_1.z.string().datetime();
|
|
74
|
+
//# sourceMappingURL=tidas_data_types.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file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