@heliofi/common 0.1.214 → 0.1.216

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.
Files changed (27) hide show
  1. package/dist/src/domain/model/auth/entities/AuthUser.d.ts +1 -0
  2. package/dist/src/domain/model/checkoutStatus/entities/CheckoutStatusResponse.entity.d.ts +16 -0
  3. package/dist/src/domain/model/checkoutStatus/entities/CheckoutStatusResponse.entity.js +8 -0
  4. package/dist/src/domain/model/checkoutStatus/entities/CheckoutStatusResponse.entity.js.map +1 -0
  5. package/dist/src/domain/model/checkoutStatus/entities/index.d.ts +1 -0
  6. package/dist/src/domain/model/checkoutStatus/entities/index.js +18 -0
  7. package/dist/src/domain/model/checkoutStatus/entities/index.js.map +1 -0
  8. package/dist/src/domain/model/checkoutStatus/index.d.ts +1 -0
  9. package/dist/src/domain/model/checkoutStatus/index.js +18 -0
  10. package/dist/src/domain/model/checkoutStatus/index.js.map +1 -0
  11. package/dist/src/domain/model/index.d.ts +1 -0
  12. package/dist/src/domain/model/index.js +1 -0
  13. package/dist/src/domain/model/index.js.map +1 -1
  14. package/dist/src/domain/model/nft-escrow/dtos/nftEscrowCancel.dto.d.ts +1 -1
  15. package/dist/src/domain/model/nft-escrow/dtos/nftEscrowCancel.dto.js +1 -1
  16. package/dist/src/domain/model/nft-escrow/dtos/nftEscrowCancel.dto.js.map +1 -1
  17. package/dist/src/domain/model/nft-escrow/dtos/nftEscrowCreate.dto.d.ts +2 -2
  18. package/dist/src/domain/model/nft-escrow/dtos/nftEscrowCreate.dto.js +2 -2
  19. package/dist/src/domain/model/nft-escrow/dtos/nftEscrowCreate.dto.js.map +1 -1
  20. package/dist/src/domain/model/paystream-tx/entities/PaystreamCheckoutStatusResponse.entity.d.ts +5 -0
  21. package/dist/src/domain/model/paystream-tx/entities/PaystreamCheckoutStatusResponse.entity.js +26 -0
  22. package/dist/src/domain/model/paystream-tx/entities/PaystreamCheckoutStatusResponse.entity.js.map +1 -0
  23. package/dist/src/domain/model/paystream-tx/entities/index.d.ts +1 -0
  24. package/dist/src/domain/model/paystream-tx/entities/index.js +1 -0
  25. package/dist/src/domain/model/paystream-tx/entities/index.js.map +1 -1
  26. package/dist/tsconfig.tsbuildinfo +1 -1
  27. package/package.json +1 -1
