clhq-dynamodb-module 1.1.0-alpha.90
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/app.module.d.ts +2 -0
- package/dist/app.module.js +88 -0
- package/dist/common/enums/index.d.ts +1 -0
- package/dist/common/enums/index.js +17 -0
- package/dist/common/enums/project-enums.d.ts +13 -0
- package/dist/common/enums/project-enums.js +18 -0
- package/dist/common/user.controller.d.ts +12 -0
- package/dist/common/user.controller.js +102 -0
- package/dist/dbservice/dynamodb-base.service.d.ts +23 -0
- package/dist/dbservice/dynamodb-base.service.js +105 -0
- package/dist/dbservice/index.d.ts +4 -0
- package/dist/dbservice/index.js +20 -0
- package/dist/dbservice/projects.service.d.ts +5 -0
- package/dist/dbservice/projects.service.js +25 -0
- package/dist/dbservice/users.service.d.ts +5 -0
- package/dist/dbservice/users.service.js +25 -0
- package/dist/dbservice/workspaces.service.d.ts +5 -0
- package/dist/dbservice/workspaces.service.js +25 -0
- package/dist/entities/ai-usage.entity.d.ts +16 -0
- package/dist/entities/ai-usage.entity.js +71 -0
- package/dist/entities/asset.entity.d.ts +59 -0
- package/dist/entities/asset.entity.js +185 -0
- package/dist/entities/auth.entity.d.ts +10 -0
- package/dist/entities/auth.entity.js +9 -0
- package/dist/entities/clip-effect.entity.d.ts +9 -0
- package/dist/entities/clip-effect.entity.js +53 -0
- package/dist/entities/clip.entity.d.ts +44 -0
- package/dist/entities/clip.entity.js +114 -0
- package/dist/entities/comment.entity.d.ts +18 -0
- package/dist/entities/comment.entity.js +83 -0
- package/dist/entities/common.entity.d.ts +21 -0
- package/dist/entities/common.entity.js +27 -0
- package/dist/entities/credit-transaction.entity.d.ts +15 -0
- package/dist/entities/credit-transaction.entity.js +66 -0
- package/dist/entities/editor-project.entity.d.ts +48 -0
- package/dist/entities/editor-project.entity.js +226 -0
- package/dist/entities/effect.entity.d.ts +22 -0
- package/dist/entities/effect.entity.js +87 -0
- package/dist/entities/index.d.ts +28 -0
- package/dist/entities/index.js +44 -0
- package/dist/entities/invite.entity.d.ts +17 -0
- package/dist/entities/invite.entity.js +73 -0
- package/dist/entities/keyframe.entity.d.ts +18 -0
- package/dist/entities/keyframe.entity.js +73 -0
- package/dist/entities/payment-transaction.entity.d.ts +40 -0
- package/dist/entities/payment-transaction.entity.js +138 -0
- package/dist/entities/payment.entity.d.ts +24 -0
- package/dist/entities/payment.entity.js +89 -0
- package/dist/entities/plan.entity.d.ts +13 -0
- package/dist/entities/plan.entity.js +77 -0
- package/dist/entities/project-version.entity.d.ts +11 -0
- package/dist/entities/project-version.entity.js +66 -0
- package/dist/entities/project.entity.d.ts +48 -0
- package/dist/entities/project.entity.js +175 -0
- package/dist/entities/reward-rule.entity.d.ts +15 -0
- package/dist/entities/reward-rule.entity.js +67 -0
- package/dist/entities/stripe-webhook-event.entity.d.ts +9 -0
- package/dist/entities/stripe-webhook-event.entity.js +54 -0
- package/dist/entities/subscription-plan.entity.d.ts +37 -0
- package/dist/entities/subscription-plan.entity.js +197 -0
- package/dist/entities/subscription-usage.entity.d.ts +15 -0
- package/dist/entities/subscription-usage.entity.js +83 -0
- package/dist/entities/timeline.entity.d.ts +8 -0
- package/dist/entities/timeline.entity.js +48 -0
- package/dist/entities/track.entity.d.ts +20 -0
- package/dist/entities/track.entity.js +81 -0
- package/dist/entities/user-onboarding-response.entity.d.ts +8 -0
- package/dist/entities/user-onboarding-response.entity.js +48 -0
- package/dist/entities/user-profile.entity.d.ts +51 -0
- package/dist/entities/user-profile.entity.js +200 -0
- package/dist/entities/user-subscription.entity.d.ts +44 -0
- package/dist/entities/user-subscription.entity.js +160 -0
- package/dist/entities/user.entity.d.ts +32 -0
- package/dist/entities/user.entity.js +133 -0
- package/dist/entities/workspace-member.entity.d.ts +8 -0
- package/dist/entities/workspace-member.entity.js +49 -0
- package/dist/entities/workspace.entity.d.ts +9 -0
- package/dist/entities/workspace.entity.js +54 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +22 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +10 -0
- package/dist/repositories/asset.repository.d.ts +15 -0
- package/dist/repositories/asset.repository.js +101 -0
- package/dist/repositories/base.repository.d.ts +31 -0
- package/dist/repositories/base.repository.js +172 -0
- package/dist/repositories/clip-effect.repository.d.ts +9 -0
- package/dist/repositories/clip-effect.repository.js +49 -0
- package/dist/repositories/clip.repository.d.ts +13 -0
- package/dist/repositories/clip.repository.js +101 -0
- package/dist/repositories/comment.repository.d.ts +12 -0
- package/dist/repositories/comment.repository.js +92 -0
- package/dist/repositories/editor-project.repository.d.ts +26 -0
- package/dist/repositories/editor-project.repository.js +107 -0
- package/dist/repositories/effect.repository.d.ts +10 -0
- package/dist/repositories/effect.repository.js +59 -0
- package/dist/repositories/index.d.ts +21 -0
- package/dist/repositories/index.js +37 -0
- package/dist/repositories/keyframe.repository.d.ts +9 -0
- package/dist/repositories/keyframe.repository.js +49 -0
- package/dist/repositories/payment-transaction.repository.d.ts +13 -0
- package/dist/repositories/payment-transaction.repository.js +123 -0
- package/dist/repositories/project-version.repository.d.ts +9 -0
- package/dist/repositories/project-version.repository.js +51 -0
- package/dist/repositories/project.repository.d.ts +17 -0
- package/dist/repositories/project.repository.js +132 -0
- package/dist/repositories/reward-rule.repository.d.ts +13 -0
- package/dist/repositories/reward-rule.repository.js +84 -0
- package/dist/repositories/subscription-plan.repository.d.ts +11 -0
- package/dist/repositories/subscription-plan.repository.js +49 -0
- package/dist/repositories/subscription-usage.repository.d.ts +12 -0
- package/dist/repositories/subscription-usage.repository.js +68 -0
- package/dist/repositories/timeline.repository.d.ts +9 -0
- package/dist/repositories/timeline.repository.js +53 -0
- package/dist/repositories/track.repository.d.ts +13 -0
- package/dist/repositories/track.repository.js +61 -0
- package/dist/repositories/user-onboarding-response.repository.d.ts +11 -0
- package/dist/repositories/user-onboarding-response.repository.js +58 -0
- package/dist/repositories/user-profile.repository.d.ts +18 -0
- package/dist/repositories/user-profile.repository.js +62 -0
- package/dist/repositories/user-subscription.repository.d.ts +13 -0
- package/dist/repositories/user-subscription.repository.js +52 -0
- package/dist/repositories/user.repository.d.ts +20 -0
- package/dist/repositories/user.repository.js +94 -0
- package/dist/repositories/workspace-member.repository.d.ts +10 -0
- package/dist/repositories/workspace-member.repository.js +37 -0
- package/dist/repositories/workspace.repository.d.ts +10 -0
- package/dist/repositories/workspace.repository.js +45 -0
- package/package.json +63 -0
- package/readme.entity.implementation.md +1560 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export declare enum AssetType {
|
|
2
|
+
VIDEO = "video",
|
|
3
|
+
AUDIO = "audio",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
FONT = "font",
|
|
6
|
+
SUBTITLE = "subtitle",
|
|
7
|
+
TEMPLATE = "template",
|
|
8
|
+
GRAPHIC = "graphic"
|
|
9
|
+
}
|
|
10
|
+
export declare enum AssetStatus {
|
|
11
|
+
UPLOADING = "uploading",
|
|
12
|
+
PROCESSING = "processing",
|
|
13
|
+
READY = "ready",
|
|
14
|
+
FAILED = "failed",
|
|
15
|
+
DELETED = "deleted"
|
|
16
|
+
}
|
|
17
|
+
export declare class Asset {
|
|
18
|
+
id: string;
|
|
19
|
+
workspaceId: string;
|
|
20
|
+
uploadedBy: string;
|
|
21
|
+
categoryId?: string;
|
|
22
|
+
name: string;
|
|
23
|
+
originalFilename?: string;
|
|
24
|
+
fileType: AssetType;
|
|
25
|
+
mimeType?: string;
|
|
26
|
+
fileSize: number;
|
|
27
|
+
fileUrl: string;
|
|
28
|
+
thumbnailUrl?: string;
|
|
29
|
+
previewUrl?: string;
|
|
30
|
+
durationMs?: number;
|
|
31
|
+
width?: number;
|
|
32
|
+
height?: number;
|
|
33
|
+
frameRate?: number;
|
|
34
|
+
codec?: string;
|
|
35
|
+
bitrate?: number;
|
|
36
|
+
metadata?: {
|
|
37
|
+
colorSpace?: string;
|
|
38
|
+
hasAudio?: boolean;
|
|
39
|
+
audioChannels?: number;
|
|
40
|
+
audioSampleRate?: number;
|
|
41
|
+
videoCodec?: string;
|
|
42
|
+
audioCodec?: string;
|
|
43
|
+
creationTime?: string;
|
|
44
|
+
cameraModel?: string;
|
|
45
|
+
location?: {
|
|
46
|
+
latitude?: number;
|
|
47
|
+
longitude?: number;
|
|
48
|
+
};
|
|
49
|
+
exif?: Record<string, any>;
|
|
50
|
+
};
|
|
51
|
+
uploadStatus: AssetStatus;
|
|
52
|
+
tags?: string[];
|
|
53
|
+
isPublic: boolean;
|
|
54
|
+
isPremium: boolean;
|
|
55
|
+
usageCount: number;
|
|
56
|
+
lastUsedAt?: string;
|
|
57
|
+
createdAt?: string;
|
|
58
|
+
updatedAt?: string;
|
|
59
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
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.Asset = exports.AssetStatus = exports.AssetType = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
var AssetType;
|
|
15
|
+
(function (AssetType) {
|
|
16
|
+
AssetType["VIDEO"] = "video";
|
|
17
|
+
AssetType["AUDIO"] = "audio";
|
|
18
|
+
AssetType["IMAGE"] = "image";
|
|
19
|
+
AssetType["FONT"] = "font";
|
|
20
|
+
AssetType["SUBTITLE"] = "subtitle";
|
|
21
|
+
AssetType["TEMPLATE"] = "template";
|
|
22
|
+
AssetType["GRAPHIC"] = "graphic";
|
|
23
|
+
})(AssetType || (exports.AssetType = AssetType = {}));
|
|
24
|
+
var AssetStatus;
|
|
25
|
+
(function (AssetStatus) {
|
|
26
|
+
AssetStatus["UPLOADING"] = "uploading";
|
|
27
|
+
AssetStatus["PROCESSING"] = "processing";
|
|
28
|
+
AssetStatus["READY"] = "ready";
|
|
29
|
+
AssetStatus["FAILED"] = "failed";
|
|
30
|
+
AssetStatus["DELETED"] = "deleted";
|
|
31
|
+
})(AssetStatus || (exports.AssetStatus = AssetStatus = {}));
|
|
32
|
+
class Asset {
|
|
33
|
+
id;
|
|
34
|
+
workspaceId;
|
|
35
|
+
uploadedBy;
|
|
36
|
+
categoryId;
|
|
37
|
+
name;
|
|
38
|
+
originalFilename;
|
|
39
|
+
fileType;
|
|
40
|
+
mimeType;
|
|
41
|
+
fileSize;
|
|
42
|
+
fileUrl;
|
|
43
|
+
thumbnailUrl;
|
|
44
|
+
previewUrl;
|
|
45
|
+
durationMs;
|
|
46
|
+
width;
|
|
47
|
+
height;
|
|
48
|
+
frameRate;
|
|
49
|
+
codec;
|
|
50
|
+
bitrate;
|
|
51
|
+
metadata;
|
|
52
|
+
uploadStatus = AssetStatus.UPLOADING;
|
|
53
|
+
tags;
|
|
54
|
+
isPublic = false;
|
|
55
|
+
isPremium = false;
|
|
56
|
+
usageCount = 0;
|
|
57
|
+
lastUsedAt;
|
|
58
|
+
createdAt;
|
|
59
|
+
updatedAt;
|
|
60
|
+
}
|
|
61
|
+
exports.Asset = Asset;
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsString)(),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], Asset.prototype, "id", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsString)(),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], Asset.prototype, "workspaceId", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_validator_1.IsString)(),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], Asset.prototype, "uploadedBy", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_validator_1.IsString)(),
|
|
76
|
+
(0, class_validator_1.IsOptional)(),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], Asset.prototype, "categoryId", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, class_validator_1.IsString)(),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], Asset.prototype, "name", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, class_validator_1.IsString)(),
|
|
85
|
+
(0, class_validator_1.IsOptional)(),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], Asset.prototype, "originalFilename", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, class_validator_1.IsEnum)(AssetType),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], Asset.prototype, "fileType", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, class_validator_1.IsString)(),
|
|
94
|
+
(0, class_validator_1.IsOptional)(),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], Asset.prototype, "mimeType", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, class_validator_1.IsNumber)(),
|
|
99
|
+
__metadata("design:type", Number)
|
|
100
|
+
], Asset.prototype, "fileSize", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, class_validator_1.IsString)(),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], Asset.prototype, "fileUrl", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, class_validator_1.IsString)(),
|
|
107
|
+
(0, class_validator_1.IsOptional)(),
|
|
108
|
+
__metadata("design:type", String)
|
|
109
|
+
], Asset.prototype, "thumbnailUrl", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, class_validator_1.IsString)(),
|
|
112
|
+
(0, class_validator_1.IsOptional)(),
|
|
113
|
+
__metadata("design:type", String)
|
|
114
|
+
], Asset.prototype, "previewUrl", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, class_validator_1.IsNumber)(),
|
|
117
|
+
(0, class_validator_1.IsOptional)(),
|
|
118
|
+
__metadata("design:type", Number)
|
|
119
|
+
], Asset.prototype, "durationMs", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, class_validator_1.IsNumber)(),
|
|
122
|
+
(0, class_validator_1.IsOptional)(),
|
|
123
|
+
__metadata("design:type", Number)
|
|
124
|
+
], Asset.prototype, "width", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, class_validator_1.IsNumber)(),
|
|
127
|
+
(0, class_validator_1.IsOptional)(),
|
|
128
|
+
__metadata("design:type", Number)
|
|
129
|
+
], Asset.prototype, "height", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, class_validator_1.IsNumber)(),
|
|
132
|
+
(0, class_validator_1.IsOptional)(),
|
|
133
|
+
__metadata("design:type", Number)
|
|
134
|
+
], Asset.prototype, "frameRate", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, class_validator_1.IsString)(),
|
|
137
|
+
(0, class_validator_1.IsOptional)(),
|
|
138
|
+
__metadata("design:type", String)
|
|
139
|
+
], Asset.prototype, "codec", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, class_validator_1.IsNumber)(),
|
|
142
|
+
(0, class_validator_1.IsOptional)(),
|
|
143
|
+
__metadata("design:type", Number)
|
|
144
|
+
], Asset.prototype, "bitrate", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, class_validator_1.IsObject)(),
|
|
147
|
+
(0, class_validator_1.IsOptional)(),
|
|
148
|
+
__metadata("design:type", Object)
|
|
149
|
+
], Asset.prototype, "metadata", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, class_validator_1.IsEnum)(AssetStatus),
|
|
152
|
+
__metadata("design:type", String)
|
|
153
|
+
], Asset.prototype, "uploadStatus", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, class_validator_1.IsArray)(),
|
|
156
|
+
(0, class_validator_1.IsOptional)(),
|
|
157
|
+
__metadata("design:type", Array)
|
|
158
|
+
], Asset.prototype, "tags", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, class_validator_1.IsBoolean)(),
|
|
161
|
+
__metadata("design:type", Boolean)
|
|
162
|
+
], Asset.prototype, "isPublic", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
(0, class_validator_1.IsBoolean)(),
|
|
165
|
+
__metadata("design:type", Boolean)
|
|
166
|
+
], Asset.prototype, "isPremium", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, class_validator_1.IsNumber)(),
|
|
169
|
+
__metadata("design:type", Number)
|
|
170
|
+
], Asset.prototype, "usageCount", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, class_validator_1.IsString)(),
|
|
173
|
+
(0, class_validator_1.IsOptional)(),
|
|
174
|
+
__metadata("design:type", String)
|
|
175
|
+
], Asset.prototype, "lastUsedAt", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
(0, class_validator_1.IsString)(),
|
|
178
|
+
(0, class_validator_1.IsOptional)(),
|
|
179
|
+
__metadata("design:type", String)
|
|
180
|
+
], Asset.prototype, "createdAt", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
(0, class_validator_1.IsString)(),
|
|
183
|
+
(0, class_validator_1.IsOptional)(),
|
|
184
|
+
__metadata("design:type", String)
|
|
185
|
+
], Asset.prototype, "updatedAt", void 0);
|
|
@@ -0,0 +1,53 @@
|
|
|
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.ClipEffect = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class ClipEffect {
|
|
15
|
+
id;
|
|
16
|
+
clipId;
|
|
17
|
+
effectId;
|
|
18
|
+
parameters;
|
|
19
|
+
orderIndex;
|
|
20
|
+
isEnabled = true;
|
|
21
|
+
createdAt;
|
|
22
|
+
}
|
|
23
|
+
exports.ClipEffect = ClipEffect;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], ClipEffect.prototype, "id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], ClipEffect.prototype, "clipId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], ClipEffect.prototype, "effectId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsObject)(),
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], ClipEffect.prototype, "parameters", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsNumber)(),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], ClipEffect.prototype, "orderIndex", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsBoolean)(),
|
|
47
|
+
__metadata("design:type", Boolean)
|
|
48
|
+
], ClipEffect.prototype, "isEnabled", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsString)(),
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], ClipEffect.prototype, "createdAt", void 0);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare class Clip {
|
|
2
|
+
id: string;
|
|
3
|
+
trackId: string;
|
|
4
|
+
assetId?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
startTimeMs: number;
|
|
7
|
+
endTimeMs: number;
|
|
8
|
+
orderIndex: number;
|
|
9
|
+
assetStartTimeMs: number;
|
|
10
|
+
assetEndTimeMs?: number;
|
|
11
|
+
volume: number;
|
|
12
|
+
opacity: number;
|
|
13
|
+
speed: number;
|
|
14
|
+
isReversed: boolean;
|
|
15
|
+
transform?: {
|
|
16
|
+
x?: number;
|
|
17
|
+
y?: number;
|
|
18
|
+
scaleX?: number;
|
|
19
|
+
scaleY?: number;
|
|
20
|
+
rotation?: number;
|
|
21
|
+
skewX?: number;
|
|
22
|
+
skewY?: number;
|
|
23
|
+
};
|
|
24
|
+
crop?: {
|
|
25
|
+
x?: number;
|
|
26
|
+
y?: number;
|
|
27
|
+
width?: number;
|
|
28
|
+
height?: number;
|
|
29
|
+
};
|
|
30
|
+
colorCorrection?: {
|
|
31
|
+
brightness?: number;
|
|
32
|
+
contrast?: number;
|
|
33
|
+
saturation?: number;
|
|
34
|
+
hue?: number;
|
|
35
|
+
gamma?: number;
|
|
36
|
+
exposure?: number;
|
|
37
|
+
highlights?: number;
|
|
38
|
+
shadows?: number;
|
|
39
|
+
temperature?: number;
|
|
40
|
+
tint?: number;
|
|
41
|
+
};
|
|
42
|
+
createdAt?: string;
|
|
43
|
+
updatedAt?: string;
|
|
44
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
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.Clip = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class Clip {
|
|
15
|
+
id;
|
|
16
|
+
trackId;
|
|
17
|
+
assetId;
|
|
18
|
+
name;
|
|
19
|
+
startTimeMs;
|
|
20
|
+
endTimeMs;
|
|
21
|
+
orderIndex;
|
|
22
|
+
assetStartTimeMs = 0;
|
|
23
|
+
assetEndTimeMs;
|
|
24
|
+
volume = 1.0;
|
|
25
|
+
opacity = 1.0;
|
|
26
|
+
speed = 1.0;
|
|
27
|
+
isReversed = false;
|
|
28
|
+
transform;
|
|
29
|
+
crop;
|
|
30
|
+
colorCorrection;
|
|
31
|
+
createdAt;
|
|
32
|
+
updatedAt;
|
|
33
|
+
}
|
|
34
|
+
exports.Clip = Clip;
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], Clip.prototype, "id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], Clip.prototype, "trackId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], Clip.prototype, "assetId", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsString)(),
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], Clip.prototype, "name", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsNumber)(),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], Clip.prototype, "startTimeMs", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsNumber)(),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], Clip.prototype, "endTimeMs", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsNumber)(),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], Clip.prototype, "orderIndex", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_validator_1.IsNumber)(),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], Clip.prototype, "assetStartTimeMs", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsNumber)(),
|
|
71
|
+
(0, class_validator_1.IsOptional)(),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], Clip.prototype, "assetEndTimeMs", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_validator_1.IsNumber)(),
|
|
76
|
+
__metadata("design:type", Number)
|
|
77
|
+
], Clip.prototype, "volume", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_validator_1.IsNumber)(),
|
|
80
|
+
__metadata("design:type", Number)
|
|
81
|
+
], Clip.prototype, "opacity", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_validator_1.IsNumber)(),
|
|
84
|
+
__metadata("design:type", Number)
|
|
85
|
+
], Clip.prototype, "speed", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, class_validator_1.IsBoolean)(),
|
|
88
|
+
__metadata("design:type", Boolean)
|
|
89
|
+
], Clip.prototype, "isReversed", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, class_validator_1.IsObject)(),
|
|
92
|
+
(0, class_validator_1.IsOptional)(),
|
|
93
|
+
__metadata("design:type", Object)
|
|
94
|
+
], Clip.prototype, "transform", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, class_validator_1.IsObject)(),
|
|
97
|
+
(0, class_validator_1.IsOptional)(),
|
|
98
|
+
__metadata("design:type", Object)
|
|
99
|
+
], Clip.prototype, "crop", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, class_validator_1.IsObject)(),
|
|
102
|
+
(0, class_validator_1.IsOptional)(),
|
|
103
|
+
__metadata("design:type", Object)
|
|
104
|
+
], Clip.prototype, "colorCorrection", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, class_validator_1.IsString)(),
|
|
107
|
+
(0, class_validator_1.IsOptional)(),
|
|
108
|
+
__metadata("design:type", String)
|
|
109
|
+
], Clip.prototype, "createdAt", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, class_validator_1.IsString)(),
|
|
112
|
+
(0, class_validator_1.IsOptional)(),
|
|
113
|
+
__metadata("design:type", String)
|
|
114
|
+
], Clip.prototype, "updatedAt", void 0);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare enum CommentStatus {
|
|
2
|
+
OPEN = "open",
|
|
3
|
+
RESOLVED = "resolved",
|
|
4
|
+
ARCHIVED = "archived"
|
|
5
|
+
}
|
|
6
|
+
export declare class Comment {
|
|
7
|
+
id: string;
|
|
8
|
+
projectId: string;
|
|
9
|
+
userId: string;
|
|
10
|
+
parentId?: string;
|
|
11
|
+
content: string;
|
|
12
|
+
timestampMs?: number;
|
|
13
|
+
positionX?: number;
|
|
14
|
+
positionY?: number;
|
|
15
|
+
status: CommentStatus;
|
|
16
|
+
createdAt?: string;
|
|
17
|
+
updatedAt?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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.Comment = exports.CommentStatus = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
var CommentStatus;
|
|
15
|
+
(function (CommentStatus) {
|
|
16
|
+
CommentStatus["OPEN"] = "open";
|
|
17
|
+
CommentStatus["RESOLVED"] = "resolved";
|
|
18
|
+
CommentStatus["ARCHIVED"] = "archived";
|
|
19
|
+
})(CommentStatus || (exports.CommentStatus = CommentStatus = {}));
|
|
20
|
+
class Comment {
|
|
21
|
+
id;
|
|
22
|
+
projectId;
|
|
23
|
+
userId;
|
|
24
|
+
parentId;
|
|
25
|
+
content;
|
|
26
|
+
timestampMs;
|
|
27
|
+
positionX;
|
|
28
|
+
positionY;
|
|
29
|
+
status = CommentStatus.OPEN;
|
|
30
|
+
createdAt;
|
|
31
|
+
updatedAt;
|
|
32
|
+
}
|
|
33
|
+
exports.Comment = Comment;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], Comment.prototype, "id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], Comment.prototype, "projectId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], Comment.prototype, "userId", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsString)(),
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], Comment.prototype, "parentId", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsString)(),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], Comment.prototype, "content", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsNumber)(),
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], Comment.prototype, "timestampMs", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.IsNumber)(),
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], Comment.prototype, "positionX", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_validator_1.IsNumber)(),
|
|
67
|
+
(0, class_validator_1.IsOptional)(),
|
|
68
|
+
__metadata("design:type", Number)
|
|
69
|
+
], Comment.prototype, "positionY", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_validator_1.IsEnum)(CommentStatus),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], Comment.prototype, "status", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_validator_1.IsString)(),
|
|
76
|
+
(0, class_validator_1.IsOptional)(),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], Comment.prototype, "createdAt", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, class_validator_1.IsString)(),
|
|
81
|
+
(0, class_validator_1.IsOptional)(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], Comment.prototype, "updatedAt", void 0);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare enum UserSubscriptionStatus {
|
|
2
|
+
ACTIVE = "active",
|
|
3
|
+
CANCELLED = "cancelled",
|
|
4
|
+
EXPIRED = "expired",
|
|
5
|
+
SUSPENDED = "suspended",
|
|
6
|
+
TRIAL = "trial",
|
|
7
|
+
PAST_DUE = "past_due",
|
|
8
|
+
UNPAID = "unpaid",
|
|
9
|
+
FREE = "free"
|
|
10
|
+
}
|
|
11
|
+
export declare enum ProjectBillingCycle {
|
|
12
|
+
MONTHLY = "monthly",
|
|
13
|
+
YEARLY = "yearly"
|
|
14
|
+
}
|
|
15
|
+
export declare enum UserCancelReason {
|
|
16
|
+
USER_REQUEST = "user_request",
|
|
17
|
+
PAYMENT_FAILED = "payment_failed",
|
|
18
|
+
FRAUD = "fraud",
|
|
19
|
+
DOWNGRADE = "downgrade",
|
|
20
|
+
OTHER = "other"
|
|
21
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserCancelReason = exports.ProjectBillingCycle = exports.UserSubscriptionStatus = void 0;
|
|
4
|
+
var UserSubscriptionStatus;
|
|
5
|
+
(function (UserSubscriptionStatus) {
|
|
6
|
+
UserSubscriptionStatus["ACTIVE"] = "active";
|
|
7
|
+
UserSubscriptionStatus["CANCELLED"] = "cancelled";
|
|
8
|
+
UserSubscriptionStatus["EXPIRED"] = "expired";
|
|
9
|
+
UserSubscriptionStatus["SUSPENDED"] = "suspended";
|
|
10
|
+
UserSubscriptionStatus["TRIAL"] = "trial";
|
|
11
|
+
UserSubscriptionStatus["PAST_DUE"] = "past_due";
|
|
12
|
+
UserSubscriptionStatus["UNPAID"] = "unpaid";
|
|
13
|
+
UserSubscriptionStatus["FREE"] = "free";
|
|
14
|
+
})(UserSubscriptionStatus || (exports.UserSubscriptionStatus = UserSubscriptionStatus = {}));
|
|
15
|
+
var ProjectBillingCycle;
|
|
16
|
+
(function (ProjectBillingCycle) {
|
|
17
|
+
ProjectBillingCycle["MONTHLY"] = "monthly";
|
|
18
|
+
ProjectBillingCycle["YEARLY"] = "yearly";
|
|
19
|
+
})(ProjectBillingCycle || (exports.ProjectBillingCycle = ProjectBillingCycle = {}));
|
|
20
|
+
var UserCancelReason;
|
|
21
|
+
(function (UserCancelReason) {
|
|
22
|
+
UserCancelReason["USER_REQUEST"] = "user_request";
|
|
23
|
+
UserCancelReason["PAYMENT_FAILED"] = "payment_failed";
|
|
24
|
+
UserCancelReason["FRAUD"] = "fraud";
|
|
25
|
+
UserCancelReason["DOWNGRADE"] = "downgrade";
|
|
26
|
+
UserCancelReason["OTHER"] = "other";
|
|
27
|
+
})(UserCancelReason || (exports.UserCancelReason = UserCancelReason = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum TransactionType {
|
|
2
|
+
EARNED = "earned",
|
|
3
|
+
SPENT = "spent",
|
|
4
|
+
REFUNDED = "refunded"
|
|
5
|
+
}
|
|
6
|
+
export declare class CreditTransaction {
|
|
7
|
+
id: string;
|
|
8
|
+
userId: string;
|
|
9
|
+
amount: number;
|
|
10
|
+
type: TransactionType;
|
|
11
|
+
description?: string;
|
|
12
|
+
referenceId?: string;
|
|
13
|
+
createdAt?: string;
|
|
14
|
+
updatedAt?: string;
|
|
15
|
+
}
|