@escapenavigator/types 1.6.17 → 1.6.19

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.
Files changed (60) hide show
  1. package/dist/cashbox/cashbox.ro.d.ts +3 -2
  2. package/dist/cashbox/create-cashbox.dto.d.ts +0 -2
  3. package/dist/cashbox/create-cashbox.dto.js +0 -11
  4. package/dist/cashbox/create-online-cashbox.dto.d.ts +11 -0
  5. package/dist/cashbox/create-online-cashbox.dto.js +59 -0
  6. package/dist/cashbox/update-online-cashbox.dto.d.ts +8 -0
  7. package/dist/cashbox/update-online-cashbox.dto.js +47 -0
  8. package/dist/certificate/certificate.ro.d.ts +1 -0
  9. package/dist/certificate/create-certificate.dto.d.ts +1 -0
  10. package/dist/certificate/create-certificate.dto.js +6 -1
  11. package/dist/certificate-sale/enum/certificatesales-status.enum.d.ts +1 -0
  12. package/dist/certificate-sale/enum/certificatesales-status.enum.js +1 -0
  13. package/dist/emails/email.ro.d.ts +12 -5
  14. package/dist/emails/email.ro.js +55 -0
  15. package/dist/emails/enum/email.status-enum.d.ts +7 -0
  16. package/dist/emails/enum/email.status-enum.js +11 -0
  17. package/dist/emails/index.d.ts +1 -0
  18. package/dist/emails/send-profile-email.dto.d.ts +6 -0
  19. package/dist/{profile/create-profile-message.dto.js → emails/send-profile-email.dto.js} +16 -7
  20. package/dist/order/create-order.dto.d.ts +8 -0
  21. package/dist/order/create-order.dto.js +20 -0
  22. package/dist/order/order.ro.d.ts +1 -0
  23. package/dist/order-upselling/create-order-upselling.dto.d.ts +0 -2
  24. package/dist/order-upselling/create-order-upselling.dto.js +0 -11
  25. package/dist/profile/action/create-profile-action.dto.d.ts +9 -0
  26. package/dist/profile/action/create-profile-action.dto.js +55 -0
  27. package/dist/profile/action/profile-action.dto.d.ts +17 -0
  28. package/dist/profile/action/profile-action.dto.js +68 -0
  29. package/dist/profile/admin-profile.ro.d.ts +2 -5
  30. package/dist/profile/admin-profile.ro.js +3 -8
  31. package/dist/questroom/create-questroom.dto.d.ts +1 -0
  32. package/dist/questroom/create-questroom.dto.js +6 -1
  33. package/dist/questroom/questroom.ro.d.ts +1 -0
  34. package/dist/slot/slot.ro.d.ts +1 -0
  35. package/dist/transaction/enum/transaction-source.enum.d.ts +3 -4
  36. package/dist/transaction/enum/transaction-source.enum.js +3 -4
  37. package/dist/tsconfig.build.tsbuildinfo +1 -1
  38. package/dist/widget-openapi/forms/widget-client-form.dto.d.ts +11 -0
  39. package/dist/widget-openapi/forms/widget-client-form.dto.js +66 -0
  40. package/dist/widget-openapi/forms/widget-embeded-first-form.dto.d.ts +8 -0
  41. package/dist/widget-openapi/forms/widget-embeded-first-form.dto.js +40 -0
  42. package/dist/widget-openapi/forms/widget-players-form.dto.d.ts +7 -0
  43. package/dist/widget-openapi/{order-service-create-certificate-payment.dto.js → forms/widget-players-form.dto.js} +24 -5
  44. package/dist/widget-openapi/openapi-create-order.dto.d.ts +0 -1
  45. package/dist/widget-openapi/openapi-create-order.dto.js +0 -5
  46. package/dist/widget-openapi/openapi-order.ro.d.ts +4 -5
  47. package/dist/widget-openapi/openapi-order.ro.js +20 -29
  48. package/dist/widget-openapi/openapi-preorder.ro.d.ts +53 -0
  49. package/dist/widget-openapi/openapi-preorder.ro.js +166 -0
  50. package/dist/widget-openapi/openapi-questroom.ro.d.ts +5 -9
  51. package/dist/widget-openapi/openapi-questroom.ro.js +11 -21
  52. package/dist/widget-openapi/openapi-widget.ro.d.ts +10 -1
  53. package/dist/widget-openapi/openapi-widget.ro.js +27 -2
  54. package/dist/widget-openapi/order-service-create-order-payment.dto.d.ts +1 -0
  55. package/dist/widget-openapi/order-service-create-order-payment.dto.js +5 -0
  56. package/package.json +2 -2
  57. package/dist/cashbox/update-cashbox.dto.d.ts +0 -5
  58. package/dist/cashbox/update-cashbox.dto.js +0 -8
  59. package/dist/profile/create-profile-message.dto.d.ts +0 -4
  60. package/dist/widget-openapi/order-service-create-certificate-payment.dto.d.ts +0 -3
