grm-shared-library 1.1.116 → 1.1.118

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 (35) hide show
  1. package/dist/cjs/modules/dms/dtos/audio-file-upload-options.dto.js +95 -0
  2. package/dist/cjs/modules/dms/dtos/audio-file-upload-options.dto.js.map +1 -1
  3. package/dist/cjs/modules/dms/dtos/document-file-upload-options.dto.js +53 -0
  4. package/dist/cjs/modules/dms/dtos/document-file-upload-options.dto.js.map +1 -1
  5. package/dist/cjs/modules/dms/dtos/image-file-upload-options.dto.js +68 -0
  6. package/dist/cjs/modules/dms/dtos/image-file-upload-options.dto.js.map +1 -1
  7. package/dist/cjs/modules/dms/dtos/multi-file-upload.dto.js +37 -4
  8. package/dist/cjs/modules/dms/dtos/multi-file-upload.dto.js.map +1 -1
  9. package/dist/cjs/modules/dms/dtos/video-file-upload-options.dto.js +75 -0
  10. package/dist/cjs/modules/dms/dtos/video-file-upload-options.dto.js.map +1 -1
  11. package/dist/esm/modules/dms/dtos/audio-file-upload-options.dto.js +96 -1
  12. package/dist/esm/modules/dms/dtos/audio-file-upload-options.dto.js.map +1 -1
  13. package/dist/esm/modules/dms/dtos/document-file-upload-options.dto.js +54 -1
  14. package/dist/esm/modules/dms/dtos/document-file-upload-options.dto.js.map +1 -1
  15. package/dist/esm/modules/dms/dtos/image-file-upload-options.dto.js +69 -1
  16. package/dist/esm/modules/dms/dtos/image-file-upload-options.dto.js.map +1 -1
  17. package/dist/esm/modules/dms/dtos/multi-file-upload.dto.js +38 -5
  18. package/dist/esm/modules/dms/dtos/multi-file-upload.dto.js.map +1 -1
  19. package/dist/esm/modules/dms/dtos/video-file-upload-options.dto.js +76 -1
  20. package/dist/esm/modules/dms/dtos/video-file-upload-options.dto.js.map +1 -1
  21. package/dist/types/modules/dms/dtos/audio-file-upload-options.dto.d.ts +2 -0
  22. package/dist/types/modules/dms/dtos/document-file-upload-options.dto.d.ts +2 -0
  23. package/dist/types/modules/dms/dtos/image-file-upload-options.dto.d.ts +3 -0
  24. package/dist/types/modules/dms/dtos/multi-file-upload.dto.d.ts +2 -2
  25. package/dist/types/modules/dms/dtos/video-file-upload-options.dto.d.ts +2 -0
  26. package/dist/types/modules/dms/interfaces/audio-file-upload-options.d.ts +2 -0
  27. package/dist/types/modules/dms/interfaces/audio-file.d.ts +1 -0
  28. package/dist/types/modules/dms/interfaces/document-file-upload-options.d.ts +2 -0
  29. package/dist/types/modules/dms/interfaces/document-file.d.ts +1 -0
  30. package/dist/types/modules/dms/interfaces/image-file-upload-options.d.ts +3 -0
  31. package/dist/types/modules/dms/interfaces/image-file.d.ts +2 -0
  32. package/dist/types/modules/dms/interfaces/multi-file-upload.d.ts +2 -2
  33. package/dist/types/modules/dms/interfaces/video-file-upload-options.d.ts +2 -0
  34. package/dist/types/modules/dms/interfaces/video-file.d.ts +1 -0
  35. package/package.json +1 -1
@@ -7,30 +7,54 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
- import { IsString, IsOptional, IsArray, IsBoolean, IsEnum } from 'class-validator';
10
+ import { IsString, IsOptional, IsArray, IsBoolean, IsEnum, IsNumber, IsNotEmpty } from 'class-validator';
11
+ import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
11
12
  import { FileType } from '../interfaces/multi-file-upload';
12
13
  export class MultiFileUploadOptionsDto {
13
14
  }
14
15
  __decorate([
15
- IsString(),
16
- __metadata("design:type", String)
16
+ ApiProperty({
17
+ description: 'ID of the user uploading the files',
18
+ example: 1,
19
+ }),
20
+ IsNotEmpty(),
21
+ IsNumber(),
22
+ __metadata("design:type", Number)
17
23
  ], MultiFileUploadOptionsDto.prototype, "userId", void 0);
