@carrot-foundation/schemas 3.0.0 → 3.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/dist/index.cjs +36 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -1
- package/dist/index.d.ts +30 -1
- package/dist/index.js +36 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schemas/ipfs/collection/collection.example.json +3 -3
- package/schemas/ipfs/collection/collection.schema.json +2 -2
- package/schemas/ipfs/credit/credit.example.json +3 -3
- package/schemas/ipfs/credit/credit.schema.json +2 -2
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.example.json +4 -4
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json +79 -2
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.example.json +4 -4
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json +2 -2
- package/schemas/ipfs/gas-id/gas-id.example.json +4 -4
- package/schemas/ipfs/gas-id/gas-id.schema.json +2 -2
- package/schemas/ipfs/mass-id/mass-id.example.json +4 -4
- package/schemas/ipfs/mass-id/mass-id.schema.json +2 -2
- package/schemas/ipfs/mass-id-audit/mass-id-audit.example.json +3 -3
- package/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json +2 -2
- package/schemas/ipfs/methodology/methodology.example.json +3 -3
- package/schemas/ipfs/methodology/methodology.schema.json +2 -2
- package/schemas/ipfs/recycled-id/recycled-id.example.json +4 -4
- package/schemas/ipfs/recycled-id/recycled-id.schema.json +2 -2
- package/schemas/schema-hashes.json +10 -10
package/dist/index.d.cts
CHANGED
|
@@ -2122,6 +2122,15 @@ declare const CreditPurchaseReceiptDataSchema: z.ZodObject<{
|
|
|
2122
2122
|
smart_contract_address: z.ZodString;
|
|
2123
2123
|
token_id: z.ZodString;
|
|
2124
2124
|
}, z.core.$strict>>;
|
|
2125
|
+
original_sale: z.ZodOptional<z.ZodObject<{
|
|
2126
|
+
order_id: z.ZodUUID;
|
|
2127
|
+
sold_at: z.ZodISODateTime;
|
|
2128
|
+
original_nft: z.ZodObject<{
|
|
2129
|
+
chain_id: z.ZodNumber;
|
|
2130
|
+
smart_contract_address: z.ZodString;
|
|
2131
|
+
token_id: z.ZodString;
|
|
2132
|
+
}, z.core.$strict>;
|
|
2133
|
+
}, z.core.$strict>>;
|
|
2125
2134
|
}, z.core.$strict>;
|
|
2126
2135
|
type CreditPurchaseReceiptData = z.infer<typeof CreditPurchaseReceiptDataSchema>;
|
|
2127
2136
|
|
|
@@ -2281,6 +2290,15 @@ declare const CreditPurchaseReceiptIpfsSchema: z.ZodObject<{
|
|
|
2281
2290
|
smart_contract_address: z.ZodString;
|
|
2282
2291
|
token_id: z.ZodString;
|
|
2283
2292
|
}, z.core.$strict>>;
|
|
2293
|
+
original_sale: z.ZodOptional<z.ZodObject<{
|
|
2294
|
+
order_id: z.ZodUUID;
|
|
2295
|
+
sold_at: z.ZodISODateTime;
|
|
2296
|
+
original_nft: z.ZodObject<{
|
|
2297
|
+
chain_id: z.ZodNumber;
|
|
2298
|
+
smart_contract_address: z.ZodString;
|
|
2299
|
+
token_id: z.ZodString;
|
|
2300
|
+
}, z.core.$strict>;
|
|
2301
|
+
}, z.core.$strict>>;
|
|
2284
2302
|
}, z.core.$strict>;
|
|
2285
2303
|
}, z.core.$strict>;
|
|
2286
2304
|
type CreditPurchaseReceiptIpfs = z.infer<typeof CreditPurchaseReceiptIpfsSchema>;
|
|
@@ -3858,6 +3876,17 @@ declare const MethodologyReferenceSchema: z.ZodObject<{
|
|
|
3858
3876
|
}, z.core.$strict>;
|
|
3859
3877
|
type MethodologyReference = z.infer<typeof MethodologyReferenceSchema>;
|
|
3860
3878
|
|
|
3879
|
+
declare const OriginalSaleReferenceSchema: z.ZodObject<{
|
|
3880
|
+
order_id: z.ZodUUID;
|
|
3881
|
+
sold_at: z.ZodISODateTime;
|
|
3882
|
+
original_nft: z.ZodObject<{
|
|
3883
|
+
chain_id: z.ZodNumber;
|
|
3884
|
+
smart_contract_address: z.ZodString;
|
|
3885
|
+
token_id: z.ZodString;
|
|
3886
|
+
}, z.core.$strict>;
|
|
3887
|
+
}, z.core.$strict>;
|
|
3888
|
+
type OriginalSaleReference = z.infer<typeof OriginalSaleReferenceSchema>;
|
|
3889
|
+
|
|
3861
3890
|
declare const CreditPurchaseReceiptReferenceSchema: z.ZodObject<{
|
|
3862
3891
|
external_id: z.ZodUUID;
|
|
3863
3892
|
external_url: z.ZodURL;
|
|
@@ -4155,4 +4184,4 @@ declare function validateLocationBrazilData(record: {
|
|
|
4155
4184
|
}) => void;
|
|
4156
4185
|
}): void;
|
|
4157
4186
|
|
|
4158
|
-
export { ALLOWED_BLOCKCHAIN_NETWORKS, type AuditReference, AuditReferenceSchema, type AuditResult, AuditResultSchema, type AuditRuleDefinition, AuditRuleDefinitionSchema, type AuditRuleDefinitions, AuditRuleDefinitionsSchema, type AuditRuleExecutionResult, AuditRuleExecutionResultSchema, type AuditRuleExecutionResults, AuditRuleExecutionResultsSchema, BLOCKCHAIN_NETWORK_CONFIG, BRAZIL_COUNTRY_CODE, BRAZIL_MUNICIPALITIES, BRAZIL_MUNICIPALITIES_NAMES, BRAZIL_SUBDIVISION_CODES, type BaseIpfs, BaseIpfsSchema, type BlockchainChainId, BlockchainChainIdSchema, type BlockchainNetworkName, BlockchainNetworkNameSchema, type BlockchainReference, type CalculationValue, type CertificateCollectionItemPurchase, CertificateCollectionItemPurchaseSchema, type CertificateCollectionItemRetirement, CertificateCollectionItemRetirementSchema, type CertificateIssuanceDateAttribute, CertificateIssuanceDateAttributeSchema, type CertificateReferenceBase, CertificateReferenceBaseSchema, type CertificateType, CertificateTypeSchema, type City, CitySchema, type Collection, type CollectionName, CollectionNameSchema, CollectionSchema, CollectionSchemaMeta, type CollectionSlug, CollectionSlugSchema, type ContainerType, ContainerTypeSchema, type Coordinates, CoordinatesSchema, type Credit, type CreditAmount, type CreditAmountAttribute, CreditAmountAttributeSchema, CreditAmountSchema, type CreditPurchaseReceiptAttributes, CreditPurchaseReceiptAttributesSchema, type CreditPurchaseReceiptBuyer, type CreditPurchaseReceiptCertificate, type CreditPurchaseReceiptCollection, type CreditPurchaseReceiptCredit, type CreditPurchaseReceiptData, CreditPurchaseReceiptDataSchema, type CreditPurchaseReceiptIdentity, type CreditPurchaseReceiptIpfs, CreditPurchaseReceiptIpfsSchema, CreditPurchaseReceiptIpfsSchemaMeta, CreditPurchaseReceiptNameSchema, type CreditPurchaseReceiptReference, CreditPurchaseReceiptReferenceSchema, type CreditPurchaseReceiptRetirementReceipt, CreditPurchaseReceiptShortNameSchema, type CreditPurchaseReceiptSummary, CreditPurchaseReceiptSummarySchema, type CreditReference, CreditReferenceSchema, type CreditRetirementReceiptAttributes, CreditRetirementReceiptAttributesSchema, type CreditRetirementReceiptBeneficiary, type CreditRetirementReceiptCertificate, type CreditRetirementReceiptCertificateCredit, type CreditRetirementReceiptCollection, type CreditRetirementReceiptCredit, type CreditRetirementReceiptCreditHolder, type CreditRetirementReceiptData, CreditRetirementReceiptDataSchema, type CreditRetirementReceiptIdentity, type CreditRetirementReceiptIpfs, CreditRetirementReceiptIpfsSchema, CreditRetirementReceiptIpfsSchemaMeta, CreditRetirementReceiptNameSchema, type CreditRetirementReceiptReference, CreditRetirementReceiptReferenceSchema, CreditRetirementReceiptShortNameSchema, type CreditRetirementReceiptSummary, CreditRetirementReceiptSummarySchema, CreditSchema, CreditSchemaMeta, type CreditTokenName, CreditTokenNameSchema, type CreditTokenSlug, CreditTokenSlugSchema, type CreditTokenSymbol, CreditTokenSymbolSchema, type CreditType, type CreditTypeAttribute, CreditTypeAttributeSchema, CreditTypeSchema, EPSILON, type EnsDomain, EnsDomainSchema, type EthereumAddress, EthereumAddressSchema, type ExternalId, ExternalIdSchema, type ExternalLink, type ExternalUrl, ExternalUrlSchema, type GasIDAttributeCertificateIssuanceDate, type GasIDAttributeCo2ePrevented, type GasIDAttributeCreditAmount, type GasIDAttributeCreditType, type GasIDAttributeGasType, type GasIDAttributeMassIDRecyclingDate, type GasIDAttributeMassIDTokenId, type GasIDAttributeMethodology, type GasIDAttributeOriginCity, type GasIDAttributeOriginCountrySubdivision, type GasIDAttributeRecyclingDate, type GasIDAttributeSourceWasteType, type GasIDAttributeSourceWeight, type GasIDAttributes, GasIDAttributesSchema, type GasIDData, GasIDDataSchema, type GasIDIpfs, GasIDIpfsSchema, GasIDIpfsSchemaMeta, GasIDNameSchema, type GasIDReference, GasIDReferenceSchema, GasIDShortNameSchema, type GasIDSummary, type GasType, GasTypeSchema, type HexColor, HexColorSchema, type IbamaWasteClassification, IbamaWasteClassificationSchema, type IpfsCid, IpfsCidSchema, type IpfsUri, IpfsUriSchema, type Ipns, IpnsSchema, type IsoCountryCode, IsoCountryCodeSchema, type IsoCountrySubdivisionCode, IsoCountrySubdivisionCodeSchema, type IsoDate, IsoDateSchema, type IsoDateTime, IsoDateTimeSchema, type Latitude, LatitudeSchema, type Location, LocationSchema, type Longitude, LongitudeSchema, type MassIDAttachment, type MassIDAttachmentType, type MassIDAttributeDropOffDate, type MassIDAttributeLocalWasteClassificationId, type MassIDAttributeOriginCity, type MassIDAttributeOriginCountrySubdivision, type MassIDAttributePickUpDate, type MassIDAttributePickUpVehicleType, type MassIDAttributeRecyclingDate, type MassIDAttributeRecyclingManifestCode, type MassIDAttributeRecyclingMethod, type MassIDAttributeScaleType, type MassIDAttributeTransportManifestCode, type MassIDAttributeWasteSubtype, type MassIDAttributeWasteType, type MassIDAttributeWeighingCaptureMethod, type MassIDAttributeWeight, type MassIDAttributes, MassIDAttributesSchema, type MassIDAudit, type MassIDAuditData, MassIDAuditDataSchema, MassIDAuditSchema, MassIDAuditSchemaMeta, type MassIDAuditSummary, MassIDAuditSummarySchema, type MassIDData, MassIDDataSchema, type MassIDEvent, type MassIDEvents, type MassIDIpfs, MassIDIpfsSchema, MassIDIpfsSchemaMeta, type MassIDLocalClassification, MassIDNameSchema, type MassIDRecyclingDateAttribute, MassIDRecyclingDateAttributeSchema, type MassIDReference, MassIDReferenceSchema, MassIDShortNameSchema, type MassIDTokenIdAttribute, MassIDTokenIdAttributeSchema, type MassIDWasteProperties, type Methodology, type MethodologyAttribute, MethodologyAttributeSchema, type MethodologyData, MethodologyDataSchema, type MethodologyName, MethodologyNameSchema, type MethodologyReference, MethodologyReferenceSchema, MethodologySchema, MethodologySchemaMeta, type MethodologyShortName, MethodologyShortNameSchema, type MethodologySlug, MethodologySlugSchema, type NftAttribute, NftAttributeSchema, type NftIpfs, NftIpfsSchema, type NftSchemaType, type NftTokenReferenceBase, NftTokenReferenceBaseSchema, type NonEmptyString, NonEmptyStringSchema, type NonNegativeFloat, NonNegativeFloatSchema, type NonNegativeInteger, NonNegativeIntegerSchema, type OriginCityAttribute, OriginCityAttributeSchema, type OriginCountrySubdivisionAttribute, OriginCountrySubdivisionAttributeSchema, type Participant, type ParticipantIdHash, ParticipantIdHashSchema, type ParticipantRole, ParticipantRoleSchema, ParticipantSchema, type Percentage, PercentageSchema, type PositiveFloat, PositiveFloatSchema, type PositiveInteger, PositiveIntegerSchema, type PreventedEmissionsCalculation, type ReceiptIdentity, ReceiptIdentitySchema, type RecordEnvironment, RecordEnvironmentSchema, type RecordSchemaType, RecordSchemaTypeSchema, type RecycledIDAttributeCertificateIssuanceDate, type RecycledIDAttributeCreditAmount, type RecycledIDAttributeCreditType, type RecycledIDAttributeMassIDRecyclingDate, type RecycledIDAttributeMassIDTokenId, type RecycledIDAttributeMethodology, type RecycledIDAttributeOriginCity, type RecycledIDAttributeOriginCountrySubdivision, type RecycledIDAttributeRecycledMassWeight, type RecycledIDAttributeRecyclingDate, type RecycledIDAttributeSourceWasteType, type RecycledIDAttributeSourceWeight, type RecycledIDAttributes, RecycledIDAttributesSchema, type RecycledIDData, RecycledIDDataSchema, type RecycledIDIpfs, RecycledIDIpfsSchema, RecycledIDIpfsSchemaMeta, RecycledIDNameSchema, type RecycledIDReference, RecycledIDReferenceSchema, RecycledIDShortNameSchema, type RecycledIDSummary, type RecyclingDateAttribute, RecyclingDateAttributeSchema, type ScaleType, ScaleTypeSchema, type SchemaInfo, SchemaInfoSchema, type SemanticVersion, SemanticVersionSchema, type Sha256Hash, Sha256HashSchema, type Slug, SlugSchema, type SmartContract, type SmartContractAddress, SmartContractAddressSchema, SmartContractSchema, type SourceWasteTypeAttribute, SourceWasteTypeAttributeSchema, type SourceWeightAttribute, SourceWeightAttributeSchema, type StringifiedTokenId, StringifiedTokenIdSchema, type TokenId, TokenIdSchema, type TokenReferenceBase, TokenReferenceBaseSchema, type UnixTimestamp, UnixTimestampSchema, type UsdcAmount, UsdcAmountSchema, type Uuid, UuidSchema, type VehicleType, VehicleTypeSchema, type ViewerReference, ViewerReferenceSchema, type WasteProperties, WastePropertiesSchema, type WasteSubtype, WasteSubtypeSchema, type WasteType, WasteTypeSchema, type WeighingCaptureMethod, WeighingCaptureMethodSchema, type WeightKg, WeightKgSchema, buildSchemaUrl, canonicalizeForHash, createAttributeMap, createCreditPurchaseReceiptNameSchema, createCreditPurchaseReceiptShortNameSchema, createCreditRetirementReceiptNameSchema, createCreditRetirementReceiptShortNameSchema, createDateAttributeSchema, createGasIDNameSchema, createGasIDShortNameSchema, createMassIDNameSchema, createMassIDShortNameSchema, createNumericAttributeSchema, createOrderedAttributesSchema, createReceiptCollectionSchema, createRecycledIDNameSchema, createRecycledIDShortNameSchema, createWeightAttributeSchema, getSchemaBaseUrl, getSchemaVersionOrDefault, hashCanonicalJson, hashObject, nearlyEqual, uniqueArrayItems, uniqueBy, validateAttributeValue, validateAttributesForItems, validateCertificateCollectionSlugs, validateCollectionsHaveRetiredAmounts, validateCountMatches, validateCreditSlugExists, validateCreditSymbolExists, validateDateAttribute, validateDateTimeAttribute, validateFormattedName, validateLocationBrazilData, validateNumericAttributeValue, validateRetirementReceiptRequirement, validateSummaryListMatchesData, validateTokenIdInName, validateTotalMatches };
|
|
4187
|
+
export { ALLOWED_BLOCKCHAIN_NETWORKS, type AuditReference, AuditReferenceSchema, type AuditResult, AuditResultSchema, type AuditRuleDefinition, AuditRuleDefinitionSchema, type AuditRuleDefinitions, AuditRuleDefinitionsSchema, type AuditRuleExecutionResult, AuditRuleExecutionResultSchema, type AuditRuleExecutionResults, AuditRuleExecutionResultsSchema, BLOCKCHAIN_NETWORK_CONFIG, BRAZIL_COUNTRY_CODE, BRAZIL_MUNICIPALITIES, BRAZIL_MUNICIPALITIES_NAMES, BRAZIL_SUBDIVISION_CODES, type BaseIpfs, BaseIpfsSchema, type BlockchainChainId, BlockchainChainIdSchema, type BlockchainNetworkName, BlockchainNetworkNameSchema, type BlockchainReference, type CalculationValue, type CertificateCollectionItemPurchase, CertificateCollectionItemPurchaseSchema, type CertificateCollectionItemRetirement, CertificateCollectionItemRetirementSchema, type CertificateIssuanceDateAttribute, CertificateIssuanceDateAttributeSchema, type CertificateReferenceBase, CertificateReferenceBaseSchema, type CertificateType, CertificateTypeSchema, type City, CitySchema, type Collection, type CollectionName, CollectionNameSchema, CollectionSchema, CollectionSchemaMeta, type CollectionSlug, CollectionSlugSchema, type ContainerType, ContainerTypeSchema, type Coordinates, CoordinatesSchema, type Credit, type CreditAmount, type CreditAmountAttribute, CreditAmountAttributeSchema, CreditAmountSchema, type CreditPurchaseReceiptAttributes, CreditPurchaseReceiptAttributesSchema, type CreditPurchaseReceiptBuyer, type CreditPurchaseReceiptCertificate, type CreditPurchaseReceiptCollection, type CreditPurchaseReceiptCredit, type CreditPurchaseReceiptData, CreditPurchaseReceiptDataSchema, type CreditPurchaseReceiptIdentity, type CreditPurchaseReceiptIpfs, CreditPurchaseReceiptIpfsSchema, CreditPurchaseReceiptIpfsSchemaMeta, CreditPurchaseReceiptNameSchema, type CreditPurchaseReceiptReference, CreditPurchaseReceiptReferenceSchema, type CreditPurchaseReceiptRetirementReceipt, CreditPurchaseReceiptShortNameSchema, type CreditPurchaseReceiptSummary, CreditPurchaseReceiptSummarySchema, type CreditReference, CreditReferenceSchema, type CreditRetirementReceiptAttributes, CreditRetirementReceiptAttributesSchema, type CreditRetirementReceiptBeneficiary, type CreditRetirementReceiptCertificate, type CreditRetirementReceiptCertificateCredit, type CreditRetirementReceiptCollection, type CreditRetirementReceiptCredit, type CreditRetirementReceiptCreditHolder, type CreditRetirementReceiptData, CreditRetirementReceiptDataSchema, type CreditRetirementReceiptIdentity, type CreditRetirementReceiptIpfs, CreditRetirementReceiptIpfsSchema, CreditRetirementReceiptIpfsSchemaMeta, CreditRetirementReceiptNameSchema, type CreditRetirementReceiptReference, CreditRetirementReceiptReferenceSchema, CreditRetirementReceiptShortNameSchema, type CreditRetirementReceiptSummary, CreditRetirementReceiptSummarySchema, CreditSchema, CreditSchemaMeta, type CreditTokenName, CreditTokenNameSchema, type CreditTokenSlug, CreditTokenSlugSchema, type CreditTokenSymbol, CreditTokenSymbolSchema, type CreditType, type CreditTypeAttribute, CreditTypeAttributeSchema, CreditTypeSchema, EPSILON, type EnsDomain, EnsDomainSchema, type EthereumAddress, EthereumAddressSchema, type ExternalId, ExternalIdSchema, type ExternalLink, type ExternalUrl, ExternalUrlSchema, type GasIDAttributeCertificateIssuanceDate, type GasIDAttributeCo2ePrevented, type GasIDAttributeCreditAmount, type GasIDAttributeCreditType, type GasIDAttributeGasType, type GasIDAttributeMassIDRecyclingDate, type GasIDAttributeMassIDTokenId, type GasIDAttributeMethodology, type GasIDAttributeOriginCity, type GasIDAttributeOriginCountrySubdivision, type GasIDAttributeRecyclingDate, type GasIDAttributeSourceWasteType, type GasIDAttributeSourceWeight, type GasIDAttributes, GasIDAttributesSchema, type GasIDData, GasIDDataSchema, type GasIDIpfs, GasIDIpfsSchema, GasIDIpfsSchemaMeta, GasIDNameSchema, type GasIDReference, GasIDReferenceSchema, GasIDShortNameSchema, type GasIDSummary, type GasType, GasTypeSchema, type HexColor, HexColorSchema, type IbamaWasteClassification, IbamaWasteClassificationSchema, type IpfsCid, IpfsCidSchema, type IpfsUri, IpfsUriSchema, type Ipns, IpnsSchema, type IsoCountryCode, IsoCountryCodeSchema, type IsoCountrySubdivisionCode, IsoCountrySubdivisionCodeSchema, type IsoDate, IsoDateSchema, type IsoDateTime, IsoDateTimeSchema, type Latitude, LatitudeSchema, type Location, LocationSchema, type Longitude, LongitudeSchema, type MassIDAttachment, type MassIDAttachmentType, type MassIDAttributeDropOffDate, type MassIDAttributeLocalWasteClassificationId, type MassIDAttributeOriginCity, type MassIDAttributeOriginCountrySubdivision, type MassIDAttributePickUpDate, type MassIDAttributePickUpVehicleType, type MassIDAttributeRecyclingDate, type MassIDAttributeRecyclingManifestCode, type MassIDAttributeRecyclingMethod, type MassIDAttributeScaleType, type MassIDAttributeTransportManifestCode, type MassIDAttributeWasteSubtype, type MassIDAttributeWasteType, type MassIDAttributeWeighingCaptureMethod, type MassIDAttributeWeight, type MassIDAttributes, MassIDAttributesSchema, type MassIDAudit, type MassIDAuditData, MassIDAuditDataSchema, MassIDAuditSchema, MassIDAuditSchemaMeta, type MassIDAuditSummary, MassIDAuditSummarySchema, type MassIDData, MassIDDataSchema, type MassIDEvent, type MassIDEvents, type MassIDIpfs, MassIDIpfsSchema, MassIDIpfsSchemaMeta, type MassIDLocalClassification, MassIDNameSchema, type MassIDRecyclingDateAttribute, MassIDRecyclingDateAttributeSchema, type MassIDReference, MassIDReferenceSchema, MassIDShortNameSchema, type MassIDTokenIdAttribute, MassIDTokenIdAttributeSchema, type MassIDWasteProperties, type Methodology, type MethodologyAttribute, MethodologyAttributeSchema, type MethodologyData, MethodologyDataSchema, type MethodologyName, MethodologyNameSchema, type MethodologyReference, MethodologyReferenceSchema, MethodologySchema, MethodologySchemaMeta, type MethodologyShortName, MethodologyShortNameSchema, type MethodologySlug, MethodologySlugSchema, type NftAttribute, NftAttributeSchema, type NftIpfs, NftIpfsSchema, type NftSchemaType, type NftTokenReferenceBase, NftTokenReferenceBaseSchema, type NonEmptyString, NonEmptyStringSchema, type NonNegativeFloat, NonNegativeFloatSchema, type NonNegativeInteger, NonNegativeIntegerSchema, type OriginCityAttribute, OriginCityAttributeSchema, type OriginCountrySubdivisionAttribute, OriginCountrySubdivisionAttributeSchema, type OriginalSaleReference, OriginalSaleReferenceSchema, type Participant, type ParticipantIdHash, ParticipantIdHashSchema, type ParticipantRole, ParticipantRoleSchema, ParticipantSchema, type Percentage, PercentageSchema, type PositiveFloat, PositiveFloatSchema, type PositiveInteger, PositiveIntegerSchema, type PreventedEmissionsCalculation, type ReceiptIdentity, ReceiptIdentitySchema, type RecordEnvironment, RecordEnvironmentSchema, type RecordSchemaType, RecordSchemaTypeSchema, type RecycledIDAttributeCertificateIssuanceDate, type RecycledIDAttributeCreditAmount, type RecycledIDAttributeCreditType, type RecycledIDAttributeMassIDRecyclingDate, type RecycledIDAttributeMassIDTokenId, type RecycledIDAttributeMethodology, type RecycledIDAttributeOriginCity, type RecycledIDAttributeOriginCountrySubdivision, type RecycledIDAttributeRecycledMassWeight, type RecycledIDAttributeRecyclingDate, type RecycledIDAttributeSourceWasteType, type RecycledIDAttributeSourceWeight, type RecycledIDAttributes, RecycledIDAttributesSchema, type RecycledIDData, RecycledIDDataSchema, type RecycledIDIpfs, RecycledIDIpfsSchema, RecycledIDIpfsSchemaMeta, RecycledIDNameSchema, type RecycledIDReference, RecycledIDReferenceSchema, RecycledIDShortNameSchema, type RecycledIDSummary, type RecyclingDateAttribute, RecyclingDateAttributeSchema, type ScaleType, ScaleTypeSchema, type SchemaInfo, SchemaInfoSchema, type SemanticVersion, SemanticVersionSchema, type Sha256Hash, Sha256HashSchema, type Slug, SlugSchema, type SmartContract, type SmartContractAddress, SmartContractAddressSchema, SmartContractSchema, type SourceWasteTypeAttribute, SourceWasteTypeAttributeSchema, type SourceWeightAttribute, SourceWeightAttributeSchema, type StringifiedTokenId, StringifiedTokenIdSchema, type TokenId, TokenIdSchema, type TokenReferenceBase, TokenReferenceBaseSchema, type UnixTimestamp, UnixTimestampSchema, type UsdcAmount, UsdcAmountSchema, type Uuid, UuidSchema, type VehicleType, VehicleTypeSchema, type ViewerReference, ViewerReferenceSchema, type WasteProperties, WastePropertiesSchema, type WasteSubtype, WasteSubtypeSchema, type WasteType, WasteTypeSchema, type WeighingCaptureMethod, WeighingCaptureMethodSchema, type WeightKg, WeightKgSchema, buildSchemaUrl, canonicalizeForHash, createAttributeMap, createCreditPurchaseReceiptNameSchema, createCreditPurchaseReceiptShortNameSchema, createCreditRetirementReceiptNameSchema, createCreditRetirementReceiptShortNameSchema, createDateAttributeSchema, createGasIDNameSchema, createGasIDShortNameSchema, createMassIDNameSchema, createMassIDShortNameSchema, createNumericAttributeSchema, createOrderedAttributesSchema, createReceiptCollectionSchema, createRecycledIDNameSchema, createRecycledIDShortNameSchema, createWeightAttributeSchema, getSchemaBaseUrl, getSchemaVersionOrDefault, hashCanonicalJson, hashObject, nearlyEqual, uniqueArrayItems, uniqueBy, validateAttributeValue, validateAttributesForItems, validateCertificateCollectionSlugs, validateCollectionsHaveRetiredAmounts, validateCountMatches, validateCreditSlugExists, validateCreditSymbolExists, validateDateAttribute, validateDateTimeAttribute, validateFormattedName, validateLocationBrazilData, validateNumericAttributeValue, validateRetirementReceiptRequirement, validateSummaryListMatchesData, validateTokenIdInName, validateTotalMatches };
|
package/dist/index.d.ts
CHANGED
|
@@ -2122,6 +2122,15 @@ declare const CreditPurchaseReceiptDataSchema: z.ZodObject<{
|
|
|
2122
2122
|
smart_contract_address: z.ZodString;
|
|
2123
2123
|
token_id: z.ZodString;
|
|
2124
2124
|
}, z.core.$strict>>;
|
|
2125
|
+
original_sale: z.ZodOptional<z.ZodObject<{
|
|
2126
|
+
order_id: z.ZodUUID;
|
|
2127
|
+
sold_at: z.ZodISODateTime;
|
|
2128
|
+
original_nft: z.ZodObject<{
|
|
2129
|
+
chain_id: z.ZodNumber;
|
|
2130
|
+
smart_contract_address: z.ZodString;
|
|
2131
|
+
token_id: z.ZodString;
|
|
2132
|
+
}, z.core.$strict>;
|
|
2133
|
+
}, z.core.$strict>>;
|
|
2125
2134
|
}, z.core.$strict>;
|
|
2126
2135
|
type CreditPurchaseReceiptData = z.infer<typeof CreditPurchaseReceiptDataSchema>;
|
|
2127
2136
|
|
|
@@ -2281,6 +2290,15 @@ declare const CreditPurchaseReceiptIpfsSchema: z.ZodObject<{
|
|
|
2281
2290
|
smart_contract_address: z.ZodString;
|
|
2282
2291
|
token_id: z.ZodString;
|
|
2283
2292
|
}, z.core.$strict>>;
|
|
2293
|
+
original_sale: z.ZodOptional<z.ZodObject<{
|
|
2294
|
+
order_id: z.ZodUUID;
|
|
2295
|
+
sold_at: z.ZodISODateTime;
|
|
2296
|
+
original_nft: z.ZodObject<{
|
|
2297
|
+
chain_id: z.ZodNumber;
|
|
2298
|
+
smart_contract_address: z.ZodString;
|
|
2299
|
+
token_id: z.ZodString;
|
|
2300
|
+
}, z.core.$strict>;
|
|
2301
|
+
}, z.core.$strict>>;
|
|
2284
2302
|
}, z.core.$strict>;
|
|
2285
2303
|
}, z.core.$strict>;
|
|
2286
2304
|
type CreditPurchaseReceiptIpfs = z.infer<typeof CreditPurchaseReceiptIpfsSchema>;
|
|
@@ -3858,6 +3876,17 @@ declare const MethodologyReferenceSchema: z.ZodObject<{
|
|
|
3858
3876
|
}, z.core.$strict>;
|
|
3859
3877
|
type MethodologyReference = z.infer<typeof MethodologyReferenceSchema>;
|
|
3860
3878
|
|
|
3879
|
+
declare const OriginalSaleReferenceSchema: z.ZodObject<{
|
|
3880
|
+
order_id: z.ZodUUID;
|
|
3881
|
+
sold_at: z.ZodISODateTime;
|
|
3882
|
+
original_nft: z.ZodObject<{
|
|
3883
|
+
chain_id: z.ZodNumber;
|
|
3884
|
+
smart_contract_address: z.ZodString;
|
|
3885
|
+
token_id: z.ZodString;
|
|
3886
|
+
}, z.core.$strict>;
|
|
3887
|
+
}, z.core.$strict>;
|
|
3888
|
+
type OriginalSaleReference = z.infer<typeof OriginalSaleReferenceSchema>;
|
|
3889
|
+
|
|
3861
3890
|
declare const CreditPurchaseReceiptReferenceSchema: z.ZodObject<{
|
|
3862
3891
|
external_id: z.ZodUUID;
|
|
3863
3892
|
external_url: z.ZodURL;
|
|
@@ -4155,4 +4184,4 @@ declare function validateLocationBrazilData(record: {
|
|
|
4155
4184
|
}) => void;
|
|
4156
4185
|
}): void;
|
|
4157
4186
|
|
|
4158
|
-
export { ALLOWED_BLOCKCHAIN_NETWORKS, type AuditReference, AuditReferenceSchema, type AuditResult, AuditResultSchema, type AuditRuleDefinition, AuditRuleDefinitionSchema, type AuditRuleDefinitions, AuditRuleDefinitionsSchema, type AuditRuleExecutionResult, AuditRuleExecutionResultSchema, type AuditRuleExecutionResults, AuditRuleExecutionResultsSchema, BLOCKCHAIN_NETWORK_CONFIG, BRAZIL_COUNTRY_CODE, BRAZIL_MUNICIPALITIES, BRAZIL_MUNICIPALITIES_NAMES, BRAZIL_SUBDIVISION_CODES, type BaseIpfs, BaseIpfsSchema, type BlockchainChainId, BlockchainChainIdSchema, type BlockchainNetworkName, BlockchainNetworkNameSchema, type BlockchainReference, type CalculationValue, type CertificateCollectionItemPurchase, CertificateCollectionItemPurchaseSchema, type CertificateCollectionItemRetirement, CertificateCollectionItemRetirementSchema, type CertificateIssuanceDateAttribute, CertificateIssuanceDateAttributeSchema, type CertificateReferenceBase, CertificateReferenceBaseSchema, type CertificateType, CertificateTypeSchema, type City, CitySchema, type Collection, type CollectionName, CollectionNameSchema, CollectionSchema, CollectionSchemaMeta, type CollectionSlug, CollectionSlugSchema, type ContainerType, ContainerTypeSchema, type Coordinates, CoordinatesSchema, type Credit, type CreditAmount, type CreditAmountAttribute, CreditAmountAttributeSchema, CreditAmountSchema, type CreditPurchaseReceiptAttributes, CreditPurchaseReceiptAttributesSchema, type CreditPurchaseReceiptBuyer, type CreditPurchaseReceiptCertificate, type CreditPurchaseReceiptCollection, type CreditPurchaseReceiptCredit, type CreditPurchaseReceiptData, CreditPurchaseReceiptDataSchema, type CreditPurchaseReceiptIdentity, type CreditPurchaseReceiptIpfs, CreditPurchaseReceiptIpfsSchema, CreditPurchaseReceiptIpfsSchemaMeta, CreditPurchaseReceiptNameSchema, type CreditPurchaseReceiptReference, CreditPurchaseReceiptReferenceSchema, type CreditPurchaseReceiptRetirementReceipt, CreditPurchaseReceiptShortNameSchema, type CreditPurchaseReceiptSummary, CreditPurchaseReceiptSummarySchema, type CreditReference, CreditReferenceSchema, type CreditRetirementReceiptAttributes, CreditRetirementReceiptAttributesSchema, type CreditRetirementReceiptBeneficiary, type CreditRetirementReceiptCertificate, type CreditRetirementReceiptCertificateCredit, type CreditRetirementReceiptCollection, type CreditRetirementReceiptCredit, type CreditRetirementReceiptCreditHolder, type CreditRetirementReceiptData, CreditRetirementReceiptDataSchema, type CreditRetirementReceiptIdentity, type CreditRetirementReceiptIpfs, CreditRetirementReceiptIpfsSchema, CreditRetirementReceiptIpfsSchemaMeta, CreditRetirementReceiptNameSchema, type CreditRetirementReceiptReference, CreditRetirementReceiptReferenceSchema, CreditRetirementReceiptShortNameSchema, type CreditRetirementReceiptSummary, CreditRetirementReceiptSummarySchema, CreditSchema, CreditSchemaMeta, type CreditTokenName, CreditTokenNameSchema, type CreditTokenSlug, CreditTokenSlugSchema, type CreditTokenSymbol, CreditTokenSymbolSchema, type CreditType, type CreditTypeAttribute, CreditTypeAttributeSchema, CreditTypeSchema, EPSILON, type EnsDomain, EnsDomainSchema, type EthereumAddress, EthereumAddressSchema, type ExternalId, ExternalIdSchema, type ExternalLink, type ExternalUrl, ExternalUrlSchema, type GasIDAttributeCertificateIssuanceDate, type GasIDAttributeCo2ePrevented, type GasIDAttributeCreditAmount, type GasIDAttributeCreditType, type GasIDAttributeGasType, type GasIDAttributeMassIDRecyclingDate, type GasIDAttributeMassIDTokenId, type GasIDAttributeMethodology, type GasIDAttributeOriginCity, type GasIDAttributeOriginCountrySubdivision, type GasIDAttributeRecyclingDate, type GasIDAttributeSourceWasteType, type GasIDAttributeSourceWeight, type GasIDAttributes, GasIDAttributesSchema, type GasIDData, GasIDDataSchema, type GasIDIpfs, GasIDIpfsSchema, GasIDIpfsSchemaMeta, GasIDNameSchema, type GasIDReference, GasIDReferenceSchema, GasIDShortNameSchema, type GasIDSummary, type GasType, GasTypeSchema, type HexColor, HexColorSchema, type IbamaWasteClassification, IbamaWasteClassificationSchema, type IpfsCid, IpfsCidSchema, type IpfsUri, IpfsUriSchema, type Ipns, IpnsSchema, type IsoCountryCode, IsoCountryCodeSchema, type IsoCountrySubdivisionCode, IsoCountrySubdivisionCodeSchema, type IsoDate, IsoDateSchema, type IsoDateTime, IsoDateTimeSchema, type Latitude, LatitudeSchema, type Location, LocationSchema, type Longitude, LongitudeSchema, type MassIDAttachment, type MassIDAttachmentType, type MassIDAttributeDropOffDate, type MassIDAttributeLocalWasteClassificationId, type MassIDAttributeOriginCity, type MassIDAttributeOriginCountrySubdivision, type MassIDAttributePickUpDate, type MassIDAttributePickUpVehicleType, type MassIDAttributeRecyclingDate, type MassIDAttributeRecyclingManifestCode, type MassIDAttributeRecyclingMethod, type MassIDAttributeScaleType, type MassIDAttributeTransportManifestCode, type MassIDAttributeWasteSubtype, type MassIDAttributeWasteType, type MassIDAttributeWeighingCaptureMethod, type MassIDAttributeWeight, type MassIDAttributes, MassIDAttributesSchema, type MassIDAudit, type MassIDAuditData, MassIDAuditDataSchema, MassIDAuditSchema, MassIDAuditSchemaMeta, type MassIDAuditSummary, MassIDAuditSummarySchema, type MassIDData, MassIDDataSchema, type MassIDEvent, type MassIDEvents, type MassIDIpfs, MassIDIpfsSchema, MassIDIpfsSchemaMeta, type MassIDLocalClassification, MassIDNameSchema, type MassIDRecyclingDateAttribute, MassIDRecyclingDateAttributeSchema, type MassIDReference, MassIDReferenceSchema, MassIDShortNameSchema, type MassIDTokenIdAttribute, MassIDTokenIdAttributeSchema, type MassIDWasteProperties, type Methodology, type MethodologyAttribute, MethodologyAttributeSchema, type MethodologyData, MethodologyDataSchema, type MethodologyName, MethodologyNameSchema, type MethodologyReference, MethodologyReferenceSchema, MethodologySchema, MethodologySchemaMeta, type MethodologyShortName, MethodologyShortNameSchema, type MethodologySlug, MethodologySlugSchema, type NftAttribute, NftAttributeSchema, type NftIpfs, NftIpfsSchema, type NftSchemaType, type NftTokenReferenceBase, NftTokenReferenceBaseSchema, type NonEmptyString, NonEmptyStringSchema, type NonNegativeFloat, NonNegativeFloatSchema, type NonNegativeInteger, NonNegativeIntegerSchema, type OriginCityAttribute, OriginCityAttributeSchema, type OriginCountrySubdivisionAttribute, OriginCountrySubdivisionAttributeSchema, type Participant, type ParticipantIdHash, ParticipantIdHashSchema, type ParticipantRole, ParticipantRoleSchema, ParticipantSchema, type Percentage, PercentageSchema, type PositiveFloat, PositiveFloatSchema, type PositiveInteger, PositiveIntegerSchema, type PreventedEmissionsCalculation, type ReceiptIdentity, ReceiptIdentitySchema, type RecordEnvironment, RecordEnvironmentSchema, type RecordSchemaType, RecordSchemaTypeSchema, type RecycledIDAttributeCertificateIssuanceDate, type RecycledIDAttributeCreditAmount, type RecycledIDAttributeCreditType, type RecycledIDAttributeMassIDRecyclingDate, type RecycledIDAttributeMassIDTokenId, type RecycledIDAttributeMethodology, type RecycledIDAttributeOriginCity, type RecycledIDAttributeOriginCountrySubdivision, type RecycledIDAttributeRecycledMassWeight, type RecycledIDAttributeRecyclingDate, type RecycledIDAttributeSourceWasteType, type RecycledIDAttributeSourceWeight, type RecycledIDAttributes, RecycledIDAttributesSchema, type RecycledIDData, RecycledIDDataSchema, type RecycledIDIpfs, RecycledIDIpfsSchema, RecycledIDIpfsSchemaMeta, RecycledIDNameSchema, type RecycledIDReference, RecycledIDReferenceSchema, RecycledIDShortNameSchema, type RecycledIDSummary, type RecyclingDateAttribute, RecyclingDateAttributeSchema, type ScaleType, ScaleTypeSchema, type SchemaInfo, SchemaInfoSchema, type SemanticVersion, SemanticVersionSchema, type Sha256Hash, Sha256HashSchema, type Slug, SlugSchema, type SmartContract, type SmartContractAddress, SmartContractAddressSchema, SmartContractSchema, type SourceWasteTypeAttribute, SourceWasteTypeAttributeSchema, type SourceWeightAttribute, SourceWeightAttributeSchema, type StringifiedTokenId, StringifiedTokenIdSchema, type TokenId, TokenIdSchema, type TokenReferenceBase, TokenReferenceBaseSchema, type UnixTimestamp, UnixTimestampSchema, type UsdcAmount, UsdcAmountSchema, type Uuid, UuidSchema, type VehicleType, VehicleTypeSchema, type ViewerReference, ViewerReferenceSchema, type WasteProperties, WastePropertiesSchema, type WasteSubtype, WasteSubtypeSchema, type WasteType, WasteTypeSchema, type WeighingCaptureMethod, WeighingCaptureMethodSchema, type WeightKg, WeightKgSchema, buildSchemaUrl, canonicalizeForHash, createAttributeMap, createCreditPurchaseReceiptNameSchema, createCreditPurchaseReceiptShortNameSchema, createCreditRetirementReceiptNameSchema, createCreditRetirementReceiptShortNameSchema, createDateAttributeSchema, createGasIDNameSchema, createGasIDShortNameSchema, createMassIDNameSchema, createMassIDShortNameSchema, createNumericAttributeSchema, createOrderedAttributesSchema, createReceiptCollectionSchema, createRecycledIDNameSchema, createRecycledIDShortNameSchema, createWeightAttributeSchema, getSchemaBaseUrl, getSchemaVersionOrDefault, hashCanonicalJson, hashObject, nearlyEqual, uniqueArrayItems, uniqueBy, validateAttributeValue, validateAttributesForItems, validateCertificateCollectionSlugs, validateCollectionsHaveRetiredAmounts, validateCountMatches, validateCreditSlugExists, validateCreditSymbolExists, validateDateAttribute, validateDateTimeAttribute, validateFormattedName, validateLocationBrazilData, validateNumericAttributeValue, validateRetirementReceiptRequirement, validateSummaryListMatchesData, validateTokenIdInName, validateTotalMatches };
|
|
4187
|
+
export { ALLOWED_BLOCKCHAIN_NETWORKS, type AuditReference, AuditReferenceSchema, type AuditResult, AuditResultSchema, type AuditRuleDefinition, AuditRuleDefinitionSchema, type AuditRuleDefinitions, AuditRuleDefinitionsSchema, type AuditRuleExecutionResult, AuditRuleExecutionResultSchema, type AuditRuleExecutionResults, AuditRuleExecutionResultsSchema, BLOCKCHAIN_NETWORK_CONFIG, BRAZIL_COUNTRY_CODE, BRAZIL_MUNICIPALITIES, BRAZIL_MUNICIPALITIES_NAMES, BRAZIL_SUBDIVISION_CODES, type BaseIpfs, BaseIpfsSchema, type BlockchainChainId, BlockchainChainIdSchema, type BlockchainNetworkName, BlockchainNetworkNameSchema, type BlockchainReference, type CalculationValue, type CertificateCollectionItemPurchase, CertificateCollectionItemPurchaseSchema, type CertificateCollectionItemRetirement, CertificateCollectionItemRetirementSchema, type CertificateIssuanceDateAttribute, CertificateIssuanceDateAttributeSchema, type CertificateReferenceBase, CertificateReferenceBaseSchema, type CertificateType, CertificateTypeSchema, type City, CitySchema, type Collection, type CollectionName, CollectionNameSchema, CollectionSchema, CollectionSchemaMeta, type CollectionSlug, CollectionSlugSchema, type ContainerType, ContainerTypeSchema, type Coordinates, CoordinatesSchema, type Credit, type CreditAmount, type CreditAmountAttribute, CreditAmountAttributeSchema, CreditAmountSchema, type CreditPurchaseReceiptAttributes, CreditPurchaseReceiptAttributesSchema, type CreditPurchaseReceiptBuyer, type CreditPurchaseReceiptCertificate, type CreditPurchaseReceiptCollection, type CreditPurchaseReceiptCredit, type CreditPurchaseReceiptData, CreditPurchaseReceiptDataSchema, type CreditPurchaseReceiptIdentity, type CreditPurchaseReceiptIpfs, CreditPurchaseReceiptIpfsSchema, CreditPurchaseReceiptIpfsSchemaMeta, CreditPurchaseReceiptNameSchema, type CreditPurchaseReceiptReference, CreditPurchaseReceiptReferenceSchema, type CreditPurchaseReceiptRetirementReceipt, CreditPurchaseReceiptShortNameSchema, type CreditPurchaseReceiptSummary, CreditPurchaseReceiptSummarySchema, type CreditReference, CreditReferenceSchema, type CreditRetirementReceiptAttributes, CreditRetirementReceiptAttributesSchema, type CreditRetirementReceiptBeneficiary, type CreditRetirementReceiptCertificate, type CreditRetirementReceiptCertificateCredit, type CreditRetirementReceiptCollection, type CreditRetirementReceiptCredit, type CreditRetirementReceiptCreditHolder, type CreditRetirementReceiptData, CreditRetirementReceiptDataSchema, type CreditRetirementReceiptIdentity, type CreditRetirementReceiptIpfs, CreditRetirementReceiptIpfsSchema, CreditRetirementReceiptIpfsSchemaMeta, CreditRetirementReceiptNameSchema, type CreditRetirementReceiptReference, CreditRetirementReceiptReferenceSchema, CreditRetirementReceiptShortNameSchema, type CreditRetirementReceiptSummary, CreditRetirementReceiptSummarySchema, CreditSchema, CreditSchemaMeta, type CreditTokenName, CreditTokenNameSchema, type CreditTokenSlug, CreditTokenSlugSchema, type CreditTokenSymbol, CreditTokenSymbolSchema, type CreditType, type CreditTypeAttribute, CreditTypeAttributeSchema, CreditTypeSchema, EPSILON, type EnsDomain, EnsDomainSchema, type EthereumAddress, EthereumAddressSchema, type ExternalId, ExternalIdSchema, type ExternalLink, type ExternalUrl, ExternalUrlSchema, type GasIDAttributeCertificateIssuanceDate, type GasIDAttributeCo2ePrevented, type GasIDAttributeCreditAmount, type GasIDAttributeCreditType, type GasIDAttributeGasType, type GasIDAttributeMassIDRecyclingDate, type GasIDAttributeMassIDTokenId, type GasIDAttributeMethodology, type GasIDAttributeOriginCity, type GasIDAttributeOriginCountrySubdivision, type GasIDAttributeRecyclingDate, type GasIDAttributeSourceWasteType, type GasIDAttributeSourceWeight, type GasIDAttributes, GasIDAttributesSchema, type GasIDData, GasIDDataSchema, type GasIDIpfs, GasIDIpfsSchema, GasIDIpfsSchemaMeta, GasIDNameSchema, type GasIDReference, GasIDReferenceSchema, GasIDShortNameSchema, type GasIDSummary, type GasType, GasTypeSchema, type HexColor, HexColorSchema, type IbamaWasteClassification, IbamaWasteClassificationSchema, type IpfsCid, IpfsCidSchema, type IpfsUri, IpfsUriSchema, type Ipns, IpnsSchema, type IsoCountryCode, IsoCountryCodeSchema, type IsoCountrySubdivisionCode, IsoCountrySubdivisionCodeSchema, type IsoDate, IsoDateSchema, type IsoDateTime, IsoDateTimeSchema, type Latitude, LatitudeSchema, type Location, LocationSchema, type Longitude, LongitudeSchema, type MassIDAttachment, type MassIDAttachmentType, type MassIDAttributeDropOffDate, type MassIDAttributeLocalWasteClassificationId, type MassIDAttributeOriginCity, type MassIDAttributeOriginCountrySubdivision, type MassIDAttributePickUpDate, type MassIDAttributePickUpVehicleType, type MassIDAttributeRecyclingDate, type MassIDAttributeRecyclingManifestCode, type MassIDAttributeRecyclingMethod, type MassIDAttributeScaleType, type MassIDAttributeTransportManifestCode, type MassIDAttributeWasteSubtype, type MassIDAttributeWasteType, type MassIDAttributeWeighingCaptureMethod, type MassIDAttributeWeight, type MassIDAttributes, MassIDAttributesSchema, type MassIDAudit, type MassIDAuditData, MassIDAuditDataSchema, MassIDAuditSchema, MassIDAuditSchemaMeta, type MassIDAuditSummary, MassIDAuditSummarySchema, type MassIDData, MassIDDataSchema, type MassIDEvent, type MassIDEvents, type MassIDIpfs, MassIDIpfsSchema, MassIDIpfsSchemaMeta, type MassIDLocalClassification, MassIDNameSchema, type MassIDRecyclingDateAttribute, MassIDRecyclingDateAttributeSchema, type MassIDReference, MassIDReferenceSchema, MassIDShortNameSchema, type MassIDTokenIdAttribute, MassIDTokenIdAttributeSchema, type MassIDWasteProperties, type Methodology, type MethodologyAttribute, MethodologyAttributeSchema, type MethodologyData, MethodologyDataSchema, type MethodologyName, MethodologyNameSchema, type MethodologyReference, MethodologyReferenceSchema, MethodologySchema, MethodologySchemaMeta, type MethodologyShortName, MethodologyShortNameSchema, type MethodologySlug, MethodologySlugSchema, type NftAttribute, NftAttributeSchema, type NftIpfs, NftIpfsSchema, type NftSchemaType, type NftTokenReferenceBase, NftTokenReferenceBaseSchema, type NonEmptyString, NonEmptyStringSchema, type NonNegativeFloat, NonNegativeFloatSchema, type NonNegativeInteger, NonNegativeIntegerSchema, type OriginCityAttribute, OriginCityAttributeSchema, type OriginCountrySubdivisionAttribute, OriginCountrySubdivisionAttributeSchema, type OriginalSaleReference, OriginalSaleReferenceSchema, type Participant, type ParticipantIdHash, ParticipantIdHashSchema, type ParticipantRole, ParticipantRoleSchema, ParticipantSchema, type Percentage, PercentageSchema, type PositiveFloat, PositiveFloatSchema, type PositiveInteger, PositiveIntegerSchema, type PreventedEmissionsCalculation, type ReceiptIdentity, ReceiptIdentitySchema, type RecordEnvironment, RecordEnvironmentSchema, type RecordSchemaType, RecordSchemaTypeSchema, type RecycledIDAttributeCertificateIssuanceDate, type RecycledIDAttributeCreditAmount, type RecycledIDAttributeCreditType, type RecycledIDAttributeMassIDRecyclingDate, type RecycledIDAttributeMassIDTokenId, type RecycledIDAttributeMethodology, type RecycledIDAttributeOriginCity, type RecycledIDAttributeOriginCountrySubdivision, type RecycledIDAttributeRecycledMassWeight, type RecycledIDAttributeRecyclingDate, type RecycledIDAttributeSourceWasteType, type RecycledIDAttributeSourceWeight, type RecycledIDAttributes, RecycledIDAttributesSchema, type RecycledIDData, RecycledIDDataSchema, type RecycledIDIpfs, RecycledIDIpfsSchema, RecycledIDIpfsSchemaMeta, RecycledIDNameSchema, type RecycledIDReference, RecycledIDReferenceSchema, RecycledIDShortNameSchema, type RecycledIDSummary, type RecyclingDateAttribute, RecyclingDateAttributeSchema, type ScaleType, ScaleTypeSchema, type SchemaInfo, SchemaInfoSchema, type SemanticVersion, SemanticVersionSchema, type Sha256Hash, Sha256HashSchema, type Slug, SlugSchema, type SmartContract, type SmartContractAddress, SmartContractAddressSchema, SmartContractSchema, type SourceWasteTypeAttribute, SourceWasteTypeAttributeSchema, type SourceWeightAttribute, SourceWeightAttributeSchema, type StringifiedTokenId, StringifiedTokenIdSchema, type TokenId, TokenIdSchema, type TokenReferenceBase, TokenReferenceBaseSchema, type UnixTimestamp, UnixTimestampSchema, type UsdcAmount, UsdcAmountSchema, type Uuid, UuidSchema, type VehicleType, VehicleTypeSchema, type ViewerReference, ViewerReferenceSchema, type WasteProperties, WastePropertiesSchema, type WasteSubtype, WasteSubtypeSchema, type WasteType, WasteTypeSchema, type WeighingCaptureMethod, WeighingCaptureMethodSchema, type WeightKg, WeightKgSchema, buildSchemaUrl, canonicalizeForHash, createAttributeMap, createCreditPurchaseReceiptNameSchema, createCreditPurchaseReceiptShortNameSchema, createCreditRetirementReceiptNameSchema, createCreditRetirementReceiptShortNameSchema, createDateAttributeSchema, createGasIDNameSchema, createGasIDShortNameSchema, createMassIDNameSchema, createMassIDShortNameSchema, createNumericAttributeSchema, createOrderedAttributesSchema, createReceiptCollectionSchema, createRecycledIDNameSchema, createRecycledIDShortNameSchema, createWeightAttributeSchema, getSchemaBaseUrl, getSchemaVersionOrDefault, hashCanonicalJson, hashObject, nearlyEqual, uniqueArrayItems, uniqueBy, validateAttributeValue, validateAttributesForItems, validateCertificateCollectionSlugs, validateCollectionsHaveRetiredAmounts, validateCountMatches, validateCreditSlugExists, validateCreditSymbolExists, validateDateAttribute, validateDateTimeAttribute, validateFormattedName, validateLocationBrazilData, validateNumericAttributeValue, validateRetirementReceiptRequirement, validateSummaryListMatchesData, validateTokenIdInName, validateTotalMatches };
|
package/dist/index.js
CHANGED
|
@@ -29106,6 +29106,38 @@ var MethodologyReferenceSchema = z.strictObject({
|
|
|
29106
29106
|
title: "Methodology Reference",
|
|
29107
29107
|
description: "Reference to a methodology record"
|
|
29108
29108
|
});
|
|
29109
|
+
var OriginalNftSchema = z.strictObject({
|
|
29110
|
+
chain_id: PositiveIntegerSchema.meta({
|
|
29111
|
+
title: "Chain ID",
|
|
29112
|
+
description: "Identifier of the blockchain network on which the original asset was minted",
|
|
29113
|
+
examples: [137, 80002]
|
|
29114
|
+
}),
|
|
29115
|
+
smart_contract_address: SmartContractAddressSchema.meta({
|
|
29116
|
+
title: "Smart Contract Address",
|
|
29117
|
+
description: "Address of the smart contract that minted and manages the original tokenized asset"
|
|
29118
|
+
}),
|
|
29119
|
+
token_id: TokenIdSchema.meta({
|
|
29120
|
+
title: "Token ID",
|
|
29121
|
+
description: "Identifier of the original tokenized asset within its smart contract"
|
|
29122
|
+
})
|
|
29123
|
+
}).meta({
|
|
29124
|
+
title: "Original NFT",
|
|
29125
|
+
description: "On-chain reference to the tokenized asset associated with the original sale"
|
|
29126
|
+
});
|
|
29127
|
+
var OriginalSaleReferenceSchema = z.strictObject({
|
|
29128
|
+
order_id: UuidSchema.meta({
|
|
29129
|
+
title: "Order ID",
|
|
29130
|
+
description: "Identifier of the originating sale order"
|
|
29131
|
+
}),
|
|
29132
|
+
sold_at: IsoDateTimeSchema.meta({
|
|
29133
|
+
title: "Sold At",
|
|
29134
|
+
description: "Timestamp at which the original sale was completed"
|
|
29135
|
+
}),
|
|
29136
|
+
original_nft: OriginalNftSchema
|
|
29137
|
+
}).meta({
|
|
29138
|
+
title: "Original Sale Reference",
|
|
29139
|
+
description: "Reference to the sale that originated this record, linking it to the originating sale order and its tokenized asset"
|
|
29140
|
+
});
|
|
29109
29141
|
|
|
29110
29142
|
// src/shared/schemas/references/receipt-reference.schema.ts
|
|
29111
29143
|
var CreditPurchaseReceiptReferenceSchema = NftTokenReferenceBaseSchema.meta({
|
|
@@ -29484,7 +29516,7 @@ function buildSchemaUrl(schemaPath) {
|
|
|
29484
29516
|
return `${getSchemaBaseUrl()}/${cleanPath}`;
|
|
29485
29517
|
}
|
|
29486
29518
|
function getSchemaVersionOrDefault() {
|
|
29487
|
-
return "3.
|
|
29519
|
+
return "3.1.0";
|
|
29488
29520
|
}
|
|
29489
29521
|
|
|
29490
29522
|
// src/shared/schema-validation.ts
|
|
@@ -31150,7 +31182,8 @@ var CreditPurchaseReceiptDataSchema = z.strictObject({
|
|
|
31150
31182
|
title: "Certificates",
|
|
31151
31183
|
description: "Environmental certificates allocated in this purchase, each linking a credit type to collection-level purchased and retired amounts"
|
|
31152
31184
|
}),
|
|
31153
|
-
retirement_receipt: CreditPurchaseReceiptRetirementReceiptSchema.optional()
|
|
31185
|
+
retirement_receipt: CreditPurchaseReceiptRetirementReceiptSchema.optional(),
|
|
31186
|
+
original_sale: OriginalSaleReferenceSchema.optional()
|
|
31154
31187
|
}).superRefine((data, ctx) => {
|
|
31155
31188
|
validateCountMatches({
|
|
31156
31189
|
ctx,
|
|
@@ -32110,6 +32143,6 @@ var MassIDAuditSchema = BaseIpfsSchema.safeExtend({
|
|
|
32110
32143
|
data: MassIDAuditDataSchema
|
|
32111
32144
|
}).meta(MassIDAuditSchemaMeta);
|
|
32112
32145
|
|
|
32113
|
-
export { ALLOWED_BLOCKCHAIN_NETWORKS, AuditReferenceSchema, AuditResultSchema, AuditRuleDefinitionSchema, AuditRuleDefinitionsSchema, AuditRuleExecutionResultSchema, AuditRuleExecutionResultsSchema, BLOCKCHAIN_NETWORK_CONFIG, BRAZIL_COUNTRY_CODE, BRAZIL_MUNICIPALITIES, BRAZIL_MUNICIPALITIES_NAMES, BRAZIL_SUBDIVISION_CODES, BaseIpfsSchema, BlockchainChainIdSchema, BlockchainNetworkNameSchema, CertificateCollectionItemPurchaseSchema, CertificateCollectionItemRetirementSchema, CertificateIssuanceDateAttributeSchema, CertificateReferenceBaseSchema, CertificateTypeSchema, CitySchema, CollectionNameSchema, CollectionSchema, CollectionSchemaMeta, CollectionSlugSchema, ContainerTypeSchema, CoordinatesSchema, CreditAmountAttributeSchema, CreditAmountSchema, CreditPurchaseReceiptAttributesSchema, CreditPurchaseReceiptDataSchema, CreditPurchaseReceiptIpfsSchema, CreditPurchaseReceiptIpfsSchemaMeta, CreditPurchaseReceiptNameSchema, CreditPurchaseReceiptReferenceSchema, CreditPurchaseReceiptShortNameSchema, CreditPurchaseReceiptSummarySchema, CreditReferenceSchema, CreditRetirementReceiptAttributesSchema, CreditRetirementReceiptDataSchema, CreditRetirementReceiptIpfsSchema, CreditRetirementReceiptIpfsSchemaMeta, CreditRetirementReceiptNameSchema, CreditRetirementReceiptReferenceSchema, CreditRetirementReceiptShortNameSchema, CreditRetirementReceiptSummarySchema, CreditSchema, CreditSchemaMeta, CreditTokenNameSchema, CreditTokenSlugSchema, CreditTokenSymbolSchema, CreditTypeAttributeSchema, CreditTypeSchema, EPSILON, EnsDomainSchema, EthereumAddressSchema, ExternalIdSchema, ExternalUrlSchema, GasIDAttributesSchema, GasIDDataSchema, GasIDIpfsSchema, GasIDIpfsSchemaMeta, GasIDNameSchema, GasIDReferenceSchema, GasIDShortNameSchema, GasTypeSchema, HexColorSchema, IbamaWasteClassificationSchema, IpfsCidSchema, IpfsUriSchema, IpnsSchema, IsoCountryCodeSchema, IsoCountrySubdivisionCodeSchema, IsoDateSchema, IsoDateTimeSchema, LatitudeSchema, LocationSchema, LongitudeSchema, MassIDAttributesSchema, MassIDAuditDataSchema, MassIDAuditSchema, MassIDAuditSchemaMeta, MassIDAuditSummarySchema, MassIDDataSchema, MassIDIpfsSchema, MassIDIpfsSchemaMeta, MassIDNameSchema, MassIDRecyclingDateAttributeSchema, MassIDReferenceSchema, MassIDShortNameSchema, MassIDTokenIdAttributeSchema, MethodologyAttributeSchema, MethodologyDataSchema, MethodologyNameSchema, MethodologyReferenceSchema, MethodologySchema, MethodologySchemaMeta, MethodologyShortNameSchema, MethodologySlugSchema, NftAttributeSchema, NftIpfsSchema, NftTokenReferenceBaseSchema, NonEmptyStringSchema, NonNegativeFloatSchema, NonNegativeIntegerSchema, OriginCityAttributeSchema, OriginCountrySubdivisionAttributeSchema, ParticipantIdHashSchema, ParticipantRoleSchema, ParticipantSchema, PercentageSchema, PositiveFloatSchema, PositiveIntegerSchema, ReceiptIdentitySchema, RecordEnvironmentSchema, RecordSchemaTypeSchema, RecycledIDAttributesSchema, RecycledIDDataSchema, RecycledIDIpfsSchema, RecycledIDIpfsSchemaMeta, RecycledIDNameSchema, RecycledIDReferenceSchema, RecycledIDShortNameSchema, RecyclingDateAttributeSchema, ScaleTypeSchema, SchemaInfoSchema, SemanticVersionSchema, Sha256HashSchema, SlugSchema, SmartContractAddressSchema, SmartContractSchema, SourceWasteTypeAttributeSchema, SourceWeightAttributeSchema, StringifiedTokenIdSchema, TokenIdSchema, TokenReferenceBaseSchema, UnixTimestampSchema, UsdcAmountSchema, UuidSchema, VehicleTypeSchema, ViewerReferenceSchema, WastePropertiesSchema, WasteSubtypeSchema, WasteTypeSchema, WeighingCaptureMethodSchema, WeightKgSchema, buildSchemaUrl, canonicalizeForHash, createAttributeMap, createCreditPurchaseReceiptNameSchema, createCreditPurchaseReceiptShortNameSchema, createCreditRetirementReceiptNameSchema, createCreditRetirementReceiptShortNameSchema, createDateAttributeSchema, createGasIDNameSchema, createGasIDShortNameSchema, createMassIDNameSchema, createMassIDShortNameSchema, createNumericAttributeSchema, createOrderedAttributesSchema, createReceiptCollectionSchema, createRecycledIDNameSchema, createRecycledIDShortNameSchema, createWeightAttributeSchema, getSchemaBaseUrl, getSchemaVersionOrDefault, hashCanonicalJson, hashObject, nearlyEqual, uniqueArrayItems, uniqueBy, validateAttributeValue, validateAttributesForItems, validateCertificateCollectionSlugs, validateCollectionsHaveRetiredAmounts, validateCountMatches, validateCreditSlugExists, validateCreditSymbolExists, validateDateAttribute, validateDateTimeAttribute, validateFormattedName, validateLocationBrazilData, validateNumericAttributeValue, validateRetirementReceiptRequirement, validateSummaryListMatchesData, validateTokenIdInName, validateTotalMatches };
|
|
32146
|
+
export { ALLOWED_BLOCKCHAIN_NETWORKS, AuditReferenceSchema, AuditResultSchema, AuditRuleDefinitionSchema, AuditRuleDefinitionsSchema, AuditRuleExecutionResultSchema, AuditRuleExecutionResultsSchema, BLOCKCHAIN_NETWORK_CONFIG, BRAZIL_COUNTRY_CODE, BRAZIL_MUNICIPALITIES, BRAZIL_MUNICIPALITIES_NAMES, BRAZIL_SUBDIVISION_CODES, BaseIpfsSchema, BlockchainChainIdSchema, BlockchainNetworkNameSchema, CertificateCollectionItemPurchaseSchema, CertificateCollectionItemRetirementSchema, CertificateIssuanceDateAttributeSchema, CertificateReferenceBaseSchema, CertificateTypeSchema, CitySchema, CollectionNameSchema, CollectionSchema, CollectionSchemaMeta, CollectionSlugSchema, ContainerTypeSchema, CoordinatesSchema, CreditAmountAttributeSchema, CreditAmountSchema, CreditPurchaseReceiptAttributesSchema, CreditPurchaseReceiptDataSchema, CreditPurchaseReceiptIpfsSchema, CreditPurchaseReceiptIpfsSchemaMeta, CreditPurchaseReceiptNameSchema, CreditPurchaseReceiptReferenceSchema, CreditPurchaseReceiptShortNameSchema, CreditPurchaseReceiptSummarySchema, CreditReferenceSchema, CreditRetirementReceiptAttributesSchema, CreditRetirementReceiptDataSchema, CreditRetirementReceiptIpfsSchema, CreditRetirementReceiptIpfsSchemaMeta, CreditRetirementReceiptNameSchema, CreditRetirementReceiptReferenceSchema, CreditRetirementReceiptShortNameSchema, CreditRetirementReceiptSummarySchema, CreditSchema, CreditSchemaMeta, CreditTokenNameSchema, CreditTokenSlugSchema, CreditTokenSymbolSchema, CreditTypeAttributeSchema, CreditTypeSchema, EPSILON, EnsDomainSchema, EthereumAddressSchema, ExternalIdSchema, ExternalUrlSchema, GasIDAttributesSchema, GasIDDataSchema, GasIDIpfsSchema, GasIDIpfsSchemaMeta, GasIDNameSchema, GasIDReferenceSchema, GasIDShortNameSchema, GasTypeSchema, HexColorSchema, IbamaWasteClassificationSchema, IpfsCidSchema, IpfsUriSchema, IpnsSchema, IsoCountryCodeSchema, IsoCountrySubdivisionCodeSchema, IsoDateSchema, IsoDateTimeSchema, LatitudeSchema, LocationSchema, LongitudeSchema, MassIDAttributesSchema, MassIDAuditDataSchema, MassIDAuditSchema, MassIDAuditSchemaMeta, MassIDAuditSummarySchema, MassIDDataSchema, MassIDIpfsSchema, MassIDIpfsSchemaMeta, MassIDNameSchema, MassIDRecyclingDateAttributeSchema, MassIDReferenceSchema, MassIDShortNameSchema, MassIDTokenIdAttributeSchema, MethodologyAttributeSchema, MethodologyDataSchema, MethodologyNameSchema, MethodologyReferenceSchema, MethodologySchema, MethodologySchemaMeta, MethodologyShortNameSchema, MethodologySlugSchema, NftAttributeSchema, NftIpfsSchema, NftTokenReferenceBaseSchema, NonEmptyStringSchema, NonNegativeFloatSchema, NonNegativeIntegerSchema, OriginCityAttributeSchema, OriginCountrySubdivisionAttributeSchema, OriginalSaleReferenceSchema, ParticipantIdHashSchema, ParticipantRoleSchema, ParticipantSchema, PercentageSchema, PositiveFloatSchema, PositiveIntegerSchema, ReceiptIdentitySchema, RecordEnvironmentSchema, RecordSchemaTypeSchema, RecycledIDAttributesSchema, RecycledIDDataSchema, RecycledIDIpfsSchema, RecycledIDIpfsSchemaMeta, RecycledIDNameSchema, RecycledIDReferenceSchema, RecycledIDShortNameSchema, RecyclingDateAttributeSchema, ScaleTypeSchema, SchemaInfoSchema, SemanticVersionSchema, Sha256HashSchema, SlugSchema, SmartContractAddressSchema, SmartContractSchema, SourceWasteTypeAttributeSchema, SourceWeightAttributeSchema, StringifiedTokenIdSchema, TokenIdSchema, TokenReferenceBaseSchema, UnixTimestampSchema, UsdcAmountSchema, UuidSchema, VehicleTypeSchema, ViewerReferenceSchema, WastePropertiesSchema, WasteSubtypeSchema, WasteTypeSchema, WeighingCaptureMethodSchema, WeightKgSchema, buildSchemaUrl, canonicalizeForHash, createAttributeMap, createCreditPurchaseReceiptNameSchema, createCreditPurchaseReceiptShortNameSchema, createCreditRetirementReceiptNameSchema, createCreditRetirementReceiptShortNameSchema, createDateAttributeSchema, createGasIDNameSchema, createGasIDShortNameSchema, createMassIDNameSchema, createMassIDShortNameSchema, createNumericAttributeSchema, createOrderedAttributesSchema, createReceiptCollectionSchema, createRecycledIDNameSchema, createRecycledIDShortNameSchema, createWeightAttributeSchema, getSchemaBaseUrl, getSchemaVersionOrDefault, hashCanonicalJson, hashObject, nearlyEqual, uniqueArrayItems, uniqueBy, validateAttributeValue, validateAttributesForItems, validateCertificateCollectionSlugs, validateCollectionsHaveRetiredAmounts, validateCountMatches, validateCreditSlugExists, validateCreditSymbolExists, validateDateAttribute, validateDateTimeAttribute, validateFormattedName, validateLocationBrazilData, validateNumericAttributeValue, validateRetirementReceiptRequirement, validateSummaryListMatchesData, validateTokenIdInName, validateTotalMatches };
|
|
32114
32147
|
//# sourceMappingURL=index.js.map
|
|
32115
32148
|
//# sourceMappingURL=index.js.map
|