@@ -10,6 +10,7 @@ export interface AuthUser {
10
10
  id: string;
11
11
  roles: JwtUserRole[];
12
12
  wallet?: Wallet;
13
+ wallets?: Wallet[];
13
14
  email?: string;
14
15
  isHelioXUser?: boolean;
15
16
  enabledBetaFeatures?: BetaFeature[];
@@ -0,0 +1,16 @@
1
+ import { ContentResponse } from '../../content';
2
+ import { Entity } from '../../entity';
3
+ import { TransactionStatus } from '../../transaction-meta';
4
+ export declare class CheckoutStatusResponse extends Entity {
5
+ transactionStatus: TransactionStatus;
6
+ transactionSignature?: string;
7
+ paymentData?: {
8
+ document: {
9
+ id: string;
10
+ createdAt: string;
11
+ paymentPK: string;
12
+ maxTime: number;
13
+ };
14
+ content?: ContentResponse;
15
+ };
16
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CheckoutStatusResponse = void 0;
4
+ const entity_1 = require("../../entity");
5
+ class CheckoutStatusResponse extends entity_1.Entity {
6
+ }
7
+ exports.CheckoutStatusResponse = CheckoutStatusResponse;
8
+ //# sourceMappingURL=CheckoutStatusResponse.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckoutStatusResponse.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/checkoutStatus/entities/CheckoutStatusResponse.entity.ts"],"names":[],"mappings":";;;AACA,yCAAsC;AAGtC,MAAa,sBAAuB,SAAQ,eAAM;CAejD;AAfD,wDAeC"}
@@ -0,0 +1 @@
1
+ export * from './CheckoutStatusResponse.entity';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CheckoutStatusResponse.entity"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/checkoutStatus/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD"}
@@ -0,0 +1 @@
1
+ export * from './entities';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entities"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/checkoutStatus/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
@@ -63,6 +63,7 @@ export * from './settle-transaction';
63
63
  export * from './media';
64
64
  export * from './helio-play';
65
65
  export * from './funding';
66
+ export * from './checkoutStatus';
66
67
  export * from './prepare-refund';
67
68
  export * from './refund';
68
69
  export * from './submit-refund';
@@ -79,6 +79,7 @@ __exportStar(require("./settle-transaction"), exports);
79
79
  __exportStar(require("./media"), exports);
80
80
  __exportStar(require("./helio-play"), exports);
81
81
  __exportStar(require("./funding"), exports);
82
+ __exportStar(require("./checkoutStatus"), exports);
82
83
  __exportStar(require("./prepare-refund"), exports);
83
84
  __exportStar(require("./refund"), exports);
84
85
  __exportStar(require("./submit-refund"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;AACvB,yCAAuB;AACvB,2CAAyB;AACzB,2CAAyB;AACzB,qDAAmC;AACnC,0DAAwC;AACxC,qDAAmC;AACnC,mDAAiC;AACjC,6CAA2B;AAC3B,4CAA0B;AAC1B,2CAAyB;AACzB,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,4CAA0B;AAC1B,kDAAgC;AAChC,oDAAkC;AAClC,6DAA2C;AAC3C,+CAA6B;AAC7B,0CAAwB;AACxB,yCAAuB;AACvB,wDAAsC;AACtC,4CAA0B;AAC1B,oDAAkC;AAClC,8CAA4B;AAC5B,iDAA+B;AAC/B,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC;AAClC,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,uDAAqC;AACrC,mDAAiC;AACjC,4CAA0B;AAC1B,kDAAgC;AAChC,kDAAgC;AAChC,4CAA0B;AAC1B,mDAAiC;AACjC,mDAAiC;AACjC,4CAA0B;AAC1B,wDAAsC;AACtC,kDAAgC;AAChC,mDAAiC;AACjC,4CAA0B;AAC1B,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,+CAA6B;AAC7B,0CAAwB;AACxB,mDAAiC;AACjC,kDAAgC;AAChC,wCAAsB;AACtB,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,4DAA0C;AAC1C,gEAA8C;AAC9C,+DAA6C;AAC7C,uDAAqC;AACrC,0CAAwB;AACxB,+CAA6B;AAC7B,4CAA0B;AAC1B,mDAAiC;AACjC,2CAAyB;AACzB,kDAAgC;AAChC,2DAAyC;AACzC,6CAA2B;AAC3B,mDAAiC;AACjC,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;AACvB,yCAAuB;AACvB,2CAAyB;AACzB,2CAAyB;AACzB,qDAAmC;AACnC,0DAAwC;AACxC,qDAAmC;AACnC,mDAAiC;AACjC,6CAA2B;AAC3B,4CAA0B;AAC1B,2CAAyB;AACzB,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,4CAA0B;AAC1B,kDAAgC;AAChC,oDAAkC;AAClC,6DAA2C;AAC3C,+CAA6B;AAC7B,0CAAwB;AACxB,yCAAuB;AACvB,wDAAsC;AACtC,4CAA0B;AAC1B,oDAAkC;AAClC,8CAA4B;AAC5B,iDAA+B;AAC/B,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC;AAClC,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,uDAAqC;AACrC,mDAAiC;AACjC,4CAA0B;AAC1B,kDAAgC;AAChC,kDAAgC;AAChC,4CAA0B;AAC1B,mDAAiC;AACjC,mDAAiC;AACjC,4CAA0B;AAC1B,wDAAsC;AACtC,kDAAgC;AAChC,mDAAiC;AACjC,4CAA0B;AAC1B,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,+CAA6B;AAC7B,0CAAwB;AACxB,mDAAiC;AACjC,kDAAgC;AAChC,wCAAsB;AACtB,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,4DAA0C;AAC1C,gEAA8C;AAC9C,+DAA6C;AAC7C,uDAAqC;AACrC,0CAAwB;AACxB,+CAA6B;AAC7B,4CAA0B;AAC1B,mDAAiC;AACjC,mDAAiC;AACjC,2CAAyB;AACzB,kDAAgC;AAChC,2DAAyC;AACzC,6CAA2B;AAC3B,mDAAiC;AACjC,+CAA6B"}
@@ -1,5 +1,5 @@
1
1
  export declare class NftEscrowCancelDto {
2
2
  ownerPK: string;
3
3
  escrowAccountPK: string;
4
- mintPK: string;
4
+ mintAddress: string;
5
5
  }
@@ -27,6 +27,6 @@ __decorate([
27
27
  (0, class_validator_1.IsString)(),
28
28
  (0, class_validator_1.IsNotEmpty)(),
29
29
  __metadata("design:type", String)
30
- ], NftEscrowCancelDto.prototype, "mintPK", void 0);
30
+ ], NftEscrowCancelDto.prototype, "mintAddress", void 0);
31
31
  exports.NftEscrowCancelDto = NftEscrowCancelDto;
32
32
  //# sourceMappingURL=nftEscrowCancel.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nftEscrowCancel.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/nft-escrow/dtos/nftEscrowCancel.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,kBAAkB;CAY9B;AAXC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACW;AAExB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACE;AAXjB,gDAYC"}
1
+ {"version":3,"file":"nftEscrowCancel.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/nft-escrow/dtos/nftEscrowCancel.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,kBAAkB;CAY9B;AAXC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACW;AAExB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACO;AAXtB,gDAYC"}
@@ -2,6 +2,6 @@ export declare class NftEscrowCreateDto {
2
2
  price: string;
3
3
  ownerPK: string;
4
4
  escrowAccountPK: string;
5
- mintPK: string;
6
- currencyPK: string;
5
+ mintAddress: string;
6
+ currencyMintAddress: string;
7
7
  }
@@ -33,11 +33,11 @@ __decorate([
33
33
  (0, class_validator_1.IsString)(),
34
34
  (0, class_validator_1.IsNotEmpty)(),
35
35
  __metadata("design:type", String)
36
- ], NftEscrowCreateDto.prototype, "mintPK", void 0);
36
+ ], NftEscrowCreateDto.prototype, "mintAddress", void 0);
37
37
  __decorate([
38
38
  (0, class_validator_1.IsString)(),
39
39
  (0, class_validator_1.IsNotEmpty)(),
40
40
  __metadata("design:type", String)
41
- ], NftEscrowCreateDto.prototype, "currencyPK", void 0);
41
+ ], NftEscrowCreateDto.prototype, "currencyMintAddress", void 0);
42
42
  exports.NftEscrowCreateDto = NftEscrowCreateDto;
