@heliofi/common 0.1.499 → 0.1.502

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 (62) hide show
  1. package/dist/src/domain/model/raffle-details/dtos/createRaffleDetails.dto.d.ts +7 -0
  2. package/dist/src/domain/model/{transaction/dtos/claimTransaction.dto.js → raffle-details/dtos/createRaffleDetails.dto.js} +24 -13
  3. package/dist/src/domain/model/raffle-details/dtos/createRaffleDetails.dto.js.map +1 -0
  4. package/dist/src/domain/model/raffle-details/dtos/updateRaffleDetails.dto.d.ts +6 -0
  5. package/dist/src/domain/model/{eventDetails/dtos/eventDetails.dto.js → raffle-details/dtos/updateRaffleDetails.dto.js} +17 -9
  6. package/dist/src/domain/model/raffle-details/dtos/updateRaffleDetails.dto.js.map +1 -0
  7. package/dist/src/domain/model/transaction/entities/TransactionDetails.entity.d.ts +4 -0
  8. package/dist/src/domain/model/transaction/entities/TransactionDetails.entity.js.map +1 -1
  9. package/dist/src/domain/model/transaction/entities/index.d.ts +1 -0
  10. package/dist/src/domain/model/transaction/entities/index.js +1 -0
  11. package/dist/src/domain/model/transaction/entities/index.js.map +1 -1
  12. package/dist/src/domain/model/transaction-meta/entities/integration.enum.d.ts +3 -0
  13. package/dist/src/domain/model/transaction-meta/entities/integration.enum.js +8 -0
  14. package/dist/src/domain/model/transaction-meta/entities/integration.enum.js.map +1 -0
  15. package/dist/tsconfig.tsbuildinfo +1 -1
  16. package/package.json +3 -3
  17. package/dist/src/domain/model/eventDetails/dtos/eventDetails.dto.d.ts +0 -4
  18. package/dist/src/domain/model/eventDetails/dtos/eventDetails.dto.js.map +0 -1
  19. package/dist/src/domain/model/eventDetails/dtos/index.d.ts +0 -1
  20. package/dist/src/domain/model/eventDetails/dtos/index.js +0 -18
  21. package/dist/src/domain/model/eventDetails/dtos/index.js.map +0 -1
  22. package/dist/src/domain/model/eventDetails/entities/EventDetails.entity.d.ts +0 -4
  23. package/dist/src/domain/model/eventDetails/entities/EventDetails.entity.js +0 -7
  24. package/dist/src/domain/model/eventDetails/entities/EventDetails.entity.js.map +0 -1
  25. package/dist/src/domain/model/eventDetails/entities/index.d.ts +0 -1
  26. package/dist/src/domain/model/eventDetails/entities/index.js +0 -18
  27. package/dist/src/domain/model/eventDetails/entities/index.js.map +0 -1
  28. package/dist/src/domain/model/eventDetails/index.d.ts +0 -2
  29. package/dist/src/domain/model/eventDetails/index.js +0 -19
  30. package/dist/src/domain/model/eventDetails/index.js.map +0 -1
  31. package/dist/src/domain/model/invoice-tx/entities/BaseInvoiceTx.d.ts +0 -8
  32. package/dist/src/domain/model/invoice-tx/entities/BaseInvoiceTx.js +0 -22
  33. package/dist/src/domain/model/invoice-tx/entities/BaseInvoiceTx.js.map +0 -1
  34. package/dist/src/domain/model/invoice-tx/entities/InvoiceTx.d.ts +0 -14
  35. package/dist/src/domain/model/invoice-tx/entities/InvoiceTx.js +0 -8
  36. package/dist/src/domain/model/invoice-tx/entities/InvoiceTx.js.map +0 -1
  37. package/dist/src/domain/model/link-features/dtos/linkFeatures.dto.d.ts +0 -14
  38. package/dist/src/domain/model/link-features/dtos/linkFeatures.dto.js +0 -73
  39. package/dist/src/domain/model/link-features/dtos/linkFeatures.dto.js.map +0 -1
  40. package/dist/src/domain/model/paylink/entities/ShallowEnrichedPaylink.d.ts +0 -16
  41. package/dist/src/domain/model/paylink/entities/ShallowEnrichedPaylink.js +0 -8
  42. package/dist/src/domain/model/paylink/entities/ShallowEnrichedPaylink.js.map +0 -1
  43. package/dist/src/domain/model/payment-request-features/dtos/paymentRequestFeatures.dto.d.ts +0 -22
  44. package/dist/src/domain/model/payment-request-features/dtos/paymentRequestFeatures.dto.js +0 -117
  45. package/dist/src/domain/model/payment-request-features/dtos/paymentRequestFeatures.dto.js.map +0 -1
  46. package/dist/src/domain/model/stream-features/dtos/streamFeaturesDto.d.ts +0 -4
  47. package/dist/src/domain/model/stream-features/dtos/streamFeaturesDto.js +0 -23
  48. package/dist/src/domain/model/stream-features/dtos/streamFeaturesDto.js.map +0 -1
  49. package/dist/src/domain/model/transaction/dtos/claimTransaction.dto.d.ts +0 -6
  50. package/dist/src/domain/model/transaction/dtos/claimTransaction.dto.js.map +0 -1
  51. package/dist/src/domain/model/transaction/dtos/generateDiscordLink.dto.d.ts +0 -5
  52. package/dist/src/domain/model/transaction/dtos/generateDiscordLink.dto.js +0 -28
  53. package/dist/src/domain/model/transaction/dtos/generateDiscordLink.dto.js.map +0 -1
  54. package/dist/src/domain/model/transaction/entities/Claim.entity.d.ts +0 -11
  55. package/dist/src/domain/model/transaction/entities/Claim.entity.js +0 -7
  56. package/dist/src/domain/model/transaction/entities/Claim.entity.js.map +0 -1
  57. package/dist/src/domain/model/transaction-meta/entities/StatusAudit.d.ts +0 -4
  58. package/dist/src/domain/model/transaction-meta/entities/StatusAudit.js +0 -7
  59. package/dist/src/domain/model/transaction-meta/entities/StatusAudit.js.map +0 -1
  60. package/dist/src/domain/services/SerializeService.d.ts +0 -6
  61. package/dist/src/domain/services/SerializeService.js +0 -27
  62. package/dist/src/domain/services/SerializeService.js.map +0 -1
