UNPKG

1.21 kBTypeScriptView Raw
1import { Constructable, Entity } from '../entity';
2import { Link } from '../selectable';
3import { ODataUri } from '../uri-conversion';
4import { ODataRequestConfig } from './odata-request-config';
5/**
6 * OData create request configuration for an entity type.
7 * @typeparam EntityT - Type of the entity to setup a request for
8 */
9export declare class ODataCreateRequestConfig<EntityT extends Entity> extends ODataRequestConfig {
10 readonly _entityConstructor: Constructable<EntityT>;
11 private oDataUri;
12 /**
13 * Keys of the parent of the entity to create. Defined only when attempting to create child entities.
14 */
15 parentKeys: Record<string, any>;
16 /**
17 * Field that links the parent entity class to the child entity class.
18 */
19 childField: Link<Entity, EntityT>;
20 /**
21 * Creates an instance of ODataRequest.
22 * @param _entityConstructor - Constructor type of the entity to create a configuration for
23 */
24 constructor(_entityConstructor: Constructable<EntityT>, oDataUri: ODataUri);
25 resourcePath(): string;
26 queryParameters(): Record<string, any>;
27 protected resourcePathAsChild(): string;
28}
29//# sourceMappingURL=odata-create-request-config.d.ts.map
\No newline at end of file