@heliofi/common 0.1.407 → 0.1.408
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 -1
- package/dist/src/domain/model/auth/dtos/bitcoinSignOn.dto.js +7 -4
- 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 -1
- package/dist/src/domain/model/auth/dtos/evmSignOn.dto.js +5 -2
- 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 -1
- package/dist/src/domain/model/auth/dtos/signOn.dto.js +5 -2
- 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 +7 -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,13 +1,14 @@
|
|
|
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;
|
|
7
8
|
origin: WalletOrigin;
|
|
8
9
|
btcProperties: BTCPropertiesDto;
|
|
9
|
-
nonceV2: boolean;
|
|
10
10
|
nonce: string;
|
|
11
11
|
publicKey: string;
|
|
12
12
|
authMessage: string;
|
|
13
|
+
scopes?: AuthScope[];
|
|
13
14
|
}
|
|
@@ -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([
|
|
@@ -37,10 +38,6 @@ __decorate([
|
|
|
37
38
|
(0, class_validator_1.ValidateNested)(),
|
|
38
39
|
__metadata("design:type", btcProperties_dto_1.BTCPropertiesDto)
|
|
39
40
|
], BitcoinSignOnDto.prototype, "btcProperties", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, class_validator_1.IsOptional)(),
|
|
42
|
-
__metadata("design:type", Boolean)
|
|
43
|
-
], BitcoinSignOnDto.prototype, "nonceV2", void 0);
|
|
44
41
|
__decorate([
|
|
45
42
|
(0, class_validator_1.IsString)(),
|
|
46
43
|
(0, class_validator_1.IsNotEmpty)(),
|
|
@@ -56,5 +53,11 @@ __decorate([
|
|
|
56
53
|
(0, class_validator_1.IsNotEmpty)(),
|
|
57
54
|
__metadata("design:type", String)
|
|
58
55
|
], BitcoinSignOnDto.prototype, "authMessage", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
(0, class_validator_1.IsArray)(),
|
|
59
|
+
(0, class_validator_1.IsEnum)(entities_1.AuthScope),
|
|
60
|
+
__metadata("design:type", Array)
|
|
61
|
+
], BitcoinSignOnDto.prototype, "scopes", void 0);
|
|
59
62
|
exports.BitcoinSignOnDto = BitcoinSignOnDto;
|
|
60
63
|
//# 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;CAkC5B;AAjCC;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,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,CAAC;;gDACG;AAjCvB,4CAkCC"}
|
|
@@ -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;
|
|
@@ -7,5 +8,5 @@ export declare class EVMSignOnDto {
|
|
|
7
8
|
nonce: string;
|
|
8
9
|
publicKey: string;
|
|
9
10
|
authMessage: string;
|
|
10
|
-
|
|
11
|
+
scopes?: AuthScope[];
|
|
11
12
|
}
|
|
@@ -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([
|
|
@@ -49,7 +50,9 @@ __decorate([
|
|
|
49
50
|
], EVMSignOnDto.prototype, "authMessage", void 0);
|
|
50
51
|
__decorate([
|
|
51
52
|
(0, class_validator_1.IsOptional)(),
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
(0, class_validator_1.IsArray)(),
|
|
54
|
+
(0, class_validator_1.IsEnum)(entities_1.AuthScope),
|
|
55
|
+
__metadata("design:type", Array)
|
|
56
|
+
], EVMSignOnDto.prototype, "scopes", void 0);
|
|
54
57
|
exports.EVMSignOnDto = EVMSignOnDto;
|
|
55
58
|
//# 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;CA8BxB;AA7BC;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;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAM,EAAC,oBAAS,CAAC;;4CACG;AA7BvB,oCA8BC"}
|
|
@@ -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;
|
|
@@ -7,5 +8,5 @@ export declare class SignOnDto {
|
|
|
7
8
|
nonce: string;
|
|
8
9
|
platform?: Platform;
|
|
9
10
|
origin?: WalletOrigin;
|
|
10
|
-
|
|
11
|
+
scopes?: AuthScope[];
|
|
11
12
|
}
|
|
@@ -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([
|
|
@@ -47,7 +48,9 @@ __decorate([
|
|
|
47
48
|
], SignOnDto.prototype, "origin", void 0);
|
|
48
49
|
__decorate([
|
|
49
50
|
(0, class_validator_1.IsOptional)(),
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
(0, class_validator_1.IsArray)(),
|
|
52
|
+
(0, class_validator_1.IsEnum)(entities_1.AuthScope),
|
|
53
|
+
__metadata("design:type", Array)
|
|
54
|
+
], SignOnDto.prototype, "scopes", void 0);
|
|
52
55
|
exports.SignOnDto = SignOnDto;
|
|
53
56
|
//# 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;CA8BrB;AA7BC;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;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAM,EAAC,oBAAS,CAAC;;yCACG;AA7BvB,8BA8BC"}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.SignOnWeb3authSocialNetworkDto = 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 SignOnWeb3authSocialNetworkDto {
|
|
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
|
], SignOnWeb3authSocialNetworkDto.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),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], SignOnWeb3authSocialNetworkDto.prototype, "scopes", void 0);
|
|
27
34
|
exports.SignOnWeb3authSocialNetworkDto = SignOnWeb3authSocialNetworkDto;
|
|
28
35
|
//# 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;AAC9C,0CAAwC;AAExC,MAAa,8BAA8B;CAa1C;AAZC;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;IACT,IAAA,wBAAM,EAAC,oBAAS,CAAC;;8DACG;AAZvB,wEAaC"}
|
|
@@ -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),
|
|
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,CAAC;;oDACG;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"}
|