@@ -0,0 +1,7 @@
1
+ export declare class CreateRaffleDetailsDto {
2
+ maxEntries?: number;
3
+ winners: number;
4
+ maxPurchaseQuantity: number;
5
+ endDatetime: Date;
6
+ timezoneLocation: string;
7
+ }
@@ -9,25 +9,36 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ClaimTransactionDto = void 0;
12
+ exports.CreateRaffleDetailsDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- const payment_request_1 = require("../../payment-request");
15
- class ClaimTransactionDto {
14
+ const class_transformer_1 = require("class-transformer");
15
+ class CreateRaffleDetailsDto {
16
16
  }
17
17
  __decorate([
18
- (0, class_validator_1.IsString)(),
18
+ (0, class_validator_1.IsNumber)(),
19
+ (0, class_validator_1.IsOptional)(),
20
+ __metadata("design:type", Number)
21
+ ], CreateRaffleDetailsDto.prototype, "maxEntries", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsNumber)(),
19
24
  (0, class_validator_1.IsNotEmpty)(),
20
- __metadata("design:type", String)
21
- ], ClaimTransactionDto.prototype, "txId", void 0);
25
+ __metadata("design:type", Number)
26
+ ], CreateRaffleDetailsDto.prototype, "winners", void 0);
22
27
  __decorate([
23
- (0, class_validator_1.IsEnum)(payment_request_1.PaymentRequestType),
28
+ (0, class_validator_1.IsNumber)(),
24
29
  (0, class_validator_1.IsNotEmpty)(),
25
- __metadata("design:type", String)
26
- ], ClaimTransactionDto.prototype, "txType", void 0);
30
+ __metadata("design:type", Number)
31
+ ], CreateRaffleDetailsDto.prototype, "maxPurchaseQuantity", void 0);
32
+ __decorate([
33
+ (0, class_transformer_1.Type)(() => Date),
34
+ (0, class_validator_1.IsDate)(),
35
+ (0, class_validator_1.IsNotEmpty)(),
36
+ __metadata("design:type", Date)
37
+ ], CreateRaffleDetailsDto.prototype, "endDatetime", void 0);
27
38
  __decorate([
28
39
  (0, class_validator_1.IsString)(),
29
- (0, class_validator_1.IsOptional)(),
40
+ (0, class_validator_1.IsNotEmpty)(),
30
41
  __metadata("design:type", String)
31
- ], ClaimTransactionDto.prototype, "username", void 0);
32
- exports.ClaimTransactionDto = ClaimTransactionDto;
33
- //# sourceMappingURL=claimTransaction.dto.js.map
42
+ ], CreateRaffleDetailsDto.prototype, "timezoneLocation", void 0);
43
+ exports.CreateRaffleDetailsDto = CreateRaffleDetailsDto;
44
+ //# sourceMappingURL=createRaffleDetails.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createRaffleDetails.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/raffle-details/dtos/createRaffleDetails.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,yDAAyC;AAEzC,MAAa,sBAAsB;CAqBlC;AApBC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACO;AAEpB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mEACe;AAE5B;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;IAChB,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;8BACA,IAAI;2DAAC;AAElB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACY;AApB3B,wDAqBC"}
@@ -0,0 +1,6 @@
1
+ export declare class UpdateRaffleDetailsDto {
2
+ maxEntries?: number;
3
+ maxPurchaseQuantity?: number;
4
+ endDatetime?: Date;
5
+ timezoneLocation?: string;
6
+ }
@@ -9,21 +9,29 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.EventDetailsDto = void 0;
12
+ exports.UpdateRaffleDetailsDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- class EventDetailsDto {
14
+ class UpdateRaffleDetailsDto {
16
15
  }
17
16
  __decorate([
18
- (0, class_transformer_1.Type)(() => Date),
17
+ (0, class_validator_1.IsNumber)(),
18
+ (0, class_validator_1.IsOptional)(),
19
+ __metadata("design:type", Number)
20
+ ], UpdateRaffleDetailsDto.prototype, "maxEntries", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsNumber)(),
23
+ (0, class_validator_1.IsOptional)(),
24
+ __metadata("design:type", Number)
25
+ ], UpdateRaffleDetailsDto.prototype, "maxPurchaseQuantity", void 0);
26
+ __decorate([
19
27
  (0, class_validator_1.IsDate)(),
20
- (0, class_validator_1.IsNotEmpty)(),
28
+ (0, class_validator_1.IsOptional)(),
21
29
  __metadata("design:type", Date)
22
- ], EventDetailsDto.prototype, "datetime", void 0);
30
+ ], UpdateRaffleDetailsDto.prototype, "endDatetime", void 0);
23
31
  __decorate([
24
32
  (0, class_validator_1.IsString)(),
25
33
  (0, class_validator_1.IsOptional)(),
26
34
  __metadata("design:type", String)
27
- ], EventDetailsDto.prototype, "location", void 0);
28
- exports.EventDetailsDto = EventDetailsDto;
29
- //# sourceMappingURL=eventDetails.dto.js.map
35
+ ], UpdateRaffleDetailsDto.prototype, "timezoneLocation", void 0);
36
+ exports.UpdateRaffleDetailsDto = UpdateRaffleDetailsDto;
37
+ //# sourceMappingURL=updateRaffleDetails.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateRaffleDetails.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/raffle-details/dtos/updateRaffleDetails.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyE;AAEzE,MAAa,sBAAsB;CAgBlC;AAfC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACO;AAEpB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mEACgB;AAE7B;IAAC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;8BACC,IAAI;2DAAC;AAEnB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACa;AAf5B,wDAgBC"}
@@ -1,14 +1,18 @@
1
1
  import { CustomerDetails } from '../../customer-details';
