@forge/cli-shared 5.5.2-next.0 → 5.5.2-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,18 @@
1
1
  # @forge/cli-shared
2
2
 
3
+ ## 5.5.2-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [65bb6b7]
8
+ - @forge/manifest@7.7.2-next.0
9
+
10
+ ## 5.5.2-next.1
11
+
12
+ ### Patch Changes
13
+
14
+ - 5edaced: Fix forge CLI not categorizing UI-kit2 resources in modules entry point
15
+
3
16
  ## 5.5.2-next.0
4
17
 
5
18
  ### Patch Changes
@@ -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,EAEL,cAAc,EACd,SAAS,EAKV,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,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  }
119
119
  assertNoMissingResources(modules, resources) {
120
- const missingResources = modules.filter(({ resource }) => !resources.some(({ key }) => resource === key));
121
- if (missingResources.length > 0) {
122
- throw new ResourceDefinitionMissingError(missingResources.map((m) => m.resource));
120
+ const modulesResourcesKeys = modules
121
+ .flatMap((module) => {
122
+ return [module.resource, ...config_1.ModuleEntryPoints.map((entryPoint) => module[entryPoint]?.resource || '')];
123
+ })
124
+ .filter(Boolean);
125
+ const missingModuleResourcesKeys = modulesResourcesKeys.filter((key) => !resources.some((resource) => resource.key === key));
126
+ if (missingModuleResourcesKeys.length > 0) {
127
+ throw new ResourceDefinitionMissingError(missingModuleResourcesKeys);
123
128
  }
124
129
  }
125
130
  getRemoteFromEgressPermission(remoteEgressPermission, remotes) {
@@ -1,7 +1,7 @@
1
1
  import { ManifestSchema, Resources } from '@forge/manifest';
2
2
  export declare const manifestFileName = "manifest.yml";
3
3
  export declare const dependencyFileNames: string[];
4
- export declare const ModuleEntryPoints: readonly ["view", "edit", "create", "contextConfig"];
4
+ export declare const ModuleEntryPoints: readonly ["view", "edit", "create", "contextConfig", "config"];
5
5
  export declare type ModuleEntryPoint = (typeof ModuleEntryPoints)[number];
6
6
  export declare type BaseModule = {
7
7
  key: string;
@@ -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;AAE5D,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAC/C,eAAO,MAAM,mBAAmB,UAAqD,CAAC;AAEtF,eAAO,MAAM,iBAAiB,sDAAuD,CAAC;AACtF,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;CAC9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AC/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"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isHostedResourceModule = exports.validateResource = exports.ModuleEntryPoints = exports.dependencyFileNames = exports.manifestFileName = void 0;
4
4
  exports.manifestFileName = 'manifest.yml';
5
5
  exports.dependencyFileNames = ['package.json', 'package-lock.json', 'yarn.lock'];
6
- exports.ModuleEntryPoints = ['view', 'edit', 'create', 'contextConfig'];
6
+ exports.ModuleEntryPoints = ['view', 'edit', 'create', 'contextConfig', 'config'];
7
7
  const validateResource = (resource) => {
8
8
  const { key, path } = resource;
9
9
  return typeof key === 'string' && typeof path === 'string';
@@ -11,6 +11,6 @@ const validateResource = (resource) => {
11
11
  exports.validateResource = validateResource;
12
12
  const isHostedResourceModule = (module) => {
13
13
  const resource = module.resource;
14
- return resource !== undefined;
14
+ return resource !== undefined || exports.ModuleEntryPoints.some((entryPoint) => module[entryPoint]?.resource !== undefined);
15
15
  };
16
16
  exports.isHostedResourceModule = isHostedResourceModule;
@@ -53954,6 +53954,13 @@ export declare type KnowledgeDiscoveryAdminhubBookmarkProperties = {
53954
53954
  };
53955
53955
  export declare type KnowledgeDiscoveryAdminhubBookmarkResult = KnowledgeDiscoveryAdminhubBookmark | QueryError;
53956
53956
  export declare type KnowledgeDiscoveryAdminhubBookmarksResult = KnowledgeDiscoveryAdminhubBookmarkConnection | QueryError;
53957
+ export declare type KnowledgeDiscoveryAutoDefinition = {
53958
+ __typename?: 'KnowledgeDiscoveryAutoDefinition';
53959
+ confluenceEntity?: Maybe<KnowledgeDiscoveryConfluenceEntity>;
53960
+ createdAt: Scalars['String']['output'];
53961
+ definition: Scalars['String']['output'];
53962
+ };
53963
+ export declare type KnowledgeDiscoveryAutoDefinitionResult = KnowledgeDiscoveryAutoDefinition | QueryError;
53957
53964
  export declare type KnowledgeDiscoveryBookmark = {
53958
53965
  __typename?: 'KnowledgeDiscoveryBookmark';
53959
53966
  properties?: Maybe<KnowledgeDiscoveryBookmarkProperties>;
@@ -54163,6 +54170,7 @@ export declare type KnowledgeDiscoveryQueryApi = {
54163
54170
  __typename?: 'KnowledgeDiscoveryQueryApi';
54164
54171
  adminhubBookmark?: Maybe<KnowledgeDiscoveryAdminhubBookmarkResult>;
54165
54172
  adminhubBookmarks?: Maybe<KnowledgeDiscoveryAdminhubBookmarksResult>;
54173
+ autoDefinition?: Maybe<KnowledgeDiscoveryAutoDefinitionResult>;
54166
54174
  bookmark?: Maybe<KnowledgeDiscoveryBookmarkResult>;
54167
54175
  definition?: Maybe<KnowledgeDiscoveryDefinitionResult>;
54168
54176
  definitionHistory?: Maybe<KnowledgeDiscoveryDefinitionHistoryResult>;
@@ -54183,6 +54191,11 @@ export declare type KnowledgeDiscoveryQueryApiAdminhubBookmarksArgs = {
54183
54191
  first?: InputMaybe<Scalars['Int']['input']>;
54184
54192
  orgId: Scalars['String']['input'];
54185
54193
  };
54194
+ export declare type KnowledgeDiscoveryQueryApiAutoDefinitionArgs = {
54195
+ contentId: Scalars['String']['input'];
54196
+ keyPhrase: Scalars['String']['input'];
54197
+ workspaceId: Scalars['String']['input'];
54198
+ };
54186
54199
  export declare type KnowledgeDiscoveryQueryApiBookmarkArgs = {
54187
54200
  cloudId: Scalars['String']['input'];
54188
54201
  keyPhrase: Scalars['String']['input'];
@@ -67454,6 +67467,14 @@ export declare type TownsquareEditGoalPayload = {
67454
67467
  __typename?: 'TownsquareEditGoalPayload';
67455
67468
  goal?: Maybe<TownsquareGoal>;
67456
67469
  };
67470
+ export declare type TownsquareEditGoalTypeInput = {
67471
+ goalTypeAri: Scalars['String']['input'];
67472
+ state?: InputMaybe<TownsquareGoalTypeState>;
67473
+ };
67474
+ export declare type TownsquareEditGoalTypePayload = {
67475
+ __typename?: 'TownsquareEditGoalTypePayload';
67476
+ goalType?: Maybe<TownsquareGoalType>;
67477
+ };
67457
67478
  export declare type TownsquareGoal = Node & {
67458
67479
  __typename?: 'TownsquareGoal';
67459
67480
  archived: Scalars['Boolean']['output'];
@@ -67577,6 +67598,7 @@ export declare type TownsquareMutationApi = {
67577
67598
  createRelationships?: Maybe<TownsquareCreateRelationshipsPayload>;
67578
67599
  deleteRelationships?: Maybe<TownsquareDeleteRelationshipsPayload>;
67579
67600
  editGoal?: Maybe<TownsquareEditGoalPayload>;
67601
+ editGoalType?: Maybe<TownsquareEditGoalTypePayload>;
67580
67602
  setParentGoal?: Maybe<TownsquareSetParentGoalPayload>;
67581
67603
  unarchiveGoal?: Maybe<TownsquareArchiveGoalPayload>;
67582
67604
  };
@@ -67595,6 +67617,9 @@ export declare type TownsquareMutationApiDeleteRelationshipsArgs = {
67595
67617
  export declare type TownsquareMutationApiEditGoalArgs = {
67596
67618
  input: TownsquareEditGoalInput;
67597
67619
  };
67620
+ export declare type TownsquareMutationApiEditGoalTypeArgs = {
67621
+ input: TownsquareEditGoalTypeInput;
67622
+ };
67598
67623
  export declare type TownsquareMutationApiSetParentGoalArgs = {
67599
67624
  input?: InputMaybe<TownsquareSetParentGoalInput>;
67600
67625
  };
@@ -70406,6 +70431,7 @@ export declare type VirtualAgentConfigurationResult = VirtualAgentConfiguration
70406
70431
  export declare type VirtualAgentConversation = Node & {
70407
70432
  __typename?: 'VirtualAgentConversation';
70408
70433
  action?: Maybe<VirtualAgentConversationActionType>;
70434
+ channel?: Maybe<VirtualAgentConversationChannel>;
70409
70435
  csat?: Maybe<Scalars['Int']['output']>;
70410
70436
  firstMessageContent?: Maybe<Scalars['String']['output']>;
70411
70437
  id: Scalars['ID']['output'];
@@ -70419,6 +70445,12 @@ export declare enum VirtualAgentConversationActionType {
70419
70445
  Matched = "MATCHED",
70420
70446
  Unhandled = "UNHANDLED"
70421
70447
  }
70448
+ export declare enum VirtualAgentConversationChannel {
70449
+ HelpCenter = "HELP_CENTER",
70450
+ JsmPortal = "JSM_PORTAL",
70451
+ MsTeams = "MS_TEAMS",
70452
+ Slack = "SLACK"
70453
+ }
70422
70454
  export declare enum VirtualAgentConversationCsatOptionType {
70423
70455
  CsatOption_1 = "CSAT_OPTION_1",
70424
70456
  CsatOption_2 = "CSAT_OPTION_2",
@@ -70445,6 +70477,7 @@ export declare type VirtualAgentConversationsConnection = {
70445
70477
  };
70446
70478
  export declare type VirtualAgentConversationsFilter = {
70447
70479
  actions?: InputMaybe<Array<VirtualAgentConversationActionType>>;
70480
+ channels?: InputMaybe<Array<VirtualAgentConversationChannel>>;
70448
70481
  csatOptions?: InputMaybe<Array<VirtualAgentConversationCsatOptionType>>;
70449
70482
  endDate: Scalars['DateTime']['input'];
70450
70483
  startDate: Scalars['DateTime']['input'];