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

@sap-cloud-sdk/odata-v2

Package Overview
Dependencies
Maintainers
5
Versions
1143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap-cloud-sdk/odata-v2 - npm Package Compare versions

Comparing version 2.0.0-20211118154241.0 to 2.0.0-20211118182919.0

2

dist/batch-change-set.d.ts

@@ -1,2 +0,2 @@

import { BatchChangeSet } from '@sap-cloud-sdk/odata-common';
import { BatchChangeSet } from '@sap-cloud-sdk/odata-common/internal';
import { Entity } from './entity';

@@ -3,0 +3,0 @@ import { CreateRequestBuilder } from './request-builder/create-request-builder';

@@ -1,2 +0,2 @@

import { EdmTypeCommon, ExclusiveEdmTypeV2 } from '@sap-cloud-sdk/odata-common';
import { EdmTypeCommon, ExclusiveEdmTypeV2 } from '@sap-cloud-sdk/odata-common/internal';
/**

@@ -3,0 +3,0 @@ * Allowed Edm types for OData v2.

@@ -1,2 +0,2 @@

import { EntityDeserializer, EdmTypeShared } from '@sap-cloud-sdk/odata-common';
import { EntityDeserializer, EdmTypeShared } from '@sap-cloud-sdk/odata-common/internal';
import { EdmToPrimitive } from './payload-value-converter';

@@ -13,4 +13,4 @@ import { EdmType } from './edm-types';

*/
export declare const deserializeEntity: (json: any, entityConstructor: import("@sap-cloud-sdk/odata-common").Constructable<any, unknown>, requestHeader?: any) => any;
export declare const deserializeComplexType: (json: Record<string, any>, complexType: import("@sap-cloud-sdk/odata-common/dist/selectable/complex-type-namespace").ComplexTypeNamespace<any>) => any;
export declare const deserializeEntity: (json: any, entityConstructor: import("@sap-cloud-sdk/odata-common/internal").Constructable<any, unknown>, requestHeader?: any) => any;
export declare const deserializeComplexType: (json: Record<string, any>, complexType: import("@sap-cloud-sdk/odata-common/internal").ComplexTypeNamespace<any>) => any;
/**

@@ -17,0 +17,0 @@ * @internal

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.entityDeserializerV2 = exports.deserializeComplexTypeV2 = exports.deserializeEntityV2 = exports.deserializeComplexType = exports.deserializeEntity = exports.entityDeserializer = void 0;
const odata_common_1 = require("@sap-cloud-sdk/odata-common");
const internal_1 = require("@sap-cloud-sdk/odata-common/internal");
const payload_value_converter_1 = require("./payload-value-converter");

@@ -13,3 +13,3 @@ const extract_odata_etag_1 = require("./extract-odata-etag");

*/
exports.entityDeserializer = (0, odata_common_1.entityDeserializer)(payload_value_converter_1.edmToTs, extract_odata_etag_1.extractODataEtag, response_data_accessor_1.getLinkedCollectionResult);
exports.entityDeserializer = (0, internal_1.entityDeserializer)(payload_value_converter_1.edmToTs, extract_odata_etag_1.extractODataEtag, response_data_accessor_1.getLinkedCollectionResult);
exports.entityDeserializerV2 = exports.entityDeserializer;

