@escapenavigator/types 2.1.6 → 2.1.7
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 +16 -0
- package/dist/agregator/agregator-questroom-card.ro.js +30 -2
- package/dist/agregator/agregator-questroom.ro.d.ts +1 -0
- package/dist/agregator/agregator-questroom.ro.js +8 -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 +47 -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 +27 -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 +1 -0
- package/dist/profile/admin-profile.ro.js +4 -0
- package/dist/profile/create-profile.dto.d.ts +1 -0
- package/dist/profile/create-profile.dto.js +6 -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 +45 -0
- package/dist/rating-badge/ranking-overview.ro.js +172 -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
|
@@ -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-catalog';
|
|
9
|
+
export * from './navigator-certificate-tag-season';
|
|
10
|
+
export * from './navigator-certificate-tag.ro';
|
|
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-catalog"), exports);
|
|
25
|
+
__exportStar(require("./navigator-certificate-tag-season"), exports);
|
|
26
|
+
__exportStar(require("./navigator-certificate-tag.ro"), 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,27 @@
|
|
|
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
|
+
{ slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.BIRTHDAY, navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.ALWAYS, sortOrder: 10 },
|
|
8
|
+
{ slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.WEDDING, navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.ALWAYS, sortOrder: 20 },
|
|
9
|
+
{ slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.KIDS, navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.ALWAYS, sortOrder: 30 },
|
|
10
|
+
{ slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.ADULTS, navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.ALWAYS, sortOrder: 40 },
|
|
11
|
+
{ slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.FAMILY, navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.ALWAYS, sortOrder: 50 },
|
|
12
|
+
{ slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.LOVE, navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.ALWAYS, sortOrder: 60 },
|
|
13
|
+
{ slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.ANIMALS, navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.ALWAYS, sortOrder: 70 },
|
|
14
|
+
{ slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.HALLOWEEN, navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.SEASONAL, sortOrder: 80 },
|
|
15
|
+
{ slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.CHRISTMAS, navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.SEASONAL, sortOrder: 90 },
|
|
16
|
+
{ slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.NEW_YEAR, navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.SEASONAL, sortOrder: 100 },
|
|
17
|
+
{ slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.VALENTINES, navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.SEASONAL, sortOrder: 110 },
|
|
18
|
+
{ slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.EASTER, navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.SEASONAL, sortOrder: 120 },
|
|
19
|
+
{ slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.WOMENS_DAY, navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.SEASONAL, sortOrder: 130 },
|
|
20
|
+
{ slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.MOTHERS_DAY, navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.SEASONAL, sortOrder: 140 },
|
|
21
|
+
{ slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.FATHERS_DAY, navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.SEASONAL, sortOrder: 150 },
|
|
22
|
+
{ slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.GENERAL, navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.NEVER, sortOrder: 200 },
|
|
23
|
+
{ slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.ANNIVERSARY, navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.NEVER, sortOrder: 210 },
|
|
24
|
+
{ slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.HORROR, navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.NEVER, sortOrder: 220 },
|
|
25
|
+
{ slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.ADVENTURE, navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.NEVER, sortOrder: 230 },
|
|
26
|
+
{ slug: navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum.HUMOR, navMode: navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum.NEVER, sortOrder: 240 },
|
|
27
|
+
];
|
|
@@ -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);
|
|
@@ -0,0 +1,30 @@
|
|
|
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.UpdateNavigatorCertificateTagDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const navigator_certificate_tag_nav_mode_enum_1 = require("./enum/navigator-certificate-tag-nav-mode.enum");
|
|
16
|
+
class UpdateNavigatorCertificateTagDto {
|
|
17
|
+
}
|
|
18
|
+
exports.UpdateNavigatorCertificateTagDto = UpdateNavigatorCertificateTagDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
|
+
(0, class_validator_1.IsEnum)(navigator_certificate_tag_nav_mode_enum_1.NavigatorCertificateTagNavModeEnum),
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], UpdateNavigatorCertificateTagDto.prototype, "navMode", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
(0, class_validator_1.IsNumber)(),
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], UpdateNavigatorCertificateTagDto.prototype, "sortOrder", void 0);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NavigatorCertificateTagSlugEnum } from './enum/navigator-certificate-tag-slug.enum';
|
|
2
2
|
export declare class UpdateNavigatorCertificateTemplateDto {
|
|
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.UpdateNavigatorCertificateTemplateDto = 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 UpdateNavigatorCertificateTemplateDto {
|
|
16
17
|
}
|
|
17
18
|
exports.UpdateNavigatorCertificateTemplateDto = UpdateNavigatorCertificateTemplateDto;
|
|
@@ -28,10 +29,16 @@ __decorate([
|
|
|
28
29
|
(0, class_transformer_1.Expose)(),
|
|
29
30
|
__metadata("design:type", String)
|
|
30
31
|
], UpdateNavigatorCertificateTemplateDto.prototype, "image", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsBoolean)(),
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", Boolean)
|
|
37
|
+
], UpdateNavigatorCertificateTemplateDto.prototype, "featured", void 0);
|
|
31
38
|
__decorate([
|
|
32
39
|
(0, class_validator_1.IsOptional)(),
|
|
33
40
|
(0, class_validator_1.IsArray)(),
|
|
34
|
-
(0, class_validator_1.
|
|
41
|
+
(0, class_validator_1.IsEnum)(navigator_certificate_tag_slug_enum_1.NavigatorCertificateTagSlugEnum, { each: true }),
|
|
35
42
|
(0, class_transformer_1.Expose)(),
|
|
36
43
|
__metadata("design:type", Array)
|
|
37
|
-
], UpdateNavigatorCertificateTemplateDto.prototype, "
|
|
44
|
+
], UpdateNavigatorCertificateTemplateDto.prototype, "tags", void 0);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Запрос уточнения слота внешней системы перед записью.
|
|
3
|
+
*
|
|
4
|
+
* Одна ручка на всех провайдеров: что именно она спросит у чужой системы — цену,
|
|
5
|
+
* доступность или настоящее удержание — решают возможности коннектора, а не
|
|
6
|
+
* вызывающий. Виджету это знать не нужно и вредно: иначе каждая новая интеграция
|
|
7
|
+
* требовала бы правки виджета, а бандл виджета живёт в открытых вкладках сутками
|
|
8
|
+
* после деплоя.
|
|
9
|
+
*/
|
|
10
|
+
export declare class OpenapiExternalQuoteDto {
|
|
11
|
+
questroomId: number;
|
|
12
|
+
/** Идентификатор слота в системе вендора — тот же, что пришёл в расписании. */
|
|
13
|
+
eventId: string;
|
|
14
|
+
/**
|
|
15
|
+
* Размер группы, если игрок его уже выбрал.
|
|
16
|
+
*
|
|
17
|
+
* Нужен только системам, которые считают сумму под конкретный состав и держат
|
|
18
|
+
* место под него же (Bookeo). Остальным он не требуется: они отдают цены на все
|
|
19
|
+
* допустимые размеры группы сразу, и игрок выбирает после.
|
|
20
|
+
*/
|
|
21
|
+
players?: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.OpenapiExternalQuoteDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const is_not_blank_1 = require("../../shared/is-not-blank");
|
|
16
|
+
/**
|
|
17
|
+
* Запрос уточнения слота внешней системы перед записью.
|
|
18
|
+
*
|
|
19
|
+
* Одна ручка на всех провайдеров: что именно она спросит у чужой системы — цену,
|
|
20
|
+
* доступность или настоящее удержание — решают возможности коннектора, а не
|
|
21
|
+
* вызывающий. Виджету это знать не нужно и вредно: иначе каждая новая интеграция
|
|
22
|
+
* требовала бы правки виджета, а бандл виджета живёт в открытых вкладках сутками
|
|
23
|
+
* после деплоя.
|
|
24
|
+
*/
|
|
25
|
+
class OpenapiExternalQuoteDto {
|
|
26
|
+
}
|
|
27
|
+
exports.OpenapiExternalQuoteDto = OpenapiExternalQuoteDto;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsPositive)(),
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], OpenapiExternalQuoteDto.prototype, "questroomId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], OpenapiExternalQuoteDto.prototype, "eventId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsPositive)(),
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], OpenapiExternalQuoteDto.prototype, "players", void 0);
|