@escapenavigator/types 1.4.74 → 1.4.76

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 (63) hide show
  1. package/dist/admin/admin.ro.d.ts +20 -3
  2. package/dist/admin/create-admin.dto.d.ts +20 -0
  3. package/dist/admin/create-admin.dto.js +110 -0
  4. package/dist/admin/current-admin.ro.d.ts +2 -2
  5. package/dist/agregator/agregator-questroom.ro.d.ts +0 -1
  6. package/dist/certificate-sale/enum/certificatesales-status.enum.d.ts +11 -0
  7. package/dist/certificate-sale/enum/certificatesales-status.enum.js +15 -0
  8. package/dist/certificate-sale/query-certificatesale.dto.d.ts +5 -5
  9. package/dist/certificate-sale/query-certificatesale.dto.js +12 -8
  10. package/dist/client/query-client.dto.d.ts +9 -0
  11. package/dist/client/query-client.dto.js +58 -0
  12. package/dist/order/cancel-order.dto.d.ts +3 -2
  13. package/dist/order/cancel-order.dto.js +7 -2
  14. package/dist/order/enum/order-status.enum.d.ts +11 -0
  15. package/dist/order/enum/order-status.enum.js +15 -0
  16. package/dist/order/order.ro.d.ts +9 -0
  17. package/dist/order/query-order.dto.d.ts +6 -8
  18. package/dist/order/query-order.dto.js +24 -24
  19. package/dist/profile/agregator-profile.ro.d.ts +0 -13
  20. package/dist/profile/create-profile.dto.d.ts +11 -10
  21. package/dist/profile/create-profile.dto.js +36 -26
  22. package/dist/profile/invoice.ro.d.ts +1 -0
  23. package/dist/profile/profile.ro.d.ts +24 -11
  24. package/dist/profile/update-current.dto.d.ts +16 -0
  25. package/dist/profile/update-current.dto.js +87 -0
  26. package/dist/questroom/create-questroom.dto.d.ts +0 -8
  27. package/dist/questroom/create-questroom.dto.js +2 -43
  28. package/dist/questroom/questroom.ro.d.ts +25 -22
  29. package/dist/slot/create-slot.dto.d.ts +4 -0
  30. package/dist/slot/create-slot.dto.js +20 -0
  31. package/dist/slot/slot.ro.d.ts +4 -0
  32. package/dist/slot/{remove-breaks.dto.d.ts → update-breaks.dto.d.ts} +2 -1
  33. package/dist/slot/{add-breaks.dto.js → update-breaks.dto.js} +16 -10
  34. package/dist/slot/update-few.dto.d.ts +15 -0
  35. package/dist/slot/update-few.dto.js +81 -0
  36. package/dist/slot-template/copy-template.dto.d.ts +4 -0
  37. package/dist/slot-template/copy-template.dto.js +27 -0
  38. package/dist/slot-template/slot-template-element.d.ts +4 -0
  39. package/dist/slot-template/update-slot-template-first-step.dto.d.ts +1 -2
  40. package/dist/slot-template/update-slot-template-first-step.dto.js +5 -10
  41. package/dist/slot-template/update-slot-template.dto.d.ts +1 -0
  42. package/dist/slot-template/update-slot-template.dto.js +6 -0
  43. package/dist/transaction/query-transaction.dto.d.ts +2 -4
  44. package/dist/transaction/query-transaction.dto.js +9 -15
  45. package/dist/translation/create-translation.dto.d.ts +3 -1
  46. package/dist/translation/create-translation.dto.js +11 -1
  47. package/dist/translation/edit-all-translation-loacales.dto.d.ts +2 -0
  48. package/dist/translation/edit-all-translation-loacales.dto.js +12 -2
  49. package/dist/translation/enum/translation-status.enum.d.ts +6 -0
  50. package/dist/translation/enum/translation-status.enum.js +10 -0
  51. package/dist/translation/translation.ro.d.ts +4 -0
  52. package/dist/tsconfig.build.tsbuildinfo +1 -1
  53. package/dist/upload/enum/image-type.enum.d.ts +2 -1
  54. package/dist/upload/enum/image-type.enum.js +1 -0
  55. package/dist/user/query-user-report.dto.d.ts +4 -0
  56. package/dist/{slot/remove-breaks.dto.js → user/query-user-report.dto.js} +10 -21
  57. package/dist/widget-openapi/widget-openapi-questroom.ro.d.ts +0 -3
  58. package/dist/widget-openapi/widget-openapi-slot.ro.d.ts +4 -0
  59. package/dist/widget-orders/widget-orders-order.ro.d.ts +5 -3
  60. package/package.json +2 -2
  61. package/dist/profile/enum/profile-status.enum.d.ts +0 -11
  62. package/dist/profile/enum/profile-status.enum.js +0 -15
  63. package/dist/slot/add-breaks.dto.d.ts +0 -8
