Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sap-ux/axios-extension

Package Overview
Dependencies
Maintainers
3
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap-ux/axios-extension - npm Package Compare versions

Comparing version 1.15.1 to 1.16.0

dist/abap/adt-catalog/services/abapcdsview-service.d.ts

8

dist/abap/abap-service-provider.d.ts

@@ -7,3 +7,3 @@ import { ServiceProvider } from '../base/service-provider';

import { LayeredRepositoryService } from './lrep-service';
import type { AtoSettings, BusinessObject } from './types';
import type { AbapCDSView, AtoSettings, BusinessObject } from './types';
import { AdtService } from './adt-catalog/services';

@@ -102,8 +102,8 @@ import { UiServiceGenerator } from './adt-catalog/generators/ui-service-generator';

/**
* Create a UI Service generator for the given business object.
* Create a UI Service generator for the given referenced object.
*
* @param bo - business object
* @param referencedObject - referenced object (business object or abap cds view)
* @returns a UI Service generator
*/
getUiServiceGenerator(bo: BusinessObject): Promise<UiServiceGenerator>;
getUiServiceGenerator(referencedObject: BusinessObject | AbapCDSView): Promise<UiServiceGenerator>;
/**

@@ -110,0 +110,0 @@ * Get the service URL from the generator config.

@@ -198,15 +198,15 @@ "use strict";

/**
* Create a UI Service generator for the given business object.
* Create a UI Service generator for the given referenced object.
*
* @param bo - business object
* @param referencedObject - referenced object (business object or abap cds view)
* @returns a UI Service generator
*/
async getUiServiceGenerator(bo) {
async getUiServiceGenerator(referencedObject) {
const generatorService = await this.getAdtService(services_1.GeneratorService);
if (!generatorService) {
throw new Error('Generators are not support on this system');
throw new Error('Generators are not supported on this system');
}
const config = await generatorService.getUIServiceGeneratorConfig(bo.name);
const config = await generatorService.getUIServiceGeneratorConfig(referencedObject.uri);
const gen = this.createService(this.getServiceUrlFromConfig(config), ui_service_generator_1.UiServiceGenerator);
gen.configure(config, bo);
gen.configure(config, referencedObject);
return gen;

@@ -213,0 +213,0 @@ }

import type { GeneratorEntry } from './types';
import type { BusinessObject, ValidationResponse } from '../../types';
import type { AbapCDSView, BusinessObject, ValidationResponse } from '../../types';
import { AdtService } from '../services';

@@ -8,3 +8,3 @@ /**

export declare class UiServiceGenerator extends AdtService {
protected bo: BusinessObject;
protected referencedObject: BusinessObject | AbapCDSView;
/**

@@ -14,5 +14,5 @@ * Configure the UI service generator.

* @param _config - The generator configuration.
* @param bo - The business object.
* @param referencedObject - The referenced object (business object or abap cds view).
*/
configure(_config: GeneratorEntry, bo: BusinessObject): void;
configure(_config: GeneratorEntry, referencedObject: BusinessObject | AbapCDSView): void;
/**

@@ -19,0 +19,0 @@ * Get the schema of the service binding.

@@ -9,3 +9,3 @@ "use strict";

class UiServiceGenerator extends services_1.AdtService {
bo;
referencedObject;
/**

@@ -15,6 +15,6 @@ * Configure the UI service generator.

* @param _config - The generator configuration.
* @param bo - The business object.
* @param referencedObject - The referenced object (business object or abap cds view).
*/
configure(_config, bo) {
this.bo = bo;
configure(_config, referencedObject) {
this.referencedObject = referencedObject;
}

@@ -32,3 +32,3 @@ /**

params: {
referencedObject: this.bo.uri
referencedObject: this.referencedObject.uri
}

@@ -50,3 +50,3 @@ });

params: {
referencedObject: this.bo.uri,
referencedObject: this.referencedObject.uri,
package: pckg

@@ -76,3 +76,3 @@ }

params: {
referencedObject: this.bo.uri,
referencedObject: this.referencedObject.uri,
package: pckg,

@@ -97,3 +97,3 @@ checks: 'package'

params: {
referencedObject: this.bo.uri,
referencedObject: this.referencedObject.uri,
checks: 'package,referencedobject,authorization'

@@ -119,3 +119,3 @@ }

params: {
referencedObject: this.bo.uri,
referencedObject: this.referencedObject.uri,
corrNr: transport

@@ -122,0 +122,0 @@ }

@@ -20,9 +20,9 @@ import { AdtService } from './adt-service';

/**
* Get the UI service generator for the given business object.
* Get the UI service generator for the given referenced object.
*
* @param businessObjectName - The business object name.
* @param objectUri - The object (business object or abap cds view) uri.
* @returns TBD
*/
getUIServiceGeneratorConfig(businessObjectName: string): Promise<GeneratorEntry>;
getUIServiceGeneratorConfig(objectUri: string): Promise<GeneratorEntry>;
}
//# sourceMappingURL=generator-service.d.ts.map

@@ -26,8 +26,8 @@ "use strict";

/**
* Get the UI service generator for the given business object.
* Get the UI service generator for the given referenced object.
*
* @param businessObjectName - The business object name.
* @param objectUri - The object (business object or abap cds view) uri.
* @returns TBD
*/
async getUIServiceGeneratorConfig(businessObjectName) {
async getUIServiceGeneratorConfig(objectUri) {
const response = await this.get('', {

@@ -38,3 +38,3 @@ headers: {

params: {
referencedObject: `/sap/bc/adt/bo/behaviordefinitions/${businessObjectName.toLocaleLowerCase()}`,
referencedObject: objectUri,
type: 'webapi'

@@ -41,0 +41,0 @@ }

@@ -9,2 +9,3 @@ export { AdtService } from './adt-service';

export { BusinessObjectsService } from './businessobjects-service';
export { AbapCDSViewService } from './abapcdsview-service';
//# sourceMappingURL=index.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BusinessObjectsService = exports.GeneratorService = exports.FileStoreService = exports.ListPackageService = exports.TransportRequestService = exports.TransportChecksService = exports.AtoService = exports.AdtService = void 0;
exports.AbapCDSViewService = exports.BusinessObjectsService = exports.GeneratorService = exports.FileStoreService = exports.ListPackageService = exports.TransportRequestService = exports.TransportChecksService = exports.AtoService = exports.AdtService = void 0;
var adt_service_1 = require("./adt-service");

@@ -20,2 +20,4 @@ Object.defineProperty(exports, "AdtService", { enumerable: true, get: function () { return adt_service_1.AdtService; } });

Object.defineProperty(exports, "BusinessObjectsService", { enumerable: true, get: function () { return businessobjects_service_1.BusinessObjectsService; } });
var abapcdsview_service_1 = require("./abapcdsview-service");
Object.defineProperty(exports, "AbapCDSViewService", { enumerable: true, get: function () { return abapcdsview_service_1.AbapCDSViewService; } });
//# sourceMappingURL=index.js.map

@@ -122,2 +122,7 @@ /**

};
export type AbapCDSView = {
name: string;
uri: string;
description?: string;
};
export type PublishResponse = {

@@ -124,0 +129,0 @@ SEVERITY: string;

{
"name": "@sap-ux/axios-extension",
"version": "1.15.1",
"version": "1.16.0",
"description": "Extension of the Axios module adding convenience methods to interact with SAP systems especially with OData services.",

@@ -32,3 +32,3 @@ "repository": {

"supertest": "6.3.3",
"@sap-ux/project-access": "1.23.0"
"@sap-ux/project-access": "1.25.5"
},

@@ -35,0 +35,0 @@ "files": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc