@escapenavigator/types 1.10.95 → 1.10.96
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.
- package/dist/admin/aggregator-issue/aggregator-issue.ro.d.ts +2 -0
- package/dist/admin/aggregator-issue/aggregator-issue.ro.js +5 -0
- package/dist/admin/aggregator-issue/create-admin.dto.d.ts +2 -0
- package/dist/admin/aggregator-issue/create-admin.dto.js +6 -0
- package/dist/admin/aggregator-issue/enum/aggregator-issue-status.enum.d.ts +4 -0
- package/dist/admin/aggregator-issue/enum/aggregator-issue-status.enum.js +8 -0
- package/dist/admin/aggregator-issue/update-admin-issue-status.dto.d.ts +4 -0
- package/dist/admin/aggregator-issue/update-admin-issue-status.dto.js +23 -0
- package/dist/constants/navigator-certificate-nominals-by-country.d.ts +0 -2
- package/dist/constants/navigator-certificate-nominals-by-country.js +0 -30
- package/dist/emails/index.d.ts +6 -1
- package/dist/navigator-certificate/create-navigator-certificate-sale.dto.d.ts +6 -9
- package/dist/navigator-certificate/create-navigator-certificate-sale.dto.js +28 -48
- package/dist/navigator-certificate/enum/navigator-certificate-sale-status.enum.d.ts +8 -0
- package/dist/navigator-certificate/enum/navigator-certificate-sale-status.enum.js +12 -0
- package/dist/navigator-certificate/index.d.ts +1 -1
- package/dist/navigator-certificate/index.js +1 -1
- package/dist/navigator-certificate/navigator-certificate-sale.ro.d.ts +13 -8
- package/dist/navigator-certificate/navigator-certificate-sale.ro.js +32 -21
- package/dist/navigator-certificate/navigator-certificate-templates.ro.d.ts +0 -2
- package/dist/navigator-certificate/navigator-certificate-templates.ro.js +0 -8
- package/dist/navigator-certificate/update-navigator-certificate-code.dto.js +3 -0
- package/dist/openapi/certificates/openapi-check-navigator-certificate.ro.d.ts +6 -0
- package/dist/openapi/certificates/openapi-check-navigator-certificate.ro.js +29 -0
- package/dist/openapi/shared/openapi-create-payment.ro.d.ts +1 -1
- package/dist/registration-request/enum/registration-request-status.d.ts +3 -2
- package/dist/registration-request/enum/registration-request-status.js +3 -2
- package/dist/registration-request/update-registration-request.dto.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user-message/create-user-message.dto.d.ts +1 -0
- package/dist/user-message/create-user-message.dto.js +6 -0
- package/package.json +2 -2
- package/dist/navigator-certificate/enum/navigator-delivery-tier.enum.d.ts +0 -4
- package/dist/navigator-certificate/enum/navigator-delivery-tier.enum.js +0 -8
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { RO } from '../../shared/ro-class';
|
|
2
|
+
import { AggregatorIssueStatusEnum } from './enum/aggregator-issue-status.enum';
|
|
2
3
|
export declare class AggregatorIssueRO extends RO {
|
|
3
4
|
url: string;
|
|
4
5
|
type: string;
|
|
5
6
|
old: string;
|
|
6
7
|
new: string;
|
|
8
|
+
status: AggregatorIssueStatusEnum;
|
|
7
9
|
}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.AggregatorIssueRO = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const ro_class_1 = require("../../shared/ro-class");
|
|
15
|
+
const aggregator_issue_status_enum_1 = require("./enum/aggregator-issue-status.enum");
|
|
15
16
|
class AggregatorIssueRO extends ro_class_1.RO {
|
|
16
17
|
}
|
|
17
18
|
__decorate([
|
|
@@ -30,4 +31,8 @@ __decorate([
|
|
|
30
31
|
(0, class_transformer_1.Expose)(),
|
|
31
32
|
__metadata("design:type", String)
|
|
32
33
|
], AggregatorIssueRO.prototype, "new", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], AggregatorIssueRO.prototype, "status", void 0);
|
|
33
38
|
exports.AggregatorIssueRO = AggregatorIssueRO;
|
|
@@ -13,6 +13,7 @@ exports.AggregatorIssueDto = void 0;
|
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const is_not_blank_1 = require("../../shared/is-not-blank");
|
|
16
|
+
const aggregator_issue_status_enum_1 = require("./enum/aggregator-issue-status.enum");
|
|
16
17
|
class AggregatorIssueDto {
|
|
17
18
|
}
|
|
18
19
|
__decorate([
|
|
@@ -35,4 +36,9 @@ __decorate([
|
|
|
35
36
|
(0, class_transformer_1.Expose)(),
|
|
36
37
|
__metadata("design:type", String)
|
|
37
38
|
], AggregatorIssueDto.prototype, "new", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], AggregatorIssueDto.prototype, "status", void 0);
|
|
38
44
|
exports.AggregatorIssueDto = AggregatorIssueDto;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AggregatorIssueStatusEnum = void 0;
|
|
4
|
+
var AggregatorIssueStatusEnum;
|
|
5
|
+
(function (AggregatorIssueStatusEnum) {
|
|
6
|
+
AggregatorIssueStatusEnum["NEW"] = "new";
|
|
7
|
+
AggregatorIssueStatusEnum["DONE"] = "done";
|
|
8
|
+
})(AggregatorIssueStatusEnum = exports.AggregatorIssueStatusEnum || (exports.AggregatorIssueStatusEnum = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
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.UpdateAggregatorIssueStatusDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const aggregator_issue_status_enum_1 = require("./enum/aggregator-issue-status.enum");
|
|
16
|
+
class UpdateAggregatorIssueStatusDto {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsEnum)(aggregator_issue_status_enum_1.AggregatorIssueStatusEnum),
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], UpdateAggregatorIssueStatusDto.prototype, "status", void 0);
|
|
23
|
+
exports.UpdateAggregatorIssueStatusDto = UpdateAggregatorIssueStatusDto;
|
|
@@ -2,8 +2,6 @@ import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
|
2
2
|
export type NavigatorCertificateCountryPricing = {
|
|
3
3
|
nominals: number[];
|
|
4
4
|
deliveryPrice: number;
|
|
5
|
-
premiumDeliveryPrice: number;
|
|
6
|
-
packingPrice: number;
|
|
7
5
|
};
|
|
8
6
|
export declare const navigatorCertificatePricingByCountry: Record<CountriesEnum, NavigatorCertificateCountryPricing>;
|
|
9
7
|
export declare const navigatorCertificateNominalsByCountry: Record<CountriesEnum, number[]>;
|
|
@@ -5,92 +5,62 @@ const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
|
5
5
|
const pricingEUR = {
|
|
6
6
|
nominals: [5000, 10000, 15000, 20000],
|
|
7
7
|
deliveryPrice: 700,
|
|
8
|
-
premiumDeliveryPrice: 1500,
|
|
9
|
-
packingPrice: 400,
|
|
10
8
|
};
|
|
11
9
|
const pricingUSD = {
|
|
12
10
|
nominals: [5000, 10000, 15000, 20000],
|
|
13
11
|
deliveryPrice: 900,
|
|
14
|
-
premiumDeliveryPrice: 1900,
|
|
15
|
-
packingPrice: 500,
|
|
16
12
|
};
|
|
17
13
|
const pricingPLN = {
|
|
18
14
|
nominals: [20000, 30000, 50000, 70000],
|
|
19
15
|
deliveryPrice: 2500,
|
|
20
|
-
premiumDeliveryPrice: 5000,
|
|
21
|
-
packingPrice: 1200,
|
|
22
16
|
};
|
|
23
17
|
const pricingRUB = {
|
|
24
18
|
nominals: [500000, 1000000, 1500000, 2000000],
|
|
25
19
|
deliveryPrice: 35000,
|
|
26
|
-
premiumDeliveryPrice: 70000,
|
|
27
|
-
packingPrice: 15000,
|
|
28
20
|
};
|
|
29
21
|
const pricingCHF = {
|
|
30
22
|
nominals: [5000, 10000, 15000, 20000],
|
|
31
23
|
deliveryPrice: 1000,
|
|
32
|
-
premiumDeliveryPrice: 2200,
|
|
33
|
-
packingPrice: 600,
|
|
34
24
|
};
|
|
35
25
|
const pricingCZK = {
|
|
36
26
|
nominals: [100000, 150000, 200000, 300000],
|
|
37
27
|
deliveryPrice: 12000,
|
|
38
|
-
premiumDeliveryPrice: 24000,
|
|
39
|
-
packingPrice: 6000,
|
|
40
28
|
};
|
|
41
29
|
const pricingGBP = {
|
|
42
30
|
nominals: [4000, 8000, 12000, 16000],
|
|
43
31
|
deliveryPrice: 800,
|
|
44
|
-
premiumDeliveryPrice: 1700,
|
|
45
|
-
packingPrice: 450,
|
|
46
32
|
};
|
|
47
33
|
const pricingDKK = {
|
|
48
34
|
nominals: [40000, 60000, 80000, 100000],
|
|
49
35
|
deliveryPrice: 7000,
|
|
50
|
-
premiumDeliveryPrice: 14000,
|
|
51
|
-
packingPrice: 3500,
|
|
52
36
|
};
|
|
53
37
|
const pricingHUF = {
|
|
54
38
|
nominals: [2000000, 3000000, 5000000, 7000000],
|
|
55
39
|
deliveryPrice: 280000,
|
|
56
|
-
premiumDeliveryPrice: 560000,
|
|
57
|
-
packingPrice: 140000,
|
|
58
40
|
};
|
|
59
41
|
const pricingSEK = {
|
|
60
42
|
nominals: [50000, 75000, 100000, 150000],
|
|
61
43
|
deliveryPrice: 9000,
|
|
62
|
-
premiumDeliveryPrice: 18000,
|
|
63
|
-
packingPrice: 4500,
|
|
64
44
|
};
|
|
65
45
|
const pricingBGN = {
|
|
66
46
|
nominals: [10000, 20000, 30000, 40000],
|
|
67
47
|
deliveryPrice: 1200,
|
|
68
|
-
premiumDeliveryPrice: 2400,
|
|
69
|
-
packingPrice: 600,
|
|
70
48
|
};
|
|
71
49
|
const pricingCAD = {
|
|
72
50
|
nominals: [7000, 12000, 18000, 25000],
|
|
73
51
|
deliveryPrice: 1000,
|
|
74
|
-
premiumDeliveryPrice: 2200,
|
|
75
|
-
packingPrice: 600,
|
|
76
52
|
};
|
|
77
53
|
const pricingAUD = {
|
|
78
54
|
nominals: [7000, 12000, 18000, 25000],
|
|
79
55
|
deliveryPrice: 1000,
|
|
80
|
-
premiumDeliveryPrice: 2200,
|
|
81
|
-
packingPrice: 600,
|
|
82
56
|
};
|
|
83
57
|
const pricingRON = {
|
|
84
58
|
nominals: [20000, 30000, 50000, 70000],
|
|
85
59
|
deliveryPrice: 2500,
|
|
86
|
-
premiumDeliveryPrice: 5000,
|
|
87
|
-
packingPrice: 1200,
|
|
88
60
|
};
|
|
89
61
|
const pricingILS = {
|
|
90
62
|
nominals: [20000, 30000, 50000, 70000],
|
|
91
63
|
deliveryPrice: 2200,
|
|
92
|
-
premiumDeliveryPrice: 4400,
|
|
93
|
-
packingPrice: 1100,
|
|
94
64
|
};
|
|
95
65
|
exports.navigatorCertificatePricingByCountry = {
|
|
96
66
|
[countries_enum_1.CountriesEnum.GERMANY]: pricingEUR,
|
package/dist/emails/index.d.ts
CHANGED
|
@@ -25,6 +25,11 @@ type List = {
|
|
|
25
25
|
title?: string;
|
|
26
26
|
rows: Array<[string, string]>;
|
|
27
27
|
};
|
|
28
|
+
type Pdf = {
|
|
29
|
+
type: 'giftImage';
|
|
30
|
+
link: string;
|
|
31
|
+
buttonText: string;
|
|
32
|
+
};
|
|
28
33
|
type Code = {
|
|
29
34
|
type: 'code';
|
|
30
35
|
code: string;
|
|
@@ -37,7 +42,7 @@ type Context = {
|
|
|
37
42
|
tag?: string;
|
|
38
43
|
subscription?: boolean;
|
|
39
44
|
logo?: string;
|
|
40
|
-
sections: Array<Divider | Bitton | Paragraph | List | Reply | Image | Code>;
|
|
45
|
+
sections: Array<Divider | Bitton | Paragraph | List | Reply | Image | Code | Pdf>;
|
|
41
46
|
};
|
|
42
47
|
export type SendEmailRequestParams = {
|
|
43
48
|
from: EmailSenderEnum;
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import { ProfileCurrencyEnum } from '../profile/enum/profile-currency';
|
|
2
2
|
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
3
3
|
import { NavigatorCertificateTypeEnum } from './enum/navigator-certificate-type.enum';
|
|
4
|
-
import { NavigatorDeliveryTierEnum } from './enum/navigator-delivery-tier.enum';
|
|
5
4
|
export declare class CreateNavigatorCertificateSaleDto {
|
|
6
5
|
type?: NavigatorCertificateTypeEnum;
|
|
7
6
|
country: CountriesEnum;
|
|
8
7
|
nominal: number;
|
|
9
|
-
expireDays: number;
|
|
10
8
|
currency: ProfileCurrencyEnum;
|
|
11
9
|
deliveryPrice?: number;
|
|
12
|
-
premiumDeliveryPrice?: number;
|
|
13
|
-
packingPrice?: number;
|
|
14
10
|
name: string;
|
|
15
11
|
surname: string;
|
|
16
12
|
email: string;
|
|
@@ -24,14 +20,15 @@ export declare class CreateNavigatorCertificateSaleDto {
|
|
|
24
20
|
sameRecipient?: boolean;
|
|
25
21
|
deliveryEmail?: string;
|
|
26
22
|
deliveryMessage?: string;
|
|
27
|
-
sendAfterPayment?: boolean;
|
|
28
|
-
sendingDate?: string;
|
|
29
|
-
sendingTime?: string;
|
|
30
23
|
sendingEmailUtcDate?: string;
|
|
31
24
|
deliveryHouse?: string;
|
|
32
25
|
deliveryApart?: string;
|
|
33
26
|
deliveryComment?: string;
|
|
34
27
|
image: string;
|
|
35
|
-
|
|
36
|
-
|
|
28
|
+
backgroundImage?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare class CreateNavigatorCertificateSaleFormDto extends CreateNavigatorCertificateSaleDto {
|
|
31
|
+
sendAfterPayment?: boolean;
|
|
32
|
+
sendingDate?: string;
|
|
33
|
+
sendingTime?: string;
|
|
37
34
|
}
|
|
@@ -9,14 +9,14 @@ 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.CreateNavigatorCertificateSaleDto = void 0;
|
|
12
|
+
exports.CreateNavigatorCertificateSaleFormDto = exports.CreateNavigatorCertificateSaleDto = void 0;
|
|
13
|
+
/* eslint-disable max-classes-per-file */
|
|
13
14
|
const class_transformer_1 = require("class-transformer");
|
|
14
15
|
const class_validator_1 = require("class-validator");
|
|
15
16
|
const profile_currency_1 = require("../profile/enum/profile-currency");
|
|
16
17
|
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
17
18
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
18
19
|
const navigator_certificate_type_enum_1 = require("./enum/navigator-certificate-type.enum");
|
|
19
|
-
const navigator_delivery_tier_enum_1 = require("./enum/navigator-delivery-tier.enum");
|
|
20
20
|
class CreateNavigatorCertificateSaleDto {
|
|
21
21
|
}
|
|
22
22
|
__decorate([
|
|
@@ -36,11 +36,6 @@ __decorate([
|
|
|
36
36
|
(0, class_transformer_1.Expose)(),
|
|
37
37
|
__metadata("design:type", Number)
|
|
38
38
|
], CreateNavigatorCertificateSaleDto.prototype, "nominal", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, class_validator_1.IsPositive)(),
|
|
41
|
-
(0, class_transformer_1.Expose)(),
|
|
42
|
-
__metadata("design:type", Number)
|
|
43
|
-
], CreateNavigatorCertificateSaleDto.prototype, "expireDays", void 0);
|
|
44
39
|
__decorate([
|
|
45
40
|
(0, class_validator_1.IsEnum)(profile_currency_1.ProfileCurrencyEnum),
|
|
46
41
|
(0, class_transformer_1.Expose)(),
|
|
@@ -52,18 +47,6 @@ __decorate([
|
|
|
52
47
|
(0, class_transformer_1.Expose)(),
|
|
53
48
|
__metadata("design:type", Number)
|
|
54
49
|
], CreateNavigatorCertificateSaleDto.prototype, "deliveryPrice", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, class_validator_1.IsOptional)(),
|
|
57
|
-
(0, class_validator_1.IsNumber)(),
|
|
58
|
-
(0, class_transformer_1.Expose)(),
|
|
59
|
-
__metadata("design:type", Number)
|
|
60
|
-
], CreateNavigatorCertificateSaleDto.prototype, "premiumDeliveryPrice", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, class_validator_1.IsOptional)(),
|
|
63
|
-
(0, class_validator_1.IsNumber)(),
|
|
64
|
-
(0, class_transformer_1.Expose)(),
|
|
65
|
-
__metadata("design:type", Number)
|
|
66
|
-
], CreateNavigatorCertificateSaleDto.prototype, "packingPrice", void 0);
|
|
67
50
|
__decorate([
|
|
68
51
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
69
52
|
(0, class_transformer_1.Expose)(),
|
|
@@ -141,31 +124,6 @@ __decorate([
|
|
|
141
124
|
(0, class_transformer_1.Expose)(),
|
|
142
125
|
__metadata("design:type", String)
|
|
143
126
|
], CreateNavigatorCertificateSaleDto.prototype, "deliveryMessage", void 0);
|
|
144
|
-
__decorate([
|
|
145
|
-
(0, class_validator_1.IsOptional)(),
|
|
146
|
-
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
|
|
147
|
-
(0, class_validator_1.IsBoolean)(),
|
|
148
|
-
(0, class_transformer_1.Expose)(),
|
|
149
|
-
__metadata("design:type", Boolean)
|
|
150
|
-
], CreateNavigatorCertificateSaleDto.prototype, "sendAfterPayment", void 0);
|
|
151
|
-
__decorate([
|
|
152
|
-
(0, class_validator_1.ValidateIf)((o) => o.type === navigator_certificate_type_enum_1.NavigatorCertificateTypeEnum.ELECTRONIC &&
|
|
153
|
-
!o.sameRecipient &&
|
|
154
|
-
!o.sendAfterPayment),
|
|
155
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
156
|
-
(0, class_transformer_1.Expose)(),
|
|
157
|
-
__metadata("design:type", String)
|
|
158
|
-
], CreateNavigatorCertificateSaleDto.prototype, "sendingDate", void 0);
|
|
159
|
-
__decorate([
|
|
160
|
-
(0, class_validator_1.ValidateIf)((o) => o.type === navigator_certificate_type_enum_1.NavigatorCertificateTypeEnum.ELECTRONIC &&
|
|
161
|
-
!o.sameRecipient &&
|
|
162
|
-
!o.sendAfterPayment),
|
|
163
|
-
(0, class_validator_1.IsMilitaryTime)(),
|
|
164
|
-
(0, class_transformer_1.Transform)(({ value }) => (value && (value === null || value === void 0 ? void 0 : value.length) === 4 && value[1] === ':' ? `0${value}` : value)),
|
|
165
|
-
(0, class_validator_1.Length)(5),
|
|
166
|
-
(0, class_transformer_1.Expose)(),
|
|
167
|
-
__metadata("design:type", String)
|
|
168
|
-
], CreateNavigatorCertificateSaleDto.prototype, "sendingTime", void 0);
|
|
169
127
|
__decorate([
|
|
170
128
|
(0, class_validator_1.IsOptional)(),
|
|
171
129
|
(0, class_validator_1.IsString)(),
|
|
@@ -197,14 +155,36 @@ __decorate([
|
|
|
197
155
|
], CreateNavigatorCertificateSaleDto.prototype, "image", void 0);
|
|
198
156
|
__decorate([
|
|
199
157
|
(0, class_validator_1.IsOptional)(),
|
|
200
|
-
(0, class_validator_1.
|
|
158
|
+
(0, class_validator_1.IsString)(),
|
|
201
159
|
(0, class_transformer_1.Expose)(),
|
|
202
160
|
__metadata("design:type", String)
|
|
203
|
-
], CreateNavigatorCertificateSaleDto.prototype, "
|
|
161
|
+
], CreateNavigatorCertificateSaleDto.prototype, "backgroundImage", void 0);
|
|
162
|
+
exports.CreateNavigatorCertificateSaleDto = CreateNavigatorCertificateSaleDto;
|
|
163
|
+
class CreateNavigatorCertificateSaleFormDto extends CreateNavigatorCertificateSaleDto {
|
|
164
|
+
}
|
|
204
165
|
__decorate([
|
|
205
166
|
(0, class_validator_1.IsOptional)(),
|
|
167
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
|
|
206
168
|
(0, class_validator_1.IsBoolean)(),
|
|
207
169
|
(0, class_transformer_1.Expose)(),
|
|
208
170
|
__metadata("design:type", Boolean)
|
|
209
|
-
],
|
|
210
|
-
|
|
171
|
+
], CreateNavigatorCertificateSaleFormDto.prototype, "sendAfterPayment", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
(0, class_validator_1.ValidateIf)((o) => o.type === navigator_certificate_type_enum_1.NavigatorCertificateTypeEnum.ELECTRONIC &&
|
|
174
|
+
!o.sameRecipient &&
|
|
175
|
+
!o.sendAfterPayment),
|
|
176
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
177
|
+
(0, class_transformer_1.Expose)(),
|
|
178
|
+
__metadata("design:type", String)
|
|
179
|
+
], CreateNavigatorCertificateSaleFormDto.prototype, "sendingDate", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, class_validator_1.ValidateIf)((o) => o.type === navigator_certificate_type_enum_1.NavigatorCertificateTypeEnum.ELECTRONIC &&
|
|
182
|
+
!o.sameRecipient &&
|
|
183
|
+
!o.sendAfterPayment),
|
|
184
|
+
(0, class_validator_1.IsMilitaryTime)(),
|
|
185
|
+
(0, class_transformer_1.Transform)(({ value }) => (value && (value === null || value === void 0 ? void 0 : value.length) === 4 && value[1] === ':' ? `0${value}` : value)),
|
|
186
|
+
(0, class_validator_1.Length)(5),
|
|
187
|
+
(0, class_transformer_1.Expose)(),
|
|
188
|
+
__metadata("design:type", String)
|
|
189
|
+
], CreateNavigatorCertificateSaleFormDto.prototype, "sendingTime", void 0);
|
|
190
|
+
exports.CreateNavigatorCertificateSaleFormDto = CreateNavigatorCertificateSaleFormDto;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NavigatorCertificateSaleStatusEnum = void 0;
|
|
4
|
+
var NavigatorCertificateSaleStatusEnum;
|
|
5
|
+
(function (NavigatorCertificateSaleStatusEnum) {
|
|
6
|
+
NavigatorCertificateSaleStatusEnum["NOT_PAYED"] = "notPayed";
|
|
7
|
+
NavigatorCertificateSaleStatusEnum["WAITING_DELIVERY"] = "waitingDelivery";
|
|
8
|
+
NavigatorCertificateSaleStatusEnum["WAITING_EMAIL_SENDING"] = "waitingEmailSending";
|
|
9
|
+
NavigatorCertificateSaleStatusEnum["SENDED"] = "sended";
|
|
10
|
+
NavigatorCertificateSaleStatusEnum["WAITING_REDEEM"] = "waitingRedeem";
|
|
11
|
+
NavigatorCertificateSaleStatusEnum["REDEEMED"] = "redeemed";
|
|
12
|
+
})(NavigatorCertificateSaleStatusEnum = exports.NavigatorCertificateSaleStatusEnum || (exports.NavigatorCertificateSaleStatusEnum = {}));
|
|
@@ -5,5 +5,5 @@ export * from './create-navigator-certificate-template.dto';
|
|
|
5
5
|
export * from './update-navigator-certificate-template.dto';
|
|
6
6
|
export * from './create-navigator-certificate-sale.dto';
|
|
7
7
|
export * from './update-navigator-certificate-code.dto';
|
|
8
|
-
export * from './enum/navigator-delivery-tier.enum';
|
|
9
8
|
export * from './enum/navigator-certificate-type.enum';
|
|
9
|
+
export * from './enum/navigator-certificate-sale-status.enum';
|
|
@@ -21,5 +21,5 @@ __exportStar(require("./create-navigator-certificate-template.dto"), exports);
|
|
|
21
21
|
__exportStar(require("./update-navigator-certificate-template.dto"), exports);
|
|
22
22
|
__exportStar(require("./create-navigator-certificate-sale.dto"), exports);
|
|
23
23
|
__exportStar(require("./update-navigator-certificate-code.dto"), exports);
|
|
24
|
-
__exportStar(require("./enum/navigator-delivery-tier.enum"), exports);
|
|
25
24
|
__exportStar(require("./enum/navigator-certificate-type.enum"), exports);
|
|
25
|
+
__exportStar(require("./enum/navigator-certificate-sale-status.enum"), exports);
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
+
import { ProfileCurrencyEnum } from '../profile/enum/profile-currency';
|
|
1
2
|
import { ProfileRO } from '../profile/profile.ro';
|
|
2
3
|
import { RO } from '../shared/ro-class';
|
|
4
|
+
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
5
|
+
import { TransactionSourceEnum } from '../transaction/enum/transaction-source.enum';
|
|
6
|
+
import { NavigatorCertificateSaleStatusEnum } from './enum/navigator-certificate-sale-status.enum';
|
|
3
7
|
import { NavigatorCertificateTypeEnum } from './enum/navigator-certificate-type.enum';
|
|
4
|
-
import { NavigatorDeliveryTierEnum } from './enum/navigator-delivery-tier.enum';
|
|
5
8
|
export declare class NavigatorCertificateSaleRO extends RO {
|
|
6
9
|
type: NavigatorCertificateTypeEnum;
|
|
7
10
|
image: string;
|
|
11
|
+
backgroundImage: string;
|
|
8
12
|
nominal: number;
|
|
9
13
|
deliveryPrice: number;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
total: number;
|
|
15
|
+
payed: number;
|
|
16
|
+
currency: ProfileCurrencyEnum;
|
|
17
|
+
country: CountriesEnum;
|
|
13
18
|
paymentId: string;
|
|
19
|
+
paymentProvider: TransactionSourceEnum;
|
|
14
20
|
code: string;
|
|
15
21
|
expireDate: string;
|
|
16
22
|
name: string;
|
|
@@ -19,7 +25,9 @@ export declare class NavigatorCertificateSaleRO extends RO {
|
|
|
19
25
|
phone: string;
|
|
20
26
|
profileId: number;
|
|
21
27
|
profile: ProfileRO;
|
|
22
|
-
|
|
28
|
+
status: NavigatorCertificateSaleStatusEnum;
|
|
29
|
+
redeemAmount: number | null;
|
|
30
|
+
redeemReceipt: string | null;
|
|
23
31
|
deliveryName: string;
|
|
24
32
|
deliverySurname: string;
|
|
25
33
|
deliveryPhone: string;
|
|
@@ -31,8 +39,5 @@ export declare class NavigatorCertificateSaleRO extends RO {
|
|
|
31
39
|
deliveryPostcode: string;
|
|
32
40
|
deliveryEmail: string;
|
|
33
41
|
deliveryMessage: string;
|
|
34
|
-
sendAfterPayment: boolean;
|
|
35
|
-
sendingDate: string;
|
|
36
|
-
sendingTime: string;
|
|
37
42
|
sendingEmailUtcDate: string;
|
|
38
43
|
}
|
|
@@ -11,10 +11,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.NavigatorCertificateSaleRO = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const profile_currency_1 = require("../profile/enum/profile-currency");
|
|
14
15
|
const profile_ro_1 = require("../profile/profile.ro");
|
|
15
16
|
const ro_class_1 = require("../shared/ro-class");
|
|
17
|
+
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
18
|
+
const transaction_source_enum_1 = require("../transaction/enum/transaction-source.enum");
|
|
19
|
+
const navigator_certificate_sale_status_enum_1 = require("./enum/navigator-certificate-sale-status.enum");
|
|
16
20
|
const navigator_certificate_type_enum_1 = require("./enum/navigator-certificate-type.enum");
|
|
17
|
-
const navigator_delivery_tier_enum_1 = require("./enum/navigator-delivery-tier.enum");
|
|
18
21
|
class NavigatorCertificateSaleRO extends ro_class_1.RO {
|
|
19
22
|
}
|
|
20
23
|
__decorate([
|
|
@@ -25,6 +28,10 @@ __decorate([
|
|
|
25
28
|
(0, class_transformer_1.Expose)(),
|
|
26
29
|
__metadata("design:type", String)
|
|
27
30
|
], NavigatorCertificateSaleRO.prototype, "image", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], NavigatorCertificateSaleRO.prototype, "backgroundImage", void 0);
|
|
28
35
|
__decorate([
|
|
29
36
|
(0, class_transformer_1.Expose)(),
|
|
30
37
|
__metadata("design:type", Number)
|
|
@@ -35,20 +42,28 @@ __decorate([
|
|
|
35
42
|
], NavigatorCertificateSaleRO.prototype, "deliveryPrice", void 0);
|
|
36
43
|
__decorate([
|
|
37
44
|
(0, class_transformer_1.Expose)(),
|
|
38
|
-
__metadata("design:type",
|
|
39
|
-
], NavigatorCertificateSaleRO.prototype, "
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], NavigatorCertificateSaleRO.prototype, "total", void 0);
|
|
40
47
|
__decorate([
|
|
41
48
|
(0, class_transformer_1.Expose)(),
|
|
42
|
-
__metadata("design:type",
|
|
43
|
-
], NavigatorCertificateSaleRO.prototype, "
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], NavigatorCertificateSaleRO.prototype, "payed", void 0);
|
|
44
51
|
__decorate([
|
|
45
52
|
(0, class_transformer_1.Expose)(),
|
|
46
|
-
__metadata("design:type",
|
|
47
|
-
], NavigatorCertificateSaleRO.prototype, "
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], NavigatorCertificateSaleRO.prototype, "currency", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_transformer_1.Expose)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], NavigatorCertificateSaleRO.prototype, "country", void 0);
|
|
48
59
|
__decorate([
|
|
49
60
|
(0, class_transformer_1.Expose)(),
|
|
50
61
|
__metadata("design:type", String)
|
|
51
62
|
], NavigatorCertificateSaleRO.prototype, "paymentId", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_transformer_1.Expose)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], NavigatorCertificateSaleRO.prototype, "paymentProvider", void 0);
|
|
52
67
|
__decorate([
|
|
53
68
|
(0, class_transformer_1.Expose)(),
|
|
54
69
|
__metadata("design:type", String)
|
|
@@ -83,8 +98,16 @@ __decorate([
|
|
|
83
98
|
], NavigatorCertificateSaleRO.prototype, "profile", void 0);
|
|
84
99
|
__decorate([
|
|
85
100
|
(0, class_transformer_1.Expose)(),
|
|
86
|
-
__metadata("design:type",
|
|
87
|
-
], NavigatorCertificateSaleRO.prototype, "
|
|
101
|
+
__metadata("design:type", String)
|
|
102
|
+
], NavigatorCertificateSaleRO.prototype, "status", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, class_transformer_1.Expose)(),
|
|
105
|
+
__metadata("design:type", Number)
|
|
106
|
+
], NavigatorCertificateSaleRO.prototype, "redeemAmount", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, class_transformer_1.Expose)(),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], NavigatorCertificateSaleRO.prototype, "redeemReceipt", void 0);
|
|
88
111
|
__decorate([
|
|
89
112
|
(0, class_transformer_1.Expose)(),
|
|
90
113
|
__metadata("design:type", String)
|
|
@@ -129,18 +152,6 @@ __decorate([
|
|
|
129
152
|
(0, class_transformer_1.Expose)(),
|
|
130
153
|
__metadata("design:type", String)
|
|
131
154
|
], NavigatorCertificateSaleRO.prototype, "deliveryMessage", void 0);
|
|
132
|
-
__decorate([
|
|
133
|
-
(0, class_transformer_1.Expose)(),
|
|
134
|
-
__metadata("design:type", Boolean)
|
|
135
|
-
], NavigatorCertificateSaleRO.prototype, "sendAfterPayment", void 0);
|
|
136
|
-
__decorate([
|
|
137
|
-
(0, class_transformer_1.Expose)(),
|
|
138
|
-
__metadata("design:type", String)
|
|
139
|
-
], NavigatorCertificateSaleRO.prototype, "sendingDate", void 0);
|
|
140
|
-
__decorate([
|
|
141
|
-
(0, class_transformer_1.Expose)(),
|
|
142
|
-
__metadata("design:type", String)
|
|
143
|
-
], NavigatorCertificateSaleRO.prototype, "sendingTime", void 0);
|
|
144
155
|
__decorate([
|
|
145
156
|
(0, class_transformer_1.Expose)(),
|
|
146
157
|
__metadata("design:type", String)
|
|
@@ -26,14 +26,6 @@ __decorate([
|
|
|
26
26
|
(0, class_transformer_1.Expose)(),
|
|
27
27
|
__metadata("design:type", Number)
|
|
28
28
|
], OpenapiNavigatorCertificateTemplatesRO.prototype, "deliveryPrice", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_transformer_1.Expose)(),
|
|
31
|
-
__metadata("design:type", Number)
|
|
32
|
-
], OpenapiNavigatorCertificateTemplatesRO.prototype, "premiumDeliveryPrice", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_transformer_1.Expose)(),
|
|
35
|
-
__metadata("design:type", Number)
|
|
36
|
-
], OpenapiNavigatorCertificateTemplatesRO.prototype, "packingPrice", void 0);
|
|
37
29
|
__decorate([
|
|
38
30
|
(0, class_transformer_1.Expose)(),
|
|
39
31
|
__metadata("design:type", Array)
|
|
@@ -11,11 +11,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.UpdateNavigatorCertificateCodeDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
14
15
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
15
16
|
class UpdateNavigatorCertificateCodeDto {
|
|
16
17
|
}
|
|
17
18
|
__decorate([
|
|
18
19
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
20
|
+
(0, class_transformer_1.Transform)(({ value }) => `${value || ''}`.replace(/\D/g, '')),
|
|
21
|
+
(0, class_validator_1.Matches)(/^\d{16}$/),
|
|
19
22
|
(0, class_transformer_1.Expose)(),
|
|
20
23
|
__metadata("design:type", String)
|
|
21
24
|
], UpdateNavigatorCertificateCodeDto.prototype, "code", void 0);
|
|
@@ -0,0 +1,29 @@
|
|
|
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.OpenapiCheckNavigatorCertificateRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const profile_currency_1 = require("../../profile/enum/profile-currency");
|
|
15
|
+
class OpenapiCheckNavigatorCertificateRO {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_transformer_1.Expose)(),
|
|
19
|
+
__metadata("design:type", Boolean)
|
|
20
|
+
], OpenapiCheckNavigatorCertificateRO.prototype, "found", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], OpenapiCheckNavigatorCertificateRO.prototype, "amount", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], OpenapiCheckNavigatorCertificateRO.prototype, "currency", void 0);
|
|
29
|
+
exports.OpenapiCheckNavigatorCertificateRO = OpenapiCheckNavigatorCertificateRO;
|