@uipath/test-manager-tool 1.204.0 → 1.205.0-preview.258

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.
@@ -0,0 +1,62 @@
1
+ import {
2
+ UiPathTestManagementHubCommonEnumsObjectType
3
+ } from "./tool-cpdm080k.js";
4
+
5
+ // src/mappers/input/attachment.input.ts
6
+ function toGetAttachmentsByObjectIdRequest(id, projectId, objectType) {
7
+ return { id, objectType, projectId };
8
+ }
9
+ function toDownloadAttachmentRequest(id, projectId, objectType) {
10
+ return { id, objectType, projectId };
11
+ }
12
+ function toUploadAttachmentRequest(id, projectId, objectType, file) {
13
+ return { id, objectType, projectId, file };
14
+ }
15
+ function toUploadTaggedAttachmentRequest(id, projectId, objectType, file, source, attachmentType) {
16
+ return {
17
+ id,
18
+ objectType,
19
+ projectId,
20
+ file,
21
+ ...source && { source },
22
+ ...attachmentType && { attachmentType }
23
+ };
24
+ }
25
+ var ATTACHMENT_OBJECT_TYPES = [
26
+ UiPathTestManagementHubCommonEnumsObjectType.Project,
27
+ UiPathTestManagementHubCommonEnumsObjectType.Requirement,
28
+ UiPathTestManagementHubCommonEnumsObjectType.TestCase,
29
+ UiPathTestManagementHubCommonEnumsObjectType.TestSet,
30
+ UiPathTestManagementHubCommonEnumsObjectType.TestExecution,
31
+ UiPathTestManagementHubCommonEnumsObjectType.TestStepLog,
32
+ UiPathTestManagementHubCommonEnumsObjectType.TestCaseLog,
33
+ UiPathTestManagementHubCommonEnumsObjectType.ExplorationResult
34
+ ];
35
+ function toGetAttachmentsByObjectIdsRequest(projectId, objectType, objectIds, options = {}) {
36
+ return {
37
+ projectId,
38
+ objectType,
39
+ ...options.source !== undefined && { source: options.source },
40
+ uiPathTestManagementHubAttachmentAbstractionsDTOsObjectIdsDto: {
41
+ objectIds
42
+ }
43
+ };
44
+ }
45
+ function toGetAttachmentByIdRequest(id, projectId, objectType) {
46
+ return { id, objectType, projectId };
47
+ }
48
+ function toUpdateAttachmentRequest(id, projectId, objectType, newFileName) {
49
+ return {
50
+ id,
51
+ objectType,
52
+ projectId,
53
+ uiPathTestManagementHubAttachmentAbstractionsDTOsUpdateAttachmentRequest: { newFileName }
54
+ };
55
+ }
56
+ function toDeleteAttachmentRequest(id, projectId, objectType) {
57
+ return { id, objectType, projectId };
58
+ }
59
+
60
+ export { toGetAttachmentsByObjectIdRequest, toDownloadAttachmentRequest, toUploadAttachmentRequest, toUploadTaggedAttachmentRequest, ATTACHMENT_OBJECT_TYPES, toGetAttachmentsByObjectIdsRequest, toGetAttachmentByIdRequest, toUpdateAttachmentRequest, toDeleteAttachmentRequest };
61
+
62
+ //# debugId=FD77FB285C55FFFF64756E2164756E21