Add enums

This commit is contained in:
Yarmo Mackenbach 2021-04-15 10:21:56 +02:00
parent a47c88ca36
commit 0708a900ac
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1
2 changed files with 13 additions and 2 deletions

View file

@ -16,7 +16,7 @@ limitations under the License.
const ProxyPolicy = {
ADAPTIVE: 'adaptive',
ALWAYS: 'always',
NEVER: 'nver',
NEVER: 'never',
}
Object.freeze(ProxyPolicy)
@ -59,9 +59,18 @@ const ClaimRelation = {
}
Object.freeze(ClaimRelation)
const VerificationStatus = {
INIT: 0,
INPROGRESS: 1,
FAILED: 2,
COMPLETED: 3
}
Object.freeze(VerificationStatus)
exports.ProxyPolicy = ProxyPolicy
exports.Fetcher = Fetcher
exports.ProofAccess = ProofAccess
exports.ProofFormat = ProofFormat
exports.ClaimFormat = ClaimFormat
exports.ClaimRelation = ClaimRelation
exports.VerificationStatus = ClaimRelation

View file

@ -17,10 +17,12 @@ const claims = require('./claims')
const keys = require('./keys')
const signatures = require('./signatures')
const serviceproviders = require('./serviceproviders')
const enums = require('./enums')
const utils = require('./utils')
exports.claims = claims
exports.keys = keys
exports.signatures = signatures
exports.serviceproviders = serviceproviders
exports.enums = enums
exports.utils = utils