@trustvc/trustvc 1.7.2 → 1.7.3
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/cjs/utils/errorMessages/index.js +8 -4
- package/dist/cjs/utils/errorMessages/types.js +2 -0
- package/dist/esm/utils/errorMessages/index.js +6 -1
- package/dist/esm/utils/errorMessages/types.js +1 -0
- package/dist/types/index.d.ts +3 -1
- package/dist/types/utils/errorMessages/index.d.ts +6 -1
- package/dist/types/utils/errorMessages/types.d.ts +20 -0
- package/dist/types/utils/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var tradetrustUtils = require('@tradetrust-tt/tradetrust-utils');
|
|
4
|
+
var types = require('./types');
|
|
4
5
|
|
|
6
|
+
const errorMessages = tradetrustUtils.CONSTANTS;
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
Object.
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
exports.errorMessages = errorMessages;
|
|
9
|
+
Object.keys(types).forEach(function (k) {
|
|
10
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return types[k]; }
|
|
13
|
+
});
|
|
10
14
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/types/index.d.ts
CHANGED
|
@@ -39,14 +39,16 @@ export { errorMessageHandling, w3cCredentialStatusRevoked, w3cCredentialStatusSu
|
|
|
39
39
|
export * from '@tradetrust-tt/tradetrust-utils/constants/network';
|
|
40
40
|
export { generate12ByteNonce, generate32ByteKey, stringToUint8Array } from './utils/stringUtils/index.js';
|
|
41
41
|
export * from '@tradetrust-tt/tradetrust-utils/constants/supportedChains';
|
|
42
|
-
export {
|
|
42
|
+
export { errorMessages } from './utils/errorMessages/index.js';
|
|
43
43
|
export { WrappedOrSignedOpenAttestationDocument, getChainId, getTokenId, getTokenRegistryAddress, getTransferableRecordsCredentialStatus, isTransferableRecord } from './utils/documents/index.js';
|
|
44
|
+
export { GasStationFeeData, GasStationFunction, calculateMaxFee, gasStation, interpretFragments, scaleBigNumber } from '@tradetrust-tt/tradetrust-utils';
|
|
44
45
|
export { AwsKmsSigner, AwsKmsSignerCredentials } from '@tradetrust-tt/ethers-aws-kms-signer';
|
|
45
46
|
export { CustomDnsResolver, IDNSQueryResponse, IDNSRecord, OpenAttestationDNSTextRecord, OpenAttestationDnsDidRecord, defaultDnsResolvers, getDnsDidRecords, getDocumentStoreRecords, parseDnsDidResults, parseDocumentStoreResults, parseOpenAttestationRecord, queryDns } from '@tradetrust-tt/dnsprove';
|
|
46
47
|
export { OpenAttestationDocument, SUPPORTED_SIGNING_ALGORITHM, SchemaId, SignedWrappedDocument, WrappedDocument, getData as getDataV2, isSchemaValidationError, obfuscateDocument, v2, v3, validateSchema, __unsafe__use__it__at__your__own__risks__wrapDocument as wrapOADocumentV3, __unsafe__use__it__at__your__own__risks__wrapDocuments as wrapOADocumentsV3 } from '@tradetrust-tt/tradetrust';
|
|
47
48
|
export { DiagnoseError } from '@tradetrust-tt/tradetrust/dist/types/shared/utils';
|
|
48
49
|
export { createResolver, getIdentifier, isValid, openAttestationDidIdentityProof, utils, verificationBuilder, verify } from '@tradetrust-tt/tt-verify';
|
|
49
50
|
export { DocumentsToVerify, ErrorVerificationFragment, InvalidVerificationFragment, ProviderDetails, providerType as ProviderType, SkippedVerificationFragment, ValidVerificationFragment, VerificationBuilderOptions, VerificationFragment, VerificationFragmentStatus, VerificationFragmentType, VerificationFragmentWithData, Verifier, VerifierOptions } from '@tradetrust-tt/tt-verify/dist/types/src/types/core';
|
|
51
|
+
export { ErrorMessage, ErrorMessageTypes, ErrorMessages, MessagesDictionary } from './utils/errorMessages/types.js';
|
|
50
52
|
import '@tradetrust-tt/token-registry-v4/contracts';
|
|
51
53
|
import 'ethers';
|
|
52
54
|
import '@typechain/ethers-v5/static/common';
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { ErrorMessages } from './types.js';
|
|
2
|
+
export { ErrorMessage, ErrorMessageTypes, MessagesDictionary } from './types.js';
|
|
3
|
+
|
|
4
|
+
declare const errorMessages: ErrorMessages;
|
|
5
|
+
|
|
6
|
+
export { ErrorMessages, errorMessages };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions matching the structure in @tradetrust-tt/tradetrust-utils/VerificationErrorMessages.ts
|
|
3
|
+
*/
|
|
4
|
+
interface ErrorMessage {
|
|
5
|
+
failureTitle: string;
|
|
6
|
+
failureMessage: string;
|
|
7
|
+
successTitle: string;
|
|
8
|
+
}
|
|
9
|
+
interface MessagesDictionary {
|
|
10
|
+
[key: string]: ErrorMessage;
|
|
11
|
+
}
|
|
12
|
+
interface ErrorMessageTypes {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
}
|
|
15
|
+
interface ErrorMessages {
|
|
16
|
+
MESSAGES: MessagesDictionary;
|
|
17
|
+
TYPES: ErrorMessageTypes;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type { ErrorMessage, ErrorMessageTypes, ErrorMessages, MessagesDictionary };
|
|
@@ -2,9 +2,11 @@ export { errorMessageHandling, w3cCredentialStatusRevoked, w3cCredentialStatusSu
|
|
|
2
2
|
export * from '@tradetrust-tt/tradetrust-utils/constants/network';
|
|
3
3
|
export { generate12ByteNonce, generate32ByteKey, stringToUint8Array } from './stringUtils/index.js';
|
|
4
4
|
export * from '@tradetrust-tt/tradetrust-utils/constants/supportedChains';
|
|
5
|
-
export {
|
|
5
|
+
export { errorMessages } from './errorMessages/index.js';
|
|
6
6
|
export { WrappedOrSignedOpenAttestationDocument, getChainId, getTokenId, getTokenRegistryAddress, getTransferableRecordsCredentialStatus, isTransferableRecord } from './documents/index.js';
|
|
7
|
+
export { GasStationFeeData, GasStationFunction, calculateMaxFee, gasStation, interpretFragments, scaleBigNumber } from '@tradetrust-tt/tradetrust-utils';
|
|
7
8
|
export { AwsKmsSigner, AwsKmsSignerCredentials } from '@tradetrust-tt/ethers-aws-kms-signer';
|
|
9
|
+
export { ErrorMessage, ErrorMessageTypes, ErrorMessages, MessagesDictionary } from './errorMessages/types.js';
|
|
8
10
|
import '@tradetrust-tt/tt-verify';
|
|
9
11
|
import '@tradetrust-tt/tradetrust';
|
|
10
12
|
import '@trustvc/w3c-vc';
|