@sap/artifact-management-types 1.51.0 → 1.53.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.51.0",
3
+ "version": "1.53.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.51.0"
13
+ "@sap/artifact-management-base-types": "1.53.1"
14
14
  },
15
15
  "devDependencies": {
16
16
  "gulp": "4.0.2"
@@ -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(): Entity | ViewNode | null;
343
- setSource(source: ViewNode | Entity): Entity | ViewNode;
342
+ getSource(): ViewNode | Entity | null;
343
+ setSource(source: ViewNode | Entity): ViewNode | Entity;
344
344
  createMapping(attributes: WritableCalcViewModel<Mapping>, skippedNodes: any): Mapping;
345
345
  }
346
346
  export declare class Element extends AbstractModelClass<Element> {
@@ -4,6 +4,8 @@ import { Item, ProjectEntityReaderReadOptions } from '@sap/artifact-management-b
4
4
  * Extracts metadata from each data product definition file.
5
5
  */
6
6
  export default class DataProductItemReader {
7
+ private static readonly BDC_DESTINATION_NAME;
8
+ private static readonly DEFAULT_DOMAIN;
7
9
  matchConditions: {
8
10
  filePatterns: string[];
9
11
  };
@@ -13,6 +15,14 @@ export default class DataProductItemReader {
13
15
  * Read all .dpd files in the current directory and extract their metadata.
14
16
  */
15
17
  read({ fs }: ProjectEntityReaderReadOptions): Promise<Item[]>;
18
+ /**
19
+ * Resolves the base URL of the SAP BDC destination.
20
+ */
21
+ private getBDCBaseUrl;
22
+ /**
23
+ * Builds the full SAP Data Product Studio URL for a given data product.
24
+ */
25
+ private buildFullUrl;
16
26
  /**
17
27
  * Parse a .dpd file and create an Item from it.
18
28
  */
@@ -93,4 +93,6 @@ export interface DataProductInfo {
93
93
  version: string;
94
94
  majorVersion: string;
95
95
  description?: string;
96
+ hostUrl?: string;
97
+ fullUrl?: string;
96
98
  }
@@ -0,0 +1,3 @@
1
+ import { Plugin } from '@sap/artifact-management-base-types';
2
+ declare const DocPlugin: Plugin;
3
+ export default DocPlugin;
@@ -0,0 +1,22 @@
1
+ import { KeyIn, ProjectEntityReaderReadOptions, ModuleType, Item, ModuleData, ModuleReader, DetectionMechanism } from '@sap/artifact-management-base-types';
2
+ export default class DocModuleReader extends ModuleReader {
3
+ supportedProjectType: string[];
4
+ getType(): KeyIn<typeof ModuleType>;
5
+ getDetectionMechanism(): DetectionMechanism;
6
+ matchConditions: {
7
+ filePatterns: string[];
8
+ };
9
+ tags: string[];
10
+ itemTags: string[];
11
+ itemReaders: {
12
+ matchConditions: {
13
+ filePatterns: string[];
14
+ };
15
+ types: string[];
16
+ tags: string[];
17
+ read: (options: ProjectEntityReaderReadOptions) => Promise<Item[]>;
18
+ }[];
19
+ read({ fs }: ProjectEntityReaderReadOptions): Promise<ModuleData | undefined>;
20
+ private readPrd;
21
+ private readSpecs;
22
+ }
@@ -0,0 +1,12 @@
1
+ import { ProjectReader, ProjectReaderOptions, ProjectData, ProjectType, DetectionMechanism, KeyIn } from '@sap/artifact-management-base-types';
2
+ import DocModuleReader from './DocModuleReader';
3
+ export default class DocProjectReader extends ProjectReader {
4
+ constructor();
5
+ getType(): KeyIn<typeof ProjectType>;
6
+ getDetectionMechanism(): DetectionMechanism;
7
+ moduleSearchPattern(): Promise<string[]>;
8
+ additionalModuleReaders: DocModuleReader[][];
9
+ tags: string[];
10
+ read({ fs }: ProjectReaderOptions): Promise<ProjectData | undefined>;
11
+ private isDocProject;
12
+ }
@@ -1,2 +1 @@
1
- #!/usr/bin/env node
2
1
  export declare function cli(): Promise<void>;