@sap/artifact-management-types 1.38.0 → 1.39.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/artifact-management-types",
3
- "version": "1.38.0",
3
+ "version": "1.39.1",
4
4
  "description": "Type signatures for artifact management",
5
5
  "types": "./src/index.d.ts",
6
6
  "main": "./src/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "pack": "npm run modify-types-import && npm pack"
11
11
  },
12
12
  "dependencies": {
13
- "@sap/artifact-management-base-types": "1.38.0"
13
+ "@sap/artifact-management-base-types": "1.39.1"
14
14
  },
15
15
  "devDependencies": {
16
16
  "gulp": "4.0.2"
@@ -5,4 +5,5 @@ export default interface MtaGeneratorSettings {
5
5
  platform?: string;
6
6
  vendorDependency?: boolean;
7
7
  buildCodeServicePlan?: boolean;
8
+ updateXsSecurity?: boolean;
8
9
  }
@@ -5,6 +5,7 @@ export declare class CapDestinationModuleGenerator implements ModuleManifestGene
5
5
  beforeBuildCommands(): Promise<string[]>;
6
6
  getModuleManifest(context: ModuleGeneratorContext): Promise<MtaModule | null>;
7
7
  private getDesinationsForCapServices;
8
+ private getDesinationsForWorkzone;
8
9
  private getDestinationsToBeCreated;
9
10
  private getDestinationToServiceInstanceInfo;
10
11
  private getDestinationToResourceBehindXsuaaInfo;
@@ -2,7 +2,7 @@ import { KeyIn, ModuleType, ModuleGeneratorContext, ModuleManifestGenerator, Mta
2
2
  export default class CapUIDeployerGenerator implements ModuleManifestGenerator {
3
3
  getType(): KeyIn<typeof ModuleType>;
4
4
  provideResources(): Promise<never[]>;
5
- beforeBuildCommands(): Promise<string[]>;
5
+ beforeBuildCommands(context: ModuleGeneratorContext): Promise<string[]>;
6
6
  getModuleManifest(context: ModuleGeneratorContext): Promise<MtaModule | null>;
7
- requires(): MtaModuleRequires[];
7
+ requires(context: ModuleGeneratorContext): MtaModuleRequires[];
8
8
  }
@@ -16,7 +16,9 @@ export default class ItemUtil {
16
16
  [key: string]: string;
17
17
  }): void;
18
18
  static addLinksToAppLogicItem(fs: ProjectFileSystem, file: string, capApi: CapApi, logicItem: Item): Promise<void>;
19
+ static addLinksToJavaAppLogicItem(fs: ProjectFileSystem, file: string, capApi: CapApi, logicItem: Item): Promise<void>;
19
20
  private static addLinksToAppLogicItemWithEntity;
21
+ private static addLinksToAppLogicItemWithService;
20
22
  private static addLinksToAppLogicItemWithoutEntity;
21
23
  static addLinkToRoles(cdsObject: CDSDefinition, item: Item): void;
22
24
  static getOperationItem(fs: ProjectFileSystem, operation: any, tags: string[], withDetailInfo: boolean): Item;
@@ -5,5 +5,5 @@ export default class PathUtil {
5
5
  * we need to find the correct root drive and we need to prefix the path with the correct root drive (C:, D: etc.)
6
6
  */
7
7
  static getLocationForWindows(path: string, rootPath: string): string;
8
- static getExternalServicePaths(fs: ProjectFileSystem): Promise<Set<string>>;
8
+ static getExternalServiceInfo(fs: ProjectFileSystem): Promise<Set<any>>;
9
9
  }
@@ -1,5 +1,26 @@
1
- import { ModuleType, KeyIn } from '@sap/artifact-management-base-types';
1
+ import { ProjectFileSystem, Item, ModuleType, ModuleData, ProjectEntityReaderReadOptions, KeyIn, ItemDetailInfoOptions } from '@sap/artifact-management-base-types';
2
2
  import CapModuleReader from '../../cap/readers/CapModuleReader';
3
3
  export default class JavaModuleReader extends CapModuleReader {
4
4
  getType(): KeyIn<typeof ModuleType>;
5
+ itemReaders: ({
6
+ matchConditions: {
7
+ requiredFilePatterns: string[];
8
+ };
9
+ types: string[];
10
+ tags: string[];
11
+ read: (options: ProjectEntityReaderReadOptions) => Promise<Item[]>;
12
+ detailInfo: (fs: ProjectFileSystem, ref: string, options?: ItemDetailInfoOptions | undefined) => Promise<Item | undefined>;
13
+ } | {
14
+ matchConditions: {
15
+ requiredFilePatterns: string[];
16
+ };
17
+ types: string[];
18
+ tags: string[];
19
+ read: (options: ProjectEntityReaderReadOptions) => Promise<Item[]>;
20
+ detailInfo?: undefined;
21
+ })[];
22
+ readJavaApplicationLogic({ fs, matchedFiles }: ProjectEntityReaderReadOptions): Promise<Item[]>;
23
+ read({ fs }: {
24
+ fs: ProjectFileSystem;
25
+ }): Promise<ModuleData | undefined>;
5
26
  }
@@ -6,4 +6,5 @@ export default class JavaProjectReader extends ProjectReader {
6
6
  moduleSearchPattern(): Promise<string[]>;
7
7
  tags: string[];
8
8
  read({ fs }: ProjectReaderOptions): Promise<ProjectData | undefined>;
9
+ resolveProperty(value: string, properties: Record<string, string>): string;
9
10
  }
@@ -8,6 +8,6 @@ export default class XsSecurityModuleManifestGenerator implements ModuleManifest
8
8
  requires(): MtaModuleRequires[];
9
9
  getXsSecurityContents(fs: ProjectFileSystem): Promise<any>;
10
10
  private configureXsSecurity;
11
- getRoleCollection(fs: ProjectFileSystem): Promise<any[]>;
11
+ getRoleCollection(fs: ProjectFileSystem, updateXsSecurity: boolean): Promise<any[]>;
12
12
  private getPDMServiceItem;
13
13
  }