@heliofi/common 0.1.410 → 0.1.413
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/src/domain/model/auth/dtos/bitcoinSignOn.dto.d.ts +2 -0
- package/dist/src/domain/model/auth/dtos/bitcoinSignOn.dto.js +7 -0
- package/dist/src/domain/model/auth/dtos/bitcoinSignOn.dto.js.map +1 -1
- package/dist/src/domain/model/auth/dtos/evmSignOn.dto.d.ts +2 -0
- package/dist/src/domain/model/auth/dtos/evmSignOn.dto.js +7 -0
- package/dist/src/domain/model/auth/dtos/evmSignOn.dto.js.map +1 -1
- package/dist/src/domain/model/auth/dtos/signOn.dto.d.ts +2 -0
- package/dist/src/domain/model/auth/dtos/signOn.dto.js +7 -0
- package/dist/src/domain/model/auth/dtos/signOn.dto.js.map +1 -1
- package/dist/src/domain/model/auth/dtos/signOnWeb3authSocialNetwork.dto.d.ts +2 -0
- package/dist/src/domain/model/auth/dtos/signOnWeb3authSocialNetwork.dto.js +5 -0
- package/dist/src/domain/model/auth/dtos/signOnWeb3authSocialNetwork.dto.js.map +1 -1
- package/dist/src/domain/model/auth/dtos/transactionSignOn.dto.d.ts +2 -0
- package/dist/src/domain/model/auth/dtos/transactionSignOn.dto.js +7 -0
- package/dist/src/domain/model/auth/dtos/transactionSignOn.dto.js.map +1 -1
- package/dist/src/domain/model/auth/entities/AuthUser.d.ts +5 -0
- package/dist/src/domain/model/auth/entities/AuthUser.js +6 -0
- package/dist/src/domain/model/auth/entities/AuthUser.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Platform } from '../../../constants';
|
|
2
2
|
import { WalletOrigin } from '../../wallet';
|
|
3
3
|
import { BTCPropertiesDto } from './btcProperties.dto';
|
|
4
|
+
import { AuthScope } from '../entities';
|
|
4
5
|
export declare class BitcoinSignOnDto {
|
|
5
6
|
signature: string;
|
|
6
7
|
platform?: Platform;
|
|
@@ -10,4 +11,5 @@ export declare class BitcoinSignOnDto {
|
|
|
10
11
|
nonce: string;
|
|
11
12
|
publicKey: string;
|
|
12
13
|
authMessage: string;
|
|
14
|
+
scopes?: AuthScope[];
|
|
13
15
|
}
|
|
@@ -15,6 +15,7 @@ const class_transformer_1 = require("class-transformer");
|
|
|
15
15
|
const constants_1 = require("../../../constants");
|
|
16
16
|
const wallet_1 = require("../../wallet");
|
|
17
17
|
const btcProperties_dto_1 = require("./btcProperties.dto");
|
|
18
|
+
const entities_1 = require("../entities");
|
|
18
19
|
class BitcoinSignOnDto {
|
|
19
20
|
}
|
|
20
21
|
__decorate([
|
|
@@ -56,5 +57,11 @@ __decorate([
|
|
|
56
57
|
(0, class_validator_1.IsNotEmpty)(),
|
|
57
58
|
__metadata("design:type", String)
|
|
58
59
|
], BitcoinSignOnDto.prototype, "authMessage", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
(0, class_validator_1.IsArray)(),
|
|
63
|
+
(0, class_validator_1.IsEnum)(entities_1.AuthScope, { each: true }),
|
|
64
|
+
__metadata("design:type", Array)
|
|
65
|
+
], BitcoinSignOnDto.prototype, "scopes", void 0);
|
|
59
66
|
exports.BitcoinSignOnDto = BitcoinSignOnDto;
|
|
60
67
|
//# sourceMappingURL=bitcoinSignOn.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitcoinSignOn.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/auth/dtos/bitcoinSignOn.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"bitcoinSignOn.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/auth/dtos/bitcoinSignOn.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,yDAAyC;AACzC,kDAA8C;AAC9C,yCAA4C;AAC5C,2DAAuD;AACvD,0CAAwC;AAExC,MAAa,gBAAgB;CAqC5B;AApCC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACK;AAElB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAQ,CAAC;;kDACG;AAGpB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,qBAAY,CAAC;;gDACA;AAErB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,oCAAgB,CAAC;IAC5B,IAAA,gCAAc,GAAE;8BACF,oCAAgB;uDAAC;AAEhC;IAAC,IAAA,4BAAU,GAAE;;iDACI;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACC;AAEd;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACK;AAElB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACO;AAEpB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAM,EAAC,oBAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;gDACb;AApCvB,4CAqCC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EVMMessageDto } from './evmMessage.dto';
|
|
2
2
|
import { Platform } from '../../../constants';
|
|
3
|
+
import { AuthScope } from '../entities';
|
|
3
4
|
export declare class EVMSignOnDto {
|
|
4
5
|
message: EVMMessageDto;
|
|
5
6
|
signature: string;
|
|
@@ -8,4 +9,5 @@ export declare class EVMSignOnDto {
|
|
|
8
9
|
publicKey: string;
|
|
9
10
|
authMessage: string;
|
|
10
11
|
nonceV2: boolean;
|
|
12
|
+
scopes?: AuthScope[];
|
|
11
13
|
}
|
|
@@ -14,6 +14,7 @@ const class_validator_1 = require("class-validator");
|
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const evmMessage_dto_1 = require("./evmMessage.dto");
|
|
16
16
|
const constants_1 = require("../../../constants");
|
|
17
|
+
const entities_1 = require("../entities");
|
|
17
18
|
class EVMSignOnDto {
|
|
18
19
|
}
|
|
19
20
|
__decorate([
|
|
@@ -51,5 +52,11 @@ __decorate([
|
|
|
51
52
|
(0, class_validator_1.IsOptional)(),
|
|
52
53
|
__metadata("design:type", Boolean)
|
|
53
54
|
], EVMSignOnDto.prototype, "nonceV2", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsOptional)(),
|
|
57
|
+
(0, class_validator_1.IsArray)(),
|
|
58
|
+
(0, class_validator_1.IsEnum)(entities_1.AuthScope, { each: true }),
|
|
59
|
+
__metadata("design:type", Array)
|
|
60
|
+
], EVMSignOnDto.prototype, "scopes", void 0);
|
|
54
61
|
exports.EVMSignOnDto = EVMSignOnDto;
|
|
55
62
|
//# sourceMappingURL=evmSignOn.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evmSignOn.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/auth/dtos/evmSignOn.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"evmSignOn.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/auth/dtos/evmSignOn.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,yDAAyC;AACzC,qDAAiD;AACjD,kDAA8C;AAC9C,0CAAwC;AAExC,MAAa,YAAY;CAiCxB;AAhCC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,8BAAa,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;8BACR,8BAAa;6CAAC;AAEvB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACK;AAElB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAQ,CAAC;;8CACG;AAEpB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2CACC;AAEd;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACK;AAElB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACO;AAEpB;IAAC,IAAA,4BAAU,GAAE;;6CACI;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAM,EAAC,oBAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;4CACb;AAhCvB,oCAiCC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Platform } from '../../../constants';
|
|
2
2
|
import { WalletOrigin } from '../../wallet';
|
|
3
|
+
import { AuthScope } from '../entities';
|
|
3
4
|
export declare class SignOnDto {
|
|
4
5
|
publicKey: string;
|
|
5
6
|
signature: string;
|
|
@@ -8,4 +9,5 @@ export declare class SignOnDto {
|
|
|
8
9
|
platform?: Platform;
|
|
9
10
|
origin?: WalletOrigin;
|
|
10
11
|
nonceV2: boolean;
|
|
12
|
+
scopes?: AuthScope[];
|
|
11
13
|
}
|
|
@@ -13,6 +13,7 @@ exports.SignOnDto = void 0;
|
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const constants_1 = require("../../../constants");
|
|
15
15
|
const wallet_1 = require("../../wallet");
|
|
16
|
+
const entities_1 = require("../entities");
|
|
16
17
|
class SignOnDto {
|
|
17
18
|
}
|
|
18
19
|
__decorate([
|
|
@@ -49,5 +50,11 @@ __decorate([
|
|
|
49
50
|
(0, class_validator_1.IsOptional)(),
|
|
50
51
|
__metadata("design:type", Boolean)
|
|
51
52
|
], SignOnDto.prototype, "nonceV2", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, class_validator_1.IsArray)(),
|
|
56
|
+
(0, class_validator_1.IsEnum)(entities_1.AuthScope, { each: true }),
|
|
57
|
+
__metadata("design:type", Array)
|
|
58
|
+
], SignOnDto.prototype, "scopes", void 0);
|
|
52
59
|
exports.SignOnDto = SignOnDto;
|
|
53
60
|
//# sourceMappingURL=signOn.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signOn.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/auth/dtos/signOn.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"signOn.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/auth/dtos/signOn.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,kDAA8C;AAC9C,yCAA4C;AAC5C,0CAAwC;AAExC,MAAa,SAAS;CAiCrB;AAhCC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4CACK;AAElB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4CACK;AAElB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACO;AAEpB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wCACC;AAEd;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAQ,CAAC;;2CACG;AAGpB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,qBAAY,CAAC;;yCACC;AAEtB;IAAC,IAAA,4BAAU,GAAE;;0CACI;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAM,EAAC,oBAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;yCACb;AAhCvB,8BAiCC"}
|
|
@@ -24,5 +24,10 @@ __decorate([
|
|
|
24
24
|
(0, class_validator_1.IsEnum)(constants_1.Platform),
|
|
25
25
|
__metadata("design:type", String)
|
|
26
26
|
], SignOnWeb3authSocialNetworkDto.prototype, "platform", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsArray)(),
|
|
30
|
+
__metadata("design:type", Array)
|
|
31
|
+
], SignOnWeb3authSocialNetworkDto.prototype, "scopes", void 0);
|
|
27
32
|
exports.SignOnWeb3authSocialNetworkDto = SignOnWeb3authSocialNetworkDto;
|
|
28
33
|
//# sourceMappingURL=signOnWeb3authSocialNetwork.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signOnWeb3authSocialNetwork.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/auth/dtos/signOnWeb3authSocialNetwork.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"signOnWeb3authSocialNetwork.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/auth/dtos/signOnWeb3authSocialNetwork.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,kDAA8C;AAG9C,MAAa,8BAA8B;CAY1C;AAXC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oEACQ;AAErB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAQ,CAAC;;gEACG;AAEpB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;8DACW;AAXvB,wEAYC"}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.TransactionSignOnDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const constants_1 = require("../../../constants");
|
|
15
|
+
const entities_1 = require("../entities");
|
|
15
16
|
class TransactionSignOnDto {
|
|
16
17
|
}
|
|
17
18
|
__decorate([
|
|
@@ -24,5 +25,11 @@ __decorate([
|
|
|
24
25
|
(0, class_validator_1.IsEnum)(constants_1.Platform),
|
|
25
26
|
__metadata("design:type", String)
|
|
26
27
|
], TransactionSignOnDto.prototype, "platform", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsArray)(),
|
|
31
|
+
(0, class_validator_1.IsEnum)(entities_1.AuthScope, { each: true }),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], TransactionSignOnDto.prototype, "scopes", void 0);
|
|
27
34
|
exports.TransactionSignOnDto = TransactionSignOnDto;
|
|
28
35
|
//# sourceMappingURL=transactionSignOn.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactionSignOn.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/auth/dtos/transactionSignOn.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"transactionSignOn.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/auth/dtos/transactionSignOn.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,kDAA8C;AAC9C,0CAAwC;AAExC,MAAa,oBAAoB;CAahC;AAZC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACO;AAEpB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAQ,CAAC;;sDACG;AAEpB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAM,EAAC,oBAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;oDACb;AAZvB,oDAaC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthScope = void 0;
|
|
4
|
+
var AuthScope;
|
|
5
|
+
(function (AuthScope) {
|
|
6
|
+
AuthScope["DASHBOARD"] = "Dashboard";
|
|
7
|
+
AuthScope["CHECKOUT"] = "Checkout";
|
|
8
|
+
})(AuthScope = exports.AuthScope || (exports.AuthScope = {}));
|
|
3
9
|
//# sourceMappingURL=AuthUser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthUser.js","sourceRoot":"","sources":["../../../../../../src/domain/model/auth/entities/AuthUser.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"AuthUser.js","sourceRoot":"","sources":["../../../../../../src/domain/model/auth/entities/AuthUser.ts"],"names":[],"mappings":";;;AAyBA,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,kCAAqB,CAAA;AACvB,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
|