@carrot-foundation/schemas 0.1.20 → 0.1.21

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.
Files changed (36) hide show
  1. package/README.md +45 -0
  2. package/dist/index.cjs +1104 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +552 -0
  5. package/dist/index.d.ts +552 -2
  6. package/dist/index.js +1100 -1
  7. package/dist/index.js.map +1 -0
  8. package/package.json +6 -4
  9. package/dist/index.d.ts.map +0 -1
  10. package/dist/mass-id/index.d.ts +0 -3
  11. package/dist/mass-id/index.d.ts.map +0 -1
  12. package/dist/mass-id/index.js +0 -2
  13. package/dist/mass-id/mass-id.data.schema.d.ts +0 -256
  14. package/dist/mass-id/mass-id.data.schema.d.ts.map +0 -1
  15. package/dist/mass-id/mass-id.data.schema.js +0 -348
  16. package/dist/mass-id/mass-id.schema.d.ts +0 -297
  17. package/dist/mass-id/mass-id.schema.d.ts.map +0 -1
  18. package/dist/mass-id/mass-id.schema.js +0 -163
  19. package/dist/shared/base.schema.d.ts +0 -111
  20. package/dist/shared/base.schema.d.ts.map +0 -1
  21. package/dist/shared/base.schema.js +0 -127
  22. package/dist/shared/definitions.schema.d.ts +0 -96
  23. package/dist/shared/definitions.schema.d.ts.map +0 -1
  24. package/dist/shared/definitions.schema.js +0 -283
  25. package/dist/shared/entities/location.schema.d.ts +0 -55
  26. package/dist/shared/entities/location.schema.d.ts.map +0 -1
  27. package/dist/shared/entities/location.schema.js +0 -68
  28. package/dist/shared/entities/participant.schema.d.ts +0 -8
  29. package/dist/shared/entities/participant.schema.d.ts.map +0 -1
  30. package/dist/shared/entities/participant.schema.js +0 -24
  31. package/dist/shared/helpers.schema.d.ts +0 -4
  32. package/dist/shared/helpers.schema.d.ts.map +0 -1
  33. package/dist/shared/helpers.schema.js +0 -16
  34. package/dist/shared/nft.schema.d.ts +0 -116
  35. package/dist/shared/nft.schema.d.ts.map +0 -1
  36. package/dist/shared/nft.schema.js +0 -193
