@uipath/test-manager-tool 1.205.0-preview.276 → 1.206.0-preview.279

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,35 @@
1
+ import {
2
+ toGetAttachmentsByObjectIdRequest2,
3
+ toDownloadAttachmentRequest2,
4
+ toUploadAttachmentRequest2,
5
+ toUploadTaggedAttachmentRequest2,
6
+ ATTACHMENT_OBJECT_TYPES2,
7
+ toGetAttachmentsByObjectIdsRequest2,
8
+ toGetAttachmentByIdRequest2,
9
+ toUpdateAttachmentRequest2,
10
+ toDeleteAttachmentRequest2
11
+ } from "./tool-vgc9gpy6.js";
12
+ import {
13
+ UiPathTestManagementHubAttachmentAbstractionsEnumsAttachmentSource2,
14
+ UiPathTestManagementHubCommonEnumsObjectType2,
15
+ UiPathTestManagementHubAttachmentAbstractionsEnumsAttachmentType2,
16
+ UiPathTestManagementHubAttachmentAbstractionsEnumsAttachmentUploadSource2
17
+ } from "./tool-1nkyed5m.js";
18
+ import"./tool-6mpkbszw.js";
19
+ export {
20
+ ATTACHMENT_OBJECT_TYPES2 as ATTACHMENT_OBJECT_TYPES,
21
+ UiPathTestManagementHubAttachmentAbstractionsEnumsAttachmentSource2 as AttachmentSource,
22
+ UiPathTestManagementHubAttachmentAbstractionsEnumsAttachmentType2 as AttachmentType,
23
+ UiPathTestManagementHubAttachmentAbstractionsEnumsAttachmentUploadSource2 as AttachmentUploadSource,
24
+ UiPathTestManagementHubCommonEnumsObjectType2 as ObjectType,
25
+ toDeleteAttachmentRequest2 as toDeleteAttachmentRequest,
26
+ toDownloadAttachmentRequest2 as toDownloadAttachmentRequest,
27
+ toGetAttachmentByIdRequest2 as toGetAttachmentByIdRequest,
28
+ toGetAttachmentsByObjectIdRequest2 as toGetAttachmentsByObjectIdRequest,
29
+ toGetAttachmentsByObjectIdsRequest2 as toGetAttachmentsByObjectIdsRequest,
30
+ toUpdateAttachmentRequest2 as toUpdateAttachmentRequest,
31
+ toUploadAttachmentRequest2 as toUploadAttachmentRequest,
32
+ toUploadTaggedAttachmentRequest2 as toUploadTaggedAttachmentRequest
33
+ };
34
+
35
+ //# debugId=E6EA925CA7E9A41864756E2164756E21
@@ -1,5 +1,3 @@
1
- import"./tool-1de529jm.js";
2
-
3
1
  // ../../node_modules/open/index.js
4
2
  import process7 from "node:process";
5
3
  import path from "node:path";
@@ -548,22 +546,6 @@ var open = (target, options) => {
548
546
  target
549
547
  });
550
548
  };
