@heliofi/common 0.1.217 → 0.1.218

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 (26) hide show
  1. package/dist/src/domain/model/index.d.ts +1 -0
  2. package/dist/src/domain/model/index.js +1 -0
  3. package/dist/src/domain/model/index.js.map +1 -1
  4. package/dist/tsconfig.tsbuildinfo +1 -1
  5. package/package.json +2 -2
  6. package/dist/src/domain/model/fixed-currency/entities/TokenRatePayload.d.ts +0 -9
  7. package/dist/src/domain/model/fixed-currency/entities/TokenRatePayload.js +0 -8
  8. package/dist/src/domain/model/fixed-currency/entities/TokenRatePayload.js.map +0 -1
  9. package/dist/src/domain/model/paylink/entities/OnlyContentAndTransactionPaylink.d.ts +0 -13
  10. package/dist/src/domain/model/paylink/entities/OnlyContentAndTransactionPaylink.js +0 -11
  11. package/dist/src/domain/model/paylink/entities/OnlyContentAndTransactionPaylink.js.map +0 -1
  12. package/dist/src/domain/model/paystream/entities/IntervalType.d.ts +0 -9
  13. package/dist/src/domain/model/paystream/entities/IntervalType.js +0 -14
  14. package/dist/src/domain/model/paystream/entities/IntervalType.js.map +0 -1
  15. package/dist/src/domain/model/paystream-tx/dtos/createPaystreamTxDto.d.ts +0 -11
  16. package/dist/src/domain/model/paystream-tx/dtos/createPaystreamTxDto.js +0 -57
  17. package/dist/src/domain/model/paystream-tx/dtos/createPaystreamTxDto.js.map +0 -1
  18. package/dist/src/domain/model/paystream-tx/dtos/updatePaystreamTxDto.d.ts +0 -6
  19. package/dist/src/domain/model/paystream-tx/dtos/updatePaystreamTxDto.js +0 -36
  20. package/dist/src/domain/model/paystream-tx/dtos/updatePaystreamTxDto.js.map +0 -1
  21. package/dist/src/domain/model/paystream-tx/entities/PaystreamTx.d.ts +0 -20
  22. package/dist/src/domain/model/paystream-tx/entities/PaystreamTx.js +0 -37
  23. package/dist/src/domain/model/paystream-tx/entities/PaystreamTx.js.map +0 -1
  24. package/dist/src/domain/model/prepare-stream/entities/TokenStreamPayload.d.ts +0 -8
  25. package/dist/src/domain/model/prepare-stream/entities/TokenStreamPayload.js +0 -8
  26. package/dist/src/domain/model/prepare-stream/entities/TokenStreamPayload.js.map +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@heliofi/common",
3
3
  "private": false,
4
- "version": "0.1.217",
4
+ "version": "0.1.218",
5
5
  "description": "Common package",
6
6
  "main": "dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -25,5 +25,5 @@
25
25
  "ts-loader": "^9.3.1",
26
26
  "typescript": "^4.8.2"
27
27
  },
28
- "gitHead": "43997894b868d9d61295550c10d460489dbdcaa1"
28
+ "gitHead": "ad1855990b608abf63b42842fc867f8bb7d65530"
29
29
  }
