denwa-nest-shared 1.0.4 → 1.0.6

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.0.6](https://github.com/web-bee-ru/openapi-axios/compare/v1.0.5...v1.0.6) (2025-02-16)
6
+
7
+ ### [1.0.5](https://github.com/web-bee-ru/openapi-axios/compare/v1.0.4...v1.0.5) (2025-02-16)
8
+
5
9
  ### [1.0.4](https://github.com/web-bee-ru/openapi-axios/compare/v1.0.3...v1.0.4) (2025-02-16)
6
10
 
7
11
  ### [1.0.3](https://github.com/web-bee-ru/openapi-axios/compare/v1.0.2...v1.0.3) (2025-02-16)
@@ -0,0 +1,28 @@
1
+ export declare const TIME: {
2
+ seconds: {
3
+ minutes10: number;
4
+ hours1: number;
5
+ };
6
+ };
7
+ export declare const PASSWORD_LENGTH: {
8
+ min: number;
9
+ max: number;
10
+ };
11
+ export declare const FILE_WEIGHT: {
12
+ mb1: {
13
+ bytes: number;
14
+ };
15
+ mb10: {
16
+ bytes: number;
17
+ };
18
+ };
19
+ export declare const EXTENSION_IMAGE_TYPE: {
20
+ webp: string;
21
+ jpeg: string;
22
+ jpg: string;
23
+ jpe: string;
24
+ jif: string;
25
+ jfif: string;
26
+ jfi: string;
27
+ png: string;
28
+ };
package/dist/dto.d.ts CHANGED
@@ -60,3 +60,39 @@ export declare class BadGatewayDto {
60
60
  messages?: string[];
61
61
  error?: string;
62
62
  }
63
+ export declare class TempImagesDto {
64
+ tempName: string;
65
+ altRU?: string;
66
+ altEN?: string;
67
+ altAR?: string;
68
+ }
69
+ export declare class AddTempImagesDto extends TempImagesDto {
70
+ id: string;
71
+ }
72
+ export declare class AllImagesDto {
73
+ name?: string;
74
+ tempName?: string;
75
+ altRU?: string;
76
+ altEN?: string;
77
+ altAR?: string;
78
+ }
79
+ export declare class PreparedImageDto {
80
+ name: string;
81
+ fileExtensions: string[];
82
+ originalFileExtension: string;
83
+ entityId: string;
84
+ fullPathExample: string;
85
+ altRU?: string;
86
+ altEN?: string;
87
+ altAR?: string;
88
+ }
89
+ export declare class InputPreparedImageDto {
90
+ name: string;
91
+ fileExtensions: string[];
92
+ originalFileExtension: string;
93
+ entityId: string;
94
+ fullPathExample: string;
95
+ altRU?: string;
96
+ altEN?: string;
97
+ altAR?: string;
98
+ }
package/dist/lib.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { IPaginate } from './types';
1
+ import { IPaginate, QueryDataType } from './types';
2
+ import { ReadStream } from 'fs';
2
3
  export declare const getError: ({ error, message }: {
3
4
  error?: unknown;
4
5
  message?: string;
@@ -7,3 +8,9 @@ export declare const createPaginate: (page: number, count: number, limit: number
7
8
  export declare const getPaginateSkip: (page: number, limit: number) => number;
8
9
  export declare const formatPhone: (phone: string) => string;
9
10
  export declare const concatenateTwo32BitNumbers: (low: number, high: number) => number;
11
+ export declare const checkPageAndLimit: (page: number, limit: number, maxLimit?: number) => {
12
+ checkedPage: number;
13
+ checkedLimit: number;
14
+ };
15
+ export declare const fileStreamToBuffer: (fileStream: ReadStream) => Promise<Buffer>;
16
+ export declare const createQueryData: <Entity>(page: number, limit: number, sortField: string, sortOrder: string, filterType: string, filter?: object, search?: object) => QueryDataType<Entity>;
package/dist/main.d.ts CHANGED
@@ -1,3 +1,5 @@
1
1
  export * from './dto';
2
2
  export * from './lib';
3
3
  export * from './types';
4
+ export * from './const';
5
+ export * from './validation';
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ EXTENSION_IMAGE_TYPE: function() {
13
+ return EXTENSION_IMAGE_TYPE;
14
+ },
15
+ FILE_WEIGHT: function() {
16
+ return FILE_WEIGHT;
17
+ },
18
+ PASSWORD_LENGTH: function() {
19
+ return PASSWORD_LENGTH;
20
+ },
21
+ TIME: function() {
22
+ return TIME;
23
+ }
24
+ });
25
+ const TIME = {
26
+ seconds: {
27
+ minutes10: 600,
28
+ hours1: 3600
29
+ }
30
+ };
31
+ const PASSWORD_LENGTH = {
32
+ min: 4,
33
+ max: 20
34
+ };
35
+ const FILE_WEIGHT = {
36
+ mb1: {
37
+ bytes: 1_048_576
38
+ },
39
+ mb10: {
40
+ bytes: 10_485_760
41
+ }
42
+ };
43
+ const EXTENSION_IMAGE_TYPE = {
44
+ webp: 'image/webp',
45
+ jpeg: 'image/jpeg',
46
+ jpg: 'image/jpeg',
47
+ jpe: 'image/jpeg',
48
+ jif: 'image/jpeg',
49
+ jfif: 'image/jpeg',
50
+ jfi: 'image/jpeg',
51
+ png: 'image/png'
52
+ };
package/dist/src/dto.js CHANGED
@@ -9,6 +9,12 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
+ AddTempImagesDto: function() {
13
+ return AddTempImagesDto;
14
+ },
15
+ AllImagesDto: function() {
16
+ return AllImagesDto;
17
+ },
12
18
  BadGatewayDto: function() {
13
19
  return BadGatewayDto;
14
20
  },
@@ -27,6 +33,9 @@ _export(exports, {
27
33
  ImageFileDto: function() {
28
34
  return ImageFileDto;
29
35
  },
36
+ InputPreparedImageDto: function() {
37
+ return InputPreparedImageDto;
38
+ },
30
39
  MethodNotAllowedDto: function() {
31
40
  return MethodNotAllowedDto;
32
41
  },
@@ -39,10 +48,17 @@ _export(exports, {
39
48
  Paginate: function() {
40
49
  return Paginate;
41
50
  },
51
+ PreparedImageDto: function() {
52
+ return PreparedImageDto;
53
+ },
54
+ TempImagesDto: function() {
55
+ return TempImagesDto;
56
+ },
42
57
  UnauthorizedDto: function() {
43
58
  return UnauthorizedDto;
44
59
  }
45
60
  });
61
+ const _graphql = require("@nestjs/graphql");
46
62
  const _swagger = require("@nestjs/swagger");
47
63
  const _classvalidator = require("class-validator");
48
64
  function _ts_decorate(decorators, target, key, desc) {
@@ -67,6 +83,7 @@ _ts_decorate([
67
83
  example: '1',
68
84
  description: 'Страница'
69
85
  }),
86
+ (0, _graphql.Field)(()=>_graphql.Int),
70
87
  _ts_metadata("design:type", Number)
71
88
  ], Paginate.prototype, "page", void 0);
72
89
  _ts_decorate([
@@ -74,6 +91,7 @@ _ts_decorate([
74
91
  example: '10',
75
92
  description: 'Всего страниц'
76
93
  }),
94
+ (0, _graphql.Field)(()=>_graphql.Int),
77
95
  _ts_metadata("design:type", Number)
78
96
  ], Paginate.prototype, "pages", void 0);
79
97
  _ts_decorate([
@@ -81,6 +99,9 @@ _ts_decorate([
81
99
  example: '2',
82
100
  description: 'Предыдущая страница'
83
101
  }),
102
+ (0, _graphql.Field)(()=>_graphql.Int, {
103
+ nullable: true
104
+ }),
84
105
  _ts_metadata("design:type", Number)
85
106
  ], Paginate.prototype, "previous", void 0);
86
107
  _ts_decorate([
@@ -88,6 +109,9 @@ _ts_decorate([
88
109
  example: '3',
89
110
  description: 'Следующая страница'
90
111
  }),
112
+ (0, _graphql.Field)(()=>_graphql.Int, {
113
+ nullable: true
114
+ }),
91
115
  _ts_metadata("design:type", Number)
92
116
  ], Paginate.prototype, "next", void 0);
93
117
  _ts_decorate([
@@ -95,6 +119,7 @@ _ts_decorate([
95
119
  example: '1000',
96
120
  description: 'Количество'
97
121
  }),
122
+ (0, _graphql.Field)(()=>_graphql.Int),
98
123
  _ts_metadata("design:type", Number)
99
124
  ], Paginate.prototype, "count", void 0);
100
125
  _ts_decorate([
@@ -102,8 +127,12 @@ _ts_decorate([
102
127
  example: '100',
103
128
  description: 'Лимит записей'
104
129
  }),
130
+ (0, _graphql.Field)(()=>_graphql.Int),
105
131
  _ts_metadata("design:type", Number)
106
132
  ], Paginate.prototype, "limit", void 0);
133
+ Paginate = _ts_decorate([
134
+ (0, _graphql.ObjectType)()
135
+ ], Paginate);
107
136
  class DeleteDto {
108
137
  id;
109
138
  }
@@ -112,9 +141,13 @@ _ts_decorate([
112
141
  example: '3422b448-2460-4fd2-9183-8000de6f8343',
113
142
  description: 'Уникальный идентификатор'
114
143
  }),
144
+ (0, _graphql.Field)(),
115
145
  (0, _classvalidator.IsUUID)(),
116
146
  _ts_metadata("design:type", String)
117
147
  ], DeleteDto.prototype, "id", void 0);
148
+ DeleteDto = _ts_decorate([
149
+ (0, _graphql.InputType)()
150
+ ], DeleteDto);
118
151
  class ImageFileDto {
119
152
  imageName;
120
153
  originalFileExtension;
@@ -174,6 +207,7 @@ _ts_decorate([
174
207
  example: '200',
175
208
  description: 'Статус код'
176
209
  }),
210
+ (0, _graphql.Field)(()=>_graphql.Int),
177
211
  _ts_metadata("design:type", Number)
178
212
  ], OkRequestDto.prototype, "statusCode", void 0);
