@heliofi/common 0.1.390 → 0.1.392

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 (48) hide show
  1. package/dist/src/domain/model/currency/entities/BaseCurrency.entity.d.ts +2 -0
  2. package/dist/src/domain/model/currency/entities/BaseCurrency.entity.js.map +1 -1
  3. package/dist/src/domain/model/currency/entities/CurrencyFeature.d.ts +4 -0
  4. package/dist/src/domain/model/currency/entities/CurrencyFeature.js +9 -0
  5. package/dist/src/domain/model/currency/entities/CurrencyFeature.js.map +1 -0
  6. package/dist/src/domain/model/currency/entities/index.d.ts +1 -0
  7. package/dist/src/domain/model/currency/entities/index.js +1 -0
  8. package/dist/src/domain/model/currency/entities/index.js.map +1 -1
  9. package/dist/src/domain/model/eventDetails/entities/EventDetails.entity.d.ts +1 -1
  10. package/dist/src/domain/model/link-features/dtos/linkFeatures.dto.d.ts +13 -13
  11. package/dist/src/domain/model/link-features/dtos/linkFeatures.dto.js +48 -118
  12. package/dist/src/domain/model/pricing/dtos/createPricing.dto.d.ts +4 -0
  13. package/dist/src/domain/model/pricing/dtos/createPricing.dto.js +31 -0
  14. package/dist/src/domain/model/pricing/dtos/createPricing.dto.js.map +1 -0
  15. package/dist/src/domain/model/pricing/dtos/index.d.ts +2 -0
  16. package/dist/src/domain/model/pricing/dtos/index.js +19 -0
  17. package/dist/src/domain/model/pricing/dtos/index.js.map +1 -0
  18. package/dist/src/domain/model/pricing/dtos/updatePricing.dto.d.ts +3 -0
  19. package/dist/src/domain/model/pricing/dtos/updatePricing.dto.js +25 -0
  20. package/dist/src/domain/model/pricing/dtos/updatePricing.dto.js.map +1 -0
  21. package/dist/src/domain/model/pricing/entities/BasePricing.d.ts +4 -0
  22. package/dist/src/domain/model/pricing/entities/BasePricing.js +22 -0
  23. package/dist/src/domain/model/pricing/entities/BasePricing.js.map +1 -0
  24. package/dist/src/domain/model/pricing/entities/Pricing.d.ts +5 -0
  25. package/dist/src/domain/model/pricing/entities/Pricing.js +8 -0
  26. package/dist/src/domain/model/pricing/entities/Pricing.js.map +1 -0
  27. package/dist/src/domain/model/pricing/entities/index.d.ts +2 -0
  28. package/dist/src/domain/model/pricing/entities/index.js +19 -0
  29. package/dist/src/domain/model/pricing/entities/index.js.map +1 -0
  30. package/dist/src/domain/model/pricing/index.d.ts +2 -0
  31. package/dist/src/domain/model/pricing/index.js +19 -0
  32. package/dist/src/domain/model/pricing/index.js.map +1 -0
  33. package/dist/src/domain/model/stream-features/dtos/streamFeaturesDto.d.ts +3 -3
  34. package/dist/src/domain/model/stream-features/dtos/streamFeaturesDto.js +18 -38
  35. package/dist/src/domain/model/submit-transaction/dtos/submitTransactionV0.dto.d.ts +18 -0
  36. package/dist/src/domain/model/submit-transaction/dtos/submitTransactionV0.dto.js +82 -0
  37. package/dist/src/domain/model/submit-transaction/dtos/submitTransactionV0.dto.js.map +1 -0
  38. package/dist/src/domain/model/transaction/dtos/claimTransaction.dto.d.ts +6 -0
  39. package/dist/src/domain/model/transaction/dtos/claimTransaction.dto.js +33 -0
  40. package/dist/src/domain/model/transaction/dtos/claimTransaction.dto.js.map +1 -0
  41. package/dist/src/domain/model/transaction/dtos/generateDiscordLink.dto.d.ts +5 -0
  42. package/dist/src/domain/model/transaction/dtos/generateDiscordLink.dto.js +28 -0
  43. package/dist/src/domain/model/transaction/dtos/generateDiscordLink.dto.js.map +1 -0
  44. package/dist/src/domain/model/transaction/entities/Claim.entity.d.ts +11 -0
  45. package/dist/src/domain/model/transaction/entities/Claim.entity.js +7 -0
  46. package/dist/src/domain/model/transaction/entities/Claim.entity.js.map +1 -0
  47. package/dist/tsconfig.tsbuildinfo +1 -1
  48. package/package.json +2 -2
