shred-api-client 1.11.4 → 1.11.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.
|
@@ -10,7 +10,7 @@ declare class ProjectAPI implements ProjectAPISchema {
|
|
|
10
10
|
review(ctx: Context, pId: string, revision: string): Promise<boolean>;
|
|
11
11
|
cancel(ctx: Context, projectId: string): Promise<boolean>;
|
|
12
12
|
list(context: Context, query: Query): Promise<Project[]>;
|
|
13
|
-
deny(ctx: Context, pId: string, denyFB: string): Promise<boolean>;
|
|
13
|
+
deny(ctx: Context, pId: string, denyFB: string, categories?: string[]): Promise<boolean>;
|
|
14
14
|
unschedule(context: Context, projectId: string): Promise<boolean>;
|
|
15
15
|
start(context: Context, projectId: string): Promise<boolean>;
|
|
16
16
|
approve(ctx: Context, pId: string, approve: Approve): Promise<boolean>;
|
package/dist/api/Project.api.js
CHANGED
|
@@ -38,10 +38,10 @@ class ProjectAPI {
|
|
|
38
38
|
const data = await this.clientHTTP.makeRequest(this.env, `${endpointData.uri}?startDate=${query.startDate}&endDate=${query.endDate}&timezone=${query.timeZone}`, endpointData.method, null, context);
|
|
39
39
|
return data;
|
|
40
40
|
}
|
|
41
|
-
async deny(ctx, pId, denyFB) {
|
|
41
|
+
async deny(ctx, pId, denyFB, categories) {
|
|
42
42
|
const endpointData = Project_schema_1.ProjectEndpoints.Deny;
|
|
43
43
|
const endpoint = endpointData.uri.replace(":projectId", pId);
|
|
44
|
-
const data = await this.clientHTTP.makeRequest(this.env, endpoint, endpointData.method, { denyFeedback: denyFB }, ctx);
|
|
44
|
+
const data = await this.clientHTTP.makeRequest(this.env, endpoint, endpointData.method, { denyFeedback: denyFB, categories: categories || [] }, ctx);
|
|
45
45
|
return data.success;
|
|
46
46
|
}
|
|
47
47
|
async unschedule(context, projectId) {
|
|
@@ -24,7 +24,7 @@ interface ProjectAPISchema {
|
|
|
24
24
|
start: (context: Context, projectId: string) => Promise<boolean>;
|
|
25
25
|
sendToApproval: (context: Context, projectId: string, data: SendToApproval) => Promise<boolean>;
|
|
26
26
|
approve: (context: Context, projectId: string, data: Approve) => Promise<boolean>;
|
|
27
|
-
deny: (context: Context, projectId: string, denyFeedback: string) => Promise<boolean>;
|
|
27
|
+
deny: (context: Context, projectId: string, denyFeedback: string, categories?: string[]) => Promise<boolean>;
|
|
28
28
|
unschedule: (context: Context, projectId: string) => Promise<boolean>;
|
|
29
29
|
}
|
|
30
30
|
declare const ProjectEndpoints: {
|
|
@@ -91,12 +91,18 @@ type DenyFeedback = {
|
|
|
91
91
|
resolved: boolean;
|
|
92
92
|
categories?: string[];
|
|
93
93
|
};
|
|
94
|
+
type TimelineItem = {
|
|
95
|
+
status: Status;
|
|
96
|
+
title: string;
|
|
97
|
+
description: string;
|
|
98
|
+
timestamp: number;
|
|
99
|
+
metadata: Record<string, any>;
|
|
100
|
+
};
|
|
94
101
|
type Project = {
|
|
95
102
|
id: string;
|
|
96
103
|
title: string;
|
|
97
104
|
instructions: string;
|
|
98
105
|
submitMonth: string;
|
|
99
|
-
status: Status;
|
|
100
106
|
captionStyle: CaptionStyle;
|
|
101
107
|
finalVideoId?: string;
|
|
102
108
|
canRevision: boolean;
|
|
@@ -109,16 +115,17 @@ type Project = {
|
|
|
109
115
|
assets?: Asset[];
|
|
110
116
|
denyFeedback?: DenyFeedback[];
|
|
111
117
|
approvedBy?: string;
|
|
112
|
-
approveTimestamp?: number;
|
|
113
118
|
expirationTimestamp: number;
|
|
119
|
+
timeline?: TimelineItem[];
|
|
120
|
+
status: Status;
|
|
121
|
+
approveTimestamp?: number;
|
|
114
122
|
sentToApproveTimestamp?: number;
|
|
115
123
|
submitTimestamp: number;
|
|
116
124
|
editTimestamp?: number;
|
|
117
125
|
completeTimestamp?: number;
|
|
118
126
|
revisedAt?: number;
|
|
119
|
-
isFreeProject?: boolean;
|
|
120
127
|
scheduledAt?: number;
|
|
121
128
|
scheduledTime?: number;
|
|
122
129
|
tenantId?: string;
|
|
123
130
|
};
|
|
124
|
-
export { Project, ProjectAPISchema, ProjectEndpoints };
|
|
131
|
+
export { Project, ProjectAPISchema, ProjectEndpoints, TimelineItem };
|
package/dist/namespace.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Trigger as TTrigger, Criteria as TCriteria, NotificationDetail as TNCon
|
|
|
3
3
|
import { System as TSystem, User as TUser, Preferences as UserPreferences, Role as TRole } from "./model/User.schema";
|
|
4
4
|
import { Email as TEmail } from "./model/Email.schema";
|
|
5
5
|
import { Asset as TAsset } from "./model/Asset.schema";
|
|
6
|
-
import { Project as TProject } from "./model/Project.schema";
|
|
6
|
+
import { Project as TProject, TimelineItem as TTimlineItem } from "./model/Project.schema";
|
|
7
7
|
import { Tenant as TTenant } from "./model/Tenant.schema";
|
|
8
8
|
import { Track as TTrack } from "./model/Track.schema";
|
|
9
9
|
import { Prompt as TPrompt, Script as TScript, Category as TCategory } from "./model/Prompt.schema";
|
|
@@ -19,6 +19,7 @@ export declare namespace Shred {
|
|
|
19
19
|
type Email = TEmail;
|
|
20
20
|
type System = TSystem;
|
|
21
21
|
type Project = TProject;
|
|
22
|
+
type TimelineItem = TTimlineItem;
|
|
22
23
|
type Asset = TAsset;
|
|
23
24
|
type Track = TTrack;
|
|
24
25
|
namespace PromptTypes {
|