@sap/artifact-management-types 1.30.0 → 1.32.0

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.30.0",
3
+ "version": "1.32.0",
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.30.0"
13
+ "@sap/artifact-management-base-types": "1.32.0"
14
14
  },
15
15
  "devDependencies": {
16
16
  "gulp": "4.0.2"
@@ -1,7 +1,5 @@
1
1
  import { KeyIn, ProjectType, ProjectRunner, RunOptions } from '@sap/artifact-management-base-types';
2
2
  export default class CapRun extends ProjectRunner {
3
3
  getType(): KeyIn<typeof ProjectType>;
4
- run({ fs, project, options }: RunOptions): Promise<void>;
5
- private needRun;
6
- private buildOptions;
4
+ prepareForRun({ fs, project, options }: RunOptions): Promise<void>;
7
5
  }
@@ -14,12 +14,18 @@ export default class CalculationViewItemReader {
14
14
  getDetails({ fs, matchedFiles }: ProjectEntityReaderReadOptions): Promise<Item[]>;
15
15
  static getDetail(fs: ProjectFileSystem, filePath: string): Promise<ViewModel | null>;
16
16
  static viewModelToItem(viewModel: ViewModel, file: string): Item;
17
+ static setEntityGetter(entityGetter: (fs: ProjectFileSystem, entityName: string) => Promise<{
18
+ type: EntityType;
19
+ columns: Element[];
20
+ } | null>): void;
17
21
  }
18
22
  export declare const ProxyResolver: {
19
23
  resolve(fs: ProjectFileSystem, rootModel: ViewModel, isAssociation: boolean): Promise<void[]>;
20
24
  _resolveEntities(fs: ProjectFileSystem, rootModel: ViewModel, isAssociation: boolean): Promise<void[]>;
21
25
  };
22
26
  export declare class ProjectApiGeneralReader {
27
+ private static entityGetter;
28
+ static setEntityGetter(entityGetter: typeof ProjectApiGeneralReader.entityGetter): void;
23
29
  static getDetailByName(fs: ProjectFileSystem, entityName: string): Promise<{
24
30
  type: EntityType;
25
31
  columns: Element[];
@@ -339,8 +339,8 @@ export declare class Input extends AbstractModelClass<Input> {
339
339
  readonly mappings: ModelCollection<Mapping>;
340
340
  private _source;
341
341
  constructor(attributes: WritableCalcViewModel<Input>, skippedNodes: any);
342
- getSource(): ViewNode | Entity | null;
343
- setSource(source: ViewNode | Entity): ViewNode | Entity;
342
+ getSource(): Entity | ViewNode | null;
343
+ setSource(source: ViewNode | Entity): Entity | ViewNode;
344
344
  createMapping(attributes: WritableCalcViewModel<Mapping>, skippedNodes: any): Mapping;
345
345
  }
346
346
  export declare class Element extends AbstractModelClass<Element> {
@@ -49,7 +49,7 @@ export default interface ProjectApi {
49
49
  * @param options comma separated list of options and their values. e.g. ['port', '8008', 'open']. Currently only supports port number and open option.
50
50
  * @param logger
51
51
  */
52
- run(options?: string[] | undefined, logger?: IChildLogger): Promise<void>;
52
+ prepareForRun(options?: string[] | undefined, logger?: IChildLogger): Promise<void>;
53
53
  build(options?: MtaGeneratorSettings, logger?: IChildLogger): Promise<void>;
54
54
  buildManifest(options?: MtaGeneratorSettings, logger?: IChildLogger): Promise<void>;
55
55
  removeManifest(): Promise<void>;
@@ -93,4 +93,5 @@ export default interface ProjectApi {
93
93
  */
94
94
  getDataInfo(data: any, mainEntityName?: string, logger?: IChildLogger): Promise<any>;
95
95
  enableSaas(): Promise<void>;
96
+ updateXsuaaService(): Promise<boolean>;
96
97
  }
@@ -1 +1,2 @@
1
+ #!/usr/bin/env node
1
2
  export declare function cli(): Promise<void>;
@@ -53,7 +53,7 @@ export default class ProjectImpl implements ProjectApi {
53
53
  * @param ref
54
54
  */
55
55
  getDetailInfo(type: KeyIn<typeof ItemType>, ref: string, entityPath?: string, options?: ItemDetailInfoOptions, logger?: IChildLogger): Promise<Item | undefined>;
56
- run(options?: string[] | undefined, logger?: IChildLogger): Promise<void>;
56
+ prepareForRun(options?: string[] | undefined, logger?: IChildLogger): Promise<void>;
57
57
  buildManifest(options?: MtaGeneratorSettings, logger?: IChildLogger): Promise<void>;
58
58
  getManifest(logger?: IChildLogger): Promise<any>;
59
59
  build(options?: MtaGeneratorSettings, logger?: IChildLogger): Promise<void>;
@@ -74,6 +74,7 @@ export default class ProjectImpl implements ProjectApi {
74
74
  } | undefined>;
75
75
  invalidate_cachedLaunchURL(): Promise<void>;
76
76
  getDataInfo(data: any, mainEntityName?: string, logger?: IChildLogger): Promise<any>;
77
+ updateXsuaaService(): Promise<boolean>;
77
78
  private modifyCDSProfile;
78
79
  private modifyCDSProductionDB;
79
80
  private modifyLowcodeEventHandler;
@@ -0,0 +1 @@
1
+ export declare const updateXsuaaService: (projectPath: string, appName: string) => boolean;