@@ -0,0 +1,81 @@
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.UpdateFewDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const questroom_cancelation_type_enum_1 = require("../questroom/enum/questroom-cancelation-type.enum");
16
+ const is_not_blank_1 = require("../shared/is-not-blank");
17
+ const prepayment_type_enum_1 = require("./enum/prepayment-type.enum");
18
+ class UpdateFewDto {
19
+ }
20
+ __decorate([
21
+ (0, class_validator_1.IsArray)(),
22
+ (0, class_transformer_1.Expose)(),
23
+ (0, class_transformer_1.Transform)(({ value }) => (value && value.length ? value : [])),
24
+ __metadata("design:type", Array)
25
+ ], UpdateFewDto.prototype, "questroomIds", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsOptional)(),
28
+ (0, class_transformer_1.Expose)(),
29
+ __metadata("design:type", String)
30
+ ], UpdateFewDto.prototype, "breakReason", void 0);
31
+ __decorate([
32
+ (0, is_not_blank_1.IsNotBlank)(),
33
+ (0, class_transformer_1.Expose)(),
34
+ __metadata("design:type", String)
35
+ ], UpdateFewDto.prototype, "startDate", void 0);
36
+ __decorate([
37
+ (0, is_not_blank_1.IsNotBlank)(),
38
+ (0, class_transformer_1.Expose)(),
39
+ __metadata("design:type", String)
40
+ ], UpdateFewDto.prototype, "endDate", void 0);
41
+ __decorate([
42
+ (0, is_not_blank_1.IsNotBlank)(),
43
+ (0, class_transformer_1.Expose)(),
44
+ __metadata("design:type", String)
45
+ ], UpdateFewDto.prototype, "startTime", void 0);
46
+ __decorate([
47
+ (0, is_not_blank_1.IsNotBlank)(),
48
+ (0, class_transformer_1.Expose)(),
49
+ __metadata("design:type", String)
50
+ ], UpdateFewDto.prototype, "endTime", void 0);
51
+ __decorate([
52
+ (0, class_validator_1.IsEnum)(prepayment_type_enum_1.PrepaymentTypeEnum),
53
+ (0, class_transformer_1.Transform)(({ value }) => value || prepayment_type_enum_1.PrepaymentTypeEnum.NO),
54
+ (0, class_transformer_1.Expose)(),
55
+ __metadata("design:type", String)
56
+ ], UpdateFewDto.prototype, "prepaymentType", void 0);
57
+ __decorate([
58
+ (0, class_validator_1.ValidateIf)((v) => v.prepaymentType !== prepayment_type_enum_1.PrepaymentTypeEnum.NO),
59
+ (0, class_transformer_1.Expose)(),
60
+ (0, class_validator_1.IsPositive)(),
61
+ __metadata("design:type", Number)
62
+ ], UpdateFewDto.prototype, "prepayment", void 0);
63
+ __decorate([
64
+ (0, class_validator_1.IsEnum)(questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum),
65
+ (0, class_transformer_1.Transform)(({ value }) => value || questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum.MIN_PRICE),
66
+ (0, class_transformer_1.Expose)(),
67
+ __metadata("design:type", String)
68
+ ], UpdateFewDto.prototype, "cancelationRule", void 0);
69
+ __decorate([
70
+ (0, class_validator_1.IsInt)(),
71
+ (0, class_transformer_1.Transform)(({ value }) => value || 24),
72
+ (0, class_transformer_1.Expose)(),
73
+ __metadata("design:type", Number)
74
+ ], UpdateFewDto.prototype, "minHoursForFreeCanceling", void 0);
75
+ __decorate([
76
+ (0, class_validator_1.IsInt)(),
77
+ (0, class_transformer_1.Transform)(({ value }) => value || 24),
78
+ (0, class_transformer_1.Expose)(),
79
+ __metadata("design:type", Number)
80
+ ], UpdateFewDto.prototype, "minHoursForBooking", void 0);
81
+ exports.UpdateFewDto = UpdateFewDto;
@@ -0,0 +1,4 @@
1
+ export declare class CopyTemplateDto {
2
+ newQuestroom: number;
3
+ oldQuestroom: number;
4
+ }
@@ -0,0 +1,27 @@
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.CopyTemplateDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class CopyTemplateDto {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsNumber)(),
19
+ (0, class_transformer_1.Expose)(),
20
+ __metadata("design:type", Number)
21
+ ], CopyTemplateDto.prototype, "newQuestroom", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsNumber)(),
24
+ (0, class_transformer_1.Expose)(),
25
+ __metadata("design:type", Number)
26
+ ], CopyTemplateDto.prototype, "oldQuestroom", void 0);
27
+ exports.CopyTemplateDto = CopyTemplateDto;
@@ -1,9 +1,13 @@
1
+ import { QuestroomCancelationTypeEnum } from '../questroom/enum/questroom-cancelation-type.enum';
1
2
  import { PrepaymentTypeEnum } from '../slot/enum/prepayment-type.enum';