@@ -1,9 +1,10 @@
1
1
  import { ResponseObject } from '../shared/ro';
2
+ import { PrepaymentTypeEnum } from '../slot/enum/prepayment-type.enum';
2
3
  import { CashboxTypeEnum } from './enum/cashbox-type.enum';
3
4
  export declare type CashboxRO = ResponseObject & {
4
5
  title: string;
5
6
  type: CashboxTypeEnum;
6
- description: string;
7
7
  identificator?: string;
8
- enabled?: boolean;
8
+ increase: number;
9
+ increaseType: PrepaymentTypeEnum;
9
10
  };
@@ -1,7 +1,5 @@
1
1
  import { CashboxTypeEnum } from './enum/cashbox-type.enum';
2
2
  export declare class CreateCashboxDto {
3
3
  title: string;
4
- description: string;
5
4
  type: CashboxTypeEnum;
6
- identificator?: string;
7
5
  }
@@ -21,20 +21,9 @@ __decorate([
21
21
  (0, class_transformer_1.Expose)(),
22
22
  __metadata("design:type", String)
23
23
  ], CreateCashboxDto.prototype, "title", void 0);
24
- __decorate([
25
- (0, class_validator_1.IsOptional)(),
26
- (0, class_transformer_1.Expose)(),
27
- __metadata("design:type", String)
28
- ], CreateCashboxDto.prototype, "description", void 0);
29
24
  __decorate([
30
25
  (0, class_validator_1.IsEnum)(cashbox_type_enum_1.CashboxTypeEnum),
31
26
  (0, class_transformer_1.Expose)(),
32
27
  __metadata("design:type", String)
33
28
  ], CreateCashboxDto.prototype, "type", void 0);
34
- __decorate([
35
- (0, class_validator_1.ValidateIf)((o) => o.type === cashbox_type_enum_1.CashboxTypeEnum.PAYPAL),
36
- (0, is_not_blank_1.IsNotBlank)(),
37
- (0, class_transformer_1.Expose)(),
38
- __metadata("design:type", String)
39
- ], CreateCashboxDto.prototype, "identificator", void 0);
40
29
  exports.CreateCashboxDto = CreateCashboxDto;