@@ -1,5 +1,6 @@
1
1
  import { Entity } from '../../entity';
2
2
  import { CurrencyType } from './CurrencyType';
3
+ import { CurrencyFeature } from './CurrencyFeature';
3
4
  export declare class BaseCurrency extends Entity {
4
5
  id: string;
5
6
  symbol: string;
@@ -11,5 +12,6 @@ export declare class BaseCurrency extends Entity {
11
12
  symbolPrefix?: string;
12
13
  order: number;
13
14
  type?: CurrencyType;
15
+ features?: CurrencyFeature[];
14
16
  iconUrl?: string;
15
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BaseCurrency.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/currency/entities/BaseCurrency.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,YAAa,SAAQ,eAAM;CAsBvC;AAtBD,oCAsBC"}
1
+ {"version":3,"file":"BaseCurrency.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/currency/entities/BaseCurrency.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAItC,MAAa,YAAa,SAAQ,eAAM;CAwBvC;AAxBD,oCAwBC"}
@@ -0,0 +1,4 @@
1
+ export declare enum CurrencyFeature {
2
+ PAYMENT_PRICING = "PaymentPricing",
3
+ PAYMENT_RECIPIENT = "PaymentRecipient"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CurrencyFeature = void 0;
4
+ var CurrencyFeature;
5
+ (function (CurrencyFeature) {
6
+ CurrencyFeature["PAYMENT_PRICING"] = "PaymentPricing";
7
+ CurrencyFeature["PAYMENT_RECIPIENT"] = "PaymentRecipient";
8
+ })(CurrencyFeature = exports.CurrencyFeature || (exports.CurrencyFeature = {}));
9
+ //# sourceMappingURL=CurrencyFeature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CurrencyFeature.js","sourceRoot":"","sources":["../../../../../../src/domain/model/currency/entities/CurrencyFeature.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,qDAAkC,CAAA;IAClC,yDAAsC,CAAA;AACxC,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B"}
@@ -1,3 +1,4 @@
1
1
  export * from './Currency.entity';
2
2
  export * from './BaseCurrency.entity';
3
3
  export * from './CurrencyType';
4
+ export * from './CurrencyFeature';
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Currency.entity"), exports);
18
18
  __exportStar(require("./BaseCurrency.entity"), exports);
19
19
  __exportStar(require("./CurrencyType"), exports);
20
+ __exportStar(require("./CurrencyFeature"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/currency/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,wDAAsC;AACtC,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/currency/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,wDAAsC;AACtC,iDAA+B;AAC/B,oDAAkC"}
@@ -1,4 +1,4 @@
1
1
  export declare class EventDetails {
2
- location?: string;
3
2
  datetime: Date;
3
+ location?: string;
4
4
  }
@@ -1,14 +1,14 @@
1
- import { BasePaymentRequestFeaturesDto } from '../../payment-request-features';
2
- export declare class LinkFeaturesDto extends BasePaymentRequestFeaturesDto {
3
- splitRevenue?: boolean;
4
- splitEqually?: boolean;
5
- canChangeQuantity?: boolean;
6
- requireQuantityLimits?: boolean;
7
- canChangePrice?: boolean;
8
- isHelioPlay?: boolean;
9
- isEscrowed?: boolean;
10
- showDiscountCode?: boolean;
11
- requireDiscordQuantityLimit?: boolean;
12
- requireAllowlist?: boolean;
13
- requireAirdrop?: boolean;
1
+ import { PaymentRequestFeaturesDto } from '../../payment-request-features';
2
+ export declare class LinkFeaturesDto extends PaymentRequestFeaturesDto {
3
+ splitRevenue?: boolean;
4
+ splitEqually?: boolean;
5
+ canChangeQuantity?: boolean;
6
+ requireQuantityLimits?: boolean;
7
+ canChangePrice?: boolean;
8
+ isHelioPlay?: boolean;
9
+ isEscrowed?: boolean;
10
+ showDiscountCode?: boolean;
11
+ requireDiscordQuantityLimit?: boolean;
12
+ requireAllowlist?: boolean;
13
+ requireAirdrop?: boolean;
14
14
  }
@@ -1,143 +1,73 @@
1
- 'use strict';
2
- var __decorate =
3
- (this && this.__decorate) ||
4
- function (decorators, target, key, desc) {
5
- var c = arguments.length,
6
- r =
7
- c < 3
8
- ? target
9
- : desc === null
10
- ? (desc = Object.getOwnPropertyDescriptor(target, key))
11
- : desc,
12
- d;
13
- if (typeof Reflect === 'object' && typeof Reflect.decorate === 'function')
14
- r = Reflect.decorate(decorators, target, key, desc);
15
- else
16
- for (var i = decorators.length - 1; i >= 0; i--)
17
- if ((d = decorators[i]))
18
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
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;
19
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20
- };
21
- var __metadata =
22
- (this && this.__metadata) ||
23
- function (k, v) {
24
- if (typeof Reflect === 'object' && typeof Reflect.metadata === 'function')
25
- return Reflect.metadata(k, v);
26
- };
27
- Object.defineProperty(exports, '__esModule', { value: true });
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 });
28
12
  exports.LinkFeaturesDto = void 0;
29
- const class_validator_1 = require('class-validator');
30
- const payment_request_features_1 = require('../../payment-request-features');
31
- class LinkFeaturesDto extends payment_request_features_1.BasePaymentRequestFeaturesDto {}
32
- __decorate(
33
- [
13
+ const class_validator_1 = require("class-validator");
14
+ const payment_request_features_1 = require("../../payment-request-features");
15
+ class LinkFeaturesDto extends payment_request_features_1.PaymentRequestFeaturesDto {
16
+ }
17
+ __decorate([
34
18
  (0, class_validator_1.IsBoolean)(),
35
19
  (0, class_validator_1.IsOptional)(),
36
- __metadata('design:type', Boolean),
37
- ],
38
- LinkFeaturesDto.prototype,
39
- 'splitRevenue',
40
- void 0,
41
- );
42
- __decorate(
43
- [
20
+ __metadata("design:type", Boolean)
21
+ ], LinkFeaturesDto.prototype, "splitRevenue", void 0);
22
+ __decorate([
44
23
  (0, class_validator_1.IsBoolean)(),
45
24
  (0, class_validator_1.IsOptional)(),
46
- __metadata('design:type', Boolean),
47
- ],
48
- LinkFeaturesDto.prototype,
49
- 'splitEqually',
50
- void 0,
51
- );
52
- __decorate(
53
- [
25
+ __metadata("design:type", Boolean)
26
+ ], LinkFeaturesDto.prototype, "splitEqually", void 0);
27
+ __decorate([
54
28
  (0, class_validator_1.IsBoolean)(),
55
29
  (0, class_validator_1.IsOptional)(),
56
- __metadata('design:type', Boolean),
57
- ],
58
- LinkFeaturesDto.prototype,
59
- 'canChangeQuantity',
60
- void 0,
61
- );
62
- __decorate(
63
- [
30
+ __metadata("design:type", Boolean)
31
+ ], LinkFeaturesDto.prototype, "canChangeQuantity", void 0);
32
+ __decorate([
64
33
  (0, class_validator_1.IsBoolean)(),
65
34
  (0, class_validator_1.IsOptional)(),
66
- __metadata('design:type', Boolean),
67
- ],
68
- LinkFeaturesDto.prototype,
69
- 'requireQuantityLimits',
70
- void 0,
71
- );
72
- __decorate(
73
- [
35
+ __metadata("design:type", Boolean)
36
+ ], LinkFeaturesDto.prototype, "requireQuantityLimits", void 0);
37
+ __decorate([
74
38
  (0, class_validator_1.IsBoolean)(),
75
39
  (0, class_validator_1.IsOptional)(),
76
- __metadata('design:type', Boolean),
77
- ],
78
- LinkFeaturesDto.prototype,
79
- 'canChangePrice',
80
- void 0,
81
- );
82
- __decorate(
83
- [
40
+ __metadata("design:type", Boolean)
41
+ ], LinkFeaturesDto.prototype, "canChangePrice", void 0);
42
+ __decorate([
84
43
  (0, class_validator_1.IsBoolean)(),
85
44
  (0, class_validator_1.IsOptional)(),
86
- __metadata('design:type', Boolean),
87
- ],
88
- LinkFeaturesDto.prototype,
89
- 'isHelioPlay',
90
- void 0,
91
- );
92
- __decorate(
93
- [
45
+ __metadata("design:type", Boolean)
46
+ ], LinkFeaturesDto.prototype, "isHelioPlay", void 0);
47
+ __decorate([
94
48
  (0, class_validator_1.IsOptional)(),
95
49
  (0, class_validator_1.IsBoolean)(),
96
- __metadata('design:type', Boolean),
97
- ],
98
- LinkFeaturesDto.prototype,
99
- 'isEscrowed',
100
- void 0,
101
- );
102
- __decorate(
103
- [
50
+ __metadata("design:type", Boolean)
51
+ ], LinkFeaturesDto.prototype, "isEscrowed", void 0);
52
+ __decorate([
104
53
  (0, class_validator_1.IsBoolean)(),
105
54
  (0, class_validator_1.IsOptional)(),
106
- __metadata('design:type', Boolean),
107
- ],
108
- LinkFeaturesDto.prototype,
109
- 'showDiscountCode',
110
- void 0,
111
- );
112
- __decorate(
113
- [
55
+ __metadata("design:type", Boolean)
56
+ ], LinkFeaturesDto.prototype, "showDiscountCode", void 0);
57
+ __decorate([
114
58
  (0, class_validator_1.IsBoolean)(),
115
59
  (0, class_validator_1.IsOptional)(),
116
- __metadata('design:type', Boolean),
117
- ],
118
- LinkFeaturesDto.prototype,
119
- 'requireDiscordQuantityLimit',
120
- void 0,
121
- );
122
- __decorate(
123
- [
60
+ __metadata("design:type", Boolean)
61
+ ], LinkFeaturesDto.prototype, "requireDiscordQuantityLimit", void 0);
62
+ __decorate([
124
63
  (0, class_validator_1.IsBoolean)(),
125
64
  (0, class_validator_1.IsOptional)(),
126
- __metadata('design:type', Boolean),
127
- ],
128
- LinkFeaturesDto.prototype,
129
- 'requireAllowlist',
130
- void 0,
131
- );
132
- __decorate(
133
- [
65
+ __metadata("design:type", Boolean)
66
+ ], LinkFeaturesDto.prototype, "requireAllowlist", void 0);
67
+ __decorate([
134
68
  (0, class_validator_1.IsBoolean)(),
135
69
  (0, class_validator_1.IsOptional)(),
136
- __metadata('design:type', Boolean),
137
- ],
138
- LinkFeaturesDto.prototype,
139
- 'requireAirdrop',
140
- void 0,
141
- );
70
+ __metadata("design:type", Boolean)
71
+ ], LinkFeaturesDto.prototype, "requireAirdrop", void 0);
142
72
  exports.LinkFeaturesDto = LinkFeaturesDto;
143
- //# sourceMappingURL=linkFeatures.dto.js.map
73
+ //# sourceMappingURL=linkFeatures.dto.js.map
@@ -0,0 +1,4 @@
1
+ export declare class CreatePricingDto {
2
+ currencyId: string;
3
+ price: string;
4
+ }
@@ -0,0 +1,31 @@
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.CreatePricingDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const decorators_1 = require("../../../decorators");
16
+ class CreatePricingDto {
17
+ }
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ (0, class_validator_1.IsNotEmpty)(),
21
+ (0, class_validator_1.IsMongoId)(),
22
+ __metadata("design:type", String)
23
+ ], CreatePricingDto.prototype, "currencyId", void 0);
24
+ __decorate([
25
+ (0, decorators_1.BigintMin)(1n, { message: 'Price must be greater than 0' }),
26
+ (0, class_validator_1.IsNotEmpty)(),
27
+ (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
28
+ __metadata("design:type", String)
29
+ ], CreatePricingDto.prototype, "price", void 0);
30
+ exports.CreatePricingDto = CreatePricingDto;
31
+ //# sourceMappingURL=createPricing.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createPricing.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/pricing/dtos/createPricing.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAClE,yDAA8C;AAC9C,oDAAgD;AAEhD,MAAa,gBAAgB;CAU5B;AATC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;oDACO;AAEnB;IAAC,IAAA,sBAAS,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;IAC1D,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;+CAC1B;AAThB,4CAUC"}
@@ -0,0 +1,2 @@
1
+ export * from './createPricing.dto';
2
+ export * from './updatePricing.dto';
@@ -0,0 +1,19 @@
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("./createPricing.dto"), exports);
18
+ __exportStar(require("./updatePricing.dto"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/pricing/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,sDAAoC"}
@@ -0,0 +1,3 @@
1
+ export declare class UpdatePricingDto {
2
+ price: string;
3
+ }
@@ -0,0 +1,25 @@
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.UpdatePricingDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const decorators_1 = require("../../../decorators");
16
+ class UpdatePricingDto {
17
+ }
18
+ __decorate([
19
+ (0, decorators_1.BigintMin)(1n, { message: 'Price must be greater than 0' }),
20
+ (0, class_validator_1.IsNotEmpty)(),
21
+ (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
22
+ __metadata("design:type", String)
23
+ ], UpdatePricingDto.prototype, "price", void 0);
24
+ exports.UpdatePricingDto = UpdatePricingDto;
25
+ //# sourceMappingURL=updatePricing.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updatePricing.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/pricing/dtos/updatePricing.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6C;AAC7C,yDAA8C;AAC9C,oDAAgD;AAEhD,MAAa,gBAAgB;CAK5B;AAJC;IAAC,IAAA,sBAAS,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;IAC1D,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;+CAC1B;AAJhB,4CAKC"}
@@ -0,0 +1,4 @@
1
+ import { Entity } from '../../entity';
2
+ export declare class BasePricing extends Entity {
3
+ normalizedPrice: bigint;
4
+ }
@@ -0,0 +1,22 @@
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.BasePricing = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const entity_1 = require("../../entity");
15
+ class BasePricing extends entity_1.Entity {
16
+ }
17
+ __decorate([
18
+ (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
19
+ __metadata("design:type", BigInt)
20
+ ], BasePricing.prototype, "normalizedPrice", void 0);
21
+ exports.BasePricing = BasePricing;
22
+ //# sourceMappingURL=BasePricing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BasePricing.js","sourceRoot":"","sources":["../../../../../../src/domain/model/pricing/entities/BasePricing.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,yCAAsC;AAEtC,MAAa,WAAY,SAAQ,eAAM;CAGtC;AAFC;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;oDAChB;AAF1B,kCAGC"}
@@ -0,0 +1,5 @@
1
+ import { BasePricing } from './BasePricing';
2
+ import { Currency } from '../../currency';
3
+ export declare class Pricing extends BasePricing {
4
+ currency: Currency;
5
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Pricing = void 0;
4
+ const BasePricing_1 = require("./BasePricing");
5
+ class Pricing extends BasePricing_1.BasePricing {
6
+ }
7
+ exports.Pricing = Pricing;
8
+ //# sourceMappingURL=Pricing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pricing.js","sourceRoot":"","sources":["../../../../../../src/domain/model/pricing/entities/Pricing.ts"],"names":[],"mappings":";;;AAAA,+CAA4C;AAG5C,MAAa,OAAQ,SAAQ,yBAAW;CAEvC;AAFD,0BAEC"}
@@ -0,0 +1,2 @@
1
+ export * from './BasePricing';
2
+ export * from './Pricing';
@@ -0,0 +1,19 @@
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("./BasePricing"), exports);
18
+ __exportStar(require("./Pricing"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/pricing/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,4CAA0B"}
@@ -0,0 +1,2 @@
1
+ export * from './dtos';
2
+ export * from './entities';
@@ -0,0 +1,19 @@
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("./dtos"), exports);
18
+ __exportStar(require("./entities"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/pricing/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,6CAA2B"}
@@ -1,4 +1,4 @@
1
- import { BasePaymentRequestFeaturesDto } from '../../payment-request-features';
2
- export declare class StreamFeaturesDto extends BasePaymentRequestFeaturesDto {
3
- isHelioPlay?: boolean;
1
+ import { PaymentRequestFeaturesDto } from '../../payment-request-features';
2
+ export declare class StreamFeaturesDto extends PaymentRequestFeaturesDto {
3
+ isHelioPlay?: boolean;
4
4
  }
@@ -1,43 +1,23 @@
1
- 'use strict';
2
- var __decorate =
3
- (this && this.__decorate) ||
4
- function (decorators, target, key, desc) {
5
- var c = arguments.length,
6
- r =
7
- c < 3
8
- ? target
9
- : desc === null
10
- ? (desc = Object.getOwnPropertyDescriptor(target, key))
11
- : desc,
12
- d;
13
- if (typeof Reflect === 'object' && typeof Reflect.decorate === 'function')
14
- r = Reflect.decorate(decorators, target, key, desc);
15
- else
16
- for (var i = decorators.length - 1; i >= 0; i--)
17
- if ((d = decorators[i]))
18
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
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;
19
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20
- };
21
- var __metadata =
22
- (this && this.__metadata) ||
23
- function (k, v) {
24
- if (typeof Reflect === 'object' && typeof Reflect.metadata === 'function')
25
- return Reflect.metadata(k, v);
26
- };
27
- Object.defineProperty(exports, '__esModule', { value: true });
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 });
28
12
  exports.StreamFeaturesDto = void 0;
29
- const class_validator_1 = require('class-validator');
30
- const payment_request_features_1 = require('../../payment-request-features');
31
- class StreamFeaturesDto extends payment_request_features_1.BasePaymentRequestFeaturesDto {}
32
- __decorate(
33
- [
13
+ const class_validator_1 = require("class-validator");
14
+ const payment_request_features_1 = require("../../payment-request-features");
15
+ class StreamFeaturesDto extends payment_request_features_1.PaymentRequestFeaturesDto {
16
+ }
17
+ __decorate([
34
18
  (0, class_validator_1.IsBoolean)(),
35
19
  (0, class_validator_1.IsOptional)(),
36
- __metadata('design:type', Boolean),
37
- ],
38
- StreamFeaturesDto.prototype,
39
- 'isHelioPlay',
40
- void 0,
41
- );
20
+ __metadata("design:type", Boolean)
21
+ ], StreamFeaturesDto.prototype, "isHelioPlay", void 0);
42
22
  exports.StreamFeaturesDto = StreamFeaturesDto;
43
- //# sourceMappingURL=streamFeaturesDto.js.map
23
+ //# sourceMappingURL=streamFeaturesDto.js.map
@@ -0,0 +1,18 @@
1
+ import { CustomerDetailsDto } from '../../customer-details';
2
+ import { ProductDetailsDto } from '../../product-details';
3
+ import { SplitWalletDto } from '../../split-wallets';
4
+ import { FixedCurrencyDto } from '../../fixed-currency';
5
+ import { BaseSubmitTransactionDto } from './baseSubmitTransaction.dto';
6
+ export declare class SubmitTransactionDtoV0 extends BaseSubmitTransactionDto {
7
+ paymentRequestId: string;
8
+ quantity: number;
9
+ time?: string;
10
+ customerDetails?: CustomerDetailsDto;
11
+ productDetails?: ProductDetailsDto;
12
+ splitRevenue?: boolean;
13
+ splitWallets?: SplitWalletDto[];
14
+ fixedCurrency?: FixedCurrencyDto;
15
+ rateToken?: string;
16
+ discountToken?: string;
17
+ affiliateCode?: string;
18
+ }