@@ -16,0 +16,0 @@ /**

@@ -1,2 +0,2 @@

import { EntitySerializer } from '@sap-cloud-sdk/odata-common';
import { EntitySerializer } from '@sap-cloud-sdk/odata-common/internal';
/**

@@ -11,3 +11,3 @@ * Entity serializer instance for v2 entities.

*/
export declare const serializeEntity: (entity: any, entityConstructor: import("@sap-cloud-sdk/odata-common").Constructable<any, unknown>, diff?: boolean | undefined) => Record<string, any>;
export declare const serializeEntity: (entity: any, entityConstructor: import("@sap-cloud-sdk/odata-common/internal").Constructable<any, unknown>, diff?: boolean | undefined) => Record<string, any>;
/**

@@ -20,3 +20,3 @@ * @internal

*/
export declare const serializeEntityNonCustomFields: (entity: any, entityConstructor: import("@sap-cloud-sdk/odata-common").Constructable<any, unknown>) => Record<string, any>;
export declare const serializeEntityNonCustomFields: (entity: any, entityConstructor: import("@sap-cloud-sdk/odata-common/internal").Constructable<any, unknown>) => Record<string, any>;
/**

@@ -23,0 +23,0 @@ * @internal

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.serializeEntityNonCustomFieldsV2 = exports.serializeComplexTypeV2 = exports.serializeEntityV2 = exports.entitySerializerV2 = exports.serializeEntityNonCustomFields = exports.serializeComplexType = exports.serializeEntity = exports.entitySerializer = void 0;
const odata_common_1 = require("@sap-cloud-sdk/odata-common");
const internal_1 = require("@sap-cloud-sdk/odata-common/internal");
const payload_value_converter_1 = require("./payload-value-converter");

@@ -11,3 +11,3 @@ /**

*/
exports.entitySerializer = (0, odata_common_1.entitySerializer)(payload_value_converter_1.tsToEdm);
exports.entitySerializer = (0, internal_1.entitySerializer)(payload_value_converter_1.tsToEdm);
exports.entitySerializerV2 = exports.entitySerializer;