18
24
  __decorate([
19
- IsString(),
20
- __metadata("design:type", String)
25
+ ApiProperty({
26
+ description: 'ID of the organization the files belong to',
27
+ example: 12,
28
+ }),
29
+ IsNotEmpty(),
30
+ IsNumber(),
31
+ __metadata("design:type", Number)
21
32
  ], MultiFileUploadOptionsDto.prototype, "organizationId", void 0);
22
33
  __decorate([
34
+ ApiPropertyOptional({
35
+ description: 'Tags to apply to all uploaded files',
36
+ example: ['project-alpha', 'marketing', '2024'],
37
+ type: [String],
38
+ }),
23
39
  IsOptional(),
24
40
  IsArray(),
25
41
  IsString({ each: true }),
26
42
  __metadata("design:type", Array)
27
43
  ], MultiFileUploadOptionsDto.prototype, "tags", void 0);
28
44
  __decorate([
45
+ ApiPropertyOptional({
46
+ description: 'Description for the batch of uploaded files',
47
+ example: 'Marketing materials for Q4 2024 campaign',
48
+ }),
29
49
  IsOptional(),
30
50
  IsString(),
31
51
  __metadata("design:type", String)
32
52
  ], MultiFileUploadOptionsDto.prototype, "description", void 0);
33
53
  __decorate([
54
+ ApiPropertyOptional({
55
+ description: 'Whether all files should be publicly accessible',
56
+ example: false,
57
+ }),
34
58
  IsOptional(),
35
59
  IsBoolean(),
36
60
  __metadata("design:type", Boolean)
@@ -38,10 +62,19 @@ __decorate([
38
62
  export class FileUploadItemDto {
39
63
  }
40
64
  __decorate([
65
+ ApiProperty({
66
+ description: 'Type of file being uploaded',
67
+ enum: FileType,
68
+ example: FileType.IMAGE,
69
+ }),
41
70
  IsEnum(FileType),
42
71
  __metadata("design:type", String)
43
72
  ], FileUploadItemDto.prototype, "type", void 0);
44
73
  __decorate([
74
+ ApiPropertyOptional({
75
+ description: 'Type-specific options for the file upload (ImageFileUploadOptionsDto, DocumentFileUploadOptionsDto, VideoFileUploadOptionsDto, or AudioFileUploadOptionsDto)',
76
+ example: { generateThumbnail: true, alt: 'Product image' },
77
+ }),
45
78
  IsOptional(),
46
79
  __metadata("design:type", Object)
47
80
  ], FileUploadItemDto.prototype, "options", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"multi-file-upload.dto.js","sourceRoot":"","sources":["../../../../../src/modules/dms/dtos/multi-file-upload.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACnF,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAE3D,MAAM,OAAO,yBAAyB;CAmBrC;AAjBG;IADC,QAAQ,EAAE;;yDACK;AAGhB;IADC,QAAQ,EAAE;;iEACa;AAKxB;IAHC,UAAU,EAAE;IACZ,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;uDACT;AAIhB;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;8DACU;AAIrB;IAFC,UAAU,EAAE;IACZ,SAAS,EAAE;;2DACO;AAGvB,MAAM,OAAO,iBAAiB;CAM7B;AAJG;IADC,MAAM,CAAC,QAAQ,CAAC;;+CACD;AAGhB;IADC,UAAU,EAAE;;kDACC"}
1
+ {"version":3,"file":"multi-file-upload.dto.js","sourceRoot":"","sources":["../../../../../src/modules/dms/dtos/multi-file-upload.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACzG,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAE3D,MAAM,OAAO,yBAAyB;CA0CrC;AAnCG;IANC,WAAW,CAAC;QACT,WAAW,EAAE,oCAAoC;QACjD,OAAO,EAAE,CAAC;KACb,CAAC;IACD,UAAU,EAAE;IACZ,QAAQ,EAAE;;yDACK;AAQhB;IANC,WAAW,CAAC;QACT,WAAW,EAAE,4CAA4C;QACzD,OAAO,EAAE,EAAE;KACd,CAAC;IACD,UAAU,EAAE;IACZ,QAAQ,EAAE;;iEACa;AAUxB;IARC,mBAAmB,CAAC;QACjB,WAAW,EAAE,qCAAqC;QAClD,OAAO,EAAE,CAAC,eAAe,EAAE,WAAW,EAAE,MAAM,CAAC;QAC/C,IAAI,EAAE,CAAC,MAAM,CAAC;KACjB,CAAC;IACD,UAAU,EAAE;IACZ,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;uDACT;AAQhB;IANC,mBAAmB,CAAC;QACjB,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,0CAA0C;KACtD,CAAC;IACD,UAAU,EAAE;IACZ,QAAQ,EAAE;;8DACU;AAQrB;IANC,mBAAmB,CAAC;QACjB,WAAW,EAAE,iDAAiD;QAC9D,OAAO,EAAE,KAAK;KACjB,CAAC;IACD,UAAU,EAAE;IACZ,SAAS,EAAE;;2DACO;AAGvB,MAAM,OAAO,iBAAiB;CAe7B;AARG;IANC,WAAW,CAAC;QACT,WAAW,EAAE,6BAA6B;QAC1C,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,QAAQ,CAAC,KAAK;KAC1B,CAAC;IACD,MAAM,CAAC,QAAQ,CAAC;;+CACD;AAOhB;IALC,mBAAmB,CAAC;QACjB,WAAW,EAAE,8JAA8J;QAC3K,OAAO,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,GAAG,EAAE,eAAe,EAAE;KAC7D,CAAC;IACD,UAAU,EAAE;;kDACC"}
@@ -7,61 +7,110 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
- import { IsArray, IsBoolean, IsNumber, IsOptional, IsString, IsIn } from "class-validator";
10
+ import { IsArray, IsBoolean, IsNumber, IsOptional, IsString, IsIn, IsNotEmpty } from "class-validator";
11
+ import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
11
12
  export class VideoFileUploadOptionsDto {
12
13
  }
13
14
  __decorate([
15
+ ApiPropertyOptional({
16
+ description: 'Destination folder path for the video',
17
+ example: 'videos/training/2024',
18
+ }),
14
19
  IsString(),
15
20
  IsOptional(),
16
21
  __metadata("design:type", String)
17
22
  ], VideoFileUploadOptionsDto.prototype, "folder", void 0);
18
23
  __decorate([
24
+ ApiPropertyOptional({
25
+ description: 'Maximum file size allowed in megabytes',
26
+ example: 100,
27
+ }),
19
28
  IsNumber(),
20
29
  IsOptional(),
21
30
  __metadata("design:type", Number)
22
31
  ], VideoFileUploadOptionsDto.prototype, "maxSizeInMB", void 0);
23
32
  __decorate([
33
+ ApiPropertyOptional({
34
+ description: 'Allowed MIME types for video files',
35
+ example: ['video/mp4', 'video/webm', 'video/quicktime'],
36
+ type: [String],
37
+ }),
24
38
  IsString({ each: true }),
25
39
  IsOptional(),
26
40
  __metadata("design:type", Array)
27
41
  ], VideoFileUploadOptionsDto.prototype, "allowedMimeTypes", void 0);
28
42
  __decorate([
43
+ ApiPropertyOptional({
44
+ description: 'Whether the video should be publicly accessible',
45
+ example: false,
46
+ }),
29
47
  IsBoolean(),
30
48
  IsOptional(),
31
49
  __metadata("design:type", Boolean)
32
50
  ], VideoFileUploadOptionsDto.prototype, "isPublic", void 0);
33
51
  __decorate([
52
+ ApiPropertyOptional({
53
+ description: 'Tags for categorizing and searching the video',
54
+ example: ['training', 'tutorial', 'onboarding'],
55
+ type: [String],
56
+ }),
34
57
  IsArray(),
35
58
  IsString({ each: true }),
36
59
  IsOptional(),
37
60
  __metadata("design:type", Array)
38
61
  ], VideoFileUploadOptionsDto.prototype, "tags", void 0);
39
62
  __decorate([
63
+ ApiPropertyOptional({
64
+ description: 'Title of the video',
65
+ example: 'Employee Onboarding Tutorial - Part 1',
66
+ }),
40
67
  IsString(),
41
68
  IsOptional(),
42
69
  __metadata("design:type", String)
43
70
  ], VideoFileUploadOptionsDto.prototype, "title", void 0);
44
71
  __decorate([
72
+ ApiPropertyOptional({
73
+ description: 'Detailed description of the video content',
74
+ example: 'Comprehensive guide for new employees covering company policies',
75
+ }),
45
76
  IsString(),
46
77
  IsOptional(),
47
78
  __metadata("design:type", String)
48
79
  ], VideoFileUploadOptionsDto.prototype, "description", void 0);
49
80
  __decorate([
81
+ ApiPropertyOptional({
82
+ description: 'Whether to automatically generate a thumbnail from the video',
83
+ example: true,
84
+ }),
50
85
  IsBoolean(),
51
86
  IsOptional(),
52
87
  __metadata("design:type", Boolean)
53
88
  ], VideoFileUploadOptionsDto.prototype, "generateThumbnail", void 0);
54
89
  __decorate([
90
+ ApiPropertyOptional({
91
+ description: 'Whether to generate a short preview clip',
92
+ example: true,
93
+ }),
55
94
  IsBoolean(),
56
95
  IsOptional(),
57
96
  __metadata("design:type", Boolean)
58
97
  ], VideoFileUploadOptionsDto.prototype, "generatePreview", void 0);
59
98
  __decorate([
99
+ ApiPropertyOptional({
100
+ description: 'Whether to enable video transcoding to multiple formats',
101
+ example: true,
102
+ }),
60
103
  IsBoolean(),
61
104
  IsOptional(),
62
105
  __metadata("design:type", Boolean)
63
106
  ], VideoFileUploadOptionsDto.prototype, "enableTranscoding", void 0);
64
107
  __decorate([
108
+ ApiPropertyOptional({
109
+ description: 'Target quality levels for transcoded videos',
110
+ example: ['1080p', '720p', '480p'],
111
+ enum: ['1080p', '720p', '480p', '360p', '240p'],
112
+ isArray: true,
113
+ }),
65
114
  IsArray(),
66
115
  IsString({ each: true }),
67
116
  IsOptional(),
@@ -69,13 +118,39 @@ __decorate([
69
118
  __metadata("design:type", Array)
70
119
  ], VideoFileUploadOptionsDto.prototype, "targetQualities", void 0);
71
120
  __decorate([
121
+ ApiPropertyOptional({
122
+ description: 'Whether to enable adaptive streaming capabilities',
123
+ example: true,
124
+ }),
72
125
  IsBoolean(),
73
126
  IsOptional(),
74
127
  __metadata("design:type", Boolean)
75
128
  ], VideoFileUploadOptionsDto.prototype, "enableStreaming", void 0);
76
129
  __decorate([
130
+ ApiPropertyOptional({
131
+ description: 'Whether to preserve the original filename',
132
+ example: false,
133
+ }),
77
134
  IsBoolean(),
78
135
  IsOptional(),
79
136
  __metadata("design:type", Boolean)
80
137
  ], VideoFileUploadOptionsDto.prototype, "preserveOriginalName", void 0);
138
+ __decorate([
139
+ ApiProperty({
140
+ description: 'ID of the user uploading the video',
141
+ example: 1,
142
+ }),
143
+ IsNotEmpty(),
144
+ IsNumber(),
145
+ __metadata("design:type", Number)
146
+ ], VideoFileUploadOptionsDto.prototype, "userId", void 0);
147
+ __decorate([
148
+ ApiProperty({
149
+ description: 'ID of the organization the video belongs to',
150
+ example: 12,
151
+ }),
152
+ IsNotEmpty(),
153
+ IsNumber(),
154
+ __metadata("design:type", Number)
155
+ ], VideoFileUploadOptionsDto.prototype, "organizationId", void 0);
81
156
  //# sourceMappingURL=video-file-upload-options.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"video-file-upload-options.dto.js","sourceRoot":"","sources":["../../../../../src/modules/dms/dtos/video-file-upload-options.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE3F,MAAM,OAAO,yBAAyB;CAuDrC;AApDG;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;yDACG;AAIhB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;8DACQ;AAIrB;IAFC,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,UAAU,EAAE;;mEACe;AAI5B;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;2DACM;AAKnB;IAHC,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,UAAU,EAAE;;uDACG;AAIhB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;wDACE;AAIf;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;8DACQ;AAIrB;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;oEACe;AAI5B;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;kEACa;AAI1B;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;oEACe;AAM5B;IAJC,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,UAAU,EAAE;IACZ,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kEACE;AAIlE;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;kEACa;AAI1B;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;uEACkB"}
1
+ {"version":3,"file":"video-file-upload-options.dto.js","sourceRoot":"","sources":["../../../../../src/modules/dms/dtos/video-file-upload-options.dto.ts"],"names":[],"mappings":"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"}
@@ -16,4 +16,6 @@ export declare class AudioFileUploadOptionsDto {
16
16
  targetQualities?: ('high' | 'medium' | 'low')[];
17
17
  enableStreaming?: boolean;
18
18
  preserveOriginalName?: boolean;
19
+ userId: number;
20
+ organizationId: number;
19
21
  }
@@ -7,4 +7,6 @@ export declare class DocumentFileUploadOptionsDto {
7
7
  description?: string;
8
8
  preserveOriginalName?: boolean;
9
9
  enableVersioning?: boolean;
10
+ userId: number;
11
+ organizationId: number;
10
12
  }
@@ -8,4 +8,7 @@ export declare class ImageFileUploadOptionsDto {
8
8
  tags?: string[];
9
9
  alt?: string;
10
10
  caption?: string;
11
+ description?: string;
12
+ userId: number;
13
+ organizationId: number;
11
14
  }
@@ -1,7 +1,7 @@
1
1
  import { FileType } from '../interfaces/multi-file-upload';
2
2
  export declare class MultiFileUploadOptionsDto {
3
- userId: string;
4
- organizationId: string;
3
+ userId: number;
4
+ organizationId: number;
5
5
  tags?: string[];
6
6
  description?: string;
7
7
  isPublic?: boolean;
@@ -12,4 +12,6 @@ export declare class VideoFileUploadOptionsDto {
12
12
  targetQualities?: ('1080p' | '720p' | '480p' | '360p' | '240p')[];
13
13
  enableStreaming?: boolean;
14
14
  preserveOriginalName?: boolean;
15
+ userId: number;
16
+ organizationId: number;
15
17
  }
@@ -16,4 +16,6 @@ export interface AudioFileUploadOptions {
16
16
  targetQualities?: ('high' | 'medium' | 'low')[];
17
17
  enableStreaming?: boolean;
18
18
  preserveOriginalName?: boolean;
19
+ userId: number;
20
+ organizationId: number;
19
21
  }
@@ -37,6 +37,7 @@ export interface AudioFile {
37
37
  createdAt: Date;
38
38
  updatedAt: Date;
39
39
  deletedAt?: Date;
40
+ organizationId: number;
40
41
  signedUrl?: string;
41
42
  }
42
43
  export interface AudioQualityVariant {
@@ -7,4 +7,6 @@ export interface DocumentFileUploadOptions {
7
7
  description?: string;
8
8
  preserveOriginalName?: boolean;
9
9
  enableVersioning?: boolean;
10
+ userId: number;
11
+ organizationId: number;
10
12
  }
@@ -21,5 +21,6 @@ export interface DocumentFile {
21
21
  createdAt: Date;
22
22
  updatedAt: Date;
23
23
  deletedAt?: Date;
24
+ organizationId: number;
24
25
  signedUrl?: string;
25
26
  }
@@ -8,4 +8,7 @@ export interface ImageFileUploadOptions {
8
8
  tags?: string[];
9
9
  alt?: string;
10
10
  caption?: string;
11
+ description?: string;
12
+ userId: number;
13
+ organizationId: number;
11
14
  }
@@ -14,6 +14,7 @@ export interface ImageFile {
14
14
  status: FileStatus;
15
15
  alt?: string;
16
16
  caption?: string;
17
+ description?: string;
17
18
  tags?: string[];
18
19
  metadata?: Record<string, any>;
19
20
  userId: number;
@@ -25,4 +26,5 @@ export interface ImageFile {
25
26
  updatedAt: Date;
26
27
  deletedAt?: Date;
27
28
  signedUrl?: string;
29
+ organizationId: number;
28
30
  }
@@ -27,8 +27,8 @@ export interface FileUploadItemResult {
27
27
  data?: any;
28
28
  }
29
29
  export interface MultiFileUploadOptions {
30
- userId: string;
31
- organizationId: string;
30
+ userId: number;
31
+ organizationId: number;
32
32
  tags?: string[];
33
33
  description?: string;
34
34
  isPublic?: boolean;
@@ -12,4 +12,6 @@ export interface VideoFileUploadOptions {
12
12
  targetQualities?: ('1080p' | '720p' | '480p' | '360p' | '240p')[];
13
13
  enableStreaming?: boolean;
14
14
  preserveOriginalName?: boolean;
15
+ userId: number;
16
+ organizationId: number;
15
17
  }
@@ -34,6 +34,7 @@ export interface VideoFile {
34
34
  createdAt: Date;
35
35
  updatedAt: Date;
36
36
  deletedAt?: Date;
37
+ organizationId: number;
37
38
  signedUrl?: string;
38
39
  }
39
40
  export interface VideoQualityVariant {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grm-shared-library",
3
- "version": "1.1.116",
3
+ "version": "1.1.118",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",