@sap/artifact-management-types 1.23.0 → 1.23.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/artifact-management-types",
3
- "version": "1.23.0",
3
+ "version": "1.23.2",
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.23.0"
13
+ "@sap/artifact-management-base-types": "1.23.2"
14
14
  },
15
15
  "devDependencies": {
16
16
  "gulp": "4.0.2"
@@ -0,0 +1,31 @@
1
+ import { ProjectFileSystem, ProjectEntityReaderReadOptions, ModuleType, Item, ModuleData, ModuleReader, DetectionMechanism, KeyIn, ProjectContext } from '@sap/artifact-management-base-types';
2
+ interface BasItemReaderContext {
3
+ withDetailInfo?: boolean;
4
+ }
5
+ export default class BasEmptyModuleReader extends ModuleReader {
6
+ getType(): KeyIn<typeof ModuleType>;
7
+ getDetectionMechanism(): DetectionMechanism;
8
+ matchConditions: {
9
+ requiredFilePatterns: string[];
10
+ };
11
+ itemTags: string[];
12
+ itemReaders: {
13
+ matchConditions: {
14
+ requiredFilePatterns: string[];
15
+ };
16
+ types: string[];
17
+ tags: string[];
18
+ read: (options: ProjectEntityReaderReadOptions) => Promise<Item[]>;
19
+ }[];
20
+ tags: string[];
21
+ prepareItemReaderContext(fs: ProjectFileSystem, context: ProjectContext): Promise<BasItemReaderContext | undefined>;
22
+ read({ fs }: {
23
+ fs: ProjectFileSystem;
24
+ }): Promise<ModuleData | undefined>;
25
+ readItems({ fs, context }: ProjectEntityReaderReadOptions): Promise<Item[]>;
26
+ private getServiceItem;
27
+ private getServiceEntityItems;
28
+ private getEntityItem;
29
+ private addDetailInfo;
30
+ }
31
+ export {};
@@ -1,8 +1,10 @@
1
1
  import { DetectionMechanism, KeyIn, ProjectData, ProjectFileSystem, ProjectReader, ProjectReaderOptions, ProjectType } from '@sap/artifact-management-base-types';
2
+ import BasEmptyModuleReader from './BasEmptyModuleReader';
2
3
  export default class BasEmptyProjectReader extends ProjectReader {
3
4
  constructor();
4
5
  getType(): KeyIn<typeof ProjectType>;
5
6
  getDetectionMechanism(): DetectionMechanism;
7
+ additionalModuleReaders: BasEmptyModuleReader[][];
6
8
  tags: string[];
7
9
  read({ fs }: ProjectReaderOptions): Promise<ProjectData | undefined>;
8
10
  isFristLevelFoder(absRootPath: string, absBasePath: string): boolean;
@@ -0,0 +1,12 @@
1
+ export interface EntitySet {
2
+ name: string;
3
+ type: string;
4
+ }
5
+ export default class EdmxUtil {
6
+ static parse(content: string): undefined;
7
+ static getEntitySet(edmxObject: any): EntitySet[];
8
+ static getEntityTypeProperties(edmxObject: any, type: string): any[];
9
+ private static getDataServices;
10
+ private static getEntitySetFromDataServices;
11
+ private static getEntitySetFromDataService;
12
+ }
@@ -1,4 +1,4 @@
1
- import { ProjectFileSystem, Item, ModuleReader, ModuleType, ModuleData, ProjectEntityReaderReadOptions, DetectionMechanism, KeyIn, ItemDetailInfoOptions } from '@sap/artifact-management-base-types';
1
+ import { ProjectFileSystem, Item, ModuleReader, ModuleType, ModuleData, ProjectEntityReaderReadOptions, DetectionMechanism, KeyIn, ItemDetailInfoOptions, ProjectContext } from '@sap/artifact-management-base-types';
2
2
  interface CapItemReaderContext {
3
3
  withDetailInfo?: boolean;
4
4
  }
@@ -27,17 +27,18 @@ export default class CapModuleReader extends ModuleReader {
27
27
  detailInfo?: undefined;
28
28
  })[];
29
29
  tags: string[];
30
- prepareItemReaderContext(fs: ProjectFileSystem, withDetailInfo?: boolean): Promise<CapItemReaderContext | undefined>;
30
+ prepareItemReaderContext(fs: ProjectFileSystem, context: ProjectContext): Promise<CapItemReaderContext | undefined>;
31
31
  getCapModulesFolderMap(fs: ProjectFileSystem): Promise<any>;
32
32
  getMappedFolderType(folderPath: string, fs: ProjectFileSystem): Promise<string | undefined>;
33
33
  read({ fs }: {
34
34
  fs: ProjectFileSystem;
35
35
  }): Promise<ModuleData | undefined>;
36
- provideFromCds({ fs, context }: ProjectEntityReaderReadOptions): Promise<Item[]>;
36
+ provideFromCds({ fs, matchedFiles, context }: ProjectEntityReaderReadOptions): Promise<Item[]>;
37
37
  detailInfo(fs: ProjectFileSystem, ref: string, options?: ItemDetailInfoOptions): Promise<Item | undefined>;
38
38
  readCSV({ fs, matchedFiles }: ProjectEntityReaderReadOptions): Promise<Item[]>;
39
39
  readApplicationLogic({ fs, matchedFiles }: ProjectEntityReaderReadOptions): Promise<Item[]>;
40
40
  private addUnboundFunctionItems;
41
41
  private addUnboundActionItems;
42
+ private addEventItems;
42
43
  }
