@escapenavigator/types 1.6.21 → 1.6.23
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/client/client.ro.d.ts +6 -6
- package/dist/client/client.ro.js +83 -0
- package/dist/emails/email.ro.d.ts +12 -4
- package/dist/emails/email.ro.js +32 -8
- package/dist/emails/enum/email.status-enum.d.ts +1 -0
- package/dist/emails/enum/email.status-enum.js +1 -0
- package/dist/emails/send-email.dto.d.ts +8 -0
- package/dist/emails/{send-profile-email.dto.js → send-email.dto.js} +11 -3
- package/dist/order/create-order.dto.d.ts +1 -0
- package/dist/order/order.ro.d.ts +65 -68
- package/dist/order/order.ro.js +299 -0
- package/dist/order/update-players.dto.d.ts +1 -2
- package/dist/order/update-players.dto.js +0 -6
- package/dist/order-upselling/create-order-upselling.dto.d.ts +1 -0
- package/dist/profile/action/create-profile-action.dto.js +2 -0
- package/dist/profile/admin-profile.ro.d.ts +2 -1
- package/dist/profile/admin-profile.ro.js +6 -4
- package/dist/profile/contacts/create-profile-contact.dto.d.ts +10 -0
- package/dist/profile/contacts/create-profile-contact.dto.js +57 -0
- package/dist/profile/contacts/profile-contact.ro.d.ts +11 -0
- package/dist/profile/contacts/profile-contact.ro.js +53 -0
- package/dist/profile/create-profile.dto.d.ts +0 -1
- package/dist/profile/create-profile.dto.js +0 -5
- package/dist/shared/ro-class.d.ts +4 -0
- package/dist/shared/ro-class.js +24 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/emails/send-profile-email.dto.d.ts +0 -6
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare
|
|
1
|
+
import { RO } from '../shared/ro-class';
|
|
2
|
+
export declare class PrevData {
|
|
3
|
+
}
|
|
4
|
+
export declare class ClientRO extends RO {
|
|
3
5
|
name: string;
|
|
4
6
|
surname: string;
|
|
5
7
|
phone: string;
|
|
@@ -8,13 +10,11 @@ export declare type ClientRO = ResponseObject & {
|
|
|
8
10
|
address: string;
|
|
9
11
|
city: string;
|
|
10
12
|
postcode: string;
|
|
11
|
-
aboutClient?: string;
|
|
12
13
|
sendAds: boolean;
|
|
13
14
|
lastOrderCreatedDate: string;
|
|
14
15
|
lastOrderDate: string;
|
|
15
|
-
trustIndex: number;
|
|
16
16
|
ordersCount: number;
|
|
17
17
|
certificatesCount: number;
|
|
18
18
|
blockedDate?: string;
|
|
19
|
-
previousData:
|
|
20
|
-
}
|
|
19
|
+
previousData: PrevData[];
|
|
20
|
+
}
|
package/dist/client/client.ro.js
CHANGED
|
@@ -1,2 +1,85 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ClientRO = exports.PrevData = void 0;
|
|
13
|
+
/* eslint-disable max-classes-per-file */
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const ro_class_1 = require("../shared/ro-class");
|
|
16
|
+
let PrevData = class PrevData {
|
|
17
|
+
};
|
|
18
|
+
PrevData = __decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)()
|
|
20
|
+
], PrevData);
|
|
21
|
+
exports.PrevData = PrevData;
|
|
22
|
+
class ClientRO extends ro_class_1.RO {
|
|
23
|
+
}
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], ClientRO.prototype, "name", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], ClientRO.prototype, "surname", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], ClientRO.prototype, "phone", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], ClientRO.prototype, "phone2", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], ClientRO.prototype, "email", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_transformer_1.Expose)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], ClientRO.prototype, "address", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], ClientRO.prototype, "city", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_transformer_1.Expose)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], ClientRO.prototype, "postcode", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_transformer_1.Expose)(),
|
|
58
|
+
__metadata("design:type", Boolean)
|
|
59
|
+
], ClientRO.prototype, "sendAds", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_transformer_1.Expose)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], ClientRO.prototype, "lastOrderCreatedDate", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_transformer_1.Expose)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], ClientRO.prototype, "lastOrderDate", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_transformer_1.Expose)(),
|
|
70
|
+
__metadata("design:type", Number)
|
|
71
|
+
], ClientRO.prototype, "ordersCount", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_transformer_1.Expose)(),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], ClientRO.prototype, "certificatesCount", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_transformer_1.Expose)(),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], ClientRO.prototype, "blockedDate", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, class_transformer_1.Expose)(),
|
|
82
|
+
(0, class_transformer_1.Type)(() => PrevData),
|
|
83
|
+
__metadata("design:type", Array)
|
|
84
|
+
], ClientRO.prototype, "previousData", void 0);
|
|
85
|
+
exports.ClientRO = ClientRO;
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { EmailStatusEnum } from './enum/email.status-enum';
|
|
2
|
+
declare class Profile {
|
|
3
|
+
id: number;
|
|
4
|
+
title: string;
|
|
5
|
+
}
|
|
2
6
|
export declare class EmailRO {
|
|
3
7
|
id: number;
|
|
4
|
-
|
|
8
|
+
createdAt: Date;
|
|
5
9
|
to: string;
|
|
10
|
+
replied: boolean;
|
|
6
11
|
from: string;
|
|
12
|
+
identificator: string;
|
|
7
13
|
status: EmailStatusEnum;
|
|
8
14
|
subject: string;
|
|
9
|
-
|
|
15
|
+
text: string;
|
|
16
|
+
html: string;
|
|
17
|
+
opens: number[];
|
|
10
18
|
clicks: string[];
|
|
11
|
-
|
|
12
|
-
profileId: number;
|
|
19
|
+
profile: Profile;
|
|
13
20
|
}
|
|
21
|
+
export {};
|
package/dist/emails/email.ro.js
CHANGED
|
@@ -10,8 +10,19 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.EmailRO = void 0;
|
|
13
|
+
/* eslint-disable max-classes-per-file */
|
|
13
14
|
const class_transformer_1 = require("class-transformer");
|
|
14
15
|
const email_status_enum_1 = require("./enum/email.status-enum");
|
|
16
|
+
class Profile {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], Profile.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_transformer_1.Expose)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], Profile.prototype, "title", void 0);
|
|
15
26
|
class EmailRO {
|
|
16
27
|
}
|
|
17
28
|
__decorate([
|
|
@@ -20,16 +31,24 @@ __decorate([
|
|
|
20
31
|
], EmailRO.prototype, "id", void 0);
|
|
21
32
|
__decorate([
|
|
22
33
|
(0, class_transformer_1.Expose)(),
|
|
23
|
-
__metadata("design:type",
|
|
24
|
-
], EmailRO.prototype, "
|
|
34
|
+
__metadata("design:type", Date)
|
|
35
|
+
], EmailRO.prototype, "createdAt", void 0);
|
|
25
36
|
__decorate([
|
|
26
37
|
(0, class_transformer_1.Expose)(),
|
|
27
38
|
__metadata("design:type", String)
|
|
28
39
|
], EmailRO.prototype, "to", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
__metadata("design:type", Boolean)
|
|
43
|
+
], EmailRO.prototype, "replied", void 0);
|
|
29
44
|
__decorate([
|
|
30
45
|
(0, class_transformer_1.Expose)(),
|
|
31
46
|
__metadata("design:type", String)
|
|
32
47
|
], EmailRO.prototype, "from", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], EmailRO.prototype, "identificator", void 0);
|
|
33
52
|
__decorate([
|
|
34
53
|
(0, class_transformer_1.Expose)(),
|
|
35
54
|
__metadata("design:type", String)
|
|
@@ -41,17 +60,22 @@ __decorate([
|
|
|
41
60
|
__decorate([
|
|
42
61
|
(0, class_transformer_1.Expose)(),
|
|
43
62
|
__metadata("design:type", String)
|
|
44
|
-
], EmailRO.prototype, "
|
|
63
|
+
], EmailRO.prototype, "text", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_transformer_1.Expose)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], EmailRO.prototype, "html", void 0);
|
|
45
68
|
__decorate([
|
|
46
69
|
(0, class_transformer_1.Expose)(),
|
|
47
70
|
__metadata("design:type", Array)
|
|
48
|
-
], EmailRO.prototype, "
|
|
71
|
+
], EmailRO.prototype, "opens", void 0);
|
|
49
72
|
__decorate([
|
|
50
73
|
(0, class_transformer_1.Expose)(),
|
|
51
|
-
__metadata("design:type",
|
|
52
|
-
], EmailRO.prototype, "
|
|
74
|
+
__metadata("design:type", Array)
|
|
75
|
+
], EmailRO.prototype, "clicks", void 0);
|
|
53
76
|
__decorate([
|
|
54
77
|
(0, class_transformer_1.Expose)(),
|
|
55
|
-
|
|
56
|
-
|
|
78
|
+
(0, class_transformer_1.Type)(() => Profile),
|
|
79
|
+
__metadata("design:type", Profile)
|
|
80
|
+
], EmailRO.prototype, "profile", void 0);
|
|
57
81
|
exports.EmailRO = EmailRO;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EmailStatusEnum = void 0;
|
|
4
4
|
var EmailStatusEnum;
|
|
5
5
|
(function (EmailStatusEnum) {
|
|
6
|
+
EmailStatusEnum["PENDING"] = "pending";
|
|
6
7
|
EmailStatusEnum["SENT"] = "sent";
|
|
7
8
|
EmailStatusEnum["INBOX"] = "inbox";
|
|
8
9
|
EmailStatusEnum["OPENED"] = "opened";
|
|
@@ -12,24 +12,32 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.SendEmailDto = 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
|
+
const email_senders_1 = require("./enum/email.senders");
|
|
15
17
|
class SendEmailDto {
|
|
16
18
|
}
|
|
17
19
|
__decorate([
|
|
18
|
-
(0,
|
|
20
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
19
21
|
(0, class_transformer_1.Expose)(),
|
|
20
22
|
__metadata("design:type", String)
|
|
21
23
|
], SendEmailDto.prototype, "text", void 0);
|
|
22
24
|
__decorate([
|
|
23
|
-
(0, class_validator_1.
|
|
25
|
+
(0, class_validator_1.IsEmail)(),
|
|
24
26
|
(0, class_transformer_1.Expose)(),
|
|
25
27
|
__metadata("design:type", String)
|
|
26
28
|
], SendEmailDto.prototype, "to", void 0);
|
|
27
29
|
__decorate([
|
|
28
|
-
(0, class_validator_1.
|
|
30
|
+
(0, class_validator_1.IsEnum)(email_senders_1.EmailSenderEnum),
|
|
29
31
|
(0, class_transformer_1.Expose)(),
|
|
30
32
|
__metadata("design:type", String)
|
|
31
33
|
], SendEmailDto.prototype, "from", void 0);
|
|
32
34
|
__decorate([
|
|
35
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], SendEmailDto.prototype, "subject", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
41
|
(0, class_validator_1.IsPositive)(),
|
|
34
42
|
(0, class_transformer_1.Expose)(),
|
|
35
43
|
__metadata("design:type", Number)
|
package/dist/order/order.ro.d.ts
CHANGED
|
@@ -2,30 +2,72 @@ import { ClientRO } from '../client/client.ro';
|
|
|
2
2
|
import { OrderPenaltyTypeEnum } from '../order-penalty/enum/order-penalty-type.enum';
|
|
3
3
|
import { QuestroomCancelationTypeEnum } from '../questroom/enum/questroom-cancelation-type.enum';
|
|
4
4
|
import { Languages } from '../shared/enum/languages.enum';
|
|
5
|
-
import {
|
|
5
|
+
import { RO } from '../shared/ro-class';
|
|
6
6
|
import { SourceEnum } from '../shared/source.enum';
|
|
7
7
|
import { PrepaymentTypeEnum } from '../slot/enum/prepayment-type.enum';
|
|
8
8
|
import { TransactionSourceEnum } from '../transaction/enum/transaction-source.enum';
|
|
9
9
|
import { TransactionTypeEnum } from '../transaction/enum/transaction-type.enum';
|
|
10
10
|
import { UserMessageResponseObject } from '../user-message/user-message.ro';
|
|
11
11
|
import { OrderCancelReasonEnum } from './enum/order-cancel-reson.enum';
|
|
12
|
-
|
|
12
|
+
declare class Rule {
|
|
13
|
+
prepayment: number;
|
|
14
|
+
minHoursForBooking: number;
|
|
15
|
+
prepaymentType: PrepaymentTypeEnum;
|
|
16
|
+
cancelationRule: QuestroomCancelationTypeEnum;
|
|
17
|
+
minHoursForFreeCanceling: number;
|
|
18
|
+
}
|
|
19
|
+
declare class Slot {
|
|
20
|
+
expiration: string;
|
|
21
|
+
rule: Rule;
|
|
22
|
+
}
|
|
23
|
+
declare class Certificates extends RO {
|
|
24
|
+
nominal: number;
|
|
25
|
+
code: string;
|
|
26
|
+
userId: number;
|
|
27
|
+
certificateId: number;
|
|
28
|
+
orderId: number;
|
|
29
|
+
}
|
|
30
|
+
declare class Discounts extends RO {
|
|
31
|
+
reason: string;
|
|
32
|
+
amount: number;
|
|
33
|
+
userId: number;
|
|
34
|
+
}
|
|
35
|
+
declare class Promocodes extends RO {
|
|
36
|
+
amount: number;
|
|
37
|
+
code: string;
|
|
38
|
+
userId: number;
|
|
39
|
+
}
|
|
40
|
+
declare class Upsellings extends RO {
|
|
41
|
+
title: string;
|
|
42
|
+
comment?: string;
|
|
43
|
+
amount: number;
|
|
44
|
+
userId: number;
|
|
45
|
+
}
|
|
46
|
+
declare class Penalties extends RO {
|
|
47
|
+
reason: string;
|
|
48
|
+
type: OrderPenaltyTypeEnum;
|
|
49
|
+
amount: number;
|
|
50
|
+
userId: number;
|
|
51
|
+
}
|
|
52
|
+
declare class Transactions extends RO {
|
|
53
|
+
type: TransactionTypeEnum;
|
|
54
|
+
provider: TransactionSourceEnum;
|
|
55
|
+
cashboxId: number;
|
|
56
|
+
paymentId: string;
|
|
57
|
+
comment: string;
|
|
58
|
+
amount: number;
|
|
59
|
+
userId: number;
|
|
60
|
+
}
|
|
61
|
+
export declare class OrderRO extends RO {
|
|
62
|
+
profileId: number;
|
|
63
|
+
updatedAt: Date;
|
|
13
64
|
language?: Languages;
|
|
14
65
|
price: {
|
|
15
66
|
[x: string]: number;
|
|
16
67
|
};
|
|
17
68
|
moderatorId?: number;
|
|
18
69
|
slotId?: number;
|
|
19
|
-
slot?:
|
|
20
|
-
expiration: string;
|
|
21
|
-
rule: {
|
|
22
|
-
prepayment: number;
|
|
23
|
-
minHoursForBooking: number;
|
|
24
|
-
prepaymentType: PrepaymentTypeEnum;
|
|
25
|
-
cancelationRule: QuestroomCancelationTypeEnum;
|
|
26
|
-
minHoursForFreeCanceling: number;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
70
|
+
slot?: Slot;
|
|
29
71
|
payed: number;
|
|
30
72
|
code: string;
|
|
31
73
|
total: number;
|
|
@@ -34,64 +76,19 @@ export declare type OrderRO = ResponseObject & {
|
|
|
34
76
|
cancelationType: OrderCancelReasonEnum;
|
|
35
77
|
utcDate: string;
|
|
36
78
|
result: number;
|
|
79
|
+
resultRating: number;
|
|
80
|
+
comment: string;
|
|
37
81
|
photos: string[];
|
|
38
82
|
source: SourceEnum;
|
|
39
83
|
client: ClientRO;
|
|
40
84
|
messages: UserMessageResponseObject[];
|
|
41
85
|
questroomId: number;
|
|
42
|
-
certificates:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
code: string;
|
|
52
|
-
userId: number;
|
|
53
|
-
certificateId: number;
|
|
54
|
-
orderId: number;
|
|
55
|
-
}>;
|
|
56
|
-
upsellings: Array<{
|
|
57
|
-
id: number;
|
|
58
|
-
title: string;
|
|
59
|
-
comment?: string;
|
|
60
|
-
amount: number;
|
|
61
|
-
createdAt: Date;
|
|
62
|
-
userId: number;
|
|
63
|
-
}>;
|
|
64
|
-
discounts: Array<{
|
|
65
|
-
id: number;
|
|
66
|
-
reason: string;
|
|
67
|
-
amount: number;
|
|
68
|
-
createdAt: Date;
|
|
69
|
-
userId: number;
|
|
70
|
-
}>;
|
|
71
|
-
promocodes: Array<{
|
|
72
|
-
id: number;
|
|
73
|
-
amount: number;
|
|
74
|
-
code: string;
|
|
75
|
-
createdAt: Date;
|
|
76
|
-
userId: number;
|
|
77
|
-
}>;
|
|
78
|
-
penalties: Array<{
|
|
79
|
-
id: number;
|
|
80
|
-
reason: string;
|
|
81
|
-
type: OrderPenaltyTypeEnum;
|
|
82
|
-
amount: number;
|
|
83
|
-
userId: number;
|
|
84
|
-
createdAt: Date;
|
|
85
|
-
}>;
|
|
86
|
-
transactions: Array<{
|
|
87
|
-
id: number;
|
|
88
|
-
type: TransactionTypeEnum;
|
|
89
|
-
provider: TransactionSourceEnum;
|
|
90
|
-
cashboxId: number;
|
|
91
|
-
paymentId: string;
|
|
92
|
-
comment: string;
|
|
93
|
-
amount: number;
|
|
94
|
-
userId: number;
|
|
95
|
-
createdAt: Date;
|
|
96
|
-
}>;
|
|
97
|
-
};
|
|
86
|
+
certificates: Certificates[];
|
|
87
|
+
uploadedCertificates: Certificates[];
|
|
88
|
+
upsellings: Upsellings[];
|
|
89
|
+
discounts: Discounts[];
|
|
90
|
+
promocodes: Promocodes[];
|
|
91
|
+
penalties: Penalties[];
|
|
92
|
+
transactions: Transactions[];
|
|
93
|
+
}
|
|
94
|
+
export {};
|