@@ -1,9 +0,0 @@
1
- import { Entity } from '../../entity';
2
- export declare class TokenRatePayload extends Entity {
3
- rate: number;
4
- from: string;
5
- to: string;
6
- prid: string;
7
- iat: number;
8
- exp: number;
9
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TokenRatePayload = void 0;
4
- const entity_1 = require("../../entity");
5
- class TokenRatePayload extends entity_1.Entity {
6
- }
7
- exports.TokenRatePayload = TokenRatePayload;
8
- //# sourceMappingURL=TokenRatePayload.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TokenRatePayload.js","sourceRoot":"","sources":["../../../../../../src/domain/model/fixed-currency/entities/TokenRatePayload.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,gBAAiB,SAAQ,eAAM;CAY3C;AAZD,4CAYC"}
@@ -1,13 +0,0 @@
1
- import { Entity } from '../../entity';
2
- import { ContentResponse } from '../../content';
3
- import { TransactionStatus } from '../../transaction-meta';
4
- export declare class OnlyContentAndTransactionPaylink extends Entity {
5
- content: ContentResponse;
6
- transactionSignature?: string;
7
- status?: TransactionStatus;
8
- }
9
- export declare class OnlyContentAndSwapTransactionPaylink extends Entity {
10
- content: ContentResponse;
11
- transactionSignature?: string;
12
- swapTransactionSignature?: string;
13
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OnlyContentAndSwapTransactionPaylink = exports.OnlyContentAndTransactionPaylink = void 0;
4
- const entity_1 = require("../../entity");
5
- class OnlyContentAndTransactionPaylink extends entity_1.Entity {
6
- }
7
- exports.OnlyContentAndTransactionPaylink = OnlyContentAndTransactionPaylink;
8
- class OnlyContentAndSwapTransactionPaylink extends entity_1.Entity {
9
- }
10
- exports.OnlyContentAndSwapTransactionPaylink = OnlyContentAndSwapTransactionPaylink;
11
- //# sourceMappingURL=OnlyContentAndTransactionPaylink.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OnlyContentAndTransactionPaylink.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paylink/entities/OnlyContentAndTransactionPaylink.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAItC,MAAa,gCAAiC,SAAQ,eAAM;CAI3D;AAJD,4EAIC;AAED,MAAa,oCAAqC,SAAQ,eAAM;CAI/D;AAJD,oFAIC"}
@@ -1,9 +0,0 @@
1
- export declare enum IntervalType {
2
- SECOND = "SECOND",
3
- MINUTE = "MINUTE",
4
- HOUR = "HOUR",
5
- DAY = "DAY",
6
- WEEK = "WEEK",
7
- MONTH = "MONTH",
8
- YEAR = "YEAR"
9
- }
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IntervalType = void 0;
4
- var IntervalType;
5
- (function (IntervalType) {
6
- IntervalType["SECOND"] = "SECOND";
7
- IntervalType["MINUTE"] = "MINUTE";
8
- IntervalType["HOUR"] = "HOUR";
9
- IntervalType["DAY"] = "DAY";
10
- IntervalType["WEEK"] = "WEEK";
11
- IntervalType["MONTH"] = "MONTH";
12
- IntervalType["YEAR"] = "YEAR";
13
- })(IntervalType = exports.IntervalType || (exports.IntervalType = {}));
14
- //# sourceMappingURL=IntervalType.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IntervalType.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream/entities/IntervalType.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,iCAAiB,CAAA;IACjB,6BAAa,CAAA;IACb,2BAAW,CAAA;IACX,6BAAa,CAAA;IACb,+BAAe,CAAA;IACf,6BAAa,CAAA;AACf,CAAC,EARW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAQvB"}
@@ -1,11 +0,0 @@
1
- import { CreateStreamEventDto } from '../../stream-event';
2
- import { CreateTransactionMetaDto } from '../../transaction-meta';
3
- export declare class CreatePaystreamTxDto {
4
- meta: CreateTransactionMetaDto;
5
- paystream: string;
6
- paymentAccount: string;
7
- startedAt: CreateStreamEventDto;
8
- endedAt?: string;
9
- interval: number;
10
- isHelioX?: boolean;
11
- }
@@ -1,57 +0,0 @@
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.CreatePaystreamTxDto = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- const class_validator_1 = require("class-validator");
15
- const stream_event_1 = require("../../stream-event");
16
- const transaction_meta_1 = require("../../transaction-meta");
17
- class CreatePaystreamTxDto {
18
- }
19
- __decorate([
20
- (0, class_validator_1.IsNotEmpty)(),
21
- (0, class_transformer_1.Type)(() => transaction_meta_1.CreateTransactionMetaDto),
22
- (0, class_validator_1.ValidateNested)(),
23
- __metadata("design:type", transaction_meta_1.CreateTransactionMetaDto)
24
- ], CreatePaystreamTxDto.prototype, "meta", void 0);
25
- __decorate([
26
- (0, class_validator_1.IsString)(),
27
- (0, class_validator_1.IsNotEmpty)(),
28
- __metadata("design:type", String)
29
- ], CreatePaystreamTxDto.prototype, "paystream", void 0);
30
- __decorate([
31
- (0, class_validator_1.IsString)(),
32
- (0, class_validator_1.IsNotEmpty)(),
33
- __metadata("design:type", String)
34
- ], CreatePaystreamTxDto.prototype, "paymentAccount", void 0);
35
- __decorate([
36
- (0, class_validator_1.IsNotEmpty)(),
37
- (0, class_transformer_1.Type)(() => stream_event_1.CreateStreamEventDto),
38
- (0, class_validator_1.ValidateNested)(),
39
- __metadata("design:type", stream_event_1.CreateStreamEventDto)
40
- ], CreatePaystreamTxDto.prototype, "startedAt", void 0);
41
- __decorate([
42
- (0, class_validator_1.IsOptional)(),
43
- (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
44
- __metadata("design:type", String)
45
- ], CreatePaystreamTxDto.prototype, "endedAt", void 0);
46
- __decorate([
47
- (0, class_validator_1.IsNumber)(),
48
- (0, class_validator_1.IsNotEmpty)(),
49
- __metadata("design:type", Number)
50
- ], CreatePaystreamTxDto.prototype, "interval", void 0);
51
- __decorate([
52
- (0, class_validator_1.IsBoolean)(),
53
- (0, class_validator_1.IsOptional)(),
54
- __metadata("design:type", Boolean)
55
- ], CreatePaystreamTxDto.prototype, "isHelioX", void 0);
56
- exports.CreatePaystreamTxDto = CreatePaystreamTxDto;
57
- //# sourceMappingURL=createPaystreamTxDto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createPaystreamTxDto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream-tx/dtos/createPaystreamTxDto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAoD;AACpD,qDAOyB;AACzB,qDAA0D;AAC1D,6DAAkE;AAElE,MAAa,oBAAoB;CA8BhC;AA7BC;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2CAAwB,CAAC;IACpC,IAAA,gCAAc,GAAE;8BACX,2CAAwB;kDAAC;AAE/B;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACK;AAElB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACU;AAEvB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAoB,CAAC;IAChC,IAAA,gCAAc,GAAE;8BACN,mCAAoB;uDAAC;AAEhC;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;qDACvB;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACI;AAEjB;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;sDACM;AA7BrB,oDA8BC"}
@@ -1,6 +0,0 @@
1
- import { CreateStreamEventDto } from '../../stream-event';
2
- export declare class UpdatePaystreamTxDto {
3
- canceledAt?: CreateStreamEventDto;
4
- endedAt?: string;
5
- withdrawals?: string[];
6
- }
@@ -1,36 +0,0 @@
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.UpdatePaystreamTxDto = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- const class_validator_1 = require("class-validator");
15
- const stream_event_1 = require("../../stream-event");
16
- const withdrawal_1 = require("../../withdrawal");
17
- class UpdatePaystreamTxDto {
18
- }
19
- __decorate([
20
- (0, class_validator_1.IsOptional)(),
21
- (0, class_transformer_1.Type)(() => stream_event_1.CreateStreamEventDto),
22
- (0, class_validator_1.ValidateNested)(),
23
- __metadata("design:type", stream_event_1.CreateStreamEventDto)
24
- ], UpdatePaystreamTxDto.prototype, "canceledAt", void 0);
25
- __decorate([
26
- (0, class_validator_1.IsOptional)(),
27
- (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
28
- __metadata("design:type", String)
29
- ], UpdatePaystreamTxDto.prototype, "endedAt", void 0);
30
- __decorate([
31
- (0, class_validator_1.IsOptional)(),
32
- (0, class_transformer_1.Type)(() => withdrawal_1.Withdrawal),
33
- __metadata("design:type", Array)
34
- ], UpdatePaystreamTxDto.prototype, "withdrawals", void 0);
35
- exports.UpdatePaystreamTxDto = UpdatePaystreamTxDto;
36
- //# sourceMappingURL=updatePaystreamTxDto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"updatePaystreamTxDto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream-tx/dtos/updatePaystreamTxDto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAoD;AACpD,qDAA6D;AAC7D,qDAA0D;AAC1D,iDAA8C;AAE9C,MAAa,oBAAoB;CAahC;AAZC;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAoB,CAAC;IAChC,IAAA,gCAAc,GAAE;8BACJ,mCAAoB;wDAAC;AAElC;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;qDACvB;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,uBAAU,CAAC;;yDACA;AAZzB,oDAaC"}
@@ -1,20 +0,0 @@
1
- import { Paystream } from '../../paystream';
2
- import { BasePaystreamTx } from './BasePaystreamTx';
3
- import { Withdrawal } from '../../withdrawal';
4
- import { TransactionMeta } from '../../transaction-meta';
5
- import { Contact } from '../../contact';
6
- import { BlockchainSymbol } from '../../blockchain';
7
- export declare class PaystreamTx extends BasePaystreamTx {
8
- paystream: Paystream;
9
- meta: TransactionMeta;
10
- withdrawals: Withdrawal[];
11
- contact?: Contact;
12
- fee: bigint;
13
- paymentRequestCreatorId: string;
14
- paymentRequestName: string;
15
- paymentRequestImageUrl?: string;
16
- paymentRequestCurrencySymbol: string;
17
- paymentRequestBlockchain: BlockchainSymbol;
18
- totalWithdrawn?: bigint;
19
- canWithdraw?: boolean;
20
- }
@@ -1,37 +0,0 @@
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.PaystreamTx = void 0;
13
- const paystream_1 = require("../../paystream");
14
- const BasePaystreamTx_1 = require("./BasePaystreamTx");
15
- const withdrawal_1 = require("../../withdrawal");
16
- const class_transformer_1 = require("class-transformer");
17
- const transaction_meta_1 = require("../../transaction-meta");
18
- class PaystreamTx extends BasePaystreamTx_1.BasePaystreamTx {
19
- }
20
- __decorate([
21
- (0, class_transformer_1.Type)(() => paystream_1.Paystream),
22
- __metadata("design:type", paystream_1.Paystream)
23
- ], PaystreamTx.prototype, "paystream", void 0);
24
- __decorate([
25
- (0, class_transformer_1.Type)(() => transaction_meta_1.BaseTransactionMeta),
26
- __metadata("design:type", transaction_meta_1.TransactionMeta)
27
- ], PaystreamTx.prototype, "meta", void 0);
28
- __decorate([
29
- (0, class_transformer_1.Type)(() => withdrawal_1.Withdrawal),
30
- __metadata("design:type", Array)
31
- ], PaystreamTx.prototype, "withdrawals", void 0);
32
- __decorate([
33
- (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
34
- __metadata("design:type", BigInt)
35
- ], PaystreamTx.prototype, "fee", void 0);
36
- exports.PaystreamTx = PaystreamTx;
37
- //# sourceMappingURL=PaystreamTx.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PaystreamTx.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream-tx/entities/PaystreamTx.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA4C;AAC5C,uDAAoD;AACpD,iDAA8C;AAC9C,yDAAoD;AACpD,6DAA8E;AAI9E,MAAa,WAAY,SAAQ,iCAAe;CA4B/C;AA3BC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAS,CAAC;8BACX,qBAAS;8CAAC;AAErB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sCAAmB,CAAC;8BAC1B,kCAAe;yCAAC;AAEtB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,uBAAU,CAAC;;gDACG;AAI1B;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;wCAC5B;AAbd,kCA4BC"}
@@ -1,8 +0,0 @@
1
- import { Entity } from '../../entity';
2
- import { FeeProperties } from '../../fee';
3
- export declare class TokenStreamPayload extends Entity {
4
- hash: string;
5
- requestOrTransactionId: string;
6
- feeProperties: FeeProperties;
7
- sessionHash?: string;
8
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TokenStreamPayload = void 0;
4
- const entity_1 = require("../../entity");
5
- class TokenStreamPayload extends entity_1.Entity {
6
- }
7
- exports.TokenStreamPayload = TokenStreamPayload;
8
- //# sourceMappingURL=TokenStreamPayload.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TokenStreamPayload.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-stream/entities/TokenStreamPayload.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,kBAAmB,SAAQ,eAAM;CAQ7C;AARD,gDAQC"}