@@ -0,0 +1,11 @@
1
+ import { PrepaymentTypeEnum } from '../slot/enum/prepayment-type.enum';
2
+ import { CashboxTypeEnum } from './enum/cashbox-type.enum';
3
+ export declare class CreateOnlineCashboxDto {
4
+ title: string;
5
+ type: CashboxTypeEnum.PAYPAL | CashboxTypeEnum.STRIPE;
6
+ identificator?: string;
7
+ questroomsIds: number[];
8
+ certificatesIds: number[];
9
+ increase: number;
10
+ increaseType: PrepaymentTypeEnum;
11
+ }
@@ -0,0 +1,59 @@
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.CreateOnlineCashboxDto = 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 prepayment_type_enum_1 = require("../slot/enum/prepayment-type.enum");
17
+ const cashbox_type_enum_1 = require("./enum/cashbox-type.enum");
18
+ class CreateOnlineCashboxDto {
19
+ }
20
+ __decorate([
21
+ (0, is_not_blank_1.IsNotBlank)(),
22
+ (0, class_transformer_1.Expose)(),
23
+ __metadata("design:type", String)
24
+ ], CreateOnlineCashboxDto.prototype, "title", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsEnum)(cashbox_type_enum_1.CashboxTypeEnum),
27
+ (0, class_transformer_1.Expose)(),
28
+ __metadata("design:type", String)
29
+ ], CreateOnlineCashboxDto.prototype, "type", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.ValidateIf)((o) => o.type === cashbox_type_enum_1.CashboxTypeEnum.PAYPAL),
32
+ (0, is_not_blank_1.IsNotBlank)(),
33
+ (0, class_transformer_1.Expose)(),
34
+ __metadata("design:type", String)
35
+ ], CreateOnlineCashboxDto.prototype, "identificator", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.IsArray)(),
38
+ (0, class_validator_1.IsPositive)({ each: true }),
39
+ (0, class_transformer_1.Expose)(),
40
+ __metadata("design:type", Array)
41
+ ], CreateOnlineCashboxDto.prototype, "questroomsIds", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsArray)(),
44
+ (0, class_validator_1.IsPositive)({ each: true }),
45
+ (0, class_transformer_1.Expose)(),
46
+ __metadata("design:type", Array)
47
+ ], CreateOnlineCashboxDto.prototype, "certificatesIds", void 0);
48
+ __decorate([
49
+ (0, class_validator_1.ValidateIf)((o) => o.increaseType !== prepayment_type_enum_1.PrepaymentTypeEnum.NO),
50
+ (0, class_validator_1.IsNumber)(),
51
+ (0, class_transformer_1.Expose)(),
52
+ __metadata("design:type", Number)
53
+ ], CreateOnlineCashboxDto.prototype, "increase", void 0);
54
+ __decorate([
55
+ (0, class_validator_1.IsEnum)(prepayment_type_enum_1.PrepaymentTypeEnum),
56
+ (0, class_transformer_1.Expose)(),
57
+ __metadata("design:type", String)
58
+ ], CreateOnlineCashboxDto.prototype, "increaseType", void 0);
59
+ exports.CreateOnlineCashboxDto = CreateOnlineCashboxDto;
@@ -0,0 +1,8 @@
1
+ import { PrepaymentTypeEnum } from '../slot/enum/prepayment-type.enum';
2
+ export declare class UpdateOnlineCashboxDto {
3
+ title: string;
4
+ questroomsIds: number[];
5
+ certificatesIds: number[];
6
+ increase: number;
7
+ increaseType: PrepaymentTypeEnum;
8
+ }
@@ -0,0 +1,47 @@
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.UpdateOnlineCashboxDto = 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 prepayment_type_enum_1 = require("../slot/enum/prepayment-type.enum");
17
+ class UpdateOnlineCashboxDto {
18
+ }
19
+ __decorate([
20
+ (0, is_not_blank_1.IsNotBlank)(),
21
+ (0, class_transformer_1.Expose)(),
22
+ __metadata("design:type", String)
23
+ ], UpdateOnlineCashboxDto.prototype, "title", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsArray)(),
26
+ (0, class_validator_1.IsPositive)({ each: true }),
27
+ (0, class_transformer_1.Expose)(),
28
+ __metadata("design:type", Array)
29
+ ], UpdateOnlineCashboxDto.prototype, "questroomsIds", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsArray)(),
32
+ (0, class_validator_1.IsPositive)({ each: true }),
33
+ (0, class_transformer_1.Expose)(),
34
+ __metadata("design:type", Array)
35
+ ], UpdateOnlineCashboxDto.prototype, "certificatesIds", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.ValidateIf)((o) => o.increaseType !== prepayment_type_enum_1.PrepaymentTypeEnum.NO),
38
+ (0, class_validator_1.IsNumber)(),
39
+ (0, class_transformer_1.Expose)(),
40
+ __metadata("design:type", Number)
41
+ ], UpdateOnlineCashboxDto.prototype, "increase", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsEnum)(prepayment_type_enum_1.PrepaymentTypeEnum),
44
+ (0, class_transformer_1.Expose)(),
45
+ __metadata("design:type", String)
46
+ ], UpdateOnlineCashboxDto.prototype, "increaseType", void 0);
47
+ exports.UpdateOnlineCashboxDto = UpdateOnlineCashboxDto;
@@ -9,6 +9,7 @@ export declare type CertificateRO = ResponseObject & {
9
9
  emailPossibility: boolean;
10
10
  deliveryPrice: number;
11
11
  onlinePaymentsCashbox: number;
12
+ paypalCashbox: number;
12
13
  allQuestrooms: boolean;
13
14
  questroomsIds: number[];
14
15
  awailableForNavigator: boolean;
@@ -2,6 +2,7 @@ export declare class CreateCertificateDto {
2
2
  title: string;
3
3
  validity: number;
4
4
  onlinePaymentsCashbox: number;
5
+ paypalCashbox: number;
5
6
  nominals: number[];
6
7
  emailPossibility: boolean;
7
8
  pickupPossibility: boolean;
@@ -29,10 +29,15 @@ __decorate([
29
29
  __metadata("design:type", Number)
30
30
  ], CreateCertificateDto.prototype, "validity", void 0);
31
31
  __decorate([
32
- (0, class_validator_1.IsPositive)(),
32
+ (0, class_validator_1.IsOptional)(),
33
33
  (0, class_transformer_1.Expose)(),
34
34
  __metadata("design:type", Number)
35
35
  ], CreateCertificateDto.prototype, "onlinePaymentsCashbox", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.IsOptional)(),
38
+ (0, class_transformer_1.Expose)(),
39
+ __metadata("design:type", Number)
40
+ ], CreateCertificateDto.prototype, "paypalCashbox", void 0);
36
41
  __decorate([
37
42
  (0, class_validator_1.IsArray)(),
38
43
  (0, class_validator_1.ArrayMinSize)(1),
@@ -1,5 +1,6 @@
1
1
  export declare enum CertificatesaleStatusEnum {
2
2
  USED = "used",
3
+ PAID_NOT_USED = "paid_not_used",
3
4
  EXPIRED = "expired",
4
5
  EXTRA_PAYED = "extraPayed",
5
6
  SENDED = "sended",
@@ -4,6 +4,7 @@ exports.CertificatesaleStatusEnum = void 0;
4
4
  var CertificatesaleStatusEnum;
5
5
  (function (CertificatesaleStatusEnum) {
6
6
  CertificatesaleStatusEnum["USED"] = "used";
7
+ CertificatesaleStatusEnum["PAID_NOT_USED"] = "paid_not_used";
7
8
  CertificatesaleStatusEnum["EXPIRED"] = "expired";
8
9
  CertificatesaleStatusEnum["EXTRA_PAYED"] = "extraPayed";
9
10
  CertificatesaleStatusEnum["SENDED"] = "sended";
@@ -1,6 +1,13 @@
1
- import { ResponseObject } from '../shared/ro';
2
- export declare type EmailRO = ResponseObject & {
3
- profileId?: number;
1
+ import { EmailStatusEnum } from './enum/email.status-enum';
2
+ export declare class EmailRO {
3
+ id: number;
4
+ identificator: string;
4
5
  to: string;
5
- delivered: boolean;
6
- };
6
+ from: string;
7
+ status: EmailStatusEnum;
8
+ subject: string;
9
+ link: string;
10
+ clicks: string[];
11
+ markedAsSapm: boolean;
12
+ profileId: number;
13
+ }
@@ -1,2 +1,57 @@
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.EmailRO = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const email_status_enum_1 = require("./enum/email.status-enum");
15
+ class EmailRO {
16
+ }
17
+ __decorate([
18
+ (0, class_transformer_1.Expose)(),
19
+ __metadata("design:type", Number)
20
+ ], EmailRO.prototype, "id", void 0);
21
+ __decorate([
22
+ (0, class_transformer_1.Expose)(),
23
+ __metadata("design:type", String)
24
+ ], EmailRO.prototype, "identificator", void 0);
25
+ __decorate([
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", String)
28
+ ], EmailRO.prototype, "to", void 0);
29
+ __decorate([
30
+ (0, class_transformer_1.Expose)(),
31
+ __metadata("design:type", String)
32
+ ], EmailRO.prototype, "from", void 0);
33
+ __decorate([
34
+ (0, class_transformer_1.Expose)(),
35
+ __metadata("design:type", String)
36
+ ], EmailRO.prototype, "status", void 0);
37
+ __decorate([
38
+ (0, class_transformer_1.Expose)(),
39
+ __metadata("design:type", String)
40
+ ], EmailRO.prototype, "subject", void 0);
41
+ __decorate([
42
+ (0, class_transformer_1.Expose)(),
43
+ __metadata("design:type", String)
44
+ ], EmailRO.prototype, "link", void 0);
45
+ __decorate([
46
+ (0, class_transformer_1.Expose)(),
47
+ __metadata("design:type", Array)
48
+ ], EmailRO.prototype, "clicks", void 0);
49
+ __decorate([
50
+ (0, class_transformer_1.Expose)(),
51
+ __metadata("design:type", Boolean)
52
+ ], EmailRO.prototype, "markedAsSapm", void 0);
53
+ __decorate([
54
+ (0, class_transformer_1.Expose)(),
55
+ __metadata("design:type", Number)
56
+ ], EmailRO.prototype, "profileId", void 0);
57
+ exports.EmailRO = EmailRO;
@@ -0,0 +1,7 @@
1
+ export declare enum EmailStatusEnum {
2
+ SENT = "sent",
3
+ OPENED = "opened",
4
+ BOUNCED = "bounced",
5
+ SOFT_BOUNCED = "soft_bounced",
6
+ REJECTED = "rejected"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmailStatusEnum = void 0;
4
+ var EmailStatusEnum;
5
+ (function (EmailStatusEnum) {
6
+ EmailStatusEnum["SENT"] = "sent";
7
+ EmailStatusEnum["OPENED"] = "opened";
8
+ EmailStatusEnum["BOUNCED"] = "bounced";
9
+ EmailStatusEnum["SOFT_BOUNCED"] = "soft_bounced";
10
+ EmailStatusEnum["REJECTED"] = "rejected";
11
+ })(EmailStatusEnum = exports.EmailStatusEnum || (exports.EmailStatusEnum = {}));
@@ -23,6 +23,7 @@ declare type Context = {
23
23
  sections: Array<Divider | Bitton | Paragraph | List>;
24
24
  };
25
25
  export declare type SendEmailRequestParams = {
26
+ from?: string;
26
27
  to: string;
27
28
  logo: string;
28
29
  subject: string;
@@ -0,0 +1,6 @@
1
+ export declare class SendEmailDto {
2
+ text: string;
3
+ to: string;
4
+ from: string;
5
+ profileId: number;
6
+ }
@@ -9,20 +9,29 @@ 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.CreateProfileMessageDto = void 0;
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
- class CreateProfileMessageDto {
15
+ class SendEmailDto {
17
16
  }
18
17
  __decorate([
19
- (0, is_not_blank_1.IsNotBlank)(),
18
+ (0, class_validator_1.IsNotEmpty)(),
20
19
  (0, class_transformer_1.Expose)(),
21
20
  __metadata("design:type", String)
22
- ], CreateProfileMessageDto.prototype, "text", void 0);
21
+ ], SendEmailDto.prototype, "text", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsNotEmpty)(),
24
+ (0, class_transformer_1.Expose)(),
25
+ __metadata("design:type", String)
26
+ ], SendEmailDto.prototype, "to", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsNotEmpty)(),
29
+ (0, class_transformer_1.Expose)(),
30
+ __metadata("design:type", String)
31
+ ], SendEmailDto.prototype, "from", void 0);
23
32
  __decorate([
24
33
  (0, class_validator_1.IsPositive)(),
25
34
  (0, class_transformer_1.Expose)(),
26
35
  __metadata("design:type", Number)
27
- ], CreateProfileMessageDto.prototype, "profileId", void 0);
28
- exports.CreateProfileMessageDto = CreateProfileMessageDto;
36
+ ], SendEmailDto.prototype, "profileId", void 0);
37
+ exports.SendEmailDto = SendEmailDto;
@@ -2,6 +2,14 @@ import { Languages } from '../shared/enum/languages.enum';
2
2
  export declare class CreateOrderDto {
3
3
  slotId: number;
4
4
  players: number;
5
+ promocodeId: number;
6
+ certificateId: number;
7
+ certificateUploadedId: number;
8
+ upsellings: Array<{
9
+ id: number;
10
+ amount?: number;
11
+ comment?: string;
12
+ }>;
5
13
  clientId: number;
6
14
  language?: Languages;
7
15
  comment?: string;
@@ -25,6 +25,26 @@ __decorate([
25
25
  (0, class_transformer_1.Expose)(),
26
26
  __metadata("design:type", Number)
27
27
  ], CreateOrderDto.prototype, "players", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsOptional)(),
30
+ (0, class_transformer_1.Expose)(),
31
+ __metadata("design:type", Number)
32
+ ], CreateOrderDto.prototype, "promocodeId", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsOptional)(),
35
+ (0, class_transformer_1.Expose)(),
36
+ __metadata("design:type", Number)
37
+ ], CreateOrderDto.prototype, "certificateId", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsOptional)(),
40
+ (0, class_transformer_1.Expose)(),
41
+ __metadata("design:type", Number)
42
+ ], CreateOrderDto.prototype, "certificateUploadedId", void 0);
43
+ __decorate([
44
+ (0, class_validator_1.IsArray)(),
45
+ (0, class_transformer_1.Expose)(),
46
+ __metadata("design:type", Array)
47
+ ], CreateOrderDto.prototype, "upsellings", void 0);
28
48
  __decorate([
29
49
  (0, class_validator_1.IsNumber)(),
30
50
  (0, class_transformer_1.Expose)(),
@@ -16,6 +16,7 @@ export declare type OrderRO = ResponseObject & {
16
16
  moderatorId?: number;
17
17
  slotId?: number;
18
18
  slot?: {
19
+ expiration: string;
19
20
  rule: {
20
21
  prepayment: number;
21
22
  minHoursForBooking: number;
@@ -4,6 +4,4 @@ export declare class CreateOrderUpsellingDto {
4
4
  amount?: number;
5
5
  comment?: string;
6
6
  }>;
7
- orderId: number;
8
- sendNotification: boolean;
9
7
  }
@@ -20,15 +20,4 @@ __decorate([
20
20
  (0, class_transformer_1.Expose)(),
21
21
  __metadata("design:type", Array)
22
22
  ], CreateOrderUpsellingDto.prototype, "upsellings", void 0);
23
- __decorate([
24
- (0, class_validator_1.IsNumber)(),
25
- (0, class_transformer_1.Expose)(),
26
- __metadata("design:type", Number)
27
- ], CreateOrderUpsellingDto.prototype, "orderId", void 0);
28
- __decorate([
29
- (0, class_validator_1.IsBoolean)(),
30
- (0, class_transformer_1.Expose)(),
31
- (0, class_transformer_1.Transform)(({ value }) => (value === undefined ? false : value)),
32
- __metadata("design:type", Boolean)
33
- ], CreateOrderUpsellingDto.prototype, "sendNotification", void 0);
34
23
  exports.CreateOrderUpsellingDto = CreateOrderUpsellingDto;
@@ -0,0 +1,9 @@
1
+ export declare class CreateProfileActionDto {
2
+ type: string;
3
+ description: string;
4
+ date: string;
5
+ time: string;
6
+ profileId: number;
7
+ prevActionId: number;
8
+ prevResult: string;
9
+ }
@@ -0,0 +1,55 @@
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.CreateProfileActionDto = 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
+ class CreateProfileActionDto {
17
+ }
18
+ __decorate([
19
+ (0, is_not_blank_1.IsNotBlank)(),
20
+ (0, class_transformer_1.Expose)(),
21
+ __metadata("design:type", String)
22
+ ], CreateProfileActionDto.prototype, "type", void 0);
23
+ __decorate([
24
+ (0, is_not_blank_1.IsNotBlank)(),
25
+ (0, class_transformer_1.Expose)(),
26
+ __metadata("design:type", String)
27
+ ], CreateProfileActionDto.prototype, "description", void 0);
28
+ __decorate([
29
+ (0, is_not_blank_1.IsNotBlank)(),
30
+ (0, class_transformer_1.Expose)(),
31
+ __metadata("design:type", String)
32
+ ], CreateProfileActionDto.prototype, "date", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsOptional)(),
35
+ (0, class_validator_1.IsMilitaryTime)(),
36
+ (0, class_transformer_1.Expose)(),
37
+ __metadata("design:type", String)
38
+ ], CreateProfileActionDto.prototype, "time", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsPositive)(),
41
+ (0, class_transformer_1.Expose)(),
42
+ __metadata("design:type", Number)
43
+ ], CreateProfileActionDto.prototype, "profileId", void 0);
44
+ __decorate([
45
+ (0, class_validator_1.IsNumber)(),
46
+ (0, class_transformer_1.Expose)(),
47
+ __metadata("design:type", Number)
48
+ ], CreateProfileActionDto.prototype, "prevActionId", void 0);
49
+ __decorate([
50
+ (0, class_validator_1.ValidateIf)((o) => !!o.prevActionId),
51
+ (0, class_validator_1.MinLength)(20),
52
+ (0, class_transformer_1.Expose)(),
53
+ __metadata("design:type", String)
54
+ ], CreateProfileActionDto.prototype, "prevResult", void 0);
55
+ exports.CreateProfileActionDto = CreateProfileActionDto;
@@ -0,0 +1,17 @@
1
+ declare class Profile {
2
+ id: number;
3
+ title: string;
4
+ }
5
+ export declare class ProfileActionDto {
6
+ id: number;
7
+ profile: Profile;
8
+ createdAt: Date;
9
+ author: string;
10
+ type: string;
11
+ description: string;
12
+ result: string;
13
+ date: string;
14
+ time: string;
15
+ done: boolean;
16
+ }
17
+ export {};
@@ -0,0 +1,68 @@
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.ProfileActionDto = void 0;
13
+ /* eslint-disable max-classes-per-file */
14
+ const class_transformer_1 = require("class-transformer");
15
+ class Profile {
16
+ }
17
+ __decorate([
18
+ (0, class_transformer_1.Expose)(),
19
+ __metadata("design:type", Number)
20
+ ], Profile.prototype, "id", void 0);
21
+ __decorate([
22
+ (0, class_transformer_1.Expose)(),
23
+ __metadata("design:type", String)
24
+ ], Profile.prototype, "title", void 0);
25
+ class ProfileActionDto {
26
+ }
27
+ __decorate([
28
+ (0, class_transformer_1.Expose)(),
29
+ __metadata("design:type", Number)
30
+ ], ProfileActionDto.prototype, "id", void 0);
31
+ __decorate([
32
+ (0, class_transformer_1.Expose)(),
33
+ (0, class_transformer_1.Type)(() => Profile),
34
+ __metadata("design:type", Profile)
35
+ ], ProfileActionDto.prototype, "profile", void 0);
36
+ __decorate([
37
+ (0, class_transformer_1.Expose)(),
38
+ __metadata("design:type", Date)
39
+ ], ProfileActionDto.prototype, "createdAt", void 0);
40
+ __decorate([
41
+ (0, class_transformer_1.Expose)(),
42
+ __metadata("design:type", String)
43
+ ], ProfileActionDto.prototype, "author", void 0);
44
+ __decorate([
45
+ (0, class_transformer_1.Expose)(),
46
+ __metadata("design:type", String)
47
+ ], ProfileActionDto.prototype, "type", void 0);
48
+ __decorate([
49
+ (0, class_transformer_1.Expose)(),
50
+ __metadata("design:type", String)
51
+ ], ProfileActionDto.prototype, "description", void 0);
52
+ __decorate([
53
+ (0, class_transformer_1.Expose)(),
54
+ __metadata("design:type", String)
55
+ ], ProfileActionDto.prototype, "result", void 0);
56
+ __decorate([
57
+ (0, class_transformer_1.Expose)(),
58
+ __metadata("design:type", String)
59
+ ], ProfileActionDto.prototype, "date", void 0);
60
+ __decorate([
61
+ (0, class_transformer_1.Expose)(),
62
+ __metadata("design:type", String)
63
+ ], ProfileActionDto.prototype, "time", void 0);
64
+ __decorate([
65
+ (0, class_transformer_1.Expose)(),
66
+ __metadata("design:type", Boolean)
67
+ ], ProfileActionDto.prototype, "done", void 0);
68
+ exports.ProfileActionDto = ProfileActionDto;
@@ -1,9 +1,7 @@
1
1
  import { CountriesEnum } from '../shared/enum/countries.enum';
2
+ import { ProfileActionDto } from './action/profile-action.dto';
2
3
  import { ProfileStepEnum } from './enum/profile-step.enum';
3
4
  import { ProfileSubscriptionEnum } from './enum/profile-subscription.enum';
4
- declare class Message {
5
- text: string;
6
- }
7
5
  export declare class AdminProfileRO {
8
6
  id: number;
9
7
  createdAt: Date;
@@ -30,6 +28,5 @@ export declare class AdminProfileRO {
30
28
  step: ProfileStepEnum;
31
29
  updateStepDate: Date;
32
30
  crm: string;
33
- messages: Message[];
31
+ actions: ProfileActionDto[];
34
32
  }
35
- export {};