@heliofi/common 0.1.386 → 0.1.387

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/claim/dtos/claimTransaction.dto.d.ts +6 -0
  2. package/dist/src/domain/model/claim/dtos/claimTransaction.dto.js +33 -0
  3. package/dist/src/domain/model/claim/dtos/claimTransaction.dto.js.map +1 -0
  4. package/dist/src/domain/model/claim/dtos/generateDiscordLink.dto.d.ts +5 -0
  5. package/dist/src/domain/model/claim/dtos/generateDiscordLink.dto.js +28 -0
  6. package/dist/src/domain/model/claim/dtos/generateDiscordLink.dto.js.map +1 -0
  7. package/dist/src/domain/model/claim/dtos/index.d.ts +2 -0
  8. package/dist/src/domain/model/claim/dtos/index.js +19 -0
  9. package/dist/src/domain/model/claim/dtos/index.js.map +1 -0
  10. package/dist/src/domain/model/claim/entities/Claim.entity.d.ts +12 -0
  11. package/dist/src/domain/model/claim/entities/Claim.entity.js +7 -0
  12. package/dist/src/domain/model/claim/entities/Claim.entity.js.map +1 -0
  13. package/dist/src/domain/model/claim/entities/GenerateDiscordLinkResponse.entity.d.ts +4 -0
  14. package/dist/src/domain/model/claim/entities/GenerateDiscordLinkResponse.entity.js +7 -0
  15. package/dist/src/domain/model/claim/entities/GenerateDiscordLinkResponse.entity.js.map +1 -0
  16. package/dist/src/domain/model/claim/entities/index.d.ts +2 -0
  17. package/dist/src/domain/model/claim/entities/index.js +19 -0
  18. package/dist/src/domain/model/claim/entities/index.js.map +1 -0
  19. package/dist/src/domain/model/claim/index.d.ts +2 -0
  20. package/dist/src/domain/model/claim/index.js +19 -0
  21. package/dist/src/domain/model/claim/index.js.map +1 -0
  22. package/dist/src/domain/model/index.d.ts +1 -0
  23. package/dist/src/domain/model/index.js +1 -0
  24. package/dist/src/domain/model/index.js.map +1 -1
  25. package/dist/src/domain/model/payment-request/dtos/createPaymentRequest.dto.d.ts +2 -0
  26. package/dist/src/domain/model/payment-request/dtos/createPaymentRequest.dto.js +15 -0
  27. package/dist/src/domain/model/payment-request/dtos/createPaymentRequest.dto.js.map +1 -1
  28. package/dist/src/domain/model/payment-request/dtos/updatePaymentRequest.dto.d.ts +1 -0
  29. package/dist/src/domain/model/payment-request/dtos/updatePaymentRequest.dto.js +9 -0
  30. package/dist/src/domain/model/payment-request/dtos/updatePaymentRequest.dto.js.map +1 -1
  31. package/dist/src/domain/model/payment-request/entities/BasePaymentRequest.d.ts +1 -0
  32. package/dist/src/domain/model/payment-request/entities/BasePaymentRequest.js +4 -0
  33. package/dist/src/domain/model/payment-request/entities/BasePaymentRequest.js.map +1 -1
  34. package/dist/src/domain/model/payment-request/entities/PaymentRequest.d.ts +1 -0
  35. package/dist/src/domain/model/payment-request/entities/PaymentRequest.js.map +1 -1
  36. package/dist/src/domain/model/payment-request/entities/ShallowEnrichedPaymentRequest.d.ts +1 -0
  37. package/dist/src/domain/model/payment-request/entities/ShallowEnrichedPaymentRequest.js.map +1 -1
  38. package/dist/src/domain/model/transaction/dtos/getIsUserInServer.dto.d.ts +5 -0
  39. package/dist/src/domain/model/transaction/dtos/getIsUserInServer.dto.js +28 -0
  40. package/dist/src/domain/model/transaction/dtos/getIsUserInServer.dto.js.map +1 -0
  41. package/dist/src/domain/model/transaction/dtos/index.d.ts +0 -2
  42. package/dist/src/domain/model/transaction/dtos/index.js +0 -2
  43. package/dist/src/domain/model/transaction/dtos/index.js.map +1 -1
  44. package/dist/src/domain/model/transaction/entities/index.d.ts +0 -1
  45. package/dist/src/domain/model/transaction/entities/index.js +0 -1
  46. package/dist/src/domain/model/transaction/entities/index.js.map +1 -1
  47. package/dist/tsconfig.tsbuildinfo +1 -1
  48. package/package.json +2 -2