2
3
  export declare type SlotTemplateElement = {
3
4
  date: string;
4
5
  start: string;
5
6
  end: string;
6
7
  tariffId: number;
8
+ minHoursForBooking: number;
7
9
  prepaymentType: PrepaymentTypeEnum;
10
+ cancelationRule: QuestroomCancelationTypeEnum;
11
+ minHoursForFreeCanceling: number;
8
12
  prepayment?: number;
9
13
  };
@@ -1,6 +1,5 @@
1
1
  export declare class UpdateSlotTemplateFirstStepDto {
2
- questroomId: number;
3
- type: string;
2
+ questroomsIds: number[];
4
3
  start: string;
5
4
  end?: string;
6
5
  }
@@ -16,23 +16,18 @@ const is_not_blank_1 = require("../shared/is-not-blank");
16
16
  class UpdateSlotTemplateFirstStepDto {
17
17
  }
18
18
  __decorate([
19
- (0, class_validator_1.IsPositive)(),
19
+ (0, class_validator_1.IsArray)(),
20
+ (0, class_validator_1.ArrayMinSize)(1),
20
21
  (0, class_transformer_1.Expose)(),
21
- __metadata("design:type", Number)
22
- ], UpdateSlotTemplateFirstStepDto.prototype, "questroomId", void 0);
23
- __decorate([
24
- (0, is_not_blank_1.IsNotBlank)(),
25
- (0, class_transformer_1.Expose)(),
26
- __metadata("design:type", String)
27
- ], UpdateSlotTemplateFirstStepDto.prototype, "type", void 0);
22
+ __metadata("design:type", Array)
23
+ ], UpdateSlotTemplateFirstStepDto.prototype, "questroomsIds", void 0);
28
24
  __decorate([
29
25
  (0, is_not_blank_1.IsNotBlank)(),
30
26
  (0, class_transformer_1.Expose)(),
31
27
  __metadata("design:type", String)
32
28
  ], UpdateSlotTemplateFirstStepDto.prototype, "start", void 0);
33
29
  __decorate([
34
- (0, class_validator_1.ValidateIf)(({ type }) => type === 'period'),
35
- (0, is_not_blank_1.IsNotBlank)(),
30
+ (0, class_validator_1.IsOptional)(),
36
31
  (0, class_transformer_1.Expose)(),
37
32
  __metadata("design:type", String)
38
33
  ], UpdateSlotTemplateFirstStepDto.prototype, "end", void 0);