43
43
  //# sourceMappingURL=nftEscrowCreate.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nftEscrowCreate.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/nft-escrow/dtos/nftEscrowCreate.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAAuD;AAEvD,MAAa,kBAAkB;CAoB9B;AAnBC;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;iDAC1B;AAEd;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACW;AAExB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACM;AAnBrB,gDAoBC"}
1
+ {"version":3,"file":"nftEscrowCreate.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/nft-escrow/dtos/nftEscrowCreate.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAAuD;AAEvD,MAAa,kBAAkB;CAoB9B;AAnBC;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;iDAC1B;AAEd;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACW;AAExB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACO;AAEpB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACe;AAnB9B,gDAoBC"}
@@ -0,0 +1,5 @@
1
+ import { CheckoutStatusResponse } from '../../checkoutStatus';
2
+ export declare class PaystreamCheckoutStatusResponse extends CheckoutStatusResponse {
3
+ startedAt?: bigint;
4
+ endedAt?: bigint;
5
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.PaystreamCheckoutStatusResponse = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const checkoutStatus_1 = require("../../checkoutStatus");
15
+ class PaystreamCheckoutStatusResponse extends checkoutStatus_1.CheckoutStatusResponse {
16
+ }
17
+ __decorate([
18
+ (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
19
+ __metadata("design:type", BigInt)
20
+ ], PaystreamCheckoutStatusResponse.prototype, "startedAt", void 0);
21
+ __decorate([
22
+ (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
23
+ __metadata("design:type", BigInt)
24
+ ], PaystreamCheckoutStatusResponse.prototype, "endedAt", void 0);
25
+ exports.PaystreamCheckoutStatusResponse = PaystreamCheckoutStatusResponse;
26
+ //# sourceMappingURL=PaystreamCheckoutStatusResponse.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaystreamCheckoutStatusResponse.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream-tx/entities/PaystreamCheckoutStatusResponse.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,yDAA8D;AAE9D,MAAa,+BAAgC,SAAQ,uCAAsB;CAM1E;AALC;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;kEACrB;AAEnB;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;gEACvB;AALnB,0EAMC"}
@@ -4,4 +4,5 @@ export * from './PaystreamTxWithContent';
4
4
  export * from './BasePaystreamTxWithTransaction';
5
5
  export * from './BasePaystreamTxWithSwapTransaction';
6
6
  export * from './PaystreamTxWithMeta';
7
+ export * from './PaystreamCheckoutStatusResponse.entity';
7
8
  export * from './CheckoutStatus.entity';
@@ -20,5 +20,6 @@ __exportStar(require("./PaystreamTxWithContent"), exports);
20
20
  __exportStar(require("./BasePaystreamTxWithTransaction"), exports);
21
21
  __exportStar(require("./BasePaystreamTxWithSwapTransaction"), exports);
22
22
  __exportStar(require("./PaystreamTxWithMeta"), exports);
23
+ __exportStar(require("./PaystreamCheckoutStatusResponse.entity"), exports);
23
24
  __exportStar(require("./CheckoutStatus.entity"), exports);
24
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream-tx/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,oDAAkC;AAClC,2DAAyC;AACzC,mEAAiD;AACjD,uEAAqD;AACrD,wDAAsC;AACtC,0DAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream-tx/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,oDAAkC;AAClC,2DAAyC;AACzC,mEAAiD;AACjD,uEAAqD;AACrD,wDAAsC;AACtC,2EAAyD;AACzD,0DAAwC"}