551
- var openApp = (name, options) => {
552
- if (typeof name !== "string" && !Array.isArray(name)) {
553
- throw new TypeError("Expected a valid `name`");
554
- }
555
- const { arguments: appArguments = [] } = options ?? {};
556
- if (appArguments !== undefined && appArguments !== null && !Array.isArray(appArguments)) {
557
- throw new TypeError("Expected `appArguments` as Array type");
558
- }
559
- return baseOpen({
560
- ...options,
561
- app: {
562
- name,
563
- arguments: appArguments
564
- }
565
- });
566
- };
567
549
  function detectArchBinary(binary) {
568
550
  if (typeof binary === "string" || Array.isArray(binary)) {
569
551
  return binary;
@@ -626,9 +608,7 @@ defineLazyProperty(apps, "safari", () => detectPlatformBinary({
626
608
  }));
627
609
  var open_default = open;
628
610
  export {
629
- apps,
630
- open_default as default,
631
- openApp
611
+ open_default as default
632
612
  };
633
613
 
634
- //# debugId=42C9AEC59ECC644E64756E2164756E21
614
+ //# debugId=6F288C058A3A412164756E2164756E21
@@ -0,0 +1,26 @@
1
+ import {
2
+ FolderDtoFeedTypeEnum2,
3
+ FoldersApi2,
4
+ MachinesApi2,
5
+ PackageFeedsApi2,
6
+ ProcessesApi2,
7
+ UsersApi2,
8
+ createApiClient2,
9
+ resolveFolder2,
10
+ quoteODataStringLiteral2
11
+ } from "./tool-09vb7dkp.js";
12
+ import"./tool-cp5yx7qz.js";
13
+ import"./tool-6mpkbszw.js";
14
+ export {
15
+ FolderDtoFeedTypeEnum2 as FolderDtoFeedTypeEnum,
16
+ FoldersApi2 as FoldersApi,
17
+ MachinesApi2 as MachinesApi,
18
+ PackageFeedsApi2 as PackageFeedsApi,
19
+ ProcessesApi2 as ProcessesApi,
20
+ UsersApi2 as UsersApi,
21
+ createApiClient2 as createApiClient,
22
+ quoteODataStringLiteral2 as quoteODataStringLiteral,
23
+ resolveFolder2 as resolveFolder
24
+ };
25
+
26
+ //# debugId=F9B59AD49FC8C94264756E2164756E21
@@ -0,0 +1,141 @@
1
+ import {
2
+ Configuration2,
3
+ ResponseError2,
4
+ UiPathTestManagementHubAISolutionsAbstractionsEnumsModeOfUse2,
5
+ UiPathTestManagementHubAttachmentAbstractionsEnumsAttachmentSource2,
6
+ UiPathTestManagementHubCommonEnumsObjectType2,
7
+ UiPathTestManagementHubAttachmentAbstractionsDTOsAttachmentDtoFromJSON2,
8
+ UiPathTestManagementHubAttachmentAbstractionsEnumsAttachmentType2,
9
+ UiPathTestManagementHubAttachmentAbstractionsEnumsAttachmentUploadSource2,
10
+ UiPathTestManagementHubCommonEnumsFieldType2,
11
+ UiPathTestManagementHubCommonEnumsDirection2,
12
+ UiPathTestManagementHubPerformanceServiceAbstractionsEnumsScenarioExecutionType2,
13
+ UiPathTestManagementHubPerformanceServiceAbstractionsEnumsScenarioExecutionStatus2,
14
+ UiPathTestManagementHubPerformanceServiceAbstractionsEnumsResponsiveness2,
15
+ UiPathTestManagementHubPerformanceServiceAbstractionsEnumsApplicationType2,
16
+ UiPathTestManagementHubPerformanceServiceAbstractionsEnumsPerformanceTestType2,
17
+ UiPathTestManagementHubProjectMigrationAbstractionsEnumsMigrationJobType2,
18
+ UiPathTestManagementHubProjectMigrationAbstractionsEnumsMigrationJobStatus2,
19
+ UiPathTestManagementHubCommonEnumsCustomFieldDataType2,
20
+ UiPathTestManagementHubTestManagementAbstractionsEnumsParameterType2,
21
+ UiPathTestManagementHubCommonEnumsRobotType2,
22
+ UiPathTestManagementHubCommonEnumsExecutionType2,
23
+ UiPathTestManagementHubTestManagementAbstractionsDTOsResult2,
24
+ UiPathTestManagementHubCommonEnumsTestCaseLogExecutionStatus2,
25
+ UiPathTestManagementHubTestManagementAbstractionsEnumsTestExecutionStatus2,
26
+ UiPathTestManagementHubTestManagementAbstractionsEnumsRecurrenceType2,
27
+ UiPathTestManagementHubCommonEnumsLabelType2,
28
+ UiPathTestManagementHubPerformanceServiceAbstractionsEnumsLoadGroupRobotType2,
29
+ UiPathTestManagementHubTestManagementAbstractionsDTOsBulkDeleteResponseDtoFromJSON2,
30
+ UiPathTestManagementHubTestManagementAbstractionsEnumsFilterType2,
31
+ UiPathTestManagementHubTestManagementAbstractionsEnumsDurationPeriod2,
32
+ UiPathTestManagementHubTestManagementAbstractionsEnumsFileExportType2,
33
+ UiPathTestManagementHubTestManagementAbstractionsEnumsTestExecutionFinishedInterval2,
34
+ AttachmentsApi2,
35
+ CustomFieldDefinitionsApi2,
36
+ CustomFieldLabelsApi2,
37
+ CustomFieldValuesApi2,
38
+ DefectsApi2,
39
+ FileExportJobsApi2,
40
+ LoadGroupApi2,
41
+ LoadGroupLogApi2,
42
+ ObjectFiltersApi2,
43
+ ObjectLabelsApi2,
44
+ OrchestratorApi2,
45
+ ParametersApi2,
46
+ ProjectMigrationAttachmentApi2,
47
+ ProjectMigrationJobApi2,
48
+ ProjectMigrationSchemaApi2,
49
+ ProjectPermissionsApi2,
50
+ ProjectSettingsApi2,
51
+ ProjectsApi2,
52
+ PromptsApi2,
53
+ RequirementsApi2,
54
+ ScenarioApi2,
55
+ ScenarioExecutionApi2,
56
+ TestCaseLogArtifactsApi2,
57
+ TestCaseLogsApi2,
58
+ TestCasesApi2,
59
+ TestExecutionsApi2,
60
+ TestSetSchedulesApi2,
61
+ TestSetsApi2,
62
+ TestStepLogsApi2,
63
+ TestStepsApi2,
64
+ UserAuthApi2,
65
+ RequirementsAIApi2,
66
+ LlmActivityApi2,
67
+ TestSetHiddenRoutesApi2,
68
+ TransientTestSetsApi2
69
+ } from "./tool-1nkyed5m.js";
70
+ import"./tool-6mpkbszw.js";
71
+ export {
72
+ AttachmentsApi2 as AttachmentsApi,
73
+ Configuration2 as Configuration,
74
+ CustomFieldDefinitionsApi2 as CustomFieldDefinitionsApi,
75
+ CustomFieldLabelsApi2 as CustomFieldLabelsApi,
76
+ CustomFieldValuesApi2 as CustomFieldValuesApi,
77
+ DefectsApi2 as DefectsApi,
78
+ FileExportJobsApi2 as FileExportJobsApi,
79
+ LlmActivityApi2 as LlmActivityApi,
80
+ LoadGroupApi2 as LoadGroupApi,
81
+ LoadGroupLogApi2 as LoadGroupLogApi,
82
+ ObjectFiltersApi2 as ObjectFiltersApi,
83
+ ObjectLabelsApi2 as ObjectLabelsApi,
84
+ OrchestratorApi2 as OrchestratorApi,
85
+ ParametersApi2 as ParametersApi,
86
+ ProjectMigrationAttachmentApi2 as ProjectMigrationAttachmentApi,
87
+ ProjectMigrationJobApi2 as ProjectMigrationJobApi,
88
+ ProjectMigrationSchemaApi2 as ProjectMigrationSchemaApi,
89
+ ProjectPermissionsApi2 as ProjectPermissionsApi,
90
+ ProjectSettingsApi2 as ProjectSettingsApi,
91
+ ProjectsApi2 as ProjectsApi,
92
+ PromptsApi2 as PromptsApi,
93
+ RequirementsAIApi2 as RequirementsAIApi,
94
+ RequirementsApi2 as RequirementsApi,
95
+ ResponseError2 as ResponseError,
96
+ ScenarioApi2 as ScenarioApi,
97
+ ScenarioExecutionApi2 as ScenarioExecutionApi,
98
+ TestCaseLogArtifactsApi2 as TestCaseLogArtifactsApi,
99
+ TestCaseLogsApi2 as TestCaseLogsApi,
100
+ TestCasesApi2 as TestCasesApi,
101
+ TestExecutionsApi2 as TestExecutionsApi,
102
+ TestSetHiddenRoutesApi2 as TestSetHiddenRoutesApi,
103
+ TestSetSchedulesApi2 as TestSetSchedulesApi,
104
+ TestSetsApi2 as TestSetsApi,
105
+ TestStepLogsApi2 as TestStepLogsApi,
106
+ TestStepsApi2 as TestStepsApi,
107
+ TransientTestSetsApi2 as TransientTestSetsApi,
108
+ UiPathTestManagementHubAISolutionsAbstractionsEnumsModeOfUse2 as UiPathTestManagementHubAISolutionsAbstractionsEnumsModeOfUse,
109
+ UiPathTestManagementHubAttachmentAbstractionsDTOsAttachmentDtoFromJSON2 as UiPathTestManagementHubAttachmentAbstractionsDTOsAttachmentDtoFromJSON,
110
+ UiPathTestManagementHubAttachmentAbstractionsEnumsAttachmentSource2 as UiPathTestManagementHubAttachmentAbstractionsEnumsAttachmentSource,
111
+ UiPathTestManagementHubAttachmentAbstractionsEnumsAttachmentType2 as UiPathTestManagementHubAttachmentAbstractionsEnumsAttachmentType,
112
+ UiPathTestManagementHubAttachmentAbstractionsEnumsAttachmentUploadSource2 as UiPathTestManagementHubAttachmentAbstractionsEnumsAttachmentUploadSource,
113
+ UiPathTestManagementHubCommonEnumsCustomFieldDataType2 as UiPathTestManagementHubCommonEnumsCustomFieldDataType,
114
+ UiPathTestManagementHubCommonEnumsDirection2 as UiPathTestManagementHubCommonEnumsDirection,
115
+ UiPathTestManagementHubCommonEnumsExecutionType2 as UiPathTestManagementHubCommonEnumsExecutionType,
116
+ UiPathTestManagementHubCommonEnumsFieldType2 as UiPathTestManagementHubCommonEnumsFieldType,
117
+ UiPathTestManagementHubCommonEnumsLabelType2 as UiPathTestManagementHubCommonEnumsLabelType,
118
+ UiPathTestManagementHubCommonEnumsObjectType2 as UiPathTestManagementHubCommonEnumsObjectType,
119
+ UiPathTestManagementHubCommonEnumsRobotType2 as UiPathTestManagementHubCommonEnumsRobotType,
120
+ UiPathTestManagementHubCommonEnumsTestCaseLogExecutionStatus2 as UiPathTestManagementHubCommonEnumsTestCaseLogExecutionStatus,
121
+ UiPathTestManagementHubPerformanceServiceAbstractionsEnumsApplicationType2 as UiPathTestManagementHubPerformanceServiceAbstractionsEnumsApplicationType,
122
+ UiPathTestManagementHubPerformanceServiceAbstractionsEnumsLoadGroupRobotType2 as UiPathTestManagementHubPerformanceServiceAbstractionsEnumsLoadGroupRobotType,
123
+ UiPathTestManagementHubPerformanceServiceAbstractionsEnumsPerformanceTestType2 as UiPathTestManagementHubPerformanceServiceAbstractionsEnumsPerformanceTestType,
124
+ UiPathTestManagementHubPerformanceServiceAbstractionsEnumsResponsiveness2 as UiPathTestManagementHubPerformanceServiceAbstractionsEnumsResponsiveness,
125
+ UiPathTestManagementHubPerformanceServiceAbstractionsEnumsScenarioExecutionStatus2 as UiPathTestManagementHubPerformanceServiceAbstractionsEnumsScenarioExecutionStatus,
126
+ UiPathTestManagementHubPerformanceServiceAbstractionsEnumsScenarioExecutionType2 as UiPathTestManagementHubPerformanceServiceAbstractionsEnumsScenarioExecutionType,
127
+ UiPathTestManagementHubProjectMigrationAbstractionsEnumsMigrationJobStatus2 as UiPathTestManagementHubProjectMigrationAbstractionsEnumsMigrationJobStatus,
128
+ UiPathTestManagementHubProjectMigrationAbstractionsEnumsMigrationJobType2 as UiPathTestManagementHubProjectMigrationAbstractionsEnumsMigrationJobType,
129
+ UiPathTestManagementHubTestManagementAbstractionsDTOsBulkDeleteResponseDtoFromJSON2 as UiPathTestManagementHubTestManagementAbstractionsDTOsBulkDeleteResponseDtoFromJSON,
130
+ UiPathTestManagementHubTestManagementAbstractionsDTOsResult2 as UiPathTestManagementHubTestManagementAbstractionsDTOsResult,
131
+ UiPathTestManagementHubTestManagementAbstractionsEnumsDurationPeriod2 as UiPathTestManagementHubTestManagementAbstractionsEnumsDurationPeriod,
132
+ UiPathTestManagementHubTestManagementAbstractionsEnumsFileExportType2 as UiPathTestManagementHubTestManagementAbstractionsEnumsFileExportType,
133
+ UiPathTestManagementHubTestManagementAbstractionsEnumsFilterType2 as UiPathTestManagementHubTestManagementAbstractionsEnumsFilterType,
134
+ UiPathTestManagementHubTestManagementAbstractionsEnumsParameterType2 as UiPathTestManagementHubTestManagementAbstractionsEnumsParameterType,
135
+ UiPathTestManagementHubTestManagementAbstractionsEnumsRecurrenceType2 as UiPathTestManagementHubTestManagementAbstractionsEnumsRecurrenceType,
136
+ UiPathTestManagementHubTestManagementAbstractionsEnumsTestExecutionFinishedInterval2 as UiPathTestManagementHubTestManagementAbstractionsEnumsTestExecutionFinishedInterval,
137
+ UiPathTestManagementHubTestManagementAbstractionsEnumsTestExecutionStatus2 as UiPathTestManagementHubTestManagementAbstractionsEnumsTestExecutionStatus,
138
+ UserAuthApi2 as UserAuthApi
139
+ };
140
+
141
+ //# debugId=1B5EEB7E1243949864756E2164756E21
package/dist/index.js CHANGED
@@ -1,22 +1,21 @@
1
1
  #!/usr/bin/env bun
2
- import {
3
- metadata,
4
- registerCommands
5
- } from "./tool-kbqcg84v.js";
6
- import"./tool-fxj3gn2v.js";
7
- import"./tool-2a68c3s5.js";
8
- import"./tool-7hy7vvfk.js";
9
2
  import {
10
3
  Command
11
- } from "./tool-e3prtphw.js";
12
- import"./tool-cpdm080k.js";
13
- import"./tool-8b7p4csj.js";
14
- import"./tool-1de529jm.js";
4
+ } from "./tool-cp5yx7qz.js";
5
+ import"./tool-6mpkbszw.js";
6
+ import"./tool-1nkyed5m.js";
7
+ import"./tool-vgc9gpy6.js";
8
+ import"./tool-avfzv3ch.js";
9
+ import {
10
+ metadata2,
11
+ registerCommands2
12
+ } from "./tool-z80a3d1j.js";
13
+ import"./tool-09vb7dkp.js";
15
14
 
16
15
  // src/index.ts
17
16
  var program = new Command;
18
- program.name(metadata.commandPrefix).description(metadata.description).version(metadata.version);
19
- await registerCommands(program);
17
+ program.name(metadata2.commandPrefix).description(metadata2.description).version(metadata2.version);
18
+ await registerCommands2(program);
20
19
  program.parse(process.argv);
21
20
 
22
- //# debugId=893BCC4C23B10F8764756E2164756E21
21
+ //# debugId=30987F787396FAE764756E2164756E21
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __commonJS
3
- } from "./tool-1de529jm.js";
3
+ } from "./tool-epsr41wx.js";
4
4
 
