@escapenavigator/types 2.1.7 → 2.1.9
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 +6 -0
- package/dist/agregator/agregator-questroom.ro.d.ts +1 -0
- package/dist/agregator/agregator-questroom.ro.js +6 -0
- package/dist/constants/navigator-certificate-nominal-bounds.js +2 -4
- package/dist/constants/navigator-certificate-redeem.d.ts +9 -0
- package/dist/constants/navigator-certificate-redeem.js +15 -0
- package/dist/constants/navigator-site.d.ts +4 -0
- package/dist/constants/navigator-site.js +12 -0
- package/dist/integrations/admin-integration.ro.d.ts +1 -1
- package/dist/navigator-certificate/index.d.ts +1 -1
- package/dist/navigator-certificate/index.js +1 -1
- package/dist/navigator-certificate/navigator-certificate-tag-catalog.js +100 -20
- package/dist/navigator-certificate/request-navigator-certificate-redeem.dto.d.ts +2 -1
- package/dist/navigator-certificate/request-navigator-certificate-redeem.dto.js +1 -0
- package/dist/profile/admin-profile.ro.d.ts +2 -0
- package/dist/profile/admin-profile.ro.js +5 -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/rating-badge/ranking-overview.ro.d.ts +20 -0
- package/dist/rating-badge/ranking-overview.ro.js +78 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -13,6 +13,7 @@ exports.AgregatorQuestroomCardRO = exports.AgregatorQuestroomLocation = exports.
|
|
|
13
13
|
/* eslint-disable max-classes-per-file */
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const currency_by_country_1 = require("../constants/currency-by-country");
|
|
16
|
+
const navigator_certificate_program_enum_1 = require("../profile/enum/navigator-certificate-program.enum");
|
|
16
17
|
const partner_program_enum_1 = require("../profile/enum/partner-program.enum");
|
|
17
18
|
const profile_currency_1 = require("../profile/enum/profile-currency");
|
|
18
19
|
const profile_step_enum_1 = require("../profile/enum/profile-step.enum");
|
|
@@ -197,6 +198,11 @@ __decorate([
|
|
|
197
198
|
}),
|
|
198
199
|
__metadata("design:type", Boolean)
|
|
199
200
|
], AgregatorQuestroomCardRO.prototype, "hasSchedule", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
(0, class_transformer_1.Expose)(),
|
|
203
|
+
(0, class_transformer_1.Transform)(({ obj }) => { var _a; return ((_a = obj.profile) === null || _a === void 0 ? void 0 : _a.navigatorCertificateProgram) === navigator_certificate_program_enum_1.NavigatorCertificateProgramEnum.ACTIVE; }),
|
|
204
|
+
__metadata("design:type", Boolean)
|
|
205
|
+
], AgregatorQuestroomCardRO.prototype, "acceptsNavigatorCertificates", void 0);
|
|
200
206
|
__decorate([
|
|
201
207
|
(0, class_transformer_1.Expose)(),
|
|
202
208
|
(0, class_transformer_1.Transform)(({ obj }) => { var _a; return ((_a = obj.questroomAwards) === null || _a === void 0 ? void 0 : _a.length) || 0; }),
|
|
@@ -13,6 +13,7 @@ exports.AgregatorQuestroomRO = exports.AgregatorProfile = exports.getRightLocale
|
|
|
13
13
|
/* eslint-disable max-classes-per-file */
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const currency_by_country_1 = require("../constants/currency-by-country");
|
|
16
|
+
const navigator_certificate_program_enum_1 = require("../profile/enum/navigator-certificate-program.enum");
|
|
16
17
|
const partner_program_enum_1 = require("../profile/enum/partner-program.enum");
|
|
17
18
|
const profile_currency_1 = require("../profile/enum/profile-currency");
|
|
18
19
|
const profile_step_enum_1 = require("../profile/enum/profile-step.enum");
|
|
@@ -232,6 +233,11 @@ __decorate([
|
|
|
232
233
|
(0, class_transformer_1.Type)(() => AgregatorProfile),
|
|
233
234
|
__metadata("design:type", AgregatorProfile)
|
|
234
235
|
], AgregatorQuestroomRO.prototype, "profile", void 0);
|
|
236
|
+
__decorate([
|
|
237
|
+
(0, class_transformer_1.Expose)(),
|
|
238
|
+
(0, class_transformer_1.Transform)(({ obj }) => { var _a; return ((_a = obj.profile) === null || _a === void 0 ? void 0 : _a.navigatorCertificateProgram) === navigator_certificate_program_enum_1.NavigatorCertificateProgramEnum.ACTIVE; }),
|
|
239
|
+
__metadata("design:type", Boolean)
|
|
240
|
+
], AgregatorQuestroomRO.prototype, "acceptsNavigatorCertificates", void 0);
|
|
235
241
|
__decorate([
|
|
236
242
|
(0, class_transformer_1.Expose)(),
|
|
237
243
|
(0, class_transformer_1.Type)(() => AwardRO),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isNavigatorCertificateNominalAllowed = exports.getNavigatorCertificateNominalBounds = void 0;
|
|
4
|
+
const profile_currency_1 = require("../profile/enum/profile-currency");
|
|
4
5
|
const currency_by_country_1 = require("./currency-by-country");
|
|
5
6
|
const navigator_certificate_nominals_by_country_1 = require("./navigator-certificate-nominals-by-country");
|
|
6
|
-
const profile_currency_1 = require("../profile/enum/profile-currency");
|
|
7
7
|
const TEN_TO_FIVE_HUNDRED_CENTS = {
|
|
8
8
|
minNominal: 1000,
|
|
9
9
|
maxNominal: 50000,
|
|
@@ -40,8 +40,6 @@ const isNavigatorCertificateNominalAllowed = (country, nominal) => {
|
|
|
40
40
|
const bounds = (0, exports.getNavigatorCertificateNominalBounds)(country);
|
|
41
41
|
if (!bounds || !Number.isInteger(nominal))
|
|
42
42
|
return false;
|
|
43
|
-
return (nominal >= bounds.minNominal &&
|
|
44
|
-
nominal <= bounds.maxNominal &&
|
|
45
|
-
nominal % bounds.step === 0);
|
|
43
|
+
return (nominal >= bounds.minNominal && nominal <= bounds.maxNominal && nominal % bounds.step === 0);
|
|
46
44
|
};
|
|
47
45
|
exports.isNavigatorCertificateNominalAllowed = isNavigatorCertificateNominalAllowed;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** International (Stripe) platform fee when a questroom redeems a Navigator certificate. */
|
|
2
|
+
export declare const NAVIGATOR_CERTIFICATE_REDEEM_FEE_RATE_INTL = 0.08;
|
|
3
|
+
/** RU payout goes to CRM balance; platform fee is 20%. */
|
|
4
|
+
export declare const NAVIGATOR_CERTIFICATE_REDEEM_FEE_RATE_RU = 0.2;
|
|
5
|
+
export declare const navigatorCertificateRedeemFeeRate: (ru: boolean) => number;
|
|
6
|
+
export declare const navigatorCertificateRedeemPayout: (usedAmount: number, feeRate: number) => {
|
|
7
|
+
amountToPay: number;
|
|
8
|
+
commission: number;
|
|
9
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.navigatorCertificateRedeemPayout = exports.navigatorCertificateRedeemFeeRate = exports.NAVIGATOR_CERTIFICATE_REDEEM_FEE_RATE_RU = exports.NAVIGATOR_CERTIFICATE_REDEEM_FEE_RATE_INTL = void 0;
|
|
4
|
+
/** International (Stripe) platform fee when a questroom redeems a Navigator certificate. */
|
|
5
|
+
exports.NAVIGATOR_CERTIFICATE_REDEEM_FEE_RATE_INTL = 0.08;
|
|
6
|
+
/** RU payout goes to CRM balance; platform fee is 20%. */
|
|
7
|
+
exports.NAVIGATOR_CERTIFICATE_REDEEM_FEE_RATE_RU = 0.2;
|
|
8
|
+
const navigatorCertificateRedeemFeeRate = (ru) => ru ? exports.NAVIGATOR_CERTIFICATE_REDEEM_FEE_RATE_RU : exports.NAVIGATOR_CERTIFICATE_REDEEM_FEE_RATE_INTL;
|
|
9
|
+
exports.navigatorCertificateRedeemFeeRate = navigatorCertificateRedeemFeeRate;
|
|
10
|
+
const navigatorCertificateRedeemPayout = (usedAmount, feeRate) => {
|
|
11
|
+
const amountToPay = Math.round(usedAmount * (1 - feeRate));
|
|
12
|
+
const commission = usedAmount - amountToPay;
|
|
13
|
+
return { amountToPay, commission };
|
|
14
|
+
};
|
|
15
|
+
exports.navigatorCertificateRedeemPayout = navigatorCertificateRedeemPayout;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
|
+
export declare const navigatorSiteHost: (country?: CountriesEnum | null) => string;
|
|
3
|
+
export declare const navigatorSiteUrl: (country?: CountriesEnum | null) => string;
|
|
4
|
+
export declare const navigatorInfoEmail: (country?: CountriesEnum | null) => string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.navigatorInfoEmail = exports.navigatorSiteUrl = exports.navigatorSiteHost = void 0;
|
|
4
|
+
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
5
|
+
const namespaces_enum_1 = require("../shared/enum/namespaces.enum");
|
|
6
|
+
const namespace_by_country_1 = require("./namespace-by-country");
|
|
7
|
+
const navigatorSiteHost = (country) => `escapenavigator.${namespace_by_country_1.namespaceByCountry[country || countries_enum_1.CountriesEnum.USA] || namespaces_enum_1.NamespacesEnum.USA}`;
|
|
8
|
+
exports.navigatorSiteHost = navigatorSiteHost;
|
|
9
|
+
const navigatorSiteUrl = (country) => `https://${(0, exports.navigatorSiteHost)(country)}`;
|
|
10
|
+
exports.navigatorSiteUrl = navigatorSiteUrl;
|
|
11
|
+
const navigatorInfoEmail = (country) => country === countries_enum_1.CountriesEnum.RUSSIA ? 'info@escapenavigator.ru' : 'info@escapenavigator.com';
|
|
12
|
+
exports.navigatorInfoEmail = navigatorInfoEmail;
|
|
@@ -2,8 +2,8 @@ import { IntegrationBookingModeEnum } from './booking-mode.enum';
|
|
|
2
2
|
import { IntegrationConnectionStatusEnum } from './connection-status.enum';
|
|
3
3
|
import { IntegrationIncidentSeverityEnum } from './incident-status.enum';
|
|
4
4
|
import { IntegrationIncidentTypeEnum } from './incident-type.enum';
|
|
5
|
-
import { IntegrationProviderCodeEnum } from './provider-code.enum';
|
|
6
5
|
import { IntegrationRequestStatusEnum } from './integration-request-status.enum';
|
|
6
|
+
import { IntegrationProviderCodeEnum } from './provider-code.enum';
|
|
7
7
|
import { IntegrationRunOperationEnum } from './run-operation.enum';
|
|
8
8
|
import { IntegrationRunOutcomeEnum } from './run-outcome.enum';
|
|
9
9
|
/**
|
|
@@ -5,9 +5,9 @@ export * from './enum/navigator-certificate-tag-nav-mode.enum';
|
|
|
5
5
|
export * from './enum/navigator-certificate-tag-slug.enum';
|
|
6
6
|
export * from './enum/navigator-certificate-type.enum';
|
|
7
7
|
export * from './navigator-certificate-sale.ro';
|
|
8
|
+
export * from './navigator-certificate-tag.ro';
|
|
8
9
|
export * from './navigator-certificate-tag-catalog';
|
|
9
10
|
export * from './navigator-certificate-tag-season';
|
|
10
|
-
export * from './navigator-certificate-tag.ro';
|
|
11
11
|
export * from './navigator-certificate-template.ro';
|
|
12
12
|
export * from './navigator-certificate-templates.ro';
|
|
13
13
|
export * from './request-navigator-certificate-redeem.dto';
|
|
@@ -21,9 +21,9 @@ __exportStar(require("./enum/navigator-certificate-tag-nav-mode.enum"), exports)
|
|
|
21
21
|
__exportStar(require("./enum/navigator-certificate-tag-slug.enum"), exports);
|
|
22
22
|
__exportStar(require("./enum/navigator-certificate-type.enum"), exports);
|
|
23
23
|
__exportStar(require("./navigator-certificate-sale.ro"), exports);
|
|
24
|
+
__exportStar(require("./navigator-certificate-tag.ro"), exports);
|
|
24
25
|
__exportStar(require("./navigator-certificate-tag-catalog"), exports);
|
|
25
26
|
__exportStar(require("./navigator-certificate-tag-season"), exports);
|
|
26
|
-
__exportStar(require("./navigator-certificate-tag.ro"), exports);
|
|
27
27
|
__exportStar(require("./navigator-certificate-template.ro"), exports);
|
|
28
28
|
__exportStar(require("./navigator-certificate-templates.ro"), exports);
|
|
29
29
|
__exportStar(require("./request-navigator-certificate-redeem.dto"), exports);
|
|
@@ -4,24 +4,104 @@ exports.NAVIGATOR_CERTIFICATE_TAG_CATALOG = void 0;
|
|
|
4
4
|
const navigator_certificate_tag_nav_mode_enum_1 = require("./enum/navigator-certificate-tag-nav-mode.enum");
|
|
5
5
|
const navigator_certificate_tag_slug_enum_1 = require("./enum/navigator-certificate-tag-slug.enum");
|
|
6
6
|
exports.NAVIGATOR_CERTIFICATE_TAG_CATALOG = [
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
{
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
+
},
|
|
27
107
|
];
|
|
@@ -32,6 +32,7 @@ __decorate([
|
|
|
32
32
|
__metadata("design:type", Number)
|
|
33
33
|
], RequestNavigatorCertificateRedeemDto.prototype, "usedAmount", void 0);
|
|
34
34
|
__decorate([
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
36
|
(0, class_transformer_1.Type)(() => Number),
|
|
36
37
|
(0, class_validator_1.IsInt)(),
|
|
37
38
|
(0, class_validator_1.Min)(1),
|
|
@@ -2,6 +2,7 @@ import { GooglePlacesStatusEnum } from '../google-places/google-places-status.en
|
|
|
2
2
|
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
3
3
|
import { ProfileActionRO } from './action/profile-action.ro';
|
|
4
4
|
import { CrmVerificationEnum } from './enum/crm-verifiaction.enum';
|
|
5
|
+
import { NavigatorCertificateProgramEnum } from './enum/navigator-certificate-program.enum';
|
|
5
6
|
import { PartnerProgramEnum } from './enum/partner-program.enum';
|
|
6
7
|
import { ProfileIntegrationTypeEnum } from './enum/profile-integration-type.enum';
|
|
7
8
|
import { ProfileLostReasonEnum } from './enum/profile-lost-reason.enum';
|
|
@@ -33,6 +34,7 @@ export declare class AdminProfileRO {
|
|
|
33
34
|
lostReason: ProfileLostReasonEnum;
|
|
34
35
|
commissions?: ProfileCommissionRO;
|
|
35
36
|
partnerProgram: PartnerProgramEnum;
|
|
37
|
+
navigatorCertificateProgram: NavigatorCertificateProgramEnum;
|
|
36
38
|
lastEmailSendId: string;
|
|
37
39
|
subscriptionStatus: ProfileSubscriptionEnum;
|
|
38
40
|
crmVerification: CrmVerificationEnum;
|
|
@@ -16,6 +16,7 @@ const google_places_status_enum_1 = require("../google-places/google-places-stat
|
|
|
16
16
|
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
17
17
|
const profile_action_ro_1 = require("./action/profile-action.ro");
|
|
18
18
|
const crm_verifiaction_enum_1 = require("./enum/crm-verifiaction.enum");
|
|
19
|
+
const navigator_certificate_program_enum_1 = require("./enum/navigator-certificate-program.enum");
|
|
19
20
|
const partner_program_enum_1 = require("./enum/partner-program.enum");
|
|
20
21
|
const profile_integration_type_enum_1 = require("./enum/profile-integration-type.enum");
|
|
21
22
|
const profile_lost_reason_enum_1 = require("./enum/profile-lost-reason.enum");
|
|
@@ -96,6 +97,10 @@ __decorate([
|
|
|
96
97
|
(0, class_transformer_1.Expose)(),
|
|
97
98
|
__metadata("design:type", String)
|
|
98
99
|
], AdminProfileRO.prototype, "partnerProgram", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, class_transformer_1.Expose)(),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], AdminProfileRO.prototype, "navigatorCertificateProgram", void 0);
|
|
99
104
|
__decorate([
|
|
100
105
|
(0, class_transformer_1.Expose)(),
|
|
101
106
|
__metadata("design:type", String)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NavigatorCertificateProgramEnum = void 0;
|
|
4
|
+
var NavigatorCertificateProgramEnum;
|
|
5
|
+
(function (NavigatorCertificateProgramEnum) {
|
|
6
|
+
NavigatorCertificateProgramEnum["NONE"] = "none";
|
|
7
|
+
NavigatorCertificateProgramEnum["ACTIVE"] = "active";
|
|
8
|
+
NavigatorCertificateProgramEnum["PAUSED"] = "paused";
|
|
9
|
+
})(NavigatorCertificateProgramEnum || (exports.NavigatorCertificateProgramEnum = NavigatorCertificateProgramEnum = {}));
|
|
@@ -2,6 +2,7 @@ import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
|
2
2
|
import { Languages } from '../shared/enum/languages.enum';
|
|
3
3
|
import { WidgetBookingFiledEnum } from '../widget/enum/widget-booking-filed.enum';
|
|
4
4
|
import { CrmVerificationEnum } from './enum/crm-verifiaction.enum';
|
|
5
|
+
import { NavigatorCertificateProgramEnum } from './enum/navigator-certificate-program.enum';
|
|
5
6
|
import { PartnerProgramEnum } from './enum/partner-program.enum';
|
|
6
7
|
import { ProfileIntegrationTypeEnum } from './enum/profile-integration-type.enum';
|
|
7
8
|
import { ProfileStatusEnum } from './enum/profile-step.enum';
|
|
@@ -24,6 +25,7 @@ export declare class ProfileRO {
|
|
|
24
25
|
gaCoversationId: string;
|
|
25
26
|
gaCoversationLabel: string;
|
|
26
27
|
partnerProgram: PartnerProgramEnum;
|
|
28
|
+
navigatorCertificateProgram: NavigatorCertificateProgramEnum;
|
|
27
29
|
crmVerification: CrmVerificationEnum;
|
|
28
30
|
/**
|
|
29
31
|
* Когда владелец акцептовал оферту (Nutzungsbedingungen + AVV) в
|
|
@@ -15,6 +15,7 @@ const class_transformer_1 = require("class-transformer");
|
|
|
15
15
|
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
16
16
|
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
17
17
|
const crm_verifiaction_enum_1 = require("./enum/crm-verifiaction.enum");
|
|
18
|
+
const navigator_certificate_program_enum_1 = require("./enum/navigator-certificate-program.enum");
|
|
18
19
|
const partner_program_enum_1 = require("./enum/partner-program.enum");
|
|
19
20
|
const profile_integration_type_enum_1 = require("./enum/profile-integration-type.enum");
|
|
20
21
|
const profile_step_enum_1 = require("./enum/profile-step.enum");
|
|
@@ -79,6 +80,10 @@ __decorate([
|
|
|
79
80
|
(0, class_transformer_1.Expose)(),
|
|
80
81
|
__metadata("design:type", String)
|
|
81
82
|
], ProfileRO.prototype, "partnerProgram", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, class_transformer_1.Expose)(),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], ProfileRO.prototype, "navigatorCertificateProgram", void 0);
|
|
82
87
|
__decorate([
|
|
83
88
|
(0, class_transformer_1.Expose)(),
|
|
84
89
|
__metadata("design:type", String)
|
|
@@ -12,6 +12,20 @@ export declare class RankingQuestBadgeRO {
|
|
|
12
12
|
lastVerifiedAt: Date | null;
|
|
13
13
|
lastError: string | null;
|
|
14
14
|
}
|
|
15
|
+
export declare class RankingScoreBreakdownRO {
|
|
16
|
+
score: number;
|
|
17
|
+
organicScore: number;
|
|
18
|
+
ratingStars: number;
|
|
19
|
+
ratingScore: number;
|
|
20
|
+
reviewConfidence: number;
|
|
21
|
+
completenessScore: number;
|
|
22
|
+
conversion: number;
|
|
23
|
+
conversionScore: number;
|
|
24
|
+
scheduleFactor: number;
|
|
25
|
+
cancellationRate: number;
|
|
26
|
+
cancellationPenalty: number;
|
|
27
|
+
badgeBoost: number;
|
|
28
|
+
}
|
|
15
29
|
export declare class RankingQuestRO {
|
|
16
30
|
id: number;
|
|
17
31
|
title: string;
|
|
@@ -19,13 +33,16 @@ export declare class RankingQuestRO {
|
|
|
19
33
|
closed: boolean;
|
|
20
34
|
completenessScore: number;
|
|
21
35
|
rate: number;
|
|
36
|
+
aggregatorScore: number;
|
|
22
37
|
reviewsCount: number;
|
|
23
38
|
hasSchedule: boolean;
|
|
24
39
|
visits: number;
|
|
25
40
|
bookings: number;
|
|
41
|
+
cancellations: number;
|
|
26
42
|
conversion: number;
|
|
27
43
|
navigatorHref: string | null;
|
|
28
44
|
badge: RankingQuestBadgeRO;
|
|
45
|
+
scoreBreakdown: RankingScoreBreakdownRO;
|
|
29
46
|
}
|
|
30
47
|
export declare class RankingLeversRO {
|
|
31
48
|
partnerProgram: RankingLeverRO;
|
|
@@ -40,6 +57,9 @@ export declare class RankingOverviewRO {
|
|
|
40
57
|
partnerProgram: PartnerProgramEnum;
|
|
41
58
|
profileVerified: boolean;
|
|
42
59
|
companyHref: string | null;
|
|
60
|
+
companyRate: number;
|
|
61
|
+
companyReviewsCount: number;
|
|
62
|
+
companyBadge: RankingQuestBadgeRO;
|
|
43
63
|
levers: RankingLeversRO;
|
|
44
64
|
questrooms: RankingQuestRO[];
|
|
45
65
|
}
|
|
@@ -9,7 +9,7 @@ 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.RankingOverviewRO = exports.RankingLeversRO = exports.RankingQuestRO = exports.RankingQuestBadgeRO = exports.RankingLeverRO = void 0;
|
|
12
|
+
exports.RankingOverviewRO = exports.RankingLeversRO = exports.RankingQuestRO = exports.RankingScoreBreakdownRO = exports.RankingQuestBadgeRO = exports.RankingLeverRO = void 0;
|
|
13
13
|
/* eslint-disable max-classes-per-file */
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const partner_program_enum_1 = require("../profile/enum/partner-program.enum");
|
|
@@ -52,6 +52,57 @@ __decorate([
|
|
|
52
52
|
(0, class_transformer_1.Expose)(),
|
|
53
53
|
__metadata("design:type", String)
|
|
54
54
|
], RankingQuestBadgeRO.prototype, "lastError", void 0);
|
|
55
|
+
class RankingScoreBreakdownRO {
|
|
56
|
+
}
|
|
57
|
+
exports.RankingScoreBreakdownRO = RankingScoreBreakdownRO;
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_transformer_1.Expose)(),
|
|
60
|
+
__metadata("design:type", Number)
|
|
61
|
+
], RankingScoreBreakdownRO.prototype, "score", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_transformer_1.Expose)(),
|
|
64
|
+
__metadata("design:type", Number)
|
|
65
|
+
], RankingScoreBreakdownRO.prototype, "organicScore", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_transformer_1.Expose)(),
|
|
68
|
+
__metadata("design:type", Number)
|
|
69
|
+
], RankingScoreBreakdownRO.prototype, "ratingStars", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_transformer_1.Expose)(),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], RankingScoreBreakdownRO.prototype, "ratingScore", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_transformer_1.Expose)(),
|
|
76
|
+
__metadata("design:type", Number)
|
|
77
|
+
], RankingScoreBreakdownRO.prototype, "reviewConfidence", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_transformer_1.Expose)(),
|
|
80
|
+
__metadata("design:type", Number)
|
|
81
|
+
], RankingScoreBreakdownRO.prototype, "completenessScore", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_transformer_1.Expose)(),
|
|
84
|
+
__metadata("design:type", Number)
|
|
85
|
+
], RankingScoreBreakdownRO.prototype, "conversion", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, class_transformer_1.Expose)(),
|
|
88
|
+
__metadata("design:type", Number)
|
|
89
|
+
], RankingScoreBreakdownRO.prototype, "conversionScore", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, class_transformer_1.Expose)(),
|
|
92
|
+
__metadata("design:type", Number)
|
|
93
|
+
], RankingScoreBreakdownRO.prototype, "scheduleFactor", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, class_transformer_1.Expose)(),
|
|
96
|
+
__metadata("design:type", Number)
|
|
97
|
+
], RankingScoreBreakdownRO.prototype, "cancellationRate", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, class_transformer_1.Expose)(),
|
|
100
|
+
__metadata("design:type", Number)
|
|
101
|
+
], RankingScoreBreakdownRO.prototype, "cancellationPenalty", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, class_transformer_1.Expose)(),
|
|
104
|
+
__metadata("design:type", Number)
|
|
105
|
+
], RankingScoreBreakdownRO.prototype, "badgeBoost", void 0);
|
|
55
106
|
class RankingQuestRO {
|
|
56
107
|
}
|
|
57
108
|
exports.RankingQuestRO = RankingQuestRO;
|
|
@@ -79,6 +130,10 @@ __decorate([
|
|
|
79
130
|
(0, class_transformer_1.Expose)(),
|
|
80
131
|
__metadata("design:type", Number)
|
|
81
132
|
], RankingQuestRO.prototype, "rate", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, class_transformer_1.Expose)(),
|
|
135
|
+
__metadata("design:type", Number)
|
|
136
|
+
], RankingQuestRO.prototype, "aggregatorScore", void 0);
|
|
82
137
|
__decorate([
|
|
83
138
|
(0, class_transformer_1.Expose)(),
|
|
84
139
|
__metadata("design:type", Number)
|
|
@@ -95,6 +150,10 @@ __decorate([
|
|
|
95
150
|
(0, class_transformer_1.Expose)(),
|
|
96
151
|
__metadata("design:type", Number)
|
|
97
152
|
], RankingQuestRO.prototype, "bookings", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, class_transformer_1.Expose)(),
|
|
155
|
+
__metadata("design:type", Number)
|
|
156
|
+
], RankingQuestRO.prototype, "cancellations", void 0);
|
|
98
157
|
__decorate([
|
|
99
158
|
(0, class_transformer_1.Expose)(),
|
|
100
159
|
__metadata("design:type", Number)
|
|
@@ -108,6 +167,11 @@ __decorate([
|
|
|
108
167
|
(0, class_transformer_1.Type)(() => RankingQuestBadgeRO),
|
|
109
168
|
__metadata("design:type", RankingQuestBadgeRO)
|
|
110
169
|
], RankingQuestRO.prototype, "badge", void 0);
|
|
170
|
+
__decorate([
|
|
171
|
+
(0, class_transformer_1.Expose)(),
|
|
172
|
+
(0, class_transformer_1.Type)(() => RankingScoreBreakdownRO),
|
|
173
|
+
__metadata("design:type", RankingScoreBreakdownRO)
|
|
174
|
+
], RankingQuestRO.prototype, "scoreBreakdown", void 0);
|
|
111
175
|
class RankingLeversRO {
|
|
112
176
|
}
|
|
113
177
|
exports.RankingLeversRO = RankingLeversRO;
|
|
@@ -160,6 +224,19 @@ __decorate([
|
|
|
160
224
|
(0, class_transformer_1.Expose)(),
|
|
161
225
|
__metadata("design:type", String)
|
|
162
226
|
], RankingOverviewRO.prototype, "companyHref", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
(0, class_transformer_1.Expose)(),
|
|
229
|
+
__metadata("design:type", Number)
|
|
230
|
+
], RankingOverviewRO.prototype, "companyRate", void 0);
|
|
231
|
+
__decorate([
|
|
232
|
+
(0, class_transformer_1.Expose)(),
|
|
233
|
+
__metadata("design:type", Number)
|
|
234
|
+
], RankingOverviewRO.prototype, "companyReviewsCount", void 0);
|
|
235
|
+
__decorate([
|
|
236
|
+
(0, class_transformer_1.Expose)(),
|
|
237
|
+
(0, class_transformer_1.Type)(() => RankingQuestBadgeRO),
|
|
238
|
+
__metadata("design:type", RankingQuestBadgeRO)
|
|
239
|
+
], RankingOverviewRO.prototype, "companyBadge", void 0);
|
|
163
240
|
__decorate([
|
|
164
241
|
(0, class_transformer_1.Expose)(),
|
|
165
242
|
(0, class_transformer_1.Type)(() => RankingLeversRO),
|