@escapenavigator/types 1.10.0 → 1.10.2
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/google-calendar/google-calendar.ro.d.ts +2 -0
- package/dist/google-calendar/google-calendar.ro.js +5 -0
- package/dist/google-calendar/update-google-calendar.dto.d.ts +3 -0
- package/dist/google-calendar/update-google-calendar.dto.js +6 -0
- package/dist/profile/admin-profile.ro.d.ts +1 -0
- package/dist/profile/admin-profile.ro.js +4 -0
- package/dist/profile/agregator-profile.ro.d.ts +1 -0
- package/dist/profile/create-profile.dto.d.ts +1 -0
- package/dist/profile/create-profile.dto.js +5 -0
- package/dist/profile/cross-sale/up-sale/up-sale.dto.js +1 -1
- package/dist/profile/notification-chanel/create-notification-chanel.dto.d.ts +11 -0
- package/dist/profile/notification-chanel/create-notification-chanel.dto.js +57 -0
- package/dist/profile/notification-chanel/notification-chanel-action.enum.d.ts +8 -0
- package/dist/profile/notification-chanel/notification-chanel-action.enum.js +12 -0
- package/dist/profile/notification-chanel/notification-chanel-query.dto.d.ts +5 -0
- package/dist/{webhook/create-webhook.dto.js → profile/notification-chanel/notification-chanel-query.dto.js} +10 -10
- package/dist/profile/notification-chanel/notification-chanel-type.enum.d.ts +6 -0
- package/dist/profile/notification-chanel/notification-chanel-type.enum.js +10 -0
- package/dist/profile/notification-chanel/notification-chanel.ro.d.ts +13 -0
- package/dist/profile/{telegram/telegram-chanel.ro.js → notification-chanel/notification-chanel.ro.js} +18 -9
- package/dist/role/create-role.dto.d.ts +1 -0
- package/dist/role/create-role.dto.js +5 -0
- package/dist/role/role.ro.d.ts +1 -0
- package/dist/role/role.ro.js +4 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user/crud/user.ro.d.ts +2 -2
- package/dist/user/crud/user.ro.js +1 -1
- package/dist/user/current/update-current-user-notifications.dto.d.ts +2 -2
- package/dist/user/current/update-current-user-notifications.dto.js +1 -1
- package/dist/user/sessions/query-session.dto.d.ts +5 -0
- package/dist/{profile/telegram/create-telegram-chanel.dto.js → user/sessions/query-session.dto.js} +12 -12
- package/package.json +2 -2
- package/dist/profile/telegram/create-telegram-chanel.dto.d.ts +0 -6
- package/dist/profile/telegram/telegram-chanel.ro.d.ts +0 -10
- package/dist/profile/telegram/telegram-notification-type.enum.d.ts +0 -4
- package/dist/profile/telegram/telegram-notification-type.enum.js +0 -8
- package/dist/user/enum/notification.enum.d.ts +0 -9
- package/dist/user/enum/notification.enum.js +0 -13
- package/dist/webhook/create-webhook.dto.d.ts +0 -5
- package/dist/webhook/webhook-type.enum.d.ts +0 -5
- package/dist/webhook/webhook-type.enum.js +0 -9
- package/dist/webhook/webhook.ro.d.ts +0 -6
- package/dist/webhook/webhook.ro.js +0 -25
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { OpenapiTariffRO } from '../openapi/shared/openapi-tariff.ro';
|
|
1
2
|
import { RO } from '../shared/ro-class';
|
|
2
3
|
export declare class GoogleCalendarRO extends RO {
|
|
3
4
|
calendarId: string;
|
|
4
5
|
title: string;
|
|
5
6
|
allLocations: boolean;
|
|
6
7
|
locationIds: number[];
|
|
8
|
+
colors: OpenapiTariffRO;
|
|
7
9
|
}
|
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.GoogleCalendarRO = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const openapi_tariff_ro_1 = require("../openapi/shared/openapi-tariff.ro");
|
|
14
15
|
const ro_class_1 = require("../shared/ro-class");
|
|
15
16
|
class GoogleCalendarRO extends ro_class_1.RO {
|
|
16
17
|
}
|
|
@@ -30,4 +31,8 @@ __decorate([
|
|
|
30
31
|
(0, class_transformer_1.Expose)(),
|
|
31
32
|
__metadata("design:type", Array)
|
|
32
33
|
], GoogleCalendarRO.prototype, "locationIds", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", openapi_tariff_ro_1.OpenapiTariffRO)
|
|
37
|
+
], GoogleCalendarRO.prototype, "colors", void 0);
|
|
33
38
|
exports.GoogleCalendarRO = GoogleCalendarRO;
|
|
@@ -27,4 +27,10 @@ __decorate([
|
|
|
27
27
|
(0, class_transformer_1.Expose)(),
|
|
28
28
|
__metadata("design:type", Array)
|
|
29
29
|
], UpdateGoogleCalendarDto.prototype, "locationIds", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
(0, class_validator_1.IsObject)(),
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], UpdateGoogleCalendarDto.prototype, "colors", void 0);
|
|
30
36
|
exports.UpdateGoogleCalendarDto = UpdateGoogleCalendarDto;
|
|
@@ -98,6 +98,10 @@ __decorate([
|
|
|
98
98
|
(0, class_transformer_1.Expose)(),
|
|
99
99
|
__metadata("design:type", String)
|
|
100
100
|
], AdminProfileRO.prototype, "legalTitle", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, class_transformer_1.Expose)(),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], AdminProfileRO.prototype, "inn", void 0);
|
|
101
105
|
__decorate([
|
|
102
106
|
(0, class_transformer_1.Expose)(),
|
|
103
107
|
__metadata("design:type", String)
|
|
@@ -94,6 +94,11 @@ __decorate([
|
|
|
94
94
|
(0, class_transformer_1.Expose)(),
|
|
95
95
|
__metadata("design:type", String)
|
|
96
96
|
], CreateProfileDto.prototype, "legalTitle", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, class_validator_1.IsOptional)(),
|
|
99
|
+
(0, class_transformer_1.Expose)(),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], CreateProfileDto.prototype, "inn", void 0);
|
|
97
102
|
__decorate([
|
|
98
103
|
(0, class_validator_1.IsOptional)(),
|
|
99
104
|
(0, class_validator_1.IsString)(),
|
|
@@ -24,7 +24,7 @@ __decorate([
|
|
|
24
24
|
__decorate([
|
|
25
25
|
(0, class_validator_1.IsPositive)(),
|
|
26
26
|
(0, class_validator_1.Min)(1),
|
|
27
|
-
(0, class_validator_1.Max)(
|
|
27
|
+
(0, class_validator_1.Max)(72),
|
|
28
28
|
(0, class_transformer_1.Expose)(),
|
|
29
29
|
__metadata("design:type", Number)
|
|
30
30
|
], UpSaleDto.prototype, "sendBefore", void 0);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NotificationTriggerEnum } from './notification-chanel-action.enum';
|
|
2
|
+
import { NotificationChanelTypeEnum } from './notification-chanel-type.enum';
|
|
3
|
+
export declare class CreateNotificationChanelDto {
|
|
4
|
+
title: string;
|
|
5
|
+
userId: number;
|
|
6
|
+
url: string;
|
|
7
|
+
type: NotificationChanelTypeEnum;
|
|
8
|
+
notificationTriggers: NotificationTriggerEnum[];
|
|
9
|
+
allLocations: boolean;
|
|
10
|
+
locationIds: number[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.CreateNotificationChanelDto = 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
|
+
const notification_chanel_type_enum_1 = require("./notification-chanel-type.enum");
|
|
17
|
+
class CreateNotificationChanelDto {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateNotificationChanelDto.prototype, "title", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], CreateNotificationChanelDto.prototype, "userId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CreateNotificationChanelDto.prototype, "url", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], CreateNotificationChanelDto.prototype, "type", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsArray)(),
|
|
41
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
__metadata("design:type", Array)
|
|
44
|
+
], CreateNotificationChanelDto.prototype, "notificationTriggers", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsBoolean)(),
|
|
47
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'boolean' ? value : false)),
|
|
48
|
+
(0, class_transformer_1.Expose)(),
|
|
49
|
+
__metadata("design:type", Boolean)
|
|
50
|
+
], CreateNotificationChanelDto.prototype, "allLocations", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsArray)(),
|
|
53
|
+
(0, class_transformer_1.Transform)(({ value }) => (value && value.length ? value : [])),
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
__metadata("design:type", Array)
|
|
56
|
+
], CreateNotificationChanelDto.prototype, "locationIds", void 0);
|
|
57
|
+
exports.CreateNotificationChanelDto = CreateNotificationChanelDto;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationTriggerEnum = void 0;
|
|
4
|
+
var NotificationTriggerEnum;
|
|
5
|
+
(function (NotificationTriggerEnum) {
|
|
6
|
+
NotificationTriggerEnum["NEW_ORDER"] = "new-order";
|
|
7
|
+
NotificationTriggerEnum["UPDATE_ORDER_DATE"] = "update-order-date";
|
|
8
|
+
NotificationTriggerEnum["CANCEL_ORDER"] = "cancel-order";
|
|
9
|
+
NotificationTriggerEnum["ASSIGNMENTS"] = "assigments";
|
|
10
|
+
NotificationTriggerEnum["CERTIFICATE_SALES"] = "certificate-sale";
|
|
11
|
+
NotificationTriggerEnum["UNASSIGNMENTS"] = "unassigments";
|
|
12
|
+
})(NotificationTriggerEnum = exports.NotificationTriggerEnum || (exports.NotificationTriggerEnum = {}));
|
|
@@ -9,20 +9,20 @@ 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.NotificationChanelQueryDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
|
|
15
|
+
const notification_chanel_type_enum_1 = require("./notification-chanel-type.enum");
|
|
16
|
+
class NotificationChanelQueryDto {
|
|
16
17
|
}
|
|
17
18
|
__decorate([
|
|
18
|
-
(0, class_validator_1.
|
|
19
|
+
(0, class_validator_1.IsOptional)(),
|
|
19
20
|
(0, class_transformer_1.Expose)(),
|
|
20
|
-
__metadata("design:type",
|
|
21
|
-
],
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], NotificationChanelQueryDto.prototype, "userId", void 0);
|
|
22
23
|
__decorate([
|
|
23
|
-
(0, class_validator_1.
|
|
24
|
-
(0, class_validator_1.ArrayMinSize)(1),
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
25
|
(0, class_transformer_1.Expose)(),
|
|
26
|
-
__metadata("design:type",
|
|
27
|
-
],
|
|
28
|
-
exports.
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], NotificationChanelQueryDto.prototype, "type", void 0);
|
|
28
|
+
exports.NotificationChanelQueryDto = NotificationChanelQueryDto;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationChanelTypeEnum = void 0;
|
|
4
|
+
var NotificationChanelTypeEnum;
|
|
5
|
+
(function (NotificationChanelTypeEnum) {
|
|
6
|
+
NotificationChanelTypeEnum["TELEGRAM"] = "telegram";
|
|
7
|
+
NotificationChanelTypeEnum["DISCORD"] = "discord";
|
|
8
|
+
NotificationChanelTypeEnum["WEBHOOK"] = "webhook";
|
|
9
|
+
NotificationChanelTypeEnum["SLACK"] = "slack";
|
|
10
|
+
})(NotificationChanelTypeEnum = exports.NotificationChanelTypeEnum || (exports.NotificationChanelTypeEnum = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RO } from '../../shared/ro-class';
|
|
2
|
+
import { NotificationTriggerEnum } from './notification-chanel-action.enum';
|
|
3
|
+
import { NotificationChanelTypeEnum } from './notification-chanel-type.enum';
|
|
4
|
+
export declare class NotificationChanelRO extends RO {
|
|
5
|
+
url: string;
|
|
6
|
+
userId: number;
|
|
7
|
+
type: NotificationChanelTypeEnum;
|
|
8
|
+
title: string;
|
|
9
|
+
notificationTriggers: NotificationTriggerEnum[];
|
|
10
|
+
allLocations: boolean;
|
|
11
|
+
locationIds: number[];
|
|
12
|
+
profileId: number;
|
|
13
|
+
}
|
|
@@ -9,33 +9,42 @@ 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.NotificationChanelRO = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const ro_class_1 = require("../../shared/ro-class");
|
|
15
|
-
|
|
15
|
+
const notification_chanel_type_enum_1 = require("./notification-chanel-type.enum");
|
|
16
|
+
class NotificationChanelRO extends ro_class_1.RO {
|
|
16
17
|
}
|
|
17
18
|
__decorate([
|
|
18
19
|
(0, class_transformer_1.Expose)(),
|
|
19
20
|
__metadata("design:type", String)
|
|
20
|
-
],
|
|
21
|
+
], NotificationChanelRO.prototype, "url", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_transformer_1.Expose)(),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], NotificationChanelRO.prototype, "userId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], NotificationChanelRO.prototype, "type", void 0);
|
|
21
30
|
__decorate([
|
|
22
31
|
(0, class_transformer_1.Expose)(),
|
|
23
32
|
__metadata("design:type", String)
|
|
24
|
-
],
|
|
33
|
+
], NotificationChanelRO.prototype, "title", void 0);
|
|
25
34
|
__decorate([
|
|
26
35
|
(0, class_transformer_1.Expose)(),
|
|
27
36
|
__metadata("design:type", Array)
|
|
28
|
-
],
|
|
37
|
+
], NotificationChanelRO.prototype, "notificationTriggers", void 0);
|
|
29
38
|
__decorate([
|
|
30
39
|
(0, class_transformer_1.Expose)(),
|
|
31
40
|
__metadata("design:type", Boolean)
|
|
32
|
-
],
|
|
41
|
+
], NotificationChanelRO.prototype, "allLocations", void 0);
|
|
33
42
|
__decorate([
|
|
34
43
|
(0, class_transformer_1.Expose)(),
|
|
35
44
|
__metadata("design:type", Array)
|
|
36
|
-
],
|
|
45
|
+
], NotificationChanelRO.prototype, "locationIds", void 0);
|
|
37
46
|
__decorate([
|
|
38
47
|
(0, class_transformer_1.Expose)(),
|
|
39
48
|
__metadata("design:type", Number)
|
|
40
|
-
],
|
|
41
|
-
exports.
|
|
49
|
+
], NotificationChanelRO.prototype, "profileId", void 0);
|
|
50
|
+
exports.NotificationChanelRO = NotificationChanelRO;
|
|
@@ -32,6 +32,11 @@ __decorate([
|
|
|
32
32
|
(0, class_transformer_1.Expose)(),
|
|
33
33
|
__metadata("design:type", Boolean)
|
|
34
34
|
], CreateRoleDto.prototype, "canEditUsersAccessAndTime", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
(0, class_transformer_1.Transform)(({ value }) => (value !== undefined ? value : false)),
|
|
38
|
+
__metadata("design:type", Boolean)
|
|
39
|
+
], CreateRoleDto.prototype, "canSeeOnlyHisBookings", void 0);
|
|
35
40
|
__decorate([
|
|
36
41
|
(0, class_validator_1.IsBoolean)(),
|
|
37
42
|
(0, class_transformer_1.Transform)(({ value }) => (value !== undefined ? value : false)),
|
package/dist/role/role.ro.d.ts
CHANGED
package/dist/role/role.ro.js
CHANGED
|
@@ -26,6 +26,10 @@ __decorate([
|
|
|
26
26
|
(0, class_transformer_1.Expose)(),
|
|
27
27
|
__metadata("design:type", Boolean)
|
|
28
28
|
], RoleRO.prototype, "canEditUsersAccessAndTime", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", Boolean)
|
|
32
|
+
], RoleRO.prototype, "canSeeOnlyHisBookings", void 0);
|
|
29
33
|
__decorate([
|
|
30
34
|
(0, class_transformer_1.Expose)(),
|
|
31
35
|
__metadata("design:type", Boolean)
|