2
2
  import { Entity } from '../../entity';
3
3
  import { TransactionStatus } from '../../transaction-meta/constants/TransactionStatus';
4
+ import { ProductDetails } from '../../product-details';
4
5
  export declare class TransactionDetails extends Entity {
5
6
  status: TransactionStatus;
6
7
  time: Date;
7
8
  transactionSignature: string;
9
+ isRefunded: boolean;
10
+ affiliateAmount: bigint;
8
11
  quantity: number;
9
12
  price: bigint;
10
13
  fee: bigint;
11
14
  from: string;
12
15
  currency: string;
13
16
  customerDetails: CustomerDetails;
17
+ productDetails: ProductDetails;
14
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TransactionDetails.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction/entities/TransactionDetails.entity.ts"],"names":[],"mappings":";;;AACA,yCAAsC;AAGtC,MAAa,kBAAmB,SAAQ,eAAM;CAkB7C;AAlBD,gDAkBC"}
1
+ {"version":3,"file":"TransactionDetails.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction/entities/TransactionDetails.entity.ts"],"names":[],"mappings":";;;AACA,yCAAsC;AAItC,MAAa,kBAAmB,SAAQ,eAAM;CAwB7C;AAxBD,gDAwBC"}
@@ -3,4 +3,5 @@ import { PaystreamTx } from '../../paystream-tx';
3
3
  import { InvoiceTx } from '../../invoice-tx';
4
4
  export * from './TransactionStatusToken.entity';
5
5
  export * from './TransactionStatusResponse.entity';
6
+ export * from './TransactionDetails.entity';
6
7
  export declare type Transaction = PaylinkTxWithShallowEnrichedPaylink | PaystreamTx | InvoiceTx;
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./TransactionStatusToken.entity"), exports);
18
18
  __exportStar(require("./TransactionStatusResponse.entity"), exports);
19
+ __exportStar(require("./TransactionDetails.entity"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAKA,kEAAgD;AAChD,qEAAmD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAKA,kEAAgD;AAChD,qEAAmD;AACnD,8DAA4C"}
@@ -0,0 +1,3 @@
1
+ export declare enum Integration {
2
+ WOO_COMMERCE = "WOO_COMMERCE"
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Integration = void 0;
4
+ var Integration;
5
+ (function (Integration) {
6
+ Integration["WOO_COMMERCE"] = "WOO_COMMERCE";
7
+ })(Integration = exports.Integration || (exports.Integration = {}));
8
+ //# sourceMappingURL=integration.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration.enum.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction-meta/entities/integration.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAEX;AAFD,WAAY,WAAW;IACrB,4CAA6B,CAAA;AAC/B,CAAC,EAFW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAEtB"}