@forge/cli-shared 3.14.1-next.0 → 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,5 +1,20 @@
1
1
  # @forge/cli-shared
2
2
 
3
+ ## 3.14.1-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 4205b0d9: Replace unzipper with adm-zip
8
+ - Updated dependencies [7ce9fef2]
9
+ - @forge/manifest@4.15.1-next.2
10
+
11
+ ## 3.14.1-next.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [0d528ddd]
16
+ - @forge/manifest@4.15.1-next.1
17
+
3
18
  ## 3.14.1-next.0
4
19
 
5
20
  ### Patch Changes
@@ -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 UnzipperZipAccessor implements ZipAccessor {
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":"AAGA,MAAM,WAAW,WAAW;IAC1B,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3F,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzE;AAED,qBAAa,mBAAoB,YAAW,WAAW;IACxC,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAQhG,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAYzE"}
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.UnzipperZipAccessor = void 0;
3
+ exports.AdmZipAccessor = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const fs_1 = tslib_1.__importDefault(require("fs"));
6
- const unzipper_1 = require("unzipper");
7
- class UnzipperZipAccessor {
8
- async extractStringFile(zipFilePath, fileToExtract) {
9
- const archiveListing = await unzipper_1.Open.file(zipFilePath);
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.UnzipperZipAccessor = UnzipperZipAccessor;
12
+ exports.AdmZipAccessor = AdmZipAccessor;
@@ -8506,6 +8506,11 @@ export declare type ForgeMetricsLabelGroup = {
8506
8506
  key: Scalars['String'];
8507
8507
  value: Scalars['String'];
8508
8508
  };
8509
+ export declare enum ForgeMetricsLabels {
8510
+ ForgeBackendInvocationCount = "FORGE_BACKEND_INVOCATION_COUNT",
8511
+ ForgeBackendInvocationErrors = "FORGE_BACKEND_INVOCATION_ERRORS",
8512
+ ForgeBackendInvocationLatency = "FORGE_BACKEND_INVOCATION_LATENCY"
8513
+ }
8509
8514
  export declare type ForgeMetricsLatenciesData = ForgeMetricsData & {
8510
8515
  __typename?: 'ForgeMetricsLatenciesData';
8511
8516
  name: Scalars['String'];
@@ -8540,6 +8545,19 @@ export declare type ForgeMetricsLatencyBucketsQueryInput = {
8540
8545
  filters: ForgeMetricsLatencyBucketsQueryFilters;
8541
8546
  groupBy?: Maybe<Array<ForgeMetricsGroupByDimensions>>;
8542
8547
  };
8548
+ export declare type ForgeMetricsOtlpData = {
8549
+ __typename?: 'ForgeMetricsOtlpData';
8550
+ resourceMetrics: Scalars['JSON'];
8551
+ };
8552
+ export declare type ForgeMetricsOtlpQueryFilters = {
8553
+ environments: Array<Scalars['ID']>;
8554
+ interval: ForgeMetricsIntervalInput;
8555
+ metrics: Array<ForgeMetricsLabels>;
8556
+ };
8557
+ export declare type ForgeMetricsOtlpQueryInput = {
8558
+ filters: ForgeMetricsOtlpQueryFilters;
8559
+ };
8560
+ export declare type ForgeMetricsOtlpResult = ForgeMetricsOtlpData | QueryError;
8543
8561
  export declare type ForgeMetricsQuery = {
8544
8562
  __typename?: 'ForgeMetricsQuery';
8545
8563
  appId: Scalars['ID'];
@@ -8552,6 +8570,7 @@ export declare type ForgeMetricsQuery = {
8552
8570
  sites: ForgeMetricsSitesResult;
8553
8571
  latencies: ForgeMetricsLatenciesResult;
8554
8572
  latencyBuckets: ForgeMetricsLatenciesResult;
8573
+ exportMetrics: ForgeMetricsOtlpResult;
8555
8574
  };
8556
8575
  export declare type ForgeMetricsQuerySuccessRateArgs = {
8557
8576
  query: ForgeMetricsQueryInput;
@@ -8582,6 +8601,9 @@ export declare type ForgeMetricsQueryLatencyBucketsArgs = {
8582
8601
  query: ForgeMetricsLatencyBucketsQueryInput;
8583
8602
  percentiles?: Maybe<Array<Scalars['Float']>>;
8584
8603
  };
8604
+ export declare type ForgeMetricsQueryExportMetricsArgs = {
8605
+ query: ForgeMetricsOtlpQueryInput;
8606
+ };
8585
8607
  export declare type ForgeMetricsQueryFilters = {
8586
8608
  environment?: Maybe<Scalars['ID']>;
8587
8609
  contextAris?: Maybe<Array<Scalars['ID']>>;
@@ -9253,6 +9275,7 @@ export declare type HelpLayoutAtomicElementType = {
9253
9275
  key?: Maybe<HelpLayoutAtomicElementKey>;
9254
9276
  displayName?: Maybe<Scalars['String']>;
9255
9277
  iconUrl?: Maybe<Scalars['String']>;
9278
+ category?: Maybe<HelpLayoutElementCategory>;
9256
9279
  mediaConfig?: Maybe<HelpLayoutMediaConfig>;
9257
9280
  };
9258
9281
  export declare type HelpLayoutCompositeElement = {
@@ -9269,6 +9292,7 @@ export declare type HelpLayoutCompositeElementType = {
9269
9292
  key?: Maybe<HelpLayoutCompositeElementKey>;
9270
9293
  displayName?: Maybe<Scalars['String']>;
9271
9294
  iconUrl?: Maybe<Scalars['String']>;
9295
+ category?: Maybe<HelpLayoutElementCategory>;
9272
9296
  allowedElements?: Maybe<Array<Maybe<HelpLayoutAtomicElementKey>>>;
9273
9297
  };
9274
9298
  export declare type HelpLayoutCreatePayload = Payload & {
@@ -9282,6 +9306,10 @@ export declare type HelpLayoutCreationInput = {
9282
9306
  sections: Array<HelpLayoutSectionInput>;
9283
9307
  };
9284
9308
  export declare type HelpLayoutElement = HelpLayoutImageAtomicElement | HelpLayoutHeadingAtomicElement | HelpLayoutParagraphAtomicElement | HelpLayoutSearchAtomicElement | HelpLayoutLinkCardCompositeElement;
9309
+ export declare enum HelpLayoutElementCategory {
9310
+ Basic = "BASIC",
9311
+ Navigation = "NAVIGATION"
9312
+ }
9285
9313
  export declare type HelpLayoutElementInput = {
9286
9314
  elementTypeKey: HelpLayoutElementKey;
9287
9315
  imageConfigInput?: Maybe<HelpLayoutImageConfigInput>;
@@ -9396,7 +9424,7 @@ export declare type HelpLayoutParagraphConfigInput = {
9396
9424
  export declare type HelpLayoutQueryApi = {
9397
9425
  __typename?: 'HelpLayoutQueryApi';
9398
9426
  layout?: Maybe<HelpLayoutResult>;
9399
- elementTypes?: Maybe<Array<Maybe<HelpLayoutElementTypes>>>;
9427
+ elementTypes?: Maybe<Array<HelpLayoutElementTypes>>;
9400
9428
  };
9401
9429
  export declare type HelpLayoutQueryApiLayoutArgs = {
9402
9430
  id: Scalars['ID'];
@@ -10997,6 +11025,16 @@ export declare type JiraConnectTextField = Node & JiraIssueField & JiraIssueFiel
10997
11025
  fieldConfig?: Maybe<JiraFieldConfig>;
10998
11026
  userFieldConfig?: Maybe<JiraUserFieldConfig>;
10999
11027
  };
11028
+ export declare type JiraCreateApproverListFieldInput = {
11029
+ fieldName: Scalars['String'];
11030
+ projectId: Scalars['Int'];
11031
+ };
11032
+ export declare type JiraCreateApproverListFieldPayload = Payload & {
11033
+ __typename?: 'JiraCreateApproverListFieldPayload';
11034
+ success: Scalars['Boolean'];
11035
+ errors?: Maybe<Array<MutationError>>;
11036
+ fieldId?: Maybe<Scalars['String']>;
11037
+ };
11000
11038
  export declare type JiraCreateCustomFilterInput = {
11001
11039
  jql: Scalars['String'];
11002
11040
  name: Scalars['String'];
@@ -11866,6 +11904,49 @@ export declare type JiraIssueBuildDevSummaryContainer = {
11866
11904
  overall?: Maybe<JiraIssueBuildDevSummary>;
11867
11905
  summaryByProvider?: Maybe<Array<JiraIssueDevSummaryByProvider>>;
11868
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
+ };
11869
11950
  export declare type JiraIssueCommitDevSummary = {
11870
11951
  __typename?: 'JiraIssueCommitDevSummary';
11871
11952
  count?: Maybe<Scalars['Int']>;
@@ -13258,6 +13339,7 @@ export declare type JiraMultipleVersionPickerFieldVersionsArgs = {
13258
13339
  };
13259
13340
  export declare type JiraMutation = {
13260
13341
  __typename?: 'JiraMutation';
13342
+ createApproverListField?: Maybe<JiraCreateApproverListFieldPayload>;
13261
13343
  setApplicationProperties?: Maybe<JiraSetApplicationPropertiesPayload>;
13262
13344
  createAndAssociateWorkflowFromJsmTemplate?: Maybe<JiraServiceManagementCreateAndAssociateWorkflowFromTemplatePayload>;
13263
13345
  addIssuesToFixVersion?: Maybe<JiraAddIssuesToFixVersionPayload>;
@@ -13319,6 +13401,10 @@ export declare type JiraMutation = {
13319
13401
  updateProjectShortcut?: Maybe<JiraProjectShortcutPayload>;
13320
13402
  deleteProjectShortcut?: Maybe<JiraProjectShortcutPayload>;
13321
13403
  };
13404
+ export declare type JiraMutationCreateApproverListFieldArgs = {
13405
+ cloudId: Scalars['ID'];
13406
+ input: JiraCreateApproverListFieldInput;
13407
+ };
13322
13408
  export declare type JiraMutationSetApplicationPropertiesArgs = {
13323
13409
  cloudId: Scalars['ID'];
13324
13410
  input: Array<JiraSetApplicationPropertyInput>;
@@ -14554,6 +14640,7 @@ export declare type JiraQuery = {
14554
14640
  applicationPropertiesByKey?: Maybe<Array<JiraApplicationProperty>>;
14555
14641
  userSegmentation?: Maybe<JiraUserSegmentation>;
14556
14642
  first100JsmWorkflowTemplates?: Maybe<Array<JiraServiceManagementWorkflowTemplateMetadata>>;
14643
+ bulkOperationsMetadata?: Maybe<JiraIssueBulkOperationsMetadata>;
14557
14644
  jiraBulkEditFields?: Maybe<JiraBulkEditResponse>;
14558
14645
  allJiraProjectTypes?: Maybe<JiraProjectTypeDetailsConnection>;
14559
14646
  jiraProject?: Maybe<JiraProject>;
@@ -14622,7 +14709,9 @@ export declare type JiraQuery = {
14622
14709
  canPerform?: Maybe<Scalars['Boolean']>;
14623
14710
  labelsFieldOptions?: Maybe<JiraLabelConnection>;
14624
14711
  jqlBuilder?: Maybe<JiraJqlBuilder>;
14712
+ fields?: Maybe<JiraJqlFieldConnectionResult>;
14625
14713
  devOps?: Maybe<JiraDevOpsQuery>;
14714
+ bulkOperationProgress?: Maybe<JiraIssueBulkOperationProgress>;
14626
14715
  deploymentsFeaturePrecondition?: Maybe<JiraDeploymentsFeaturePrecondition>;
14627
14716
  deploymentsFeaturePreconditionByProjectKey?: Maybe<JiraDeploymentsFeaturePrecondition>;
14628
14717
  installDeploymentsBannerPrecondition?: Maybe<JiraInstallDeploymentsBannerPrecondition>;
@@ -14650,6 +14739,9 @@ export declare type JiraQueryFirst100JsmWorkflowTemplatesArgs = {
14650
14739
  keywords?: Maybe<Array<Maybe<Scalars['String']>>>;
14651
14740
  tags?: Maybe<Array<Maybe<Scalars['String']>>>;
14652
14741
  };
14742
+ export declare type JiraQueryBulkOperationsMetadataArgs = {
14743
+ cloudId: Scalars['ID'];
14744
+ };
14653
14745
  export declare type JiraQueryJiraBulkEditFieldsArgs = {
14654
14746
  issueIds: Array<Scalars['ID']>;
14655
14747
  };
@@ -14964,6 +15056,20 @@ export declare type JiraQueryLabelsFieldOptionsArgs = {
14964
15056
  export declare type JiraQueryJqlBuilderArgs = {
14965
15057
  cloudId: Scalars['ID'];
14966
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
+ };
14967
15073
  export declare type JiraQueryDeploymentsFeaturePreconditionArgs = {
14968
15074
  projectId: Scalars['ID'];
14969
15075
  };
@@ -15888,6 +15994,7 @@ export declare type JiraServiceManagementRequestTypeTemplate = {
15888
15994
  description?: Maybe<Scalars['String']>;
15889
15995
  groups?: Maybe<Array<JiraServiceManagementRequestTypeTemplateGroup>>;
15890
15996
  requestTypeIcon?: Maybe<JiraServiceManagementRequestTypeTemplateRequestTypeIcon>;
15997
+ requestTypePortalDescription?: Maybe<Scalars['String']>;
15891
15998
  previewImageUrl?: Maybe<Scalars['URL']>;
15892
15999
  };
15893
16000
  export declare type JiraServiceManagementRequestTypeTemplateDefaultConfigurationDependencies = {
@@ -17421,6 +17528,7 @@ export declare type JiraWorkManagementOverview = Node & {
17421
17528
  author?: Maybe<User>;
17422
17529
  theme?: Maybe<Scalars['String']>;
17423
17530
  projects?: Maybe<JiraWorkManagementProjectConnection>;
17531
+ fields?: Maybe<JiraJqlFieldConnectionResult>;
17424
17532
  };
17425
17533
  export declare type JiraWorkManagementOverviewProjectsArgs = {
17426
17534
  first?: Maybe<Scalars['Int']>;
@@ -17428,6 +17536,15 @@ export declare type JiraWorkManagementOverviewProjectsArgs = {
17428
17536
  last?: Maybe<Scalars['Int']>;
17429
17537
  before?: Maybe<Scalars['String']>;
17430
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
+ };
17431
17548
  export declare type JiraWorkManagementOverviewConnection = {
17432
17549
  __typename?: 'JiraWorkManagementOverviewConnection';
17433
17550
  totalCount?: Maybe<Scalars['Int']>;