@@ -1,6 +1,7 @@
1
1
  import { SlotTemplateElement } from './slot-template-element';
2
2
  export declare class UpdateSlotTemplateDto {
3
3
  slots: SlotTemplateElement[];
4
+ questroomsIds: number[];
4
5
  start: string;
5
6
  /** Если передаем end шаблон перепишется */
6
7
  end?: string;
@@ -20,6 +20,12 @@ __decorate([
20
20
  (0, class_transformer_1.Expose)(),
21
21
  __metadata("design:type", Array)
22
22
  ], UpdateSlotTemplateDto.prototype, "slots", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsArray)(),
25
+ (0, class_validator_1.ArrayMinSize)(1),
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", Array)
28
+ ], UpdateSlotTemplateDto.prototype, "questroomsIds", void 0);
23
29
  __decorate([
24
30
  (0, is_not_blank_1.IsNotBlank)(),
25
31
  (0, class_transformer_1.Expose)(),
@@ -1,10 +1,8 @@
1
1
  import { TransactionTypeEnum } from './enum/transaction-type.enum';
2
2
  export declare class QueryTransactionDto {
3
- createdFrom?: string;
4
- createdTo?: string;
3
+ created?: [string, string];
5
4
  userId?: number;
6
- isOnline: boolean;
7
5
  cashboxId: number;
8
6
  financeitemId: number;
9
- type: TransactionTypeEnum;
7
+ transactionType: TransactionTypeEnum;
10
8
  }
@@ -10,41 +10,35 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.QueryTransactionDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
13
14
  const class_validator_1 = require("class-validator");
14
15
  const transaction_type_enum_1 = require("./enum/transaction-type.enum");
15
16
  class QueryTransactionDto {
16
17
  }
17
18
  __decorate([
18
19
  (0, class_validator_1.IsOptional)(),
19
- __metadata("design:type", String)
20
- ], QueryTransactionDto.prototype, "createdFrom", void 0);
21
- __decorate([
22
- (0, class_validator_1.IsOptional)(),
23
- __metadata("design:type", String)
24
- ], QueryTransactionDto.prototype, "createdTo", void 0);
20
+ (0, class_transformer_1.Expose)(),
21
+ (0, class_transformer_1.Transform)(({ value }) => (typeof value === 'object' ? value : ['', ''])),
22
+ __metadata("design:type", Array)
23
+ ], QueryTransactionDto.prototype, "created", void 0);
25
24
  __decorate([
26
25
  (0, class_validator_1.IsOptional)(),
27
- (0, class_validator_1.IsPositive)(),
26
+ (0, class_transformer_1.Expose)(),
28
27
  __metadata("design:type", Number)
29
28
  ], QueryTransactionDto.prototype, "userId", void 0);
30
29
  __decorate([
31
30
  (0, class_validator_1.IsOptional)(),
32
- (0, class_validator_1.IsBoolean)(),
33
- __metadata("design:type", Boolean)
34
- ], QueryTransactionDto.prototype, "isOnline", void 0);
35
- __decorate([
36
- (0, class_validator_1.IsOptional)(),
37
- (0, class_validator_1.IsPositive)(),
31
+ (0, class_transformer_1.Expose)(),
38
32
  __metadata("design:type", Number)
39
33
  ], QueryTransactionDto.prototype, "cashboxId", void 0);
40
34
  __decorate([
41
35
  (0, class_validator_1.IsOptional)(),
42
- (0, class_validator_1.IsPositive)(),
36
+ (0, class_transformer_1.Expose)(),
43
37
  __metadata("design:type", Number)
44
38
  ], QueryTransactionDto.prototype, "financeitemId", void 0);
45
39
  __decorate([
46
40
  (0, class_validator_1.IsOptional)(),
47
41
  (0, class_validator_1.IsEnum)(transaction_type_enum_1.TransactionTypeEnum),
48
42
  __metadata("design:type", String)
49
- ], QueryTransactionDto.prototype, "type", void 0);
43
+ ], QueryTransactionDto.prototype, "transactionType", void 0);
50
44
  exports.QueryTransactionDto = QueryTransactionDto;
