@heliofi/common 0.1.212 → 0.1.214

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,8 +1,22 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.Contact = void 0;
13
+ const class_transformer_1 = require("class-transformer");
4
14
  const entity_1 = require("../../entity");
5
15
  class Contact extends entity_1.Entity {
6
16
  }
17
+ __decorate([
18
+ (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
19
+ __metadata("design:type", BigInt)
20
+ ], Contact.prototype, "totalCharged", void 0);
7
21
  exports.Contact = Contact;
8
22
  //# sourceMappingURL=Contact.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Contact.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/contact/entities/Contact.entity.ts"],"names":[],"mappings":";;;AACA,yCAAsC;AAEtC,MAAa,OAAQ,SAAQ,eAAM;CAkBlC;AAlBD,0BAkBC"}
1
+ {"version":3,"file":"Contact.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/contact/entities/Contact.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAE9C,yCAAsC;AAEtC,MAAa,OAAQ,SAAQ,eAAM;CAmBlC;AANC;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;6CAClB;AAdxB,0BAmBC"}
@@ -1,6 +1,8 @@
1
+ import { DCTokenType } from '../DCTokenType';
1
2
  export declare class DiscountCodeDto {
2
3
  percent: number;
3
4
  token: string;
4
5
  prId?: string;
5
6
  id?: string;
7
+ tokenType: DCTokenType;
6
8
  }
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.DiscountCodeDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
+ const DCTokenType_1 = require("../DCTokenType");
14
15
  class DiscountCodeDto {
15
16
  }
16
17
  __decorate([
@@ -33,5 +34,10 @@ __decorate([
33
34
  (0, class_validator_1.IsOptional)(),
34
35
  __metadata("design:type", String)
35
36
  ], DiscountCodeDto.prototype, "id", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsNotEmpty)(),
39
+ (0, class_validator_1.IsEnum)(DCTokenType_1.DCTokenType),
40
+ __metadata("design:type", String)
41
+ ], DiscountCodeDto.prototype, "tokenType", void 0);
36
42
  exports.DiscountCodeDto = DiscountCodeDto;
37
43
  //# sourceMappingURL=discountCode.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"discountCode.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/discount-codes/dtos/discountCode.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6E;AAE7E,MAAa,eAAe;CAgB3B;AAfC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACC;AAEd;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6CACC;AAEd;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2CACD;AAfd,0CAgBC"}
1
+ {"version":3,"file":"discountCode.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/discount-codes/dtos/discountCode.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,gDAA6C;AAE7C,MAAa,eAAe;CAoB3B;AAnBC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACC;AAEd;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6CACC;AAEd;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2CACD;AAEZ;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,yBAAW,CAAC;;kDACG;AAnBzB,0CAoBC"}
@@ -1,6 +1,8 @@
1
1
  import { Entity } from '../../entity';
2
+ import { DCTokenType } from '../DCTokenType';
2
3
  export declare class DiscountCode extends Entity {
3
4
  id?: string;
4
5
  token: string;
5
6
  percent: number;
7
+ tokenType: DCTokenType;
6
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DiscountCode.js","sourceRoot":"","sources":["../../../../../../src/domain/model/discount-codes/entities/DiscountCode.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,YAAa,SAAQ,eAAM;CAMvC;AAND,oCAMC"}
1
+ {"version":3,"file":"DiscountCode.js","sourceRoot":"","sources":["../../../../../../src/domain/model/discount-codes/entities/DiscountCode.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,YAAa,SAAQ,eAAM;CAQvC;AARD,oCAQC"}
@@ -4,5 +4,5 @@ export declare class CreatePaylinkTxDto {
4
4
  paylink: string;
5
5
  quantity: number;
6
6
  fee?: string;
7
- discountCode?: string;
7
+ discountCodes?: string[];
8
8
  }
@@ -40,7 +40,7 @@ __decorate([
40
40
  __decorate([
41
41
  (0, class_validator_1.IsString)(),
42
42
  (0, class_validator_1.IsOptional)(),
43
- __metadata("design:type", String)
44
- ], CreatePaylinkTxDto.prototype, "discountCode", void 0);
43
+ __metadata("design:type", Array)
44
+ ], CreatePaylinkTxDto.prototype, "discountCodes", void 0);
45
45
  exports.CreatePaylinkTxDto = CreatePaylinkTxDto;
46
46
  //# sourceMappingURL=createPaylinkTx.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createPaylinkTx.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paylink-tx/dtos/createPaylinkTx.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAoD;AACpD,qDAMyB;AACzB,6DAAkE;AAElE,MAAa,kBAAkB;CAsB9B;AArBC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2CAAwB,CAAC;IACpC,IAAA,gCAAc,GAAE;8BACX,2CAAwB;gDAAC;AAE/B;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACI;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;+CAC3B;AAEb;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACS;AArBxB,gDAsBC"}
1
+ {"version":3,"file":"createPaylinkTx.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paylink-tx/dtos/createPaylinkTx.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAoD;AACpD,qDAMyB;AACzB,6DAAkE;AAElE,MAAa,kBAAkB;CAsB9B;AArBC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2CAAwB,CAAC;IACpC,IAAA,gCAAc,GAAE;8BACX,2CAAwB;gDAAC;AAE/B;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACI;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;+CAC3B;AAEb;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACY;AArB3B,gDAsBC"}
@@ -0,0 +1,7 @@
1
+ import { Entity } from '../../entity';
2
+ export declare class PaymentRequestPreview extends Entity {
3
+ title?: string;
4
+ imageUrl?: string;
5
+ description?: string;
6
+ isHelioPlay?: boolean;
7
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentRequestPreview = void 0;
4
+ const entity_1 = require("../../entity");
5
+ class PaymentRequestPreview extends entity_1.Entity {
6
+ }
7
+ exports.PaymentRequestPreview = PaymentRequestPreview;
8
+ //# sourceMappingURL=PaymentRequestPreview.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaymentRequestPreview.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/payment-request/entities/PaymentRequestPreview.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,qBAAsB,SAAQ,eAAM;CAQhD;AARD,sDAQC"}
@@ -3,3 +3,4 @@ export * from './BasePaymentRequest';
3
3
  export * from './ShallowEnrichedPaymentRequest';
4
4
  export * from './PaymentRequestType';
5
5
  export * from './SlugPaymentRequest';
6
+ export * from './PaymentRequestPreview.entity';
@@ -19,4 +19,5 @@ __exportStar(require("./BasePaymentRequest"), exports);
19
19
  __exportStar(require("./ShallowEnrichedPaymentRequest"), exports);
20
20
  __exportStar(require("./PaymentRequestType"), exports);
21
21
  __exportStar(require("./SlugPaymentRequest"), exports);
22
+ __exportStar(require("./PaymentRequestPreview.entity"), exports);
22
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/payment-request/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,uDAAqC;AACrC,kEAAgD;AAChD,uDAAqC;AACrC,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/payment-request/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,uDAAqC;AACrC,kEAAgD;AAChD,uDAAqC;AACrC,uDAAqC;AACrC,iEAA+C"}