@polymeshassociation/polymesh-sdk 14.0.0-beta.12 → 15.0.0-alpha.13
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/CHANGELOG.md +9 -6
- package/{AccountManagement.d.ts → api/client/AccountManagement.d.ts} +8 -8
- package/api/client/AccountManagement.d.ts.map +1 -0
- package/{AccountManagement.js → api/client/AccountManagement.js} +3 -3
- package/api/client/AccountManagement.js.map +1 -0
- package/{Assets.d.ts → api/client/Assets.d.ts} +13 -2
- package/api/client/Assets.d.ts.map +1 -0
- package/{Assets.js → api/client/Assets.js} +18 -4
- package/api/client/Assets.js.map +1 -0
- package/{Claims.d.ts → api/client/Claims.d.ts} +3 -62
- package/api/client/Claims.d.ts.map +1 -0
- package/{Claims.js → api/client/Claims.js} +24 -152
- package/api/client/Claims.js.map +1 -0
- package/{Identities.d.ts → api/client/Identities.d.ts} +5 -5
- package/api/client/Identities.d.ts.map +1 -0
- package/{Identities.js → api/client/Identities.js} +2 -2
- package/api/client/Identities.js.map +1 -0
- package/{Network.d.ts → api/client/Network.d.ts} +3 -53
- package/api/client/Network.d.ts.map +1 -0
- package/{Network.js → api/client/Network.js} +5 -111
- package/api/client/Network.js.map +1 -0
- package/{Polymesh.d.ts → api/client/Polymesh.d.ts} +7 -9
- package/api/client/Polymesh.d.ts.map +1 -0
- package/{Polymesh.js → api/client/Polymesh.js} +37 -50
- package/api/client/Polymesh.js.map +1 -0
- package/{Settlements.d.ts → api/client/Settlements.d.ts} +4 -6
- package/api/client/Settlements.d.ts.map +1 -0
- package/{Settlements.js → api/client/Settlements.js} +10 -11
- package/api/client/Settlements.js.map +1 -0
- package/api/entities/Account.d.ts +2 -22
- package/api/entities/Account.d.ts.map +1 -1
- package/api/entities/Account.js +18 -69
- package/api/entities/Account.js.map +1 -1
- package/api/entities/Asset/Checkpoints/Schedules.d.ts +2 -2
- package/api/entities/Asset/Checkpoints/Schedules.d.ts.map +1 -1
- package/api/entities/Asset/Checkpoints/Schedules.js.map +1 -1
- package/api/entities/Asset/Checkpoints/index.d.ts.map +1 -1
- package/api/entities/Asset/Checkpoints/index.js.map +1 -1
- package/api/entities/Asset/Checkpoints/types.d.ts +1 -1
- package/api/entities/Asset/Checkpoints/types.d.ts.map +1 -1
- package/api/entities/Asset/Compliance/Requirements.d.ts +2 -2
- package/api/entities/Asset/Compliance/Requirements.d.ts.map +1 -1
- package/api/entities/Asset/Compliance/Requirements.js.map +1 -1
- package/api/entities/Asset/Compliance/TrustedClaimIssuers.d.ts +2 -2
- package/api/entities/Asset/Compliance/TrustedClaimIssuers.d.ts.map +1 -1
- package/api/entities/Asset/Compliance/TrustedClaimIssuers.js.map +1 -1
- package/api/entities/Asset/CorporateActions/Distributions.d.ts +2 -2
- package/api/entities/Asset/CorporateActions/Distributions.d.ts.map +1 -1
- package/api/entities/Asset/CorporateActions/Distributions.js.map +1 -1
- package/api/entities/Asset/CorporateActions/index.d.ts +5 -5
- package/api/entities/Asset/CorporateActions/index.d.ts.map +1 -1
- package/api/entities/Asset/CorporateActions/index.js +1 -1
- package/api/entities/Asset/CorporateActions/index.js.map +1 -1
- package/api/entities/Asset/Documents.d.ts +2 -2
- package/api/entities/Asset/Documents.d.ts.map +1 -1
- package/api/entities/Asset/Documents.js.map +1 -1
- package/api/entities/Asset/Offerings.d.ts +2 -2
- package/api/entities/Asset/Offerings.d.ts.map +1 -1
- package/api/entities/Asset/Offerings.js.map +1 -1
- package/api/entities/Asset/Permissions.d.ts +5 -5
- package/api/entities/Asset/Permissions.d.ts.map +1 -1
- package/api/entities/Asset/Permissions.js.map +1 -1
- package/api/entities/Asset/Settlements.d.ts.map +1 -1
- package/api/entities/Asset/Settlements.js.map +1 -1
- package/api/entities/Asset/TransferRestrictions/Count.d.ts +2 -2
- package/api/entities/Asset/TransferRestrictions/Count.d.ts.map +1 -1
- package/api/entities/Asset/TransferRestrictions/Count.js.map +1 -1
- package/api/entities/Asset/TransferRestrictions/Percentage.d.ts +2 -2
- package/api/entities/Asset/TransferRestrictions/Percentage.d.ts.map +1 -1
- package/api/entities/Asset/TransferRestrictions/Percentage.js.map +1 -1
- package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.d.ts +3 -7
- package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.d.ts.map +1 -1
- package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.js +10 -10
- package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.js.map +1 -1
- package/api/entities/Asset/index.d.ts +8 -23
- package/api/entities/Asset/index.d.ts.map +1 -1
- package/api/entities/Asset/index.js +7 -47
- package/api/entities/Asset/index.js.map +1 -1
- package/api/entities/AuthorizationRequest.d.ts +1 -2
- package/api/entities/AuthorizationRequest.d.ts.map +1 -1
- package/api/entities/Checkpoint.d.ts +1 -2
- package/api/entities/Checkpoint.d.ts.map +1 -1
- package/api/entities/Checkpoint.js.map +1 -1
- package/api/entities/CheckpointSchedule/index.d.ts +2 -3
- package/api/entities/CheckpointSchedule/index.d.ts.map +1 -1
- package/api/entities/CorporateAction.d.ts +2 -2
- package/api/entities/CorporateAction.d.ts.map +1 -1
- package/api/entities/CorporateAction.js.map +1 -1
- package/api/entities/CorporateActionBase/index.d.ts +2 -2
- package/api/entities/CorporateActionBase/index.d.ts.map +1 -1
- package/api/entities/CorporateActionBase/index.js +2 -2
- package/api/entities/CorporateActionBase/index.js.map +1 -1
- package/api/entities/CustomPermissionGroup.d.ts +2 -2
- package/api/entities/CustomPermissionGroup.d.ts.map +1 -1
- package/api/entities/CustomPermissionGroup.js.map +1 -1
- package/api/entities/DefaultTrustedClaimIssuer.d.ts +0 -7
- package/api/entities/DefaultTrustedClaimIssuer.d.ts.map +1 -1
- package/api/entities/DefaultTrustedClaimIssuer.js +0 -17
- package/api/entities/DefaultTrustedClaimIssuer.js.map +1 -1
- package/api/entities/DividendDistribution/index.d.ts +3 -20
- package/api/entities/DividendDistribution/index.d.ts.map +1 -1
- package/api/entities/DividendDistribution/index.js +0 -69
- package/api/entities/DividendDistribution/index.js.map +1 -1
- package/api/entities/Identity/AssetPermissions.d.ts +2 -30
- package/api/entities/Identity/AssetPermissions.d.ts.map +1 -1
- package/api/entities/Identity/AssetPermissions.js +3 -55
- package/api/entities/Identity/AssetPermissions.js.map +1 -1
- package/api/entities/Identity/index.d.ts +7 -20
- package/api/entities/Identity/index.d.ts.map +1 -1
- package/api/entities/Identity/index.js +43 -52
- package/api/entities/Identity/index.js.map +1 -1
- package/api/entities/Instruction/index.d.ts +0 -11
- package/api/entities/Instruction/index.d.ts.map +1 -1
- package/api/entities/Instruction/index.js +4 -54
- package/api/entities/Instruction/index.js.map +1 -1
- package/api/entities/NumberedPortfolio.d.ts +2 -9
- package/api/entities/NumberedPortfolio.d.ts.map +1 -1
- package/api/entities/NumberedPortfolio.js +1 -18
- package/api/entities/NumberedPortfolio.js.map +1 -1
- package/api/entities/Offering/index.d.ts +4 -18
- package/api/entities/Offering/index.d.ts.map +1 -1
- package/api/entities/Offering/index.js +1 -33
- package/api/entities/Offering/index.js.map +1 -1
- package/api/entities/Portfolio/index.d.ts +6 -19
- package/api/entities/Portfolio/index.d.ts.map +1 -1
- package/api/entities/Portfolio/index.js +5 -94
- package/api/entities/Portfolio/index.js.map +1 -1
- package/api/entities/Subsidy/index.d.ts +2 -2
- package/api/entities/Subsidy/index.d.ts.map +1 -1
- package/api/entities/Subsidy/index.js +9 -10
- package/api/entities/Subsidy/index.js.map +1 -1
- package/api/entities/TickerReservation/index.d.ts +5 -5
- package/api/entities/TickerReservation/index.d.ts.map +1 -1
- package/api/entities/TickerReservation/index.js +1 -1
- package/api/entities/TickerReservation/index.js.map +1 -1
- package/api/entities/Venue/index.d.ts +2 -2
- package/api/entities/Venue/index.d.ts.map +1 -1
- package/api/entities/Venue/index.js +2 -2
- package/api/entities/Venue/index.js.map +1 -1
- package/api/entities/common/namespaces/Authorizations.d.ts +2 -2
- package/api/entities/common/namespaces/Authorizations.d.ts.map +1 -1
- package/api/entities/common/namespaces/Authorizations.js +1 -1
- package/api/entities/common/namespaces/Authorizations.js.map +1 -1
- package/api/procedures/addAssetRequirement.d.ts +1 -9
- package/api/procedures/addAssetRequirement.d.ts.map +1 -1
- package/api/procedures/addAssetRequirement.js +1 -1
- package/api/procedures/addAssetRequirement.js.map +1 -1
- package/api/procedures/addInstruction.d.ts +2 -34
- package/api/procedures/addInstruction.d.ts.map +1 -1
- package/api/procedures/addInstruction.js +9 -10
- package/api/procedures/addInstruction.js.map +1 -1
- package/api/procedures/addInvestorUniquenessClaim.d.ts +2 -9
- package/api/procedures/addInvestorUniquenessClaim.d.ts.map +1 -1
- package/api/procedures/addInvestorUniquenessClaim.js +1 -1
- package/api/procedures/addInvestorUniquenessClaim.js.map +1 -1
- package/api/procedures/addTransferRestriction.d.ts +14 -10
- package/api/procedures/addTransferRestriction.d.ts.map +1 -1
- package/api/procedures/addTransferRestriction.js +98 -30
- package/api/procedures/addTransferRestriction.js.map +1 -1
- package/api/procedures/claimClassicTicker.d.ts +1 -12
- package/api/procedures/claimClassicTicker.d.ts.map +1 -1
- package/api/procedures/claimClassicTicker.js +1 -1
- package/api/procedures/claimClassicTicker.js.map +1 -1
- package/api/procedures/configureDividendDistribution.d.ts +2 -34
- package/api/procedures/configureDividendDistribution.d.ts.map +1 -1
- package/api/procedures/configureDividendDistribution.js +31 -17
- package/api/procedures/configureDividendDistribution.js.map +1 -1
- package/api/procedures/controllerTransfer.d.ts +1 -12
- package/api/procedures/controllerTransfer.d.ts.map +1 -1
- package/api/procedures/controllerTransfer.js.map +1 -1
- package/api/procedures/createAsset.d.ts +3 -43
- package/api/procedures/createAsset.d.ts.map +1 -1
- package/api/procedures/createAsset.js +114 -54
- package/api/procedures/createAsset.js.map +1 -1
- package/api/procedures/createCheckpointSchedule.d.ts +1 -17
- package/api/procedures/createCheckpointSchedule.d.ts.map +1 -1
- package/api/procedures/createCheckpointSchedule.js.map +1 -1
- package/api/procedures/createGroup.d.ts +2 -14
- package/api/procedures/createGroup.d.ts.map +1 -1
- package/api/procedures/createGroup.js +4 -28
- package/api/procedures/createGroup.js.map +1 -1
- package/api/procedures/createPortfolio.js +1 -1
- package/api/procedures/createPortfolio.js.map +1 -1
- package/api/procedures/createVenue.d.ts +1 -5
- package/api/procedures/createVenue.d.ts.map +1 -1
- package/api/procedures/createVenue.js +1 -1
- package/api/procedures/createVenue.js.map +1 -1
- package/api/procedures/investInOffering.d.ts +2 -20
- package/api/procedures/investInOffering.d.ts.map +1 -1
- package/api/procedures/investInOffering.js.map +1 -1
- package/api/procedures/inviteAccount.d.ts +2 -7
- package/api/procedures/inviteAccount.d.ts.map +1 -1
- package/api/procedures/inviteAccount.js.map +1 -1
- package/api/procedures/inviteExternalAgent.d.ts +4 -16
- package/api/procedures/inviteExternalAgent.d.ts.map +1 -1
- package/api/procedures/inviteExternalAgent.js +33 -13
- package/api/procedures/inviteExternalAgent.js.map +1 -1
- package/api/procedures/launchOffering.d.ts +3 -46
- package/api/procedures/launchOffering.d.ts.map +1 -1
- package/api/procedures/launchOffering.js +1 -1
- package/api/procedures/launchOffering.js.map +1 -1
- package/api/procedures/leaveIdentity.d.ts.map +1 -1
- package/api/procedures/leaveIdentity.js +3 -4
- package/api/procedures/leaveIdentity.js.map +1 -1
- package/api/procedures/linkCaDocs.d.ts +1 -7
- package/api/procedures/linkCaDocs.d.ts.map +1 -1
- package/api/procedures/linkCaDocs.js.map +1 -1
- package/api/procedures/modifyAllowance.d.ts +2 -23
- package/api/procedures/modifyAllowance.d.ts.map +1 -1
- package/api/procedures/modifyAllowance.js +5 -6
- package/api/procedures/modifyAllowance.js.map +1 -1
- package/api/procedures/modifyAsset.d.ts +1 -25
- package/api/procedures/modifyAsset.d.ts.map +1 -1
- package/api/procedures/modifyAsset.js +4 -2
- package/api/procedures/modifyAsset.js.map +1 -1
- package/api/procedures/modifyAssetTrustedClaimIssuers.d.ts +2 -11
- package/api/procedures/modifyAssetTrustedClaimIssuers.d.ts.map +1 -1
- package/api/procedures/modifyAssetTrustedClaimIssuers.js.map +1 -1
- package/api/procedures/modifyCaCheckpoint.d.ts +1 -7
- package/api/procedures/modifyCaCheckpoint.d.ts.map +1 -1
- package/api/procedures/modifyCaCheckpoint.js.map +1 -1
- package/api/procedures/modifyCaDefaultConfig.d.ts +1 -15
- package/api/procedures/modifyCaDefaultConfig.d.ts.map +1 -1
- package/api/procedures/modifyCaDefaultConfig.js +8 -10
- package/api/procedures/modifyCaDefaultConfig.js.map +1 -1
- package/api/procedures/modifyClaims.d.ts +2 -25
- package/api/procedures/modifyClaims.d.ts.map +1 -1
- package/api/procedures/modifyClaims.js +8 -9
- package/api/procedures/modifyClaims.js.map +1 -1
- package/api/procedures/modifyComplianceRequirement.d.ts +1 -14
- package/api/procedures/modifyComplianceRequirement.d.ts.map +1 -1
- package/api/procedures/modifyComplianceRequirement.js.map +1 -1
- package/api/procedures/modifyCorporateActionsAgent.d.ts +2 -11
- package/api/procedures/modifyCorporateActionsAgent.d.ts.map +1 -1
- package/api/procedures/modifyCorporateActionsAgent.js.map +1 -1
- package/api/procedures/modifyInstructionAffirmation.d.ts +2 -9
- package/api/procedures/modifyInstructionAffirmation.d.ts.map +1 -1
- package/api/procedures/modifyInstructionAffirmation.js +5 -6
- package/api/procedures/modifyInstructionAffirmation.js.map +1 -1
- package/api/procedures/modifyOfferingTimes.d.ts +1 -16
- package/api/procedures/modifyOfferingTimes.d.ts.map +1 -1
- package/api/procedures/modifyOfferingTimes.js.map +1 -1
- package/api/procedures/modifyPrimaryIssuanceAgent.d.ts +2 -11
- package/api/procedures/modifyPrimaryIssuanceAgent.d.ts.map +1 -1
- package/api/procedures/modifyPrimaryIssuanceAgent.js.map +1 -1
- package/api/procedures/modifySignerPermissions.d.ts +1 -10
- package/api/procedures/modifySignerPermissions.d.ts.map +1 -1
- package/api/procedures/modifySignerPermissions.js.map +1 -1
- package/api/procedures/modifyVenue.d.ts +1 -11
- package/api/procedures/modifyVenue.d.ts.map +1 -1
- package/api/procedures/modifyVenue.js +1 -1
- package/api/procedures/modifyVenue.js.map +1 -1
- package/api/procedures/moveFunds.d.ts +1 -12
- package/api/procedures/moveFunds.d.ts.map +1 -1
- package/api/procedures/moveFunds.js.map +1 -1
- package/api/procedures/payDividends.d.ts +2 -4
- package/api/procedures/payDividends.d.ts.map +1 -1
- package/api/procedures/payDividends.js.map +1 -1
- package/api/procedures/quitCustody.d.ts +2 -1
- package/api/procedures/quitCustody.d.ts.map +1 -1
- package/api/procedures/quitCustody.js.map +1 -1
- package/api/procedures/redeemTokens.d.ts +1 -4
- package/api/procedures/redeemTokens.d.ts.map +1 -1
- package/api/procedures/redeemTokens.js.map +1 -1
- package/api/procedures/registerIdentity.d.ts +2 -9
- package/api/procedures/registerIdentity.d.ts.map +1 -1
- package/api/procedures/registerIdentity.js.map +1 -1
- package/api/procedures/removeAssetRequirement.d.ts +1 -5
- package/api/procedures/removeAssetRequirement.d.ts.map +1 -1
- package/api/procedures/removeAssetRequirement.js.map +1 -1
- package/api/procedures/removeCheckpointSchedule.d.ts +2 -8
- package/api/procedures/removeCheckpointSchedule.d.ts.map +1 -1
- package/api/procedures/removeCheckpointSchedule.js.map +1 -1
- package/api/procedures/removeCorporateAction.d.ts +2 -5
- package/api/procedures/removeCorporateAction.d.ts.map +1 -1
- package/api/procedures/removeCorporateAction.js +1 -1
- package/api/procedures/removeCorporateAction.js.map +1 -1
- package/api/procedures/removeExternalAgent.d.ts +2 -4
- package/api/procedures/removeExternalAgent.d.ts.map +1 -1
- package/api/procedures/removeExternalAgent.js.map +1 -1
- package/api/procedures/removeSecondaryAccounts.d.ts +1 -4
- package/api/procedures/removeSecondaryAccounts.d.ts.map +1 -1
- package/api/procedures/removeSecondaryAccounts.js +1 -1
- package/api/procedures/removeSecondaryAccounts.js.map +1 -1
- package/api/procedures/renamePortfolio.d.ts +1 -3
- package/api/procedures/renamePortfolio.d.ts.map +1 -1
- package/api/procedures/renamePortfolio.js +1 -1
- package/api/procedures/renamePortfolio.js.map +1 -1
- package/api/procedures/reserveTicker.d.ts +1 -7
- package/api/procedures/reserveTicker.d.ts.map +1 -1
- package/api/procedures/reserveTicker.js.map +1 -1
- package/api/procedures/setAssetDocuments.d.ts +1 -7
- package/api/procedures/setAssetDocuments.d.ts.map +1 -1
- package/api/procedures/setAssetDocuments.js.map +1 -1
- package/api/procedures/setAssetRequirements.d.ts +1 -8
- package/api/procedures/setAssetRequirements.d.ts.map +1 -1
- package/api/procedures/setAssetRequirements.js.map +1 -1
- package/api/procedures/setCustodian.d.ts +2 -5
- package/api/procedures/setCustodian.d.ts.map +1 -1
- package/api/procedures/setCustodian.js.map +1 -1
- package/api/procedures/setGroupPermissions.d.ts +1 -8
- package/api/procedures/setGroupPermissions.d.ts.map +1 -1
- package/api/procedures/setGroupPermissions.js.map +1 -1
- package/api/procedures/setPermissionGroup.d.ts +1 -26
- package/api/procedures/setPermissionGroup.d.ts.map +1 -1
- package/api/procedures/setPermissionGroup.js +42 -23
- package/api/procedures/setPermissionGroup.js.map +1 -1
- package/api/procedures/setTransferRestrictions.d.ts +7 -22
- package/api/procedures/setTransferRestrictions.d.ts.map +1 -1
- package/api/procedures/setTransferRestrictions.js +133 -122
- package/api/procedures/setTransferRestrictions.js.map +1 -1
- package/api/procedures/subsidizeAccount.d.ts +2 -12
- package/api/procedures/subsidizeAccount.d.ts.map +1 -1
- package/api/procedures/subsidizeAccount.js.map +1 -1
- package/api/procedures/transferAssetOwnership.d.ts +2 -8
- package/api/procedures/transferAssetOwnership.d.ts.map +1 -1
- package/api/procedures/transferAssetOwnership.js.map +1 -1
- package/api/procedures/transferPolyx.d.ts +2 -16
- package/api/procedures/transferPolyx.d.ts.map +1 -1
- package/api/procedures/transferPolyx.js.map +1 -1
- package/api/procedures/transferTickerOwnership.d.ts +2 -8
- package/api/procedures/transferTickerOwnership.d.ts.map +1 -1
- package/api/procedures/transferTickerOwnership.js.map +1 -1
- package/api/procedures/types.d.ts +648 -0
- package/api/procedures/types.d.ts.map +1 -0
- package/api/procedures/types.js +27 -0
- package/api/procedures/types.js.map +1 -0
- package/api/procedures/utils.d.ts +21 -7
- package/api/procedures/utils.d.ts.map +1 -1
- package/api/procedures/utils.js +59 -28
- package/api/procedures/utils.js.map +1 -1
- package/api/procedures/waivePermissions.d.ts +1 -3
- package/api/procedures/waivePermissions.d.ts.map +1 -1
- package/api/procedures/waivePermissions.js.map +1 -1
- package/base/Context.d.ts +3 -69
- package/base/Context.d.ts.map +1 -1
- package/base/Context.js +44 -207
- package/base/Context.js.map +1 -1
- package/base/PolymeshTransactionBase.d.ts +4 -0
- package/base/PolymeshTransactionBase.d.ts.map +1 -1
- package/base/PolymeshTransactionBase.js +7 -0
- package/base/PolymeshTransactionBase.js.map +1 -1
- package/generated/types.d.ts +512 -0
- package/generated/types.d.ts.map +1 -1
- package/generated/types.js +557 -1
- package/generated/types.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/internal.d.ts +51 -52
- package/internal.d.ts.map +1 -1
- package/internal.js +3 -5
- package/internal.js.map +1 -1
- package/middleware/types.d.ts +1 -0
- package/middleware/types.d.ts.map +1 -1
- package/middleware/types.js +1 -0
- package/middleware/types.js.map +1 -1
- package/npm-package/polymeshassociation-polymesh-sdk-15.0.0-alpha.13.tgz +0 -0
- package/package.json +72 -14
- package/polkadot/asset/definitions.js +12 -12
- package/polkadot/asset/definitions.js.map +1 -1
- package/polkadot/augment-api-consts.d.ts +127 -43
- package/polkadot/augment-api-consts.d.ts.map +1 -1
- package/polkadot/augment-api-errors.d.ts +286 -16
- package/polkadot/augment-api-errors.d.ts.map +1 -1
- package/polkadot/augment-api-events.d.ts +1102 -465
- package/polkadot/augment-api-events.d.ts.map +1 -1
- package/polkadot/augment-api-query.d.ts +746 -545
- package/polkadot/augment-api-query.d.ts.map +1 -1
- package/polkadot/augment-api-rpc.d.ts +50 -17
- package/polkadot/augment-api-rpc.d.ts.map +1 -1
- package/polkadot/augment-api-tx.d.ts +1445 -1003
- package/polkadot/augment-api-tx.d.ts.map +1 -1
- package/polkadot/augment-api.d.ts +0 -1
- package/polkadot/augment-api.d.ts.map +1 -1
- package/polkadot/augment-api.js +0 -1
- package/polkadot/augment-api.js.map +1 -1
- package/polkadot/augment-types.d.ts +213 -2220
- package/polkadot/augment-types.d.ts.map +1 -1
- package/polkadot/compliance/definitions.js +2 -2
- package/polkadot/compliance/definitions.js.map +1 -1
- package/polkadot/identity/definitions.js +4 -4
- package/polkadot/identity/definitions.js.map +1 -1
- package/polkadot/lookup.d.ts +4439 -0
- package/polkadot/lookup.d.ts.map +1 -0
- package/polkadot/lookup.js +5125 -0
- package/polkadot/lookup.js.map +1 -0
- package/polkadot/polymesh/definitions.d.ts +106 -36
- package/polkadot/polymesh/definitions.d.ts.map +1 -1
- package/polkadot/polymesh/definitions.js +111 -41
- package/polkadot/polymesh/definitions.js.map +1 -1
- package/polkadot/polymesh/types.d.ts +216 -61
- package/polkadot/polymesh/types.d.ts.map +1 -1
- package/polkadot/registry.d.ts +385 -0
- package/polkadot/registry.d.ts.map +1 -0
- package/polkadot/registry.js +5 -0
- package/polkadot/registry.js.map +1 -0
- package/polkadot/schema.d.ts +106 -36
- package/polkadot/schema.d.ts.map +1 -1
- package/polkadot/schema.js +129 -59
- package/polkadot/schema.js.map +1 -1
- package/polkadot/types-lookup.d.ts +5578 -0
- package/polkadot/types-lookup.d.ts.map +1 -0
- package/polkadot/types-lookup.js +4 -0
- package/polkadot/types-lookup.js.map +1 -0
- package/polkadot/types.d.ts +0 -464
- package/polkadot/types.d.ts.map +1 -1
- package/polkadot/types.js +0 -505
- package/polkadot/types.js.map +1 -1
- package/types/index.d.ts +31 -36
- package/types/index.d.ts.map +1 -1
- package/types/index.js +11 -7
- package/types/index.js.map +1 -1
- package/types/internal.d.ts +13 -28
- package/types/internal.d.ts.map +1 -1
- package/types/internal.js +6 -19
- package/types/internal.js.map +1 -1
- package/types/utils/index.d.ts +11 -10
- package/types/utils/index.d.ts.map +1 -1
- package/types/utils/index.js +2 -0
- package/types/utils/index.js.map +1 -1
- package/utils/constants.d.ts +13 -2
- package/utils/constants.d.ts.map +1 -1
- package/utils/constants.js +14 -3
- package/utils/constants.js.map +1 -1
- package/utils/conversion.d.ts +112 -94
- package/utils/conversion.d.ts.map +1 -1
- package/utils/conversion.js +572 -525
- package/utils/conversion.js.map +1 -1
- package/utils/index.d.ts +1 -1
- package/utils/index.d.ts.map +1 -1
- package/utils/index.js +2 -1
- package/utils/index.js.map +1 -1
- package/utils/internal.d.ts +4 -4
- package/utils/internal.d.ts.map +1 -1
- package/utils/internal.js +90 -15
- package/utils/internal.js.map +1 -1
- package/utils/typeguards.d.ts.map +1 -1
- package/utils/typeguards.js +1 -0
- package/utils/typeguards.js.map +1 -1
- package/AccountManagement.d.ts.map +0 -1
- package/AccountManagement.js.map +0 -1
- package/Assets.d.ts.map +0 -1
- package/Assets.js.map +0 -1
- package/Claims.d.ts.map +0 -1
- package/Claims.js.map +0 -1
- package/Identities.d.ts.map +0 -1
- package/Identities.js.map +0 -1
- package/Network.d.ts.map +0 -1
- package/Network.js.map +0 -1
- package/Polymesh.d.ts.map +0 -1
- package/Polymesh.js.map +0 -1
- package/Settlements.d.ts.map +0 -1
- package/Settlements.js.map +0 -1
- package/api/procedures/initiateCorporateAction.d.ts +0 -60
- package/api/procedures/initiateCorporateAction.d.ts.map +0 -1
- package/api/procedures/initiateCorporateAction.js +0 -107
- package/api/procedures/initiateCorporateAction.js.map +0 -1
- package/middleware/queriesV2.d.ts +0 -143
- package/middleware/queriesV2.d.ts.map +0 -1
- package/middleware/queriesV2.js +0 -798
- package/middleware/queriesV2.js.map +0 -1
- package/middleware/typesV2.d.ts +0 -25495
- package/middleware/typesV2.d.ts.map +0 -1
- package/middleware/typesV2.js +0 -2013
- package/middleware/typesV2.js.map +0 -1
- package/npm-package/polymeshassociation-polymesh-sdk-14.0.0-beta.12.tgz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
# [
|
|
1
|
+
# [15.0.0-alpha.13](https://github.com/PolymathNetwork/polymesh-sdk/compare/v15.0.0-alpha.12...v15.0.0-alpha.13) (2022-07-07)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Code Refactoring
|
|
5
5
|
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
* 💡 GetReturnType to GetTransferRestrictionReturnType ([cff18a5](https://github.com/PolymathNetwork/polymesh-sdk/commit/cff18a5d6b4b2aa3a7271eb560b002370089f4ae))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* 🧨 Type `GetReturnType<T>` is now renamed to
|
|
12
|
+
`GetTransferRestrictionReturnType<T>`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Account, AuthorizationRequest, Context
|
|
2
|
-
import { AccountBalance, NoArgsProcedureMethod, ProcedureMethod, SubCallback, UnsubCallback } from "
|
|
1
|
+
import { Account, AuthorizationRequest, Context } from "../../internal";
|
|
2
|
+
import { AccountBalance, InviteAccountParams, ModifySignerPermissionsParams, NoArgsProcedureMethod, ProcedureMethod, RemoveSecondaryAccountsParams, SubCallback, SubsidizeAccountParams, UnsubCallback } from "../../types";
|
|
3
3
|
/**
|
|
4
4
|
* Handles functionality related to Account Management
|
|
5
5
|
*/
|
|
@@ -34,9 +34,9 @@ export declare class AccountManagement {
|
|
|
34
34
|
/**
|
|
35
35
|
* Send an invitation to an Account to join the signing Identity as a secondary Account
|
|
36
36
|
*
|
|
37
|
-
* @note this will create an {@link AuthorizationRequest | Authorization Request} which has to be accepted by the `targetAccount`.
|
|
38
|
-
* An {@link Account} or {@link Identity} can fetch its pending Authorization Requests by calling {@link Authorizations.getReceived | authorizations.getReceived}.
|
|
39
|
-
* Also, an Account or Identity can directly fetch the details of an Authorization Request by calling {@link Authorizations.getOne | authorizations.getOne}
|
|
37
|
+
* @note this will create an {@link api/entities/AuthorizationRequest!AuthorizationRequest | Authorization Request} which has to be accepted by the `targetAccount`.
|
|
38
|
+
* An {@link api/entities/Account!Account} or {@link api/entities/Identity!Identity} can fetch its pending Authorization Requests by calling {@link api/entities/common/namespaces/Authorizations!Authorizations.getReceived | authorizations.getReceived}.
|
|
39
|
+
* Also, an Account or Identity can directly fetch the details of an Authorization Request by calling {@link api/entities/common/namespaces/Authorizations!Authorizations.getOne | authorizations.getOne}
|
|
40
40
|
*/
|
|
41
41
|
inviteAccount: ProcedureMethod<InviteAccountParams, AuthorizationRequest>;
|
|
42
42
|
/**
|
|
@@ -50,9 +50,9 @@ export declare class AccountManagement {
|
|
|
50
50
|
/**
|
|
51
51
|
* Send an Authorization Request to an Account to subsidize its transaction fees
|
|
52
52
|
*
|
|
53
|
-
* @note this will create an {@link AuthorizationRequest | Authorization Request} which has to be accepted by the `beneficiary` Account.
|
|
54
|
-
* An {@link Account} or {@link Identity} can fetch its pending Authorization Requests by calling {@link Authorizations.getReceived | authorizations.getReceived}.
|
|
55
|
-
* Also, an Account or Identity can directly fetch the details of an Authorization Request by calling {@link Authorizations.getOne | authorizations.getOne}
|
|
53
|
+
* @note this will create an {@link api/entities/AuthorizationRequest!AuthorizationRequest | Authorization Request} which has to be accepted by the `beneficiary` Account.
|
|
54
|
+
* An {@link api/entities/Account!Account} or {@link api/entities/Identity!Identity} can fetch its pending Authorization Requests by calling {@link api/entities/common/namespaces/Authorizations!Authorizations.getReceived | authorizations.getReceived}.
|
|
55
|
+
* Also, an Account or Identity can directly fetch the details of an Authorization Request by calling {@link api/entities/common/namespaces/Authorizations!Authorizations.getOne | authorizations.getOne}
|
|
56
56
|
*/
|
|
57
57
|
subsidizeAccount: ProcedureMethod<SubsidizeAccountParams, AuthorizationRequest>;
|
|
58
58
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountManagement.d.ts","sourceRoot":"","sources":["../../../src/api/client/AccountManagement.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,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,EACnC,QAAQ,EAAE,WAAW,CAAC,cAAc,CAAC,GACpC,OAAO,CAAC,aAAa,CAAC;IAsCzB;;OAEG;IACI,UAAU,CAAC,IAAI,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO;IAMrD;;OAEG;IACI,iBAAiB,IAAI,OAAO,GAAG,IAAI;IAQ1C;;;;OAIG;IACU,kBAAkB,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;CAGtD"}
|
|
@@ -10,9 +10,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AccountManagement = void 0;
|
|
13
|
-
const internal_1 = require("
|
|
14
|
-
const types_1 = require("
|
|
15
|
-
const internal_2 = require("
|
|
13
|
+
const internal_1 = require("../../internal");
|
|
14
|
+
const types_1 = require("../../types");
|
|
15
|
+
const internal_2 = require("../../utils/internal");
|
|
16
16
|
/**
|
|
17
17
|
* Handles functionality related to Account Management
|
|
18
18
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountManagement.js","sourceRoot":"","sources":["../../../src/api/client/AccountManagement.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAWoB;AACpB,uCAWiB;AACjB,mDAAyD;AAEzD;;GAEG;AACH,MAAa,iBAAiB;IAG5B;;OAEG;IACH,YAAY,OAAgB;QAC1B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAEvB,IAAI,CAAC,aAAa,GAAG,IAAA,gCAAqB,EACxC,EAAE,mBAAmB,EAAE,GAAG,EAAE,CAAC,CAAC,wBAAa,EAAE,SAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,EACzE,OAAO,CACR,CAAC;QACF,IAAI,CAAC,uBAAuB,GAAG,IAAA,gCAAqB,EAClD;YACE,mBAAmB,EAA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,CAAC,IAAyB;QACzC,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QAEzB,OAAO,IAAI,kBAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACpC,CAAC;IAED;;OAEG;IACI,iBAAiB;QACtB,IAAI;YACF,OAAO,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,CAAC;SACzC;QAAC,OAAO,GAAG,EAAE;YACZ,OAAO,IAAI,CAAC;SACb;IACH,CAAC;IAED;;;;OAIG;IACU,kBAAkB;;YAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC;QAC3C,CAAC;KAAA;CACF;AAzMD,8CAyMC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Asset,
|
|
2
|
-
import { ProcedureMethod } from "
|
|
1
|
+
import { Asset, Context, Identity, TickerReservation } from "../../internal";
|
|
2
|
+
import { ClaimClassicTickerParams, CreateAssetWithTickerParams, ProcedureMethod, ReserveTickerParams, SubCallback, UnsubCallback } from "../../types";
|
|
3
3
|
/**
|
|
4
4
|
* Handles all Asset related functionality
|
|
5
5
|
*/
|
|
@@ -27,6 +27,17 @@ export declare class Assets {
|
|
|
27
27
|
* - Ticker Owner
|
|
28
28
|
*/
|
|
29
29
|
createAsset: ProcedureMethod<CreateAssetWithTickerParams, Asset>;
|
|
30
|
+
/**
|
|
31
|
+
* Check if a ticker hasn't been reserved
|
|
32
|
+
*
|
|
33
|
+
* @note can be subscribed to
|
|
34
|
+
*/
|
|
35
|
+
isTickerAvailable(args: {
|
|
36
|
+
ticker: string;
|
|
37
|
+
}): Promise<boolean>;
|
|
38
|
+
isTickerAvailable(args: {
|
|
39
|
+
ticker: string;
|
|
40
|
+
}, callback: SubCallback<boolean>): Promise<UnsubCallback>;
|
|
30
41
|
/**
|
|
31
42
|
* Retrieve all the ticker reservations currently owned by an Identity. This doesn't include Assets that
|
|
32
43
|
* have already been launched
|
|
@@ -0,0 +1 @@
|
|
|
1
|
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AAE,CAAC;IA2B7E;;;;OAIG;IACU,QAAQ,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,KAAK,CAAC;CAehE"}
|
|
@@ -10,10 +10,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Assets = void 0;
|
|
13
|
-
const internal_1 = require("
|
|
14
|
-
const types_1 = require("
|
|
15
|
-
const conversion_1 = require("
|
|
16
|
-
const internal_2 = require("
|
|
13
|
+
const internal_1 = require("../../internal");
|
|
14
|
+
const types_1 = require("../../types");
|
|
15
|
+
const conversion_1 = require("../../utils/conversion");
|
|
16
|
+
const internal_2 = require("../../utils/internal");
|
|
17
17
|
/**
|
|
18
18
|
* Handles all Asset related functionality
|
|
19
19
|
*/
|
|
@@ -33,6 +33,20 @@ class Assets {
|
|
|
33
33
|
getProcedureAndArgs: args => [internal_1.createAsset, Object.assign({ reservationRequired: false }, args)],
|
|
34
34
|
}, context);
|
|
35
35
|
}
|
|
36
|
+
// eslint-disable-next-line require-jsdoc
|
|
37
|
+
isTickerAvailable(args, callback) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
const reservation = new internal_1.TickerReservation(args, this.context);
|
|
40
|
+
if (callback) {
|
|
41
|
+
return reservation.details(({ status: reservationStatus }) => {
|
|
42
|
+
// eslint-disable-next-line node/no-callback-literal, @typescript-eslint/no-floating-promises -- callback errors should be handled by the caller
|
|
43
|
+
callback(reservationStatus === types_1.TickerReservationStatus.Free);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
const { status } = yield reservation.details();
|
|
47
|
+
return status === types_1.TickerReservationStatus.Free;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
36
50
|
/**
|
|
37
51
|
* Retrieve all the ticker reservations currently owned by an Identity. This doesn't include Assets that
|
|
38
52
|
* have already been launched
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Assets.js","sourceRoot":"","sources":["../../../src/api/client/Assets.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CASoB;AACpB,uCASiB;AACjB,uDAAwE;AACxE,mDAAmF;AAEnF;;GAEG;AACH,MAAa,MAAM;IAGjB;;OAEG;IACH,YAAY,OAAgB;QAC1B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAEvB,IAAI,CAAC,aAAa,GAAG,IAAA,gCAAqB,EACxC;YACE,mBAAmB,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,wBAAa,EAAE,IAAI,CAAC;SACnD,EACD,OAAO,CACR,CAAC;QAEF,IAAI,CAAC,kBAAkB,GAAG,IAAA,gCAAqB,EAC7C;YACE,mBAAmB,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,6BAAkB,EAAE,IAAI,CAAC;SACxD,EACD,OAAO,CACR,CAAC;QAEF,IAAI,CAAC,WAAW,GAAG,IAAA,gCAAqB,EACtC;YACE,mBAAmB,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,sBAAW,kBAAI,mBAAmB,EAAE,KAAK,IAAK,IAAI,EAAG;SACpF,EACD,OAAO,CACR,CAAC;IACJ,CAAC;IAkCD,yCAAyC;IAC5B,iBAAiB,CAC5B,IAAwB,EACxB,QAA+B;;YAE/B,MAAM,WAAW,GAAG,IAAI,4BAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;YAE9D,IAAI,QAAQ,EAAE;gBACZ,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE,EAAE;oBAC3D,gJAAgJ;oBAChJ,QAAQ,CAAC,iBAAiB,KAAK,+BAAuB,CAAC,IAAI,CAAC,CAAC;gBAC/D,CAAC,CAAC,CAAC;aACJ;YACD,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,WAAW,CAAC,OAAO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G;iBACrD,CAAC,CAAC;aACJ;YAED,OAAO,KAAK,CAAC;QACf,CAAC;KAAA;CACF;AAxLD,wBAwLC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import BigNumber from 'bignumber.js';
|
|
2
|
-
import {
|
|
3
|
-
import { CddClaim, ClaimData, ClaimScope, ClaimType, IdentityWithClaims, InvestorUniquenessClaim, ProcedureMethod, ResultSet, Scope } from "
|
|
2
|
+
import { Context, Identity } from "../../internal";
|
|
3
|
+
import { AddInvestorUniquenessClaimParams, CddClaim, ClaimData, ClaimScope, ClaimType, IdentityWithClaims, InvestorUniquenessClaim, ModifyClaimsParams, ProcedureMethod, ResultSet, Scope } from "../../types";
|
|
4
4
|
/**
|
|
5
5
|
* Handles all Claims related functionality
|
|
6
6
|
*/
|
|
@@ -50,25 +50,10 @@ export declare class Claims {
|
|
|
50
50
|
size?: BigNumber;
|
|
51
51
|
start?: BigNumber;
|
|
52
52
|
}): Promise<ResultSet<ClaimData>>;
|
|
53
|
-
/**
|
|
54
|
-
* Retrieve all claims issued by an Identity
|
|
55
|
-
*
|
|
56
|
-
* @param opts.target - Identity (optional, defaults to the signing Identity)
|
|
57
|
-
* @param opts.includeExpired - whether to include expired claims. Defaults to true
|
|
58
|
-
*
|
|
59
|
-
* @note supports pagination
|
|
60
|
-
* @note uses the middlewareV2
|
|
61
|
-
*/
|
|
62
|
-
getIssuedClaimsV2(opts?: {
|
|
63
|
-
target?: string | Identity;
|
|
64
|
-
includeExpired?: boolean;
|
|
65
|
-
size?: BigNumber;
|
|
66
|
-
start?: BigNumber;
|
|
67
|
-
}): Promise<ResultSet<ClaimData>>;
|
|
68
53
|
/**
|
|
69
54
|
* Retrieve a list of Identities with claims associated to them. Can be filtered using parameters
|
|
70
55
|
*
|
|
71
|
-
* @param opts.targets - Identities (or Identity IDs) for which to fetch
|
|
56
|
+
* @param opts.targets - Identities (or Identity IDs) for which to fetch claims (targets). Defaults to all targets
|
|
72
57
|
* @param opts.trustedClaimIssuers - Identity IDs of claim issuers. Defaults to all claim issuers
|
|
73
58
|
* @param opts.scope - scope of the claims to fetch. Defaults to any scope
|
|
74
59
|
* @param opts.claimTypes - types of the claims to fetch. Defaults to any type
|
|
@@ -88,29 +73,6 @@ export declare class Claims {
|
|
|
88
73
|
size?: BigNumber;
|
|
89
74
|
start?: BigNumber;
|
|
90
75
|
}): Promise<ResultSet<IdentityWithClaims>>;
|
|
91
|
-
/**
|
|
92
|
-
* Retrieve a list of Identities with claims associated to them. Can be filtered using parameters
|
|
93
|
-
*
|
|
94
|
-
* @param opts.targets - Identities (or Identity IDs) for which to fetch targeting claims. Defaults to all targets
|
|
95
|
-
* @param opts.trustedClaimIssuers - Identity IDs of claim issuers. Defaults to all claim issuers
|
|
96
|
-
* @param opts.scope - scope of the claims to fetch. Defaults to any scope
|
|
97
|
-
* @param opts.claimTypes - types of the claims to fetch. Defaults to any type
|
|
98
|
-
* @param opts.includeExpired - whether to include expired claims. Defaults to true
|
|
99
|
-
* @param opts.size - page size
|
|
100
|
-
* @param opts.start - page offset
|
|
101
|
-
*
|
|
102
|
-
* @note supports pagination
|
|
103
|
-
* @note uses the middleware V2
|
|
104
|
-
*/
|
|
105
|
-
getIdentitiesWithClaimsV2(opts?: {
|
|
106
|
-
targets?: (string | Identity)[];
|
|
107
|
-
trustedClaimIssuers?: (string | Identity)[];
|
|
108
|
-
scope?: Scope;
|
|
109
|
-
claimTypes?: Exclude<ClaimType, ClaimType.InvestorUniquenessV2>[];
|
|
110
|
-
includeExpired?: boolean;
|
|
111
|
-
size?: BigNumber;
|
|
112
|
-
start?: BigNumber;
|
|
113
|
-
}): Promise<ResultSet<IdentityWithClaims>>;
|
|
114
76
|
/**
|
|
115
77
|
* Retrieve all scopes in which claims have been made for the target Identity.
|
|
116
78
|
* If the scope is an asset DID, the corresponding ticker is returned as well
|
|
@@ -157,26 +119,5 @@ export declare class Claims {
|
|
|
157
119
|
size?: BigNumber;
|
|
158
120
|
start?: BigNumber;
|
|
159
121
|
}): Promise<ResultSet<IdentityWithClaims>>;
|
|
160
|
-
/**
|
|
161
|
-
* @hidden
|
|
162
|
-
*/
|
|
163
|
-
private getClaimsFromChain;
|
|
164
|
-
/**
|
|
165
|
-
* Retrieve all claims issued about an Identity, grouped by claim issuer
|
|
166
|
-
*
|
|
167
|
-
* @param opts.target - Identity for which to fetch targeting claims (optional, defaults to the signing Identity)
|
|
168
|
-
* @param opts.includeExpired - whether to include expired claims. Defaults to true
|
|
169
|
-
*
|
|
170
|
-
* @note supports pagination
|
|
171
|
-
* @note uses the middlewareV2 (optional)
|
|
172
|
-
*/
|
|
173
|
-
getTargetingClaimsV2(opts?: {
|
|
174
|
-
target?: string | Identity;
|
|
175
|
-
scope?: Scope;
|
|
176
|
-
trustedClaimIssuers?: (string | Identity)[];
|
|
177
|
-
includeExpired?: boolean;
|
|
178
|
-
size?: BigNumber;
|
|
179
|
-
start?: BigNumber;
|
|
180
|
-
}): Promise<ResultSet<IdentityWithClaims>>;
|
|
181
122
|
}
|
|
182
123
|
//# sourceMappingURL=Claims.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Claims.d.ts","sourceRoot":"","sources":["../../../src/api/client/Claims.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAGrC,OAAO,EAA8B,OAAO,EAAE,QAAQ,EAAgB,uBAAmB;AAGzF,OAAO,EACL,gCAAgC,EAChC,QAAQ,EACR,SAAS,EAET,UAAU,EACV,SAAS,EACT,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,EAClB,eAAe,EACf,SAAS,EACT,KAAK,EAGN,oBAAgB;AASjB;;GAEG;AACH,qBAAa,MAAM;IACjB,OAAO,CAAC,OAAO,CAAU;IAEzB;;OAEG;gBACS,OAAO,EAAE,OAAO;IA4D5B;;OAEG;IACI,0BAA0B,EAAE,eAAe,CAAC,gCAAgC,EAAE,IAAI,CAAC,CAAC;IAE3F;;;;;OAKG;IACI,S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,GAAE;QACJ,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;QAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;KACrB,GACL,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC;IAajC;;;;;OAKG;IACU,2BAA2B,CACtC,IAAI,GAAE;QACJ,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;QAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;KACrB,GACL,OAAO,CAAC,SAAS,CAAC,uBAAuB,CAAC,EAAE,CAAC;IAahD;;;;;;;;OAQG;IACU,kBAAkB,CAC7B,IAAI,GAAE;QACJ,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;QAC3B,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,mBAAmB,CAAC,EAAE,CAAC,MAAM,GAAG,QAAQ,CAAC,EAAE,CAAC;QAC5C,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,IAAI,CAAC,EAAE,SAAS,CAAC;QACjB,KAAK,CAAC,EAAE,SAAS,CAAC;KACd,GACL,OAAO,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;CAkE1C"}
|
|
@@ -15,16 +15,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.Claims = void 0;
|
|
16
16
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
17
17
|
const lodash_1 = require("lodash");
|
|
18
|
-
const internal_1 = require("
|
|
19
|
-
const queries_1 = require("
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const internal_2 = require("./types/internal");
|
|
25
|
-
const constants_1 = require("./utils/constants");
|
|
26
|
-
const conversion_1 = require("./utils/conversion");
|
|
27
|
-
const internal_3 = require("./utils/internal");
|
|
18
|
+
const internal_1 = require("../../internal");
|
|
19
|
+
const queries_1 = require("../../middleware/queries");
|
|
20
|
+
const types_1 = require("../../middleware/types");
|
|
21
|
+
const types_2 = require("../../types");
|
|
22
|
+
const conversion_1 = require("../../utils/conversion");
|
|
23
|
+
const internal_2 = require("../../utils/internal");
|
|
28
24
|
/**
|
|
29
25
|
* Handles all Claims related functionality
|
|
30
26
|
*/
|
|
@@ -34,25 +30,25 @@ class Claims {
|
|
|
34
30
|
*/
|
|
35
31
|
constructor(context) {
|
|
36
32
|
this.context = context;
|
|
37
|
-
this.addClaims = (0,
|
|
33
|
+
this.addClaims = (0, internal_2.createProcedureMethod)({
|
|
38
34
|
getProcedureAndArgs: args => [
|
|
39
35
|
internal_1.modifyClaims,
|
|
40
|
-
Object.assign(Object.assign({}, args), { operation:
|
|
36
|
+
Object.assign(Object.assign({}, args), { operation: types_2.ClaimOperation.Add }),
|
|
41
37
|
],
|
|
42
38
|
}, context);
|
|
43
|
-
this.editClaims = (0,
|
|
39
|
+
this.editClaims = (0, internal_2.createProcedureMethod)({
|
|
44
40
|
getProcedureAndArgs: args => [
|
|
45
41
|
internal_1.modifyClaims,
|
|
46
|
-
Object.assign(Object.assign({}, args), { operation:
|
|
42
|
+
Object.assign(Object.assign({}, args), { operation: types_2.ClaimOperation.Edit }),
|
|
47
43
|
],
|
|
48
44
|
}, context);
|
|
49
|
-
this.revokeClaims = (0,
|
|
45
|
+
this.revokeClaims = (0, internal_2.createProcedureMethod)({
|
|
50
46
|
getProcedureAndArgs: args => [
|
|
51
47
|
internal_1.modifyClaims,
|
|
52
|
-
Object.assign(Object.assign({}, args), { operation:
|
|
48
|
+
Object.assign(Object.assign({}, args), { operation: types_2.ClaimOperation.Revoke }),
|
|
53
49
|
],
|
|
54
50
|
}, context);
|
|
55
|
-
this.addInvestorUniquenessClaim = (0,
|
|
51
|
+
this.addInvestorUniquenessClaim = (0, internal_2.createProcedureMethod)({ getProcedureAndArgs: args => [internal_1.addInvestorUniquenessClaim, args] }, context);
|
|
56
52
|
}
|
|
57
53
|
/**
|
|
58
54
|
* Retrieve all claims issued by an Identity
|
|
@@ -67,7 +63,7 @@ class Claims {
|
|
|
67
63
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
64
|
const { context } = this;
|
|
69
65
|
const { target, includeExpired = true, size, start } = opts;
|
|
70
|
-
const did = yield (0,
|
|
66
|
+
const did = yield (0, internal_2.getDid)(target, context);
|
|
71
67
|
return context.getIdentityClaimsFromMiddleware({
|
|
72
68
|
trustedClaimIssuers: [did],
|
|
73
69
|
includeExpired,
|
|
@@ -76,32 +72,10 @@ class Claims {
|
|
|
76
72
|
});
|
|
77
73
|
});
|
|
78
74
|
}
|
|
79
|
-
/**
|
|
80
|
-
* Retrieve all claims issued by an Identity
|
|
81
|
-
*
|
|
82
|
-
* @param opts.target - Identity (optional, defaults to the signing Identity)
|
|
83
|
-
* @param opts.includeExpired - whether to include expired claims. Defaults to true
|
|
84
|
-
*
|
|
85
|
-
* @note supports pagination
|
|
86
|
-
* @note uses the middlewareV2
|
|
87
|
-
*/
|
|
88
|
-
getIssuedClaimsV2(opts = {}) {
|
|
89
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
-
const { context } = this;
|
|
91
|
-
const { target, includeExpired = true, size, start } = opts;
|
|
92
|
-
const did = yield (0, internal_3.getDid)(target, context);
|
|
93
|
-
return context.getIdentityClaimsFromMiddlewareV2({
|
|
94
|
-
trustedClaimIssuers: [did],
|
|
95
|
-
includeExpired,
|
|
96
|
-
size,
|
|
97
|
-
start,
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
75
|
/**
|
|
102
76
|
* Retrieve a list of Identities with claims associated to them. Can be filtered using parameters
|
|
103
77
|
*
|
|
104
|
-
* @param opts.targets - Identities (or Identity IDs) for which to fetch
|
|
78
|
+
* @param opts.targets - Identities (or Identity IDs) for which to fetch claims (targets). Defaults to all targets
|
|
105
79
|
* @param opts.trustedClaimIssuers - Identity IDs of claim issuers. Defaults to all claim issuers
|
|
106
80
|
* @param opts.scope - scope of the claims to fetch. Defaults to any scope
|
|
107
81
|
* @param opts.claimTypes - types of the claims to fetch. Defaults to any type
|
|
@@ -128,55 +102,7 @@ class Claims {
|
|
|
128
102
|
const { data: { didsWithClaims: { items: didsWithClaimsList, totalCount }, }, } = result;
|
|
129
103
|
const count = new bignumber_js_1.default(totalCount);
|
|
130
104
|
const data = (0, conversion_1.toIdentityWithClaimsArray)(didsWithClaimsList, context);
|
|
131
|
-
const next = (0,
|
|
132
|
-
return {
|
|
133
|
-
data,
|
|
134
|
-
next,
|
|
135
|
-
count,
|
|
136
|
-
};
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Retrieve a list of Identities with claims associated to them. Can be filtered using parameters
|
|
141
|
-
*
|
|
142
|
-
* @param opts.targets - Identities (or Identity IDs) for which to fetch targeting claims. Defaults to all targets
|
|
143
|
-
* @param opts.trustedClaimIssuers - Identity IDs of claim issuers. Defaults to all claim issuers
|
|
144
|
-
* @param opts.scope - scope of the claims to fetch. Defaults to any scope
|
|
145
|
-
* @param opts.claimTypes - types of the claims to fetch. Defaults to any type
|
|
146
|
-
* @param opts.includeExpired - whether to include expired claims. Defaults to true
|
|
147
|
-
* @param opts.size - page size
|
|
148
|
-
* @param opts.start - page offset
|
|
149
|
-
*
|
|
150
|
-
* @note supports pagination
|
|
151
|
-
* @note uses the middleware V2
|
|
152
|
-
*/
|
|
153
|
-
getIdentitiesWithClaimsV2(opts = {}) {
|
|
154
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
155
|
-
const { context } = this;
|
|
156
|
-
const { targets, trustedClaimIssuers, scope, claimTypes, includeExpired = true, size = new bignumber_js_1.default(constants_1.DEFAULT_GQL_PAGE_SIZE), start = new bignumber_js_1.default(0), } = opts;
|
|
157
|
-
let targetIssuers;
|
|
158
|
-
const filters = {
|
|
159
|
-
scope: scope ? (0, conversion_1.scopeToMiddlewareScope)(scope, false) : undefined,
|
|
160
|
-
trustedClaimIssuers: trustedClaimIssuers === null || trustedClaimIssuers === void 0 ? void 0 : trustedClaimIssuers.map(trustedClaimIssuer => (0, conversion_1.signerToString)(trustedClaimIssuer)),
|
|
161
|
-
claimTypes: claimTypes === null || claimTypes === void 0 ? void 0 : claimTypes.map(ct => types_1.ClaimTypeEnum[ct]),
|
|
162
|
-
includeExpired,
|
|
163
|
-
};
|
|
164
|
-
if (!targets) {
|
|
165
|
-
const { data: { claims: { groupedAggregates: groupedTargets }, }, } = yield context.queryMiddlewareV2((0, queriesV2_1.claimsGroupingQuery)(Object.assign({}, filters)));
|
|
166
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
167
|
-
targetIssuers = (0, lodash_1.flatten)(groupedTargets.map(groupedTarget => groupedTarget.keys));
|
|
168
|
-
}
|
|
169
|
-
else {
|
|
170
|
-
targetIssuers = targets.map(target => (0, conversion_1.signerToString)(target));
|
|
171
|
-
}
|
|
172
|
-
// note: pagination count is based on the target issuers and not the claims count
|
|
173
|
-
const count = new bignumber_js_1.default(targetIssuers.length);
|
|
174
|
-
// tooling-gql does pagination based on sorted target issuers, hence the explicit `sort()` function (as graphql doesn't sort the final data)
|
|
175
|
-
targetIssuers.sort();
|
|
176
|
-
targetIssuers = targetIssuers.slice(start.toNumber(), size.plus(start).toNumber());
|
|
177
|
-
const { data: { claims: { nodes }, }, } = yield context.queryMiddlewareV2((0, queriesV2_1.claimsQuery)(Object.assign({ dids: targetIssuers }, filters)));
|
|
178
|
-
const data = (0, conversion_1.toIdentityWithClaimsArrayV2)(nodes, context, 'targetId');
|
|
179
|
-
const next = (0, internal_3.calculateNextKey)(count, size, start);
|
|
105
|
+
const next = (0, internal_2.calculateNextKey)(count, size, start);
|
|
180
106
|
return {
|
|
181
107
|
data,
|
|
182
108
|
next,
|
|
@@ -194,7 +120,7 @@ class Claims {
|
|
|
194
120
|
return __awaiter(this, void 0, void 0, function* () {
|
|
195
121
|
const { context } = this;
|
|
196
122
|
const { target } = opts;
|
|
197
|
-
const did = yield (0,
|
|
123
|
+
const did = yield (0, internal_2.getDid)(target, context);
|
|
198
124
|
const identityClaimsFromChain = yield context.getIdentityClaimsFromChain({
|
|
199
125
|
targets: [did],
|
|
200
126
|
claimTypes: [
|
|
@@ -216,7 +142,7 @@ class Claims {
|
|
|
216
142
|
const { scope: { type, value }, } = claim;
|
|
217
143
|
let ticker;
|
|
218
144
|
if (type === types_2.ScopeType.Ticker) {
|
|
219
|
-
ticker = (0,
|
|
145
|
+
ticker = (0, internal_2.removePadding)(value);
|
|
220
146
|
}
|
|
221
147
|
return {
|
|
222
148
|
scope: { type, value: ticker !== null && ticker !== void 0 ? ticker : value },
|
|
@@ -236,7 +162,7 @@ class Claims {
|
|
|
236
162
|
return __awaiter(this, void 0, void 0, function* () {
|
|
237
163
|
const { context } = this;
|
|
238
164
|
const { target, includeExpired = true } = opts;
|
|
239
|
-
const did = yield (0,
|
|
165
|
+
const did = yield (0, internal_2.getDid)(target, context);
|
|
240
166
|
return context.getIdentityClaimsFromChain({
|
|
241
167
|
targets: [did],
|
|
242
168
|
claimTypes: [types_2.ClaimType.CustomerDueDiligence],
|
|
@@ -254,7 +180,7 @@ class Claims {
|
|
|
254
180
|
return __awaiter(this, void 0, void 0, function* () {
|
|
255
181
|
const { context } = this;
|
|
256
182
|
const { target, includeExpired = true } = opts;
|
|
257
|
-
const did = yield (0,
|
|
183
|
+
const did = yield (0, internal_2.getDid)(target, context);
|
|
258
184
|
return context.getIdentityClaimsFromChain({
|
|
259
185
|
targets: [did],
|
|
260
186
|
claimTypes: [types_2.ClaimType.InvestorUniqueness],
|
|
@@ -275,13 +201,13 @@ class Claims {
|
|
|
275
201
|
return __awaiter(this, void 0, void 0, function* () {
|
|
276
202
|
const { context } = this;
|
|
277
203
|
const { target, trustedClaimIssuers, scope, includeExpired = true, size, start } = opts;
|
|
278
|
-
const did = yield (0,
|
|
204
|
+
const did = yield (0, internal_2.getDid)(target, context);
|
|
279
205
|
const isMiddlewareAvailable = yield context.isMiddlewareAvailable();
|
|
280
206
|
if (isMiddlewareAvailable) {
|
|
281
207
|
const result = yield context.queryMiddleware((0, queries_1.issuerDidsWithClaimsByTarget)({
|
|
282
208
|
target: did,
|
|
283
209
|
scope: scope ? (0, conversion_1.scopeToMiddlewareScope)(scope) : undefined,
|
|
284
|
-
trustedClaimIssuers: trustedClaimIssuers === null || trustedClaimIssuers === void 0 ? void 0 : trustedClaimIssuers.map(conversion_1.signerToString),
|
|
210
|
+
trustedClaimIssuers: trustedClaimIssuers === null || trustedClaimIssuers === void 0 ? void 0 : trustedClaimIssuers.map(trustedClaimIssuer => (0, conversion_1.signerToString)(trustedClaimIssuer)),
|
|
285
211
|
includeExpired,
|
|
286
212
|
count: size === null || size === void 0 ? void 0 : size.toNumber(),
|
|
287
213
|
skip: start === null || start === void 0 ? void 0 : start.toNumber(),
|
|
@@ -289,24 +215,16 @@ class Claims {
|
|
|
289
215
|
const { data: { issuerDidsWithClaimsByTarget: { items: issuerDidsWithClaimsByTargetList, totalCount }, }, } = result;
|
|
290
216
|
const count = new bignumber_js_1.default(totalCount);
|
|
291
217
|
const data = (0, conversion_1.toIdentityWithClaimsArray)(issuerDidsWithClaimsByTargetList, context);
|
|
292
|
-
const next = (0,
|
|
218
|
+
const next = (0, internal_2.calculateNextKey)(count, size, start);
|
|
293
219
|
return {
|
|
294
220
|
data,
|
|
295
221
|
next,
|
|
296
222
|
count,
|
|
297
223
|
};
|
|
298
224
|
}
|
|
299
|
-
return this.getClaimsFromChain(context, did, trustedClaimIssuers, includeExpired);
|
|
300
|
-
});
|
|
301
|
-
}
|
|
302
|
-
/**
|
|
303
|
-
* @hidden
|
|
304
|
-
*/
|
|
305
|
-
getClaimsFromChain(context, did, trustedClaimIssuers, includeExpired) {
|
|
306
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
307
225
|
const identityClaimsFromChain = yield context.getIdentityClaimsFromChain({
|
|
308
226
|
targets: [did],
|
|
309
|
-
trustedClaimIssuers: trustedClaimIssuers === null || trustedClaimIssuers === void 0 ? void 0 : trustedClaimIssuers.map(conversion_1.signerToString),
|
|
227
|
+
trustedClaimIssuers: trustedClaimIssuers === null || trustedClaimIssuers === void 0 ? void 0 : trustedClaimIssuers.map(trustedClaimIssuer => (0, conversion_1.signerToString)(trustedClaimIssuer)),
|
|
310
228
|
includeExpired,
|
|
311
229
|
});
|
|
312
230
|
const issuers = (0, lodash_1.uniqBy)(identityClaimsFromChain.map(i => i.issuer), identity => identity.did);
|
|
@@ -323,52 +241,6 @@ class Claims {
|
|
|
323
241
|
};
|
|
324
242
|
});
|
|
325
243
|
}
|
|
326
|
-
/**
|
|
327
|
-
* Retrieve all claims issued about an Identity, grouped by claim issuer
|
|
328
|
-
*
|
|
329
|
-
* @param opts.target - Identity for which to fetch targeting claims (optional, defaults to the signing Identity)
|
|
330
|
-
* @param opts.includeExpired - whether to include expired claims. Defaults to true
|
|
331
|
-
*
|
|
332
|
-
* @note supports pagination
|
|
333
|
-
* @note uses the middlewareV2 (optional)
|
|
334
|
-
*/
|
|
335
|
-
getTargetingClaimsV2(opts = {}) {
|
|
336
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
337
|
-
const { context } = this;
|
|
338
|
-
const { target, trustedClaimIssuers, scope, includeExpired = true, size = new bignumber_js_1.default(constants_1.DEFAULT_GQL_PAGE_SIZE), start = new bignumber_js_1.default(0), } = opts;
|
|
339
|
-
const did = yield (0, internal_3.getDid)(target, context);
|
|
340
|
-
const isMiddlewareV2Available = yield context.isMiddlewareV2Available();
|
|
341
|
-
if (isMiddlewareV2Available) {
|
|
342
|
-
const filters = {
|
|
343
|
-
dids: [did],
|
|
344
|
-
scope: scope ? (0, conversion_1.scopeToMiddlewareScope)(scope, false) : undefined,
|
|
345
|
-
includeExpired,
|
|
346
|
-
};
|
|
347
|
-
let claimIssuers;
|
|
348
|
-
if (!trustedClaimIssuers) {
|
|
349
|
-
const { data: { claims: { groupedAggregates: groupedIssuers }, }, } = yield context.queryMiddlewareV2((0, queriesV2_1.claimsGroupingQuery)(filters, typesV2_1.ClaimsOrderBy.IssuerIdAsc, typesV2_1.ClaimsGroupBy.IssuerId));
|
|
350
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
351
|
-
claimIssuers = (0, lodash_1.flatten)(groupedIssuers.map(groupedAggregate => groupedAggregate.keys));
|
|
352
|
-
}
|
|
353
|
-
else {
|
|
354
|
-
claimIssuers = trustedClaimIssuers.map(conversion_1.signerToString);
|
|
355
|
-
}
|
|
356
|
-
// note: pagination count is based on the claim issuers and not the claims count
|
|
357
|
-
const count = new bignumber_js_1.default(claimIssuers.length);
|
|
358
|
-
claimIssuers.sort();
|
|
359
|
-
claimIssuers = claimIssuers.slice(start.toNumber(), size.plus(start).toNumber());
|
|
360
|
-
const { data: { claims: { nodes }, }, } = yield context.queryMiddlewareV2((0, queriesV2_1.claimsQuery)(Object.assign({ trustedClaimIssuers: claimIssuers }, filters)));
|
|
361
|
-
const data = (0, conversion_1.toIdentityWithClaimsArrayV2)(nodes, context, 'issuerId');
|
|
362
|
-
const next = (0, internal_3.calculateNextKey)(count, size, start);
|
|
363
|
-
return {
|
|
364
|
-
data,
|
|
365
|
-
next,
|
|
366
|
-
count,
|
|
367
|
-
};
|
|
368
|
-
}
|
|
369
|
-
return this.getClaimsFromChain(context, did, trustedClaimIssuers, includeExpired);
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
244
|
}
|
|
373
245
|
exports.Claims = Claims;
|
|
374
246
|
//# sourceMappingURL=Claims.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Claims.js","sourceRoot":"","sources":["../../../src/api/client/Claims.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,mCAA2D;AAE3D,6CAAyF;AACzF,sDAAoF;AACpF,kDAA0D;AAC1D,uCAeiB;AAEjB,uDAI4B;AAC5B,mDAAkG;AAElG;;GAEG;AACH,MAAa,MAAM;IAGjB;;OAEG;IACH,YAAY,OAAgB;QAC1B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAEvB,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BAAmB,EAAE,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,CAAE,GAAG,CAAC,kBAAkB,CAAC,EAAE,CACjE,IAAA,2BAAc,EAAC,kBAAkB,CAAC,CACnC;gBACD,cAAc;aACf,CAAC,CAAC;YAEH,MAAM,OAAO,GAAG,IAAA,eAAM,EACpB,uBAAuB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,EAC1C,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,GAAG,CACzB,CAAC;YAEF,MAAM,oBAAoB,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;gBAClD,OAAO;oBACL,QAAQ;oBACR,MAAM,EAAE,IAAA,eAAM,EAAC,uBAAuB,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;iBAClF,CAAC;YACJ,CAAC,CAAC,CAAC;YAEH,OAAO;gBACL,IAAI,EAAE,oBAAoB;gBAC1B,IAAI,EAAE,IAAI;gBACV,KAAK,EAAE,IAAI,sBAAS,CAAC,oBAAoB,CAAC,MAAM,CAAC;aAClD,CAAC;QACJ,CAAC;KAAA;CACF;AAxXD,wBAwXC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Context, Identity, NumberedPortfolio
|
|
2
|
-
import { ProcedureMethod } from "
|
|
1
|
+
import { Context, Identity, NumberedPortfolio } from "../../internal";
|
|
2
|
+
import { ProcedureMethod, RegisterIdentityParams } from "../../types";
|
|
3
3
|
/**
|
|
4
4
|
* Handles all Identity related functionality
|
|
5
5
|
*/
|
|
@@ -13,9 +13,9 @@ export declare class Identities {
|
|
|
13
13
|
* Register an Identity
|
|
14
14
|
*
|
|
15
15
|
* @note must be a CDD provider
|
|
16
|
-
* @note this may create {@link AuthorizationRequest | Authorization Requests} which have to be accepted by the `targetAccount`.
|
|
17
|
-
* An {@link Account} or {@link Identity} can fetch its pending Authorization Requests by calling {@link Authorizations.getReceived | authorizations.getReceived}.
|
|
18
|
-
* Also, an Account or Identity can directly fetch the details of an Authorization Request by calling {@link Authorizations.getOne | authorizations.getOne}
|
|
16
|
+
* @note this may create {@link api/entities/AuthorizationRequest!AuthorizationRequest | Authorization Requests} which have to be accepted by the `targetAccount`.
|
|
17
|
+
* An {@link api/entities/Account!Account} or {@link api/entities/Identity!Identity} can fetch its pending Authorization Requests by calling {@link api/entities/common/namespaces/Authorizations!Authorizations.getReceived | authorizations.getReceived}.
|
|
18
|
+
* Also, an Account or Identity can directly fetch the details of an Authorization Request by calling {@link api/entities/common/namespaces/Authorizations!Authorizations.getOne | authorizations.getOne}
|
|
19
19
|
*
|
|
20
20
|
* @note required role:
|
|
21
21
|
* - Customer Due Diligence Provider
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Identities.d.ts","sourceRoot":"","sources":["../../../src/api/client/Identities.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EAEP,QAAQ,EACR,iBAAiB,EAElB,uBAAmB;AACpB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,oBAAgB;AAGlE;;GAEG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,OAAO,CAAU;IAEzB;;OAEG;gBACS,OAAO,EAAE,OAAO;IAc5B;;;;;;;;;;OAUG;IACI,gBAAgB,EAAE,eAAe,CAAC,sBAAsB,EAAE,QAAQ,CAAC,CAAC;IAE3E;;OAEG;IACI,eAAe,EAAE,eAAe,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,iBAAiB,CAAC,CAAC;IAE7E;;;;OAIG;IACI,WAAW,CAAC,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,QAAQ,CAAC;IAI5D;;OAEG;IACI,eAAe,CAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC;CAGhF"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Identities = void 0;
|
|
4
|
-
const internal_1 = require("
|
|
5
|
-
const internal_2 = require("
|
|
4
|
+
const internal_1 = require("../../internal");
|
|
5
|
+
const internal_2 = require("../../utils/internal");
|
|
6
6
|
/**
|
|
7
7
|
* Handles all Identity related functionality
|
|
8
8
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Identities.js","sourceRoot":"","sources":["../../../src/api/client/Identities.ts"],"names":[],"mappings":";;;AAAA,6CAMoB;AAEpB,mDAAqE;AAErE;;GAEG;AACH,MAAa,UAAU;IAGrB;;OAEG;IACH,YAAY,OAAgB;QAC1B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAEvB,IAAI,CAAC,gBAAgB,GAAG,IAAA,gCAAqB,EAC3C,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,2BAAgB,EAAE,IAAI,CAAC,EAAE,EACzD,OAAO,CACR,CAAC;QAEF,IAAI,CAAC,eAAe,GAAG,IAAA,gCAAqB,EAC1C,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,0BAAe,EAAE,IAAI,CAAC,EAAE,EACxD,OAAO,CACR,CAAC;IACJ,CAAC;IAoBD;;;;OAIG;IACI,WAAW,CAAC,IAAqB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC5C,CAAC;IAED;;OAEG;IACI,eAAe,CAAC,IAAqC;QAC1D,OAAO,IAAA,qBAAU,EAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;IAC1D,CAAC;CACF;AArDD,gCAqDC"}
|