@escapenavigator/types 1.10.92 → 1.10.95
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/agregator/agregator-questroom-card.ro.d.ts +1 -0
- package/dist/agregator/agregator-questroom-card.ro.js +4 -0
- package/dist/agregator/agregator-questroom.ro.d.ts +5 -0
- package/dist/agregator/agregator-questroom.ro.js +20 -0
- package/dist/constants/navigator-certificate-nominals-by-country.d.ts +9 -0
- package/dist/constants/navigator-certificate-nominals-by-country.js +127 -0
- package/dist/navigator-certificate/create-navigator-certificate-sale.dto.d.ts +18 -2
- package/dist/navigator-certificate/create-navigator-certificate-sale.dto.js +97 -3
- package/dist/navigator-certificate/create-navigator-certificate-template.dto.d.ts +2 -11
- package/dist/navigator-certificate/create-navigator-certificate-template.dto.js +3 -57
- package/dist/navigator-certificate/enum/navigator-certificate-type.enum.d.ts +4 -0
- package/dist/navigator-certificate/enum/navigator-certificate-type.enum.js +8 -0
- package/dist/navigator-certificate/index.d.ts +2 -0
- package/dist/navigator-certificate/index.js +2 -0
- package/dist/navigator-certificate/navigator-certificate-sale.ro.d.ts +12 -3
- package/dist/navigator-certificate/navigator-certificate-sale.ro.js +41 -5
- package/dist/navigator-certificate/navigator-certificate-template.ro.d.ts +1 -6
- package/dist/navigator-certificate/navigator-certificate-template.ro.js +2 -22
- package/dist/navigator-certificate/navigator-certificate-templates.ro.d.ts +9 -0
- package/dist/navigator-certificate/navigator-certificate-templates.ro.js +41 -0
- package/dist/navigator-certificate/update-navigator-certificate-template.dto.d.ts +1 -6
- package/dist/navigator-certificate/update-navigator-certificate-template.dto.js +3 -38
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -80,6 +80,10 @@ __decorate([
|
|
|
80
80
|
(0, class_transformer_1.Transform)(({ value }) => (value ? +(value / 100).toFixed(2) : 0)),
|
|
81
81
|
__metadata("design:type", Number)
|
|
82
82
|
], AgregatorQuestroomCardRO.prototype, "rate", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, class_transformer_1.Expose)(),
|
|
85
|
+
__metadata("design:type", Number)
|
|
86
|
+
], AgregatorQuestroomCardRO.prototype, "reviewsCount", void 0);
|
|
83
87
|
__decorate([
|
|
84
88
|
(0, class_transformer_1.Expose)(),
|
|
85
89
|
__metadata("design:type", String)
|
|
@@ -16,7 +16,12 @@ export declare const getRightLocale: ({ value, key, techLocales, locales, langua
|
|
|
16
16
|
language: string;
|
|
17
17
|
}) => any;
|
|
18
18
|
export declare class AgregatorProfile {
|
|
19
|
+
id: number;
|
|
19
20
|
title: string;
|
|
21
|
+
legalTitle: string;
|
|
22
|
+
legalAddress: string;
|
|
23
|
+
phoneForCustomers: string;
|
|
24
|
+
legalTaxId: string;
|
|
20
25
|
logo: string;
|
|
21
26
|
rate: number;
|
|
22
27
|
slug: string;
|
|
@@ -36,10 +36,30 @@ const getRightLocale = ({ value, key, techLocales, locales, language, }) => {
|
|
|
36
36
|
exports.getRightLocale = getRightLocale;
|
|
37
37
|
class AgregatorProfile {
|
|
38
38
|
}
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], AgregatorProfile.prototype, "id", void 0);
|
|
39
43
|
__decorate([
|
|
40
44
|
(0, class_transformer_1.Expose)(),
|
|
41
45
|
__metadata("design:type", String)
|
|
42
46
|
], AgregatorProfile.prototype, "title", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_transformer_1.Expose)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], AgregatorProfile.prototype, "legalTitle", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_transformer_1.Expose)(),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], AgregatorProfile.prototype, "legalAddress", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_transformer_1.Expose)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], AgregatorProfile.prototype, "phoneForCustomers", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_transformer_1.Expose)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], AgregatorProfile.prototype, "legalTaxId", void 0);
|
|
43
63
|
__decorate([
|
|
44
64
|
(0, class_transformer_1.Expose)(),
|
|
45
65
|
__metadata("design:type", String)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
|
+
export type NavigatorCertificateCountryPricing = {
|
|
3
|
+
nominals: number[];
|
|
4
|
+
deliveryPrice: number;
|
|
5
|
+
premiumDeliveryPrice: number;
|
|
6
|
+
packingPrice: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const navigatorCertificatePricingByCountry: Record<CountriesEnum, NavigatorCertificateCountryPricing>;
|
|
9
|
+
export declare const navigatorCertificateNominalsByCountry: Record<CountriesEnum, number[]>;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.navigatorCertificateNominalsByCountry = exports.navigatorCertificatePricingByCountry = void 0;
|
|
4
|
+
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
5
|
+
const pricingEUR = {
|
|
6
|
+
nominals: [5000, 10000, 15000, 20000],
|
|
7
|
+
deliveryPrice: 700,
|
|
8
|
+
premiumDeliveryPrice: 1500,
|
|
9
|
+
packingPrice: 400,
|
|
10
|
+
};
|
|
11
|
+
const pricingUSD = {
|
|
12
|
+
nominals: [5000, 10000, 15000, 20000],
|
|
13
|
+
deliveryPrice: 900,
|
|
14
|
+
premiumDeliveryPrice: 1900,
|
|
15
|
+
packingPrice: 500,
|
|
16
|
+
};
|
|
17
|
+
const pricingPLN = {
|
|
18
|
+
nominals: [20000, 30000, 50000, 70000],
|
|
19
|
+
deliveryPrice: 2500,
|
|
20
|
+
premiumDeliveryPrice: 5000,
|
|
21
|
+
packingPrice: 1200,
|
|
22
|
+
};
|
|
23
|
+
const pricingRUB = {
|
|
24
|
+
nominals: [500000, 1000000, 1500000, 2000000],
|
|
25
|
+
deliveryPrice: 35000,
|
|
26
|
+
premiumDeliveryPrice: 70000,
|
|
27
|
+
packingPrice: 15000,
|
|
28
|
+
};
|
|
29
|
+
const pricingCHF = {
|
|
30
|
+
nominals: [5000, 10000, 15000, 20000],
|
|
31
|
+
deliveryPrice: 1000,
|
|
32
|
+
premiumDeliveryPrice: 2200,
|
|
33
|
+
packingPrice: 600,
|
|
34
|
+
};
|
|
35
|
+
const pricingCZK = {
|
|
36
|
+
nominals: [100000, 150000, 200000, 300000],
|
|
37
|
+
deliveryPrice: 12000,
|
|
38
|
+
premiumDeliveryPrice: 24000,
|
|
39
|
+
packingPrice: 6000,
|
|
40
|
+
};
|
|
41
|
+
const pricingGBP = {
|
|
42
|
+
nominals: [4000, 8000, 12000, 16000],
|
|
43
|
+
deliveryPrice: 800,
|
|
44
|
+
premiumDeliveryPrice: 1700,
|
|
45
|
+
packingPrice: 450,
|
|
46
|
+
};
|
|
47
|
+
const pricingDKK = {
|
|
48
|
+
nominals: [40000, 60000, 80000, 100000],
|
|
49
|
+
deliveryPrice: 7000,
|
|
50
|
+
premiumDeliveryPrice: 14000,
|
|
51
|
+
packingPrice: 3500,
|
|
52
|
+
};
|
|
53
|
+
const pricingHUF = {
|
|
54
|
+
nominals: [2000000, 3000000, 5000000, 7000000],
|
|
55
|
+
deliveryPrice: 280000,
|
|
56
|
+
premiumDeliveryPrice: 560000,
|
|
57
|
+
packingPrice: 140000,
|
|
58
|
+
};
|
|
59
|
+
const pricingSEK = {
|
|
60
|
+
nominals: [50000, 75000, 100000, 150000],
|
|
61
|
+
deliveryPrice: 9000,
|
|
62
|
+
premiumDeliveryPrice: 18000,
|
|
63
|
+
packingPrice: 4500,
|
|
64
|
+
};
|
|
65
|
+
const pricingBGN = {
|
|
66
|
+
nominals: [10000, 20000, 30000, 40000],
|
|
67
|
+
deliveryPrice: 1200,
|
|
68
|
+
premiumDeliveryPrice: 2400,
|
|
69
|
+
packingPrice: 600,
|
|
70
|
+
};
|
|
71
|
+
const pricingCAD = {
|
|
72
|
+
nominals: [7000, 12000, 18000, 25000],
|
|
73
|
+
deliveryPrice: 1000,
|
|
74
|
+
premiumDeliveryPrice: 2200,
|
|
75
|
+
packingPrice: 600,
|
|
76
|
+
};
|
|
77
|
+
const pricingAUD = {
|
|
78
|
+
nominals: [7000, 12000, 18000, 25000],
|
|
79
|
+
deliveryPrice: 1000,
|
|
80
|
+
premiumDeliveryPrice: 2200,
|
|
81
|
+
packingPrice: 600,
|
|
82
|
+
};
|
|
83
|
+
const pricingRON = {
|
|
84
|
+
nominals: [20000, 30000, 50000, 70000],
|
|
85
|
+
deliveryPrice: 2500,
|
|
86
|
+
premiumDeliveryPrice: 5000,
|
|
87
|
+
packingPrice: 1200,
|
|
88
|
+
};
|
|
89
|
+
const pricingILS = {
|
|
90
|
+
nominals: [20000, 30000, 50000, 70000],
|
|
91
|
+
deliveryPrice: 2200,
|
|
92
|
+
premiumDeliveryPrice: 4400,
|
|
93
|
+
packingPrice: 1100,
|
|
94
|
+
};
|
|
95
|
+
exports.navigatorCertificatePricingByCountry = {
|
|
96
|
+
[countries_enum_1.CountriesEnum.GERMANY]: pricingEUR,
|
|
97
|
+
[countries_enum_1.CountriesEnum.AUSTRIA]: pricingEUR,
|
|
98
|
+
[countries_enum_1.CountriesEnum.USA]: pricingUSD,
|
|
99
|
+
[countries_enum_1.CountriesEnum.POLAND]: pricingPLN,
|
|
100
|
+
[countries_enum_1.CountriesEnum.FRANCE]: pricingEUR,
|
|
101
|
+
[countries_enum_1.CountriesEnum.SPAIN]: pricingEUR,
|
|
102
|
+
[countries_enum_1.CountriesEnum.ITALY]: pricingEUR,
|
|
103
|
+
[countries_enum_1.CountriesEnum.PORTUGAL]: pricingEUR,
|
|
104
|
+
[countries_enum_1.CountriesEnum.GREECE]: pricingEUR,
|
|
105
|
+
[countries_enum_1.CountriesEnum.ESTONIA]: pricingEUR,
|
|
106
|
+
[countries_enum_1.CountriesEnum.RUSSIA]: pricingRUB,
|
|
107
|
+
[countries_enum_1.CountriesEnum.SWITZERLAND]: pricingCHF,
|
|
108
|
+
[countries_enum_1.CountriesEnum.CZECH]: pricingCZK,
|
|
109
|
+
[countries_enum_1.CountriesEnum.UK]: pricingGBP,
|
|
110
|
+
[countries_enum_1.CountriesEnum.NETHERLANDS]: pricingEUR,
|
|
111
|
+
[countries_enum_1.CountriesEnum.FINLAND]: pricingEUR,
|
|
112
|
+
[countries_enum_1.CountriesEnum.DENMARK]: pricingDKK,
|
|
113
|
+
[countries_enum_1.CountriesEnum.SLOVAKIA]: pricingEUR,
|
|
114
|
+
[countries_enum_1.CountriesEnum.HUNGARY]: pricingHUF,
|
|
115
|
+
[countries_enum_1.CountriesEnum.SWEDEN]: pricingSEK,
|
|
116
|
+
[countries_enum_1.CountriesEnum.LATVIA]: pricingEUR,
|
|
117
|
+
[countries_enum_1.CountriesEnum.BULGARIA]: pricingBGN,
|
|
118
|
+
[countries_enum_1.CountriesEnum.CANADA]: pricingCAD,
|
|
119
|
+
[countries_enum_1.CountriesEnum.BELGIUM]: pricingEUR,
|
|
120
|
+
[countries_enum_1.CountriesEnum.AUSTRALIA]: pricingAUD,
|
|
121
|
+
[countries_enum_1.CountriesEnum.ROMANIA]: pricingRON,
|
|
122
|
+
[countries_enum_1.CountriesEnum.LITVA]: pricingEUR,
|
|
123
|
+
[countries_enum_1.CountriesEnum.IZRAEL]: pricingILS,
|
|
124
|
+
};
|
|
125
|
+
exports.navigatorCertificateNominalsByCountry = Object
|
|
126
|
+
.entries(exports.navigatorCertificatePricingByCountry)
|
|
127
|
+
.reduce((acc, [country, pricing]) => (Object.assign(Object.assign({}, acc), { [country]: pricing.nominals })), {});
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
+
import { ProfileCurrencyEnum } from '../profile/enum/profile-currency';
|
|
2
|
+
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
3
|
+
import { NavigatorCertificateTypeEnum } from './enum/navigator-certificate-type.enum';
|
|
1
4
|
import { NavigatorDeliveryTierEnum } from './enum/navigator-delivery-tier.enum';
|
|
2
5
|
export declare class CreateNavigatorCertificateSaleDto {
|
|
3
|
-
|
|
6
|
+
type?: NavigatorCertificateTypeEnum;
|
|
7
|
+
country: CountriesEnum;
|
|
4
8
|
nominal: number;
|
|
9
|
+
expireDays: number;
|
|
10
|
+
currency: ProfileCurrencyEnum;
|
|
11
|
+
deliveryPrice?: number;
|
|
12
|
+
premiumDeliveryPrice?: number;
|
|
13
|
+
packingPrice?: number;
|
|
5
14
|
name: string;
|
|
6
15
|
surname: string;
|
|
7
16
|
email: string;
|
|
@@ -12,10 +21,17 @@ export declare class CreateNavigatorCertificateSaleDto {
|
|
|
12
21
|
deliveryAddress: string;
|
|
13
22
|
deliveryCity: string;
|
|
14
23
|
deliveryPostcode: string;
|
|
24
|
+
sameRecipient?: boolean;
|
|
25
|
+
deliveryEmail?: string;
|
|
26
|
+
deliveryMessage?: string;
|
|
27
|
+
sendAfterPayment?: boolean;
|
|
28
|
+
sendingDate?: string;
|
|
29
|
+
sendingTime?: string;
|
|
30
|
+
sendingEmailUtcDate?: string;
|
|
15
31
|
deliveryHouse?: string;
|
|
16
32
|
deliveryApart?: string;
|
|
17
33
|
deliveryComment?: string;
|
|
18
|
-
image
|
|
34
|
+
image: string;
|
|
19
35
|
deliveryTier?: NavigatorDeliveryTierEnum;
|
|
20
36
|
needsPacking?: boolean;
|
|
21
37
|
}
|
|
@@ -12,20 +12,58 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateNavigatorCertificateSaleDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
+
const profile_currency_1 = require("../profile/enum/profile-currency");
|
|
16
|
+
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
15
17
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
18
|
+
const navigator_certificate_type_enum_1 = require("./enum/navigator-certificate-type.enum");
|
|
16
19
|
const navigator_delivery_tier_enum_1 = require("./enum/navigator-delivery-tier.enum");
|
|
17
20
|
class CreateNavigatorCertificateSaleDto {
|
|
18
21
|
}
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsEnum)(navigator_certificate_type_enum_1.NavigatorCertificateTypeEnum),
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CreateNavigatorCertificateSaleDto.prototype, "type", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsEnum)(countries_enum_1.CountriesEnum),
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateNavigatorCertificateSaleDto.prototype, "country", void 0);
|
|
19
33
|
__decorate([
|
|
20
34
|
(0, class_validator_1.IsPositive)(),
|
|
35
|
+
(0, class_transformer_1.Transform)(({ value }) => (+value ? +value : 0)),
|
|
21
36
|
(0, class_transformer_1.Expose)(),
|
|
22
37
|
__metadata("design:type", Number)
|
|
23
|
-
], CreateNavigatorCertificateSaleDto.prototype, "
|
|
38
|
+
], CreateNavigatorCertificateSaleDto.prototype, "nominal", void 0);
|
|
24
39
|
__decorate([
|
|
25
40
|
(0, class_validator_1.IsPositive)(),
|
|
26
41
|
(0, class_transformer_1.Expose)(),
|
|
27
42
|
__metadata("design:type", Number)
|
|
28
|
-
], CreateNavigatorCertificateSaleDto.prototype, "
|
|
43
|
+
], CreateNavigatorCertificateSaleDto.prototype, "expireDays", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsEnum)(profile_currency_1.ProfileCurrencyEnum),
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], CreateNavigatorCertificateSaleDto.prototype, "currency", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
(0, class_validator_1.IsNumber)(),
|
|
52
|
+
(0, class_transformer_1.Expose)(),
|
|
53
|
+
__metadata("design:type", Number)
|
|
54
|
+
], 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);
|
|
29
67
|
__decorate([
|
|
30
68
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
31
69
|
(0, class_transformer_1.Expose)(),
|
|
@@ -48,35 +86,92 @@ __decorate([
|
|
|
48
86
|
__metadata("design:type", String)
|
|
49
87
|
], CreateNavigatorCertificateSaleDto.prototype, "phone", void 0);
|
|
50
88
|
__decorate([
|
|
89
|
+
(0, class_validator_1.ValidateIf)((o) => o.type !== navigator_certificate_type_enum_1.NavigatorCertificateTypeEnum.ELECTRONIC),
|
|
51
90
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
52
91
|
(0, class_transformer_1.Expose)(),
|
|
53
92
|
__metadata("design:type", String)
|
|
54
93
|
], CreateNavigatorCertificateSaleDto.prototype, "deliveryName", void 0);
|
|
55
94
|
__decorate([
|
|
95
|
+
(0, class_validator_1.ValidateIf)((o) => o.type !== navigator_certificate_type_enum_1.NavigatorCertificateTypeEnum.ELECTRONIC),
|
|
56
96
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
57
97
|
(0, class_transformer_1.Expose)(),
|
|
58
98
|
__metadata("design:type", String)
|
|
59
99
|
], CreateNavigatorCertificateSaleDto.prototype, "deliverySurname", void 0);
|
|
60
100
|
__decorate([
|
|
101
|
+
(0, class_validator_1.ValidateIf)((o) => o.type !== navigator_certificate_type_enum_1.NavigatorCertificateTypeEnum.ELECTRONIC),
|
|
61
102
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
62
103
|
(0, class_transformer_1.Expose)(),
|
|
63
104
|
__metadata("design:type", String)
|
|
64
105
|
], CreateNavigatorCertificateSaleDto.prototype, "deliveryPhone", void 0);
|
|
65
106
|
__decorate([
|
|
107
|
+
(0, class_validator_1.ValidateIf)((o) => o.type !== navigator_certificate_type_enum_1.NavigatorCertificateTypeEnum.ELECTRONIC),
|
|
66
108
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
67
109
|
(0, class_transformer_1.Expose)(),
|
|
68
110
|
__metadata("design:type", String)
|
|
69
111
|
], CreateNavigatorCertificateSaleDto.prototype, "deliveryAddress", void 0);
|
|
70
112
|
__decorate([
|
|
113
|
+
(0, class_validator_1.ValidateIf)((o) => o.type !== navigator_certificate_type_enum_1.NavigatorCertificateTypeEnum.ELECTRONIC),
|
|
71
114
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
72
115
|
(0, class_transformer_1.Expose)(),
|
|
73
116
|
__metadata("design:type", String)
|
|
74
117
|
], CreateNavigatorCertificateSaleDto.prototype, "deliveryCity", void 0);
|
|
75
118
|
__decorate([
|
|
119
|
+
(0, class_validator_1.ValidateIf)((o) => o.type !== navigator_certificate_type_enum_1.NavigatorCertificateTypeEnum.ELECTRONIC),
|
|
76
120
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
77
121
|
(0, class_transformer_1.Expose)(),
|
|
78
122
|
__metadata("design:type", String)
|
|
79
123
|
], CreateNavigatorCertificateSaleDto.prototype, "deliveryPostcode", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, class_validator_1.IsOptional)(),
|
|
126
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
|
|
127
|
+
(0, class_validator_1.IsBoolean)(),
|
|
128
|
+
(0, class_transformer_1.Expose)(),
|
|
129
|
+
__metadata("design:type", Boolean)
|
|
130
|
+
], CreateNavigatorCertificateSaleDto.prototype, "sameRecipient", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, class_validator_1.ValidateIf)((o) => o.type === navigator_certificate_type_enum_1.NavigatorCertificateTypeEnum.ELECTRONIC && !o.sameRecipient),
|
|
133
|
+
(0, class_validator_1.IsEmail)(),
|
|
134
|
+
(0, class_transformer_1.Transform)(({ value }) => value === null || value === void 0 ? void 0 : value.trim().toLowerCase()),
|
|
135
|
+
(0, class_transformer_1.Expose)(),
|
|
136
|
+
__metadata("design:type", String)
|
|
137
|
+
], CreateNavigatorCertificateSaleDto.prototype, "deliveryEmail", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, class_validator_1.IsOptional)(),
|
|
140
|
+
(0, class_validator_1.IsString)(),
|
|
141
|
+
(0, class_transformer_1.Expose)(),
|
|
142
|
+
__metadata("design:type", String)
|
|
143
|
+
], 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
|
+
__decorate([
|
|
170
|
+
(0, class_validator_1.IsOptional)(),
|
|
171
|
+
(0, class_validator_1.IsString)(),
|
|
172
|
+
(0, class_transformer_1.Expose)(),
|
|
173
|
+
__metadata("design:type", String)
|
|
174
|
+
], CreateNavigatorCertificateSaleDto.prototype, "sendingEmailUtcDate", void 0);
|
|
80
175
|
__decorate([
|
|
81
176
|
(0, class_validator_1.IsOptional)(),
|
|
82
177
|
(0, class_validator_1.IsString)(),
|
|
@@ -96,7 +191,6 @@ __decorate([
|
|
|
96
191
|
__metadata("design:type", String)
|
|
97
192
|
], CreateNavigatorCertificateSaleDto.prototype, "deliveryComment", void 0);
|
|
98
193
|
__decorate([
|
|
99
|
-
(0, class_validator_1.IsOptional)(),
|
|
100
194
|
(0, class_validator_1.IsString)(),
|
|
101
195
|
(0, class_transformer_1.Expose)(),
|
|
102
196
|
__metadata("design:type", String)
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
|
-
import { ProfileCurrencyEnum } from '../profile/enum/profile-currency';
|
|
3
2
|
export declare class CreateNavigatorCertificateTemplateDto {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
image?: string;
|
|
7
|
-
images: string[];
|
|
3
|
+
order?: number;
|
|
4
|
+
image: string;
|
|
8
5
|
countries: CountriesEnum[];
|
|
9
|
-
nominals: number[];
|
|
10
|
-
expireDays: number;
|
|
11
|
-
deliveryPrice?: number;
|
|
12
|
-
currency?: ProfileCurrencyEnum;
|
|
13
|
-
premiumDeliveryPrice?: number;
|
|
14
|
-
packingPrice?: number;
|
|
15
6
|
}
|
|
@@ -12,78 +12,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateNavigatorCertificateTemplateDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
const profile_currency_1 = require("../profile/enum/profile-currency");
|
|
16
|
-
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
17
15
|
class CreateNavigatorCertificateTemplateDto {
|
|
18
16
|
}
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
21
|
-
(0, class_transformer_1.Expose)(),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], CreateNavigatorCertificateTemplateDto.prototype, "title", void 0);
|
|
24
17
|
__decorate([
|
|
25
18
|
(0, class_validator_1.IsOptional)(),
|
|
26
|
-
(0, class_validator_1.
|
|
19
|
+
(0, class_validator_1.IsNumber)(),
|
|
27
20
|
(0, class_transformer_1.Expose)(),
|
|
28
|
-
__metadata("design:type",
|
|
29
|
-
], CreateNavigatorCertificateTemplateDto.prototype, "
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], CreateNavigatorCertificateTemplateDto.prototype, "order", void 0);
|
|
30
23
|
__decorate([
|
|
31
|
-
(0, class_validator_1.IsOptional)(),
|
|
32
24
|
(0, class_validator_1.IsString)(),
|
|
33
25
|
(0, class_validator_1.IsUrl)(),
|
|
34
26
|
(0, class_transformer_1.Expose)(),
|
|
35
27
|
__metadata("design:type", String)
|
|
36
28
|
], CreateNavigatorCertificateTemplateDto.prototype, "image", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, class_validator_1.IsArray)(),
|
|
39
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
40
|
-
(0, class_validator_1.IsUrl)({}, { each: true }),
|
|
41
|
-
(0, class_transformer_1.Expose)(),
|
|
42
|
-
__metadata("design:type", Array)
|
|
43
|
-
], CreateNavigatorCertificateTemplateDto.prototype, "images", void 0);
|
|
44
29
|
__decorate([
|
|
45
30
|
(0, class_validator_1.IsArray)(),
|
|
46
31
|
(0, class_validator_1.ArrayMinSize)(1),
|
|
47
32
|
(0, class_transformer_1.Expose)(),
|
|
48
33
|
__metadata("design:type", Array)
|
|
49
34
|
], CreateNavigatorCertificateTemplateDto.prototype, "countries", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, class_validator_1.IsArray)(),
|
|
52
|
-
(0, class_validator_1.ArrayMinSize)(1),
|
|
53
|
-
(0, class_validator_1.IsPositive)({ each: true }),
|
|
54
|
-
(0, class_transformer_1.Expose)(),
|
|
55
|
-
__metadata("design:type", Array)
|
|
56
|
-
], CreateNavigatorCertificateTemplateDto.prototype, "nominals", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, class_validator_1.IsPositive)(),
|
|
59
|
-
(0, class_transformer_1.Expose)(),
|
|
60
|
-
__metadata("design:type", Number)
|
|
61
|
-
], CreateNavigatorCertificateTemplateDto.prototype, "expireDays", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, class_validator_1.IsOptional)(),
|
|
64
|
-
(0, class_transformer_1.Transform)(({ value }) => (+value ? +value : 0)),
|
|
65
|
-
(0, class_validator_1.IsNumber)(),
|
|
66
|
-
(0, class_transformer_1.Expose)(),
|
|
67
|
-
__metadata("design:type", Number)
|
|
68
|
-
], CreateNavigatorCertificateTemplateDto.prototype, "deliveryPrice", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, class_validator_1.IsOptional)(),
|
|
71
|
-
(0, class_validator_1.IsEnum)(profile_currency_1.ProfileCurrencyEnum),
|
|
72
|
-
(0, class_transformer_1.Expose)(),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], CreateNavigatorCertificateTemplateDto.prototype, "currency", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, class_validator_1.IsOptional)(),
|
|
77
|
-
(0, class_transformer_1.Transform)(({ value }) => (+value ? +value : 0)),
|
|
78
|
-
(0, class_validator_1.IsNumber)(),
|
|
79
|
-
(0, class_transformer_1.Expose)(),
|
|
80
|
-
__metadata("design:type", Number)
|
|
81
|
-
], CreateNavigatorCertificateTemplateDto.prototype, "premiumDeliveryPrice", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
(0, class_validator_1.IsOptional)(),
|
|
84
|
-
(0, class_transformer_1.Transform)(({ value }) => (+value ? +value : 0)),
|
|
85
|
-
(0, class_validator_1.IsNumber)(),
|
|
86
|
-
(0, class_transformer_1.Expose)(),
|
|
87
|
-
__metadata("design:type", Number)
|
|
88
|
-
], CreateNavigatorCertificateTemplateDto.prototype, "packingPrice", void 0);
|
|
89
35
|
exports.CreateNavigatorCertificateTemplateDto = CreateNavigatorCertificateTemplateDto;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NavigatorCertificateTypeEnum = void 0;
|
|
4
|
+
var NavigatorCertificateTypeEnum;
|
|
5
|
+
(function (NavigatorCertificateTypeEnum) {
|
|
6
|
+
NavigatorCertificateTypeEnum["ELECTRONIC"] = "electronic";
|
|
7
|
+
NavigatorCertificateTypeEnum["PHYSICAL"] = "physical";
|
|
8
|
+
})(NavigatorCertificateTypeEnum = exports.NavigatorCertificateTypeEnum || (exports.NavigatorCertificateTypeEnum = {}));
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from './navigator-certificate-template.ro';
|
|
2
|
+
export * from './navigator-certificate-templates.ro';
|
|
2
3
|
export * from './navigator-certificate-sale.ro';
|
|
3
4
|
export * from './create-navigator-certificate-template.dto';
|
|
4
5
|
export * from './update-navigator-certificate-template.dto';
|
|
5
6
|
export * from './create-navigator-certificate-sale.dto';
|
|
6
7
|
export * from './update-navigator-certificate-code.dto';
|
|
7
8
|
export * from './enum/navigator-delivery-tier.enum';
|
|
9
|
+
export * from './enum/navigator-certificate-type.enum';
|
|
@@ -15,9 +15,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./navigator-certificate-template.ro"), exports);
|
|
18
|
+
__exportStar(require("./navigator-certificate-templates.ro"), exports);
|
|
18
19
|
__exportStar(require("./navigator-certificate-sale.ro"), exports);
|
|
19
20
|
__exportStar(require("./create-navigator-certificate-template.dto"), exports);
|
|
20
21
|
__exportStar(require("./update-navigator-certificate-template.dto"), exports);
|
|
21
22
|
__exportStar(require("./create-navigator-certificate-sale.dto"), exports);
|
|
22
23
|
__exportStar(require("./update-navigator-certificate-code.dto"), exports);
|
|
23
24
|
__exportStar(require("./enum/navigator-delivery-tier.enum"), exports);
|
|
25
|
+
__exportStar(require("./enum/navigator-certificate-type.enum"), exports);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ClientRO } from '../client/client.ro';
|
|
2
1
|
import { ProfileRO } from '../profile/profile.ro';
|
|
3
2
|
import { RO } from '../shared/ro-class';
|
|
3
|
+
import { NavigatorCertificateTypeEnum } from './enum/navigator-certificate-type.enum';
|
|
4
4
|
import { NavigatorDeliveryTierEnum } from './enum/navigator-delivery-tier.enum';
|
|
5
5
|
export declare class NavigatorCertificateSaleRO extends RO {
|
|
6
|
+
type: NavigatorCertificateTypeEnum;
|
|
6
7
|
image: string;
|
|
7
8
|
nominal: number;
|
|
8
9
|
deliveryPrice: number;
|
|
@@ -12,8 +13,10 @@ export declare class NavigatorCertificateSaleRO extends RO {
|
|
|
12
13
|
paymentId: string;
|
|
13
14
|
code: string;
|
|
14
15
|
expireDate: string;
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
name: string;
|
|
17
|
+
surname: string;
|
|
18
|
+
email: string;
|
|
19
|
+
phone: string;
|
|
17
20
|
profileId: number;
|
|
18
21
|
profile: ProfileRO;
|
|
19
22
|
sended: boolean;
|
|
@@ -26,4 +29,10 @@ export declare class NavigatorCertificateSaleRO extends RO {
|
|
|
26
29
|
deliveryApart: string;
|
|
27
30
|
deliveryCity: string;
|
|
28
31
|
deliveryPostcode: string;
|
|
32
|
+
deliveryEmail: string;
|
|
33
|
+
deliveryMessage: string;
|
|
34
|
+
sendAfterPayment: boolean;
|
|
35
|
+
sendingDate: string;
|
|
36
|
+
sendingTime: string;
|
|
37
|
+
sendingEmailUtcDate: string;
|
|
29
38
|
}
|
|
@@ -11,12 +11,16 @@ 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 client_ro_1 = require("../client/client.ro");
|
|
15
14
|
const profile_ro_1 = require("../profile/profile.ro");
|
|
16
15
|
const ro_class_1 = require("../shared/ro-class");
|
|
16
|
+
const navigator_certificate_type_enum_1 = require("./enum/navigator-certificate-type.enum");
|
|
17
17
|
const navigator_delivery_tier_enum_1 = require("./enum/navigator-delivery-tier.enum");
|
|
18
18
|
class NavigatorCertificateSaleRO extends ro_class_1.RO {
|
|
19
19
|
}
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], NavigatorCertificateSaleRO.prototype, "type", void 0);
|
|
20
24
|
__decorate([
|
|
21
25
|
(0, class_transformer_1.Expose)(),
|
|
22
26
|
__metadata("design:type", String)
|
|
@@ -55,12 +59,20 @@ __decorate([
|
|
|
55
59
|
], NavigatorCertificateSaleRO.prototype, "expireDate", void 0);
|
|
56
60
|
__decorate([
|
|
57
61
|
(0, class_transformer_1.Expose)(),
|
|
58
|
-
__metadata("design:type",
|
|
59
|
-
], NavigatorCertificateSaleRO.prototype, "
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], NavigatorCertificateSaleRO.prototype, "name", void 0);
|
|
60
64
|
__decorate([
|
|
61
65
|
(0, class_transformer_1.Expose)(),
|
|
62
|
-
__metadata("design:type",
|
|
63
|
-
], NavigatorCertificateSaleRO.prototype, "
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], NavigatorCertificateSaleRO.prototype, "surname", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_transformer_1.Expose)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], NavigatorCertificateSaleRO.prototype, "email", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_transformer_1.Expose)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], NavigatorCertificateSaleRO.prototype, "phone", void 0);
|
|
64
76
|
__decorate([
|
|
65
77
|
(0, class_transformer_1.Expose)(),
|
|
66
78
|
__metadata("design:type", Number)
|
|
@@ -109,4 +121,28 @@ __decorate([
|
|
|
109
121
|
(0, class_transformer_1.Expose)(),
|
|
110
122
|
__metadata("design:type", String)
|
|
111
123
|
], NavigatorCertificateSaleRO.prototype, "deliveryPostcode", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, class_transformer_1.Expose)(),
|
|
126
|
+
__metadata("design:type", String)
|
|
127
|
+
], NavigatorCertificateSaleRO.prototype, "deliveryEmail", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, class_transformer_1.Expose)(),
|
|
130
|
+
__metadata("design:type", String)
|
|
131
|
+
], 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
|
+
__decorate([
|
|
145
|
+
(0, class_transformer_1.Expose)(),
|
|
146
|
+
__metadata("design:type", String)
|
|
147
|
+
], NavigatorCertificateSaleRO.prototype, "sendingEmailUtcDate", void 0);
|
|
112
148
|
exports.NavigatorCertificateSaleRO = NavigatorCertificateSaleRO;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
2
|
import { RO } from '../shared/ro-class';
|
|
3
3
|
export declare class NavigatorCertificateTemplateRO extends RO {
|
|
4
|
-
|
|
5
|
-
description?: string;
|
|
4
|
+
order: number;
|
|
6
5
|
image: string;
|
|
7
|
-
images: string[];
|
|
8
6
|
countries: CountriesEnum[];
|
|
9
|
-
nominals: number[];
|
|
10
|
-
expireDays: number;
|
|
11
|
-
deliveryPrice: number;
|
|
12
7
|
}
|