179
213
  _ts_decorate([
@@ -181,8 +215,14 @@ _ts_decorate([
181
215
  example: 'Успех',
182
216
  description: 'Сообщение'
183
217
  }),
218
+ (0, _graphql.Field)({
219
+ nullable: true
220
+ }),
184
221
  _ts_metadata("design:type", String)
185
222
  ], OkRequestDto.prototype, "message", void 0);
223
+ OkRequestDto = _ts_decorate([
224
+ (0, _graphql.ObjectType)()
225
+ ], OkRequestDto);
186
226
  class CreatedRequestDto {
187
227
  statusCode;
188
228
  message;
@@ -192,6 +232,7 @@ _ts_decorate([
192
232
  example: '201',
193
233
  description: 'Статус код'
194
234
  }),
235
+ (0, _graphql.Field)(()=>_graphql.Int),
195
236
  _ts_metadata("design:type", Number)
196
237
  ], CreatedRequestDto.prototype, "statusCode", void 0);
197
238
  _ts_decorate([
@@ -199,8 +240,14 @@ _ts_decorate([
199
240
  example: 'Успех',
200
241
  description: 'Сообщение'
201
242
  }),
243
+ (0, _graphql.Field)({
244
+ nullable: true
245
+ }),
202
246
  _ts_metadata("design:type", String)
203
247
  ], CreatedRequestDto.prototype, "message", void 0);
