@escapenavigator/types 2.1.6 → 2.1.8
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-order/aggregator-order.ro.d.ts +16 -0
- package/dist/admin/aggregator-order/aggregator-order.ro.js +16 -0
- package/dist/admin/aggregator-order/create-aggregator-order.dto.d.ts +6 -0
- package/dist/admin/aggregator-order/create-aggregator-order.dto.js +6 -0
- package/dist/agregator/agregator-find-questroom-by-title.ro.js +4 -1
- package/dist/agregator/agregator-questroom-card.ro.d.ts +17 -0
- package/dist/agregator/agregator-questroom-card.ro.js +36 -2
- package/dist/agregator/agregator-questroom.ro.d.ts +2 -0
- package/dist/agregator/agregator-questroom.ro.js +14 -1
- package/dist/client/update-client-billing-defaults.dto.d.ts +5 -0
- package/dist/client/update-client-billing-defaults.dto.js +35 -0
- package/dist/constants/navigator-certificate-nominal-bounds.d.ts +8 -0
- package/dist/constants/navigator-certificate-nominal-bounds.js +45 -0
- package/dist/integrations/admin-integration.ro.d.ts +122 -0
- package/dist/integrations/admin-integration.ro.js +2 -0
- package/dist/integrations/booking-mode.enum.d.ts +24 -0
- package/dist/integrations/booking-mode.enum.js +28 -0
- package/dist/integrations/connect-integration.dto.d.ts +44 -0
- package/dist/integrations/connect-integration.dto.js +101 -0
- package/dist/integrations/connection-status.enum.d.ts +30 -0
- package/dist/integrations/connection-status.enum.js +34 -0
- package/dist/integrations/connector-capabilities.d.ts +85 -0
- package/dist/integrations/connector-capabilities.js +2 -0
- package/dist/integrations/credential-field.d.ts +80 -0
- package/dist/integrations/credential-field.js +2 -0
- package/dist/integrations/crm-integration-status.ro.d.ts +70 -0
- package/dist/integrations/crm-integration-status.ro.js +43 -0
- package/dist/integrations/incident-status.enum.d.ts +31 -0
- package/dist/integrations/incident-status.enum.js +36 -0
- package/dist/integrations/incident-type.enum.d.ts +30 -0
- package/dist/integrations/incident-type.enum.js +34 -0
- package/dist/integrations/integration-request-status.enum.d.ts +22 -0
- package/dist/integrations/integration-request-status.enum.js +26 -0
- package/dist/integrations/normalized-slot.d.ts +79 -0
- package/dist/integrations/normalized-slot.js +2 -0
- package/dist/integrations/partner-wire.d.ts +124 -0
- package/dist/integrations/partner-wire.js +26 -0
- package/dist/integrations/partners-booking-v1-schedule.dto.d.ts +11 -0
- package/dist/integrations/partners-booking-v1-schedule.dto.js +43 -0
- package/dist/integrations/partners-booking-v1.d.ts +124 -0
- package/dist/integrations/partners-booking-v1.js +2 -0
- package/dist/integrations/pending-booking-request.ro.d.ts +32 -0
- package/dist/integrations/pending-booking-request.ro.js +2 -0
- package/dist/integrations/provider-code.enum.d.ts +37 -0
- package/dist/integrations/provider-code.enum.js +41 -0
- package/dist/integrations/resource-match-status.enum.d.ts +25 -0
- package/dist/integrations/resource-match-status.enum.js +29 -0
- package/dist/integrations/run-operation.enum.d.ts +22 -0
- package/dist/integrations/run-operation.enum.js +26 -0
- package/dist/integrations/run-outcome.enum.d.ts +23 -0
- package/dist/integrations/run-outcome.enum.js +27 -0
- package/dist/navigator-certificate/create-navigator-certificate-sale.dto.d.ts +2 -2
- package/dist/navigator-certificate/create-navigator-certificate-sale.dto.js +4 -2
- package/dist/navigator-certificate/create-navigator-certificate-template.dto.d.ts +3 -2
- package/dist/navigator-certificate/create-navigator-certificate-template.dto.js +10 -2
- package/dist/navigator-certificate/enum/navigator-certificate-tag-nav-mode.enum.d.ts +5 -0
- package/dist/navigator-certificate/enum/navigator-certificate-tag-nav-mode.enum.js +9 -0
- package/dist/navigator-certificate/enum/navigator-certificate-tag-slug.enum.d.ts +23 -0
- package/dist/navigator-certificate/enum/navigator-certificate-tag-slug.enum.js +27 -0
- package/dist/navigator-certificate/index.d.ts +6 -0
- package/dist/navigator-certificate/index.js +6 -0
- package/dist/navigator-certificate/navigator-certificate-tag-catalog.d.ts +8 -0
- package/dist/navigator-certificate/navigator-certificate-tag-catalog.js +107 -0
- package/dist/navigator-certificate/navigator-certificate-tag-season.d.ts +8 -0
- package/dist/navigator-certificate/navigator-certificate-tag-season.js +86 -0
- package/dist/navigator-certificate/navigator-certificate-tag.ro.d.ts +8 -0
- package/dist/navigator-certificate/navigator-certificate-tag.ro.js +31 -0
- package/dist/navigator-certificate/navigator-certificate-template.ro.d.ts +3 -2
- package/dist/navigator-certificate/navigator-certificate-template.ro.js +5 -1
- package/dist/navigator-certificate/navigator-certificate-templates.ro.d.ts +16 -0
- package/dist/navigator-certificate/navigator-certificate-templates.ro.js +54 -1
- package/dist/navigator-certificate/update-navigator-certificate-tag.dto.d.ts +5 -0
- package/dist/navigator-certificate/update-navigator-certificate-tag.dto.js +30 -0
- package/dist/navigator-certificate/update-navigator-certificate-template.dto.d.ts +3 -2
- package/dist/navigator-certificate/update-navigator-certificate-template.dto.js +9 -2
- package/dist/openapi/external-booking/openapi-external-quote.dto.d.ts +22 -0
- package/dist/openapi/external-booking/openapi-external-quote.dto.js +43 -0
- package/dist/openapi/external-booking/openapi-external-quote.ro.d.ts +65 -0
- package/dist/openapi/external-booking/openapi-external-quote.ro.js +83 -0
- package/dist/openapi/morty/morty-timeslot.ro.js +13 -0
- package/dist/openapi/shared/openapi-questroom.ro.d.ts +1 -0
- package/dist/openapi/shared/openapi-questroom.ro.js +4 -0
- package/dist/openapi/slots/openapi-slot-add-hold.dto.d.ts +9 -0
- package/dist/openapi/slots/openapi-slot-add-hold.dto.js +6 -0
- package/dist/openapi/slots/openapi-slot-hold.ro.d.ts +50 -0
- package/dist/openapi/slots/openapi-slot-hold.ro.js +37 -0
- package/dist/openapi/slots/openapi-widget-slot.ro.d.ts +16 -1
- package/dist/openapi/slots/openapi-widget-slot.ro.js +11 -0
- package/dist/openapi/widget/bookeo/openapi-widget-bookeo-get-prices.dto.d.ts +9 -0
- package/dist/openapi/widget/bookeo/openapi-widget-bookeo-get-prices.dto.js +6 -0
- package/dist/openapi/widget/bookeo/openapi-widget-create-bookeo-order.dto.d.ts +19 -0
- package/dist/openapi/widget/bookeo/openapi-widget-create-bookeo-order.dto.js +18 -0
- package/dist/order/update-order.dto.d.ts +4 -0
- package/dist/order/update-order.dto.js +24 -0
- package/dist/parse-results/booking-provider-signatures.d.ts +35 -0
- package/dist/parse-results/booking-provider-signatures.js +93 -0
- package/dist/player/player-leaderboard.ro.d.ts +20 -0
- package/dist/player/player-leaderboard.ro.js +81 -0
- package/dist/player/player.ro.d.ts +30 -1
- package/dist/player/player.ro.js +85 -1
- package/dist/profile/admin-profile.ro.d.ts +3 -0
- package/dist/profile/admin-profile.ro.js +9 -0
- package/dist/profile/create-profile.dto.d.ts +1 -0
- package/dist/profile/create-profile.dto.js +6 -0
- package/dist/profile/enum/navigator-certificate-program.enum.d.ts +5 -0
- package/dist/profile/enum/navigator-certificate-program.enum.js +9 -0
- package/dist/profile/profile.ro.d.ts +2 -0
- package/dist/profile/profile.ro.js +5 -0
- package/dist/profile/query-admin-profile.dto.d.ts +2 -0
- package/dist/profile/query-admin-profile.dto.js +4 -0
- package/dist/questroom/agregator-questroom.ro.d.ts +1 -0
- package/dist/questroom/create-questroom-admin.dto.d.ts +1 -0
- package/dist/questroom/create-questroom-admin.dto.js +6 -0
- package/dist/questroom/create-questroom.dto.d.ts +4 -0
- package/dist/questroom/create-questroom.dto.js +6 -0
- package/dist/questroom/questroom.ro.d.ts +1 -0
- package/dist/questroom/questroom.ro.js +4 -0
- package/dist/questroom/questrooms-list-admin.ro.d.ts +2 -0
- package/dist/questroom/questrooms-list-admin.ro.js +8 -0
- package/dist/rating-badge/create-rating-badge.dto.d.ts +9 -0
- package/dist/{questroom/bind-bookeo.dto.js → rating-badge/create-rating-badge.dto.js} +8 -7
- package/dist/rating-badge/enum/rating-badge-status.enum.d.ts +6 -0
- package/dist/rating-badge/enum/rating-badge-status.enum.js +10 -0
- package/dist/rating-badge/ranking-overview.ro.d.ts +65 -0
- package/dist/rating-badge/ranking-overview.ro.js +249 -0
- package/dist/rating-badge/rating-badge-admin.ro.d.ts +7 -0
- package/dist/rating-badge/rating-badge-admin.ro.js +33 -0
- package/dist/rating-badge/rating-badge.ro.d.ts +12 -0
- package/dist/rating-badge/rating-badge.ro.js +50 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/questroom/bind-bookeo.dto.d.ts +0 -4
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IntegrationRunOperationEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Операция, которую коннектор выполнял. Журнал разделён по операциям, потому
|
|
6
|
+
* что здоровье подключения по ним разное и смешивать их нельзя: расписание
|
|
7
|
+
* может отдаваться исправно, пока брони не проходят вовсе, и наоборот. Именно
|
|
8
|
+
* это различие сейчас не видно — про недоехавшую бронь мы узнаём от квеста.
|
|
9
|
+
*/
|
|
10
|
+
var IntegrationRunOperationEnum;
|
|
11
|
+
(function (IntegrationRunOperationEnum) {
|
|
12
|
+
/** Проверка креденшелов при подключении и по расписанию. */
|
|
13
|
+
IntegrationRunOperationEnum["VERIFY"] = "verify";
|
|
14
|
+
/** Синк списка квестов/продуктов аккаунта. */
|
|
15
|
+
IntegrationRunOperationEnum["LIST_RESOURCES"] = "list_resources";
|
|
16
|
+
/** Запрос расписания за диапазон дат. */
|
|
17
|
+
IntegrationRunOperationEnum["SCHEDULE"] = "schedule";
|
|
18
|
+
/** Перепроверка одного слота перед бронью. */
|
|
19
|
+
IntegrationRunOperationEnum["CHECK_SLOT"] = "check_slot";
|
|
20
|
+
/** Удержание слота (режим `hold_then_confirm`). */
|
|
21
|
+
IntegrationRunOperationEnum["HOLD"] = "hold";
|
|
22
|
+
/** Создание брони. */
|
|
23
|
+
IntegrationRunOperationEnum["BOOKING"] = "booking";
|
|
24
|
+
/** Отмена брони. */
|
|
25
|
+
IntegrationRunOperationEnum["CANCEL"] = "cancel";
|
|
26
|
+
})(IntegrationRunOperationEnum || (exports.IntegrationRunOperationEnum = IntegrationRunOperationEnum = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Чем закончился вызов. Трёх значений мало было бы, но и двух («успех» и
|
|
3
|
+
* «ошибка») недостаточно: **штатный отказ вендора нельзя считать аварией.**
|
|
4
|
+
* «Слот только что заняли» — это `REJECTED`, и поддержку будить не надо;
|
|
5
|
+
* `FAILED` — это уже сбой, на него заводится инцидент. Без такого разделения
|
|
6
|
+
* мониторинг либо кричит на каждую занятую игру, либо молчит на настоящей
|
|
7
|
+
* поломке.
|
|
8
|
+
*/
|
|
9
|
+
export declare enum IntegrationRunOutcomeEnum {
|
|
10
|
+
OK = "ok",
|
|
11
|
+
/**
|
|
12
|
+
* Вендор ответил и осмысленно отказал: слот занят, дедлайн прошёл, группа
|
|
13
|
+
* не того размера. Ретраить бессмысленно.
|
|
14
|
+
*/
|
|
15
|
+
REJECTED = "rejected",
|
|
16
|
+
/** Сбой: сеть, таймаут, 5xx, невалидный ответ. Можно и нужно повторить. */
|
|
17
|
+
FAILED = "failed",
|
|
18
|
+
/**
|
|
19
|
+
* Вызов не делали: сработал circuit breaker. Отличать от сбоя важно, иначе
|
|
20
|
+
* открытый breaker сам себе портит статистику и не закрывается.
|
|
21
|
+
*/
|
|
22
|
+
SKIPPED = "skipped"
|
|
23
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IntegrationRunOutcomeEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Чем закончился вызов. Трёх значений мало было бы, но и двух («успех» и
|
|
6
|
+
* «ошибка») недостаточно: **штатный отказ вендора нельзя считать аварией.**
|
|
7
|
+
* «Слот только что заняли» — это `REJECTED`, и поддержку будить не надо;
|
|
8
|
+
* `FAILED` — это уже сбой, на него заводится инцидент. Без такого разделения
|
|
9
|
+
* мониторинг либо кричит на каждую занятую игру, либо молчит на настоящей
|
|
10
|
+
* поломке.
|
|
11
|
+
*/
|
|
12
|
+
var IntegrationRunOutcomeEnum;
|
|
13
|
+
(function (IntegrationRunOutcomeEnum) {
|
|
14
|
+
IntegrationRunOutcomeEnum["OK"] = "ok";
|
|
15
|
+
/**
|
|
16
|
+
* Вендор ответил и осмысленно отказал: слот занят, дедлайн прошёл, группа
|
|
17
|
+
* не того размера. Ретраить бессмысленно.
|
|
18
|
+
*/
|
|
19
|
+
IntegrationRunOutcomeEnum["REJECTED"] = "rejected";
|
|
20
|
+
/** Сбой: сеть, таймаут, 5xx, невалидный ответ. Можно и нужно повторить. */
|
|
21
|
+
IntegrationRunOutcomeEnum["FAILED"] = "failed";
|
|
22
|
+
/**
|
|
23
|
+
* Вызов не делали: сработал circuit breaker. Отличать от сбоя важно, иначе
|
|
24
|
+
* открытый breaker сам себе портит статистику и не закрывается.
|
|
25
|
+
*/
|
|
26
|
+
IntegrationRunOutcomeEnum["SKIPPED"] = "skipped";
|
|
27
|
+
})(IntegrationRunOutcomeEnum || (exports.IntegrationRunOutcomeEnum = IntegrationRunOutcomeEnum = {}));
|
|
@@ -8,9 +8,9 @@ export declare class CreateNavigatorCertificateSaleDto {
|
|
|
8
8
|
currency: ProfileCurrencyEnum;
|
|
9
9
|
deliveryPrice?: number;
|
|
10
10
|
name: string;
|
|
11
|
-
surname
|
|
11
|
+
surname?: string;
|
|
12
12
|
email: string;
|
|
13
|
-
phone
|
|
13
|
+
phone?: string;
|
|
14
14
|
deliveryAddress: string;
|
|
15
15
|
deliveryCity: string;
|
|
16
16
|
deliveryPostcode: string;
|
|
@@ -54,7 +54,8 @@ __decorate([
|
|
|
54
54
|
__metadata("design:type", String)
|
|
55
55
|
], CreateNavigatorCertificateSaleDto.prototype, "name", void 0);
|
|
56
56
|
__decorate([
|
|
57
|
-
(0,
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
(0, class_validator_1.IsString)(),
|
|
58
59
|
(0, class_transformer_1.Expose)(),
|
|
59
60
|
__metadata("design:type", String)
|
|
60
61
|
], CreateNavigatorCertificateSaleDto.prototype, "surname", void 0);
|
|
@@ -65,7 +66,8 @@ __decorate([
|
|
|
65
66
|
__metadata("design:type", String)
|
|
66
67
|
], CreateNavigatorCertificateSaleDto.prototype, "email", void 0);
|
|
67
68
|
__decorate([
|
|
68
|
-
(0,
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
(0, class_validator_1.IsString)(),
|
|
69
71
|
(0, class_transformer_1.Expose)(),
|
|
70
72
|
__metadata("design:type", String)
|
|
71
73
|
], CreateNavigatorCertificateSaleDto.prototype, "phone", void 0);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NavigatorCertificateTagSlugEnum } from './enum/navigator-certificate-tag-slug.enum';
|
|
2
2
|
export declare class CreateNavigatorCertificateTemplateDto {
|
|
3
3
|
order?: number;
|
|
4
4
|
image: string;
|
|
5
|
-
|
|
5
|
+
featured?: boolean;
|
|
6
|
+
tags?: NavigatorCertificateTagSlugEnum[];
|
|
6
7
|
}
|
|
@@ -12,6 +12,7 @@ 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 navigator_certificate_tag_slug_enum_1 = require("./enum/navigator-certificate-tag-slug.enum");
|
|
15
16
|
class CreateNavigatorCertificateTemplateDto {
|
|
16
17
|
}
|
|
17
18
|
exports.CreateNavigatorCertificateTemplateDto = CreateNavigatorCertificateTemplateDto;
|
|
@@ -28,8 +29,15 @@ __decorate([
|
|
|
28
29
|
__metadata("design:type", String)
|
|
29
30
|
], CreateNavigatorCertificateTemplateDto.prototype, "image", void 0);
|
|
30
31
|
__decorate([
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.IsBoolean)(),
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", Boolean)
|
|
36
|
+
], CreateNavigatorCertificateTemplateDto.prototype, "featured", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
39
|
(0, class_validator_1.IsArray)(),
|
|
32
|
-
(0, class_validator_1.
|
|
40
|
+
(0, class_validator_1.IsEnum)(navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum, { each: true }),
|
|
33
41
|
(0, class_transformer_1.Expose)(),
|
|
34
42
|
__metadata("design:type", Array)
|
|
35
|
-
], CreateNavigatorCertificateTemplateDto.prototype, "
|
|
43
|
+
], CreateNavigatorCertificateTemplateDto.prototype, "tags", void 0);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NavigatorCertificateTagNavModeEnum = void 0;
|
|
4
|
+
var NavigatorCertificateTagNavModeEnum;
|
|
5
|
+
(function (NavigatorCertificateTagNavModeEnum) {
|
|
6
|
+
NavigatorCertificateTagNavModeEnum["ALWAYS"] = "always";
|
|
7
|
+
NavigatorCertificateTagNavModeEnum["SEASONAL"] = "seasonal";
|
|
8
|
+
NavigatorCertificateTagNavModeEnum["NEVER"] = "never";
|
|
9
|
+
})(NavigatorCertificateTagNavModeEnum || (exports.NavigatorCertificateTagNavModeEnum = NavigatorCertificateTagNavModeEnum = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare enum NavigatorCertificateTagSlugEnum {
|
|
2
|
+
BIRTHDAY = "birthday",
|
|
3
|
+
CHRISTMAS = "christmas",
|
|
4
|
+
VALENTINES = "valentines",
|
|
5
|
+
WEDDING = "wedding",
|
|
6
|
+
HALLOWEEN = "halloween",
|
|
7
|
+
NEW_YEAR = "new_year",
|
|
8
|
+
EASTER = "easter",
|
|
9
|
+
WOMENS_DAY = "womens_day",
|
|
10
|
+
MOTHERS_DAY = "mothers_day",
|
|
11
|
+
FATHERS_DAY = "fathers_day",
|
|
12
|
+
ANNIVERSARY = "anniversary",
|
|
13
|
+
KIDS = "kids",
|
|
14
|
+
ADULTS = "adults",
|
|
15
|
+
FAMILY = "family",
|
|
16
|
+
LOVE = "love",
|
|
17
|
+
ANIMALS = "animals",
|
|
18
|
+
GENERAL = "general",
|
|
19
|
+
HORROR = "horror",
|
|
20
|
+
ADVENTURE = "adventure",
|
|
21
|
+
HUMOR = "humor"
|
|
22
|
+
}
|
|
23
|
+
export declare const NAVIGATOR_CERTIFICATE_TAG_SLUGS: NavigatorCertificateTagSlugEnum[];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NAVIGATOR_CERTIFICATE_TAG_SLUGS = exports.NavigatorCertificateTagSlugEnum = void 0;
|
|
4
|
+
var NavigatorCertificateTagSlugEnum;
|
|
5
|
+
(function (NavigatorCertificateTagSlugEnum) {
|
|
6
|
+
NavigatorCertificateTagSlugEnum["BIRTHDAY"] = "birthday";
|
|
7
|
+
NavigatorCertificateTagSlugEnum["CHRISTMAS"] = "christmas";
|
|
8
|
+
NavigatorCertificateTagSlugEnum["VALENTINES"] = "valentines";
|
|
9
|
+
NavigatorCertificateTagSlugEnum["WEDDING"] = "wedding";
|
|
10
|
+
NavigatorCertificateTagSlugEnum["HALLOWEEN"] = "halloween";
|
|
11
|
+
NavigatorCertificateTagSlugEnum["NEW_YEAR"] = "new_year";
|
|
12
|
+
NavigatorCertificateTagSlugEnum["EASTER"] = "easter";
|
|
13
|
+
NavigatorCertificateTagSlugEnum["WOMENS_DAY"] = "womens_day";
|
|
14
|
+
NavigatorCertificateTagSlugEnum["MOTHERS_DAY"] = "mothers_day";
|
|
15
|
+
NavigatorCertificateTagSlugEnum["FATHERS_DAY"] = "fathers_day";
|
|
16
|
+
NavigatorCertificateTagSlugEnum["ANNIVERSARY"] = "anniversary";
|
|
17
|
+
NavigatorCertificateTagSlugEnum["KIDS"] = "kids";
|
|
18
|
+
NavigatorCertificateTagSlugEnum["ADULTS"] = "adults";
|
|
19
|
+
NavigatorCertificateTagSlugEnum["FAMILY"] = "family";
|
|
20
|
+
NavigatorCertificateTagSlugEnum["LOVE"] = "love";
|
|
21
|
+
NavigatorCertificateTagSlugEnum["ANIMALS"] = "animals";
|
|
22
|
+
NavigatorCertificateTagSlugEnum["GENERAL"] = "general";
|
|
23
|
+
NavigatorCertificateTagSlugEnum["HORROR"] = "horror";
|
|
24
|
+
NavigatorCertificateTagSlugEnum["ADVENTURE"] = "adventure";
|
|
25
|
+
NavigatorCertificateTagSlugEnum["HUMOR"] = "humor";
|
|
26
|
+
})(NavigatorCertificateTagSlugEnum || (exports.NavigatorCertificateTagSlugEnum = NavigatorCertificateTagSlugEnum = {}));
|
|
27
|
+
exports.NAVIGATOR_CERTIFICATE_TAG_SLUGS = Object.values(NavigatorCertificateTagSlugEnum);
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
export * from './create-navigator-certificate-sale.dto';
|
|
2
2
|
export * from './create-navigator-certificate-template.dto';
|
|
3
3
|
export * from './enum/navigator-certificate-sale-status.enum';
|
|
4
|
+
export * from './enum/navigator-certificate-tag-nav-mode.enum';
|
|
5
|
+
export * from './enum/navigator-certificate-tag-slug.enum';
|
|
4
6
|
export * from './enum/navigator-certificate-type.enum';
|
|
5
7
|
export * from './navigator-certificate-sale.ro';
|
|
8
|
+
export * from './navigator-certificate-tag.ro';
|
|
9
|
+
export * from './navigator-certificate-tag-catalog';
|
|
10
|
+
export * from './navigator-certificate-tag-season';
|
|
6
11
|
export * from './navigator-certificate-template.ro';
|
|
7
12
|
export * from './navigator-certificate-templates.ro';
|
|
8
13
|
export * from './request-navigator-certificate-redeem.dto';
|
|
9
14
|
export * from './ship-navigator-certificate-sale.dto';
|
|
10
15
|
export * from './update-navigator-certificate-code.dto';
|
|
11
16
|
export * from './update-navigator-certificate-sale-status.dto';
|
|
17
|
+
export * from './update-navigator-certificate-tag.dto';
|
|
12
18
|
export * from './update-navigator-certificate-template.dto';
|
|
@@ -17,12 +17,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./create-navigator-certificate-sale.dto"), exports);
|
|
18
18
|
__exportStar(require("./create-navigator-certificate-template.dto"), exports);
|
|
19
19
|
__exportStar(require("./enum/navigator-certificate-sale-status.enum"), exports);
|
|
20
|
+
__exportStar(require("./enum/navigator-certificate-tag-nav-mode.enum"), exports);
|
|
21
|
+
__exportStar(require("./enum/navigator-certificate-tag-slug.enum"), exports);
|
|
20
22
|
__exportStar(require("./enum/navigator-certificate-type.enum"), exports);
|
|
21
23
|
__exportStar(require("./navigator-certificate-sale.ro"), exports);
|
|
24
|
+
__exportStar(require("./navigator-certificate-tag.ro"), exports);
|
|
25
|
+
__exportStar(require("./navigator-certificate-tag-catalog"), exports);
|
|
26
|
+
__exportStar(require("./navigator-certificate-tag-season"), exports);
|
|
22
27
|
__exportStar(require("./navigator-certificate-template.ro"), exports);
|
|
23
28
|
__exportStar(require("./navigator-certificate-templates.ro"), exports);
|
|
24
29
|
__exportStar(require("./request-navigator-certificate-redeem.dto"), exports);
|
|
25
30
|
__exportStar(require("./ship-navigator-certificate-sale.dto"), exports);
|
|
26
31
|
__exportStar(require("./update-navigator-certificate-code.dto"), exports);
|
|
27
32
|
__exportStar(require("./update-navigator-certificate-sale-status.dto"), exports);
|
|
33
|
+
__exportStar(require("./update-navigator-certificate-tag.dto"), exports);
|
|
28
34
|
__exportStar(require("./update-navigator-certificate-template.dto"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NavigatorCertificateTagNavModeEnum } from './enum/navigator-certificate-tag-nav-mode.enum';
|
|
2
|
+
import { NavigatorCertificateTagSlugEnum } from './enum/navigator-certificate-tag-slug.enum';
|
|
3
|
+
export type NavigatorCertificateTagCatalogItem = {
|
|
4
|
+
slug: NavigatorCertificateTagSlugEnum;
|
|
5
|
+
navMode: NavigatorCertificateTagNavModeEnum;
|
|
6
|
+
sortOrder: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const NAVIGATOR_CERTIFICATE_TAG_CATALOG: NavigatorCertificateTagCatalogItem[];
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NAVIGATOR_CERTIFICATE_TAG_CATALOG = void 0;
|
|
4
|
+
const navigator_certificate_tag_nav_mode_enum_1 = require("./enum/navigator-certificate-tag-nav-mode.enum");
|
|
5
|
+
const navigator_certificate_tag_slug_enum_1 = require("./enum/navigator-certificate-tag-slug.enum");
|
|
6
|
+
exports.NAVIGATOR_CERTIFICATE_TAG_CATALOG = [
|
|
7
|
+
{
|
|
8
|
+
slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.BIRTHDAY,
|
|
9
|
+
navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.ALWAYS,
|
|
10
|
+
sortOrder: 10,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.WEDDING,
|
|
14
|
+
navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.ALWAYS,
|
|
15
|
+
sortOrder: 20,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.KIDS,
|
|
19
|
+
navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.ALWAYS,
|
|
20
|
+
sortOrder: 30,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.ADULTS,
|
|
24
|
+
navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.ALWAYS,
|
|
25
|
+
sortOrder: 40,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.FAMILY,
|
|
29
|
+
navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.ALWAYS,
|
|
30
|
+
sortOrder: 50,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.LOVE,
|
|
34
|
+
navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.ALWAYS,
|
|
35
|
+
sortOrder: 60,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.ANIMALS,
|
|
39
|
+
navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.ALWAYS,
|
|
40
|
+
sortOrder: 70,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.HALLOWEEN,
|
|
44
|
+
navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.SEASONAL,
|
|
45
|
+
sortOrder: 80,
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.CHRISTMAS,
|
|
49
|
+
navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.SEASONAL,
|
|
50
|
+
sortOrder: 90,
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.NEW_YEAR,
|
|
54
|
+
navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.SEASONAL,
|
|
55
|
+
sortOrder: 100,
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.VALENTINES,
|
|
59
|
+
navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.SEASONAL,
|
|
60
|
+
sortOrder: 110,
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.EASTER,
|
|
64
|
+
navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.SEASONAL,
|
|
65
|
+
sortOrder: 120,
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.WOMENS_DAY,
|
|
69
|
+
navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.SEASONAL,
|
|
70
|
+
sortOrder: 130,
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.MOTHERS_DAY,
|
|
74
|
+
navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.SEASONAL,
|
|
75
|
+
sortOrder: 140,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.FATHERS_DAY,
|
|
79
|
+
navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.SEASONAL,
|
|
80
|
+
sortOrder: 150,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.GENERAL,
|
|
84
|
+
navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.NEVER,
|
|
85
|
+
sortOrder: 200,
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.ANNIVERSARY,
|
|
89
|
+
navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.NEVER,
|
|
90
|
+
sortOrder: 210,
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.HORROR,
|
|
94
|
+
navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.NEVER,
|
|
95
|
+
sortOrder: 220,
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.ADVENTURE,
|
|
99
|
+
navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.NEVER,
|
|
100
|
+
sortOrder: 230,
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.HUMOR,
|
|
104
|
+
navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.NEVER,
|
|
105
|
+
sortOrder: 240,
|
|
106
|
+
},
|
|
107
|
+
];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NavigatorCertificateTagNavModeEnum } from './enum/navigator-certificate-tag-nav-mode.enum';
|
|
2
|
+
import { NavigatorCertificateTagSlugEnum } from './enum/navigator-certificate-tag-slug.enum';
|
|
3
|
+
export declare const westernEasterUtc: (year: number) => Date;
|
|
4
|
+
export declare const isNavigatorCertificateTagInSeason: (slug: NavigatorCertificateTagSlugEnum | string, date?: Date) => boolean;
|
|
5
|
+
export declare const isNavigatorCertificateTagInNav: (tag: {
|
|
6
|
+
slug: string;
|
|
7
|
+
navMode: NavigatorCertificateTagNavModeEnum;
|
|
8
|
+
}, date?: Date) => boolean;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isNavigatorCertificateTagInNav = exports.isNavigatorCertificateTagInSeason = exports.westernEasterUtc = void 0;
|
|
4
|
+
const navigator_certificate_tag_nav_mode_enum_1 = require("./enum/navigator-certificate-tag-nav-mode.enum");
|
|
5
|
+
const navigator_certificate_tag_slug_enum_1 = require("./enum/navigator-certificate-tag-slug.enum");
|
|
6
|
+
const startOfUtcDay = (date) => Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());
|
|
7
|
+
const utcDate = (year, month, day) => Date.UTC(year, month - 1, day);
|
|
8
|
+
const inInclusiveUtcRange = (date, from, to) => {
|
|
9
|
+
const day = startOfUtcDay(date);
|
|
10
|
+
return day >= from && day <= to;
|
|
11
|
+
};
|
|
12
|
+
const inMonthDayWindow = (date, startMonth, startDay, endMonth, endDay) => {
|
|
13
|
+
const year = date.getUTCFullYear();
|
|
14
|
+
const start = utcDate(year, startMonth, startDay);
|
|
15
|
+
const end = utcDate(year, endMonth, endDay);
|
|
16
|
+
if (start <= end) {
|
|
17
|
+
return inInclusiveUtcRange(date, start, end);
|
|
18
|
+
}
|
|
19
|
+
return (inInclusiveUtcRange(date, start, utcDate(year, 12, 31)) ||
|
|
20
|
+
inInclusiveUtcRange(date, utcDate(year, 1, 1), end));
|
|
21
|
+
};
|
|
22
|
+
const westernEasterUtc = (year) => {
|
|
23
|
+
const a = year % 19;
|
|
24
|
+
const b = Math.floor(year / 100);
|
|
25
|
+
const c = year % 100;
|
|
26
|
+
const d = Math.floor(b / 4);
|
|
27
|
+
const e = b % 4;
|
|
28
|
+
const f = Math.floor((b + 8) / 25);
|
|
29
|
+
const g = Math.floor((b - f + 1) / 3);
|
|
30
|
+
const h = (19 * a + b - d - g + 15) % 30;
|
|
31
|
+
const i = Math.floor(c / 4);
|
|
32
|
+
const k = c % 4;
|
|
33
|
+
const l = (32 + 2 * e + 2 * i - h - k) % 7;
|
|
34
|
+
const m = Math.floor((a + 11 * h + 22 * l) / 451);
|
|
35
|
+
const month = Math.floor((h + l - 7 * m + 114) / 31);
|
|
36
|
+
const day = ((h + l - 7 * m + 114) % 31) + 1;
|
|
37
|
+
return new Date(Date.UTC(year, month - 1, day));
|
|
38
|
+
};
|
|
39
|
+
exports.westernEasterUtc = westernEasterUtc;
|
|
40
|
+
const nthWeekdayOfMonth = (year, month, weekday, nth) => {
|
|
41
|
+
const first = new Date(Date.UTC(year, month - 1, 1));
|
|
42
|
+
const shift = (weekday - first.getUTCDay() + 7) % 7;
|
|
43
|
+
const day = 1 + shift + (nth - 1) * 7;
|
|
44
|
+
return new Date(Date.UTC(year, month - 1, day));
|
|
45
|
+
};
|
|
46
|
+
const aroundUtcDate = (center, days, date) => {
|
|
47
|
+
const from = Date.UTC(center.getUTCFullYear(), center.getUTCMonth(), center.getUTCDate() - days);
|
|
48
|
+
const to = Date.UTC(center.getUTCFullYear(), center.getUTCMonth(), center.getUTCDate() + days);
|
|
49
|
+
return inInclusiveUtcRange(date, from, to);
|
|
50
|
+
};
|
|
51
|
+
const isNavigatorCertificateTagInSeason = (slug, date = new Date()) => {
|
|
52
|
+
const year = date.getUTCFullYear();
|
|
53
|
+
switch (slug) {
|
|
54
|
+
case navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.HALLOWEEN:
|
|
55
|
+
return inMonthDayWindow(date, 9, 15, 11, 5);
|
|
56
|
+
case navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.CHRISTMAS:
|
|
57
|
+
return inMonthDayWindow(date, 11, 15, 12, 26);
|
|
58
|
+
case navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.NEW_YEAR:
|
|
59
|
+
return inMonthDayWindow(date, 12, 20, 1, 10);
|
|
60
|
+
case navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.VALENTINES:
|
|
61
|
+
return inMonthDayWindow(date, 1, 20, 2, 15);
|
|
62
|
+
case navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.WOMENS_DAY:
|
|
63
|
+
return inMonthDayWindow(date, 2, 20, 3, 10);
|
|
64
|
+
case navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.EASTER: {
|
|
65
|
+
const easter = (0, exports.westernEasterUtc)(year);
|
|
66
|
+
return aroundUtcDate(easter, 21, date);
|
|
67
|
+
}
|
|
68
|
+
case navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.MOTHERS_DAY:
|
|
69
|
+
return aroundUtcDate(nthWeekdayOfMonth(year, 5, 0, 2), 14, date);
|
|
70
|
+
case navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.FATHERS_DAY: {
|
|
71
|
+
const ascension = new Date((0, exports.westernEasterUtc)(year).getTime() + 39 * 24 * 60 * 60 * 1000);
|
|
72
|
+
return aroundUtcDate(ascension, 14, date);
|
|
73
|
+
}
|
|
74
|
+
default:
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
exports.isNavigatorCertificateTagInSeason = isNavigatorCertificateTagInSeason;
|
|
79
|
+
const isNavigatorCertificateTagInNav = (tag, date = new Date()) => {
|
|
80
|
+
if (tag.navMode === navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.ALWAYS)
|
|
81
|
+
return true;
|
|
82
|
+
if (tag.navMode === navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.NEVER)
|
|
83
|
+
return false;
|
|
84
|
+
return (0, exports.isNavigatorCertificateTagInSeason)(tag.slug, date);
|
|
85
|
+
};
|
|
86
|
+
exports.isNavigatorCertificateTagInNav = isNavigatorCertificateTagInNav;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RO } from '../shared/ro-class';
|
|
2
|
+
import { NavigatorCertificateTagNavModeEnum } from './enum/navigator-certificate-tag-nav-mode.enum';
|
|
3
|
+
import { NavigatorCertificateTagSlugEnum } from './enum/navigator-certificate-tag-slug.enum';
|
|
4
|
+
export declare class NavigatorCertificateTagRO extends RO {
|
|
5
|
+
slug: NavigatorCertificateTagSlugEnum;
|
|
6
|
+
navMode: NavigatorCertificateTagNavModeEnum;
|
|
7
|
+
sortOrder: number;
|
|
8
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NavigatorCertificateTagRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const ro_class_1 = require("../shared/ro-class");
|
|
15
|
+
const navigator_certificate_tag_nav_mode_enum_1 = require("./enum/navigator-certificate-tag-nav-mode.enum");
|
|
16
|
+
const navigator_certificate_tag_slug_enum_1 = require("./enum/navigator-certificate-tag-slug.enum");
|
|
17
|
+
class NavigatorCertificateTagRO extends ro_class_1.RO {
|
|
18
|
+
}
|
|
19
|
+
exports.NavigatorCertificateTagRO = NavigatorCertificateTagRO;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], NavigatorCertificateTagRO.prototype, "slug", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], NavigatorCertificateTagRO.prototype, "navMode", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], NavigatorCertificateTagRO.prototype, "sortOrder", void 0);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
1
|
import { RO } from '../shared/ro-class';
|
|
2
|
+
import { NavigatorCertificateTagSlugEnum } from './enum/navigator-certificate-tag-slug.enum';
|
|
3
3
|
export declare class NavigatorCertificateTemplateRO extends RO {
|
|
4
4
|
order: number;
|
|
5
5
|
image: string;
|
|
6
|
-
|
|
6
|
+
featured: boolean;
|
|
7
|
+
tags: NavigatorCertificateTagSlugEnum[];
|
|
7
8
|
}
|
|
@@ -23,7 +23,11 @@ __decorate([
|
|
|
23
23
|
(0, class_transformer_1.Expose)(),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
25
|
], NavigatorCertificateTemplateRO.prototype, "image", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", Boolean)
|
|
29
|
+
], NavigatorCertificateTemplateRO.prototype, "featured", void 0);
|
|
26
30
|
__decorate([
|
|
27
31
|
(0, class_transformer_1.Expose)(),
|
|
28
32
|
__metadata("design:type", Array)
|
|
29
|
-
], NavigatorCertificateTemplateRO.prototype, "
|
|
33
|
+
], NavigatorCertificateTemplateRO.prototype, "tags", void 0);
|
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
import { ProfileCurrencyEnum } from '../profile/enum/profile-currency';
|
|
2
|
+
import { NavigatorCertificateTagSlugEnum } from './enum/navigator-certificate-tag-slug.enum';
|
|
3
|
+
export declare class OpenapiNavigatorCertificateDesignRO {
|
|
4
|
+
id: number;
|
|
5
|
+
image: string;
|
|
6
|
+
tags: NavigatorCertificateTagSlugEnum[];
|
|
7
|
+
featured: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare class OpenapiNavigatorCertificateNavTagRO {
|
|
10
|
+
slug: NavigatorCertificateTagSlugEnum;
|
|
11
|
+
order: number;
|
|
12
|
+
}
|
|
2
13
|
export declare class OpenapiNavigatorCertificateTemplatesRO {
|
|
3
14
|
currency: ProfileCurrencyEnum;
|
|
4
15
|
nominals: number[];
|
|
16
|
+
minNominal?: number;
|
|
17
|
+
maxNominal?: number;
|
|
18
|
+
step?: number;
|
|
5
19
|
deliveryPrice: number;
|
|
6
20
|
images: string[];
|
|
21
|
+
designs?: OpenapiNavigatorCertificateDesignRO[];
|
|
22
|
+
navTags?: OpenapiNavigatorCertificateNavTagRO[];
|
|
7
23
|
}
|
|
@@ -9,9 +9,40 @@ 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.OpenapiNavigatorCertificateTemplatesRO = void 0;
|
|
12
|
+
exports.OpenapiNavigatorCertificateTemplatesRO = exports.OpenapiNavigatorCertificateNavTagRO = exports.OpenapiNavigatorCertificateDesignRO = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const profile_currency_1 = require("../profile/enum/profile-currency");
|
|
15
|
+
const navigator_certificate_tag_slug_enum_1 = require("./enum/navigator-certificate-tag-slug.enum");
|
|
16
|
+
class OpenapiNavigatorCertificateDesignRO {
|
|
17
|
+
}
|
|
18
|
+
exports.OpenapiNavigatorCertificateDesignRO = OpenapiNavigatorCertificateDesignRO;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], OpenapiNavigatorCertificateDesignRO.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], OpenapiNavigatorCertificateDesignRO.prototype, "image", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", Array)
|
|
30
|
+
], OpenapiNavigatorCertificateDesignRO.prototype, "tags", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", Boolean)
|
|
34
|
+
], OpenapiNavigatorCertificateDesignRO.prototype, "featured", void 0);
|
|
35
|
+
class OpenapiNavigatorCertificateNavTagRO {
|
|
36
|
+
}
|
|
37
|
+
exports.OpenapiNavigatorCertificateNavTagRO = OpenapiNavigatorCertificateNavTagRO;
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], OpenapiNavigatorCertificateNavTagRO.prototype, "slug", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], OpenapiNavigatorCertificateNavTagRO.prototype, "order", void 0);
|
|
15
46
|
class OpenapiNavigatorCertificateTemplatesRO {
|
|
16
47
|
}
|
|
17
48
|
exports.OpenapiNavigatorCertificateTemplatesRO = OpenapiNavigatorCertificateTemplatesRO;
|
|
@@ -23,6 +54,18 @@ __decorate([
|
|
|
23
54
|
(0, class_transformer_1.Expose)(),
|
|
24
55
|
__metadata("design:type", Array)
|
|
25
56
|
], OpenapiNavigatorCertificateTemplatesRO.prototype, "nominals", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_transformer_1.Expose)(),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], OpenapiNavigatorCertificateTemplatesRO.prototype, "minNominal", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_transformer_1.Expose)(),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], OpenapiNavigatorCertificateTemplatesRO.prototype, "maxNominal", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_transformer_1.Expose)(),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], OpenapiNavigatorCertificateTemplatesRO.prototype, "step", void 0);
|
|
26
69
|
__decorate([
|
|
27
70
|
(0, class_transformer_1.Expose)(),
|
|
28
71
|
__metadata("design:type", Number)
|
|
@@ -31,3 +74,13 @@ __decorate([
|
|
|
31
74
|
(0, class_transformer_1.Expose)(),
|
|
32
75
|
__metadata("design:type", Array)
|
|
33
76
|
], OpenapiNavigatorCertificateTemplatesRO.prototype, "images", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_transformer_1.Expose)(),
|
|
79
|
+
(0, class_transformer_1.Type)(() => OpenapiNavigatorCertificateDesignRO),
|
|
80
|
+
__metadata("design:type", Array)
|
|
81
|
+
], OpenapiNavigatorCertificateTemplatesRO.prototype, "designs", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_transformer_1.Expose)(),
|
|
84
|
+
(0, class_transformer_1.Type)(() => OpenapiNavigatorCertificateNavTagRO),
|
|
85
|
+
__metadata("design:type", Array)
|
|
86
|
+
], OpenapiNavigatorCertificateTemplatesRO.prototype, "navTags", void 0);
|