@forge/cli-shared 6.7.0-next.10 → 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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @forge/cli-shared
2
2
 
3
+ ## 6.7.0-next.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 4879128: Revert Changes: Added config file utility method to only read appId and refactored commands to perform validation after command configuration
8
+
3
9
  ## 6.7.0-next.10
4
10
 
5
11
  ### Patch Changes
@@ -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 assertiveConfigAppIdProvider: (appConfigReader: ConfigSectionReader<AppDetails>) => AppConfigProvider;
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;AAE3D,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,4BAA4B,oBACrB,oBAAoB,UAAU,CAAC,KAAG,iBAEyB,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"}
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.assertiveConfigAppIdProvider = exports.adjustLegacyAppId = exports.appConfigKey = exports.appConfigShape = void 0;
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 assertiveConfigAppIdProvider = (appConfigReader) => () => (0, config_1.assertive)(appConfigReader).readConfigAppIdOrThrow().then(adjustLegacyAppId);
23
- exports.assertiveConfigAppIdProvider = assertiveConfigAppIdProvider;
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,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,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;IAYnC,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;CAGnD;AAkBD,eAAO,MAAM,0BAA0B,kFAGvB,YAAY,sCAG3B,CAAC"}
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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K,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.RawConfigFile = exports.ConfigFile = exports.findUIKit1Modules = exports.InvalidConfigAppId = exports.ResourceDefinitionMissingError = exports.InvalidManifestError = void 0;
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,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,MAAM;IACnD,iBAAiB,IAAI,OAAO,CAAC,CAAC,GAAG,SAAS,GAAG,SAAS,CAAC,CAAC;IACxD,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC,CAAC;CACvC;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;IAWpF,sBAAsB,IAAI,OAAO,CAAC,UAAU,CAAC;CAM3D;AAED,eAAO,MAAM,SAAS,oGAEwE,CAAC"}
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);
@@ -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 extends ConfigAppIdReader {
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;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,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,E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AAE,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"}
@@ -30779,8 +30779,10 @@ export declare type GraphStore = {
30779
30779
  userCreatedRemoteLinkInverse?: Maybe<GraphStoreSimplifiedUserCreatedRemoteLinkInverseConnection>;
30780
30780
  userCreatedRepository?: Maybe<GraphStoreSimplifiedUserCreatedRepositoryConnection>;
30781
30781
  userCreatedRepositoryInverse?: Maybe<GraphStoreSimplifiedUserCreatedRepositoryInverseConnection>;
30782
+ userCreatedVideo?: Maybe<GraphStoreSimplifiedUserCreatedVideoConnection>;
30782
30783
  userCreatedVideoComment?: Maybe<GraphStoreSimplifiedUserCreatedVideoCommentConnection>;
30783
30784
  userCreatedVideoCommentInverse?: Maybe<GraphStoreSimplifiedUserCreatedVideoCommentInverseConnection>;
30785
+ userCreatedVideoInverse?: Maybe<GraphStoreSimplifiedUserCreatedVideoInverseConnection>;
30784
30786
  userFavoritedConfluenceBlogpost?: Maybe<GraphStoreSimplifiedUserFavoritedConfluenceBlogpostConnection>;
30785
30787
  userFavoritedConfluenceBlogpostInverse?: Maybe<GraphStoreSimplifiedUserFavoritedConfluenceBlogpostInverseConnection>;
30786
30788
  userFavoritedConfluenceDatabase?: Maybe<GraphStoreSimplifiedUserFavoritedConfluenceDatabaseConnection>;
@@ -34261,6 +34263,13 @@ export declare type GraphStoreUserCreatedRepositoryInverseArgs = {
34261
34263
  id: Scalars['ID']['input'];
34262
34264
  sort?: InputMaybe<GraphStoreUserCreatedRepositorySortInput>;
34263
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
+ };
34264
34273
  export declare type GraphStoreUserCreatedVideoCommentArgs = {
34265
34274
  after?: InputMaybe<Scalars['String']['input']>;
34266
34275
  consistentRead?: InputMaybe<Scalars['Boolean']['input']>;
@@ -34275,6 +34284,13 @@ export declare type GraphStoreUserCreatedVideoCommentInverseArgs = {
34275
34284
  id: Scalars['ID']['input'];
34276
34285
  sort?: InputMaybe<GraphStoreUserCreatedVideoCommentSortInput>;
34277
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
+ };
34278
34294
  export declare type GraphStoreUserFavoritedConfluenceBlogpostArgs = {
34279
34295
  after?: InputMaybe<Scalars['String']['input']>;
34280
34296
  consistentRead?: InputMaybe<Scalars['Boolean']['input']>;
@@ -46509,6 +46525,34 @@ export declare type GraphStoreSimplifiedUserCreatedVideoCommentInverseEdge = {
46509
46525
  };
46510
46526
  export declare type GraphStoreSimplifiedUserCreatedVideoCommentInverseUnion = AppUser | AtlassianAccountUser | CustomerUser;
46511
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;
46512
46556
  export declare type GraphStoreSimplifiedUserFavoritedConfluenceBlogpostConnection = HasPageInfo & {
46513
46557
  __typename?: 'GraphStoreSimplifiedUserFavoritedConfluenceBlogpostConnection';
46514
46558
  edges?: Maybe<Array<Maybe<GraphStoreSimplifiedUserFavoritedConfluenceBlogpostEdge>>>;
@@ -48770,6 +48814,9 @@ export declare type GraphStoreUserCreatedRepositorySortInput = {
48770
48814
  export declare type GraphStoreUserCreatedVideoCommentSortInput = {
48771
48815
  lastModified?: InputMaybe<GraphStoreSortInput>;
48772
48816
  };
48817
+ export declare type GraphStoreUserCreatedVideoSortInput = {
48818
+ lastModified?: InputMaybe<GraphStoreSortInput>;
48819
+ };
48773
48820
  export declare type GraphStoreUserFavoritedConfluenceBlogpostSortInput = {
48774
48821
  lastModified?: InputMaybe<GraphStoreSortInput>;
48775
48822
  };
@@ -58767,6 +58814,21 @@ export declare enum JiraIssueViewAttachmentPanelViewMode {
58767
58814
  ListView = "LIST_VIEW",
58768
58815
  StripView = "STRIP_VIEW"
58769
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
+ };
58770
58832
  export declare enum JiraIssueViewTimestampDisplayMode {
58771
58833
  Absolute = "ABSOLUTE",
58772
58834
  Relative = "RELATIVE"
@@ -67972,6 +68034,7 @@ export declare type JiraUserNavigationConfigurationPayload = Payload & {
67972
68034
  export declare type JiraUserPreferences = {
67973
68035
  __typename?: 'JiraUserPreferences';
67974
68036
  colorSchemeThemeSetting?: Maybe<JiraColorSchemeThemeSetting>;
68037
+ dismissedAutomationDiscoverabilityTemplates?: Maybe<JiraIssueViewPanelAutomationDiscoverabilityDismissedTemplateTypeConnection>;
67975
68038
  globalIssueCreateView?: Maybe<JiraGlobalIssueCreateView>;
67976
68039
  isAdvancedRoadmapsSidebarLayoutEnabled?: Maybe<Scalars['Boolean']['output']>;
67977
68040
  isCustomNavBarThemeFlagDismissed?: Maybe<Scalars['Boolean']['output']>;
@@ -68001,6 +68064,10 @@ export declare type JiraUserPreferences = {
68001
68064
  showRedactionChangeBoardingOnIssueViewAsEditor?: Maybe<Scalars['Boolean']['output']>;
68002
68065
  showRedactionChangeBoardingOnIssueViewAsViewer?: Maybe<Scalars['Boolean']['output']>;
68003
68066
  };
68067
+ export declare type JiraUserPreferencesDismissedAutomationDiscoverabilityTemplatesArgs = {
68068
+ after?: InputMaybe<Scalars['String']['input']>;
68069
+ first?: InputMaybe<Scalars['Int']['input']>;
68070
+ };
68004
68071
  export declare type JiraUserPreferencesIssueViewDefaultPinnedFieldsBannerProjectArgs = {
68005
68072
  projectKey: Scalars['String']['input'];
68006
68073
  };