@forge/cli-shared 3.14.1-next.1 → 3.14.1-next.2
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/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export interface ZipAccessor {
|
|
2
|
-
extractStringFile(zipFilePath: string, fileToExtract: string): Promise<string | undefined>;
|
|
3
2
|
extract(zipFilePath: string, extractedDirectory: string): Promise<void>;
|
|
4
3
|
}
|
|
5
|
-
export declare class
|
|
6
|
-
extractStringFile(zipFilePath: string, fileToExtract: string): Promise<string | undefined>;
|
|
4
|
+
export declare class AdmZipAccessor implements ZipAccessor {
|
|
7
5
|
extract(zipFile: string, extractDirectory: string): Promise<void>;
|
|
8
6
|
}
|
|
9
7
|
//# sourceMappingURL=zip-accessor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zip-accessor.d.ts","sourceRoot":"","sources":["../../src/file-system/zip-accessor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zip-accessor.d.ts","sourceRoot":"","sources":["../../src/file-system/zip-accessor.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzE;AAED,qBAAa,cAAe,YAAW,WAAW;IACnC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAM/E"}
|
|
@@ -1,26 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AdmZipAccessor = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const targetFile = archiveListing.files.find(({ path }) => path === fileToExtract);
|
|
11
|
-
if (targetFile) {
|
|
12
|
-
return (await targetFile.buffer()).toString();
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
extract(zipFile, extractDirectory) {
|
|
16
|
-
const zipStream = fs_1.default.createReadStream(zipFile);
|
|
17
|
-
const extractStream = (0, unzipper_1.Extract)({ path: extractDirectory });
|
|
18
|
-
return new Promise((resolve, reject) => {
|
|
19
|
-
zipStream.pipe(extractStream);
|
|
20
|
-
zipStream.on('error', reject);
|
|
21
|
-
extractStream.on('error', reject);
|
|
22
|
-
extractStream.on('close', resolve);
|
|
23
|
-
});
|
|
5
|
+
const adm_zip_1 = tslib_1.__importDefault(require("adm-zip"));
|
|
6
|
+
class AdmZipAccessor {
|
|
7
|
+
async extract(zipFile, extractDirectory) {
|
|
8
|
+
const zip = new adm_zip_1.default(zipFile);
|
|
9
|
+
await new Promise((resolve, reject) => zip.extractAllToAsync(extractDirectory, true, false, (err) => (err ? reject(err) : resolve())));
|
|
24
10
|
}
|
|
25
11
|
}
|
|
26
|
-
exports.
|
|
12
|
+
exports.AdmZipAccessor = AdmZipAccessor;
|
|
@@ -11904,6 +11904,49 @@ export declare type JiraIssueBuildDevSummaryContainer = {
|
|
|
11904
11904
|
overall?: Maybe<JiraIssueBuildDevSummary>;
|
|
11905
11905
|
summaryByProvider?: Maybe<Array<JiraIssueDevSummaryByProvider>>;
|
|
11906
11906
|
};
|
|
11907
|
+
export declare type JiraIssueBulkOperationFailure = {
|
|
11908
|
+
__typename?: 'JiraIssueBulkOperationFailure';
|
|
11909
|
+
issue?: Maybe<JiraIssue>;
|
|
11910
|
+
failureReasons?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
11911
|
+
};
|
|
11912
|
+
export declare type JiraIssueBulkOperationFailureConnection = {
|
|
11913
|
+
__typename?: 'JiraIssueBulkOperationFailureConnection';
|
|
11914
|
+
edges?: Maybe<Array<Maybe<JiraIssueBulkOperationFailureEdge>>>;
|
|
11915
|
+
pageInfo: PageInfo;
|
|
11916
|
+
totalCount?: Maybe<Scalars['Int']>;
|
|
11917
|
+
};
|
|
11918
|
+
export declare type JiraIssueBulkOperationFailureEdge = {
|
|
11919
|
+
__typename?: 'JiraIssueBulkOperationFailureEdge';
|
|
11920
|
+
node?: Maybe<JiraIssueBulkOperationFailure>;
|
|
11921
|
+
cursor: Scalars['String'];
|
|
11922
|
+
};
|
|
11923
|
+
export declare type JiraIssueBulkOperationProgress = {
|
|
11924
|
+
__typename?: 'JiraIssueBulkOperationProgress';
|
|
11925
|
+
taskId?: Maybe<Scalars['ID']>;
|
|
11926
|
+
status?: Maybe<JiraLongRunningTaskStatus>;
|
|
11927
|
+
progress?: Maybe<Scalars['Long']>;
|
|
11928
|
+
totalIssueCount?: Maybe<Scalars['Int']>;
|
|
11929
|
+
unauthorisedSuccessfulIssueCount?: Maybe<Scalars['Int']>;
|
|
11930
|
+
successfulIssues?: Maybe<JiraIssueConnection>;
|
|
11931
|
+
bulkOperationFailures?: Maybe<JiraIssueBulkOperationFailureConnection>;
|
|
11932
|
+
startTime?: Maybe<Scalars['DateTime']>;
|
|
11933
|
+
};
|
|
11934
|
+
export declare type JiraIssueBulkOperationProgressSuccessfulIssuesArgs = {
|
|
11935
|
+
first?: Maybe<Scalars['Int']>;
|
|
11936
|
+
last?: Maybe<Scalars['Int']>;
|
|
11937
|
+
before?: Maybe<Scalars['String']>;
|
|
11938
|
+
after?: Maybe<Scalars['String']>;
|
|
11939
|
+
};
|
|
11940
|
+
export declare type JiraIssueBulkOperationProgressBulkOperationFailuresArgs = {
|
|
11941
|
+
first?: Maybe<Scalars['Int']>;
|
|
11942
|
+
last?: Maybe<Scalars['Int']>;
|
|
11943
|
+
before?: Maybe<Scalars['String']>;
|
|
11944
|
+
after?: Maybe<Scalars['String']>;
|
|
11945
|
+
};
|
|
11946
|
+
export declare type JiraIssueBulkOperationsMetadata = {
|
|
11947
|
+
__typename?: 'JiraIssueBulkOperationsMetadata';
|
|
11948
|
+
maxNumberOfIssues?: Maybe<Scalars['Long']>;
|
|
11949
|
+
};
|
|
11907
11950
|
export declare type JiraIssueCommitDevSummary = {
|
|
11908
11951
|
__typename?: 'JiraIssueCommitDevSummary';
|
|
11909
11952
|
count?: Maybe<Scalars['Int']>;
|
|
@@ -14597,6 +14640,7 @@ export declare type JiraQuery = {
|
|
|
14597
14640
|
applicationPropertiesByKey?: Maybe<Array<JiraApplicationProperty>>;
|
|
14598
14641
|
userSegmentation?: Maybe<JiraUserSegmentation>;
|
|
14599
14642
|
first100JsmWorkflowTemplates?: Maybe<Array<JiraServiceManagementWorkflowTemplateMetadata>>;
|
|
14643
|
+
bulkOperationsMetadata?: Maybe<JiraIssueBulkOperationsMetadata>;
|
|
14600
14644
|
jiraBulkEditFields?: Maybe<JiraBulkEditResponse>;
|
|
14601
14645
|
allJiraProjectTypes?: Maybe<JiraProjectTypeDetailsConnection>;
|
|
14602
14646
|
jiraProject?: Maybe<JiraProject>;
|
|
@@ -14665,7 +14709,9 @@ export declare type JiraQuery = {
|
|
|
14665
14709
|
canPerform?: Maybe<Scalars['Boolean']>;
|
|
14666
14710
|
labelsFieldOptions?: Maybe<JiraLabelConnection>;
|
|
14667
14711
|
jqlBuilder?: Maybe<JiraJqlBuilder>;
|
|
14712
|
+
fields?: Maybe<JiraJqlFieldConnectionResult>;
|
|
14668
14713
|
devOps?: Maybe<JiraDevOpsQuery>;
|
|
14714
|
+
bulkOperationProgress?: Maybe<JiraIssueBulkOperationProgress>;
|
|
14669
14715
|
deploymentsFeaturePrecondition?: Maybe<JiraDeploymentsFeaturePrecondition>;
|
|
14670
14716
|
deploymentsFeaturePreconditionByProjectKey?: Maybe<JiraDeploymentsFeaturePrecondition>;
|
|
14671
14717
|
installDeploymentsBannerPrecondition?: Maybe<JiraInstallDeploymentsBannerPrecondition>;
|
|
@@ -14693,6 +14739,9 @@ export declare type JiraQueryFirst100JsmWorkflowTemplatesArgs = {
|
|
|
14693
14739
|
keywords?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
14694
14740
|
tags?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
14695
14741
|
};
|
|
14742
|
+
export declare type JiraQueryBulkOperationsMetadataArgs = {
|
|
14743
|
+
cloudId: Scalars['ID'];
|
|
14744
|
+
};
|
|
14696
14745
|
export declare type JiraQueryJiraBulkEditFieldsArgs = {
|
|
14697
14746
|
issueIds: Array<Scalars['ID']>;
|
|
14698
14747
|
};
|
|
@@ -15007,6 +15056,20 @@ export declare type JiraQueryLabelsFieldOptionsArgs = {
|
|
|
15007
15056
|
export declare type JiraQueryJqlBuilderArgs = {
|
|
15008
15057
|
cloudId: Scalars['ID'];
|
|
15009
15058
|
};
|
|
15059
|
+
export declare type JiraQueryFieldsArgs = {
|
|
15060
|
+
cloudId: Scalars['ID'];
|
|
15061
|
+
jqlContext?: Maybe<Scalars['String']>;
|
|
15062
|
+
searchString?: Maybe<Scalars['String']>;
|
|
15063
|
+
excludeFields?: Maybe<Array<Scalars['String']>>;
|
|
15064
|
+
forClause?: Maybe<JiraJqlClauseType>;
|
|
15065
|
+
first?: Maybe<Scalars['Int']>;
|
|
15066
|
+
after?: Maybe<Scalars['String']>;
|
|
15067
|
+
viewContext?: Maybe<JiraJqlViewContext>;
|
|
15068
|
+
};
|
|
15069
|
+
export declare type JiraQueryBulkOperationProgressArgs = {
|
|
15070
|
+
cloudId: Scalars['ID'];
|
|
15071
|
+
taskId: Scalars['ID'];
|
|
15072
|
+
};
|
|
15010
15073
|
export declare type JiraQueryDeploymentsFeaturePreconditionArgs = {
|
|
15011
15074
|
projectId: Scalars['ID'];
|
|
15012
15075
|
};
|
|
@@ -17465,6 +17528,7 @@ export declare type JiraWorkManagementOverview = Node & {
|
|
|
17465
17528
|
author?: Maybe<User>;
|
|
17466
17529
|
theme?: Maybe<Scalars['String']>;
|
|
17467
17530
|
projects?: Maybe<JiraWorkManagementProjectConnection>;
|
|
17531
|
+
fields?: Maybe<JiraJqlFieldConnectionResult>;
|
|
17468
17532
|
};
|
|
17469
17533
|
export declare type JiraWorkManagementOverviewProjectsArgs = {
|
|
17470
17534
|
first?: Maybe<Scalars['Int']>;
|
|
@@ -17472,6 +17536,15 @@ export declare type JiraWorkManagementOverviewProjectsArgs = {
|
|
|
17472
17536
|
last?: Maybe<Scalars['Int']>;
|
|
17473
17537
|
before?: Maybe<Scalars['String']>;
|
|
17474
17538
|
};
|
|
17539
|
+
export declare type JiraWorkManagementOverviewFieldsArgs = {
|
|
17540
|
+
cloudId: Scalars['ID'];
|
|
17541
|
+
searchString?: Maybe<Scalars['String']>;
|
|
17542
|
+
excludeFields?: Maybe<Array<Scalars['String']>>;
|
|
17543
|
+
forClause?: Maybe<JiraJqlClauseType>;
|
|
17544
|
+
first?: Maybe<Scalars['Int']>;
|
|
17545
|
+
after?: Maybe<Scalars['String']>;
|
|
17546
|
+
viewContext?: Maybe<JiraJqlViewContext>;
|
|
17547
|
+
};
|
|
17475
17548
|
export declare type JiraWorkManagementOverviewConnection = {
|
|
17476
17549
|
__typename?: 'JiraWorkManagementOverviewConnection';
|
|
17477
17550
|
totalCount?: Maybe<Scalars['Int']>;
|