@escapenavigator/types 1.4.79 → 1.4.80
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/create-admin.dto.js +1 -0
- package/dist/admin/login-admin.dto.js +3 -1
- package/dist/agb/agb.ro.d.ts +1 -1
- package/dist/agb/get-for-order-service.dto.d.ts +0 -1
- package/dist/agb/get-for-order-service.dto.js +3 -7
- package/dist/agregator/agregator-questroom.ro.d.ts +1 -2
- package/dist/certificate-sale/create-certificatesale.dto.js +1 -0
- package/dist/certificate-sale/legacy/update-certificatesale-delivery-info.dto.js +1 -0
- package/dist/client/create-client-from-widget.dto.js +1 -2
- package/dist/client/create-client.dto.js +1 -1
- package/dist/client/update-client.dto.js +1 -0
- package/dist/constants/timezone-by-mono-tz-country.d.ts +1 -1
- package/dist/constants/timezone-by-mono-tz-country.js +14 -14
- package/dist/location/create-location.dto.d.ts +7 -3
- package/dist/location/create-location.dto.js +21 -16
- package/dist/location/location.ro.d.ts +5 -4
- package/dist/log/log.ro.d.ts +1 -0
- package/dist/{transaction → order-transaction}/create-order-payment.dto.d.ts +0 -1
- package/dist/{transaction → order-transaction}/create-order-payment.dto.js +0 -5
- package/dist/order-transaction/create-order-stripe-refund.dto.d.ts +6 -0
- package/dist/{transaction/create-order-refund.dto.js → order-transaction/create-order-stripe-refund.dto.js} +7 -13
- package/dist/profile/create-profile.dto.d.ts +5 -0
- package/dist/profile/create-profile.dto.js +24 -4
- package/dist/profile/customization.ro.d.ts +15 -0
- package/dist/profile/enum/profile-step.enum.d.ts +9 -0
- package/dist/profile/enum/profile-step.enum.js +13 -0
- package/dist/profile/invite-after-verification.dto.d.ts +1 -0
- package/dist/profile/invite-after-verification.dto.js +7 -0
- package/dist/profile/payment-settings.ro.d.ts +20 -6
- package/dist/profile/profile-agb.ro.d.ts +5 -0
- package/dist/profile/profile.ro.d.ts +14 -3
- package/dist/profile/subscription-prices.ro.d.ts +7 -0
- package/dist/profile/update-agb.dto.d.ts +3 -0
- package/dist/{agb → profile}/update-agb.dto.js +4 -4
- package/dist/profile/update-current.dto.d.ts +5 -2
- package/dist/profile/update-current.dto.js +13 -5
- package/dist/profile/update-customization.dto.d.ts +16 -0
- package/dist/{widget/update-widget-customization.dto.js → profile/update-customization.dto.js} +39 -9
- package/dist/questroom/close-many.dto.d.ts +4 -0
- package/dist/questroom/close-many.dto.js +27 -0
- package/dist/questroom/create-questroom.dto.d.ts +11 -3
- package/dist/questroom/create-questroom.dto.js +57 -16
- package/dist/questroom/enum/questroom-type.enum.d.ts +2 -1
- package/dist/questroom/enum/questroom-type.enum.js +1 -0
- package/dist/questroom/questroom.ro.d.ts +5 -2
- package/dist/registration-request/create-registration-request.dto.d.ts +0 -2
- package/dist/registration-request/create-registration-request.dto.js +2 -7
- package/dist/registration-request/update-registration-request.dto.js +1 -0
- package/dist/role/create-role.dto.d.ts +2 -0
- package/dist/role/create-role.dto.js +12 -0
- package/dist/role/role.ro.d.ts +2 -0
- package/dist/shared/is-bigger-than.d.ts +2 -0
- package/dist/shared/is-bigger-than.js +26 -0
- package/dist/slot/update-breaks.dto.d.ts +1 -0
- package/dist/slot/update-breaks.dto.js +7 -1
- package/dist/slot-rule/defailt-rule.js +1 -1
- package/dist/subscription/create-subscription.dto.js +3 -2
- package/dist/support/create-support.dto.js +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user/{create-user.dto.d.ts → crud/create-user.dto.d.ts} +0 -2
- package/dist/user/{create-user.dto.js → crud/create-user.dto.js} +0 -12
- package/dist/user/{update-user.dto.d.ts → crud/update-user.dto.d.ts} +0 -2
- package/dist/user/{update-user.dto.js → crud/update-user.dto.js} +0 -12
- package/dist/user/{user.ro.d.ts → crud/user.ro.d.ts} +3 -5
- package/dist/user/current/current-user.ro.d.ts +17 -0
- package/dist/user/{update-current-user-notifications.dto.d.ts → current/update-current-user-notifications.dto.d.ts} +1 -1
- package/dist/user/{update-current-user-password.dto.js → current/update-current-user-password.dto.js} +1 -1
- package/dist/user/{update-current-user.dto.d.ts → current/update-current-user.dto.d.ts} +1 -1
- package/dist/user/{update-current-user.dto.js → current/update-current-user.dto.js} +4 -3
- package/dist/user/{login-user.dto.js → outside/login-user.dto.js} +1 -0
- package/dist/user/{recover-password.dto.js → outside/recover-password.dto.js} +1 -0
- package/dist/user/{update-user-password.dto.js → outside/update-user-password.dto.js} +2 -2
- package/dist/user/{user-monthly-report.ro.d.ts → reports/user-monthly-report.ro.d.ts} +1 -1
- package/dist/user/sessions/calendar-sessions.dto.d.ts +4 -0
- package/dist/user/{update-user-report.dto.js → sessions/calendar-sessions.dto.js} +7 -7
- package/dist/user/sessions/create-day-sessions.dto.d.ts +6 -0
- package/dist/user/{user-report.form.dto.js → sessions/create-day-sessions.dto.js} +14 -20
- package/dist/user/sessions/day-sessions.ro.d.ts +6 -0
- package/dist/user/{create-user-report.dto.js → sessions/day-sessions.ro.js} +9 -12
- package/dist/user/sessions/get-session-by-user-and-date.dto.d.ts +4 -0
- package/dist/{profile/update-payment-settings.dto.js → user/sessions/get-session-by-user-and-date.dto.js} +7 -8
- package/dist/user/sessions/session.dto.d.ts +5 -0
- package/dist/user/sessions/session.dto.js +34 -0
- package/dist/user/sessions/sessions-query.dto.d.ts +5 -0
- package/dist/user/{query-user-report.dto.js → sessions/sessions-query.dto.js} +11 -7
- package/dist/user/sessions/update-day-sessions.dto.d.ts +5 -0
- package/dist/user/sessions/update-day-sessions.dto.js +31 -0
- package/dist/user/sessions/user-ping.ro.d.ts +5 -0
- package/dist/user/sessions/user-ping.ro.js +28 -0
- package/dist/user/{complite-setup.dto.js → setup/complite-setup.dto.js} +4 -2
- package/dist/widget/create-widget.dto.d.ts +3 -2
- package/dist/widget/create-widget.dto.js +22 -11
- package/dist/widget/init-widgets.dto.d.ts +4 -0
- package/dist/widget/init-widgets.dto.js +26 -0
- package/dist/widget/instruction-token.ro.d.ts +3 -0
- package/dist/widget/instruction-token.ro.js +2 -0
- package/dist/widget/instruction.dto.d.ts +3 -0
- package/dist/widget/instruction.dto.js +22 -0
- package/dist/widget/widget.ro.d.ts +19 -13
- package/dist/widget-openapi/widget-openapi-create-certificate.dto.js +2 -0
- package/dist/widget-openapi/widget-openapi-create-client.dto.js +2 -1
- package/dist/widget-openapi/widget-openapi-create-order.dto.d.ts +0 -1
- package/dist/widget-openapi/widget-openapi-create-order.dto.js +2 -6
- package/dist/widget-openapi/widget-openapi-get-widgget-info.dto.d.ts +1 -1
- package/dist/widget-openapi/widget-openapi-get-widgget-info.dto.js +4 -3
- package/dist/widget-openapi/widget-openapi-questroom.ro.d.ts +0 -4
- package/dist/widget-openapi/widget-openapi.ro.d.ts +7 -28
- package/dist/widget-orders/widget-order.ro.d.ts +112 -0
- package/dist/widget-orders/widget-order.ro.js +387 -0
- package/package.json +2 -2
- package/dist/agb/update-agb.dto.d.ts +0 -3
- package/dist/profile/enum/profile-type.enum.d.ts +0 -9
- package/dist/profile/enum/profile-type.enum.js +0 -13
- package/dist/profile/update-payment-settings.dto.d.ts +0 -4
- package/dist/transaction/create-order-refund.dto.d.ts +0 -7
- package/dist/user/create-user-report.dto.d.ts +0 -5
- package/dist/user/current-user.ro.d.ts +0 -17
- package/dist/user/query-user-report.dto.d.ts +0 -4
- package/dist/user/update-user-report.dto.d.ts +0 -4
- package/dist/user/user-report.form.dto.d.ts +0 -7
- package/dist/user/user-report.ro.d.ts +0 -10
- package/dist/widget/enum/widget-theme.enum.d.ts +0 -4
- package/dist/widget/enum/widget-theme.enum.js +0 -8
- package/dist/widget/update-widget-customization.dto.d.ts +0 -8
- package/dist/widget/widget-customization.ro.d.ts +0 -9
- package/dist/widget-orders/widget-orders-order.ro.d.ts +0 -75
- /package/dist/{user/current-user.ro.js → profile/customization.ro.js} +0 -0
- /package/dist/{user/user-monthly-report.ro.js → profile/profile-agb.ro.js} +0 -0
- /package/dist/{user/user-report.ro.js → profile/subscription-prices.ro.js} +0 -0
- /package/dist/shared/{timezone.enum.d.ts → timeZone.enum.d.ts} +0 -0
- /package/dist/shared/{timezone.enum.js → timeZone.enum.js} +0 -0
- /package/dist/user/{user.ro.js → crud/user.ro.js} +0 -0
- /package/dist/{widget-orders/widget-orders-order.ro.js → user/current/current-user.ro.js} +0 -0
- /package/dist/user/{update-current-user-notifications.dto.js → current/update-current-user-notifications.dto.js} +0 -0
- /package/dist/user/{update-current-user-password.dto.d.ts → current/update-current-user-password.dto.d.ts} +0 -0
- /package/dist/user/{check-user-token.dto.d.ts → outside/check-user-token.dto.d.ts} +0 -0
- /package/dist/user/{check-user-token.dto.js → outside/check-user-token.dto.js} +0 -0
- /package/dist/user/{login-user.dto.d.ts → outside/login-user.dto.d.ts} +0 -0
- /package/dist/user/{recover-password.dto.d.ts → outside/recover-password.dto.d.ts} +0 -0
- /package/dist/user/{update-user-password.dto.d.ts → outside/update-user-password.dto.d.ts} +0 -0
- /package/dist/{widget/widget-customization.ro.js → user/reports/user-monthly-report.ro.js} +0 -0
- /package/dist/user/{complite-setup.dto.d.ts → setup/complite-setup.dto.d.ts} +0 -0
|
@@ -33,6 +33,7 @@ __decorate([
|
|
|
33
33
|
__decorate([
|
|
34
34
|
(0, class_validator_1.IsEmail)(),
|
|
35
35
|
(0, class_transformer_1.Expose)(),
|
|
36
|
+
(0, class_transformer_1.Transform)(({ value }) => value.trim().toLowerCase()),
|
|
36
37
|
__metadata("design:type", String)
|
|
37
38
|
], CreateAdminDto.prototype, "email", void 0);
|
|
38
39
|
__decorate([
|
|
@@ -10,11 +10,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.LoginAdminDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
class LoginAdminDto {
|
|
15
16
|
}
|
|
16
17
|
__decorate([
|
|
17
|
-
(0, class_validator_1.
|
|
18
|
+
(0, class_validator_1.IsEmail)(),
|
|
19
|
+
(0, class_transformer_1.Transform)(({ value }) => value === null || value === void 0 ? void 0 : value.trim().toLowerCase()),
|
|
18
20
|
__metadata("design:type", String)
|
|
19
21
|
], LoginAdminDto.prototype, "email", void 0);
|
|
20
22
|
__decorate([
|
package/dist/agb/agb.ro.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
2
|
import { ResponseObject } from '../shared/ro';
|
|
3
3
|
import { AgbTypeEnum } from './agb-type.enum';
|
|
4
|
-
export declare type
|
|
4
|
+
export declare type AgbRO = ResponseObject & {
|
|
5
5
|
text: string;
|
|
6
6
|
type: AgbTypeEnum;
|
|
7
7
|
country?: CountriesEnum;
|
|
@@ -10,19 +10,15 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.GetForOrderServiceDto = void 0;
|
|
13
|
-
const
|
|
13
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
14
14
|
class GetForOrderServiceDto {
|
|
15
15
|
}
|
|
16
16
|
__decorate([
|
|
17
|
-
(0,
|
|
18
|
-
__metadata("design:type", String)
|
|
19
|
-
], GetForOrderServiceDto.prototype, "profileId", void 0);
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, class_validator_1.IsOptional)(),
|
|
17
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
22
18
|
__metadata("design:type", String)
|
|
23
19
|
], GetForOrderServiceDto.prototype, "type", void 0);
|
|
24
20
|
__decorate([
|
|
25
|
-
(0,
|
|
21
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
26
22
|
__metadata("design:type", String)
|
|
27
23
|
], GetForOrderServiceDto.prototype, "country", void 0);
|
|
28
24
|
exports.GetForOrderServiceDto = GetForOrderServiceDto;
|
|
@@ -30,12 +30,11 @@ export declare type AgregatorQuestroomRO = {
|
|
|
30
30
|
phone: string;
|
|
31
31
|
coordinates: [number, number];
|
|
32
32
|
howToFind: string;
|
|
33
|
-
|
|
33
|
+
prepareText: string;
|
|
34
34
|
wifi: boolean;
|
|
35
35
|
wardrobe: boolean;
|
|
36
36
|
freeParking: boolean;
|
|
37
37
|
parking: boolean;
|
|
38
|
-
ventilation: boolean;
|
|
39
38
|
waitingAreaSize: number;
|
|
40
39
|
city: AgregatorCityRO;
|
|
41
40
|
};
|
|
@@ -61,6 +61,7 @@ __decorate([
|
|
|
61
61
|
], CreateCertificatesaleDto.prototype, "deliveryType", void 0);
|
|
62
62
|
__decorate([
|
|
63
63
|
(0, class_validator_1.IsEmail)(),
|
|
64
|
+
(0, class_transformer_1.Transform)(({ value }) => value === null || value === void 0 ? void 0 : value.trim().toLowerCase()),
|
|
64
65
|
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
|
|
65
66
|
(0, class_transformer_1.Expose)(),
|
|
66
67
|
__metadata("design:type", String)
|
|
@@ -42,6 +42,7 @@ __decorate([
|
|
|
42
42
|
__decorate([
|
|
43
43
|
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
|
|
44
44
|
(0, class_transformer_1.Expose)(),
|
|
45
|
+
(0, class_transformer_1.Transform)(({ value }) => value === null || value === void 0 ? void 0 : value.trim().toLowerCase()),
|
|
45
46
|
(0, class_validator_1.IsEmail)(),
|
|
46
47
|
__metadata("design:type", String)
|
|
47
48
|
], UpdateCertificatesaleDeliveryInfoDto.prototype, "deliveryEmail", void 0);
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateClientFromWidgetDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
15
|
class CreateClientFromWidgetDto {
|
|
17
16
|
}
|
|
18
17
|
__decorate([
|
|
@@ -36,8 +35,8 @@ __decorate([
|
|
|
36
35
|
__metadata("design:type", String)
|
|
37
36
|
], CreateClientFromWidgetDto.prototype, "phone2", void 0);
|
|
38
37
|
__decorate([
|
|
39
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
40
38
|
(0, class_validator_1.IsEmail)(),
|
|
39
|
+
(0, class_transformer_1.Transform)(({ value }) => value === null || value === void 0 ? void 0 : value.trim().toLowerCase()),
|
|
41
40
|
(0, class_transformer_1.Expose)(),
|
|
42
41
|
__metadata("design:type", String)
|
|
43
42
|
], CreateClientFromWidgetDto.prototype, "email", void 0);
|
|
@@ -36,8 +36,8 @@ __decorate([
|
|
|
36
36
|
__metadata("design:type", String)
|
|
37
37
|
], CreateClientDto.prototype, "phone2", void 0);
|
|
38
38
|
__decorate([
|
|
39
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
40
39
|
(0, class_validator_1.IsEmail)(),
|
|
40
|
+
(0, class_transformer_1.Transform)(({ value }) => value === null || value === void 0 ? void 0 : value.trim().toLowerCase()),
|
|
41
41
|
(0, class_transformer_1.Expose)(),
|
|
42
42
|
__metadata("design:type", String)
|
|
43
43
|
], CreateClientDto.prototype, "email", void 0);
|
|
@@ -40,6 +40,7 @@ __decorate([
|
|
|
40
40
|
__decorate([
|
|
41
41
|
(0, class_validator_1.IsOptional)(),
|
|
42
42
|
(0, class_validator_1.IsEmail)(),
|
|
43
|
+
(0, class_transformer_1.Transform)(({ value }) => value === null || value === void 0 ? void 0 : value.trim().toLowerCase()),
|
|
43
44
|
(0, class_transformer_1.Expose)(),
|
|
44
45
|
__metadata("design:type", String)
|
|
45
46
|
], UpdateClientDto.prototype, "email", void 0);
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.timezoneByMonoTzCountry = void 0;
|
|
4
4
|
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
5
|
-
const
|
|
5
|
+
const timeZone_enum_1 = require("../shared/timeZone.enum");
|
|
6
6
|
exports.timezoneByMonoTzCountry = {
|
|
7
|
-
[countries_enum_1.CountriesEnum.GERMANY]:
|
|
8
|
-
[countries_enum_1.CountriesEnum.AUSTRIA]:
|
|
9
|
-
[countries_enum_1.CountriesEnum.POLAND]:
|
|
10
|
-
[countries_enum_1.CountriesEnum.FRANCE]:
|
|
11
|
-
[countries_enum_1.CountriesEnum.GREECE]:
|
|
12
|
-
[countries_enum_1.CountriesEnum.PORTUGAL]:
|
|
13
|
-
[countries_enum_1.CountriesEnum.ITALY]:
|
|
14
|
-
[countries_enum_1.CountriesEnum.SPAIN]:
|
|
15
|
-
[countries_enum_1.CountriesEnum.ESTONIA]:
|
|
16
|
-
[countries_enum_1.CountriesEnum.UK]:
|
|
17
|
-
[countries_enum_1.CountriesEnum.SWITZERLAND]:
|
|
18
|
-
[countries_enum_1.CountriesEnum.CZECH]:
|
|
19
|
-
[countries_enum_1.CountriesEnum.NETHERLANDS]:
|
|
7
|
+
[countries_enum_1.CountriesEnum.GERMANY]: timeZone_enum_1.TimezoneEnum.GERMANY,
|
|
8
|
+
[countries_enum_1.CountriesEnum.AUSTRIA]: timeZone_enum_1.TimezoneEnum.AUSTRIA,
|
|
9
|
+
[countries_enum_1.CountriesEnum.POLAND]: timeZone_enum_1.TimezoneEnum.POLAND,
|
|
10
|
+
[countries_enum_1.CountriesEnum.FRANCE]: timeZone_enum_1.TimezoneEnum.FRANCE,
|
|
11
|
+
[countries_enum_1.CountriesEnum.GREECE]: timeZone_enum_1.TimezoneEnum.GREECE,
|
|
12
|
+
[countries_enum_1.CountriesEnum.PORTUGAL]: timeZone_enum_1.TimezoneEnum.PORTUGAL,
|
|
13
|
+
[countries_enum_1.CountriesEnum.ITALY]: timeZone_enum_1.TimezoneEnum.ITALY,
|
|
14
|
+
[countries_enum_1.CountriesEnum.SPAIN]: timeZone_enum_1.TimezoneEnum.SPAIN,
|
|
15
|
+
[countries_enum_1.CountriesEnum.ESTONIA]: timeZone_enum_1.TimezoneEnum.ESTONIA,
|
|
16
|
+
[countries_enum_1.CountriesEnum.UK]: timeZone_enum_1.TimezoneEnum.UK,
|
|
17
|
+
[countries_enum_1.CountriesEnum.SWITZERLAND]: timeZone_enum_1.TimezoneEnum.SWITZERLAND,
|
|
18
|
+
[countries_enum_1.CountriesEnum.CZECH]: timeZone_enum_1.TimezoneEnum.CZECH,
|
|
19
|
+
[countries_enum_1.CountriesEnum.NETHERLANDS]: timeZone_enum_1.TimezoneEnum.NETHERLANDS,
|
|
20
20
|
};
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
+
import { Languages } from '../shared/enum/languages.enum';
|
|
2
|
+
declare class Locale {
|
|
3
|
+
language: Languages;
|
|
4
|
+
howToFind: string;
|
|
5
|
+
}
|
|
1
6
|
export declare class CreateLocationDto {
|
|
2
7
|
phone: string;
|
|
3
8
|
address: string;
|
|
4
9
|
ip: string;
|
|
5
10
|
howToFind?: string;
|
|
6
|
-
prepareInfo: string;
|
|
7
|
-
feedBackInfo: string;
|
|
8
11
|
wifi: boolean;
|
|
9
12
|
wardrobe: boolean;
|
|
10
13
|
freeParking: boolean;
|
|
11
14
|
parking: boolean;
|
|
12
|
-
ventilation: boolean;
|
|
13
15
|
waitingArea: boolean;
|
|
14
16
|
waitingAreaSize?: number;
|
|
17
|
+
locales: Locale[];
|
|
15
18
|
}
|
|
19
|
+
export {};
|
|
@@ -10,9 +10,24 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateLocationDto = void 0;
|
|
13
|
+
/* eslint-disable max-classes-per-file */
|
|
13
14
|
const class_transformer_1 = require("class-transformer");
|
|
14
15
|
const class_validator_1 = require("class-validator");
|
|
16
|
+
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
15
17
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
18
|
+
class Locale {
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsOptional)(),
|
|
22
|
+
(0, class_validator_1.IsEnum)(languages_enum_1.Languages),
|
|
23
|
+
(0, class_transformer_1.Expose)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], Locale.prototype, "language", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], Locale.prototype, "howToFind", void 0);
|
|
16
31
|
class CreateLocationDto {
|
|
17
32
|
}
|
|
18
33
|
__decorate([
|
|
@@ -36,16 +51,6 @@ __decorate([
|
|
|
36
51
|
(0, class_transformer_1.Expose)(),
|
|
37
52
|
__metadata("design:type", String)
|
|
38
53
|
], CreateLocationDto.prototype, "howToFind", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
41
|
-
(0, class_transformer_1.Expose)(),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], CreateLocationDto.prototype, "prepareInfo", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
46
|
-
(0, class_transformer_1.Expose)(),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], CreateLocationDto.prototype, "feedBackInfo", void 0);
|
|
49
54
|
__decorate([
|
|
50
55
|
(0, class_validator_1.IsBoolean)(),
|
|
51
56
|
(0, class_transformer_1.Transform)(({ value }) => value || false),
|
|
@@ -70,12 +75,6 @@ __decorate([
|
|
|
70
75
|
(0, class_transformer_1.Expose)(),
|
|
71
76
|
__metadata("design:type", Boolean)
|
|
72
77
|
], CreateLocationDto.prototype, "parking", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, class_validator_1.IsBoolean)(),
|
|
75
|
-
(0, class_transformer_1.Transform)(({ value }) => value || false),
|
|
76
|
-
(0, class_transformer_1.Expose)(),
|
|
77
|
-
__metadata("design:type", Boolean)
|
|
78
|
-
], CreateLocationDto.prototype, "ventilation", void 0);
|
|
79
78
|
__decorate([
|
|
80
79
|
(0, class_validator_1.IsBoolean)(),
|
|
81
80
|
(0, class_transformer_1.Transform)(({ value }) => value || false),
|
|
@@ -88,4 +87,10 @@ __decorate([
|
|
|
88
87
|
(0, class_transformer_1.Expose)(),
|
|
89
88
|
__metadata("design:type", Number)
|
|
90
89
|
], CreateLocationDto.prototype, "waitingAreaSize", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, class_transformer_1.Type)(() => Locale),
|
|
92
|
+
(0, class_validator_1.IsArray)(),
|
|
93
|
+
(0, class_transformer_1.Expose)(),
|
|
94
|
+
__metadata("design:type", Array)
|
|
95
|
+
], CreateLocationDto.prototype, "locales", void 0);
|
|
91
96
|
exports.CreateLocationDto = CreateLocationDto;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Languages } from '../shared/enum/languages.enum';
|
|
1
2
|
import { ResponseObject } from '../shared/ro';
|
|
2
3
|
export declare type LocationRO = ResponseObject & {
|
|
3
4
|
title: string;
|
|
@@ -5,15 +6,15 @@ export declare type LocationRO = ResponseObject & {
|
|
|
5
6
|
phone: string;
|
|
6
7
|
ip: string;
|
|
7
8
|
howToFind: string;
|
|
8
|
-
prepareInfo: string;
|
|
9
|
-
feedBackInfo: string;
|
|
10
9
|
wifi: boolean;
|
|
11
10
|
wardrobe: boolean;
|
|
12
11
|
freeParking: boolean;
|
|
13
12
|
parking: boolean;
|
|
14
13
|
waitingArea: boolean;
|
|
15
14
|
waitingAreaSize: number;
|
|
16
|
-
neededEmployees?: number;
|
|
17
|
-
sortPosition: number;
|
|
18
15
|
timeZone: string;
|
|
16
|
+
locales: Array<{
|
|
17
|
+
language: Languages;
|
|
18
|
+
howToFind: string;
|
|
19
|
+
}>;
|
|
19
20
|
};
|
package/dist/log/log.ro.d.ts
CHANGED
|
@@ -29,9 +29,4 @@ __decorate([
|
|
|
29
29
|
(0, class_transformer_1.Expose)(),
|
|
30
30
|
__metadata("design:type", Number)
|
|
31
31
|
], CreateOrderPaymentDto.prototype, "amount", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, class_validator_1.IsOptional)(),
|
|
34
|
-
(0, class_transformer_1.Expose)(),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], CreateOrderPaymentDto.prototype, "comment", void 0);
|
|
37
32
|
exports.CreateOrderPaymentDto = CreateOrderPaymentDto;
|
|
@@ -9,36 +9,30 @@ 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.
|
|
12
|
+
exports.CreateOrderStripeRefundDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
|
-
class
|
|
16
|
+
class CreateOrderStripeRefundDto {
|
|
17
17
|
}
|
|
18
18
|
__decorate([
|
|
19
19
|
(0, class_validator_1.IsNumber)(),
|
|
20
20
|
(0, class_transformer_1.Expose)(),
|
|
21
21
|
__metadata("design:type", Number)
|
|
22
|
-
],
|
|
22
|
+
], CreateOrderStripeRefundDto.prototype, "orderId", void 0);
|
|
23
23
|
__decorate([
|
|
24
24
|
(0, class_validator_1.IsNumber)(),
|
|
25
25
|
(0, class_transformer_1.Expose)(),
|
|
26
26
|
__metadata("design:type", Number)
|
|
27
|
-
],
|
|
27
|
+
], CreateOrderStripeRefundDto.prototype, "cashboxId", void 0);
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, class_validator_1.IsPositive)(),
|
|
30
30
|
(0, class_transformer_1.Expose)(),
|
|
31
31
|
__metadata("design:type", Number)
|
|
32
|
-
],
|
|
32
|
+
], CreateOrderStripeRefundDto.prototype, "amount", void 0);
|
|
33
33
|
__decorate([
|
|
34
34
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
35
35
|
(0, class_transformer_1.Expose)(),
|
|
36
36
|
__metadata("design:type", String)
|
|
37
|
-
],
|
|
38
|
-
|
|
39
|
-
(0, class_validator_1.IsOptional)(),
|
|
40
|
-
(0, class_validator_1.IsBoolean)(),
|
|
41
|
-
(0, class_transformer_1.Expose)(),
|
|
42
|
-
__metadata("design:type", Boolean)
|
|
43
|
-
], CreateOrderRefundDto.prototype, "withStripeRefund", void 0);
|
|
44
|
-
exports.CreateOrderRefundDto = CreateOrderRefundDto;
|
|
37
|
+
], CreateOrderStripeRefundDto.prototype, "stripePaymentId", void 0);
|
|
38
|
+
exports.CreateOrderStripeRefundDto = CreateOrderStripeRefundDto;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
|
+
import { Languages } from '../shared/enum/languages.enum';
|
|
3
|
+
import { ProfileStepEnum } from './enum/profile-step.enum';
|
|
2
4
|
export declare class CreateProfileDto {
|
|
3
5
|
country: CountriesEnum;
|
|
4
6
|
title: string;
|
|
5
7
|
site: string;
|
|
6
8
|
phoneForCustomers: string;
|
|
9
|
+
step: ProfileStepEnum;
|
|
7
10
|
mainEmail: string;
|
|
8
11
|
secondaryEmails: string[];
|
|
9
12
|
legalTitle: string;
|
|
@@ -11,6 +14,8 @@ export declare class CreateProfileDto {
|
|
|
11
14
|
instagram?: string;
|
|
12
15
|
facebook?: string;
|
|
13
16
|
contactName: string;
|
|
17
|
+
availableLanguages: Languages[];
|
|
18
|
+
language: Languages;
|
|
14
19
|
contactPhone: string;
|
|
15
20
|
registrationRequestId: number;
|
|
16
21
|
logo?: string;
|
|
@@ -13,7 +13,9 @@ exports.CreateProfileDto = void 0;
|
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
16
|
+
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
16
17
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
18
|
+
const profile_step_enum_1 = require("./enum/profile-step.enum");
|
|
17
19
|
class CreateProfileDto {
|
|
18
20
|
}
|
|
19
21
|
__decorate([
|
|
@@ -27,29 +29,36 @@ __decorate([
|
|
|
27
29
|
__metadata("design:type", String)
|
|
28
30
|
], CreateProfileDto.prototype, "title", void 0);
|
|
29
31
|
__decorate([
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
33
|
(0, class_validator_1.IsUrl)(),
|
|
31
34
|
(0, class_transformer_1.Expose)(),
|
|
32
35
|
__metadata("design:type", String)
|
|
33
36
|
], CreateProfileDto.prototype, "site", void 0);
|
|
34
37
|
__decorate([
|
|
35
|
-
(0,
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
39
|
(0, class_transformer_1.Expose)(),
|
|
37
40
|
__metadata("design:type", String)
|
|
38
41
|
], CreateProfileDto.prototype, "phoneForCustomers", void 0);
|
|
39
42
|
__decorate([
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsEnum)(profile_step_enum_1.ProfileStepEnum),
|
|
45
|
+
(0, class_transformer_1.Expose)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], CreateProfileDto.prototype, "step", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
50
|
(0, class_validator_1.IsEmail)(),
|
|
41
51
|
(0, class_transformer_1.Expose)(),
|
|
52
|
+
(0, class_transformer_1.Transform)(({ value }) => value === null || value === void 0 ? void 0 : value.trim().toLowerCase()),
|
|
42
53
|
__metadata("design:type", String)
|
|
43
54
|
], CreateProfileDto.prototype, "mainEmail", void 0);
|
|
44
55
|
__decorate([
|
|
45
56
|
(0, class_validator_1.IsArray)(),
|
|
46
|
-
(0, class_validator_1.ArrayMinSize)(1),
|
|
47
|
-
(0, class_validator_1.IsEmail)({}, { each: true }),
|
|
48
57
|
(0, class_transformer_1.Expose)(),
|
|
49
58
|
__metadata("design:type", Array)
|
|
50
59
|
], CreateProfileDto.prototype, "secondaryEmails", void 0);
|
|
51
60
|
__decorate([
|
|
52
|
-
(0,
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
62
|
(0, class_transformer_1.Expose)(),
|
|
54
63
|
__metadata("design:type", String)
|
|
55
64
|
], CreateProfileDto.prototype, "legalTitle", void 0);
|
|
@@ -76,6 +85,17 @@ __decorate([
|
|
|
76
85
|
(0, class_transformer_1.Expose)(),
|
|
77
86
|
__metadata("design:type", String)
|
|
78
87
|
], CreateProfileDto.prototype, "contactName", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, class_validator_1.IsArray)(),
|
|
90
|
+
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
91
|
+
(0, class_transformer_1.Expose)(),
|
|
92
|
+
__metadata("design:type", Array)
|
|
93
|
+
], CreateProfileDto.prototype, "availableLanguages", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, class_validator_1.IsEnum)(languages_enum_1.Languages),
|
|
96
|
+
(0, class_transformer_1.Expose)(),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], CreateProfileDto.prototype, "language", void 0);
|
|
79
99
|
__decorate([
|
|
80
100
|
(0, class_validator_1.IsOptional)(),
|
|
81
101
|
(0, class_transformer_1.Expose)(),
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Languages } from '../shared/enum/languages.enum';
|
|
2
|
+
import { ResponseObject } from '../shared/ro';
|
|
3
|
+
import { WidgetBookingFiledEnum } from '../widget/enum/widget-booking-filed.enum';
|
|
4
|
+
export declare type CustomizationRO = ResponseObject & {
|
|
5
|
+
allowOrdersOnlinePayments: boolean;
|
|
6
|
+
bookingFields: WidgetBookingFiledEnum[];
|
|
7
|
+
color: string;
|
|
8
|
+
prepareText: string;
|
|
9
|
+
feedbackText: string;
|
|
10
|
+
locales: Array<{
|
|
11
|
+
language: Languages;
|
|
12
|
+
prepareText: string;
|
|
13
|
+
feedbackText: string;
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProfileStepEnum = void 0;
|
|
4
|
+
var ProfileStepEnum;
|
|
5
|
+
(function (ProfileStepEnum) {
|
|
6
|
+
ProfileStepEnum["CLOSED"] = "closed";
|
|
7
|
+
ProfileStepEnum["READY_TO_VERIFY"] = "ready_to_verify";
|
|
8
|
+
ProfileStepEnum["NOT_VERIFIED"] = "not_verified";
|
|
9
|
+
ProfileStepEnum["VERIFIED"] = "VERIFIED";
|
|
10
|
+
ProfileStepEnum["NOT_INTEGRATED"] = "not_integrated";
|
|
11
|
+
ProfileStepEnum["INTEGRATED"] = "integrated";
|
|
12
|
+
ProfileStepEnum["CRM"] = "CRM";
|
|
13
|
+
})(ProfileStepEnum = exports.ProfileStepEnum || (exports.ProfileStepEnum = {}));
|
|
@@ -21,8 +21,15 @@ __decorate([
|
|
|
21
21
|
__metadata("design:type", String)
|
|
22
22
|
], InviteAfterVerificationDto.prototype, "slug", void 0);
|
|
23
23
|
__decorate([
|
|
24
|
+
(0, class_validator_1.ValidateIf)((o) => o.selectedIndex === undefined),
|
|
24
25
|
(0, class_validator_1.IsEmail)(),
|
|
26
|
+
(0, class_transformer_1.Transform)(({ value }) => value === null || value === void 0 ? void 0 : value.trim().toLowerCase()),
|
|
25
27
|
(0, class_transformer_1.Expose)(),
|
|
26
28
|
__metadata("design:type", String)
|
|
27
29
|
], InviteAfterVerificationDto.prototype, "email", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], InviteAfterVerificationDto.prototype, "selectedIndex", void 0);
|
|
28
35
|
exports.InviteAfterVerificationDto = InviteAfterVerificationDto;
|
|
@@ -1,11 +1,25 @@
|
|
|
1
|
+
import { ProfileCurrencyEnum } from './enum/profile-currency';
|
|
1
2
|
export declare type PaymentSettingsRO = {
|
|
2
|
-
|
|
3
|
+
billingEmail?: string;
|
|
4
|
+
paymentMethod?: {
|
|
3
5
|
id: string;
|
|
4
6
|
brand: string;
|
|
5
7
|
last4: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
exp: string;
|
|
9
|
+
};
|
|
10
|
+
nextInvoice?: {
|
|
11
|
+
totalAmount: number;
|
|
12
|
+
date: number;
|
|
13
|
+
currency: ProfileCurrencyEnum;
|
|
14
|
+
plan: {
|
|
15
|
+
quantity: number;
|
|
16
|
+
amount: number;
|
|
17
|
+
currency: ProfileCurrencyEnum;
|
|
18
|
+
};
|
|
19
|
+
changes: Array<{
|
|
20
|
+
description: string;
|
|
21
|
+
amount: number;
|
|
22
|
+
currency: ProfileCurrencyEnum;
|
|
23
|
+
}>;
|
|
24
|
+
};
|
|
11
25
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
2
|
import { Languages } from '../shared/enum/languages.enum';
|
|
3
3
|
import { ResponseObject } from '../shared/ro';
|
|
4
|
-
import {
|
|
4
|
+
import { ProfileCurrencyEnum } from './enum/profile-currency';
|
|
5
|
+
import { ProfileStepEnum } from './enum/profile-step.enum';
|
|
5
6
|
export declare type ProfileRO = ResponseObject & {
|
|
6
7
|
title: string;
|
|
7
8
|
legalTitle: string;
|
|
@@ -15,14 +16,24 @@ export declare type ProfileRO = ResponseObject & {
|
|
|
15
16
|
facebook: string;
|
|
16
17
|
instagram: string;
|
|
17
18
|
comment: string;
|
|
19
|
+
agbId: number;
|
|
20
|
+
hasWidgets: boolean;
|
|
18
21
|
slug: string;
|
|
19
22
|
registrationRequestId: number;
|
|
20
23
|
language: Languages;
|
|
24
|
+
availableLanguages: Languages[];
|
|
21
25
|
country: CountriesEnum;
|
|
22
26
|
locationsCount: number;
|
|
23
27
|
questroomsCount: number;
|
|
28
|
+
questroomsDeletedCount: number;
|
|
24
29
|
lastVisit: Date;
|
|
25
30
|
stripeCustomer: string;
|
|
26
|
-
|
|
27
|
-
|
|
31
|
+
step: ProfileStepEnum;
|
|
32
|
+
subscriptionStatus: string;
|
|
33
|
+
subscription?: {
|
|
34
|
+
status: 'active' | 'past_due' | 'unpaid' | 'incomplete' | 'incomplete_expired' | 'paused' | 'trialing';
|
|
35
|
+
quantity: number;
|
|
36
|
+
currreny: ProfileCurrencyEnum;
|
|
37
|
+
cancel_at: number;
|
|
38
|
+
};
|
|
28
39
|
};
|
|
@@ -9,14 +9,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.UpdateProfileAgbDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
15
|
-
class
|
|
15
|
+
class UpdateProfileAgbDto {
|
|
16
16
|
}
|
|
17
17
|
__decorate([
|
|
18
18
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
19
19
|
(0, class_transformer_1.Expose)(),
|
|
20
20
|
__metadata("design:type", String)
|
|
21
|
-
],
|
|
22
|
-
exports.
|
|
21
|
+
], UpdateProfileAgbDto.prototype, "text", void 0);
|
|
22
|
+
exports.UpdateProfileAgbDto = UpdateProfileAgbDto;
|