43
44
  export {};
@@ -20,8 +20,10 @@ export default class ItemUtil {
20
20
  private static addLinksToAppLogicItemWithoutEntity;
21
21
  static addLinkToRoles(cdsObject: CDSDefinition, item: Item): void;
22
22
  static getOperationItem(fs: ProjectFileSystem, operation: any, tags: string[], withDetailInfo: boolean): Item;
23
+ static getEventItem(fs: ProjectFileSystem, event: any, tags: string[], withDetailInfo: boolean): Item;
23
24
  static addDetailInfoForOperaton(item: Item, operation: any): void;
24
25
  static addNamespaceItemFromDBEntityItem(items: Map<string, Item>, dbEntityItem: Item, namespace: string, itemTags: string[]): void;
25
26
  static getAttributeInfo(entity: CDSDefinition): any;
26
27
  private static collectAttributes;
28
+ private static getPath;
27
29
  }
@@ -1,4 +1,4 @@
1
- import { ModuleData, Item, ProjectFileSystem, FileSystemWatchManager, ModuleReader } from '@sap/artifact-management-base-types';
1
+ import { ModuleData, Item, ProjectFileSystem, FileSystemWatchManager, ModuleReader, ProjectContext } from '@sap/artifact-management-base-types';
2
2
  import ItemSetInstance from './ItemSetInstance';
3
3
  import ProjectEntityInstance from './ProjectEntityInstance';
4
4
  declare class ModuleInstance extends ProjectEntityInstance<ModuleData | undefined> {
@@ -6,11 +6,11 @@ declare class ModuleInstance extends ProjectEntityInstance<ModuleData | undefine
6
6
  constructor(watchManager: FileSystemWatchManager, fs: ProjectFileSystem, readers: ModuleReader[]);
7
7
  watchForChangesInModuleRootFolder(): void;
8
8
  getFs(): ProjectFileSystem;
9
- loadItemSets(moduleData: ModuleData | undefined, withDetailInfo?: boolean): Promise<ItemSetInstance[]>;
9
+ loadItemSets(moduleData: ModuleData | undefined, projectContext: ProjectContext): Promise<ItemSetInstance[]>;
10
10
  getData(): Promise<ModuleData | undefined>;
11
- getItemSets(withDetailInfo?: boolean): Promise<ItemSetInstance[]>;
11
+ getItemSets(context: ProjectContext): Promise<ItemSetInstance[]>;
12
12
  getModuleType(): Promise<string>;
13
- getItems(withDetailInfo?: boolean): Promise<{
13
+ getItems(context: ProjectContext): Promise<{
14
14
  items: Item[];
15
15
  info?: {};
16
16
  }>;