248
+ CreatedRequestDto = _ts_decorate([
249
+ (0, _graphql.ObjectType)()
250
+ ], CreatedRequestDto);
204
251
  class BadRequestDto {
205
252
  statusCode;
206
253
  message;
@@ -405,3 +452,337 @@ _ts_decorate([
405
452
  }),
406
453
  _ts_metadata("design:type", String)
407
454
  ], BadGatewayDto.prototype, "error", void 0);
455
+ class TempImagesDto {
456
+ tempName;
457
+ altRU;
458
+ altEN;
459
+ altAR;
460
+ }
461
+ _ts_decorate([
462
+ (0, _swagger.ApiProperty)({
463
+ example: 'test.jpg',
464
+ description: 'Название файла в temp backet'
465
+ }),
466
+ (0, _graphql.Field)(()=>String),
467
+ (0, _classvalidator.IsString)(),
468
+ (0, _classvalidator.Length)(1, 256),
469
+ _ts_metadata("design:type", String)
470
+ ], TempImagesDto.prototype, "tempName", void 0);
471
+ _ts_decorate([
472
+ (0, _swagger.ApiPropertyOptional)({
473
+ example: 'Вид на Сочи',
474
+ description: 'Описание изображения'
475
+ }),
476
+ (0, _graphql.Field)({
477
+ nullable: true
478
+ }),
479
+ (0, _classvalidator.IsOptional)(),
480
+ (0, _classvalidator.IsString)(),
481
+ _ts_metadata("design:type", String)
482
+ ], TempImagesDto.prototype, "altRU", void 0);
483
+ _ts_decorate([
484
+ (0, _swagger.ApiPropertyOptional)({
485
+ description: 'Описание изображения'
486
+ }),
487
+ (0, _graphql.Field)({
488
+ nullable: true
489
+ }),
490
+ (0, _classvalidator.IsOptional)(),
491
+ (0, _classvalidator.IsString)(),
492
+ _ts_metadata("design:type", String)
493
+ ], TempImagesDto.prototype, "altEN", void 0);
494
+ _ts_decorate([
495
+ (0, _swagger.ApiPropertyOptional)({
496
+ description: 'Описание изображения'
497
+ }),
498
+ (0, _graphql.Field)({
499
+ nullable: true
500
+ }),
501
+ (0, _classvalidator.IsOptional)(),
502
+ (0, _classvalidator.IsString)(),
503
+ _ts_metadata("design:type", String)
504
+ ], TempImagesDto.prototype, "altAR", void 0);
505
+ TempImagesDto = _ts_decorate([
506
+ (0, _graphql.InputType)()
507
+ ], TempImagesDto);
508
+ class AddTempImagesDto extends TempImagesDto {
509
+ id;
510
+ }
511
+ _ts_decorate([
512
+ (0, _swagger.ApiProperty)({
513
+ example: '3422b448-2460-4fd2-9183-8000de6f8343',
514
+ description: 'Уникальный идентификатор'
515
+ }),
516
+ (0, _graphql.Field)(),
517
+ (0, _classvalidator.IsUUID)(),
518
+ _ts_metadata("design:type", String)
519
+ ], AddTempImagesDto.prototype, "id", void 0);
520
+ AddTempImagesDto = _ts_decorate([
521
+ (0, _graphql.InputType)()
522
+ ], AddTempImagesDto);
523
+ class AllImagesDto {
524
+ name;
525
+ tempName;
526
+ altRU;
527
+ altEN;
528
+ altAR;
529
+ }
530
+ _ts_decorate([
531
+ (0, _swagger.ApiProperty)({
532
+ example: 'test',
533
+ description: 'Название файла'
534
+ }),
535
+ (0, _graphql.Field)(()=>String, {
536
+ nullable: true
537
+ }),
538
+ (0, _classvalidator.IsOptional)(),
539
+ (0, _classvalidator.IsString)(),
540
+ (0, _classvalidator.Length)(1, 256),
541
+ _ts_metadata("design:type", String)
542
+ ], AllImagesDto.prototype, "name", void 0);
543
+ _ts_decorate([
544
+ (0, _swagger.ApiProperty)({
545
+ example: 'test.jpg',
546
+ description: 'Название файла в temp backet'
547
+ }),
548
+ (0, _graphql.Field)(()=>String, {
549
+ nullable: true
550
+ }),
551
+ (0, _classvalidator.IsOptional)(),
552
+ (0, _classvalidator.IsString)(),
553
+ (0, _classvalidator.Length)(1, 256),
554
+ _ts_metadata("design:type", String)
555
+ ], AllImagesDto.prototype, "tempName", void 0);
556
+ _ts_decorate([
557
+ (0, _swagger.ApiPropertyOptional)({
558
+ example: 'Вид на Сочи',
559
+ description: 'Описание изображения'
560
+ }),
561
+ (0, _graphql.Field)({
562
+ nullable: true
563
+ }),
564
+ (0, _classvalidator.IsOptional)(),
565
+ (0, _classvalidator.IsString)(),
566
+ _ts_metadata("design:type", String)
567
+ ], AllImagesDto.prototype, "altRU", void 0);
568
+ _ts_decorate([
569
+ (0, _swagger.ApiPropertyOptional)({
570
+ description: 'Описание изображения'
571
+ }),
572
+ (0, _graphql.Field)({
573
+ nullable: true
574
+ }),
575
+ (0, _classvalidator.IsOptional)(),
576
+ (0, _classvalidator.IsString)(),
577
+ _ts_metadata("design:type", String)
578
+ ], AllImagesDto.prototype, "altEN", void 0);
579
+ _ts_decorate([
580
+ (0, _swagger.ApiPropertyOptional)({
581
+ description: 'Описание изображения'
582
+ }),
583
+ (0, _graphql.Field)({
584
+ nullable: true
585
+ }),
586
+ (0, _classvalidator.IsOptional)(),
587
+ (0, _classvalidator.IsString)(),
588
+ _ts_metadata("design:type", String)
589
+ ], AllImagesDto.prototype, "altAR", void 0);
590
+ AllImagesDto = _ts_decorate([
591
+ (0, _graphql.InputType)()
592
+ ], AllImagesDto);
593
+ class PreparedImageDto {
594
+ name;
595
+ fileExtensions;
596
+ originalFileExtension;
597
+ entityId;
598
+ fullPathExample;
599
+ altRU;
600
+ altEN;
601
+ altAR;
602
+ }
603
+ _ts_decorate([
604
+ (0, _swagger.ApiProperty)({
605
+ example: 'qwer',
606
+ description: 'Название файла'
607
+ }),
608
+ (0, _graphql.Field)(),
609
+ (0, _classvalidator.IsString)(),
610
+ _ts_metadata("design:type", String)
611
+ ], PreparedImageDto.prototype, "name", void 0);
612
+ _ts_decorate([
613
+ (0, _swagger.ApiProperty)({
614
+ example: '[webp, jpg]',
615
+ description: 'Расширения файла'
616
+ }),
617
+ (0, _graphql.Field)(()=>[
618
+ String
619
+ ]),
620
+ (0, _classvalidator.IsArray)(),
621
+ (0, _classvalidator.IsString)({
622
+ each: true
623
+ }),
624
+ _ts_metadata("design:type", Array)
625
+ ], PreparedImageDto.prototype, "fileExtensions", void 0);
626
+ _ts_decorate([
627
+ (0, _swagger.ApiProperty)({
628
+ example: 'jpg',
629
+ description: 'Расширение оригинального файла'
630
+ }),
631
+ (0, _graphql.Field)(),
632
+ (0, _classvalidator.IsString)(),
633
+ (0, _classvalidator.Length)(4, 5),
634
+ _ts_metadata("design:type", String)
635
+ ], PreparedImageDto.prototype, "originalFileExtension", void 0);
636
+ _ts_decorate([
637
+ (0, _swagger.ApiProperty)({
638
+ example: '3422b448-2460-4fd2-9183-8000de6f8343',
639
+ description: 'Уникальный идентификатор'
640
+ }),
641
+ (0, _graphql.Field)(),
642
+ (0, _classvalidator.IsUUID)(),
643
+ _ts_metadata("design:type", String)
644
+ ], PreparedImageDto.prototype, "entityId", void 0);
645
+ _ts_decorate([
646
+ (0, _swagger.ApiProperty)({
647
+ example: 'qwert/qwert.jpg',
648
+ description: 'Пример пути к файлу'
649
+ }),
650
+ (0, _graphql.Field)(),
651
+ (0, _classvalidator.IsString)(),
652
+ _ts_metadata("design:type", String)
653
+ ], PreparedImageDto.prototype, "fullPathExample", void 0);
654
+ _ts_decorate([
655
+ (0, _swagger.ApiPropertyOptional)({
656
+ example: 'Яхта',
657
+ description: 'Описание изображения'
658
+ }),
659
+ (0, _graphql.Field)({
660
+ nullable: true
661
+ }),
662
+ (0, _classvalidator.IsOptional)(),
663
+ (0, _classvalidator.IsString)(),
664
+ _ts_metadata("design:type", String)
665
+ ], PreparedImageDto.prototype, "altRU", void 0);
666
+ _ts_decorate([
667
+ (0, _swagger.ApiProperty)({
668
+ description: 'Описание изображения'
669
+ }),
670
+ (0, _graphql.Field)({
671
+ nullable: true
672
+ }),
673
+ (0, _classvalidator.IsOptional)(),
674
+ (0, _classvalidator.IsString)(),
675
+ _ts_metadata("design:type", String)
676
+ ], PreparedImageDto.prototype, "altEN", void 0);
677
+ _ts_decorate([
678
+ (0, _swagger.ApiProperty)({
679
+ description: 'Описание изображения'
680
+ }),
681
+ (0, _graphql.Field)({
682
+ nullable: true
683
+ }),
684
+ (0, _classvalidator.IsOptional)(),
685
+ (0, _classvalidator.IsString)(),
686
+ _ts_metadata("design:type", String)
687
+ ], PreparedImageDto.prototype, "altAR", void 0);
688
+ PreparedImageDto = _ts_decorate([
689
+ (0, _graphql.ObjectType)()
690
+ ], PreparedImageDto);
691
+ class InputPreparedImageDto {
692
+ name;
693
+ fileExtensions;
694
+ originalFileExtension;
695
+ entityId;
696
+ fullPathExample;
697
+ altRU;
698
+ altEN;
699
+ altAR;
700
+ }
701
+ _ts_decorate([
702
+ (0, _swagger.ApiProperty)({
703
+ example: 'qwer',
704
+ description: 'Название файла'
705
+ }),
706
+ (0, _graphql.Field)(),
707
+ (0, _classvalidator.IsString)(),
708
+ _ts_metadata("design:type", String)
709
+ ], InputPreparedImageDto.prototype, "name", void 0);
710
+ _ts_decorate([
711
+ (0, _swagger.ApiProperty)({
712
+ example: '[webp, jpg]',
713
+ description: 'Расширения файла'
714
+ }),
715
+ (0, _graphql.Field)(()=>[
716
+ String
717
+ ]),
718
+ (0, _classvalidator.IsArray)(),
719
+ (0, _classvalidator.IsString)({
720
+ each: true
721
+ }),
722
+ _ts_metadata("design:type", Array)
723
+ ], InputPreparedImageDto.prototype, "fileExtensions", void 0);
724
+ _ts_decorate([
725
+ (0, _swagger.ApiProperty)({
726
+ example: 'jpg',
727
+ description: 'Расширение оригинального файла'
728
+ }),
729
+ (0, _graphql.Field)(),
730
+ (0, _classvalidator.IsString)(),
731
+ (0, _classvalidator.Length)(4, 5),
732
+ _ts_metadata("design:type", String)
733
+ ], InputPreparedImageDto.prototype, "originalFileExtension", void 0);
734
+ _ts_decorate([
735
+ (0, _swagger.ApiProperty)({
736
+ example: '3422b448-2460-4fd2-9183-8000de6f8343',
737
+ description: 'Уникальный идентификатор'
738
+ }),
739
+ (0, _graphql.Field)(),
740
+ (0, _classvalidator.IsUUID)(),
741
+ _ts_metadata("design:type", String)
742
+ ], InputPreparedImageDto.prototype, "entityId", void 0);
743
+ _ts_decorate([
744
+ (0, _swagger.ApiProperty)({
745
+ example: 'qwert/qwert.jpg',
746
+ description: 'Пример пути к файлу'
747
+ }),
748
+ (0, _graphql.Field)(),
749
+ (0, _classvalidator.IsString)(),
750
+ _ts_metadata("design:type", String)
751
+ ], InputPreparedImageDto.prototype, "fullPathExample", void 0);
752
+ _ts_decorate([
753
+ (0, _swagger.ApiProperty)({
754
+ example: 'Яхта',
755
+ description: 'Описание изображения'
756
+ }),
757
+ (0, _graphql.Field)({
758
+ nullable: true
759
+ }),
760
+ (0, _classvalidator.IsOptional)(),
761
+ (0, _classvalidator.IsString)(),
762
+ _ts_metadata("design:type", String)
763
+ ], InputPreparedImageDto.prototype, "altRU", void 0);
764
+ _ts_decorate([
765
+ (0, _swagger.ApiProperty)({
766
+ description: 'Описание изображения'
767
+ }),
768
+ (0, _graphql.Field)({
769
+ nullable: true
770
+ }),
771
+ (0, _classvalidator.IsOptional)(),
772
+ (0, _classvalidator.IsString)(),
773
+ _ts_metadata("design:type", String)
774
+ ], InputPreparedImageDto.prototype, "altEN", void 0);
775
+ _ts_decorate([
776
+ (0, _swagger.ApiProperty)({
777
+ description: 'Описание изображения'
778
+ }),
779
+ (0, _graphql.Field)({
780
+ nullable: true
781
+ }),
782
+ (0, _classvalidator.IsOptional)(),
783
+ (0, _classvalidator.IsString)(),
784
+ _ts_metadata("design:type", String)
785
+ ], InputPreparedImageDto.prototype, "altAR", void 0);
786
+ InputPreparedImageDto = _ts_decorate([
787
+ (0, _graphql.InputType)()
788
+ ], InputPreparedImageDto);