5
5
  // ../../node_modules/jmespath/jmespath.js
6
6
  var require_jmespath = __commonJS(function(exports) {
@@ -1,5 +1,3 @@
1
- import"./tool-1de529jm.js";
2
-
3
1
  // ../../node_modules/js-yaml/dist/js-yaml.mjs
4
2
  function getDefaultExportFromCjs(x) {
5
3
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
@@ -3150,4 +3148,4 @@ export {
3150
3148
  types
3151
3149
  };
3152
3150
 
3153
- //# debugId=9FA8E718B2F80BEA64756E2164756E21
3151
+ //# debugId=41DC6971B94BC54964756E2164756E21
@@ -1,48 +1,46 @@
1
1
  import {
2
- CHUNK_NOT_SENT_CODES,
3
- CHUNK_RETRY_BACKOFF_MS,
4
- CHUNK_SIZE_BYTES,
5
- CHUNK_UPLOAD_ATTEMPTS,
6
- DEFAULT_IMPORT_TIMEOUT_MS,
7
- DEFAULT_MIGRATION_INTERVAL_MS,
8
- MAX_IMPORT_PACKAGE_BYTES,
9
- MAX_PACKAGE_NAME_LENGTH,
2
+ getFileSystem,
3
+ catchError,
4
+ instructionsFor,
5
+ RESULTS,
6
+ logger,
7
+ SuccessOutput,
8
+ OutputFormatter,
9
+ processContext
10
+ } from "./tool-cp5yx7qz.js";
11
+ import"./tool-6mpkbszw.js";
12
+ import {
13
+ UiPathTestManagementHubProjectMigrationAbstractionsEnumsMigrationJobStatus2,
14
+ ProjectMigrationAttachmentApi2,
15
+ ProjectMigrationJobApi2,
16
+ ProjectsApi2
17
+ } from "./tool-1nkyed5m.js";
18
+ import {
10
19
  PROJECT_CONFIG_IMPORT_FORBIDDEN_MESSAGE,
11
20
  TM_FORBIDDEN_MESSAGE,
12
- checkContentSelection,
13
- emitInvalidArgument,
14
- emitTmFailure,
21
+ resolveWaitTiming,
15
22
  extractErrorDetails,
23
+ emitTmFailure,
24
+ emitInvalidArgument,
16
25
  initializeContext,
17
- recheckJobHint,
18
26
  resolveContextWithProject,
19
- resolveWaitTiming,
20
- toChunkUploadRequest,
21
27
  toImportJobRequest,
28
+ toChunkUploadRequest,
22
29
  toJobUpdateRequest,
23
30
  toMigrationJobOutput,
31
+ DEFAULT_IMPORT_TIMEOUT_MS,
32
+ DEFAULT_MIGRATION_INTERVAL_MS,
33
+ CHUNK_UPLOAD_ATTEMPTS,
34
+ CHUNK_RETRY_BACKOFF_MS,
35
+ CHUNK_SIZE_BYTES,
36
+ MAX_PACKAGE_NAME_LENGTH,
37
+ MAX_IMPORT_PACKAGE_BYTES,
38
+ CHUNK_NOT_SENT_CODES,
39
+ withRefreshingToken,
40
+ checkContentSelection,
24
41
  waitForMigrationJob,
25
- withRefreshingToken
26
- } from "./tool-fxj3gn2v.js";
27
- import {
28
- EXIT_CODES,
29
- OutputFormatter,
30
- RESULTS,
31
- SuccessOutput,
32
- catchError,
33
- getFileSystem,
34
- instructionsFor,
35
- logger,
36
- processContext
37
- } from "./tool-e3prtphw.js";
38
- import {
39
- ProjectMigrationAttachmentApi,
40
- ProjectMigrationJobApi,
41
- ProjectsApi,
42
- UiPathTestManagementHubProjectMigrationAbstractionsEnumsMigrationJobStatus
43
- } from "./tool-cpdm080k.js";
44
- import"./tool-8b7p4csj.js";
45
- import"./tool-1de529jm.js";
42
+ recheckJobHint
43
+ } from "./tool-avfzv3ch.js";
46
44
 
47
45
  // ../../node_modules/fflate/esm/index.mjs
48
46
  import { createRequire } from "module";
@@ -90,25 +88,25 @@ var x;
90
88
  var i;
91
89
  var hMap = function(cd, mb, r) {
92
90
  var s = cd.length;
93
- var i2 = 0;
91
+ var i = 0;
94
92
  var l = new u16(mb);
95
- for (;i2 < s; ++i2) {
96
- if (cd[i2])
97
- ++l[cd[i2] - 1];
93
+ for (;i < s; ++i) {
94
+ if (cd[i])
95
+ ++l[cd[i] - 1];
98
96
  }
99
97
  var le = new u16(mb);
100
- for (i2 = 1;i2 < mb; ++i2) {
101
- le[i2] = le[i2 - 1] + l[i2 - 1] << 1;
98
+ for (i = 1;i < mb; ++i) {
99
+ le[i] = le[i - 1] + l[i - 1] << 1;
102
100
  }
103
101
  var co;
104
102
  if (r) {
105
103
  co = new u16(1 << mb);
106
104
  var rvb = 15 - mb;
107
- for (i2 = 0;i2 < s; ++i2) {
108
- if (cd[i2]) {
109
- var sv = i2 << 4 | cd[i2];
110
- var r_1 = mb - cd[i2];
111
- var v = le[cd[i2] - 1]++ << r_1;
105
+ for (i = 0;i < s; ++i) {
106
+ if (cd[i]) {
107
+ var sv = i << 4 | cd[i];
108
+ var r_1 = mb - cd[i];
109
+ var v = le[cd[i] - 1]++ << r_1;
112
110
  for (var m = v | (1 << r_1) - 1;v <= m; ++v) {
113
111
  co[rev[v] >> rvb] = sv;
114
112
  }
@@ -116,9 +114,9 @@ var hMap = function(cd, mb, r) {
116
114
  }
117
115
  } else {
118
116
  co = new u16(s);
119
- for (i2 = 0;i2 < s; ++i2) {
120
- if (cd[i2]) {
121
- co[i2] = rev[le[cd[i2] - 1]++] >> 15 - cd[i2];
117
+ for (i = 0;i < s; ++i) {
118
+ if (cd[i]) {
119
+ co[i] = rev[le[cd[i] - 1]++] >> 15 - cd[i];
122
120
  }
123
121
  }
124
122
  }
@@ -145,9 +143,9 @@ var flrm = /* @__PURE__ */ hMap(flt, 9, 1);
145
143
  var fdrm = /* @__PURE__ */ hMap(fdt, 5, 1);
146
144
  var max = function(a) {
147
145
  var m = a[0];
148
- for (var i2 = 1;i2 < a.length; ++i2) {
149
- if (a[i2] > m)
150
- m = a[i2];
146
+ for (var i = 1;i < a.length; ++i) {
147
+ if (a[i] > m)
148
+ m = a[i];
151
149
  }
152
150
  return m;
153
151
  };
@@ -203,15 +201,15 @@ var inflt = function(dat, st, buf, dict) {
203
201
  var noSt = st.i;
204
202
  if (noBuf)
205
203
  buf = new u8(sl * 3);
206
- var cbuf = function(l2) {
204
+ var cbuf = function(l) {
207
205
  var bl = buf.length;
208
- if (l2 > bl) {
209
- var nbuf = new u8(Math.max(bl * 2, l2));
206
+ if (l > bl) {
207
+ var nbuf = new u8(Math.max(bl * 2, l));
210
208
  nbuf.set(buf);
211
209
  buf = nbuf;
212
210
  }
213
211
  };
214
- var final = st.f || 0, pos = st.p || 0, bt = st.b || 0, lm = st.l, dm = st.d, lbt = st.m, dbt = st.n;
212
+ var final = st.f || 0, pos = st.p || 0, bt = st.b || 0, { l: lm, d: dm, m: lbt, n: dbt } = st;
215
213
  var tbts = sl * 8;
216
214
  do {
217
215
  if (!lm) {
@@ -238,28 +236,28 @@ var inflt = function(dat, st, buf, dict) {
238
236
  pos += 14;
239
237
  var ldt = new u8(tl);
240
238
  var clt = new u8(19);
241
- for (var i2 = 0;i2 < hcLen; ++i2) {
242
- clt[clim[i2]] = bits(dat, pos + i2 * 3, 7);
239
+ for (var i = 0;i < hcLen; ++i) {
240
+ clt[clim[i]] = bits(dat, pos + i * 3, 7);
243
241
  }
244
242
  pos += hcLen * 3;
245
243
  var clb = max(clt), clbmsk = (1 << clb) - 1;
246
244
  var clm = hMap(clt, clb, 1);
247
- for (var i2 = 0;i2 < tl; ) {
245
+ for (var i = 0;i < tl; ) {
248
246
  var r = clm[bits(dat, pos, clbmsk)];
249
247
  pos += r & 15;
250
248
  var s = r >> 4;
251
249
  if (s < 16) {
252
- ldt[i2++] = s;
250
+ ldt[i++] = s;
253
251
  } else {
254
252
  var c = 0, n = 0;
255
253
  if (s == 16)
256
- n = 3 + bits(dat, pos, 3), pos += 2, c = ldt[i2 - 1];
254
+ n = 3 + bits(dat, pos, 3), pos += 2, c = ldt[i - 1];
257
255
  else if (s == 17)
258
256
  n = 3 + bits(dat, pos, 7), pos += 3;
259
257
  else if (s == 18)
260
258
  n = 11 + bits(dat, pos, 127), pos += 7;
261
259
  while (n--)
262
- ldt[i2++] = c;
260
+ ldt[i++] = c;
263
261
  }
264
262
  }
265
263
  var lt = ldt.subarray(0, hLit), dt = ldt.subarray(hLit);
@@ -297,8 +295,8 @@ var inflt = function(dat, st, buf, dict) {
297
295
  } else {
298
296
  var add = sym - 254;
299
297
  if (sym > 264) {
300
- var i2 = sym - 257, b = fleb[i2];
301
- add = bits(dat, pos, (1 << b) - 1) + fl[i2];
298
+ var i = sym - 257, b = fleb[i];
299
+ add = bits(dat, pos, (1 << b) - 1) + fl[i];
302
300
  pos += b;
303
301
  }
304
302
  var d = dm[bits16(dat, pos) & dms], dsym = d >> 4;
@@ -355,31 +353,31 @@ try {
355
353
  tds = 1;
356
354
  } catch (e) {}
357
355
  var dutf8 = function(d) {
358
- for (var r = "", i2 = 0;; ) {
359
- var c = d[i2++];
356
+ for (var r = "", i = 0;; ) {
357
+ var c = d[i++];
360
358
  var eb = (c > 127) + (c > 223) + (c > 239);
361
- if (i2 + eb > d.length)
362
- return { s: r, r: slc(d, i2 - 1) };
359
+ if (i + eb > d.length)
360
+ return { s: r, r: slc(d, i - 1) };
363
361
  if (!eb)
364
362
  r += String.fromCharCode(c);
365
363
  else if (eb == 3) {
366
- c = ((c & 15) << 18 | (d[i2++] & 63) << 12 | (d[i2++] & 63) << 6 | d[i2++] & 63) - 65536, r += String.fromCharCode(55296 | c >> 10, 56320 | c & 1023);
364
+ c = ((c & 15) << 18 | (d[i++] & 63) << 12 | (d[i++] & 63) << 6 | d[i++] & 63) - 65536, r += String.fromCharCode(55296 | c >> 10, 56320 | c & 1023);
367
365
  } else if (eb & 1)
368
- r += String.fromCharCode((c & 31) << 6 | d[i2++] & 63);
366
+ r += String.fromCharCode((c & 31) << 6 | d[i++] & 63);
369
367
  else
370
- r += String.fromCharCode((c & 15) << 12 | (d[i2++] & 63) << 6 | d[i2++] & 63);
368
+ r += String.fromCharCode((c & 15) << 12 | (d[i++] & 63) << 6 | d[i++] & 63);
371
369
  }
372
370
  };
373
371
  function strFromU8(dat, latin1) {
374
372
  if (latin1) {
375
373
  var r = "";
376
- for (var i2 = 0;i2 < dat.length; i2 += 16384)
377
- r += String.fromCharCode.apply(null, dat.subarray(i2, i2 + 16384));
374
+ for (var i = 0;i < dat.length; i += 16384)
375
+ r += String.fromCharCode.apply(null, dat.subarray(i, i + 16384));
378
376
  return r;
379
377
  } else if (td) {
380
378
  return td.decode(dat);
381
379
  } else {
382
- var _a2 = dutf8(dat), s = _a2.s, r = _a2.r;
380
+ var _a = dutf8(dat), { s, r } = _a;
383
381
  if (r.length)
384
382
  err(8);
385
383
  return s;
@@ -390,7 +388,7 @@ var slzh = function(d, b) {
390
388
  };
391
389
  var zh = function(d, b, z) {
392
390
  var fnl = b2(d, b + 28), efl = b2(d, b + 30), fn = strFromU8(d.subarray(b + 46, b + 46 + fnl), !(b2(d, b + 8) & 2048)), es = b + 46 + fnl;
393
- var _a2 = z64hs(d, es, efl, z, b4(d, b + 20), b4(d, b + 24), b4(d, b + 42)), sc = _a2[0], su = _a2[1], off = _a2[2];
391
+ var _a = z64hs(d, es, efl, z, b4(d, b + 20), b4(d, b + 24), b4(d, b + 42)), sc = _a[0], su = _a[1], off = _a[2];
394
392
  return [b2(d, b + 10), sc, su, fn, es + efl + b2(d, b + 32), off];
395
393
  };
396
394
  var z64hs = function(d, b, l, z, sc, su, off) {
@@ -433,8 +431,8 @@ function unzipSync(data, opts) {
433
431
  }
434
432
  }
435
433
  var fltr = opts && opts.filter;
436
- for (var i2 = 0;i2 < c; ++i2) {
437
- var _a2 = zh(data, o, z), c_2 = _a2[0], sc = _a2[1], su = _a2[2], fn = _a2[3], no = _a2[4], off = _a2[5], b = slzh(data, off);
434
+ for (var i = 0;i < c; ++i) {
435
+ var _a = zh(data, o, z), c_2 = _a[0], sc = _a[1], su = _a[2], fn = _a[3], no = _a[4], off = _a[5], b = slzh(data, off);
438
436
  o = no;
439
437
  if (!fltr || fltr({
440
438
  name: fn,
@@ -549,7 +547,7 @@ async function executeImport(options) {
549
547
  async function runImport(facts, selection, timing) {
550
548
  const { target, prepared } = facts;
551
549
  const config = withRefreshingToken(target.tmConfig);
552
- const jobApi = new ProjectMigrationJobApi(config);
550
+ const jobApi = new ProjectMigrationJobApi2(config);
553
551
  const manifest = toImportManifest(prepared.manifest, prepared.packageName, prepared.bytes.byteLength, target.project);
554
552
  const [startError, job] = await catchError(jobApi.projectMigrationJobCreateProjectImportJob(toImportJobRequest(target.projectId, manifest, selection)));
555
553
  if (startError) {
@@ -560,7 +558,7 @@ async function runImport(facts, selection, timing) {
560
558
  emitMissingImportJobId(target);
561
559
  return;
562
560
  }
563
- const uploaded = await uploadPackageChunks(new ProjectMigrationAttachmentApi(config), target, job.id, prepared);
561
+ const uploaded = await uploadPackageChunks(new ProjectMigrationAttachmentApi2(config), target, job.id, prepared);
564
562
  if (!uploaded)
565
563
  return;
566
564
  const released = await releaseJob(jobApi, target, job.id);
@@ -674,7 +672,7 @@ async function resolveImportTarget(options, prepared) {
674
672
  const ctx = await resolveContextWithProject(options);
675
673
  if (!ctx)
676
674
  return null;
677
- const [error, project] = await catchError(new ProjectsApi(ctx.tmConfig).projectsGetById({ id: ctx.projectId }));
675
+ const [error, project] = await catchError(new ProjectsApi2(ctx.tmConfig).projectsGetById({ id: ctx.projectId }));
678
676
  if (error) {
679
677
  await emitTmFailure(error);
680
678
  return null;
@@ -699,7 +697,7 @@ async function createTargetProject(tmConfig, manifest, overrides) {
699
697
  return null;
700
698
  }
701
699
  const description = fromPackage.description ?? "";
702
- const [error, created] = await catchError(new ProjectsApi(tmConfig).projectsCreate({
700
+ const [error, created] = await catchError(new ProjectsApi2(tmConfig).projectsCreate({
703
701
  uiPathTestManagementHubTestManagementAbstractionsDTOsCreateProjectRequest: { name, description, projectPrefix: key, isActive: false }
704
702
  }));
705
703
  if (error) {
@@ -737,7 +735,6 @@ async function emitCreateProjectFailure(error, key) {
737
735
  ErrorCode: errorCode,
738
736
  Retry: retry
739
737
  });
740
- processContext.exit(EXIT_CODES[result] ?? 1);
741
738
  }
742
739
  async function emitImportCreateFailure(error, askedForProjectConfig, extraHint) {
743
740
  const { result, message, details, errorCode, retry } = await extractErrorDetails(error, {
@@ -751,7 +748,6 @@ async function emitImportCreateFailure(error, askedForProjectConfig, extraHint)
751
748
  ErrorCode: errorCode,
752
749
  Retry: retry
753
750
  });
754
- processContext.exit(EXIT_CODES[result] ?? 1);
755
751
  }
756
752
  function emitMissingImportJobId(target) {
757
753
  OutputFormatter.error({
@@ -769,7 +765,7 @@ async function uploadPackageChunks(attachmentApi, target, jobId, prepared) {
769
765
  const request = toChunkUploadRequest(target.projectId, jobId, chunk.name, prepared.bytes.subarray(chunk.start, chunk.end));
770
766
  const error = await sendChunk(attachmentApi, request, chunk.index, plan.total);
771
767
  if (error) {
772
- await emitTmFailure(error, undefined, {
768
+ await emitTmFailure(error, {
773
769
  instructionsSuffix: `Chunk ${chunk.index} of ${plan.total} was not confirmed, so job '${jobId}' is incomplete: nothing is imported, and the service discards the job after 24 hours. Import again.${createdProjectHint(target)}`
774
770
  });
775
771
  return false;
@@ -807,7 +803,7 @@ function errorCodes(error, depth = 0) {
807
803
  ];
808
804
  }
809
805
  async function releaseJob(jobApi, target, jobId) {
810
- const [error, released] = await catchError(jobApi.projectMigrationJobUpdateMigrationJob(toJobUpdateRequest(target.projectId, jobId, UiPathTestManagementHubProjectMigrationAbstractionsEnumsMigrationJobStatus.Ready)));
806
+ const [error, released] = await catchError(jobApi.projectMigrationJobUpdateMigrationJob(toJobUpdateRequest(target.projectId, jobId, UiPathTestManagementHubProjectMigrationAbstractionsEnumsMigrationJobStatus2.Ready)));
811
807
  if (error) {
812
808
  await emitReleaseFailure(error, target, jobId);
813
809
  return null;
@@ -818,7 +814,7 @@ async function emitReleaseFailure(error, target, jobId) {
818
814
  const status = error.response?.status;
819
815
  const refused = status !== undefined && status >= 400 && status < 500;
820
816
  if (refused) {
821
- await emitTmFailure(error, undefined, {
817
+ await emitTmFailure(error, {
822
818
  instructionsSuffix: `Every chunk uploaded, but the service refused to release job '${jobId}', so nothing was imported. Import again.${createdProjectHint(target)}`
823
819
  });
824
820
  return;
@@ -833,7 +829,6 @@ async function emitReleaseFailure(error, target, jobId) {
833
829
  ErrorCode: errorCode,
834
830
  Retry: "RetryWillNotFix"
835
831
  });
836
- processContext.exit(EXIT_CODES[result] ?? 1);
837
832
  }
838
833
  function createdProjectHint(target) {
839
834
  if (!target.created)
@@ -842,8 +837,7 @@ function createdProjectHint(target) {
842
837
  return ` The project '${key}' was created inactive for this import and is left in place: delete it with \`uip tm project delete --project-key ${key} --yes\`, or import into it with --project-key ${key}.`;
843
838
  }
844
839
  export {
845
- chunkNeverLanded,
846
840
  executeImport
847
841
  };
848
842
 
849
- //# debugId=2055C69681D5246564756E2164756E21
843
+ //# debugId=91CF6A6920D5244164756E2164756E21