@@ -1,163 +0,0 @@
1
- import { z } from 'zod';
2
- import { NftIpfsSchema } from '../shared/nft.schema.js';
3
- import { MassIDDataSchema } from './mass-id.data.schema.js';
4
- import { WasteTypeSchema, WasteSubtypeSchema, WeightKgSchema, } from '../shared/definitions.schema.js';
5
- const AttributeWasteTypeSchema = z
6
- .strictObject({
7
- trait_type: z.literal('Waste Type'),
8
- value: WasteTypeSchema,
9
- })
10
- .meta({
11
- title: 'Waste Type Attribute',
12
- description: 'Waste type attribute',
13
- });
14
- const AttributeWasteSubtypeSchema = z
15
- .strictObject({
16
- trait_type: z.literal('Waste Subtype'),
17
- value: WasteSubtypeSchema,
18
- })
19
- .meta({
20
- title: 'Waste Subtype Attribute',
21
- description: 'Waste subtype attribute',
22
- });
23
- const AttributeWeightSchema = z
24
- .strictObject({
25
- trait_type: z.literal('Weight (kg)'),
26
- value: WeightKgSchema,
27
- display_type: z.literal('number'),
28
- })
29
- .meta({
30
- title: 'Weight Attribute',
31
- description: 'Weight attribute with numeric display',
32
- });
33
- const AttributeOriginCountrySchema = z
34
- .strictObject({
35
- trait_type: z.literal('Origin Country'),
36
- value: z.string().max(100).meta({
37
- title: 'Origin Country Value',
38
- description: 'Country where the waste was generated',
39
- }),
40
- })
41
- .meta({
42
- title: 'Origin Country Attribute',
43
- description: 'Origin country attribute',
44
- });
45
- const AttributeOriginMunicipalitySchema = z
46
- .strictObject({
47
- trait_type: z.literal('Origin Municipality'),
48
- value: z.string().max(100).meta({
49
- title: 'Origin Municipality Value',
50
- description: 'Municipality where the waste was generated',
51
- }),
52
- })
53
- .meta({
54
- title: 'Origin Municipality Attribute',
55
- description: 'Origin municipality attribute',
56
- });
57
- const AttributeOriginDivisionSchema = z
58
- .strictObject({
59
- trait_type: z.literal('Origin Administrative Division'),
60
- value: z.string().max(100).meta({
61
- title: 'Origin Division Value',
62
- description: 'Administrative division (state/province) where the waste was generated',
63
- }),
64
- })
65
- .meta({
66
- title: 'Origin Administrative Division Attribute',
67
- description: 'Origin administrative division attribute',
68
- });
69
- const AttributeRecyclerSchema = z
70
- .strictObject({
71
- trait_type: z.literal('Recycler'),
72
- value: z.string().max(100).meta({
73
- title: 'Recycler Value',
74
- description: 'Organization that processed the waste',
75
- }),
76
- })
77
- .meta({
78
- title: 'Recycler Attribute',
79
- description: 'Recycler attribute',
80
- });
81
- const AttributeIntegratorSchema = z
82
- .strictObject({
83
- trait_type: z.literal('Integrator'),
84
- value: z.string().max(100).meta({
85
- title: 'Integrator Value',
86
- description: 'Organization that integrated the waste into the Carrot network',
87
- }),
88
- })
89
- .meta({
90
- title: 'Integrator Attribute',
91
- description: 'Integrator attribute',
92
- });
93
- const AttributePickUpDateSchema = z
94
- .strictObject({
95
- trait_type: z.literal('Pick-up Date'),
96
- value: z
97
- .string()
98
- .regex(/^\d{4}-\d{2}-\d{2}$/, 'Must be a valid date in YYYY-MM-DD format')
99
- .meta({
100
- title: 'Pick-up Date Value',
101
- description: 'Date when the waste was picked up from the source',
102
- }),
103
- display_type: z.literal('date'),
104
- })
105
- .meta({
106
- title: 'Pick-up Date Attribute',
107
- description: 'Pick-up date attribute',
108
- });
109
- const AttributeRecyclingDateSchema = z
110
- .strictObject({
111
- trait_type: z.literal('Recycling Date'),
112
- value: z
113
- .string()
114
- .regex(/^\d{4}-\d{2}-\d{2}$/, 'Must be a valid date in YYYY-MM-DD format')
115
- .meta({
116
- title: 'Recycling Date Value',
117
- description: 'Date when the waste was recycled/processed',
118
- }),
119
- display_type: z.literal('date'),
120
- })
121
- .meta({
122
- title: 'Recycling Date Attribute',
123
- description: 'Recycling date attribute',
124
- });
125
- const MassIDAttributesSchema = z
126
- .tuple([
127
- AttributeWasteTypeSchema,
128
- AttributeWasteSubtypeSchema,
129
- AttributeWeightSchema,
130
- AttributeOriginCountrySchema,
131
- AttributeOriginMunicipalitySchema,
132
- AttributeOriginDivisionSchema,
133
- AttributeRecyclerSchema,
134
- AttributeIntegratorSchema,
135
- AttributePickUpDateSchema,
136
- AttributeRecyclingDateSchema,
137
- ])
138
- .meta({
139
- title: 'MassID Attributes',
140
- description: 'Fixed set of MassID NFT attributes in required order',
141
- });
142
- export const MassIDIpfsSchemaMeta = {
143
- title: 'MassID NFT IPFS Record',
144
- description: 'Complete MassID NFT IPFS record including fixed attributes and detailed waste tracking data',
145
- $id: 'https://raw.githubusercontent.com/carrot-foundation/schemas/refs/heads/main/schemas/ipfs/mass-id/mass-id.schema.json',
146
- version: '1.0.1',
147
- };
148
- export const MassIDIpfsSchema = NftIpfsSchema.safeExtend({
149
- schema: NftIpfsSchema.shape.schema.safeExtend({
150
- type: z.literal('MassID').meta({
151
- title: 'MassID Schema Type',
152
- description: 'MassID NFT schema type',
153
- }),
154
- }),
155
- attributes: MassIDAttributesSchema.meta({
156
- title: 'MassID NFT Attributes',
157
- description: 'Fixed set of MassID NFT attributes enforcing order and type for each trait',
158
- }).check(z.minLength(10), z.maxLength(10)),
159
- data: MassIDDataSchema.meta({
160
- title: 'MassID Data',
161
- description: 'MassID-specific data containing waste tracking and chain of custody information',
162
- }),
163
- }).meta(MassIDIpfsSchemaMeta);
@@ -1,111 +0,0 @@
1
- import { z } from 'zod';
2
- declare const SchemaInfoSchema: z.ZodObject<{
3
- hash: z.ZodCustomStringFormat<"sha256_hex">;
4
- type: z.ZodEnum<{
5
- MassID: "MassID";
6
- "MassID Audit": "MassID Audit";
7
- RecycledID: "RecycledID";
8
- GasID: "GasID";
9
- PurchaseID: "PurchaseID";
10
- Methodology: "Methodology";
11
- Credit: "Credit";
12
- Collection: "Collection";
13
- }>;
14
- version: z.ZodString;
15
- }, z.core.$strict>;
16
- export type SchemaInfo = z.infer<typeof SchemaInfoSchema>;
17
- declare const RecordCreatorSchema: z.ZodObject<{
18
- name: z.ZodString;
19
- id: z.ZodUUID;
20
- }, z.core.$strict>;
21
- export type RecordCreator = z.infer<typeof RecordCreatorSchema>;
22
- declare const RecordRelationshipSchema: z.ZodObject<{
23
- target_uri: z.ZodString;
24
- type: z.ZodEnum<{
25
- collection: "collection";
26
- credit: "credit";
27
- "gas-id": "gas-id";
28
- "mass-id": "mass-id";
29
- "mass-id-audit": "mass-id-audit";
30
- methodology: "methodology";
31
- "purchase-id": "purchase-id";
32
- "recycled-id": "recycled-id";
33
- }>;
34
- description: z.ZodOptional<z.ZodString>;
35
- }, z.core.$strict>;
36
- export type RecordRelationship = z.infer<typeof RecordRelationshipSchema>;
37
- export declare const RecordEnvironmentSchema: z.ZodObject<{
38
- blockchain_network: z.ZodEnum<{
39
- mainnet: "mainnet";
40
- testnet: "testnet";
41
- }>;
42
- deployment: z.ZodEnum<{
43
- production: "production";
44
- development: "development";
45
- testing: "testing";
46
- }>;
47
- data_set_name: z.ZodEnum<{
48
- TEST: "TEST";
49
- PROD: "PROD";
50
- }>;
51
- }, z.core.$strict>;
52
- export type RecordEnvironment = z.infer<typeof RecordEnvironmentSchema>;
53
- export declare const BaseIpfsSchema: z.ZodObject<{
54
- $schema: z.ZodURL;
55
- schema: z.ZodObject<{
56
- hash: z.ZodCustomStringFormat<"sha256_hex">;
57
- type: z.ZodEnum<{
58
- MassID: "MassID";
59
- "MassID Audit": "MassID Audit";
60
- RecycledID: "RecycledID";
61
- GasID: "GasID";
62
- PurchaseID: "PurchaseID";
63
- Methodology: "Methodology";
64
- Credit: "Credit";
65
- Collection: "Collection";
66
- }>;
67
- version: z.ZodString;
68
- }, z.core.$strict>;
69
- created_at: z.ZodISODateTime;
70
- external_id: z.ZodUUID;
71
- external_url: z.ZodURL;
72
- original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
73
- content_hash: z.ZodCustomStringFormat<"sha256_hex">;
74
- creator: z.ZodOptional<z.ZodObject<{
75
- name: z.ZodString;
76
- id: z.ZodUUID;
77
- }, z.core.$strict>>;
78
- relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
79
- target_uri: z.ZodString;
80
- type: z.ZodEnum<{
81
- collection: "collection";
82
- credit: "credit";
83
- "gas-id": "gas-id";
84
- "mass-id": "mass-id";
85
- "mass-id-audit": "mass-id-audit";
86
- methodology: "methodology";
87
- "purchase-id": "purchase-id";
88
- "recycled-id": "recycled-id";
89
- }>;
90
- description: z.ZodOptional<z.ZodString>;
91
- }, z.core.$strict>>>;
92
- environment: z.ZodOptional<z.ZodObject<{
93
- blockchain_network: z.ZodEnum<{
94
- mainnet: "mainnet";
95
- testnet: "testnet";
96
- }>;
97
- deployment: z.ZodEnum<{
98
- production: "production";
99
- development: "development";
100
- testing: "testing";
101
- }>;
102
- data_set_name: z.ZodEnum<{
103
- TEST: "TEST";
104
- PROD: "PROD";
105
- }>;
106
- }, z.core.$strict>>;
107
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
108
- }, z.core.$strict>;
109
- export type BaseIpfs = z.infer<typeof BaseIpfsSchema>;
110
- export {};
111
- //# sourceMappingURL=base.schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.schema.d.ts","sourceRoot":"","sources":["../../src/shared/base.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;kBAkBlB,CAAC;AAEL,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,QAAA,MAAM,mBAAmB;;;kBAerB,CAAC;AAEL,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;kBA4B1B,CAAC;AAEL,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;kBAkBhC,CAAC;AAEL,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA8CvB,CAAC;AAEL,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -1,127 +0,0 @@
1
- import { z } from 'zod';
2
- import { Keccak256HashSchema, SemanticVersionSchema, Sha256HashSchema, IsoTimestampSchema, ExternalIdSchema, ExternalUrlSchema, UuidSchema, RecordSchemaTypeSchema, IpfsUriSchema, RecordRelationshipTypeSchema, } from './definitions.schema.js';
3
- const SchemaInfoSchema = z
4
- .strictObject({
5
- hash: Keccak256HashSchema.meta({
6
- title: 'Schema Hash',
7
- description: 'Keccak256 hash of the JSON Schema this record was validated against',
8
- }),
9
- type: RecordSchemaTypeSchema.meta({
10
- title: 'Schema Type',
11
- description: 'Type/category of this schema',
12
- }),
13
- version: SemanticVersionSchema.meta({
14
- title: 'Schema Version',
15
- description: 'Version of the schema, using semantic versioning',
16
- }),
17
- })
18
- .meta({
19
- title: 'Schema Information',
20
- });
21
- const RecordCreatorSchema = z
22
- .strictObject({
23
- name: z.string().meta({
24
- title: 'Creator Name',
25
- description: 'Company or individual name that created this record',
26
- examples: ['Carrot Foundation', 'Alice', 'Bob'],
27
- }),
28
- id: UuidSchema.meta({
29
- title: 'Creator ID',
30
- description: 'Unique identifier for the creator',
31
- }),
32
- })
33
- .meta({
34
- title: 'Creator',
35
- description: 'Entity that created this record',
36
- });
37
- const RecordRelationshipSchema = z
38
- .strictObject({
39
- target_uri: IpfsUriSchema.meta({
40
- title: 'Target IPFS URI',
41
- description: 'Target IPFS URI of the referenced record',
42
- }),
43
- type: RecordRelationshipTypeSchema.meta({
44
- title: 'Relationship Type',
45
- description: 'Type of relationship to the referenced record',
46
- }),
47
- description: z
48
- .string()
49
- .optional()
50
- .meta({
51
- title: 'Relationship Description',
52
- description: 'Human-readable description of the relationship',
53
- examples: [
54
- 'This record supersedes the previous version',
55
- 'Related carbon credit batch',
56
- 'Source document for this verification',
57
- 'Child record derived from this parent',
58
- 'Updated version of original record',
59
- ],
60
- }),
61
- })
62
- .meta({
63
- title: 'Relationship',
64
- description: 'Relationship to another IPFS record',
65
- });
66
- export const RecordEnvironmentSchema = z
67
- .strictObject({
68
- blockchain_network: z.enum(['mainnet', 'testnet']).meta({
69
- title: 'Blockchain Network',
70
- description: 'Blockchain Network Environment',
71
- }),
72
- deployment: z.enum(['production', 'development', 'testing']).meta({
73
- title: 'Deployment Environment',
74
- description: 'System environment where this record was generated',
75
- }),
76
- data_set_name: z.enum(['TEST', 'PROD']).meta({
77
- title: 'Data Set Name',
78
- description: 'Name of the data set for this record',
79
- }),
80
- })
81
- .meta({
82
- title: 'Environment',
83
- description: 'Environment information',
84
- });
85
- export const BaseIpfsSchema = z
86
- .strictObject({
87
- $schema: z.url('Must be a valid URI').meta({
88
- title: 'JSON Schema URI',
89
- description: 'URI of the JSON Schema used to validate this record',
90
- example: 'https://raw.githubusercontent.com/carrot-foundation/schemas/refs/heads/main/schemas/ipfs/shared/base/base.schema.json',
91
- }),
92
- schema: SchemaInfoSchema,
93
- created_at: IsoTimestampSchema.meta({
94
- title: 'Created At',
95
- description: 'ISO 8601 creation timestamp for this record',
96
- }),
97
- external_id: ExternalIdSchema.meta({
98
- title: 'External ID',
99
- description: 'Off-chain reference ID (UUID from Carrot backend)',
100
- }),
101
- external_url: ExternalUrlSchema.meta({
102
- title: 'External URL',
103
- description: 'External URL of the content',
104
- }),
105
- original_content_hash: Sha256HashSchema.meta({
106
- title: 'Original Content Hash',
107
- description: 'SHA-256 hash of the original JSON content including private data before schema validation',
108
- }),
109
- content_hash: Sha256HashSchema.meta({
110
- title: 'Content Hash',
111
- description: 'SHA-256 hash of RFC 8785 canonicalized JSON after schema validation',
112
- }),
113
- creator: RecordCreatorSchema.optional(),
114
- relationships: z.array(RecordRelationshipSchema).optional().meta({
115
- title: 'Relationships',
116
- description: 'References to other IPFS records this record relates to',
117
- }),
118
- environment: RecordEnvironmentSchema.optional(),
119
- data: z.record(z.string(), z.unknown()).optional().meta({
120
- title: 'Custom Data',
121
- description: "Custom data block that includes the record's data",
122
- }),
123
- })
124
- .meta({
125
- title: 'Base IPFS Record',
126
- description: 'Base fields for all Carrot IPFS records, providing common structure for any JSON content stored in IPFS',
127
- });
@@ -1,96 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const UuidSchema: z.ZodUUID;
3
- export type Uuid = z.infer<typeof UuidSchema>;
4
- export declare const EthereumAddressSchema: z.ZodString;
5
- export type EthereumAddress = z.infer<typeof EthereumAddressSchema>;
6
- export declare const IsoTimestampSchema: z.ZodISODateTime;
7
- export type IsoTimestamp = z.infer<typeof IsoTimestampSchema>;
8
- export declare const IsoDateSchema: z.ZodISODate;
9
- export type IsoDate = z.infer<typeof IsoDateSchema>;
10
- export declare const IsoCountryCodeSchema: z.ZodString;
11
- export type IsoCountryCode = z.infer<typeof IsoCountryCodeSchema>;
12
- export declare const IsoAdministrativeDivisionCodeSchema: z.ZodString;
13
- export type IsoAdministrativeDivisionCode = z.infer<typeof IsoAdministrativeDivisionCodeSchema>;
14
- export declare const LatitudeSchema: z.ZodNumber;
15
- export type Latitude = z.infer<typeof LatitudeSchema>;
16
- export declare const LongitudeSchema: z.ZodNumber;
17
- export type Longitude = z.infer<typeof LongitudeSchema>;
18
- export declare const WeightKgSchema: z.ZodNumber;
19
- export type WeightKg = z.infer<typeof WeightKgSchema>;
20
- export declare const NonEmptyStringSchema: z.ZodString;
21
- export type NonEmptyString = z.infer<typeof NonEmptyStringSchema>;
22
- export declare const SlugSchema: z.ZodString;
23
- export type Slug = z.infer<typeof SlugSchema>;
24
- export declare const WasteTypeSchema: z.ZodString;
25
- export type WasteType = z.infer<typeof WasteTypeSchema>;
26
- export declare const WasteSubtypeSchema: z.ZodString;
27
- export type WasteSubtype = z.infer<typeof WasteSubtypeSchema>;
28
- export declare const ParticipantRoleSchema: z.ZodString;
29
- export type ParticipantRole = z.infer<typeof ParticipantRoleSchema>;
30
- export declare const ParticipantNameSchema: z.ZodString;
31
- export type ParticipantName = z.infer<typeof ParticipantNameSchema>;
32
- export declare const FacilityTypeSchema: z.ZodEnum<{
33
- "Waste Generation": "Waste Generation";
34
- "Collection Point": "Collection Point";
35
- "Transfer Station": "Transfer Station";
36
- "Sorting Facility": "Sorting Facility";
37
- "Composting Facility": "Composting Facility";
38
- "Recycling Facility": "Recycling Facility";
39
- "Processing Facility": "Processing Facility";
40
- "Disposal Facility": "Disposal Facility";
41
- "Administrative Office": "Administrative Office";
42
- }>;
43
- export type FacilityType = z.infer<typeof FacilityTypeSchema>;
44
- export declare const BlockchainChainIdSchema: z.ZodNumber;
45
- export type BlockchainChainId = z.infer<typeof BlockchainChainIdSchema>;
46
- export declare const PercentageSchema: z.ZodNumber;
47
- export type Percentage = z.infer<typeof PercentageSchema>;
48
- export declare const NonNegativeIntegerSchema: z.ZodNumber;
49
- export type NonNegativeInteger = z.infer<typeof NonNegativeIntegerSchema>;
50
- export declare const PositiveIntegerSchema: z.ZodNumber;
51
- export type PositiveInteger = z.infer<typeof PositiveIntegerSchema>;
52
- export declare const NonNegativeFloatSchema: z.ZodNumber;
53
- export type NonNegativeFloat = z.infer<typeof NonNegativeFloatSchema>;
54
- export declare const HoursSchema: z.ZodNumber;
55
- export type Hours = z.infer<typeof HoursSchema>;
56
- export declare const IpfsUriSchema: z.ZodString;
57
- export type IpfsUri = z.infer<typeof IpfsUriSchema>;
58
- export declare const SemanticVersionSchema: z.ZodString;
59
- export type SemanticVersion = z.infer<typeof SemanticVersionSchema>;
60
- export declare const TokenIdSchema: z.ZodString;
61
- export type TokenId = z.infer<typeof TokenIdSchema>;
62
- export declare const HexColorSchema: z.ZodString;
63
- export type HexColor = z.infer<typeof HexColorSchema>;
64
- export declare const Sha256HashSchema: z.ZodCustomStringFormat<"sha256_hex">;
65
- export type Sha256Hash = z.infer<typeof Sha256HashSchema>;
66
- export declare const Keccak256HashSchema: z.ZodCustomStringFormat<"sha256_hex">;
67
- export type Keccak256Hash = z.infer<typeof Keccak256HashSchema>;
68
- export declare const ExternalIdSchema: z.ZodUUID;
69
- export type ExternalId = z.infer<typeof ExternalIdSchema>;
70
- export declare const ExternalUrlSchema: z.ZodURL;
71
- export type ExternalUrl = z.infer<typeof ExternalUrlSchema>;
72
- export declare const RecordSchemaTypeSchema: z.ZodEnum<{
73
- MassID: "MassID";
74
- "MassID Audit": "MassID Audit";
75
- RecycledID: "RecycledID";
76
- GasID: "GasID";
77
- PurchaseID: "PurchaseID";
78
- Methodology: "Methodology";
79
- Credit: "Credit";
80
- Collection: "Collection";
81
- }>;
82
- export type RecordSchemaType = z.infer<typeof RecordSchemaTypeSchema>;
83
- export declare const TokenSymbolSchema: z.ZodString;
84
- export type TokenSymbol = z.infer<typeof TokenSymbolSchema>;
85
- export declare const RecordRelationshipTypeSchema: z.ZodEnum<{
86
- collection: "collection";
87
- credit: "credit";
88
- "gas-id": "gas-id";
89
- "mass-id": "mass-id";
90
- "mass-id-audit": "mass-id-audit";
91
- methodology: "methodology";
92
- "purchase-id": "purchase-id";
93
- "recycled-id": "recycled-id";
94
- }>;
95
- export type RecordRelationshipType = z.infer<typeof RecordRelationshipTypeSchema>;
96
- //# sourceMappingURL=definitions.schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"definitions.schema.d.ts","sourceRoot":"","sources":["../../src/shared/definitions.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,UAAU,WAQrB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C,eAAO,MAAM,qBAAqB,aAa9B,CAAC;AAEL,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,kBAAkB,kBAQ3B,CAAC;AAEL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