@rbaileysr/zephyr-managed-api 1.3.5 → 1.3.7
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/README.md +116 -4
- package/dist/README.md +116 -4
- package/dist/groups/All.d.ts +5 -5
- package/dist/groups/All.d.ts.map +1 -1
- package/dist/groups/Environment.d.ts +3 -3
- package/dist/groups/Environment.d.ts.map +1 -1
- package/dist/groups/Environment.js +1 -1
- package/dist/groups/Folder.d.ts +3 -3
- package/dist/groups/Folder.d.ts.map +1 -1
- package/dist/groups/Folder.js +1 -1
- package/dist/groups/Priority.d.ts +3 -3
- package/dist/groups/Priority.d.ts.map +1 -1
- package/dist/groups/Priority.js +1 -1
- package/dist/groups/Private/PrivateConfig.d.ts +26 -10
- package/dist/groups/Private/PrivateConfig.d.ts.map +1 -1
- package/dist/groups/Private/PrivateConfig.js +36 -12
- package/dist/groups/Private/PrivateIterationData.d.ts +157 -0
- package/dist/groups/Private/PrivateIterationData.d.ts.map +1 -0
- package/dist/groups/Private/PrivateIterationData.js +364 -0
- package/dist/groups/Private.d.ts +6 -0
- package/dist/groups/Private.d.ts.map +1 -1
- package/dist/groups/Private.js +2 -0
- package/dist/groups/Status.d.ts +3 -3
- package/dist/groups/Status.d.ts.map +1 -1
- package/dist/groups/Status.js +1 -1
- package/dist/groups/TestExecution.d.ts +4 -2
- package/dist/groups/TestExecution.d.ts.map +1 -1
- package/dist/groups/TestExecution.js +6 -2
- package/dist/package.json +1 -1
- package/dist/types.d.ts +101 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -141,8 +141,8 @@ const apiEU = createZephyrApi(
|
|
|
141
141
|
- **Labels**: `getLabels`, `createLabel`
|
|
142
142
|
- **Iterations**: `getIterations`, `createIteration`
|
|
143
143
|
- **DataSets**: `getDataSets`, `createDataSet`, `updateDataSet`
|
|
144
|
-
- **archiveConfig** - Archive
|
|
145
|
-
- **unarchiveConfig** - Unarchive
|
|
144
|
+
- **archiveConfig** - Archive a config item (Environment, Iteration, or Status)
|
|
145
|
+
- **unarchiveConfig** - Unarchive a config item (Environment, Iteration, or Status)
|
|
146
146
|
- Versions
|
|
147
147
|
- **createTestCaseVersion** - Create a new test case version
|
|
148
148
|
- Attachments
|
|
@@ -155,6 +155,9 @@ const apiEU = createZephyrApi(
|
|
|
155
155
|
- VersionControl
|
|
156
156
|
- **Test Case (version-specific)**: `getTestCaseIssueLinks`, `getTestCaseWebLinks`, `getTestCaseTestScript`, `getTestCaseTestSteps`
|
|
157
157
|
- **Test Execution Step**: `getTestExecutionStepIssueLinks`, `createTestExecutionStepIssueLink`
|
|
158
|
+
- IterationData (supplements public API with iteration data)
|
|
159
|
+
- **Test Cycle**: `getTestCycleIteration`, `updateTestCycleIteration`
|
|
160
|
+
- **Test Execution**: `getTestExecutionIteration`, `updateTestExecutionIteration`
|
|
158
161
|
|
|
159
162
|
## Private API Authentication
|
|
160
163
|
|
|
@@ -274,6 +277,41 @@ const unarchivedIteration = await api.Private.Config.unarchiveConfig(credentials
|
|
|
274
277
|
id: 10909775,
|
|
275
278
|
projectId: 10233
|
|
276
279
|
});
|
|
280
|
+
|
|
281
|
+
// Archive a test case status
|
|
282
|
+
const archivedTestCaseStatus = await api.Private.Config.archiveConfig(credentials, {
|
|
283
|
+
type: 'TestCaseStatus',
|
|
284
|
+
id: 10952238,
|
|
285
|
+
projectId: 10313
|
|
286
|
+
});
|
|
287
|
+
|
|
288
|
+
// Archive a test plan status
|
|
289
|
+
const archivedTestPlanStatus = await api.Private.Config.archiveConfig(credentials, {
|
|
290
|
+
type: 'TestPlanStatus',
|
|
291
|
+
id: 10952241,
|
|
292
|
+
projectId: 10313
|
|
293
|
+
});
|
|
294
|
+
|
|
295
|
+
// Archive a test cycle status
|
|
296
|
+
const archivedTestCycleStatus = await api.Private.Config.archiveConfig(credentials, {
|
|
297
|
+
type: 'TestCycleStatus',
|
|
298
|
+
id: 10952244,
|
|
299
|
+
projectId: 10313
|
|
300
|
+
});
|
|
301
|
+
|
|
302
|
+
// Archive a test execution status
|
|
303
|
+
const archivedTestExecutionStatus = await api.Private.Config.archiveConfig(credentials, {
|
|
304
|
+
type: 'TestExecutionStatus',
|
|
305
|
+
id: 10952247,
|
|
306
|
+
projectId: 10313
|
|
307
|
+
});
|
|
308
|
+
|
|
309
|
+
// Unarchive any status (same types supported)
|
|
310
|
+
const unarchivedStatus = await api.Private.Config.unarchiveConfig(credentials, {
|
|
311
|
+
type: 'TestCaseStatus',
|
|
312
|
+
id: 10952238,
|
|
313
|
+
projectId: 10313
|
|
314
|
+
});
|
|
277
315
|
```
|
|
278
316
|
|
|
279
317
|
### Example: Create Test Case Version
|
|
@@ -355,6 +393,68 @@ const stepLink = await api.Private.VersionControl.createTestExecutionStepIssueLi
|
|
|
355
393
|
});
|
|
356
394
|
```
|
|
357
395
|
|
|
396
|
+
### Example: Get and Set Iteration Data (Supplements Public API)
|
|
397
|
+
|
|
398
|
+
The public API does not support getting or setting iterations for Test Cycles and Test Executions. Use the `IterationData` sub-group to supplement public API calls with iteration data.
|
|
399
|
+
|
|
400
|
+
```typescript
|
|
401
|
+
// === Test Cycle Iteration ===
|
|
402
|
+
|
|
403
|
+
// Create test cycle with public API
|
|
404
|
+
const testCycle = await api.TestCycle.createTestCycle({
|
|
405
|
+
projectKey: 'M12',
|
|
406
|
+
name: 'Sprint 1 Testing'
|
|
407
|
+
});
|
|
408
|
+
|
|
409
|
+
// Set iteration using private API (supplements createTestCycle)
|
|
410
|
+
await api.Private.IterationData.updateTestCycleIteration(credentials, {
|
|
411
|
+
testCycleKey: testCycle.key,
|
|
412
|
+
projectId: 10313,
|
|
413
|
+
iterationId: 10952254
|
|
414
|
+
});
|
|
415
|
+
|
|
416
|
+
// Get iteration data (supplements getTestCycle)
|
|
417
|
+
const testCycleIteration = await api.Private.IterationData.getTestCycleIteration(credentials, {
|
|
418
|
+
testCycleKey: 'M12-R1',
|
|
419
|
+
projectId: 10313
|
|
420
|
+
});
|
|
421
|
+
console.log('Test Cycle Iteration ID:', testCycleIteration.iterationId); // null if not set
|
|
422
|
+
|
|
423
|
+
// === Test Execution Iteration ===
|
|
424
|
+
|
|
425
|
+
// Create test execution with public API (returns void)
|
|
426
|
+
await api.TestExecution.createTestExecution({
|
|
427
|
+
projectKey: 'M12',
|
|
428
|
+
testCaseKey: 'M12-T1',
|
|
429
|
+
testCycleKey: 'M12-R1',
|
|
430
|
+
statusName: 'Pass'
|
|
431
|
+
});
|
|
432
|
+
|
|
433
|
+
// Note: createTestExecution returns no data, so you need to know the execution key
|
|
434
|
+
// or look it up using listTestExecutions() after creation
|
|
435
|
+
|
|
436
|
+
// Set iteration using private API (supplements createTestExecution)
|
|
437
|
+
await api.Private.IterationData.updateTestExecutionIteration(credentials, {
|
|
438
|
+
testExecutionKey: 'M12-E1', // Use known key or look up after creation
|
|
439
|
+
projectId: 10313,
|
|
440
|
+
iterationId: 10952254
|
|
441
|
+
});
|
|
442
|
+
|
|
443
|
+
// Get iteration data (supplements getTestExecution)
|
|
444
|
+
const testExecutionIteration = await api.Private.IterationData.getTestExecutionIteration(credentials, {
|
|
445
|
+
testExecutionKey: 'M12-E1',
|
|
446
|
+
projectId: 10313
|
|
447
|
+
});
|
|
448
|
+
console.log('Test Execution Iteration ID:', testExecutionIteration.iterationId); // null if not set
|
|
449
|
+
|
|
450
|
+
// Clear iteration by setting to null
|
|
451
|
+
await api.Private.IterationData.updateTestCycleIteration(credentials, {
|
|
452
|
+
testCycleKey: 'M12-R1',
|
|
453
|
+
projectId: 10313,
|
|
454
|
+
iterationId: null
|
|
455
|
+
});
|
|
456
|
+
```
|
|
457
|
+
|
|
358
458
|
**Note:** Version numbers are absolute (1-based: 1 = first version ever created, 2 = second version, etc. The highest number is the current/latest version). Use `listTestCaseVersions()` to find the total number of versions and identify the latest. If `version` is not provided, the latest version is used.
|
|
359
459
|
|
|
360
460
|
**Important Notes:**
|
|
@@ -369,9 +469,21 @@ Feel free to drop ideas, suggestions or improvements into our [Community hub](ht
|
|
|
369
469
|
|
|
370
470
|
## Changelog
|
|
371
471
|
|
|
372
|
-
### 1.3.
|
|
472
|
+
### 1.3.7
|
|
473
|
+
|
|
474
|
+
- **Added**: New `IterationData` sub-group under Private API to supplement public API with iteration data
|
|
475
|
+
- **Added**: `getTestCycleIteration()` - Get iteration for a test cycle (supplements public `getTestCycle()`)
|
|
476
|
+
- **Added**: `updateTestCycleIteration()` - Set/clear iteration for a test cycle (supplements public `createTestCycle()`/`updateTestCycle()`)
|
|
477
|
+
- **Added**: `getTestExecutionIteration()` - Get iteration for a test execution (supplements public `getTestExecution()`)
|
|
478
|
+
- **Added**: `updateTestExecutionIteration()` - Set/clear iteration for a test execution (supplements public `createTestExecution()`/`updateTestExecution()`)
|
|
479
|
+
- **Added**: Support for archiving/unarchiving statuses in `archiveConfig()` and `unarchiveConfig()` methods
|
|
480
|
+
- **Added**: New config types: 'TestCaseStatus', 'TestPlanStatus', 'TestCycleStatus', 'TestExecutionStatus'
|
|
481
|
+
- **Changed**: `archiveConfig()` and `unarchiveConfig()` now support archiving statuses in addition to Environments and Iterations
|
|
482
|
+
- **Fixed**: `createTestExecution()` now correctly returns `Promise<void>` instead of `Promise<CreatedResource>`, matching the actual API response
|
|
483
|
+
|
|
484
|
+
### 1.3.6
|
|
373
485
|
|
|
374
|
-
- **
|
|
486
|
+
- **Fixed**: Corrected return types for `createPriority()`, `createStatus()`, `createEnvironment()`, and `createFolder()` - these methods now correctly return `CreatedResource` (id and self) instead of full entity objects, matching the actual API response
|
|
375
487
|
|
|
376
488
|
### 1.3.4
|
|
377
489
|
|
package/dist/README.md
CHANGED
|
@@ -141,8 +141,8 @@ const apiEU = createZephyrApi(
|
|
|
141
141
|
- **Labels**: `getLabels`, `createLabel`
|
|
142
142
|
- **Iterations**: `getIterations`, `createIteration`
|
|
143
143
|
- **DataSets**: `getDataSets`, `createDataSet`, `updateDataSet`
|
|
144
|
-
- **archiveConfig** - Archive
|
|
145
|
-
- **unarchiveConfig** - Unarchive
|
|
144
|
+
- **archiveConfig** - Archive a config item (Environment, Iteration, or Status)
|
|
145
|
+
- **unarchiveConfig** - Unarchive a config item (Environment, Iteration, or Status)
|
|
146
146
|
- Versions
|
|
147
147
|
- **createTestCaseVersion** - Create a new test case version
|
|
148
148
|
- Attachments
|
|
@@ -155,6 +155,9 @@ const apiEU = createZephyrApi(
|
|
|
155
155
|
- VersionControl
|
|
156
156
|
- **Test Case (version-specific)**: `getTestCaseIssueLinks`, `getTestCaseWebLinks`, `getTestCaseTestScript`, `getTestCaseTestSteps`
|
|
157
157
|
- **Test Execution Step**: `getTestExecutionStepIssueLinks`, `createTestExecutionStepIssueLink`
|
|
158
|
+
- IterationData (supplements public API with iteration data)
|
|
159
|
+
- **Test Cycle**: `getTestCycleIteration`, `updateTestCycleIteration`
|
|
160
|
+
- **Test Execution**: `getTestExecutionIteration`, `updateTestExecutionIteration`
|
|
158
161
|
|
|
159
162
|
## Private API Authentication
|
|
160
163
|
|
|
@@ -274,6 +277,41 @@ const unarchivedIteration = await api.Private.Config.unarchiveConfig(credentials
|
|
|
274
277
|
id: 10909775,
|
|
275
278
|
projectId: 10233
|
|
276
279
|
});
|
|
280
|
+
|
|
281
|
+
// Archive a test case status
|
|
282
|
+
const archivedTestCaseStatus = await api.Private.Config.archiveConfig(credentials, {
|
|
283
|
+
type: 'TestCaseStatus',
|
|
284
|
+
id: 10952238,
|
|
285
|
+
projectId: 10313
|
|
286
|
+
});
|
|
287
|
+
|
|
288
|
+
// Archive a test plan status
|
|
289
|
+
const archivedTestPlanStatus = await api.Private.Config.archiveConfig(credentials, {
|
|
290
|
+
type: 'TestPlanStatus',
|
|
291
|
+
id: 10952241,
|
|
292
|
+
projectId: 10313
|
|
293
|
+
});
|
|
294
|
+
|
|
295
|
+
// Archive a test cycle status
|
|
296
|
+
const archivedTestCycleStatus = await api.Private.Config.archiveConfig(credentials, {
|
|
297
|
+
type: 'TestCycleStatus',
|
|
298
|
+
id: 10952244,
|
|
299
|
+
projectId: 10313
|
|
300
|
+
});
|
|
301
|
+
|
|
302
|
+
// Archive a test execution status
|
|
303
|
+
const archivedTestExecutionStatus = await api.Private.Config.archiveConfig(credentials, {
|
|
304
|
+
type: 'TestExecutionStatus',
|
|
305
|
+
id: 10952247,
|
|
306
|
+
projectId: 10313
|
|
307
|
+
});
|
|
308
|
+
|
|
309
|
+
// Unarchive any status (same types supported)
|
|
310
|
+
const unarchivedStatus = await api.Private.Config.unarchiveConfig(credentials, {
|
|
311
|
+
type: 'TestCaseStatus',
|
|
312
|
+
id: 10952238,
|
|
313
|
+
projectId: 10313
|
|
314
|
+
});
|
|
277
315
|
```
|
|
278
316
|
|
|
279
317
|
### Example: Create Test Case Version
|
|
@@ -355,6 +393,68 @@ const stepLink = await api.Private.VersionControl.createTestExecutionStepIssueLi
|
|
|
355
393
|
});
|
|
356
394
|
```
|
|
357
395
|
|
|
396
|
+
### Example: Get and Set Iteration Data (Supplements Public API)
|
|
397
|
+
|
|
398
|
+
The public API does not support getting or setting iterations for Test Cycles and Test Executions. Use the `IterationData` sub-group to supplement public API calls with iteration data.
|
|
399
|
+
|
|
400
|
+
```typescript
|
|
401
|
+
// === Test Cycle Iteration ===
|
|
402
|
+
|
|
403
|
+
// Create test cycle with public API
|
|
404
|
+
const testCycle = await api.TestCycle.createTestCycle({
|
|
405
|
+
projectKey: 'M12',
|
|
406
|
+
name: 'Sprint 1 Testing'
|
|
407
|
+
});
|
|
408
|
+
|
|
409
|
+
// Set iteration using private API (supplements createTestCycle)
|
|
410
|
+
await api.Private.IterationData.updateTestCycleIteration(credentials, {
|
|
411
|
+
testCycleKey: testCycle.key,
|
|
412
|
+
projectId: 10313,
|
|
413
|
+
iterationId: 10952254
|
|
414
|
+
});
|
|
415
|
+
|
|
416
|
+
// Get iteration data (supplements getTestCycle)
|
|
417
|
+
const testCycleIteration = await api.Private.IterationData.getTestCycleIteration(credentials, {
|
|
418
|
+
testCycleKey: 'M12-R1',
|
|
419
|
+
projectId: 10313
|
|
420
|
+
});
|
|
421
|
+
console.log('Test Cycle Iteration ID:', testCycleIteration.iterationId); // null if not set
|
|
422
|
+
|
|
423
|
+
// === Test Execution Iteration ===
|
|
424
|
+
|
|
425
|
+
// Create test execution with public API (returns void)
|
|
426
|
+
await api.TestExecution.createTestExecution({
|
|
427
|
+
projectKey: 'M12',
|
|
428
|
+
testCaseKey: 'M12-T1',
|
|
429
|
+
testCycleKey: 'M12-R1',
|
|
430
|
+
statusName: 'Pass'
|
|
431
|
+
});
|
|
432
|
+
|
|
433
|
+
// Note: createTestExecution returns no data, so you need to know the execution key
|
|
434
|
+
// or look it up using listTestExecutions() after creation
|
|
435
|
+
|
|
436
|
+
// Set iteration using private API (supplements createTestExecution)
|
|
437
|
+
await api.Private.IterationData.updateTestExecutionIteration(credentials, {
|
|
438
|
+
testExecutionKey: 'M12-E1', // Use known key or look up after creation
|
|
439
|
+
projectId: 10313,
|
|
440
|
+
iterationId: 10952254
|
|
441
|
+
});
|
|
442
|
+
|
|
443
|
+
// Get iteration data (supplements getTestExecution)
|
|
444
|
+
const testExecutionIteration = await api.Private.IterationData.getTestExecutionIteration(credentials, {
|
|
445
|
+
testExecutionKey: 'M12-E1',
|
|
446
|
+
projectId: 10313
|
|
447
|
+
});
|
|
448
|
+
console.log('Test Execution Iteration ID:', testExecutionIteration.iterationId); // null if not set
|
|
449
|
+
|
|
450
|
+
// Clear iteration by setting to null
|
|
451
|
+
await api.Private.IterationData.updateTestCycleIteration(credentials, {
|
|
452
|
+
testCycleKey: 'M12-R1',
|
|
453
|
+
projectId: 10313,
|
|
454
|
+
iterationId: null
|
|
455
|
+
});
|
|
456
|
+
```
|
|
457
|
+
|
|
358
458
|
**Note:** Version numbers are absolute (1-based: 1 = first version ever created, 2 = second version, etc. The highest number is the current/latest version). Use `listTestCaseVersions()` to find the total number of versions and identify the latest. If `version` is not provided, the latest version is used.
|
|
359
459
|
|
|
360
460
|
**Important Notes:**
|
|
@@ -369,9 +469,21 @@ Feel free to drop ideas, suggestions or improvements into our [Community hub](ht
|
|
|
369
469
|
|
|
370
470
|
## Changelog
|
|
371
471
|
|
|
372
|
-
### 1.3.
|
|
472
|
+
### 1.3.7
|
|
473
|
+
|
|
474
|
+
- **Added**: New `IterationData` sub-group under Private API to supplement public API with iteration data
|
|
475
|
+
- **Added**: `getTestCycleIteration()` - Get iteration for a test cycle (supplements public `getTestCycle()`)
|
|
476
|
+
- **Added**: `updateTestCycleIteration()` - Set/clear iteration for a test cycle (supplements public `createTestCycle()`/`updateTestCycle()`)
|
|
477
|
+
- **Added**: `getTestExecutionIteration()` - Get iteration for a test execution (supplements public `getTestExecution()`)
|
|
478
|
+
- **Added**: `updateTestExecutionIteration()` - Set/clear iteration for a test execution (supplements public `createTestExecution()`/`updateTestExecution()`)
|
|
479
|
+
- **Added**: Support for archiving/unarchiving statuses in `archiveConfig()` and `unarchiveConfig()` methods
|
|
480
|
+
- **Added**: New config types: 'TestCaseStatus', 'TestPlanStatus', 'TestCycleStatus', 'TestExecutionStatus'
|
|
481
|
+
- **Changed**: `archiveConfig()` and `unarchiveConfig()` now support archiving statuses in addition to Environments and Iterations
|
|
482
|
+
- **Fixed**: `createTestExecution()` now correctly returns `Promise<void>` instead of `Promise<CreatedResource>`, matching the actual API response
|
|
483
|
+
|
|
484
|
+
### 1.3.6
|
|
373
485
|
|
|
374
|
-
- **
|
|
486
|
+
- **Fixed**: Corrected return types for `createPriority()`, `createStatus()`, `createEnvironment()`, and `createFolder()` - these methods now correctly return `CreatedResource` (id and self) instead of full entity objects, matching the actual API response
|
|
375
487
|
|
|
376
488
|
### 1.3.4
|
|
377
489
|
|
package/dist/groups/All.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export declare class AllGroup {
|
|
|
50
50
|
get listTestExecutions(): (options?: import("../types").ListTestExecutionsOptions) => Promise<import("../types").TestExecutionList>;
|
|
51
51
|
get listTestExecutionsNextgen(): (options?: import("../types").ListTestExecutionsNextgenOptions) => Promise<import("../types").CursorPagedTestExecutionList>;
|
|
52
52
|
get getTestExecution(): (options: import("../types").GetTestExecutionOptions) => Promise<import("../types").TestExecution>;
|
|
53
|
-
get createTestExecution(): (request: import("../types").CreateTestExecutionRequest) => Promise<
|
|
53
|
+
get createTestExecution(): (request: import("../types").CreateTestExecutionRequest) => Promise<void>;
|
|
54
54
|
get updateTestExecution(): (request: import("../types").UpdateTestExecutionRequest) => Promise<void>;
|
|
55
55
|
get listTestExecutionLinks(): (testExecutionIdOrKey: string | number) => Promise<import("../types").TestExecutionLinkList>;
|
|
56
56
|
get createTestExecutionIssueLink(): (request: import("../types").CreateTestExecutionIssueLinkRequest) => Promise<import("../types").CreatedResource>;
|
|
@@ -65,20 +65,20 @@ export declare class AllGroup {
|
|
|
65
65
|
get createTestPlanTestCycleLink(): (request: import("../types").CreateTestPlanTestCycleLinkRequest) => Promise<import("../types").CreatedResource>;
|
|
66
66
|
get listFolders(): (options: import("../types").ListFoldersOptions) => Promise<import("../types").FolderList>;
|
|
67
67
|
get getFolder(): (options: import("../types").GetFolderOptions) => Promise<import("../types").Folder>;
|
|
68
|
-
get createFolder(): (request: import("../types").CreateFolderRequest) => Promise<import("../types").
|
|
68
|
+
get createFolder(): (request: import("../types").CreateFolderRequest) => Promise<import("../types").CreatedResource>;
|
|
69
69
|
get listProjects(): (options?: import("../types").ListProjectsOptions) => Promise<import("../types").ProjectList>;
|
|
70
70
|
get getProject(): (options: import("../types").GetProjectOptions) => Promise<import("../types").Project>;
|
|
71
71
|
get listStatuses(): (options: import("../types").ListStatusesOptions) => Promise<import("../types").StatusList>;
|
|
72
72
|
get getStatus(): (options: import("../types").GetStatusOptions) => Promise<import("../types").Status>;
|
|
73
|
-
get createStatus(): (request: import("../types").CreateStatusRequest) => Promise<import("../types").
|
|
73
|
+
get createStatus(): (request: import("../types").CreateStatusRequest) => Promise<import("../types").CreatedResource>;
|
|
74
74
|
get updateStatus(): (request: import("../types").UpdateStatusRequest) => Promise<import("../types").Status>;
|
|
75
75
|
get listPriorities(): (options: import("../types").ListPrioritiesOptions) => Promise<import("../types").PriorityList>;
|
|
76
76
|
get getPriority(): (options: import("../types").GetPriorityOptions) => Promise<import("../types").Priority>;
|
|
77
|
-
get createPriority(): (request: import("../types").CreatePriorityRequest) => Promise<import("../types").
|
|
77
|
+
get createPriority(): (request: import("../types").CreatePriorityRequest) => Promise<import("../types").CreatedResource>;
|
|
78
78
|
get updatePriority(): (request: import("../types").UpdatePriorityRequest) => Promise<import("../types").Priority>;
|
|
79
79
|
get listEnvironments(): (options: import("../types").ListEnvironmentsOptions) => Promise<import("../types").EnvironmentList>;
|
|
80
80
|
get getEnvironment(): (options: import("../types").GetEnvironmentOptions) => Promise<import("../types").Environment>;
|
|
81
|
-
get createEnvironment(): (request: import("../types").CreateEnvironmentRequest) => Promise<import("../types").
|
|
81
|
+
get createEnvironment(): (request: import("../types").CreateEnvironmentRequest) => Promise<import("../types").CreatedResource>;
|
|
82
82
|
get updateEnvironment(): (request: import("../types").UpdateEnvironmentRequest) => Promise<import("../types").Environment>;
|
|
83
83
|
get deleteLink(): (options: import("../types").DeleteLinkOptions) => Promise<void>;
|
|
84
84
|
get getIssueLinkTestCases(): (options: import("../types").GetIssueLinkTestCasesOptions) => Promise<import("../types").TestCaseKeyAndVersionList>;
|
package/dist/groups/All.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"All.d.ts","sourceRoot":"","sources":["../../groups/All.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAcpD,qBAAa,QAAQ;IACpB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgB;IACzC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiB;IAC3C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAqB;IACnD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgB;IACzC,OAAO,CA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AI,gBAAgB,uGAEnB;IAED,IAAI,mBAAmB,8EAEtB;IAED,IAAI,mBAAmB,8EAEtB;IAED,IAAI,sBAAsB,iGAEzB;IAED,IAAI,4BAA4B,qHAE/B;IAED,IAAI,yBAAyB,6HAE5B;IAED,IAAI,yBAAyB,oFAE5B;IAED,IAAI,uBAAuB,qGAE1B;IAGD,IAAI,aAAa,oGAEhB;IAED,IAAI,WAAW,6FAEd;IAED,IAAI,cAAc,4GAEjB;IAED,IAAI,uBAAuB,gHAE1B;IAED,IAAI,qBAAqB,8GAExB;IAED,IAAI,2BAA2B,oHAE9B;IAGD,IAAI,WAAW,+FAEd;IAED,IAAI,SAAS,yFAEZ;IAED,IAAI,YAAY,qGAEf;IAGD,IAAI,YAAY,kGAEf;IAED,IAAI,UAAU,2FAEb;IAGD,IAAI,YAAY,gGAEf;IAED,IAAI,SAAS,yFAEZ;IAED,IAAI,YAAY,qGAEf;IAED,IAAI,YAAY,4FAEf;IAGD,IAAI,cAAc,oGAEjB;IAED,IAAI,WAAW,6FAEd;IAED,IAAI,cAAc,uGAEjB;IAED,IAAI,cAAc,gGAEjB;IAGD,IAAI,gBAAgB,yGAEnB;IAED,IAAI,cAAc,mGAEjB;IAED,IAAI,iBAAiB,0GAEpB;IAED,IAAI,iBAAiB,sGAEpB;IAGD,IAAI,UAAU,qEAEb;IAGD,IAAI,qBAAqB,wHAExB;IAED,IAAI,sBAAsB,+GAEzB;IAED,IAAI,qBAAqB,6GAExB;IAED,IAAI,sBAAsB,mHAEzB;IAGD,IAAI,sBAAsB,yHAEzB;IAED,IAAI,wBAAwB,2HAE3B;IAED,IAAI,qBAAqB,wHAExB;IAED,IAAI,oBAAoB,+EAEvB;CACD"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Environment API group
|
|
6
6
|
* Handles environment-related operations
|
|
7
7
|
*/
|
|
8
|
-
import type { Environment, EnvironmentList, ListEnvironmentsOptions, GetEnvironmentOptions, CreateEnvironmentRequest, UpdateEnvironmentRequest } from '../types';
|
|
8
|
+
import type { Environment, EnvironmentList, ListEnvironmentsOptions, GetEnvironmentOptions, CreateEnvironmentRequest, UpdateEnvironmentRequest, CreatedResource } from '../types';
|
|
9
9
|
import type { ZephyrApiConnection } from '../index';
|
|
10
10
|
export declare class EnvironmentGroup {
|
|
11
11
|
private api;
|
|
@@ -48,11 +48,11 @@ export declare class EnvironmentGroup {
|
|
|
48
48
|
* @param request.body.name - Environment name (required)
|
|
49
49
|
* @param request.body.description - Environment description (optional)
|
|
50
50
|
* @param request.body.index - Display order index (optional)
|
|
51
|
-
* @returns Created
|
|
51
|
+
* @returns Created resource with id and self URL
|
|
52
52
|
*
|
|
53
53
|
* @see {@link https://support.smartbear.com/zephyr-scale-cloud/api-docs/#tag/Environments/operation/createEnvironment Official API Documentation}
|
|
54
54
|
*/
|
|
55
|
-
createEnvironment(request: CreateEnvironmentRequest): Promise<
|
|
55
|
+
createEnvironment(request: CreateEnvironmentRequest): Promise<CreatedResource>;
|
|
56
56
|
/**
|
|
57
57
|
* Update an environment
|
|
58
58
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Environment.d.ts","sourceRoot":"","sources":["../../groups/Environment.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AAEH,OAAO,KAAK,EACX,WAAW,EACX,eAAe,EACf,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACxB,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,qBAAa,gBAAgB;IAChB,OAAO,CAAC,GAAG;gBAAH,GAAG,EAAE,mBAAmB;IAE5C;;;;;;;;;;;;OAYG;IACG,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,eAAe,CAAC;IAMlF;;;;;;;;;;OAUG;IACG,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,WAAW,CAAC;IAK1E;;;;;;;;;;;;;;;OAeG;IACG,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"Environment.d.ts","sourceRoot":"","sources":["../../groups/Environment.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AAEH,OAAO,KAAK,EACX,WAAW,EACX,eAAe,EACf,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACxB,eAAe,EACf,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,qBAAa,gBAAgB;IAChB,OAAO,CAAC,GAAG;gBAAH,GAAG,EAAE,mBAAmB;IAE5C;;;;;;;;;;;;OAYG;IACG,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,eAAe,CAAC;IAMlF;;;;;;;;;;OAUG;IACG,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,WAAW,CAAC;IAK1E;;;;;;;;;;;;;;;OAeG;IACG,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,eAAe,CAAC;IASpF;;;;;;;;;;;;;;;;;OAiBG;IACG,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,WAAW,CAAC;CAQhF"}
|
|
@@ -51,7 +51,7 @@ export class EnvironmentGroup {
|
|
|
51
51
|
* @param request.body.name - Environment name (required)
|
|
52
52
|
* @param request.body.description - Environment description (optional)
|
|
53
53
|
* @param request.body.index - Display order index (optional)
|
|
54
|
-
* @returns Created
|
|
54
|
+
* @returns Created resource with id and self URL
|
|
55
55
|
*
|
|
56
56
|
* @see {@link https://support.smartbear.com/zephyr-scale-cloud/api-docs/#tag/Environments/operation/createEnvironment Official API Documentation}
|
|
57
57
|
*/
|
package/dist/groups/Folder.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Folder API group
|
|
6
6
|
* Handles folder-related operations
|
|
7
7
|
*/
|
|
8
|
-
import type { Folder, FolderList, ListFoldersOptions, GetFolderOptions, CreateFolderRequest } from '../types';
|
|
8
|
+
import type { Folder, FolderList, ListFoldersOptions, GetFolderOptions, CreateFolderRequest, CreatedResource } from '../types';
|
|
9
9
|
import type { ZephyrApiConnection } from '../index';
|
|
10
10
|
export declare class FolderGroup {
|
|
11
11
|
private api;
|
|
@@ -49,10 +49,10 @@ export declare class FolderGroup {
|
|
|
49
49
|
* @param request.body.name - Folder name (required)
|
|
50
50
|
* @param request.body.folderType - Folder type: 'TEST_CASE', 'TEST_PLAN', or 'TEST_CYCLE' (required)
|
|
51
51
|
* @param request.body.parentId - Parent folder ID (optional, must be null for root folders)
|
|
52
|
-
* @returns Created
|
|
52
|
+
* @returns Created resource with id and self URL
|
|
53
53
|
*
|
|
54
54
|
* @see {@link https://support.smartbear.com/zephyr-scale-cloud/api-docs/#tag/Folders/operation/createFolder Official API Documentation}
|
|
55
55
|
*/
|
|
56
|
-
createFolder(request: CreateFolderRequest): Promise<
|
|
56
|
+
createFolder(request: CreateFolderRequest): Promise<CreatedResource>;
|
|
57
57
|
}
|
|
58
58
|
//# sourceMappingURL=Folder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Folder.d.ts","sourceRoot":"","sources":["../../groups/Folder.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"Folder.d.ts","sourceRoot":"","sources":["../../groups/Folder.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE/H,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,qBAAa,WAAW;IACX,OAAO,CAAC,GAAG;gBAAH,GAAG,EAAE,mBAAmB;IAE5C;;;;;;;;;;;;;OAaG;IACG,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,UAAU,CAAC;IAMnE;;;;;;;;;;OAUG;IACG,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC;IAK3D;;;;;;;;;;;;;;;OAeG;IACG,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,eAAe,CAAC;CAQ1E"}
|
package/dist/groups/Folder.js
CHANGED
|
@@ -52,7 +52,7 @@ export class FolderGroup {
|
|
|
52
52
|
* @param request.body.name - Folder name (required)
|
|
53
53
|
* @param request.body.folderType - Folder type: 'TEST_CASE', 'TEST_PLAN', or 'TEST_CYCLE' (required)
|
|
54
54
|
* @param request.body.parentId - Parent folder ID (optional, must be null for root folders)
|
|
55
|
-
* @returns Created
|
|
55
|
+
* @returns Created resource with id and self URL
|
|
56
56
|
*
|
|
57
57
|
* @see {@link https://support.smartbear.com/zephyr-scale-cloud/api-docs/#tag/Folders/operation/createFolder Official API Documentation}
|
|
58
58
|
*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Priority API group
|
|
6
6
|
* Handles priority-related operations
|
|
7
7
|
*/
|
|
8
|
-
import type { Priority, PriorityList, ListPrioritiesOptions, GetPriorityOptions, CreatePriorityRequest, UpdatePriorityRequest } from '../types';
|
|
8
|
+
import type { Priority, PriorityList, ListPrioritiesOptions, GetPriorityOptions, CreatePriorityRequest, UpdatePriorityRequest, CreatedResource } from '../types';
|
|
9
9
|
import type { ZephyrApiConnection } from '../index';
|
|
10
10
|
export declare class PriorityGroup {
|
|
11
11
|
private api;
|
|
@@ -50,11 +50,11 @@ export declare class PriorityGroup {
|
|
|
50
50
|
* @param request.body.default - Whether this is the default priority (required)
|
|
51
51
|
* @param request.body.description - Priority description (optional)
|
|
52
52
|
* @param request.body.color - Priority color (optional)
|
|
53
|
-
* @returns Created
|
|
53
|
+
* @returns Created resource with id and self URL
|
|
54
54
|
*
|
|
55
55
|
* @see {@link https://support.smartbear.com/zephyr-scale-cloud/api-docs/#tag/Priorities/operation/createPriority Official API Documentation}
|
|
56
56
|
*/
|
|
57
|
-
createPriority(request: CreatePriorityRequest): Promise<
|
|
57
|
+
createPriority(request: CreatePriorityRequest): Promise<CreatedResource>;
|
|
58
58
|
/**
|
|
59
59
|
* Update a priority
|
|
60
60
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Priority.d.ts","sourceRoot":"","sources":["../../groups/Priority.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AAEH,OAAO,KAAK,EACX,QAAQ,EACR,YAAY,EACZ,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,qBAAa,aAAa;IACb,OAAO,CAAC,GAAG;gBAAH,GAAG,EAAE,mBAAmB;IAE5C;;;;;;;;;;;;OAYG;IACG,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,YAAY,CAAC;IAM3E;;;;;;;;;;OAUG;IACG,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAKjE;;;;;;;;;;;;;;;;;OAiBG;IACG,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"Priority.d.ts","sourceRoot":"","sources":["../../groups/Priority.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AAEH,OAAO,KAAK,EACX,QAAQ,EACR,YAAY,EACZ,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EACf,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,qBAAa,aAAa;IACb,OAAO,CAAC,GAAG;gBAAH,GAAG,EAAE,mBAAmB;IAE5C;;;;;;;;;;;;OAYG;IACG,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,YAAY,CAAC;IAM3E;;;;;;;;;;OAUG;IACG,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAKjE;;;;;;;;;;;;;;;;;OAiBG;IACG,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,eAAe,CAAC;IAS9E;;;;;;;;;;;;;;;;;;;OAmBG;IACG,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC;CAQvE"}
|
package/dist/groups/Priority.js
CHANGED
|
@@ -53,7 +53,7 @@ export class PriorityGroup {
|
|
|
53
53
|
* @param request.body.default - Whether this is the default priority (required)
|
|
54
54
|
* @param request.body.description - Priority description (optional)
|
|
55
55
|
* @param request.body.color - Priority color (optional)
|
|
56
|
-
* @returns Created
|
|
56
|
+
* @returns Created resource with id and self URL
|
|
57
57
|
*
|
|
58
58
|
* @see {@link https://support.smartbear.com/zephyr-scale-cloud/api-docs/#tag/Priorities/operation/createPriority Official API Documentation}
|
|
59
59
|
*/
|
|
@@ -33,44 +33,60 @@ export declare class PrivateConfig extends PrivateBase {
|
|
|
33
33
|
readonly DataSets: PrivateDataSets;
|
|
34
34
|
constructor(apiConnection?: ZephyrApiConnection);
|
|
35
35
|
/**
|
|
36
|
-
* Archive a config item
|
|
36
|
+
* Archive a config item using private API
|
|
37
37
|
*
|
|
38
|
-
* Archives
|
|
38
|
+
* Archives a config item (Environment, Iteration, or Status) by setting its `isArchived` flag to `true`.
|
|
39
|
+
*
|
|
40
|
+
* Supported config types:
|
|
41
|
+
* - 'Environment' - Archive an environment
|
|
42
|
+
* - 'Iteration' - Archive an iteration
|
|
43
|
+
* - 'TestCaseStatus' - Archive a test case status
|
|
44
|
+
* - 'TestPlanStatus' - Archive a test plan status
|
|
45
|
+
* - 'TestCycleStatus' - Archive a test cycle status
|
|
46
|
+
* - 'TestExecutionStatus' - Archive a test execution status
|
|
39
47
|
*
|
|
40
48
|
* ⚠️ WARNING: This uses a private Zephyr API endpoint that is not officially supported.
|
|
41
49
|
* The endpoint may change or be removed at any time without notice.
|
|
42
50
|
*
|
|
43
51
|
* @param credentials - Private API credentials
|
|
44
52
|
* @param request - Archive config request
|
|
45
|
-
* @param request.type - Type of config item: 'Environment' or '
|
|
46
|
-
* @param request.id - Numeric ID of the
|
|
53
|
+
* @param request.type - Type of config item: 'Environment', 'Iteration', 'TestCaseStatus', 'TestPlanStatus', 'TestCycleStatus', or 'TestExecutionStatus'
|
|
54
|
+
* @param request.id - Numeric ID of the config item to archive
|
|
47
55
|
* @param request.projectId - Jira project ID (numeric, not the project key)
|
|
48
56
|
* @returns Archive response with the ID of the archived item
|
|
49
57
|
* @throws {BadRequestError} If the request is invalid
|
|
50
58
|
* @throws {UnauthorizedError} If authentication fails
|
|
51
59
|
* @throws {ForbiddenError} If the user doesn't have permission
|
|
52
|
-
* @throws {NotFoundError} If the
|
|
60
|
+
* @throws {NotFoundError} If the config item is not found
|
|
53
61
|
* @throws {ServerError} If the server returns an error
|
|
54
62
|
*/
|
|
55
63
|
archiveConfig(credentials: PrivateApiCredentials, request: ArchiveConfigRequest): Promise<ArchiveConfigResponse>;
|
|
56
64
|
/**
|
|
57
|
-
* Unarchive a config item
|
|
65
|
+
* Unarchive a config item using private API
|
|
66
|
+
*
|
|
67
|
+
* Unarchives a config item (Environment, Iteration, or Status) by setting its `isArchived` flag to `false`.
|
|
58
68
|
*
|
|
59
|
-
*
|
|
69
|
+
* Supported config types:
|
|
70
|
+
* - 'Environment' - Unarchive an environment
|
|
71
|
+
* - 'Iteration' - Unarchive an iteration
|
|
72
|
+
* - 'TestCaseStatus' - Unarchive a test case status
|
|
73
|
+
* - 'TestPlanStatus' - Unarchive a test plan status
|
|
74
|
+
* - 'TestCycleStatus' - Unarchive a test cycle status
|
|
75
|
+
* - 'TestExecutionStatus' - Unarchive a test execution status
|
|
60
76
|
*
|
|
61
77
|
* ⚠️ WARNING: This uses a private Zephyr API endpoint that is not officially supported.
|
|
62
78
|
* The endpoint may change or be removed at any time without notice.
|
|
63
79
|
*
|
|
64
80
|
* @param credentials - Private API credentials
|
|
65
81
|
* @param request - Archive config request (same interface as archive, but sets isArchived to false)
|
|
66
|
-
* @param request.type - Type of config item: 'Environment' or '
|
|
67
|
-
* @param request.id - Numeric ID of the
|
|
82
|
+
* @param request.type - Type of config item: 'Environment', 'Iteration', 'TestCaseStatus', 'TestPlanStatus', 'TestCycleStatus', or 'TestExecutionStatus'
|
|
83
|
+
* @param request.id - Numeric ID of the config item to unarchive
|
|
68
84
|
* @param request.projectId - Jira project ID (numeric, not the project key)
|
|
69
85
|
* @returns Archive response with the ID of the unarchived item
|
|
70
86
|
* @throws {BadRequestError} If the request is invalid
|
|
71
87
|
* @throws {UnauthorizedError} If authentication fails
|
|
72
88
|
* @throws {ForbiddenError} If the user doesn't have permission
|
|
73
|
-
* @throws {NotFoundError} If the
|
|
89
|
+
* @throws {NotFoundError} If the config item is not found
|
|
74
90
|
* @throws {ServerError} If the server returns an error
|
|
75
91
|
*/
|
|
76
92
|
unarchiveConfig(credentials: PrivateApiCredentials, request: ArchiveConfigRequest): Promise<ArchiveConfigResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrivateConfig.d.ts","sourceRoot":"","sources":["../../../groups/Private/PrivateConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;GAKG;AAEH,OAAO,KAAK,EACX,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EAErB,MAAM,aAAa,CAAC;AACrB,OAAO,KAA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