@@ -14,0 +14,0 @@ /**

@@ -1,2 +0,2 @@

import { EntityBase, Constructable } from '@sap-cloud-sdk/odata-common';
import { EntityBase, Constructable } from '@sap-cloud-sdk/odata-common/internal';
import { CustomField } from './selectable/custom-field';

@@ -3,0 +3,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Entity = void 0;
const odata_common_1 = require("@sap-cloud-sdk/odata-common");
const internal_1 = require("@sap-cloud-sdk/odata-common/internal");
const custom_field_1 = require("./selectable/custom-field");

@@ -9,3 +9,3 @@ /**

*/
class Entity extends odata_common_1.EntityBase {
class Entity extends internal_1.EntityBase {
constructor() {

@@ -12,0 +12,0 @@ super(...arguments);

@@ -1,2 +0,2 @@

import { Field, StringFilterFunction, BooleanFilterFunction } from '@sap-cloud-sdk/odata-common';
import { Field, StringFilterFunction, BooleanFilterFunction } from '@sap-cloud-sdk/odata-common/internal';
import { Entity } from './entity';

@@ -23,7 +23,7 @@ /**

*/
export declare const length: typeof import("@sap-cloud-sdk/odata-common").length;
export declare const length: typeof import("@sap-cloud-sdk/odata-common/internal").length;
/**
* Export substring filter function for backwards compatibility.
*/
export declare const substring: typeof import("@sap-cloud-sdk/odata-common").substring;
export declare const substring: typeof import("@sap-cloud-sdk/odata-common/internal").substring;
/**

@@ -35,22 +35,22 @@ * OData v2 specific filter functions

replace: typeof replace;
endsWith: typeof import("@sap-cloud-sdk/odata-common").endsWith;
startsWith: typeof import("@sap-cloud-sdk/odata-common").startsWith;
length: typeof import("@sap-cloud-sdk/odata-common").length;
indexOf: typeof import("@sap-cloud-sdk/odata-common").indexOf;
substring: typeof import("@sap-cloud-sdk/odata-common").substring;
toLower: typeof import("@sap-cloud-sdk/odata-common").toLower;
toUpper: typeof import("@sap-cloud-sdk/odata-common").toUpper;
trim: typeof import("@sap-cloud-sdk/odata-common").trim;
concat: typeof import("@sap-cloud-sdk/odata-common").concat;
round: typeof import("@sap-cloud-sdk/odata-common").round;
floor: typeof import("@sap-cloud-sdk/odata-common").floor;
ceiling: typeof import("@sap-cloud-sdk/odata-common").ceiling;
day: typeof import("@sap-cloud-sdk/odata-common").day;
hour: typeof import("@sap-cloud-sdk/odata-common").hour;
minute: typeof import("@sap-cloud-sdk/odata-common").minute;
month: typeof import("@sap-cloud-sdk/odata-common").month;
second: typeof import("@sap-cloud-sdk/odata-common").second;
year: typeof import("@sap-cloud-sdk/odata-common").year;
isOf: typeof import("@sap-cloud-sdk/odata-common").isOf;
endsWith: typeof import("@sap-cloud-sdk/odata-common/internal").endsWith;
startsWith: typeof import("@sap-cloud-sdk/odata-common/internal").startsWith;
length: typeof import("@sap-cloud-sdk/odata-common/internal").length;
indexOf: typeof import("@sap-cloud-sdk/odata-common/internal").indexOf;
substring: typeof import("@sap-cloud-sdk/odata-common/internal").substring;
toLower: typeof import("@sap-cloud-sdk/odata-common/internal").toLower;
toUpper: typeof import("@sap-cloud-sdk/odata-common/internal").toUpper;
trim: typeof import("@sap-cloud-sdk/odata-common/internal").trim;
concat: typeof import("@sap-cloud-sdk/odata-common/internal").concat;
round: typeof import("@sap-cloud-sdk/odata-common/internal").round;
floor: typeof import("@sap-cloud-sdk/odata-common/internal").floor;
ceiling: typeof import("@sap-cloud-sdk/odata-common/internal").ceiling;
day: typeof import("@sap-cloud-sdk/odata-common/internal").day;
hour: typeof import("@sap-cloud-sdk/odata-common/internal").hour;
minute: typeof import("@sap-cloud-sdk/odata-common/internal").minute;
month: typeof import("@sap-cloud-sdk/odata-common/internal").month;
second: typeof import("@sap-cloud-sdk/odata-common/internal").second;
year: typeof import("@sap-cloud-sdk/odata-common/internal").year;
isOf: typeof import("@sap-cloud-sdk/odata-common/internal").isOf;
};
//# sourceMappingURL=filter-functions.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.filterFunctions = exports.substring = exports.length = exports.replace = exports.substringOf = void 0;
const odata_common_1 = require("@sap-cloud-sdk/odata-common");
const internal_1 = require("@sap-cloud-sdk/odata-common/internal");
/* String Functions */

@@ -14,3 +14,3 @@ /**

function substringOf(substr, str) {
return (0, odata_common_1.filterFunction)('substringof', 'boolean', substr, str);
return (0, internal_1.filterFunction)('substringof', 'boolean', substr, str);
}

@@ -27,3 +27,3 @@ exports.substringOf = substringOf;

function replace(str, searchStr, replaceStr) {
return (0, odata_common_1.filterFunction)('replace', 'string', str, searchStr, replaceStr);
return (0, internal_1.filterFunction)('replace', 'string', str, searchStr, replaceStr);
}

@@ -34,7 +34,7 @@ exports.replace = replace;

*/
exports.length = odata_common_1.filterFunctions.length;
exports.length = internal_1.filterFunctions.length;
/**
* Export substring filter function for backwards compatibility.
*/
exports.substring = odata_common_1.filterFunctions.substring;
exports.substring = internal_1.filterFunctions.substring;
/**

@@ -44,3 +44,3 @@ * OData v2 specific filter functions

exports.filterFunctions = {
...odata_common_1.filterFunctions,
...internal_1.filterFunctions,
substringOf,

@@ -47,0 +47,0 @@ replace

import BigNumber from 'bignumber.js';
import moment from 'moment';
import { Time } from '@sap-cloud-sdk/odata-common';
import { Time } from '@sap-cloud-sdk/odata-common/internal';
import { EdmType } from './edm-types';

@@ -5,0 +5,0 @@ declare type EdmTypeMapping = {

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

const moment_1 = __importDefault(require("moment"));
const odata_common_1 = require("@sap-cloud-sdk/odata-common");
const internal_1 = require("@sap-cloud-sdk/odata-common/internal");
const toTime = (value) => {

@@ -72,3 +72,3 @@ const regexResult = /PT(?<hours>\d{1,2}H)?(?<minutes>\d{1,2}M)?(?<seconds>\d{1,2}S)?/.exec(value);

const deserializers = {
...odata_common_1.deserializersCommon,
...internal_1.deserializersCommon,
'Edm.DateTime': edmDateTimeToMoment,

@@ -78,3 +78,3 @@ 'Edm.DateTimeOffset': edmDateTimeToMoment,

};
exports.edmToTs = (0, odata_common_1.createEdmToTs)(deserializers);
exports.edmToTs = (0, internal_1.createEdmToTs)(deserializers);
/**

@@ -84,3 +84,3 @@ * @internal

exports.serializers = {
...odata_common_1.serializersCommon,
...internal_1.serializersCommon,
'Edm.DateTime': momentToEdmDateTime,

@@ -93,3 +93,3 @@ 'Edm.DateTimeOffset': momentToEdmDateTime,

*/
exports.tsToEdm = (0, odata_common_1.createEdmToTs)(exports.serializers);
exports.tsToEdm = (0, internal_1.createEdmToTs)(exports.serializers);
//# sourceMappingURL=payload-value-converter.js.map
import { Destination, DestinationFetchOptions } from '@sap-cloud-sdk/connectivity';
import { BatchResponse, BatchRequestBuilder } from '@sap-cloud-sdk/odata-common';
import { BatchResponse, BatchRequestBuilder } from '@sap-cloud-sdk/odata-common/internal';
/**

@@ -4,0 +4,0 @@ * Create a batch request to invoke multiple requests as a batch. The batch request builder accepts retrieve requests, i. e. [[GetAllRequestBuilder | getAll]] and [[GetByKeyRequestBuilder | getByKey]] requests and change sets, which in turn can contain [[CreateRequestBuilder | create]], [[UpdateRequestBuilder | update]] or [[DeleteRequestBuilder | delete]] requests.

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

const util_1 = require("@sap-cloud-sdk/util");
const odata_common_1 = require("@sap-cloud-sdk/odata-common");
const internal_1 = require("@sap-cloud-sdk/odata-common/internal");
const entity_deserializer_1 = require("../entity-deserializer");

@@ -13,3 +13,3 @@ const response_data_accessor_1 = require("./response-data-accessor");

*/
class ODataBatchRequestBuilder extends odata_common_1.BatchRequestBuilder {
class ODataBatchRequestBuilder extends internal_1.BatchRequestBuilder {
/**

@@ -23,4 +23,4 @@ * Execute the given request and return the according promise. Please notice: The sub-requests may fail even the main request is successful.

return this.executeRaw(destination)
.then(response => (0, odata_common_1.parseBatchResponse)(response))
.then(parsedResponse => (0, odata_common_1.deserializeBatchResponse)(parsedResponse, this.entityToConstructorMap, response_data_accessor_1.responseDataAccessor, entity_deserializer_1.entityDeserializer))
.then(response => (0, internal_1.parseBatchResponse)(response))
.then(parsedResponse => (0, internal_1.deserializeBatchResponse)(parsedResponse, this.entityToConstructorMap, response_data_accessor_1.responseDataAccessor, entity_deserializer_1.entityDeserializer))
.catch(error => {

@@ -27,0 +27,0 @@ throw new util_1.ErrorWithCause('Batch request failed!', error);

@@ -1,2 +0,2 @@

import { Constructable, EntityIdentifiable, CreateRequestBuilderBase } from '@sap-cloud-sdk/odata-common';
import { Constructable, EntityIdentifiable, CreateRequestBuilderBase } from '@sap-cloud-sdk/odata-common/internal';
import { Entity } from '../entity';

@@ -3,0 +3,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreateRequestBuilder = void 0;
const odata_common_1 = require("@sap-cloud-sdk/odata-common");
const internal_1 = require("@sap-cloud-sdk/odata-common/internal");
const entity_deserializer_1 = require("../entity-deserializer");

@@ -13,3 +13,3 @@ const entity_serializer_1 = require("../entity-serializer");

*/
class CreateRequestBuilder extends odata_common_1.CreateRequestBuilderBase {
class CreateRequestBuilder extends internal_1.CreateRequestBuilderBase {
/**

@@ -16,0 +16,0 @@ * Creates an instance of CreateRequestBuilder.

@@ -1,2 +0,2 @@

import { Constructable, DeleteRequestBuilderBase, FieldType } from '@sap-cloud-sdk/odata-common';
import { Constructable, DeleteRequestBuilderBase, FieldType } from '@sap-cloud-sdk/odata-common/internal';
import { Entity } from '../entity';

@@ -3,0 +3,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DeleteRequestBuilder = void 0;
const odata_common_1 = require("@sap-cloud-sdk/odata-common");
const internal_1 = require("@sap-cloud-sdk/odata-common/internal");
const odata_uri_1 = require("../uri-conversion/odata-uri");

@@ -10,3 +10,3 @@ /**

*/
class DeleteRequestBuilder extends odata_common_1.DeleteRequestBuilderBase {
class DeleteRequestBuilder extends internal_1.DeleteRequestBuilderBase {
/**

@@ -13,0 +13,0 @@ * Creates an instance of DeleteRequestBuilder. If the entity is passed, version identifier will also be added.

@@ -1,2 +0,2 @@

import { FunctionImportParameters, RequestMethodType, ActionFunctionImportRequestBuilderBase } from '@sap-cloud-sdk/odata-common';
import { FunctionImportParameters, RequestMethodType, ActionFunctionImportRequestBuilderBase } from '@sap-cloud-sdk/odata-common/internal';
import { ODataFunctionImportRequestConfig } from '../request/odata-function-import-request-config';

@@ -3,0 +3,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FunctionImportRequestBuilder = void 0;
const odata_common_1 = require("@sap-cloud-sdk/odata-common");
const internal_1 = require("@sap-cloud-sdk/odata-common/internal");
const odata_uri_1 = require("../uri-conversion/odata-uri");

@@ -12,3 +12,3 @@ const odata_function_import_request_config_1 = require("../request/odata-function-import-request-config");

*/
class FunctionImportRequestBuilder extends odata_common_1.ActionFunctionImportRequestBuilderBase {
class FunctionImportRequestBuilder extends internal_1.ActionFunctionImportRequestBuilderBase {
/**

@@ -15,0 +15,0 @@ * Creates an instance of FunctionImportRequestBuilder.

@@ -1,2 +0,2 @@

import { Constructable, EntityIdentifiable, Filterable, GetAllRequestBuilderBase } from '@sap-cloud-sdk/odata-common';
import { Constructable, EntityIdentifiable, Filterable, GetAllRequestBuilderBase } from '@sap-cloud-sdk/odata-common/internal';
import { Entity } from '../entity';

@@ -3,0 +3,0 @@ export declare class GetAllRequestBuilder<EntityT extends Entity> extends GetAllRequestBuilderBase<EntityT> implements EntityIdentifiable<EntityT> {

@@ -5,7 +5,7 @@ "use strict";

const util_1 = require("@sap-cloud-sdk/util");
const odata_common_1 = require("@sap-cloud-sdk/odata-common");
const internal_1 = require("@sap-cloud-sdk/odata-common/internal");
const entity_deserializer_1 = require("../entity-deserializer");
const odata_uri_1 = require("../uri-conversion/odata-uri");
const response_data_accessor_1 = require("./response-data-accessor");
class GetAllRequestBuilder extends odata_common_1.GetAllRequestBuilderBase {
class GetAllRequestBuilder extends internal_1.GetAllRequestBuilderBase {
/**

@@ -16,6 +16,6 @@ * Creates an instance of GetAllRequestBuilder.

constructor(entityConstructor) {
super(entityConstructor, new odata_common_1.ODataGetAllRequestConfig(entityConstructor, odata_uri_1.oDataUri), entity_deserializer_1.entityDeserializer, response_data_accessor_1.responseDataAccessor);
super(entityConstructor, new internal_1.ODataGetAllRequestConfig(entityConstructor, odata_uri_1.oDataUri), entity_deserializer_1.entityDeserializer, response_data_accessor_1.responseDataAccessor);
}
filter(first, ...rest) {
this.requestConfig.filter = (0, odata_common_1.and)((0, util_1.variadicArgumentToArray)(first, rest));
this.requestConfig.filter = (0, internal_1.and)((0, util_1.variadicArgumentToArray)(first, rest));
return this;

@@ -22,0 +22,0 @@ }

@@ -1,2 +0,2 @@

import { Constructable, EntityIdentifiable, FieldType, GetByKeyRequestBuilderBase } from '@sap-cloud-sdk/odata-common';
import { Constructable, EntityIdentifiable, FieldType, GetByKeyRequestBuilderBase } from '@sap-cloud-sdk/odata-common/internal';
import { Entity } from '../entity';

@@ -3,0 +3,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetByKeyRequestBuilder = void 0;
const odata_common_1 = require("@sap-cloud-sdk/odata-common");
const internal_1 = require("@sap-cloud-sdk/odata-common/internal");
const entity_deserializer_1 = require("../entity-deserializer");

@@ -14,3 +14,3 @@ const odata_uri_1 = require("../uri-conversion/odata-uri");

*/
class GetByKeyRequestBuilder extends odata_common_1.GetByKeyRequestBuilderBase {
class GetByKeyRequestBuilder extends internal_1.GetByKeyRequestBuilderBase {
/**

@@ -17,0 +17,0 @@ * Creates an instance of GetByKeyRequestBuilder.

@@ -1,2 +0,2 @@

import { ResponseDataAccessor } from '@sap-cloud-sdk/odata-common';
import { ResponseDataAccessor } from '@sap-cloud-sdk/odata-common/internal';
/**

@@ -3,0 +3,0 @@ * Methods to extract the data from OData v2 responses.

@@ -1,2 +0,2 @@

import { Constructable } from '@sap-cloud-sdk/odata-common';
import { Constructable } from '@sap-cloud-sdk/odata-common/internal';
import { Entity } from '../entity';

@@ -3,0 +3,0 @@ export declare function transformReturnValueForUndefined<ReturnT>(data: any, builderFn: (data: any) => ReturnT): ReturnT;

import { Destination, DestinationFetchOptions } from '@sap-cloud-sdk/connectivity';
import { HttpResponse } from '@sap-cloud-sdk/http-client';
import { Constructable, EntityIdentifiable, UpdateRequestBuilderBase } from '@sap-cloud-sdk/odata-common';
import { Constructable, EntityIdentifiable, UpdateRequestBuilderBase } from '@sap-cloud-sdk/odata-common/internal';
import { Entity } from '../entity';

@@ -5,0 +5,0 @@ /**

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

const util_1 = require("@sap-cloud-sdk/util");
const odata_common_1 = require("@sap-cloud-sdk/odata-common");
const internal_1 = require("@sap-cloud-sdk/odata-common/internal");
const entity_serializer_1 = require("../entity-serializer");

@@ -18,3 +18,3 @@ const odata_uri_1 = require("../uri-conversion/odata-uri");

*/
class UpdateRequestBuilder extends odata_common_1.UpdateRequestBuilderBase {
class UpdateRequestBuilder extends internal_1.UpdateRequestBuilderBase {
/**

@@ -65,3 +65,3 @@ * Creates an instance of UpdateRequestBuilder.

function warnIfNavigation(request, entity, entityConstructor) {
const setNavigationProperties = Object.keys(entity).filter(key => !(0, util_1.isNullish)(entity[key]) && (0, odata_common_1.isNavigationProperty)(key, entityConstructor));
const setNavigationProperties = Object.keys(entity).filter(key => !(0, util_1.isNullish)(entity[key]) && (0, internal_1.isNavigationProperty)(key, entityConstructor));
if (setNavigationProperties.length) {

@@ -73,4 +73,4 @@ logger.warn(`The navigation properties ${setNavigationProperties} have been included in your update request. Update of navigation properties is not supported and will be ignored.`);

function removeNavPropsAndComplexTypes(body) {
return (0, odata_common_1.removePropertyOnCondition)(([, val]) => typeof val === 'object', body);
return (0, internal_1.removePropertyOnCondition)(([, val]) => typeof val === 'object', body);
}
//# sourceMappingURL=update-request-builder.js.map

@@ -1,2 +0,2 @@

import { ODataUri, FunctionImportParameters, RequestMethodType, ODataFunctionImportRequestConfig as ODataFunctionImportRequestConfigBase } from '@sap-cloud-sdk/odata-common';
import { ODataUri, FunctionImportParameters, RequestMethodType, ODataFunctionImportRequestConfig as ODataFunctionImportRequestConfigBase } from '@sap-cloud-sdk/odata-common/internal';
/**

@@ -3,0 +3,0 @@ * @internal

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ODataFunctionImportRequestConfig = void 0;
const odata_common_1 = require("@sap-cloud-sdk/odata-common");
const internal_1 = require("@sap-cloud-sdk/odata-common/internal");
/**
* @internal
*/
class ODataFunctionImportRequestConfig extends odata_common_1.ODataFunctionImportRequestConfig {
class ODataFunctionImportRequestConfig extends internal_1.ODataFunctionImportRequestConfig {
/**

@@ -10,0 +10,0 @@ * Creates an instance of ODataFunctionImportRequestConfig.

@@ -1,2 +0,2 @@

import { CustomField as CustomFieldBase, OrderableEdmTypeField } from '@sap-cloud-sdk/odata-common';
import { CustomField as CustomFieldBase, OrderableEdmTypeField } from '@sap-cloud-sdk/odata-common/internal';
import type { Entity } from '../entity';

@@ -3,0 +3,0 @@ export declare class CustomField<EntityT extends Entity, NullableT extends boolean = false> extends CustomFieldBase<EntityT, NullableT> {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomField = void 0;
const odata_common_1 = require("@sap-cloud-sdk/odata-common");
class CustomField extends odata_common_1.CustomField {
const internal_1 = require("@sap-cloud-sdk/odata-common/internal");
class CustomField extends internal_1.CustomField {
edmDateTime() {

@@ -7,0 +7,0 @@ return this.fieldBuilder.buildEdmTypeField(this._fieldName, 'Edm.DateTime', this._fieldOptions.isNullable);

@@ -1,2 +0,2 @@

import { Selectable } from '@sap-cloud-sdk/odata-common';
import { Selectable } from '@sap-cloud-sdk/odata-common/internal';
import { Entity } from '../entity';

@@ -3,0 +3,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getExpand = void 0;
const odata_common_1 = require("@sap-cloud-sdk/odata-common");
const internal_1 = require("@sap-cloud-sdk/odata-common/internal");
/**

@@ -22,3 +22,3 @@ * Get an object containing the given expand as a query parameter, or an empty object if none was given.

const fullFieldName = getPath(parent, selectable._fieldName);
if (selectable instanceof odata_common_1.Link) {
if (selectable instanceof internal_1.Link) {
combination = [...combination, fullFieldName];

@@ -25,0 +25,0 @@ if (selectable._selects.length) {

@@ -1,2 +0,2 @@

import { Selectable } from '@sap-cloud-sdk/odata-common';
import { Selectable } from '@sap-cloud-sdk/odata-common/internal';
import { Entity } from '../entity';

@@ -3,0 +3,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSelect = void 0;
const odata_common_1 = require("@sap-cloud-sdk/odata-common");
const internal_1 = require("@sap-cloud-sdk/odata-common/internal");
/**

@@ -32,3 +32,3 @@ * Get an object containing the given Selectables as query parameter, or an empty object if none were given.

const fullFieldName = getPath(parent, selectable._fieldName);
if (selectable instanceof odata_common_1.Link) {
if (selectable instanceof internal_1.Link) {
if (selectable._selects.length) {

@@ -35,0 +35,0 @@ return getSelectsAsStrings(selectable._selects, select, fullFieldName);

@@ -5,3 +5,3 @@ /**

*/
export declare const oDataUri: import("@sap-cloud-sdk/odata-common").ODataUri;
export declare const oDataUri: import("@sap-cloud-sdk/odata-common/internal").ODataUri;
//# sourceMappingURL=odata-uri.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.oDataUri = void 0;
const odata_common_1 = require("@sap-cloud-sdk/odata-common");
const internal_1 = require("@sap-cloud-sdk/odata-common/internal");
const get_expand_1 = require("./get-expand");

@@ -14,3 +14,3 @@ const get_select_1 = require("./get-select");

*/
exports.oDataUri = (0, odata_common_1.createODataUri)(uri_value_converter_1.uriConverter, getExpandWrapped, get_select_1.getSelect);
exports.oDataUri = (0, internal_1.createODataUri)(uri_value_converter_1.uriConverter, getExpandWrapped, get_select_1.getSelect);
//# sourceMappingURL=odata-uri.js.map

@@ -1,2 +0,2 @@

import { UriConverter } from '@sap-cloud-sdk/odata-common';
import { UriConverter } from '@sap-cloud-sdk/odata-common/internal';
import { EdmType } from '../edm-types';

@@ -3,0 +3,0 @@ declare type UriConverterMapping = {

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

exports.uriConverter = exports.uriConverters = void 0;
const odata_common_1 = require("@sap-cloud-sdk/odata-common");
const internal_1 = require("@sap-cloud-sdk/odata-common/internal");
const payload_value_converter_1 = require("../payload-value-converter");

@@ -12,3 +12,3 @@ /**

exports.uriConverters = {
...odata_common_1.uriConvertersCommon,
...internal_1.uriConvertersCommon,
'Edm.DateTime': value => `datetime'${(0, payload_value_converter_1.edmToTs)(value, 'Edm.DateTime')

@@ -22,3 +22,3 @@ .toISOString()

};
exports.uriConverter = (0, odata_common_1.createUriConverter)(payload_value_converter_1.serializers, exports.uriConverters);
exports.uriConverter = (0, internal_1.createUriConverter)(payload_value_converter_1.serializers, exports.uriConverters);
//# sourceMappingURL=uri-value-converter.js.map
{
"name": "@sap-cloud-sdk/odata-v2",
"version": "2.0.0-20211118154241.0+c0c4dd39",
"version": "2.0.0-20211118182919.0+8651540d",
"description": "SAP Cloud SDK for JavaScript common functions of OData client generator and OpenAPI clint generator.",

@@ -35,6 +35,6 @@ "homepage": "https://sap.github.io/cloud-sdk/docs/js/overview-cloud-sdk-for-javascript",

"dependencies": {
"@sap-cloud-sdk/connectivity": "^2.0.0-20211118154241.0+c0c4dd39",
"@sap-cloud-sdk/http-client": "^2.0.0-20211118154241.0+c0c4dd39",
"@sap-cloud-sdk/odata-common": "^2.0.0-20211118154241.0+c0c4dd39",
"@sap-cloud-sdk/util": "^2.0.0-20211118154241.0+c0c4dd39",
"@sap-cloud-sdk/connectivity": "^2.0.0-20211118182919.0+8651540d",
"@sap-cloud-sdk/http-client": "^2.0.0-20211118182919.0+8651540d",
"@sap-cloud-sdk/odata-common": "^2.0.0-20211118182919.0+8651540d",
"@sap-cloud-sdk/util": "^2.0.0-20211118182919.0+8651540d",
"bignumber.js": "^9.0.0",

@@ -49,3 +49,3 @@ "moment": "^2.29.0",

},
"gitHead": "c0c4dd39763c2c28407fd46e59f8a3be5b3746ff"
"gitHead": "8651540dd5c692dd522cfb35c6ec3628dbe19459"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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