mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49:28 -07:00
Add enums
This commit is contained in:
parent
a47c88ca36
commit
0708a900ac
2 changed files with 13 additions and 2 deletions
13
src/enums.js
13
src/enums.js
|
@ -16,7 +16,7 @@ limitations under the License.
|
||||||
const ProxyPolicy = {
|
const ProxyPolicy = {
|
||||||
ADAPTIVE: 'adaptive',
|
ADAPTIVE: 'adaptive',
|
||||||
ALWAYS: 'always',
|
ALWAYS: 'always',
|
||||||
NEVER: 'nver',
|
NEVER: 'never',
|
||||||
}
|
}
|
||||||
Object.freeze(ProxyPolicy)
|
Object.freeze(ProxyPolicy)
|
||||||
|
|
||||||
|
@ -59,9 +59,18 @@ const ClaimRelation = {
|
||||||
}
|
}
|
||||||
Object.freeze(ClaimRelation)
|
Object.freeze(ClaimRelation)
|
||||||
|
|
||||||
|
const VerificationStatus = {
|
||||||
|
INIT: 0,
|
||||||
|
INPROGRESS: 1,
|
||||||
|
FAILED: 2,
|
||||||
|
COMPLETED: 3
|
||||||
|
}
|
||||||
|
Object.freeze(VerificationStatus)
|
||||||
|
|
||||||
exports.ProxyPolicy = ProxyPolicy
|
exports.ProxyPolicy = ProxyPolicy
|
||||||
exports.Fetcher = Fetcher
|
exports.Fetcher = Fetcher
|
||||||
exports.ProofAccess = ProofAccess
|
exports.ProofAccess = ProofAccess
|
||||||
exports.ProofFormat = ProofFormat
|
exports.ProofFormat = ProofFormat
|
||||||
exports.ClaimFormat = ClaimFormat
|
exports.ClaimFormat = ClaimFormat
|
||||||
exports.ClaimRelation = ClaimRelation
|
exports.ClaimRelation = ClaimRelation
|
||||||
|
exports.VerificationStatus = ClaimRelation
|
|
@ -17,10 +17,12 @@ const claims = require('./claims')
|
||||||
const keys = require('./keys')
|
const keys = require('./keys')
|
||||||
const signatures = require('./signatures')
|
const signatures = require('./signatures')
|
||||||
const serviceproviders = require('./serviceproviders')
|
const serviceproviders = require('./serviceproviders')
|
||||||
|
const enums = require('./enums')
|
||||||
const utils = require('./utils')
|
const utils = require('./utils')
|
||||||
|
|
||||||
exports.claims = claims
|
exports.claims = claims
|
||||||
exports.keys = keys
|
exports.keys = keys
|
||||||
exports.signatures = signatures
|
exports.signatures = signatures
|
||||||
exports.serviceproviders = serviceproviders
|
exports.serviceproviders = serviceproviders
|
||||||
|
exports.enums = enums
|
||||||
exports.utils = utils
|
exports.utils = utils
|
||||||
|
|
Loading…
Reference in a new issue