shred-api-client 1.11.4 → 1.11.5
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: {
|