@sap-cloud-sdk/core
Version:
SAP Cloud SDK for JavaScript core
29 lines • 1.21 kB
TypeScript
import { Constructable, Entity } from '../entity';
import { Link } from '../selectable';
import { ODataUri } from '../uri-conversion';
import { ODataRequestConfig } from './odata-request-config';
/**
* OData create request configuration for an entity type.
* @typeparam EntityT - Type of the entity to setup a request for
*/
export declare class ODataCreateRequestConfig<EntityT extends Entity> extends ODataRequestConfig {
readonly _entityConstructor: Constructable<EntityT>;
private oDataUri;
/**
* Keys of the parent of the entity to create. Defined only when attempting to create child entities.
*/
parentKeys: Record<string, any>;
/**
* Field that links the parent entity class to the child entity class.
*/
childField: Link<Entity, EntityT>;
/**
* Creates an instance of ODataRequest.
* @param _entityConstructor - Constructor type of the entity to create a configuration for
*/
constructor(_entityConstructor: Constructable<EntityT>, oDataUri: ODataUri);
resourcePath(): string;
queryParameters(): Record<string, any>;
protected resourcePathAsChild(): string;
}
//# sourceMappingURL=odata-create-request-config.d.ts.map