shred-api-client 2.0.9 → 2.0.10-rc.1
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/index.d.mts +2596 -0
- package/dist/index.d.ts +2596 -15
- package/dist/index.js +1788 -40
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1747 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +6 -5
- package/dist/api/AppConfig.api.d.ts +0 -9
- package/dist/api/AppConfig.api.js +0 -42
- package/dist/api/Email.api.d.ts +0 -10
- package/dist/api/Email.api.js +0 -42
- package/dist/api/Goal.api.d.ts +0 -10
- package/dist/api/Goal.api.js +0 -42
- package/dist/api/Note.api.d.ts +0 -13
- package/dist/api/Note.api.js +0 -60
- package/dist/api/Notification.api.d.ts +0 -18
- package/dist/api/Notification.api.js +0 -80
- package/dist/api/Project.api.d.ts +0 -26
- package/dist/api/Project.api.js +0 -122
- package/dist/api/Prompt.api.d.ts +0 -14
- package/dist/api/Prompt.api.js +0 -41
- package/dist/api/Subscription.api.d.ts +0 -18
- package/dist/api/Subscription.api.js +0 -69
- package/dist/api/Tenant.api.d.ts +0 -14
- package/dist/api/Tenant.api.js +0 -47
- package/dist/api/Track.api.d.ts +0 -9
- package/dist/api/Track.api.js +0 -19
- package/dist/api/User.api.d.ts +0 -25
- package/dist/api/User.api.js +0 -98
- package/dist/model/Api.d.ts +0 -26
- package/dist/model/Api.js +0 -33
- package/dist/model/Context.d.ts +0 -5
- package/dist/model/Context.js +0 -2
- package/dist/model/Env.d.ts +0 -2
- package/dist/model/Env.js +0 -2
- package/dist/model/app-config/AppConfig.api.d.ts +0 -9
- package/dist/model/app-config/AppConfig.api.js +0 -9
- package/dist/model/app-config/index.d.ts +0 -1
- package/dist/model/app-config/index.js +0 -17
- package/dist/model/asset/Asset.schema.d.ts +0 -43
- package/dist/model/asset/Asset.schema.js +0 -19
- package/dist/model/asset/index.d.ts +0 -2
- package/dist/model/asset/index.js +0 -5
- package/dist/model/core/APIResponse.d.ts +0 -6
- package/dist/model/core/APIResponse.js +0 -2
- package/dist/model/core/Query.d.ts +0 -15
- package/dist/model/core/Query.js +0 -2
- package/dist/model/core/index.d.ts +0 -2
- package/dist/model/core/index.js +0 -18
- package/dist/model/email/Email.api.d.ts +0 -11
- package/dist/model/email/Email.api.js +0 -9
- package/dist/model/email/Email.schema.d.ts +0 -15
- package/dist/model/email/Email.schema.js +0 -9
- package/dist/model/email/index.d.ts +0 -3
- package/dist/model/email/index.js +0 -20
- package/dist/model/exceptions/ConflictException.d.ts +0 -4
- package/dist/model/exceptions/ConflictException.js +0 -13
- package/dist/model/exceptions/ForbiddenException.d.ts +0 -4
- package/dist/model/exceptions/ForbiddenException.js +0 -13
- package/dist/model/exceptions/InvalidArgumentException.d.ts +0 -4
- package/dist/model/exceptions/InvalidArgumentException.js +0 -13
- package/dist/model/exceptions/ResourceNotFoundException.d.ts +0 -4
- package/dist/model/exceptions/ResourceNotFoundException.js +0 -13
- package/dist/model/exceptions/ShredException.d.ts +0 -4
- package/dist/model/exceptions/ShredException.js +0 -10
- package/dist/model/exceptions/UnauthorizedException.d.ts +0 -4
- package/dist/model/exceptions/UnauthorizedException.js +0 -13
- package/dist/model/exceptions/index.d.ts +0 -16
- package/dist/model/exceptions/index.js +0 -20
- package/dist/model/goal/Goal.api.d.ts +0 -11
- package/dist/model/goal/Goal.api.js +0 -6
- package/dist/model/goal/Goal.schema.d.ts +0 -154
- package/dist/model/goal/Goal.schema.js +0 -26
- package/dist/model/goal/index.d.ts +0 -3
- package/dist/model/goal/index.js +0 -22
- package/dist/model/note/Note.api.d.ts +0 -26
- package/dist/model/note/Note.api.js +0 -21
- package/dist/model/note/Note.schema.d.ts +0 -141
- package/dist/model/note/Note.schema.js +0 -30
- package/dist/model/note/index.d.ts +0 -3
- package/dist/model/note/index.js +0 -21
- package/dist/model/notification/Notification.api.d.ts +0 -47
- package/dist/model/notification/Notification.api.js +0 -13
- package/dist/model/notification/Notification.schema.d.ts +0 -454
- package/dist/model/notification/Notification.schema.js +0 -111
- package/dist/model/notification/index.d.ts +0 -3
- package/dist/model/notification/index.js +0 -30
- package/dist/model/project/Project.api.d.ts +0 -83
- package/dist/model/project/Project.api.js +0 -26
- package/dist/model/project/Project.schema.d.ts +0 -209
- package/dist/model/project/Project.schema.js +0 -60
- package/dist/model/project/index.d.ts +0 -3
- package/dist/model/project/index.js +0 -24
- package/dist/model/prompt/Prompt.api.d.ts +0 -31
- package/dist/model/prompt/Prompt.api.js +0 -25
- package/dist/model/prompt/Prompt.schema.d.ts +0 -165
- package/dist/model/prompt/Prompt.schema.js +0 -24
- package/dist/model/prompt/index.d.ts +0 -3
- package/dist/model/prompt/index.js +0 -22
- package/dist/model/subscription/Subscription.api.d.ts +0 -59
- package/dist/model/subscription/Subscription.api.js +0 -49
- package/dist/model/subscription/Subscription.schema.d.ts +0 -314
- package/dist/model/subscription/Subscription.schema.js +0 -53
- package/dist/model/subscription/index.d.ts +0 -3
- package/dist/model/subscription/index.js +0 -25
- package/dist/model/tenant/Tenant.api.d.ts +0 -35
- package/dist/model/tenant/Tenant.api.js +0 -29
- package/dist/model/tenant/Tenant.schema.d.ts +0 -342
- package/dist/model/tenant/Tenant.schema.js +0 -29
- package/dist/model/tenant/index.d.ts +0 -3
- package/dist/model/tenant/index.js +0 -21
- package/dist/model/track/Track.api.d.ts +0 -10
- package/dist/model/track/Track.api.js +0 -9
- package/dist/model/track/Track.schema.d.ts +0 -44
- package/dist/model/track/Track.schema.js +0 -14
- package/dist/model/track/index.d.ts +0 -3
- package/dist/model/track/index.js +0 -21
- package/dist/model/user/User.api.d.ts +0 -86
- package/dist/model/user/User.api.js +0 -21
- package/dist/model/user/User.schema.d.ts +0 -117
- package/dist/model/user/User.schema.js +0 -42
- package/dist/model/user/index.d.ts +0 -3
- package/dist/model/user/index.js +0 -23
- package/dist/util/HTTPClient.d.ts +0 -5
- package/dist/util/HTTPClient.js +0 -71
- package/dist/util/parseQuery.d.ts +0 -2
- package/dist/util/parseQuery.js +0 -25
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Endpoints = void 0;
|
|
4
|
-
exports.Endpoints = {
|
|
5
|
-
List: { uri: "/projects/list", method: "GET" },
|
|
6
|
-
GetNext: { uri: "/projects/:userId/next", method: "GET" },
|
|
7
|
-
CreateProject: { uri: "/projects/create", method: "POST" },
|
|
8
|
-
FindOne: { uri: `/projects/:projectId/`, method: "GET" },
|
|
9
|
-
GetGoals: { uri: `/projects/goals/list/`, method: "GET" },
|
|
10
|
-
Review: { uri: "/projects/:projectId/review/", method: "POST" },
|
|
11
|
-
Cancel: { uri: "/projects/:projectId/cancel/", method: "DELETE" },
|
|
12
|
-
StartEdition: { uri: "/projects/:projectId/start/", method: "PUT" },
|
|
13
|
-
SendToApproval: {
|
|
14
|
-
uri: "/projects/:projectId/sendToApproval/",
|
|
15
|
-
method: "PUT",
|
|
16
|
-
},
|
|
17
|
-
IsEligibleForFreeProject: {
|
|
18
|
-
uri: "/projects/free/allowed/",
|
|
19
|
-
method: "GET",
|
|
20
|
-
},
|
|
21
|
-
Approve: { uri: "/projects/:projectId/approve/", method: "POST" },
|
|
22
|
-
Unschedule: { uri: "/projects/:projectId/unschedule/", method: "POST" },
|
|
23
|
-
Rollback: { uri: "/projects/:projectId/rollback/", method: "POST" },
|
|
24
|
-
Deny: { uri: "/projects/:projectId/deny/", method: "POST" },
|
|
25
|
-
GetUserHistory: { uri: "/projects/user/:userId/history/", method: "GET" },
|
|
26
|
-
};
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare enum Status {
|
|
3
|
-
SUBMITTED = 0,
|
|
4
|
-
EDITING = 1,
|
|
5
|
-
COMPLETED = 2,
|
|
6
|
-
WAITING_APPROVE = 3,
|
|
7
|
-
DENIED = 4,
|
|
8
|
-
REVISIONING = 5,
|
|
9
|
-
CANCELLED = 6,
|
|
10
|
-
SCHEDULED = 7
|
|
11
|
-
}
|
|
12
|
-
export declare enum CaptionStyle {
|
|
13
|
-
ONE_LINE = 1,
|
|
14
|
-
ONE_LINE_EMOJIS = 2,
|
|
15
|
-
TWO_LINES = 5,
|
|
16
|
-
TWO_LINES_EMOJIS = 3,
|
|
17
|
-
HOME_HIGHLIGHT = 4
|
|
18
|
-
}
|
|
19
|
-
export declare const StatusSchema: z.ZodNativeEnum<typeof Status>;
|
|
20
|
-
export declare const CaptionStyleStatus: z.ZodNativeEnum<typeof CaptionStyle>;
|
|
21
|
-
export declare const Styles: Style[];
|
|
22
|
-
export type Style = {
|
|
23
|
-
value: CaptionStyle;
|
|
24
|
-
label: string;
|
|
25
|
-
};
|
|
26
|
-
export declare const TimelineItemSchema: z.ZodObject<{
|
|
27
|
-
status: z.ZodNativeEnum<typeof Status>;
|
|
28
|
-
title: z.ZodString;
|
|
29
|
-
description: z.ZodString;
|
|
30
|
-
timestamp: z.ZodNumber;
|
|
31
|
-
metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
32
|
-
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
title: string;
|
|
34
|
-
status: Status;
|
|
35
|
-
metadata: Record<string, any>;
|
|
36
|
-
description: string;
|
|
37
|
-
timestamp: number;
|
|
38
|
-
}, {
|
|
39
|
-
title: string;
|
|
40
|
-
status: Status;
|
|
41
|
-
metadata: Record<string, any>;
|
|
42
|
-
description: string;
|
|
43
|
-
timestamp: number;
|
|
44
|
-
}>;
|
|
45
|
-
export declare const ProjectSchema: z.ZodObject<{
|
|
46
|
-
id: z.ZodString;
|
|
47
|
-
title: z.ZodString;
|
|
48
|
-
instructions: z.ZodString;
|
|
49
|
-
submitMonth: z.ZodString;
|
|
50
|
-
captionStyle: z.ZodNativeEnum<typeof CaptionStyle>;
|
|
51
|
-
finalVideoId: z.ZodOptional<z.ZodString>;
|
|
52
|
-
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
53
|
-
modified: z.ZodNumber;
|
|
54
|
-
captionSuggestion: z.ZodOptional<z.ZodString>;
|
|
55
|
-
editorId: z.ZodString;
|
|
56
|
-
userId: z.ZodString;
|
|
57
|
-
assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
58
|
-
assetId: z.ZodString;
|
|
59
|
-
fileName: z.ZodString;
|
|
60
|
-
extension: z.ZodString;
|
|
61
|
-
fileSize: z.ZodNumber;
|
|
62
|
-
assetUrl: z.ZodString;
|
|
63
|
-
thumbnailUrl: z.ZodString;
|
|
64
|
-
type: z.ZodString;
|
|
65
|
-
duration: z.ZodOptional<z.ZodNumber>;
|
|
66
|
-
progress: z.ZodOptional<z.ZodNumber>;
|
|
67
|
-
error: z.ZodOptional<z.ZodString>;
|
|
68
|
-
authorId: z.ZodString;
|
|
69
|
-
uploadedAt: z.ZodNumber;
|
|
70
|
-
}, "strip", z.ZodTypeAny, {
|
|
71
|
-
type: string;
|
|
72
|
-
assetId: string;
|
|
73
|
-
fileName: string;
|
|
74
|
-
extension: string;
|
|
75
|
-
fileSize: number;
|
|
76
|
-
assetUrl: string;
|
|
77
|
-
thumbnailUrl: string;
|
|
78
|
-
authorId: string;
|
|
79
|
-
uploadedAt: number;
|
|
80
|
-
error?: string | undefined;
|
|
81
|
-
duration?: number | undefined;
|
|
82
|
-
progress?: number | undefined;
|
|
83
|
-
}, {
|
|
84
|
-
type: string;
|
|
85
|
-
assetId: string;
|
|
86
|
-
fileName: string;
|
|
87
|
-
extension: string;
|
|
88
|
-
fileSize: number;
|
|
89
|
-
assetUrl: string;
|
|
90
|
-
thumbnailUrl: string;
|
|
91
|
-
authorId: string;
|
|
92
|
-
uploadedAt: number;
|
|
93
|
-
error?: string | undefined;
|
|
94
|
-
duration?: number | undefined;
|
|
95
|
-
progress?: number | undefined;
|
|
96
|
-
}>, "many">>;
|
|
97
|
-
expirationTimestamp: z.ZodNumber;
|
|
98
|
-
isFree: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
-
timeline: z.ZodArray<z.ZodObject<{
|
|
100
|
-
status: z.ZodNativeEnum<typeof Status>;
|
|
101
|
-
title: z.ZodString;
|
|
102
|
-
description: z.ZodString;
|
|
103
|
-
timestamp: z.ZodNumber;
|
|
104
|
-
metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
105
|
-
}, "strip", z.ZodTypeAny, {
|
|
106
|
-
title: string;
|
|
107
|
-
status: Status;
|
|
108
|
-
metadata: Record<string, any>;
|
|
109
|
-
description: string;
|
|
110
|
-
timestamp: number;
|
|
111
|
-
}, {
|
|
112
|
-
title: string;
|
|
113
|
-
status: Status;
|
|
114
|
-
metadata: Record<string, any>;
|
|
115
|
-
description: string;
|
|
116
|
-
timestamp: number;
|
|
117
|
-
}>, "many">;
|
|
118
|
-
submitTimestamp: z.ZodNumber;
|
|
119
|
-
tenantId: z.ZodOptional<z.ZodString>;
|
|
120
|
-
status: z.ZodNativeEnum<typeof Status>;
|
|
121
|
-
}, "strip", z.ZodTypeAny, {
|
|
122
|
-
id: string;
|
|
123
|
-
userId: string;
|
|
124
|
-
title: string;
|
|
125
|
-
status: Status;
|
|
126
|
-
modified: number;
|
|
127
|
-
editorId: string;
|
|
128
|
-
instructions: string;
|
|
129
|
-
submitMonth: string;
|
|
130
|
-
captionStyle: CaptionStyle;
|
|
131
|
-
expirationTimestamp: number;
|
|
132
|
-
timeline: {
|
|
133
|
-
title: string;
|
|
134
|
-
status: Status;
|
|
135
|
-
metadata: Record<string, any>;
|
|
136
|
-
description: string;
|
|
137
|
-
timestamp: number;
|
|
138
|
-
}[];
|
|
139
|
-
submitTimestamp: number;
|
|
140
|
-
tenantId?: string | undefined;
|
|
141
|
-
thumbnailUrl?: string | undefined;
|
|
142
|
-
finalVideoId?: string | undefined;
|
|
143
|
-
captionSuggestion?: string | undefined;
|
|
144
|
-
assets?: {
|
|
145
|
-
type: string;
|
|
146
|
-
assetId: string;
|
|
147
|
-
fileName: string;
|
|
148
|
-
extension: string;
|
|
149
|
-
fileSize: number;
|
|
150
|
-
assetUrl: string;
|
|
151
|
-
thumbnailUrl: string;
|
|
152
|
-
authorId: string;
|
|
153
|
-
uploadedAt: number;
|
|
154
|
-
error?: string | undefined;
|
|
155
|
-
duration?: number | undefined;
|
|
156
|
-
progress?: number | undefined;
|
|
157
|
-
}[] | undefined;
|
|
158
|
-
isFree?: boolean | undefined;
|
|
159
|
-
}, {
|
|
160
|
-
id: string;
|
|
161
|
-
userId: string;
|
|
162
|
-
title: string;
|
|
163
|
-
status: Status;
|
|
164
|
-
modified: number;
|
|
165
|
-
editorId: string;
|
|
166
|
-
instructions: string;
|
|
167
|
-
submitMonth: string;
|
|
168
|
-
captionStyle: CaptionStyle;
|
|
169
|
-
expirationTimestamp: number;
|
|
170
|
-
timeline: {
|
|
171
|
-
title: string;
|
|
172
|
-
status: Status;
|
|
173
|
-
metadata: Record<string, any>;
|
|
174
|
-
description: string;
|
|
175
|
-
timestamp: number;
|
|
176
|
-
}[];
|
|
177
|
-
submitTimestamp: number;
|
|
178
|
-
tenantId?: string | undefined;
|
|
179
|
-
thumbnailUrl?: string | undefined;
|
|
180
|
-
finalVideoId?: string | undefined;
|
|
181
|
-
captionSuggestion?: string | undefined;
|
|
182
|
-
assets?: {
|
|
183
|
-
type: string;
|
|
184
|
-
assetId: string;
|
|
185
|
-
fileName: string;
|
|
186
|
-
extension: string;
|
|
187
|
-
fileSize: number;
|
|
188
|
-
assetUrl: string;
|
|
189
|
-
thumbnailUrl: string;
|
|
190
|
-
authorId: string;
|
|
191
|
-
uploadedAt: number;
|
|
192
|
-
error?: string | undefined;
|
|
193
|
-
duration?: number | undefined;
|
|
194
|
-
progress?: number | undefined;
|
|
195
|
-
}[] | undefined;
|
|
196
|
-
isFree?: boolean | undefined;
|
|
197
|
-
}>;
|
|
198
|
-
export type ProjectCreation = Pick<Project, "title" | "instructions" | "captionStyle" | "assets">;
|
|
199
|
-
export type SendToApproval = {
|
|
200
|
-
video: string;
|
|
201
|
-
thumbnail: string;
|
|
202
|
-
captionSuggestion: string;
|
|
203
|
-
};
|
|
204
|
-
export type Approve = {
|
|
205
|
-
scheduleTime?: number;
|
|
206
|
-
captionSuggestion: string;
|
|
207
|
-
};
|
|
208
|
-
export type Project = z.infer<typeof ProjectSchema>;
|
|
209
|
-
export type TimelineItem = z.infer<typeof TimelineItemSchema>;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProjectSchema = exports.TimelineItemSchema = exports.Styles = exports.CaptionStyleStatus = exports.StatusSchema = exports.CaptionStyle = exports.Status = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const asset_1 = require("../asset");
|
|
6
|
-
var Status;
|
|
7
|
-
(function (Status) {
|
|
8
|
-
Status[Status["SUBMITTED"] = 0] = "SUBMITTED";
|
|
9
|
-
Status[Status["EDITING"] = 1] = "EDITING";
|
|
10
|
-
Status[Status["COMPLETED"] = 2] = "COMPLETED";
|
|
11
|
-
Status[Status["WAITING_APPROVE"] = 3] = "WAITING_APPROVE";
|
|
12
|
-
Status[Status["DENIED"] = 4] = "DENIED";
|
|
13
|
-
Status[Status["REVISIONING"] = 5] = "REVISIONING";
|
|
14
|
-
Status[Status["CANCELLED"] = 6] = "CANCELLED";
|
|
15
|
-
Status[Status["SCHEDULED"] = 7] = "SCHEDULED";
|
|
16
|
-
})(Status || (exports.Status = Status = {}));
|
|
17
|
-
var CaptionStyle;
|
|
18
|
-
(function (CaptionStyle) {
|
|
19
|
-
CaptionStyle[CaptionStyle["ONE_LINE"] = 1] = "ONE_LINE";
|
|
20
|
-
CaptionStyle[CaptionStyle["ONE_LINE_EMOJIS"] = 2] = "ONE_LINE_EMOJIS";
|
|
21
|
-
CaptionStyle[CaptionStyle["TWO_LINES"] = 5] = "TWO_LINES";
|
|
22
|
-
CaptionStyle[CaptionStyle["TWO_LINES_EMOJIS"] = 3] = "TWO_LINES_EMOJIS";
|
|
23
|
-
CaptionStyle[CaptionStyle["HOME_HIGHLIGHT"] = 4] = "HOME_HIGHLIGHT";
|
|
24
|
-
})(CaptionStyle || (exports.CaptionStyle = CaptionStyle = {}));
|
|
25
|
-
exports.StatusSchema = zod_1.z.nativeEnum(Status);
|
|
26
|
-
exports.CaptionStyleStatus = zod_1.z.nativeEnum(CaptionStyle);
|
|
27
|
-
exports.Styles = [
|
|
28
|
-
{ value: CaptionStyle.ONE_LINE, label: "One Line" },
|
|
29
|
-
{ value: CaptionStyle.ONE_LINE_EMOJIS, label: "One Line + Emojis" },
|
|
30
|
-
{ value: CaptionStyle.TWO_LINES, label: "Two Lines" },
|
|
31
|
-
{ value: CaptionStyle.TWO_LINES_EMOJIS, label: "Two Lines + Emojis" },
|
|
32
|
-
{ value: CaptionStyle.HOME_HIGHLIGHT, label: "Home Tour" },
|
|
33
|
-
];
|
|
34
|
-
exports.TimelineItemSchema = zod_1.z.object({
|
|
35
|
-
status: zod_1.z.nativeEnum(Status),
|
|
36
|
-
title: zod_1.z.string(),
|
|
37
|
-
description: zod_1.z.string(),
|
|
38
|
-
timestamp: zod_1.z.number(),
|
|
39
|
-
metadata: zod_1.z.record(zod_1.z.any()),
|
|
40
|
-
});
|
|
41
|
-
exports.ProjectSchema = zod_1.z.object({
|
|
42
|
-
id: zod_1.z.string(),
|
|
43
|
-
title: zod_1.z.string(),
|
|
44
|
-
instructions: zod_1.z.string(),
|
|
45
|
-
submitMonth: zod_1.z.string(),
|
|
46
|
-
captionStyle: zod_1.z.nativeEnum(CaptionStyle),
|
|
47
|
-
finalVideoId: zod_1.z.string().optional(),
|
|
48
|
-
thumbnailUrl: zod_1.z.string().optional(),
|
|
49
|
-
modified: zod_1.z.number(),
|
|
50
|
-
captionSuggestion: zod_1.z.string().optional(),
|
|
51
|
-
editorId: zod_1.z.string(),
|
|
52
|
-
userId: zod_1.z.string(),
|
|
53
|
-
assets: zod_1.z.array(asset_1.AssetSchema).optional(),
|
|
54
|
-
expirationTimestamp: zod_1.z.number(),
|
|
55
|
-
isFree: zod_1.z.boolean().optional(),
|
|
56
|
-
timeline: zod_1.z.array(exports.TimelineItemSchema),
|
|
57
|
-
submitTimestamp: zod_1.z.number(),
|
|
58
|
-
tenantId: zod_1.z.string().optional(),
|
|
59
|
-
status: zod_1.z.nativeEnum(Status),
|
|
60
|
-
});
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.TimelineItemSchema = exports.Styles = exports.CaptionStyle = exports.Status = exports.ProjectSchema = void 0;
|
|
18
|
-
var Project_schema_1 = require("./Project.schema");
|
|
19
|
-
Object.defineProperty(exports, "ProjectSchema", { enumerable: true, get: function () { return Project_schema_1.ProjectSchema; } });
|
|
20
|
-
Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return Project_schema_1.Status; } });
|
|
21
|
-
Object.defineProperty(exports, "CaptionStyle", { enumerable: true, get: function () { return Project_schema_1.CaptionStyle; } });
|
|
22
|
-
Object.defineProperty(exports, "Styles", { enumerable: true, get: function () { return Project_schema_1.Styles; } });
|
|
23
|
-
Object.defineProperty(exports, "TimelineItemSchema", { enumerable: true, get: function () { return Project_schema_1.TimelineItemSchema; } });
|
|
24
|
-
__exportStar(require("./Project.api"), exports);
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import Context from "../Context";
|
|
2
|
-
import { Prompt, Script } from "./Prompt.schema";
|
|
3
|
-
export interface IAPI {
|
|
4
|
-
getPrompt: (c: Context) => Promise<Prompt>;
|
|
5
|
-
addScript: (c: Context, script: Partial<Script>) => Promise<Script>;
|
|
6
|
-
deleteScript: (c: Context, id: string) => Promise<boolean>;
|
|
7
|
-
getScripts: (c: Context) => Promise<Script[]>;
|
|
8
|
-
updateScript: (c: Context, id: string, script: Partial<Script>) => Promise<boolean>;
|
|
9
|
-
}
|
|
10
|
-
export declare const Endpoints: {
|
|
11
|
-
GetPrompt: {
|
|
12
|
-
uri: string;
|
|
13
|
-
method: string;
|
|
14
|
-
};
|
|
15
|
-
AddScript: {
|
|
16
|
-
uri: string;
|
|
17
|
-
method: string;
|
|
18
|
-
};
|
|
19
|
-
DeleteScript: {
|
|
20
|
-
uri: string;
|
|
21
|
-
method: string;
|
|
22
|
-
};
|
|
23
|
-
ListScript: {
|
|
24
|
-
uri: string;
|
|
25
|
-
method: string;
|
|
26
|
-
};
|
|
27
|
-
UpdateScript: {
|
|
28
|
-
uri: string;
|
|
29
|
-
method: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Endpoints = void 0;
|
|
4
|
-
exports.Endpoints = {
|
|
5
|
-
GetPrompt: {
|
|
6
|
-
uri: "/prompts/getPrompt",
|
|
7
|
-
method: "GET",
|
|
8
|
-
},
|
|
9
|
-
AddScript: {
|
|
10
|
-
uri: "/prompts/script/new/",
|
|
11
|
-
method: "POST",
|
|
12
|
-
},
|
|
13
|
-
DeleteScript: {
|
|
14
|
-
uri: "/prompts/script/:id/delete/",
|
|
15
|
-
method: "DELETE",
|
|
16
|
-
},
|
|
17
|
-
ListScript: {
|
|
18
|
-
uri: "/prompts/script/list/",
|
|
19
|
-
method: "GET",
|
|
20
|
-
},
|
|
21
|
-
UpdateScript: {
|
|
22
|
-
uri: "/prompts/script/:id/update/",
|
|
23
|
-
method: "PUT",
|
|
24
|
-
},
|
|
25
|
-
};
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const ScriptSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
title: z.ZodString;
|
|
5
|
-
content: z.ZodString;
|
|
6
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7
|
-
userId: z.ZodOptional<z.ZodString>;
|
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
id: string;
|
|
10
|
-
title: string;
|
|
11
|
-
content: string;
|
|
12
|
-
userId?: string | undefined;
|
|
13
|
-
tags?: string[] | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
id: string;
|
|
16
|
-
title: string;
|
|
17
|
-
content: string;
|
|
18
|
-
userId?: string | undefined;
|
|
19
|
-
tags?: string[] | undefined;
|
|
20
|
-
}>;
|
|
21
|
-
export declare const CategorySchema: z.ZodObject<{
|
|
22
|
-
id: z.ZodString;
|
|
23
|
-
title: z.ZodString;
|
|
24
|
-
pictureUrl: z.ZodString;
|
|
25
|
-
backgroundColor: z.ZodString;
|
|
26
|
-
active: z.ZodBoolean;
|
|
27
|
-
scripts: z.ZodArray<z.ZodObject<{
|
|
28
|
-
id: z.ZodString;
|
|
29
|
-
title: z.ZodString;
|
|
30
|
-
content: z.ZodString;
|
|
31
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
32
|
-
userId: z.ZodOptional<z.ZodString>;
|
|
33
|
-
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
id: string;
|
|
35
|
-
title: string;
|
|
36
|
-
content: string;
|
|
37
|
-
userId?: string | undefined;
|
|
38
|
-
tags?: string[] | undefined;
|
|
39
|
-
}, {
|
|
40
|
-
id: string;
|
|
41
|
-
title: string;
|
|
42
|
-
content: string;
|
|
43
|
-
userId?: string | undefined;
|
|
44
|
-
tags?: string[] | undefined;
|
|
45
|
-
}>, "many">;
|
|
46
|
-
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
active: boolean;
|
|
48
|
-
id: string;
|
|
49
|
-
title: string;
|
|
50
|
-
pictureUrl: string;
|
|
51
|
-
backgroundColor: string;
|
|
52
|
-
scripts: {
|
|
53
|
-
id: string;
|
|
54
|
-
title: string;
|
|
55
|
-
content: string;
|
|
56
|
-
userId?: string | undefined;
|
|
57
|
-
tags?: string[] | undefined;
|
|
58
|
-
}[];
|
|
59
|
-
}, {
|
|
60
|
-
active: boolean;
|
|
61
|
-
id: string;
|
|
62
|
-
title: string;
|
|
63
|
-
pictureUrl: string;
|
|
64
|
-
backgroundColor: string;
|
|
65
|
-
scripts: {
|
|
66
|
-
id: string;
|
|
67
|
-
title: string;
|
|
68
|
-
content: string;
|
|
69
|
-
userId?: string | undefined;
|
|
70
|
-
tags?: string[] | undefined;
|
|
71
|
-
}[];
|
|
72
|
-
}>;
|
|
73
|
-
export declare const PromptSchema: z.ZodObject<{
|
|
74
|
-
id: z.ZodString;
|
|
75
|
-
tenantId: z.ZodString;
|
|
76
|
-
categories: z.ZodArray<z.ZodObject<{
|
|
77
|
-
id: z.ZodString;
|
|
78
|
-
title: z.ZodString;
|
|
79
|
-
pictureUrl: z.ZodString;
|
|
80
|
-
backgroundColor: z.ZodString;
|
|
81
|
-
active: z.ZodBoolean;
|
|
82
|
-
scripts: z.ZodArray<z.ZodObject<{
|
|
83
|
-
id: z.ZodString;
|
|
84
|
-
title: z.ZodString;
|
|
85
|
-
content: z.ZodString;
|
|
86
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
87
|
-
userId: z.ZodOptional<z.ZodString>;
|
|
88
|
-
}, "strip", z.ZodTypeAny, {
|
|
89
|
-
id: string;
|
|
90
|
-
title: string;
|
|
91
|
-
content: string;
|
|
92
|
-
userId?: string | undefined;
|
|
93
|
-
tags?: string[] | undefined;
|
|
94
|
-
}, {
|
|
95
|
-
id: string;
|
|
96
|
-
title: string;
|
|
97
|
-
content: string;
|
|
98
|
-
userId?: string | undefined;
|
|
99
|
-
tags?: string[] | undefined;
|
|
100
|
-
}>, "many">;
|
|
101
|
-
}, "strip", z.ZodTypeAny, {
|
|
102
|
-
active: boolean;
|
|
103
|
-
id: string;
|
|
104
|
-
title: string;
|
|
105
|
-
pictureUrl: string;
|
|
106
|
-
backgroundColor: string;
|
|
107
|
-
scripts: {
|
|
108
|
-
id: string;
|
|
109
|
-
title: string;
|
|
110
|
-
content: string;
|
|
111
|
-
userId?: string | undefined;
|
|
112
|
-
tags?: string[] | undefined;
|
|
113
|
-
}[];
|
|
114
|
-
}, {
|
|
115
|
-
active: boolean;
|
|
116
|
-
id: string;
|
|
117
|
-
title: string;
|
|
118
|
-
pictureUrl: string;
|
|
119
|
-
backgroundColor: string;
|
|
120
|
-
scripts: {
|
|
121
|
-
id: string;
|
|
122
|
-
title: string;
|
|
123
|
-
content: string;
|
|
124
|
-
userId?: string | undefined;
|
|
125
|
-
tags?: string[] | undefined;
|
|
126
|
-
}[];
|
|
127
|
-
}>, "many">;
|
|
128
|
-
}, "strip", z.ZodTypeAny, {
|
|
129
|
-
id: string;
|
|
130
|
-
tenantId: string;
|
|
131
|
-
categories: {
|
|
132
|
-
active: boolean;
|
|
133
|
-
id: string;
|
|
134
|
-
title: string;
|
|
135
|
-
pictureUrl: string;
|
|
136
|
-
backgroundColor: string;
|
|
137
|
-
scripts: {
|
|
138
|
-
id: string;
|
|
139
|
-
title: string;
|
|
140
|
-
content: string;
|
|
141
|
-
userId?: string | undefined;
|
|
142
|
-
tags?: string[] | undefined;
|
|
143
|
-
}[];
|
|
144
|
-
}[];
|
|
145
|
-
}, {
|
|
146
|
-
id: string;
|
|
147
|
-
tenantId: string;
|
|
148
|
-
categories: {
|
|
149
|
-
active: boolean;
|
|
150
|
-
id: string;
|
|
151
|
-
title: string;
|
|
152
|
-
pictureUrl: string;
|
|
153
|
-
backgroundColor: string;
|
|
154
|
-
scripts: {
|
|
155
|
-
id: string;
|
|
156
|
-
title: string;
|
|
157
|
-
content: string;
|
|
158
|
-
userId?: string | undefined;
|
|
159
|
-
tags?: string[] | undefined;
|
|
160
|
-
}[];
|
|
161
|
-
}[];
|
|
162
|
-
}>;
|
|
163
|
-
export type Script = z.infer<typeof ScriptSchema>;
|
|
164
|
-
export type Category = z.infer<typeof CategorySchema>;
|
|
165
|
-
export type Prompt = z.infer<typeof PromptSchema>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PromptSchema = exports.CategorySchema = exports.ScriptSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.ScriptSchema = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.string(),
|
|
7
|
-
title: zod_1.z.string(),
|
|
8
|
-
content: zod_1.z.string(),
|
|
9
|
-
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
10
|
-
userId: zod_1.z.string().optional(),
|
|
11
|
-
});
|
|
12
|
-
exports.CategorySchema = zod_1.z.object({
|
|
13
|
-
id: zod_1.z.string(),
|
|
14
|
-
title: zod_1.z.string(),
|
|
15
|
-
pictureUrl: zod_1.z.string().url(),
|
|
16
|
-
backgroundColor: zod_1.z.string(),
|
|
17
|
-
active: zod_1.z.boolean(),
|
|
18
|
-
scripts: zod_1.z.array(exports.ScriptSchema),
|
|
19
|
-
});
|
|
20
|
-
exports.PromptSchema = zod_1.z.object({
|
|
21
|
-
id: zod_1.z.string(),
|
|
22
|
-
tenantId: zod_1.z.string(),
|
|
23
|
-
categories: zod_1.z.array(exports.CategorySchema),
|
|
24
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.CategorySchema = exports.ScriptSchema = exports.PromptSchema = void 0;
|
|
18
|
-
var Prompt_schema_1 = require("./Prompt.schema");
|
|
19
|
-
Object.defineProperty(exports, "PromptSchema", { enumerable: true, get: function () { return Prompt_schema_1.PromptSchema; } });
|
|
20
|
-
Object.defineProperty(exports, "ScriptSchema", { enumerable: true, get: function () { return Prompt_schema_1.ScriptSchema; } });
|
|
21
|
-
Object.defineProperty(exports, "CategorySchema", { enumerable: true, get: function () { return Prompt_schema_1.CategorySchema; } });
|
|
22
|
-
__exportStar(require("./Prompt.api"), exports);
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import Context from "../Context";
|
|
2
|
-
import { Charge, Product, Subscription } from "./Subscription.schema";
|
|
3
|
-
export interface IAPI {
|
|
4
|
-
getCharges: (ctx: Context) => Promise<Charge[]>;
|
|
5
|
-
getSubscription: (context: Context, userId?: string) => Promise<Subscription | null>;
|
|
6
|
-
getProduct: (id: string, context?: Context) => Promise<Product>;
|
|
7
|
-
getProducts: (ctx?: Context) => Promise<Product[]>;
|
|
8
|
-
charge: (ctx: Context) => Promise<boolean>;
|
|
9
|
-
pause: (ctx: Context) => Promise<boolean>;
|
|
10
|
-
resume: (ctx: Context) => Promise<boolean>;
|
|
11
|
-
updatePlan: (ctx: Context, planId: string) => Promise<boolean>;
|
|
12
|
-
createCheckout: (planId: string | null, ctx: Context) => Promise<string>;
|
|
13
|
-
}
|
|
14
|
-
export declare const Endpoints: {
|
|
15
|
-
GetProduct: {
|
|
16
|
-
uri: string;
|
|
17
|
-
method: string;
|
|
18
|
-
};
|
|
19
|
-
GetActiveSubscription: {
|
|
20
|
-
uri: string;
|
|
21
|
-
method: string;
|
|
22
|
-
};
|
|
23
|
-
GetCharges: {
|
|
24
|
-
uri: string;
|
|
25
|
-
method: string;
|
|
26
|
-
};
|
|
27
|
-
GetUserActiveSubscription: {
|
|
28
|
-
uri: string;
|
|
29
|
-
method: string;
|
|
30
|
-
};
|
|
31
|
-
GetProducts: {
|
|
32
|
-
uri: string;
|
|
33
|
-
method: string;
|
|
34
|
-
};
|
|
35
|
-
GetProductsByUser: {
|
|
36
|
-
uri: string;
|
|
37
|
-
method: string;
|
|
38
|
-
};
|
|
39
|
-
Checkout: {
|
|
40
|
-
uri: string;
|
|
41
|
-
method: string;
|
|
42
|
-
};
|
|
43
|
-
Charge: {
|
|
44
|
-
uri: string;
|
|
45
|
-
method: string;
|
|
46
|
-
};
|
|
47
|
-
Pause: {
|
|
48
|
-
uri: string;
|
|
49
|
-
method: string;
|
|
50
|
-
};
|
|
51
|
-
Resume: {
|
|
52
|
-
uri: string;
|
|
53
|
-
method: string;
|
|
54
|
-
};
|
|
55
|
-
UpdatePlan: {
|
|
56
|
-
uri: string;
|
|
57
|
-
method: string;
|
|
58
|
-
};
|
|
59
|
-
};
|