@forge/cli-shared 6.6.2-next.8-experimental-d22b31e → 6.7.0-next.11
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 +16 -13
- package/out/apps/app-config.d.ts +1 -1
- package/out/apps/app-config.d.ts.map +1 -1
- package/out/apps/app-config.js +6 -3
- package/out/config/config-file-section-reader.d.ts +0 -2
- package/out/config/config-file-section-reader.d.ts.map +1 -1
- package/out/config/config-file-section-reader.js +0 -6
- package/out/config/config-file.d.ts +0 -10
- package/out/config/config-file.d.ts.map +1 -1
- package/out/config/config-file.js +1 -29
- package/out/config/config-section.d.ts +0 -4
- package/out/config/config-section.d.ts.map +1 -1
- package/out/config/config-section.js +0 -6
- package/out/config/config.d.ts +1 -5
- package/out/config/config.d.ts.map +1 -1
- package/out/graphql/graphql-types.d.ts +92 -0
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/service/statsig-service.d.ts +6 -3
- package/out/service/statsig-service.d.ts.map +1 -1
- package/out/service/statsig-service.js +8 -3
- package/out/service/supported-products-service.js +1 -1
- package/out/ui/text.d.ts +5 -5
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +8 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
-
## 6.
|
|
3
|
+
## 6.7.0-next.11
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
- Updated dependencies [
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
-
|
|
18
|
-
|
|
7
|
+
- 4879128: Revert Changes: Added config file utility method to only read appId and refactored commands to perform validation after command configuration
|
|
8
|
+
|
|
9
|
+
## 6.7.0-next.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- cf5bc5c: Improve XPA error messages
|
|
14
|
+
- Updated dependencies [4c15b3a]
|
|
15
|
+
- @forge/manifest@8.8.0-next.5
|
|
16
|
+
|
|
17
|
+
## 6.7.0-next.9
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- 9471e5d: Package Node runtime in a central location and remove 'bundled'
|
|
19
22
|
|
|
20
23
|
## 6.6.2-next.8
|
|
21
24
|
|
package/out/apps/app-config.d.ts
CHANGED
|
@@ -9,5 +9,5 @@ export declare type AppConfigProvider = () => Promise<AppDetails>;
|
|
|
9
9
|
export declare function adjustLegacyAppId(legacyAppDetails: AppDetails): {
|
|
10
10
|
id: string;
|
|
11
11
|
};
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const assertiveAppConfigProvider: (appConfigReader: ConfigSectionReader<AppDetails>) => AppConfigProvider;
|
|
13
13
|
//# sourceMappingURL=app-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-config.d.ts","sourceRoot":"","sources":["../../src/apps/app-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAG3B,OAAO,EAAa,mBAAmB,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"app-config.d.ts","sourceRoot":"","sources":["../../src/apps/app-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAG3B,OAAO,EAAa,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAG3D,eAAO,MAAM,cAAc;;EAEzB,CAAC;AAEH,oBAAY,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AACzD,eAAO,MAAM,YAAY,QAAQ,CAAC;AAElC,oBAAY,iBAAiB,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC;AAE1D,wBAAgB,iBAAiB,CAAC,gBAAgB,EAAE,UAAU;;EAQ7D;AAED,eAAO,MAAM,0BAA0B,oBACnB,oBAAoB,UAAU,CAAC,KAAG,iBAIxB,CAAC"}
|
package/out/apps/app-config.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.assertiveAppConfigProvider = exports.adjustLegacyAppId = exports.appConfigKey = exports.appConfigShape = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const t = tslib_1.__importStar(require("io-ts"));
|
|
6
6
|
const ari_1 = require("../ari");
|
|
7
7
|
const config_1 = require("../config");
|
|
8
|
+
const ui_1 = require("../ui");
|
|
8
9
|
exports.appConfigShape = t.type({
|
|
9
10
|
id: t.string
|
|
10
11
|
});
|
|
@@ -19,5 +20,7 @@ function adjustLegacyAppId(legacyAppDetails) {
|
|
|
19
20
|
};
|
|
20
21
|
}
|
|
21
22
|
exports.adjustLegacyAppId = adjustLegacyAppId;
|
|
22
|
-
const
|
|
23
|
-
|
|
23
|
+
const assertiveAppConfigProvider = (appConfigReader) => () => (0, config_1.assertive)(appConfigReader)
|
|
24
|
+
.readConfigSectionOrThrow(ui_1.Text.config.missing, ui_1.Text.config.invalid)
|
|
25
|
+
.then(adjustLegacyAppId);
|
|
26
|
+
exports.assertiveAppConfigProvider = assertiveAppConfigProvider;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as t from 'io-ts';
|
|
2
|
-
import { EcosystemAppAri } from '@forge/util/packages/ari';
|
|
3
2
|
import { ConfigReader } from './config';
|
|
4
3
|
import { Codec, CodecType, InnerType } from './config-codec-types';
|
|
5
4
|
import { ConfigSectionReader } from './config-section';
|
|
@@ -9,7 +8,6 @@ export declare class ConfigFileSectionReader {
|
|
|
9
8
|
private readonly configReader;
|
|
10
9
|
constructor(configReader: ConfigReader);
|
|
11
10
|
readConfigSection<K extends string, V extends Codec>(key: K, schema: CodecType<V>): Promise<InnerType<V> | 'missing' | 'invalid'>;
|
|
12
|
-
readAppId(): Promise<EcosystemAppAri>;
|
|
13
11
|
}
|
|
14
12
|
export declare const configFileReaderForSection: <K extends string, P extends Codec>(key: K, schema: CodecType<P>, configReader: ConfigReader) => ConfigSectionReader<InnerType<P>>;
|
|
15
13
|
//# sourceMappingURL=config-file-section-reader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-file-section-reader.d.ts","sourceRoot":"","sources":["../../src/config/config-file-section-reader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"config-file-section-reader.d.ts","sourceRoot":"","sources":["../../src/config/config-file-section-reader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,eAAO,MAAM,aAAa,aAAa,CAAC;AACxC,oBAAY,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC;AAEhE,qBAAa,uBAAuB;IACtB,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAZ,YAAY,EAAE,YAAY;IAE1C,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,KAAK,EAC9D,GAAG,EAAE,CAAC,EACN,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,GACnB,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,SAAS,CAAC;CAWjD;AAcD,eAAO,MAAM,0BAA0B,kFAGvB,YAAY,sCAG3B,CAAC"}
|
|
@@ -22,9 +22,6 @@ class ConfigFileSectionReader {
|
|
|
22
22
|
return 'missing';
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
async readAppId() {
|
|
26
|
-
return await this.configReader.readAppId();
|
|
27
|
-
}
|
|
28
25
|
}
|
|
29
26
|
exports.ConfigFileSectionReader = ConfigFileSectionReader;
|
|
30
27
|
class ShapedConfigFileSectionReader {
|
|
@@ -39,9 +36,6 @@ class ShapedConfigFileSectionReader {
|
|
|
39
36
|
readConfigSection() {
|
|
40
37
|
return this.configSectionReader.readConfigSection(this.key, this.schema);
|
|
41
38
|
}
|
|
42
|
-
readAppId() {
|
|
43
|
-
return this.configSectionReader.readAppId();
|
|
44
|
-
}
|
|
45
39
|
}
|
|
46
40
|
const configFileReaderForSection = (key, schema, configReader) => {
|
|
47
41
|
return new ShapedConfigFileSectionReader(new ConfigFileSectionReader(configReader), key, schema);
|
|
@@ -3,16 +3,12 @@ import { ConfigReader, ConfigWriter } from './';
|
|
|
3
3
|
import { Modules, ManifestSchema, Resources } from '@forge/manifest';
|
|
4
4
|
import { UserError, ValidationError } from '../shared';
|
|
5
5
|
import { RuntimeType } from '../runtimes';
|
|
6
|
-
import { EcosystemAppAri } from '@forge/util/packages/ari';
|
|
7
6
|
export declare class InvalidManifestError extends ValidationError {
|
|
8
7
|
constructor();
|
|
9
8
|
}
|
|
10
9
|
export declare class ResourceDefinitionMissingError extends UserError {
|
|
11
10
|
constructor(resources: string[]);
|
|
12
11
|
}
|
|
13
|
-
export declare class InvalidConfigAppId extends UserError {
|
|
14
|
-
constructor(appId: string);
|
|
15
|
-
}
|
|
16
12
|
export interface Handler {
|
|
17
13
|
module: string;
|
|
18
14
|
func: string;
|
|
@@ -32,7 +28,6 @@ export declare class ConfigFile implements ConfigReader, ConfigWriter, ConfigInt
|
|
|
32
28
|
private readonly fileWriter;
|
|
33
29
|
private readonly manifestParser;
|
|
34
30
|
constructor(fileReader: FileSystemReader, fileWriter: FileSystemWriter);
|
|
35
|
-
readAppId(): Promise<EcosystemAppAri>;
|
|
36
31
|
getAppHandlers(): Promise<Array<Handler>>;
|
|
37
32
|
readConfig(): Promise<ManifestSchema>;
|
|
38
33
|
snapshotsEnabled(): Promise<boolean>;
|
|
@@ -57,9 +52,4 @@ export declare class ConfigFile implements ConfigReader, ConfigWriter, ConfigInt
|
|
|
57
52
|
getConnectKey(): Promise<string | undefined>;
|
|
58
53
|
private getResourceType;
|
|
59
54
|
}
|
|
60
|
-
export declare class RawConfigFile extends ConfigFile {
|
|
61
|
-
private rawFileReader;
|
|
62
|
-
constructor(fileReader: FileSystemReader, fileWriter: FileSystemWriter);
|
|
63
|
-
readConfig(): Promise<ManifestSchema>;
|
|
64
|
-
}
|
|
65
55
|
//# sourceMappingURL=config-file.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-file.d.ts","sourceRoot":"","sources":["../../src/config/config-file.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGpE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAoB,MAAM,IAAI,CAAC;AAGlE,OAAO,EACL,OAAO,EACP,cAAc,EACd,SAAS,EAMV,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,SAAS,EAAE,eAAe,EAAQ,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAkB,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"config-file.d.ts","sourceRoot":"","sources":["../../src/config/config-file.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGpE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAoB,MAAM,IAAI,CAAC;AAGlE,OAAO,EACL,OAAO,EACP,cAAc,EACd,SAAS,EAMV,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,SAAS,EAAE,eAAe,EAAQ,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAkB,MAAM,aAAa,CAAC;AAE1D,qBAAa,oBAAqB,SAAQ,eAAe;;CAIxD;AAED,qBAAa,8BAA+B,SAAQ,SAAS;gBAC/C,SAAS,EAAE,MAAM,EAAE;CAGhC;AAED,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,gBAAgB;IAC/B,cAAc,IAAI,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1C,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CACtC;AAED,oBAAY,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AACpC,oBAAY,cAAc,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;AACjE,MAAM,WAAW,eAAgB,SAAQ,QAAQ;IAC/C,YAAY,EAAE,cAAc,CAAC;CAC9B;AAgBD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,CA6D5D;AAED,qBAAa,UAAW,YAAW,YAAY,EAAE,YAAY,EAAE,gBAAgB;IAG3E,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,UAAU;IAH7B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;gBAE7B,UAAU,EAAE,gBAAgB,EAC5B,UAAU,EAAE,gBAAgB;IAKlC,cAAc,IAAI,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAiBzC,UAAU,IAAI,OAAO,CAAC,cAAc,CAAC;IAYrC,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC;IAMpC,WAAW,IAAI,OAAO,CAAC,WAAW,CAAC;IAMhD,OAAO,CAAC,kBAAkB;IAoBb,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAajE,OAAO,CAAC,aAAa;IAIR,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAe1G,OAAO,CAAC,wBAAwB;IAKhC,OAAO,CAAC,wBAAwB;IAgBhC,OAAO,CAAC,6BAA6B;IAarC,OAAO,CAAC,gBAAgB;IAIX,oBAAoB,IAAI,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;KAAE,EAAE,CAAC;IAoClF,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAe1E,YAAY,CAAC,aAAa,CAAC,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAsB1E,aAAa,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAKzD,OAAO,CAAC,eAAe;CA0BxB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ConfigFile = exports.findUIKit1Modules = exports.ResourceDefinitionMissingError = exports.InvalidManifestError = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const yaml_1 = require("yaml");
|
|
6
6
|
const ui_1 = require("../ui");
|
|
@@ -11,7 +11,6 @@ const manifest_1 = require("@forge/manifest");
|
|
|
11
11
|
const url_1 = require("url");
|
|
12
12
|
const shared_1 = require("../shared");
|
|
13
13
|
const runtimes_1 = require("../runtimes");
|
|
14
|
-
const ari_1 = require("@forge/util/packages/ari");
|
|
15
14
|
class InvalidManifestError extends shared_1.ValidationError {
|
|
16
15
|
constructor() {
|
|
17
16
|
super(ui_1.Text.artifact.error.invalidYaml(_1.manifestFileName));
|
|
@@ -24,12 +23,6 @@ class ResourceDefinitionMissingError extends shared_1.UserError {
|
|
|
24
23
|
}
|
|
25
24
|
}
|
|
26
25
|
exports.ResourceDefinitionMissingError = ResourceDefinitionMissingError;
|
|
27
|
-
class InvalidConfigAppId extends shared_1.UserError {
|
|
28
|
-
constructor(appId) {
|
|
29
|
-
super(ui_1.Text.config.appId.invalid(appId));
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.InvalidConfigAppId = InvalidConfigAppId;
|
|
33
26
|
const isUIKit1 = (module) => {
|
|
34
27
|
return (typeof module === 'object' &&
|
|
35
28
|
module !== null &&
|
|
@@ -107,15 +100,6 @@ class ConfigFile {
|
|
|
107
100
|
this.fileWriter = fileWriter;
|
|
108
101
|
this.manifestParser = new manifest_1.ManifestParserBuilder().withInterpolators().build();
|
|
109
102
|
}
|
|
110
|
-
async readAppId() {
|
|
111
|
-
const manifestFileContents = await this.readConfig();
|
|
112
|
-
try {
|
|
113
|
-
return ari_1.EcosystemAppAri.parse(manifestFileContents.app?.id);
|
|
114
|
-
}
|
|
115
|
-
catch {
|
|
116
|
-
throw new InvalidConfigAppId(manifestFileContents.app?.id);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
103
|
async getAppHandlers() {
|
|
120
104
|
const config = await this.readConfig();
|
|
121
105
|
const functions = config.modules?.function ?? [];
|
|
@@ -302,15 +286,3 @@ class ConfigFile {
|
|
|
302
286
|
}
|
|
303
287
|
}
|
|
304
288
|
exports.ConfigFile = ConfigFile;
|
|
305
|
-
class RawConfigFile extends ConfigFile {
|
|
306
|
-
rawFileReader;
|
|
307
|
-
constructor(fileReader, fileWriter) {
|
|
308
|
-
super(fileReader, fileWriter);
|
|
309
|
-
this.rawFileReader = fileReader;
|
|
310
|
-
}
|
|
311
|
-
async readConfig() {
|
|
312
|
-
const manifest = this.rawFileReader.readFile(_1.manifestFileName);
|
|
313
|
-
return (0, yaml_1.parse)(manifest);
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
exports.RawConfigFile = RawConfigFile;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { EcosystemAppAri } from '@forge/util/packages/ari';
|
|
2
|
-
import { AppDetails } from '../index';
|
|
3
1
|
export interface ConfigSectionReader<V extends object> {
|
|
4
2
|
readConfigSection(): Promise<V | 'missing' | 'invalid'>;
|
|
5
|
-
readAppId(): Promise<EcosystemAppAri>;
|
|
6
3
|
}
|
|
7
4
|
export interface ConfigSectionWriter<V extends object> {
|
|
8
5
|
writeConfigSection(configSection: V): Promise<void>;
|
|
@@ -16,7 +13,6 @@ export declare class AssertiveConfigSectionReader<V extends object> {
|
|
|
16
13
|
private readonly configSectionReader;
|
|
17
14
|
constructor(configSectionReader: ConfigSectionReader<V>);
|
|
18
15
|
readConfigSectionOrThrow(missingMessage: string, invalidMessage: string): Promise<V>;
|
|
19
|
-
readConfigAppIdOrThrow(): Promise<AppDetails>;
|
|
20
16
|
}
|
|
21
17
|
export declare const assertive: <V extends object>(configSectionReader: ConfigSectionReader<V>) => AssertiveConfigSectionReader<V>;
|
|
22
18
|
//# sourceMappingURL=config-section.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-section.d.ts","sourceRoot":"","sources":["../../src/config/config-section.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"config-section.d.ts","sourceRoot":"","sources":["../../src/config/config-section.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,MAAM;IACnD,iBAAiB,IAAI,OAAO,CAAC,CAAC,GAAG,SAAS,GAAG,SAAS,CAAC,CAAC;CACzD;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,MAAM;IACnD,kBAAkB,CAAC,aAAa,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtD;AAED,qBAAa,yBAA0B,SAAQ,KAAK;CAAG;AACvD,qBAAa,0BAA2B,SAAQ,KAAK;CAAG;AAExD,qBAAa,4BAA4B,CAAC,CAAC,SAAS,MAAM;IAC5C,OAAO,CAAC,QAAQ,CAAC,mBAAmB;gBAAnB,mBAAmB,EAAE,mBAAmB,CAAC,CAAC,CAAC;IAE3D,wBAAwB,CAAC,cAAc,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;CAUlG;AAED,eAAO,MAAM,SAAS,oGAEwE,CAAC"}
|
|
@@ -24,12 +24,6 @@ class AssertiveConfigSectionReader {
|
|
|
24
24
|
return configValue;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
async readConfigAppIdOrThrow() {
|
|
28
|
-
const appId = await this.configSectionReader.readAppId();
|
|
29
|
-
return {
|
|
30
|
-
id: appId.toString()
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
27
|
}
|
|
34
28
|
exports.AssertiveConfigSectionReader = AssertiveConfigSectionReader;
|
|
35
29
|
const assertive = (configSectionReader) => new AssertiveConfigSectionReader(configSectionReader);
|
package/out/config/config.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ManifestSchema, Resources } from '@forge/manifest';
|
|
2
|
-
import { EcosystemAppAri } from '@forge/util/packages/ari';
|
|
3
2
|
export declare const manifestFileName = "manifest.yml";
|
|
4
3
|
export declare const dependencyFileNames: string[];
|
|
5
4
|
export declare const ModuleEntryPoints: readonly ["view", "edit", "create", "contextConfig", "config", "target"];
|
|
@@ -15,12 +14,9 @@ export declare type HostedResourcesModule = BaseModule & {
|
|
|
15
14
|
} & {
|
|
16
15
|
[entryPoint in ModuleEntryPoint]?: HostedResourcesModule;
|
|
17
16
|
};
|
|
18
|
-
export interface ConfigReader
|
|
17
|
+
export interface ConfigReader {
|
|
19
18
|
readConfig(): Promise<ManifestSchema>;
|
|
20
19
|
}
|
|
21
|
-
export interface ConfigAppIdReader {
|
|
22
|
-
readAppId(): Promise<EcosystemAppAri>;
|
|
23
|
-
}
|
|
24
20
|
export interface ConfigWriter {
|
|
25
21
|
writeToConfigFile<K extends string, V extends object>(configKey: K, config: V): Promise<void>;
|
|
26
22
|
prependAppNameToModules(name: string): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5D,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAC/C,eAAO,MAAM,mBAAmB,UAAqD,CAAC;AAEtF,eAAO,MAAM,iBAAiB,0EAA2E,CAAC;AAC1G,oBAAY,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,oBAAY,UAAU,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC;CACb,GAAG;KACD,UAAU,IAAI,gBAAgB,CAAC,CAAC,EAAE,UAAU;CAC9C,CAAC;AAEF,oBAAY,qBAAqB,GAAG,UAAU,GAAG;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC/B,GAAG;KACD,UAAU,IAAI,gBAAgB,CAAC,CAAC,EAAE,qBAAqB;CACzD,CAAC;AAEF,MAAM,WAAW,YAAY;IAC3B,UAAU,IAAI,OAAO,CAAC,cAAc,CAAC,CAAC;CACvC;AAED,MAAM,WAAW,YAAY;IAC3B,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9F,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtD;AAED,eAAO,MAAM,gBAAgB,aAAc,GAAG,0BAG7C,CAAC;AAEF,eAAO,MAAM,sBAAsB,WAAY,GAAG,oCAGjD,CAAC"}
|
|
@@ -2413,6 +2413,7 @@ export declare enum AtlassianProductHostingType {
|
|
|
2413
2413
|
export declare type AtlassianStudioUserProductPermissions = {
|
|
2414
2414
|
__typename?: 'AtlassianStudioUserProductPermissions';
|
|
2415
2415
|
isConfluenceGlobalAdmin?: Maybe<Scalars['Boolean']['output']>;
|
|
2416
|
+
isHelpCenterAdmin?: Maybe<Scalars['Boolean']['output']>;
|
|
2416
2417
|
isJiraGlobalAdmin?: Maybe<Scalars['Boolean']['output']>;
|
|
2417
2418
|
};
|
|
2418
2419
|
export declare type AtlassianStudioUserSiteContextOutput = {
|
|
@@ -2422,7 +2423,9 @@ export declare type AtlassianStudioUserSiteContextOutput = {
|
|
|
2422
2423
|
isCompanyHubAvailable?: Maybe<Scalars['Boolean']['output']>;
|
|
2423
2424
|
isConfluenceAutomationAvailable?: Maybe<Scalars['Boolean']['output']>;
|
|
2424
2425
|
isCustomAgentsAvailable?: Maybe<Scalars['Boolean']['output']>;
|
|
2426
|
+
isHelpCenterEditLayoutPermitted?: Maybe<Scalars['Boolean']['output']>;
|
|
2425
2427
|
isJSMAutomationAvailable?: Maybe<Scalars['Boolean']['output']>;
|
|
2428
|
+
isJSMEditionPremiumOrEnterprise?: Maybe<Scalars['Boolean']['output']>;
|
|
2426
2429
|
isJiraAutomationAvailable?: Maybe<Scalars['Boolean']['output']>;
|
|
2427
2430
|
isVirtualAgentsAvailable?: Maybe<Scalars['Boolean']['output']>;
|
|
2428
2431
|
userPermissions?: Maybe<AtlassianStudioUserProductPermissions>;
|
|
@@ -30776,8 +30779,10 @@ export declare type GraphStore = {
|
|
|
30776
30779
|
userCreatedRemoteLinkInverse?: Maybe<GraphStoreSimplifiedUserCreatedRemoteLinkInverseConnection>;
|
|
30777
30780
|
userCreatedRepository?: Maybe<GraphStoreSimplifiedUserCreatedRepositoryConnection>;
|
|
30778
30781
|
userCreatedRepositoryInverse?: Maybe<GraphStoreSimplifiedUserCreatedRepositoryInverseConnection>;
|
|
30782
|
+
userCreatedVideo?: Maybe<GraphStoreSimplifiedUserCreatedVideoConnection>;
|
|
30779
30783
|
userCreatedVideoComment?: Maybe<GraphStoreSimplifiedUserCreatedVideoCommentConnection>;
|
|
30780
30784
|
userCreatedVideoCommentInverse?: Maybe<GraphStoreSimplifiedUserCreatedVideoCommentInverseConnection>;
|
|
30785
|
+
userCreatedVideoInverse?: Maybe<GraphStoreSimplifiedUserCreatedVideoInverseConnection>;
|
|
30781
30786
|
userFavoritedConfluenceBlogpost?: Maybe<GraphStoreSimplifiedUserFavoritedConfluenceBlogpostConnection>;
|
|
30782
30787
|
userFavoritedConfluenceBlogpostInverse?: Maybe<GraphStoreSimplifiedUserFavoritedConfluenceBlogpostInverseConnection>;
|
|
30783
30788
|
userFavoritedConfluenceDatabase?: Maybe<GraphStoreSimplifiedUserFavoritedConfluenceDatabaseConnection>;
|
|
@@ -34258,6 +34263,13 @@ export declare type GraphStoreUserCreatedRepositoryInverseArgs = {
|
|
|
34258
34263
|
id: Scalars['ID']['input'];
|
|
34259
34264
|
sort?: InputMaybe<GraphStoreUserCreatedRepositorySortInput>;
|
|
34260
34265
|
};
|
|
34266
|
+
export declare type GraphStoreUserCreatedVideoArgs = {
|
|
34267
|
+
after?: InputMaybe<Scalars['String']['input']>;
|
|
34268
|
+
consistentRead?: InputMaybe<Scalars['Boolean']['input']>;
|
|
34269
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
34270
|
+
id: Scalars['ID']['input'];
|
|
34271
|
+
sort?: InputMaybe<GraphStoreUserCreatedVideoSortInput>;
|
|
34272
|
+
};
|
|
34261
34273
|
export declare type GraphStoreUserCreatedVideoCommentArgs = {
|
|
34262
34274
|
after?: InputMaybe<Scalars['String']['input']>;
|
|
34263
34275
|
consistentRead?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -34272,6 +34284,13 @@ export declare type GraphStoreUserCreatedVideoCommentInverseArgs = {
|
|
|
34272
34284
|
id: Scalars['ID']['input'];
|
|
34273
34285
|
sort?: InputMaybe<GraphStoreUserCreatedVideoCommentSortInput>;
|
|
34274
34286
|
};
|
|
34287
|
+
export declare type GraphStoreUserCreatedVideoInverseArgs = {
|
|
34288
|
+
after?: InputMaybe<Scalars['String']['input']>;
|
|
34289
|
+
consistentRead?: InputMaybe<Scalars['Boolean']['input']>;
|
|
34290
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
34291
|
+
id: Scalars['ID']['input'];
|
|
34292
|
+
sort?: InputMaybe<GraphStoreUserCreatedVideoSortInput>;
|
|
34293
|
+
};
|
|
34275
34294
|
export declare type GraphStoreUserFavoritedConfluenceBlogpostArgs = {
|
|
34276
34295
|
after?: InputMaybe<Scalars['String']['input']>;
|
|
34277
34296
|
consistentRead?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -46506,6 +46525,34 @@ export declare type GraphStoreSimplifiedUserCreatedVideoCommentInverseEdge = {
|
|
|
46506
46525
|
};
|
|
46507
46526
|
export declare type GraphStoreSimplifiedUserCreatedVideoCommentInverseUnion = AppUser | AtlassianAccountUser | CustomerUser;
|
|
46508
46527
|
export declare type GraphStoreSimplifiedUserCreatedVideoCommentUnion = LoomComment;
|
|
46528
|
+
export declare type GraphStoreSimplifiedUserCreatedVideoConnection = HasPageInfo & {
|
|
46529
|
+
__typename?: 'GraphStoreSimplifiedUserCreatedVideoConnection';
|
|
46530
|
+
edges?: Maybe<Array<Maybe<GraphStoreSimplifiedUserCreatedVideoEdge>>>;
|
|
46531
|
+
pageInfo: PageInfo;
|
|
46532
|
+
};
|
|
46533
|
+
export declare type GraphStoreSimplifiedUserCreatedVideoEdge = {
|
|
46534
|
+
__typename?: 'GraphStoreSimplifiedUserCreatedVideoEdge';
|
|
46535
|
+
createdAt: Scalars['DateTime']['output'];
|
|
46536
|
+
cursor?: Maybe<Scalars['String']['output']>;
|
|
46537
|
+
id: Scalars['ID']['output'];
|
|
46538
|
+
lastUpdated: Scalars['DateTime']['output'];
|
|
46539
|
+
node?: Maybe<GraphStoreSimplifiedUserCreatedVideoUnion>;
|
|
46540
|
+
};
|
|
46541
|
+
export declare type GraphStoreSimplifiedUserCreatedVideoInverseConnection = HasPageInfo & {
|
|
46542
|
+
__typename?: 'GraphStoreSimplifiedUserCreatedVideoInverseConnection';
|
|
46543
|
+
edges?: Maybe<Array<Maybe<GraphStoreSimplifiedUserCreatedVideoInverseEdge>>>;
|
|
46544
|
+
pageInfo: PageInfo;
|
|
46545
|
+
};
|
|
46546
|
+
export declare type GraphStoreSimplifiedUserCreatedVideoInverseEdge = {
|
|
46547
|
+
__typename?: 'GraphStoreSimplifiedUserCreatedVideoInverseEdge';
|
|
46548
|
+
createdAt: Scalars['DateTime']['output'];
|
|
46549
|
+
cursor?: Maybe<Scalars['String']['output']>;
|
|
46550
|
+
id: Scalars['ID']['output'];
|
|
46551
|
+
lastUpdated: Scalars['DateTime']['output'];
|
|
46552
|
+
node?: Maybe<GraphStoreSimplifiedUserCreatedVideoInverseUnion>;
|
|
46553
|
+
};
|
|
46554
|
+
export declare type GraphStoreSimplifiedUserCreatedVideoInverseUnion = AppUser | AtlassianAccountUser | CustomerUser;
|
|
46555
|
+
export declare type GraphStoreSimplifiedUserCreatedVideoUnion = LoomVideo;
|
|
46509
46556
|
export declare type GraphStoreSimplifiedUserFavoritedConfluenceBlogpostConnection = HasPageInfo & {
|
|
46510
46557
|
__typename?: 'GraphStoreSimplifiedUserFavoritedConfluenceBlogpostConnection';
|
|
46511
46558
|
edges?: Maybe<Array<Maybe<GraphStoreSimplifiedUserFavoritedConfluenceBlogpostEdge>>>;
|
|
@@ -48767,6 +48814,9 @@ export declare type GraphStoreUserCreatedRepositorySortInput = {
|
|
|
48767
48814
|
export declare type GraphStoreUserCreatedVideoCommentSortInput = {
|
|
48768
48815
|
lastModified?: InputMaybe<GraphStoreSortInput>;
|
|
48769
48816
|
};
|
|
48817
|
+
export declare type GraphStoreUserCreatedVideoSortInput = {
|
|
48818
|
+
lastModified?: InputMaybe<GraphStoreSortInput>;
|
|
48819
|
+
};
|
|
48770
48820
|
export declare type GraphStoreUserFavoritedConfluenceBlogpostSortInput = {
|
|
48771
48821
|
lastModified?: InputMaybe<GraphStoreSortInput>;
|
|
48772
48822
|
};
|
|
@@ -54674,6 +54724,10 @@ export declare type JiraConfluenceRemoteIssueLinkEdge = {
|
|
|
54674
54724
|
cursor: Scalars['String']['output'];
|
|
54675
54725
|
node?: Maybe<JiraConfluenceRemoteIssueLink>;
|
|
54676
54726
|
};
|
|
54727
|
+
export declare type JiraConfluenceRemoteIssueLinkInput = {
|
|
54728
|
+
href?: InputMaybe<Scalars['String']['input']>;
|
|
54729
|
+
id?: InputMaybe<Scalars['ID']['input']>;
|
|
54730
|
+
};
|
|
54677
54731
|
export declare type JiraConfluenceRemoteIssueLinksField = JiraIssueField & JiraIssueFieldConfiguration & Node & {
|
|
54678
54732
|
__typename?: 'JiraConfluenceRemoteIssueLinksField';
|
|
54679
54733
|
aliasFieldId?: Maybe<Scalars['ID']['output']>;
|
|
@@ -54692,6 +54746,10 @@ export declare type JiraConfluenceRemoteIssueLinksFieldConfluenceRemoteIssueLink
|
|
|
54692
54746
|
after?: InputMaybe<Scalars['String']['input']>;
|
|
54693
54747
|
first?: InputMaybe<Scalars['Int']['input']>;
|
|
54694
54748
|
};
|
|
54749
|
+
export declare type JiraConfluenceRemoteIssueLinksFieldOperationInput = {
|
|
54750
|
+
links: Array<JiraConfluenceRemoteIssueLinkInput>;
|
|
54751
|
+
operation: JiraMultiValueFieldOperations;
|
|
54752
|
+
};
|
|
54695
54753
|
export declare type JiraConnectDateTimeField = JiraIssueField & JiraIssueFieldConfiguration & JiraUserIssueFieldConfiguration & Node & {
|
|
54696
54754
|
__typename?: 'JiraConnectDateTimeField';
|
|
54697
54755
|
aliasFieldId?: Maybe<Scalars['ID']['output']>;
|
|
@@ -58756,6 +58814,21 @@ export declare enum JiraIssueViewAttachmentPanelViewMode {
|
|
|
58756
58814
|
ListView = "LIST_VIEW",
|
|
58757
58815
|
StripView = "STRIP_VIEW"
|
|
58758
58816
|
}
|
|
58817
|
+
export declare type JiraIssueViewPanelAutomationDiscoverabilityDismissedTemplateType = {
|
|
58818
|
+
__typename?: 'JiraIssueViewPanelAutomationDiscoverabilityDismissedTemplateType';
|
|
58819
|
+
dismissUntilDateTime?: Maybe<Scalars['DateTime']['output']>;
|
|
58820
|
+
templateId?: Maybe<Scalars['String']['output']>;
|
|
58821
|
+
};
|
|
58822
|
+
export declare type JiraIssueViewPanelAutomationDiscoverabilityDismissedTemplateTypeConnection = {
|
|
58823
|
+
__typename?: 'JiraIssueViewPanelAutomationDiscoverabilityDismissedTemplateTypeConnection';
|
|
58824
|
+
edges?: Maybe<Array<Maybe<JiraIssueViewPanelAutomationDiscoverabilityDismissedTemplateTypeEdge>>>;
|
|
58825
|
+
pageInfo: PageInfo;
|
|
58826
|
+
};
|
|
58827
|
+
export declare type JiraIssueViewPanelAutomationDiscoverabilityDismissedTemplateTypeEdge = {
|
|
58828
|
+
__typename?: 'JiraIssueViewPanelAutomationDiscoverabilityDismissedTemplateTypeEdge';
|
|
58829
|
+
cursor: Scalars['String']['output'];
|
|
58830
|
+
node?: Maybe<JiraIssueViewPanelAutomationDiscoverabilityDismissedTemplateType>;
|
|
58831
|
+
};
|
|
58759
58832
|
export declare enum JiraIssueViewTimestampDisplayMode {
|
|
58760
58833
|
Absolute = "ABSOLUTE",
|
|
58761
58834
|
Relative = "RELATIVE"
|
|
@@ -60168,6 +60241,7 @@ export declare type JiraMutation = {
|
|
|
60168
60241
|
updateCmdbField?: Maybe<JiraCmdbFieldPayload>;
|
|
60169
60242
|
updateColorField?: Maybe<JiraColorFieldPayload>;
|
|
60170
60243
|
updateComponentsField?: Maybe<JiraComponentsFieldPayload>;
|
|
60244
|
+
updateConfluenceRemoteIssueLinksField?: Maybe<JiraUpdateConfluenceRemoteIssueLinksFieldPayload>;
|
|
60171
60245
|
updateCustomBackground?: Maybe<JiraUpdateCustomBackgroundPayload>;
|
|
60172
60246
|
updateDataClassificationField?: Maybe<JiraDataClassificationFieldPayload>;
|
|
60173
60247
|
updateDateField?: Maybe<JiraDateFieldPayload>;
|
|
@@ -60640,6 +60714,9 @@ export declare type JiraMutationUpdateColorFieldArgs = {
|
|
|
60640
60714
|
export declare type JiraMutationUpdateComponentsFieldArgs = {
|
|
60641
60715
|
input: JiraUpdateComponentsFieldInput;
|
|
60642
60716
|
};
|
|
60717
|
+
export declare type JiraMutationUpdateConfluenceRemoteIssueLinksFieldArgs = {
|
|
60718
|
+
input: JiraUpdateConfluenceRemoteIssueLinksFieldInput;
|
|
60719
|
+
};
|
|
60643
60720
|
export declare type JiraMutationUpdateCustomBackgroundArgs = {
|
|
60644
60721
|
input: JiraUpdateCustomBackgroundInput;
|
|
60645
60722
|
};
|
|
@@ -67412,6 +67489,16 @@ export declare type JiraUpdateComponentsFieldInput = {
|
|
|
67412
67489
|
id: Scalars['ID']['input'];
|
|
67413
67490
|
operations: Array<JiraComponentFieldOperationInput>;
|
|
67414
67491
|
};
|
|
67492
|
+
export declare type JiraUpdateConfluenceRemoteIssueLinksFieldInput = {
|
|
67493
|
+
id: Scalars['ID']['input'];
|
|
67494
|
+
operations: Array<JiraConfluenceRemoteIssueLinksFieldOperationInput>;
|
|
67495
|
+
};
|
|
67496
|
+
export declare type JiraUpdateConfluenceRemoteIssueLinksFieldPayload = Payload & {
|
|
67497
|
+
__typename?: 'JiraUpdateConfluenceRemoteIssueLinksFieldPayload';
|
|
67498
|
+
errors?: Maybe<Array<MutationError>>;
|
|
67499
|
+
field?: Maybe<JiraConfluenceRemoteIssueLinksField>;
|
|
67500
|
+
success: Scalars['Boolean']['output'];
|
|
67501
|
+
};
|
|
67415
67502
|
export declare type JiraUpdateCustomBackgroundInput = {
|
|
67416
67503
|
altText: Scalars['String']['input'];
|
|
67417
67504
|
cloudId: Scalars['ID']['input'];
|
|
@@ -67947,6 +68034,7 @@ export declare type JiraUserNavigationConfigurationPayload = Payload & {
|
|
|
67947
68034
|
export declare type JiraUserPreferences = {
|
|
67948
68035
|
__typename?: 'JiraUserPreferences';
|
|
67949
68036
|
colorSchemeThemeSetting?: Maybe<JiraColorSchemeThemeSetting>;
|
|
68037
|
+
dismissedAutomationDiscoverabilityTemplates?: Maybe<JiraIssueViewPanelAutomationDiscoverabilityDismissedTemplateTypeConnection>;
|
|
67950
68038
|
globalIssueCreateView?: Maybe<JiraGlobalIssueCreateView>;
|
|
67951
68039
|
isAdvancedRoadmapsSidebarLayoutEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
67952
68040
|
isCustomNavBarThemeFlagDismissed?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -67976,6 +68064,10 @@ export declare type JiraUserPreferences = {
|
|
|
67976
68064
|
showRedactionChangeBoardingOnIssueViewAsEditor?: Maybe<Scalars['Boolean']['output']>;
|
|
67977
68065
|
showRedactionChangeBoardingOnIssueViewAsViewer?: Maybe<Scalars['Boolean']['output']>;
|
|
67978
68066
|
};
|
|
68067
|
+
export declare type JiraUserPreferencesDismissedAutomationDiscoverabilityTemplatesArgs = {
|
|
68068
|
+
after?: InputMaybe<Scalars['String']['input']>;
|
|
68069
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
68070
|
+
};
|
|
67979
68071
|
export declare type JiraUserPreferencesIssueViewDefaultPinnedFieldsBannerProjectArgs = {
|
|
67980
68072
|
projectKey: Scalars['String']['input'];
|
|
67981
68073
|
};
|