dart-tools 0.4.2 → 0.4.3
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.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -1
- package/dist/index.umd.js +26 -0
- package/dist/models/AttachmentCreateFromUrl.d.ts +10 -0
- package/dist/models/AttachmentCreateFromUrl.js +3 -0
- package/dist/models/AttachmentCreateFromUrl.js.map +1 -0
- package/dist/services/AttachmentService.d.ts +14 -0
- package/dist/services/AttachmentService.js +31 -0
- package/dist/services/AttachmentService.js.map +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { CancelablePromise, CancelError } from "./core/CancelablePromise";
|
|
|
3
3
|
export { OpenAPI } from "./core/OpenAPI";
|
|
4
4
|
export type { OpenAPIConfig } from "./core/OpenAPI";
|
|
5
5
|
export type { Attachment } from "./models/Attachment";
|
|
6
|
+
export type { AttachmentCreateFromUrl } from "./models/AttachmentCreateFromUrl";
|
|
6
7
|
export type { Comment } from "./models/Comment";
|
|
7
8
|
export type { CommentCreate } from "./models/CommentCreate";
|
|
8
9
|
export type { ConciseDoc } from "./models/ConciseDoc";
|
|
@@ -41,6 +42,7 @@ export type { WrappedTask } from "./models/WrappedTask";
|
|
|
41
42
|
export type { WrappedTaskCreate } from "./models/WrappedTaskCreate";
|
|
42
43
|
export type { WrappedTaskUpdate } from "./models/WrappedTaskUpdate";
|
|
43
44
|
export type { WrappedView } from "./models/WrappedView";
|
|
45
|
+
export { AttachmentService } from "./services/AttachmentService";
|
|
44
46
|
export { CommentService } from "./services/CommentService";
|
|
45
47
|
export { ConfigService } from "./services/ConfigService";
|
|
46
48
|
export { DartboardService } from "./services/DartboardService";
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ViewService = exports.TaskService = exports.SkillService = exports.HelpCenterArticleService = exports.FolderService = exports.DocService = exports.DartboardService = exports.ConfigService = exports.CommentService = exports.Priority = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.ApiError = void 0;
|
|
3
|
+
exports.ViewService = exports.TaskService = exports.SkillService = exports.HelpCenterArticleService = exports.FolderService = exports.DocService = exports.DartboardService = exports.ConfigService = exports.CommentService = exports.AttachmentService = exports.Priority = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.ApiError = void 0;
|
|
4
4
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
5
|
/* istanbul ignore file */
|
|
6
6
|
/* tslint:disable */
|
|
@@ -14,6 +14,8 @@ var OpenAPI_1 = require("./core/OpenAPI");
|
|
|
14
14
|
Object.defineProperty(exports, "OpenAPI", { enumerable: true, get: function () { return OpenAPI_1.OpenAPI; } });
|
|
15
15
|
var Priority_1 = require("./models/Priority");
|
|
16
16
|
Object.defineProperty(exports, "Priority", { enumerable: true, get: function () { return Priority_1.Priority; } });
|
|
17
|
+
var AttachmentService_1 = require("./services/AttachmentService");
|
|
18
|
+
Object.defineProperty(exports, "AttachmentService", { enumerable: true, get: function () { return AttachmentService_1.AttachmentService; } });
|
|
17
19
|
var CommentService_1 = require("./services/CommentService");
|
|
18
20
|
Object.defineProperty(exports, "CommentService", { enumerable: true, get: function () { return CommentService_1.CommentService; } });
|
|
19
21
|
var ConfigService_1 = require("./services/ConfigService");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../dart/generated/index.ts"],"names":[],"mappings":";;;AAAA,+DAA+D;AAC/D,0BAA0B;AAC1B,oBAAoB;AACpB,oBAAoB;AACpB,4CAA2C;AAAlC,oGAAA,QAAQ,OAAA;AACjB,8DAA0E;AAAjE,sHAAA,iBAAiB,OAAA;AAAE,gHAAA,WAAW,OAAA;AACvC,0CAAyC;AAAhC,kGAAA,OAAO,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../dart/generated/index.ts"],"names":[],"mappings":";;;AAAA,+DAA+D;AAC/D,0BAA0B;AAC1B,oBAAoB;AACpB,oBAAoB;AACpB,4CAA2C;AAAlC,oGAAA,QAAQ,OAAA;AACjB,8DAA0E;AAAjE,sHAAA,iBAAiB,OAAA;AAAE,gHAAA,WAAW,OAAA;AACvC,0CAAyC;AAAhC,kGAAA,OAAO,OAAA;AAmBhB,8CAA6C;AAApC,oGAAA,QAAQ,OAAA;AAyBjB,kEAAiE;AAAxD,sHAAA,iBAAiB,OAAA;AAC1B,4DAA2D;AAAlD,gHAAA,cAAc,OAAA;AACvB,0DAAyD;AAAhD,8GAAA,aAAa,OAAA;AACtB,gEAA+D;AAAtD,oHAAA,gBAAgB,OAAA;AACzB,oDAAmD;AAA1C,wGAAA,UAAU,OAAA;AACnB,0DAAyD;AAAhD,8GAAA,aAAa,OAAA;AACtB,gFAA+E;AAAtE,oIAAA,wBAAwB,OAAA;AACjC,wDAAuD;AAA9C,4GAAA,YAAY,OAAA;AACrB,sDAAqD;AAA5C,0GAAA,WAAW,OAAA;AACpB,sDAAqD;AAA5C,0GAAA,WAAW,OAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -448,6 +448,31 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
448
448
|
});
|
|
449
449
|
};
|
|
450
450
|
|
|
451
|
+
class AttachmentService {
|
|
452
|
+
/**
|
|
453
|
+
* Attach a file from a provided URL to a task
|
|
454
|
+
* Attach a file from a provided URL to a task. The file will be downloaded and attached asynchronously. This operation may take a few moments to complete.
|
|
455
|
+
* @param id
|
|
456
|
+
* @param requestBody
|
|
457
|
+
* @returns Attachment Success, including the attached attachment details
|
|
458
|
+
* @throws ApiError
|
|
459
|
+
*/
|
|
460
|
+
static addTaskAttachmentFromUrl(id, requestBody) {
|
|
461
|
+
return request(OpenAPI, {
|
|
462
|
+
method: "POST",
|
|
463
|
+
url: "/tasks/{id}/attachments/from-url",
|
|
464
|
+
path: {
|
|
465
|
+
id: id,
|
|
466
|
+
},
|
|
467
|
+
body: requestBody,
|
|
468
|
+
mediaType: "application/json",
|
|
469
|
+
errors: {
|
|
470
|
+
400: `Invalid request, including the errors`,
|
|
471
|
+
},
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
451
476
|
class CommentService {
|
|
452
477
|
/**
|
|
453
478
|
* Create a new comment
|
|
@@ -849,4 +874,4 @@ class ViewService {
|
|
|
849
874
|
}
|
|
850
875
|
}
|
|
851
876
|
|
|
852
|
-
export { ApiError, CancelError, CancelablePromise, CommentService, ConfigService, DartboardService, DocService, FolderService, HelpCenterArticleService, OpenAPI, Priority, SkillService, TaskService, ViewService };
|
|
877
|
+
export { ApiError, AttachmentService, CancelError, CancelablePromise, CommentService, ConfigService, DartboardService, DocService, FolderService, HelpCenterArticleService, OpenAPI, Priority, SkillService, TaskService, ViewService };
|
package/dist/index.umd.js
CHANGED
|
@@ -451,6 +451,31 @@
|
|
|
451
451
|
});
|
|
452
452
|
};
|
|
453
453
|
|
|
454
|
+
class AttachmentService {
|
|
455
|
+
/**
|
|
456
|
+
* Attach a file from a provided URL to a task
|
|
457
|
+
* Attach a file from a provided URL to a task. The file will be downloaded and attached asynchronously. This operation may take a few moments to complete.
|
|
458
|
+
* @param id
|
|
459
|
+
* @param requestBody
|
|
460
|
+
* @returns Attachment Success, including the attached attachment details
|
|
461
|
+
* @throws ApiError
|
|
462
|
+
*/
|
|
463
|
+
static addTaskAttachmentFromUrl(id, requestBody) {
|
|
464
|
+
return request(OpenAPI, {
|
|
465
|
+
method: "POST",
|
|
466
|
+
url: "/tasks/{id}/attachments/from-url",
|
|
467
|
+
path: {
|
|
468
|
+
id: id,
|
|
469
|
+
},
|
|
470
|
+
body: requestBody,
|
|
471
|
+
mediaType: "application/json",
|
|
472
|
+
errors: {
|
|
473
|
+
400: `Invalid request, including the errors`,
|
|
474
|
+
},
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
|
|
454
479
|
class CommentService {
|
|
455
480
|
/**
|
|
456
481
|
* Create a new comment
|
|
@@ -853,6 +878,7 @@
|
|
|
853
878
|
}
|
|
854
879
|
|
|
855
880
|
exports.ApiError = ApiError;
|
|
881
|
+
exports.AttachmentService = AttachmentService;
|
|
856
882
|
exports.CancelError = CancelError;
|
|
857
883
|
exports.CancelablePromise = CancelablePromise;
|
|
858
884
|
exports.CommentService = CommentService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentCreateFromUrl.js","sourceRoot":"","sources":["../../dart/generated/models/AttachmentCreateFromUrl.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Attachment } from "../models/Attachment";
|
|
2
|
+
import type { AttachmentCreateFromUrl } from "../models/AttachmentCreateFromUrl";
|
|
3
|
+
import type { CancelablePromise } from "../core/CancelablePromise";
|
|
4
|
+
export declare class AttachmentService {
|
|
5
|
+
/**
|
|
6
|
+
* Attach a file from a provided URL to a task
|
|
7
|
+
* Attach a file from a provided URL to a task. The file will be downloaded and attached asynchronously. This operation may take a few moments to complete.
|
|
8
|
+
* @param id
|
|
9
|
+
* @param requestBody
|
|
10
|
+
* @returns Attachment Success, including the attached attachment details
|
|
11
|
+
* @throws ApiError
|
|
12
|
+
*/
|
|
13
|
+
static addTaskAttachmentFromUrl(id: string, requestBody: AttachmentCreateFromUrl): CancelablePromise<Attachment>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AttachmentService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class AttachmentService {
|
|
7
|
+
/**
|
|
8
|
+
* Attach a file from a provided URL to a task
|
|
9
|
+
* Attach a file from a provided URL to a task. The file will be downloaded and attached asynchronously. This operation may take a few moments to complete.
|
|
10
|
+
* @param id
|
|
11
|
+
* @param requestBody
|
|
12
|
+
* @returns Attachment Success, including the attached attachment details
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
static addTaskAttachmentFromUrl(id, requestBody) {
|
|
16
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
17
|
+
method: "POST",
|
|
18
|
+
url: "/tasks/{id}/attachments/from-url",
|
|
19
|
+
path: {
|
|
20
|
+
id: id,
|
|
21
|
+
},
|
|
22
|
+
body: requestBody,
|
|
23
|
+
mediaType: "application/json",
|
|
24
|
+
errors: {
|
|
25
|
+
400: `Invalid request, including the errors`,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.AttachmentService = AttachmentService;
|
|
31
|
+
//# sourceMappingURL=AttachmentService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentService.js","sourceRoot":"","sources":["../../dart/generated/services/AttachmentService.ts"],"names":[],"mappings":";;;AAOA,6CAA0C;AAC1C,6CAAuD;AACvD,MAAa,iBAAiB;IAC5B;;;;;;;OAOG;IACI,MAAM,CAAC,wBAAwB,CACpC,EAAU,EACV,WAAoC;QAEpC,OAAO,IAAA,iBAAS,EAAC,iBAAO,EAAE;YACxB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,kCAAkC;YACvC,IAAI,EAAE;gBACJ,EAAE,EAAE,EAAE;aACP;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;YAC7B,MAAM,EAAE;gBACN,GAAG,EAAE,uCAAuC;aAC7C;SACF,CAAC,CAAC;IACL,CAAC;CACF;AA1BD,8CA0BC"}
|