@@ -1,5 +1,7 @@
1
1
  export declare class CreateTranslationDto {
2
2
  row: string;
3
- ru: string;
3
+ text: string;
4
+ context: string;
5
+ photo: string;
4
6
  namespaceId: number;
5
7
  }
@@ -24,7 +24,17 @@ __decorate([
24
24
  (0, is_not_blank_1.IsNotBlank)(),
25
25
  (0, class_transformer_1.Expose)(),
26
26
  __metadata("design:type", String)
27
- ], CreateTranslationDto.prototype, "ru", void 0);
27
+ ], CreateTranslationDto.prototype, "text", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsOptional)(),
30
+ (0, class_transformer_1.Expose)(),
31
+ __metadata("design:type", String)
32
+ ], CreateTranslationDto.prototype, "context", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsOptional)(),
35
+ (0, class_transformer_1.Expose)(),
36
+ __metadata("design:type", String)
37
+ ], CreateTranslationDto.prototype, "photo", void 0);
28
38
  __decorate([
29
39
  (0, class_validator_1.IsPositive)(),
30
40
  (0, class_transformer_1.Expose)(),
@@ -1,3 +1,5 @@
1
1
  export declare class EditAllTranslationLoacalesDto {
2
2
  text: string;
3
+ context: string;
4
+ photo: string;
3
5
  }
@@ -11,12 +11,22 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.EditAllTranslationLoacalesDto = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
- const is_not_blank_1 = require("../shared/is-not-blank");
14
+ const class_validator_1 = require("class-validator");
15
15
  class EditAllTranslationLoacalesDto {
16
16
  }
17
17
  __decorate([
18
- (0, is_not_blank_1.IsNotBlank)(),
18
+ (0, class_validator_1.IsOptional)(),
19
19
  (0, class_transformer_1.Expose)(),
20
20
  __metadata("design:type", String)
21
21
  ], EditAllTranslationLoacalesDto.prototype, "text", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsOptional)(),
24
+ (0, class_transformer_1.Expose)(),
25
+ __metadata("design:type", String)
26
+ ], EditAllTranslationLoacalesDto.prototype, "context", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsOptional)(),
29
+ (0, class_transformer_1.Expose)(),
30
+ __metadata("design:type", String)
31
+ ], EditAllTranslationLoacalesDto.prototype, "photo", void 0);
22
32
  exports.EditAllTranslationLoacalesDto = EditAllTranslationLoacalesDto;
@@ -0,0 +1,6 @@
1
+ export declare enum TranslationStatusEnum {
2
+ NOT_READY = "not_ready",
3
+ WAITING = "waiting",
4
+ NEED_CHECK = "need_check",
5
+ READY = "ready"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TranslationStatusEnum = void 0;
4
+ var TranslationStatusEnum;
5
+ (function (TranslationStatusEnum) {
6
+ TranslationStatusEnum["NOT_READY"] = "not_ready";
7
+ TranslationStatusEnum["WAITING"] = "waiting";
8
+ TranslationStatusEnum["NEED_CHECK"] = "need_check";
9
+ TranslationStatusEnum["READY"] = "ready";
10
+ })(TranslationStatusEnum = exports.TranslationStatusEnum || (exports.TranslationStatusEnum = {}));
@@ -1,13 +1,17 @@
1
1
  import { Languages } from '../shared/enum/languages.enum';
2
+ import { TranslationStatusEnum } from './enum/translation-status.enum';
2
3
  export declare type TranslationRO = {
3
4
  id: number;
4
5
  row: string;
6
+ context: string;
7
+ photo: string;
5
8
  namespace: {
6
9
  title: string;
7
10
  };
8
11
  translations: Array<{
9
12
  id: number;
10
13
  text: string;
14
+ status: TranslationStatusEnum;
11
15
  locale: Languages;
12
16
  }>;
13
17
  };