@@ -0,0 +1,6 @@
1
+ import { PaymentRequestType } from '../../payment-request';
2
+ export declare class ClaimTransactionDto {
3
+ txId: string;
4
+ txType: PaymentRequestType;
5
+ username?: string;
6
+ }
@@ -0,0 +1,33 @@
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.ClaimTransactionDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const payment_request_1 = require("../../payment-request");
15
+ class ClaimTransactionDto {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.IsNotEmpty)(),
20
+ __metadata("design:type", String)
21
+ ], ClaimTransactionDto.prototype, "txId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsEnum)(payment_request_1.PaymentRequestType),
24
+ (0, class_validator_1.IsNotEmpty)(),
25
+ __metadata("design:type", String)
26
+ ], ClaimTransactionDto.prototype, "txType", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsString)(),
29
+ (0, class_validator_1.IsOptional)(),
30
+ __metadata("design:type", String)
31
+ ], ClaimTransactionDto.prototype, "username", void 0);
32
+ exports.ClaimTransactionDto = ClaimTransactionDto;
33
+ //# sourceMappingURL=claimTransaction.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"claimTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/claim/dtos/claimTransaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2E;AAC3E,2DAA2D;AAE3D,MAAa,mBAAmB;CAY/B;AAXC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACA;AAEb;IAAC,IAAA,wBAAM,EAAC,oCAAkB,CAAC;IAC1B,IAAA,4BAAU,GAAE;;mDACc;AAE3B;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACK;AAXpB,kDAYC"}
@@ -0,0 +1,5 @@
1
+ import { PaymentRequestType } from '../../payment-request';
2
+ export declare class GenerateDiscordLinkDto {
3
+ txId: string;
4
+ txType: PaymentRequestType;
5
+ }
@@ -0,0 +1,28 @@
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.GenerateDiscordLinkDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const payment_request_1 = require("../../payment-request");
15
+ class GenerateDiscordLinkDto {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.IsNotEmpty)(),
20
+ __metadata("design:type", String)
21
+ ], GenerateDiscordLinkDto.prototype, "txId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsEnum)(payment_request_1.PaymentRequestType),
24
+ (0, class_validator_1.IsNotEmpty)(),
25
+ __metadata("design:type", String)
26
+ ], GenerateDiscordLinkDto.prototype, "txType", void 0);
27
+ exports.GenerateDiscordLinkDto = GenerateDiscordLinkDto;
28
+ //# sourceMappingURL=generateDiscordLink.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateDiscordLink.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/claim/dtos/generateDiscordLink.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,2DAA2D;AAE3D,MAAa,sBAAsB;CAQlC;AAPC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACA;AAEb;IAAC,IAAA,wBAAM,EAAC,oCAAkB,CAAC;IAC1B,IAAA,4BAAU,GAAE;;sDACc;AAP7B,wDAQC"}
@@ -0,0 +1,2 @@
1
+ export * from './claimTransaction.dto';
2
+ export * from './generateDiscordLink.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("./claimTransaction.dto"), exports);
18
+ __exportStar(require("./generateDiscordLink.dto"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/claim/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,4DAA0C"}
@@ -0,0 +1,12 @@
1
+ import { ClaimDetails } from '../../claim-details';
2
+ import { PaymentRequestType } from '../../payment-request';
3
+ export declare class Claim {
4
+ txId: string;
5
+ paymentRequestName: string;
6
+ paymentRequestType: PaymentRequestType;
7
+ companyLogoUrl: string;
8
+ requireTradingViewUsername: boolean;
9
+ assignDiscordRole: boolean;
10
+ claimDetails: ClaimDetails;
11
+ createdAt: string;
12
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Claim = void 0;
4
+ class Claim {
5
+ }
6
+ exports.Claim = Claim;
7
+ //# sourceMappingURL=Claim.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Claim.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/claim/entities/Claim.entity.ts"],"names":[],"mappings":";;;AAGA,MAAa,KAAK;CAgBjB;AAhBD,sBAgBC"}
@@ -0,0 +1,4 @@
1
+ export declare class GenerateDiscordLinkResponse {
2
+ alreadyJoined: boolean;
3
+ inviteLink?: string;
4
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GenerateDiscordLinkResponse = void 0;
4
+ class GenerateDiscordLinkResponse {
5
+ }
6
+ exports.GenerateDiscordLinkResponse = GenerateDiscordLinkResponse;
7
+ //# sourceMappingURL=GenerateDiscordLinkResponse.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenerateDiscordLinkResponse.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/claim/entities/GenerateDiscordLinkResponse.entity.ts"],"names":[],"mappings":";;;AAAA,MAAa,2BAA2B;CAIvC;AAJD,kEAIC"}
@@ -0,0 +1,2 @@
1
+ export * from './Claim.entity';
2
+ export * from './GenerateDiscordLinkResponse.entity';
@@ -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("./Claim.entity"), exports);
18
+ __exportStar(require("./GenerateDiscordLinkResponse.entity"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/claim/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,uEAAqD"}
@@ -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/claim/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,6CAA2B"}
@@ -85,3 +85,4 @@ export * from './helio-wallet';
85
85
  export * from './balance';
86
86
  export * from './affiliates';
87
87
  export * from './claim-details';
88
+ export * from './claim';
@@ -101,4 +101,5 @@ __exportStar(require("./helio-wallet"), exports);
101
101
  __exportStar(require("./balance"), exports);
102
102
  __exportStar(require("./affiliates"), exports);
103
103
  __exportStar(require("./claim-details"), exports);
104
+ __exportStar(require("./claim"), exports);
104
105
  //# sourceMappingURL=index.js.map
@@ -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,yDAAuC;AACvC,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;AAC7B,uDAAqC;AACrC,iDAA+B;AAC/B,8CAA4B;AAC5B,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,qEAAmD;AACnD,oEAAkD;AAClD,oDAAkC;AAClC,yDAAuC;AACvC,iDAA+B;AAC/B,4CAA0B;AAC1B,+CAA6B;AAC7B,kDAAgC"}
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,yDAAuC;AACvC,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;AAC7B,uDAAqC;AACrC,iDAA+B;AAC/B,8CAA4B;AAC5B,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,qEAAmD;AACnD,oEAAkD;AAClD,oDAAkC;AAClC,yDAAuC;AACvC,iDAA+B;AAC/B,4CAA0B;AAC1B,+CAA6B;AAC7B,kDAAgC;AAChC,0CAAwB"}
@@ -34,4 +34,6 @@ export declare class CreatePaymentRequestDto {
34
34
  recipients?: RecipientDto[];
35
35
  tradingViewIndicators?: TradingViewIndicatorDto[];
36
36
  affiliateDetails?: AffiliateDetailsDto;
37
+ price?: string;
38
+ pricingCurrency?: string;
37
39
  }
@@ -172,5 +172,20 @@ __decorate([
172
172
  (0, class_validator_1.ValidateNested)(),
173
173
  __metadata("design:type", affiliates_1.AffiliateDetailsDto)
174
174
  ], CreatePaymentRequestDto.prototype, "affiliateDetails", void 0);
175
+ __decorate([
176
+ (0, class_validator_1.ValidateIf)((object) => {
177
+ return !object.dynamic && !object.features?.canChangePrice;
178
+ }),
179
+ (0, decorators_1.BigintMin)(1n, { message: 'Price must be greater than 0' }),
180
+ (0, class_validator_1.IsOptional)(),
181
+ (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
182
+ __metadata("design:type", String)
183
+ ], CreatePaymentRequestDto.prototype, "price", void 0);
184
+ __decorate([
185
+ (0, class_validator_1.IsString)(),
186
+ (0, class_validator_1.IsOptional)(),
187
+ (0, class_validator_1.IsMongoId)(),
188
+ __metadata("design:type", String)
189
+ ], CreatePaymentRequestDto.prototype, "pricingCurrency", void 0);
175
190
  exports.CreatePaymentRequestDto = CreatePaymentRequestDto;
176
191
  //# sourceMappingURL=createPaymentRequest.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createPaymentRequest.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/payment-request/dtos/createPaymentRequest.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAWyB;AACzB,yDAAoD;AACpD,2CAA2C;AAC3C,2CAA2C;AAC3C,yDAAwD;AACxD,mFAAgF;AAChF,iDAAoD;AACpD,6CAA4C;AAC5C,oDAAgD;AAChD,+CAA+C;AAC/C,qEAAmE;AACnE,qEAAqE;AACrE,iDAAuD;AAEvD,MAAa,uBAAuB;IAApC;QA2BE,wBAAmB,GAAa,KAAK,CAAC;QAItC,0BAAqB,GAAa,KAAK,CAAC;QAIxC,mBAAc,GAAa,KAAK,CAAC;IA2FnC,CAAC;CAAA;AA7HC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACA;AAEb;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACQ;AAErB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACE;AAEf;IAAC,IAAA,4BAAU,EAAC,CAAC,MAAM,EAAE,EAAE;QACrB,OAAO,CAAC,MAAM,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,cAAc,CAAC;IAC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DAAQ;AAE5B;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qEACiB;AAE9B;IAAC,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4CAAqB,CAAC;IACjC,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;;mEAC4B;AAE7C;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAU,CAAC;IACtB,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;8BACP,qBAAU;wDAAC;AAErB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yDAA2B,CAAC;IACvC,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;8BACU,yDAA2B;yEAAC;AAEvD;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iCAAgB,CAAC;IAC5B,IAAA,4BAAU,GAAE;8BACG,iCAAgB;8DAAC;AAEjC;IAAC,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,wBAAY,CAAC;IACxB,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;2DACH;AAE5B;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,8CAAuB,CAAC;IACnC,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;;sEACiC;AAElD;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gCAAmB,CAAC;IAC/B,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;8BACE,gCAAmB;iEAAC;AA7HzC,0DA8HC"}
1
+ {"version":3,"file":"createPaymentRequest.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/payment-request/dtos/createPaymentRequest.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,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EvD;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iCAAgB,CAAC;IAC5B,IAAA,4BAAU,GAAE;8BACG,iCAAgB;8DAAC;AAEjC;IAAC,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,wBAAY,CAAC;IACxB,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;2DACH;AAE5B;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,8CAAuB,CAAC;IACnC,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;;sEACiC;AAElD;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gCAAmB,CAAC;IAC/B,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;8BACE,gCAAmB;iEAAC;AAEvC;IAAC,IAAA,4BAAU,EAAC,CAAC,MAAM,EAAE,EAAE;QACrB,OAAO,CAAC,MAAM,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,cAAc,CAAC;IAC7D,CAAC,CAAC;IACD,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;;sDACzB;AAGf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;gEACa;AA3I3B,0DA4IC"}
@@ -30,4 +30,5 @@ export declare class UpdatePaymentRequestDto {
30
30
  fixedCurrency?: FixedCurrencyDto;
31
31
  recipients?: RecipientDto[];
32
32
  tradingViewIndicators?: TradingViewIndicatorDto[];
33
+ price?: string;
33
34
  }
@@ -149,5 +149,14 @@ __decorate([
149
149
  (0, class_validator_1.ValidateNested)(),
150
150
  __metadata("design:type", Array)
151
151
  ], UpdatePaymentRequestDto.prototype, "tradingViewIndicators", void 0);
152
+ __decorate([
153
+ (0, class_validator_1.ValidateIf)((object) => {
154
+ return !object.dynamic && !object.features?.canChangePrice;
155
+ }),
156
+ (0, decorators_1.BigintMin)(1n, { message: 'Price must be greater than 0' }),
157
+ (0, class_validator_1.IsOptional)(),
158
+ (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
159
+ __metadata("design:type", String)
160
+ ], UpdatePaymentRequestDto.prototype, "price", void 0);
152
161
  exports.UpdatePaymentRequestDto = UpdatePaymentRequestDto;
153
162
  //# sourceMappingURL=updatePaymentRequest.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"updatePaymentRequest.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/payment-request/dtos/updatePaymentRequest.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDASyB;AACzB,yDAAoD;AACpD,2CAA2C;AAC3C,2CAA2C;AAC3C,yDAAwD;AACxD,mFAAgF;AAChF,iDAAoD;AACpD,6CAA4C;AAC5C,oDAAgD;AAChD,+CAA+C;AAC/C,qEAAmE;AACnE,qEAAqE;AAErE,MAAa,uBAAuB;CA6GnC;AA5GC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACC;AAEd;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACQ;AAErB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACE;AAEf;IAAC,IAAA,4BAAU,EAAC,CAAC,MAAM,EAAE,EAAE;QACrB,OAAO,CAAC,MAAM,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,cAAc,CAAC;IAC7D,CAAC,CAAC;IACD,IAAA,sBAAS,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC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CAAC;IACjC,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;;mEAC4B;AAE7C;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yDAA2B,CAAC;IACvC,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;8BACU,yDAA2B;yEAAC;AAEvD;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAU,CAAC;IACtB,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;8BACP,qBAAU;wDAAC;AAErB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iCAAgB,CAAC;IAC5B,IAAA,4BAAU,GAAE;8BACG,iCAAgB;8DAAC;AAEjC;IAAC,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,wBAAY,CAAC;IACxB,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;2DACH;AAE5B;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,8CAAuB,CAAC;IACnC,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;;sEACiC;AA5GpD,0DA6GC"}
1
+ {"version":3,"file":"updatePaymentRequest.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/payment-request/dtos/updatePaymentRequest.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDASyB;AACzB,yDAAoD;AACpD,2CAA2C;AAC3C,2CAA2C;AAC3C,yDAAwD;AACxD,mFAAgF;AAChF,iDAAoD;AACpD,6CAA4C;AAC5C,oDAAgD;AAChD,+CAA+C;AAC/C,qEAAmE;AACnE,qEAAqE;AAErE,MAAa,uBAAuB;CAqHnC;AApHC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACC;AAEd;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACQ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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;;sDACzB;AApHjB,0DAqHC"}
@@ -5,6 +5,7 @@ import { NftDrop } from '../../nft-drop';
5
5
  import { DiscordAuthDetails } from '../../discord-auth-details';
6
6
  export declare class BasePaymentRequest extends Entity {
7
7
  normalizedPrice: bigint;
8
+ price?: bigint;
8
9
  id: string;
9
10
  name: string;
10
11
  description?: string;
@@ -18,5 +18,9 @@ __decorate([
18
18
  (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
19
19
  __metadata("design:type", BigInt)
20
20
  ], BasePaymentRequest.prototype, "normalizedPrice", void 0);
21
+ __decorate([
22
+ (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
23
+ __metadata("design:type", BigInt)
24
+ ], BasePaymentRequest.prototype, "price", void 0);
21
25
  exports.BasePaymentRequest = BasePaymentRequest;
22
26
  //# sourceMappingURL=BasePaymentRequest.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BasePaymentRequest.js","sourceRoot":"","sources":["../../../../../../src/domain/model/payment-request/entities/BasePaymentRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,yCAAsC;AAMtC,MAAa,kBAAmB,SAAQ,eAAM;CAuC7C;AAtCC;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;2DAChB;AAF1B,gDAuCC"}
1
+ {"version":3,"file":"BasePaymentRequest.js","sourceRoot":"","sources":["../../../../../../src/domain/model/payment-request/entities/BasePaymentRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,yCAAsC;AAMtC,MAAa,kBAAmB,SAAQ,eAAM;CA2C7C;AA1CC;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;2DAChB;AAGxB;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;iDACzB;AANjB,gDA2CC"}
@@ -18,4 +18,5 @@ export declare class PaymentRequest extends BasePaymentRequest {
18
18
  splitWallets?: SplitWallet[];
19
19
  discountCodes?: DiscountCode[];
20
20
  fixedCurrency?: FixedCurrency;
21
+ pricingCurrency?: Currency;
21
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PaymentRequest.js","sourceRoot":"","sources":["../../../../../../src/domain/model/payment-request/entities/PaymentRequest.ts"],"names":[],"mappings":";;;AAGA,6DAA0D;AAQ1D,MAAa,cAAe,SAAQ,uCAAkB;CAkBrD;AAlBD,wCAkBC"}
1
+ {"version":3,"file":"PaymentRequest.js","sourceRoot":"","sources":["../../../../../../src/domain/model/payment-request/entities/PaymentRequest.ts"],"names":[],"mappings":";;;AAGA,6DAA0D;AAQ1D,MAAa,cAAe,SAAQ,uCAAkB;CAqBrD;AArBD,wCAqBC"}
@@ -24,4 +24,5 @@ export declare class ShallowEnrichedPaymentRequest extends BasePaymentRequest {
24
24
  slug: string;
25
25
  volume: number;
26
26
  discordRoleIds: string[];
27
+ pricingCurrency?: Currency;
27
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ShallowEnrichedPaymentRequest.js","sourceRoot":"","sources":["../../../../../../src/domain/model/payment-request/entities/ShallowEnrichedPaymentRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,6DAA0D;AAY1D,MAAa,6BAA8B,SAAQ,uCAAkB;CA6BpE;AA5BC;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;4DAC1B;AAFhB,sEA6BC"}
1
+ {"version":3,"file":"ShallowEnrichedPaymentRequest.js","sourceRoot":"","sources":["../../../../../../src/domain/model/payment-request/entities/ShallowEnrichedPaymentRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,6DAA0D;AAY1D,MAAa,6BAA8B,SAAQ,uCAAkB;CAgCpE;AA/BC;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;4DAC1B;AAFhB,sEAgCC"}
@@ -0,0 +1,5 @@
1
+ import { PaymentRequestType } from '../../payment-request';
2
+ export declare class GetIsUserInServerDto {
3
+ txId: string;
4
+ txType: PaymentRequestType;
5
+ }
@@ -0,0 +1,28 @@
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.GetIsUserInServerDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const payment_request_1 = require("../../payment-request");
15
+ class GetIsUserInServerDto {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.IsNotEmpty)(),
20
+ __metadata("design:type", String)
21
+ ], GetIsUserInServerDto.prototype, "txId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsEnum)(payment_request_1.PaymentRequestType),
24
+ (0, class_validator_1.IsNotEmpty)(),
25
+ __metadata("design:type", String)
26
+ ], GetIsUserInServerDto.prototype, "txType", void 0);
27
+ exports.GetIsUserInServerDto = GetIsUserInServerDto;
28
+ //# sourceMappingURL=getIsUserInServer.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getIsUserInServer.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction/dtos/getIsUserInServer.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,2DAA2D;AAE3D,MAAa,oBAAoB;CAQhC;AAPC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACA;AAEb;IAAC,IAAA,wBAAM,EAAC,oCAAkB,CAAC;IAC1B,IAAA,4BAAU,GAAE;;oDACc;AAP7B,oDAQC"}
@@ -1,3 +1 @@
1
1
  export * from './baseCreateTransaction.dto';
2
- export * from './claimTransaction.dto';
3
- export * from './generateDiscordLink.dto';
@@ -15,6 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./baseCreateTransaction.dto"), exports);
18
- __exportStar(require("./claimTransaction.dto"), exports);
19
- __exportStar(require("./generateDiscordLink.dto"), exports);
20
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,yDAAuC;AACvC,4DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C"}
@@ -3,5 +3,4 @@ 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 './Claim.entity';
7
6
  export declare type Transaction = PaylinkTxWithShallowEnrichedPaylink | PaystreamTx | InvoiceTx;
@@ -16,5 +16,4 @@ 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("./Claim.entity"), exports);
20
19
  //# 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;AACnD,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAKA,kEAAgD;AAChD,qEAAmD"}