@heliofi/common 0.1.407 → 0.1.409

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.
@@ -1,13 +1,15 @@
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
+ nonceV2: boolean;
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([
@@ -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,15 @@ __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
+ __metadata("design:type", Boolean)
59
+ ], BitcoinSignOnDto.prototype, "nonceV2", 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),
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,qDAMyB;AACzB,yDAAyC;AACzC,kDAA8C;AAC9C,yCAA4C;AAC5C,2DAAuD;AAEvD,MAAa,gBAAgB;CAgC5B;AA/BC;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;AA/BtB,4CAgCC"}
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,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;;iDACI;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAM,EAAC,oBAAS,CAAC;;gDACG;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
  }
@@ -51,5 +51,10 @@ __decorate([
51
51
  (0, class_validator_1.IsOptional)(),
52
52
  __metadata("design:type", Boolean)
53
53
  ], EVMSignOnDto.prototype, "nonceV2", void 0);
54
+ __decorate([
55
+ (0, class_validator_1.IsOptional)(),
56
+ (0, class_validator_1.IsArray)(),
57
+ __metadata("design:type", Array)
58
+ ], EVMSignOnDto.prototype, "scopes", void 0);
54
59
  exports.EVMSignOnDto = EVMSignOnDto;
55
60
  //# 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,qDAMyB;AACzB,yDAAyC;AACzC,qDAAiD;AACjD,kDAA8C;AAE9C,MAAa,YAAY;CA4BxB;AA3BC;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;AA3BnB,oCA4BC"}
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;AAG9C,MAAa,YAAY;CAgCxB;AA/BC;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;;4CACW;AA/BvB,oCAgCC"}
@@ -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),
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,qDAA2E;AAC3E,kDAA8C;AAC9C,yCAA4C;AAE5C,MAAa,SAAS;CA4BrB;AA3BC;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;AA3BnB,8BA4BC"}
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,CAAC;;yCACG;AAhCvB,8BAiCC"}
@@ -1,5 +1,7 @@
1
1
  import { Platform } from '../../../constants';
2
+ import { AuthScope } from '../entities';
2
3
  export declare class SignOnWeb3authSocialNetworkDto {
3
4
  appPublicKey: string;
4
5
  platform?: Platform;
6
+ scopes?: AuthScope[];
5
7
  }
@@ -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,qDAA2E;AAC3E,kDAA8C;AAE9C,MAAa,8BAA8B;CAQ1C;AAPC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oEACQ;AAErB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAQ,CAAC;;gEACG;AAPtB,wEAQC"}
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"}
@@ -1,5 +1,7 @@
1
1
  import { Platform } from '../../../constants';
2
+ import { AuthScope } from '../entities';
2
3
  export declare class TransactionSignOnDto {
3
4
  transaction: string;
4
5
  platform?: Platform;
6
+ scopes?: AuthScope[];
5
7
  }
@@ -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,qDAA2E;AAC3E,kDAA8C;AAE9C,MAAa,oBAAoB;CAQhC;AAPC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACO;AAEpB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAQ,CAAC;;sDACG;AAPtB,oDAQC"}
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"}
@@ -18,4 +18,9 @@ export interface AuthUser {
18
18
  isCreated?: boolean;
19
19
  platform: Platform;
20
20
  originDomain?: string;
21
+ scopes: AuthScope[];
22
+ }
23
+ export declare enum AuthScope {
24
+ dashboard = "dashboard",
25
+ checkout = "checkout"
21
26
  }
@@ -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"}