@opra/client 0.13.0 → 0.15.0
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/cjs/content-disposition-d575fee5.js +473 -0
- package/cjs/cookie-signature-3e974173.js +64 -0
- package/cjs/index.min.mjs +7946 -7135
- package/cjs/mime-db-49f150d0.js +10719 -0
- package/cjs/mime-types-6e2bdb57.js +201 -0
- package/cjs/safe-buffer-8acd60c7.js +78 -0
- package/esm/content-disposition-65f281a9.js +470 -0
- package/esm/cookie-signature-bf274b6b.js +62 -0
- package/esm/index.min.mjs +7546 -6703
- package/esm/mime-db-d0f15d8f.js +10717 -0
- package/esm/mime-types-79c091fd.js +199 -0
- package/esm/safe-buffer-63383356.js +76 -0
- package/package.json +9 -3
- package/typings/common/document/api-document.d.ts +102 -0
- package/typings/common/document/constants.d.ts +3 -0
- package/typings/common/document/data-type/api-field.d.ts +41 -0
- package/typings/common/document/data-type/builtin/any.type.d.ts +2 -0
- package/typings/common/document/data-type/builtin/base64.type.d.ts +6 -0
- package/typings/common/document/data-type/builtin/bigint.type.d.ts +6 -0
- package/typings/common/document/data-type/builtin/boolean.type.d.ts +5 -0
- package/typings/common/document/data-type/builtin/date.type.d.ts +4 -0
- package/typings/common/document/data-type/builtin/guid.type.d.ts +7 -0
- package/typings/common/document/data-type/builtin/index.d.ts +10 -0
- package/typings/common/document/data-type/builtin/integer.type.d.ts +6 -0
- package/typings/common/document/data-type/builtin/number.type.d.ts +6 -0
- package/typings/common/document/data-type/builtin/object.type.d.ts +3 -0
- package/typings/common/document/data-type/builtin/string.type.d.ts +5 -0
- package/typings/common/document/data-type/builtin/time.type.d.ts +7 -0
- package/typings/common/document/data-type/builtin/timestamp.type.d.ts +5 -0
- package/typings/common/document/data-type/complex-type.d.ts +50 -0
- package/typings/common/document/data-type/data-type.d.ts +33 -0
- package/typings/common/document/data-type/enum-type.d.ts +32 -0
- package/typings/common/document/data-type/mapped-type.d.ts +53 -0
- package/typings/common/document/data-type/simple-type.d.ts +33 -0
- package/typings/common/document/data-type/union-type.d.ts +42 -0
- package/typings/common/document/factory/add-references.d.ts +4 -0
- package/typings/common/document/factory/create-document.d.ts +12 -0
- package/typings/common/document/factory/factory.d.ts +61 -0
- package/typings/common/document/factory/import-resource-class.d.ts +9 -0
- package/typings/common/document/factory/import-type-class.d.ts +17 -0
- package/typings/common/document/factory/index.d.ts +1 -0
- package/typings/common/document/factory/process-resources.d.ts +7 -0
- package/typings/common/document/factory/process-types.d.ts +6 -0
- package/typings/common/document/index.d.ts +14 -0
- package/typings/common/document/resource/collection.d.ts +67 -0
- package/typings/common/document/resource/resource.d.ts +29 -0
- package/typings/common/document/resource/singleton.d.ts +49 -0
- package/typings/common/exception/resource-errors/resource-not-found.error.d.ts +4 -0
- package/typings/common/helpers/function-utils.d.ts +4 -0
- package/typings/common/helpers/get-stack-filename.d.ts +1 -0
- package/typings/common/helpers/index.d.ts +7 -0
- package/typings/common/helpers/is-url.d.ts +1 -0
- package/typings/common/{schema/utils/clone-object.util.d.ts → helpers/object-utils.d.ts} +1 -0
- package/typings/common/helpers/path-to-object-tree.d.ts +4 -0
- package/typings/common/helpers/responsive-map.d.ts +15 -13
- package/typings/common/{utils → helpers}/type-guards.d.ts +3 -1
- package/typings/common/http/codecs/boolean-codec.d.ts +5 -0
- package/typings/common/http/{param-codec → codecs}/date-codec.d.ts +2 -2
- package/typings/common/http/{param-codec → codecs}/filter-codec.d.ts +2 -2
- package/typings/common/http/codecs/integer-codec.d.ts +11 -0
- package/typings/common/http/codecs/number-codec.d.ts +14 -0
- package/typings/common/http/codecs/string-codec.d.ts +16 -0
- package/typings/common/http/enums/http-headers-codes.enum.d.ts +13 -4
- package/typings/common/http/enums/http-status-messages.d.ts +65 -0
- package/typings/common/http/http-headers.d.ts +50 -34
- package/typings/common/http/http-message.host.d.ts +122 -0
- package/typings/common/http/http-params.d.ts +43 -29
- package/typings/common/http/http-request-message.d.ts +213 -0
- package/typings/common/http/http-response-message.d.ts +318 -0
- package/typings/common/http/index.d.ts +8 -11
- package/typings/common/http/interfaces/cookie-options.interface.d.ts +4 -0
- package/typings/common/http/multipart/batch-multipart.d.ts +0 -31
- package/typings/common/http/multipart/http-request-content.d.ts +0 -8
- package/typings/common/http/multipart/http-response-content.d.ts +0 -7
- package/typings/common/http/multipart/index.d.ts +0 -1
- package/typings/common/index.d.ts +6 -5
- package/typings/common/schema/constants.d.ts +2 -8
- package/typings/common/schema/data-type/complex-type.interface.d.ts +16 -0
- package/typings/common/schema/data-type/data-type.interface.d.ts +14 -0
- package/typings/common/schema/data-type/enum-type.interface.d.ts +15 -0
- package/typings/common/schema/data-type/field.interface.d.ts +21 -0
- package/typings/common/schema/data-type/mapped-type.interface.d.ts +11 -0
- package/typings/common/schema/data-type/simple-type.interface.d.ts +18 -0
- package/typings/common/schema/data-type/union-type.interface.d.ts +10 -0
- package/typings/common/schema/document.interface.d.ts +34 -0
- package/typings/common/schema/index.d.ts +51 -25
- package/typings/common/schema/resource/collection.interface.d.ts +33 -0
- package/typings/common/schema/resource/container.interface.d.ts +9 -0
- package/typings/common/schema/resource/endpoint.interface.d.ts +29 -0
- package/typings/common/schema/resource/resource.interface.d.ts +12 -0
- package/typings/common/schema/resource/singleton.interface.d.ts +22 -0
- package/typings/common/schema/type-guards.d.ts +20 -0
- package/typings/common/{schema/types.d.ts → types.d.ts} +0 -3
- package/typings/common/url/index.d.ts +2 -2
- package/typings/common/url/opra-url.d.ts +8 -27
- package/typings/common/url/utils/decode-path-component.d.ts +5 -0
- package/typings/common/url/utils/encode-path-component.d.ts +1 -0
- package/typings/common/utils/path-utils.d.ts +2 -0
- package/typings/constants.d.ts +1 -0
- package/typings/http/http-client.d.ts +27 -25
- package/typings/http/http-collection-node.d.ts +116 -0
- package/typings/http/http-request-observable.d.ts +28 -0
- package/typings/{common/http → http}/http-request.d.ts +4 -6
- package/typings/{common/http → http}/http-response.d.ts +12 -10
- package/typings/http/http-service-base.d.ts +5 -0
- package/typings/http/http-singleton-node.d.ts +65 -0
- package/typings/http/http-types.d.ts +17 -9
- package/typings/index.d.ts +7 -13
- package/typings/common/constants.d.ts +0 -0
- package/typings/common/http/http-param-codec.d.ts +0 -4
- package/typings/common/http/http-request-node.d.ts +0 -34
- package/typings/common/http/param-codec/boolean-codec.d.ts +0 -5
- package/typings/common/http/param-codec/integer-codec.d.ts +0 -9
- package/typings/common/http/param-codec/number-codec.d.ts +0 -12
- package/typings/common/http/param-codec/string-codec.d.ts +0 -14
- package/typings/common/http/utils/encodeURIParam.d.ts +0 -1
- package/typings/common/http/utils/normalize-headers.d.ts +0 -1
- package/typings/common/schema/decorators/opr-collection-resource.decorator.d.ts +0 -8
- package/typings/common/schema/decorators/opr-complex-type.decorator.d.ts +0 -6
- package/typings/common/schema/decorators/opr-field.decorator.d.ts +0 -3
- package/typings/common/schema/decorators/opr-resolver.decorator.d.ts +0 -8
- package/typings/common/schema/decorators/opr-simple-type.decorator.d.ts +0 -6
- package/typings/common/schema/decorators/opr-singleton-resource.decorator.d.ts +0 -8
- package/typings/common/schema/implementation/data-type/builtin/any.type.d.ts +0 -2
- package/typings/common/schema/implementation/data-type/builtin/base64-binary.type.d.ts +0 -2
- package/typings/common/schema/implementation/data-type/builtin/bigint.type.d.ts +0 -2
- package/typings/common/schema/implementation/data-type/builtin/boolean.type.d.ts +0 -2
- package/typings/common/schema/implementation/data-type/builtin/date-string.type.d.ts +0 -2
- package/typings/common/schema/implementation/data-type/builtin/date.type.d.ts +0 -2
- package/typings/common/schema/implementation/data-type/builtin/guid.type.d.ts +0 -2
- package/typings/common/schema/implementation/data-type/builtin/integer.type.d.ts +0 -2
- package/typings/common/schema/implementation/data-type/builtin/number.type.d.ts +0 -2
- package/typings/common/schema/implementation/data-type/builtin/object.type.d.ts +0 -2
- package/typings/common/schema/implementation/data-type/builtin/string.type.d.ts +0 -2
- package/typings/common/schema/implementation/data-type/builtin-data-types.d.ts +0 -4
- package/typings/common/schema/implementation/data-type/complex-type.d.ts +0 -29
- package/typings/common/schema/implementation/data-type/data-type.d.ts +0 -17
- package/typings/common/schema/implementation/data-type/simple-type.d.ts +0 -12
- package/typings/common/schema/implementation/data-type/union-type.d.ts +0 -16
- package/typings/common/schema/implementation/document-builder.d.ts +0 -16
- package/typings/common/schema/implementation/opra-document.d.ts +0 -44
- package/typings/common/schema/implementation/query/collection-count-query.d.ts +0 -14
- package/typings/common/schema/implementation/query/collection-create-query.d.ts +0 -18
- package/typings/common/schema/implementation/query/collection-delete-many-query.d.ts +0 -14
- package/typings/common/schema/implementation/query/collection-delete-query.d.ts +0 -10
- package/typings/common/schema/implementation/query/collection-get-query.d.ts +0 -21
- package/typings/common/schema/implementation/query/collection-search-query.d.ts +0 -30
- package/typings/common/schema/implementation/query/collection-update-many-query.d.ts +0 -15
- package/typings/common/schema/implementation/query/collection-update-query.d.ts +0 -19
- package/typings/common/schema/implementation/query/field-get-query.d.ts +0 -30
- package/typings/common/schema/implementation/query/index.d.ts +0 -27
- package/typings/common/schema/implementation/query/singleton-get-query.d.ts +0 -20
- package/typings/common/schema/implementation/resource/collection-resource-info.d.ts +0 -22
- package/typings/common/schema/implementation/resource/container-resource-info.d.ts +0 -13
- package/typings/common/schema/implementation/resource/resource-info.d.ts +0 -17
- package/typings/common/schema/implementation/resource/singleton-resource-info.d.ts +0 -15
- package/typings/common/schema/implementation/schema-builder/extract-resource-metadata.util.d.ts +0 -3
- package/typings/common/schema/implementation/schema-builder/extract-type-metadata.util.d.ts +0 -4
- package/typings/common/schema/interfaces/child-field-query.interface.d.ts +0 -4
- package/typings/common/schema/interfaces/data-type.metadata.d.ts +0 -18
- package/typings/common/schema/interfaces/resource-container.interface.d.ts +0 -8
- package/typings/common/schema/interfaces/resource.metadata.d.ts +0 -18
- package/typings/common/schema/opra-schema.definition.d.ts +0 -178
- package/typings/common/schema/type-helpers/extend-type.helper.d.ts +0 -3
- package/typings/common/schema/type-helpers/mixin-type.helper.d.ts +0 -2
- package/typings/common/schema/utils/class.utils.d.ts +0 -2
- package/typings/common/schema/utils/normalize-field-array.util.d.ts +0 -3
- package/typings/common/schema/utils/path-to-tree.util.d.ts +0 -4
- package/typings/common/url/formats/boolean-format.d.ts +0 -5
- package/typings/common/url/formats/date-format.d.ts +0 -16
- package/typings/common/url/formats/filter-format.d.ts +0 -6
- package/typings/common/url/formats/format.d.ts +0 -4
- package/typings/common/url/formats/integer-format.d.ts +0 -9
- package/typings/common/url/formats/number-format.d.ts +0 -12
- package/typings/common/url/formats/string-format.d.ts +0 -14
- package/typings/common/url/opra-url-search-params.d.ts +0 -5
- package/typings/common/url/utils/path-utils.d.ts +0 -8
- package/typings/common/utils/index.d.ts +0 -3
- package/typings/common/utils/is-url.d.ts +0 -1
- package/typings/common/utils/path-to-tree.d.ts +0 -4
- package/typings/http/http-collection-service.d.ts +0 -76
- package/typings/http/http-request-host.d.ts +0 -18
- package/typings/http/http-singleton-service.d.ts +0 -28
- package/typings/http/requests/collection-create-request.d.ts +0 -7
- package/typings/http/requests/collection-delete-many-request.d.ts +0 -7
- package/typings/http/requests/collection-delete-request.d.ts +0 -7
- package/typings/http/requests/collection-get-request.d.ts +0 -7
- package/typings/http/requests/collection-search-request.d.ts +0 -7
- package/typings/http/requests/collection-update-many-request.d.ts +0 -7
- package/typings/http/requests/collection-update-request.d.ts +0 -7
- package/typings/http/requests/singleton-create-request.d.ts +0 -7
- package/typings/http/requests/singleton-delete-request.d.ts +0 -7
- package/typings/http/requests/singleton-get-request.d.ts +0 -7
- package/typings/interfaces/http-options.interface.d.ts +0 -17
- package/typings/interfaces/http-request-config.interface.d.ts +0 -23
- /package/typings/common/{schema → document}/utils/inspect.util.d.ts +0 -0
- /package/typings/common/{schema → document}/utils/string-compare.util.d.ts +0 -0
- /package/typings/common/{schema/type-helpers/mixin.utils.d.ts → helpers/mixin-utils.d.ts} +0 -0
- /package/typings/http/{requests/batch-request.d.ts → batch-request.d.ts} +0 -0
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IResourceContainer } from '../../interfaces/resource-container.interface.js';
|
|
2
|
-
import { OpraSchema } from '../../opra-schema.definition.js';
|
|
3
|
-
import type { OpraDocument } from '../opra-document.js';
|
|
4
|
-
import { CollectionResourceInfo } from './collection-resource-info.js';
|
|
5
|
-
import { ResourceInfo } from './resource-info.js';
|
|
6
|
-
import { SingletonResourceInfo } from './singleton-resource-info.js';
|
|
7
|
-
export declare class ContainerResourceInfo extends ResourceInfo implements IResourceContainer {
|
|
8
|
-
readonly metadata: OpraSchema.ContainerResource;
|
|
9
|
-
constructor(service: OpraDocument, name: string, metadata: OpraSchema.ContainerResource);
|
|
10
|
-
getResource<T extends ResourceInfo>(name: string): T;
|
|
11
|
-
getCollectionResource(name: string): CollectionResourceInfo;
|
|
12
|
-
getSingletonResource(name: string): SingletonResourceInfo;
|
|
13
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { OpraSchema } from '../../opra-schema.definition.js';
|
|
2
|
-
import { nodeInspectCustom } from '../../utils/inspect.util.js';
|
|
3
|
-
import type { OpraDocument } from '../opra-document.js';
|
|
4
|
-
export declare abstract class ResourceInfo {
|
|
5
|
-
readonly metadata: OpraSchema.Resource;
|
|
6
|
-
readonly document: OpraDocument;
|
|
7
|
-
readonly name: string;
|
|
8
|
-
protected path: string;
|
|
9
|
-
protected constructor(document: OpraDocument, name: string, metadata: OpraSchema.Resource);
|
|
10
|
-
get instance(): {} | undefined;
|
|
11
|
-
get kind(): OpraSchema.ResourceKind;
|
|
12
|
-
get description(): string | undefined;
|
|
13
|
-
toString(): string;
|
|
14
|
-
validateQueryOptions(): any;
|
|
15
|
-
getSchema(jsonOnly?: boolean): OpraSchema.Resource;
|
|
16
|
-
[nodeInspectCustom](): string;
|
|
17
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { OpraSchema } from '../../opra-schema.definition.js';
|
|
2
|
-
import { ComplexType } from '../data-type/complex-type.js';
|
|
3
|
-
import type { OpraDocument } from '../opra-document.js';
|
|
4
|
-
import { ResourceInfo } from './resource-info.js';
|
|
5
|
-
export declare class SingletonResourceInfo extends ResourceInfo {
|
|
6
|
-
readonly metadata: OpraSchema.SingletonResource;
|
|
7
|
-
readonly dataType: ComplexType;
|
|
8
|
-
constructor(document: OpraDocument, name: string, dataType: ComplexType, metadata: OpraSchema.SingletonResource);
|
|
9
|
-
get create(): OpraSchema.CreateMethodResolver | undefined;
|
|
10
|
-
get delete(): OpraSchema.MethodResolver | undefined;
|
|
11
|
-
get get(): OpraSchema.GetMethodResolver | undefined;
|
|
12
|
-
get update(): OpraSchema.UpdateMethodResolver | undefined;
|
|
13
|
-
getHandlerNames(): string[];
|
|
14
|
-
getSchema(jsonOnly?: boolean): OpraSchema.SingletonResource;
|
|
15
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { StrictOmit, Type } from 'ts-gems';
|
|
2
|
-
import { OpraSchema } from '../opra-schema.definition.js';
|
|
3
|
-
import { TypeThunkAsync } from '../types.js';
|
|
4
|
-
export type SimpleTypeMetadata = OpraSchema.SimpleType & {
|
|
5
|
-
name: string;
|
|
6
|
-
};
|
|
7
|
-
export type ComplexTypeMetadata = StrictOmit<OpraSchema.ComplexType, 'fields' | 'extends'> & {
|
|
8
|
-
name: string;
|
|
9
|
-
extends?: ComplexTypeExtendingMetadata[];
|
|
10
|
-
fields?: Record<string, FieldMetadata>;
|
|
11
|
-
};
|
|
12
|
-
export type FieldMetadata = StrictOmit<OpraSchema.Field, 'type'> & {
|
|
13
|
-
type?: string | TypeThunkAsync | (string | TypeThunkAsync)[];
|
|
14
|
-
};
|
|
15
|
-
type ComplexTypeExtendingMetadata = StrictOmit<OpraSchema.ComplexTypeExtendingInfo, 'type'> & {
|
|
16
|
-
type: string | Type;
|
|
17
|
-
};
|
|
18
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CollectionResourceInfo } from '../implementation/resource/collection-resource-info.js';
|
|
2
|
-
import { ResourceInfo } from '../implementation/resource/resource-info.js';
|
|
3
|
-
import { SingletonResourceInfo } from '../implementation/resource/singleton-resource-info.js';
|
|
4
|
-
export interface IResourceContainer {
|
|
5
|
-
getResource<T extends ResourceInfo>(name: string): T;
|
|
6
|
-
getCollectionResource(name: string): CollectionResourceInfo;
|
|
7
|
-
getSingletonResource(name: string): SingletonResourceInfo;
|
|
8
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { PartialSome, StrictOmit } from 'ts-gems';
|
|
2
|
-
import { OpraSchema } from '../opra-schema.definition.js';
|
|
3
|
-
import { TypeThunkAsync } from '../types.js';
|
|
4
|
-
export type CollectionResourceMetadata = PartialSome<StrictOmit<OpraSchema.CollectionResource, 'type'>, 'keyFields'> & {
|
|
5
|
-
type: TypeThunkAsync | string;
|
|
6
|
-
name: string;
|
|
7
|
-
};
|
|
8
|
-
export type SingletonResourceMetadata = StrictOmit<OpraSchema.SingletonResource, 'type'> & {
|
|
9
|
-
type: TypeThunkAsync | string;
|
|
10
|
-
name: string;
|
|
11
|
-
};
|
|
12
|
-
export type ICreateResolverMetadata = StrictOmit<OpraSchema.CreateMethodResolver, 'handler'>;
|
|
13
|
-
export type IDeleteResolverMetadata = StrictOmit<OpraSchema.DeleteMethodResolver, 'handler'>;
|
|
14
|
-
export type IDeleteManyResolverMetadata = StrictOmit<OpraSchema.DeleteManyMethodResolver, 'handler'>;
|
|
15
|
-
export type IGetResolverMetadata = StrictOmit<OpraSchema.GetMethodResolver, 'handler'>;
|
|
16
|
-
export type IUpdateResolverMetadata = StrictOmit<OpraSchema.UpdateMethodResolver, 'handler'>;
|
|
17
|
-
export type IUpdateManyResolverMetadata = StrictOmit<OpraSchema.UpdateManyMethodResolver, 'handler'>;
|
|
18
|
-
export type ISearchResolverMetadata = StrictOmit<OpraSchema.SearchMethodResolver, 'handler'>;
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { Type } from 'ts-gems';
|
|
2
|
-
import { ComparisonOperator } from '../filter/index.js';
|
|
3
|
-
export declare namespace OpraSchema {
|
|
4
|
-
/**
|
|
5
|
-
* *** === Constants === ***
|
|
6
|
-
*/
|
|
7
|
-
export const Version = "1.0";
|
|
8
|
-
/**
|
|
9
|
-
* *** === Type definitions === ***
|
|
10
|
-
*/
|
|
11
|
-
export type Extensible<T = any> = {
|
|
12
|
-
[key: `$${string}`]: T;
|
|
13
|
-
};
|
|
14
|
-
export type ResourceKind = 'ContainerResource' | 'CollectionResource' | 'SingletonResource';
|
|
15
|
-
export type DataTypeKind = 'SimpleType' | 'ComplexType' | 'UnionType';
|
|
16
|
-
export type SingletonMethod = 'get' | 'create' | 'update' | 'delete';
|
|
17
|
-
export type CollectionMethod = SingletonMethod | 'search' | 'count' | 'updateMany' | 'deleteMany';
|
|
18
|
-
/**
|
|
19
|
-
* *** === Document related === ***
|
|
20
|
-
*/
|
|
21
|
-
export interface Document {
|
|
22
|
-
version: string;
|
|
23
|
-
info: DocumentInfo;
|
|
24
|
-
references?: Record<string, Reference>;
|
|
25
|
-
types?: Record<string, DataType>;
|
|
26
|
-
resources?: Record<string, Resource>;
|
|
27
|
-
servers?: ServerInfo[];
|
|
28
|
-
}
|
|
29
|
-
export type ServerInfo = Extensible & {
|
|
30
|
-
url: string;
|
|
31
|
-
description?: string;
|
|
32
|
-
};
|
|
33
|
-
export type Reference = Extensible & {
|
|
34
|
-
url?: string;
|
|
35
|
-
document?: Document;
|
|
36
|
-
};
|
|
37
|
-
export type DocumentInfo = Extensible & {
|
|
38
|
-
title: string;
|
|
39
|
-
version: string;
|
|
40
|
-
description?: string;
|
|
41
|
-
termsOfService?: string;
|
|
42
|
-
contact?: ContactPerson[];
|
|
43
|
-
license?: LicenseInfo;
|
|
44
|
-
};
|
|
45
|
-
export type ContactPerson = Extensible & {
|
|
46
|
-
name?: string;
|
|
47
|
-
email?: string;
|
|
48
|
-
url?: string;
|
|
49
|
-
};
|
|
50
|
-
export type LicenseInfo = Extensible & {
|
|
51
|
-
name: string;
|
|
52
|
-
url?: string;
|
|
53
|
-
content?: string;
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* *** === Data Type related === ***
|
|
57
|
-
*/
|
|
58
|
-
export type DataType = ComplexType | SimpleType | UnionType;
|
|
59
|
-
export type BaseDataType = {
|
|
60
|
-
kind: DataTypeKind;
|
|
61
|
-
description?: string;
|
|
62
|
-
ctor?: Type;
|
|
63
|
-
parse?: (v: any) => any;
|
|
64
|
-
serialize?: (v: any) => any;
|
|
65
|
-
};
|
|
66
|
-
export interface SimpleType extends BaseDataType {
|
|
67
|
-
kind: 'SimpleType';
|
|
68
|
-
}
|
|
69
|
-
export interface UnionType extends BaseDataType {
|
|
70
|
-
kind: 'UnionType';
|
|
71
|
-
types: DataType[];
|
|
72
|
-
}
|
|
73
|
-
export interface ComplexType extends BaseDataType {
|
|
74
|
-
kind: 'ComplexType';
|
|
75
|
-
description?: string;
|
|
76
|
-
abstract?: boolean;
|
|
77
|
-
extends?: ComplexTypeExtendingInfo[];
|
|
78
|
-
fields?: Record<string, Field>;
|
|
79
|
-
additionalFields?: boolean | string | Pick<Field, 'type' | 'format' | 'isArray' | 'enum'>;
|
|
80
|
-
}
|
|
81
|
-
export interface ComplexTypeExtendingInfo {
|
|
82
|
-
type: string;
|
|
83
|
-
pick?: string[];
|
|
84
|
-
omit?: string[];
|
|
85
|
-
}
|
|
86
|
-
export type Field = Extensible & {
|
|
87
|
-
type: string;
|
|
88
|
-
description?: string;
|
|
89
|
-
required?: boolean;
|
|
90
|
-
isArray?: boolean;
|
|
91
|
-
format?: string;
|
|
92
|
-
default?: any;
|
|
93
|
-
fixed?: string | number;
|
|
94
|
-
enum?: string | string[] | Record<string, string>;
|
|
95
|
-
enumName?: string;
|
|
96
|
-
examples?: any[] | Record<string, any>;
|
|
97
|
-
deprecated?: boolean | string;
|
|
98
|
-
/**
|
|
99
|
-
* If true, this property will not be included in results by default.
|
|
100
|
-
* The client side should include the property name in the "include" query parameter.
|
|
101
|
-
*/
|
|
102
|
-
exclusive?: boolean;
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* *** === Resource related === ***
|
|
106
|
-
*/
|
|
107
|
-
export type Resource = ContainerResource | CollectionResource | SingletonResource;
|
|
108
|
-
export interface BaseResource {
|
|
109
|
-
kind: ResourceKind;
|
|
110
|
-
description?: string;
|
|
111
|
-
instance?: {};
|
|
112
|
-
}
|
|
113
|
-
export interface CollectionResource extends BaseResource {
|
|
114
|
-
kind: 'CollectionResource';
|
|
115
|
-
type: string;
|
|
116
|
-
keyFields: string | string[];
|
|
117
|
-
create?: CreateMethodResolver;
|
|
118
|
-
count?: CountMethodResolver;
|
|
119
|
-
delete?: DeleteMethodResolver;
|
|
120
|
-
deleteMany?: DeleteManyMethodResolver;
|
|
121
|
-
get?: GetMethodResolver;
|
|
122
|
-
update?: UpdateMethodResolver;
|
|
123
|
-
updateMany?: UpdateManyMethodResolver;
|
|
124
|
-
search?: SearchMethodResolver;
|
|
125
|
-
}
|
|
126
|
-
export interface SingletonResource extends BaseResource {
|
|
127
|
-
kind: 'SingletonResource';
|
|
128
|
-
type: string;
|
|
129
|
-
create?: CreateMethodResolver;
|
|
130
|
-
get?: GetMethodResolver;
|
|
131
|
-
update?: UpdateMethodResolver;
|
|
132
|
-
delete?: DeleteMethodResolver;
|
|
133
|
-
}
|
|
134
|
-
export interface ContainerResource extends BaseResource {
|
|
135
|
-
kind: 'ContainerResource';
|
|
136
|
-
resources: Resource[];
|
|
137
|
-
}
|
|
138
|
-
export type MethodResolver = {
|
|
139
|
-
handler?: Function;
|
|
140
|
-
};
|
|
141
|
-
type MethodResolverInputOptions = {
|
|
142
|
-
inputPick?: string[];
|
|
143
|
-
inputOmit?: string[];
|
|
144
|
-
};
|
|
145
|
-
type MethodResolverOutputOptions = {
|
|
146
|
-
outputPick?: string[];
|
|
147
|
-
outputOmit?: string[];
|
|
148
|
-
};
|
|
149
|
-
type MethodResolverFilterOptions = {
|
|
150
|
-
filters?: {
|
|
151
|
-
field: string;
|
|
152
|
-
operators?: ComparisonOperator[];
|
|
153
|
-
}[];
|
|
154
|
-
};
|
|
155
|
-
export type CreateMethodResolver = MethodResolver & MethodResolverInputOptions & MethodResolverOutputOptions;
|
|
156
|
-
export type CountMethodResolver = MethodResolver & {};
|
|
157
|
-
export type DeleteMethodResolver = MethodResolver & {};
|
|
158
|
-
export type DeleteManyMethodResolver = MethodResolver & MethodResolverFilterOptions;
|
|
159
|
-
export type GetMethodResolver = MethodResolver & MethodResolverOutputOptions;
|
|
160
|
-
export type UpdateMethodResolver = MethodResolver & MethodResolverInputOptions & MethodResolverOutputOptions;
|
|
161
|
-
export type UpdateManyMethodResolver = MethodResolver & MethodResolverFilterOptions;
|
|
162
|
-
export type SearchMethodResolver = MethodResolver & MethodResolverOutputOptions & {
|
|
163
|
-
sortFields?: string[];
|
|
164
|
-
defaultSort?: string[];
|
|
165
|
-
} & MethodResolverFilterOptions;
|
|
166
|
-
/**
|
|
167
|
-
* *** === Type Guards === ***
|
|
168
|
-
*/
|
|
169
|
-
export function isDataType(obj: any): obj is DataType;
|
|
170
|
-
export function isComplexType(obj: any): obj is ComplexType;
|
|
171
|
-
export function isSimpleType(obj: any): obj is SimpleType;
|
|
172
|
-
export function isUnionTypee(obj: any): obj is UnionType;
|
|
173
|
-
export function isResource(obj: any): obj is Resource;
|
|
174
|
-
export function isCollectionResource(obj: any): obj is CollectionResource;
|
|
175
|
-
export function isSingletonResource(obj: any): obj is SingletonResource;
|
|
176
|
-
export function isContainerResource(obj: any): obj is ContainerResource;
|
|
177
|
-
export {};
|
|
178
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { Class } from 'ts-gems';
|
|
2
|
-
export declare function PickType<T extends any[], I1, S1, K extends keyof I1>(classRef: Class<T, I1, S1>, keys: readonly K[]): Class<T, Pick<I1, K>> & Omit<Pick<S1, keyof typeof classRef>, 'prototype' | 'constructor'>;
|
|
3
|
-
export declare function OmitType<T extends any[], I1, S1, K extends keyof I1>(classRef: Class<T, I1, S1>, keys: readonly K[]): Class<T, Omit<I1, K>> & Omit<Pick<S1, keyof typeof classRef>, 'prototype' | 'constructor'>;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { Class } from 'ts-gems';
|
|
2
|
-
export declare function MixinType<A1 extends any[], I1, S1, A2 extends any[], I2, S2, A3 extends any[], I3, S3, A4 extends any[], I4, S4>(c1: Class<A1, I1, S1>, c2: Class<A2, I2, S2>, c3?: Class<A3, I3, S3>, c4?: Class<A4, I4, S4>): Class<any[], I1 & I2 & I3 & I4, S1 & S2 & S3 & S4>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ComplexType } from '../implementation/data-type/complex-type.js';
|
|
2
|
-
import type { OpraDocument } from '../implementation/opra-document.js';
|
|
3
|
-
export declare function normalizeFieldArray(document: OpraDocument, dataType: ComplexType | undefined, fields: string[], parentPath?: string): string[];
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Format } from './format.js';
|
|
2
|
-
export interface DateFormatOptions {
|
|
3
|
-
time?: boolean;
|
|
4
|
-
timeZone?: boolean;
|
|
5
|
-
min?: string;
|
|
6
|
-
max?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare class DateFormat extends Format {
|
|
9
|
-
time: boolean;
|
|
10
|
-
timeZone: boolean;
|
|
11
|
-
min?: string;
|
|
12
|
-
max?: string;
|
|
13
|
-
constructor(options?: DateFormatOptions);
|
|
14
|
-
parse(value: string): string;
|
|
15
|
-
stringify(value: any): string;
|
|
16
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { NumberFormat, NumberFormatOptions } from './number-format.js';
|
|
2
|
-
export interface IntegerFormatOptions extends NumberFormatOptions {
|
|
3
|
-
enum?: number[];
|
|
4
|
-
}
|
|
5
|
-
export declare class IntegerFormat extends NumberFormat {
|
|
6
|
-
enum?: number[];
|
|
7
|
-
constructor(options?: IntegerFormatOptions);
|
|
8
|
-
parse(value: string): number;
|
|
9
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Format } from './format.js';
|
|
2
|
-
export interface NumberFormatOptions {
|
|
3
|
-
max?: number;
|
|
4
|
-
min?: number;
|
|
5
|
-
}
|
|
6
|
-
export declare class NumberFormat extends Format {
|
|
7
|
-
max?: number;
|
|
8
|
-
min?: number;
|
|
9
|
-
constructor(options?: NumberFormatOptions);
|
|
10
|
-
parse(value: string): number;
|
|
11
|
-
stringify(value: any): string;
|
|
12
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Format } from './format.js';
|
|
2
|
-
export interface StringFormatOptions {
|
|
3
|
-
maxLength?: number;
|
|
4
|
-
minLength?: number;
|
|
5
|
-
enum?: string[];
|
|
6
|
-
}
|
|
7
|
-
export declare class StringFormat extends Format {
|
|
8
|
-
maxLength?: number;
|
|
9
|
-
minLength?: number;
|
|
10
|
-
enum?: string[];
|
|
11
|
-
constructor(options?: StringFormatOptions);
|
|
12
|
-
parse(value: string): string;
|
|
13
|
-
stringify(value: any): string;
|
|
14
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare function normalizePath(p?: string, noLeadingSlash?: boolean): string;
|
|
2
|
-
export declare function joinPath(...p: string[]): string;
|
|
3
|
-
export declare function decodePathComponent(input: string): {
|
|
4
|
-
resource: string;
|
|
5
|
-
key?: any;
|
|
6
|
-
typeCast?: string;
|
|
7
|
-
};
|
|
8
|
-
export declare function encodePathComponent(resource: string, key?: any, typeCast?: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isUrl(url: any): boolean;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { StrictOmit } from 'ts-gems';
|
|
2
|
-
import type { CollectionCreateQueryOptions, CollectionDeleteManyQueryOptions, CollectionGetQueryOptions, CollectionResourceInfo, CollectionSearchQueryOptions, CollectionUpdateManyQueryOptions, CollectionUpdateQueryOptions, HttpResponse, PartialInput } from '../common';
|
|
3
|
-
import { CommonHttpRequestOptions, HttpEvent, HttpRequestHandler } from './http-types.js';
|
|
4
|
-
import { CollectionCreateRequest } from './requests/collection-create-request.js';
|
|
5
|
-
import { CollectionDeleteManyRequest } from './requests/collection-delete-many-request.js';
|
|
6
|
-
import { CollectionDeleteRequest } from './requests/collection-delete-request.js';
|
|
7
|
-
import { CollectionGetRequest } from './requests/collection-get-request.js';
|
|
8
|
-
import { CollectionSearchRequest } from './requests/collection-search-request.js';
|
|
9
|
-
export declare class HttpCollectionService<TType, TResponseExt = never> {
|
|
10
|
-
readonly resource: CollectionResourceInfo;
|
|
11
|
-
protected _handler: HttpRequestHandler;
|
|
12
|
-
constructor(resource: CollectionResourceInfo, _handler: HttpRequestHandler);
|
|
13
|
-
create(data: PartialInput<TType>, options?: CollectionCreateQueryOptions & StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
14
|
-
observe?: 'body';
|
|
15
|
-
}): CollectionCreateRequest<TType, TType, HttpResponse<TType> & TResponseExt>;
|
|
16
|
-
create(data: PartialInput<TType>, options?: CollectionCreateQueryOptions & StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
17
|
-
observe: 'response';
|
|
18
|
-
}): CollectionCreateRequest<HttpResponse<TType> & TResponseExt, TType, HttpResponse<TType> & TResponseExt>;
|
|
19
|
-
create(data: PartialInput<TType>, options?: CollectionCreateQueryOptions & StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
20
|
-
observe: 'events';
|
|
21
|
-
}): CollectionCreateRequest<HttpEvent, TType, HttpResponse<TType> & TResponseExt>;
|
|
22
|
-
delete(id: any, options?: StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
23
|
-
observe?: 'body';
|
|
24
|
-
}): CollectionDeleteRequest<never, HttpResponse<never> & TResponseExt>;
|
|
25
|
-
delete(id: any, options?: StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
26
|
-
observe: 'response';
|
|
27
|
-
}): CollectionDeleteRequest<HttpResponse<never> & TResponseExt, HttpResponse<never> & TResponseExt>;
|
|
28
|
-
delete(id: any, options?: StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
29
|
-
observe: 'events';
|
|
30
|
-
}): CollectionDeleteRequest<HttpEvent, HttpResponse<never> & TResponseExt>;
|
|
31
|
-
deleteMany(options?: CollectionDeleteManyQueryOptions & StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
32
|
-
observe?: 'body';
|
|
33
|
-
}): CollectionDeleteManyRequest<never, HttpResponse<never> & TResponseExt>;
|
|
34
|
-
deleteMany(options?: CollectionDeleteManyQueryOptions & StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
35
|
-
observe: 'response';
|
|
36
|
-
}): CollectionDeleteManyRequest<HttpResponse<never> & TResponseExt, HttpResponse<never> & TResponseExt>;
|
|
37
|
-
deleteMany(options?: CollectionDeleteManyQueryOptions & StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
38
|
-
observe: 'events';
|
|
39
|
-
}): CollectionDeleteManyRequest<HttpEvent, HttpResponse<never> & TResponseExt>;
|
|
40
|
-
get(id: any, options?: CollectionGetQueryOptions & StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
41
|
-
observe?: 'body';
|
|
42
|
-
}): CollectionGetRequest<TType, TType, HttpResponse<TType> & TResponseExt>;
|
|
43
|
-
get(id: any, options?: CollectionGetQueryOptions & StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
44
|
-
observe: 'response';
|
|
45
|
-
}): CollectionGetRequest<HttpResponse<TType> & TResponseExt, TType, HttpResponse<TType> & TResponseExt>;
|
|
46
|
-
get(id: any, options?: CollectionGetQueryOptions & StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
47
|
-
observe: 'events';
|
|
48
|
-
}): CollectionGetRequest<HttpEvent, TType, HttpResponse<TType> & TResponseExt>;
|
|
49
|
-
search(options?: CollectionSearchQueryOptions & StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
50
|
-
observe?: 'body';
|
|
51
|
-
}): CollectionSearchRequest<TType[], TType, HttpResponse<TType> & TResponseExt>;
|
|
52
|
-
search(options?: CollectionSearchQueryOptions & StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
53
|
-
observe: 'response';
|
|
54
|
-
}): CollectionSearchRequest<HttpResponse<TType[]> & TResponseExt, TType, HttpResponse<TType> & TResponseExt>;
|
|
55
|
-
search(options?: CollectionSearchQueryOptions & StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
56
|
-
observe: 'events';
|
|
57
|
-
}): CollectionSearchRequest<HttpEvent, TType, HttpResponse<TType> & TResponseExt>;
|
|
58
|
-
update(id: any, data: PartialInput<TType>, options?: CollectionUpdateQueryOptions & StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
59
|
-
observe?: 'body';
|
|
60
|
-
}): CollectionSearchRequest<TType, TType, HttpResponse<TType> & TResponseExt>;
|
|
61
|
-
update(id: any, data: PartialInput<TType>, options?: CollectionUpdateQueryOptions & StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
62
|
-
observe: 'response';
|
|
63
|
-
}): CollectionSearchRequest<HttpResponse<TType> & TResponseExt, TType, HttpResponse<TType> & TResponseExt>;
|
|
64
|
-
update(id: any, data: PartialInput<TType>, options?: CollectionUpdateQueryOptions & StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
65
|
-
observe: 'events';
|
|
66
|
-
}): CollectionSearchRequest<HttpEvent, TType, HttpResponse<TType> & TResponseExt>;
|
|
67
|
-
updateMany(data: PartialInput<TType>, options?: CollectionUpdateManyQueryOptions & StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
68
|
-
observe?: 'body';
|
|
69
|
-
}): CollectionSearchRequest<TType, TType, HttpResponse<TType> & TResponseExt>;
|
|
70
|
-
updateMany(data: PartialInput<TType>, options?: CollectionUpdateManyQueryOptions & StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
71
|
-
observe: 'response';
|
|
72
|
-
}): CollectionSearchRequest<HttpResponse<TType> & TResponseExt, TType, HttpResponse<TType> & TResponseExt>;
|
|
73
|
-
updateMany(data: PartialInput<TType>, options?: CollectionUpdateManyQueryOptions & StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
74
|
-
observe: 'events';
|
|
75
|
-
}): CollectionSearchRequest<HttpEvent, TType, HttpResponse<TType> & TResponseExt>;
|
|
76
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { ClientHttpHeaders, HttpRequest, HttpResponse } from '../common';
|
|
3
|
-
import { CommonHttpRequestOptions, HttpRequestHandler } from './http-types.js';
|
|
4
|
-
declare const kRequest: unique symbol;
|
|
5
|
-
export declare class HttpRequestHost<T, TBody, TResponse extends HttpResponse<TBody>> extends Observable<T> {
|
|
6
|
-
protected static kHandler: symbol;
|
|
7
|
-
protected static kRequest: symbol;
|
|
8
|
-
readonly contentId: string;
|
|
9
|
-
protected [kRequest]: HttpRequest;
|
|
10
|
-
constructor(handler: HttpRequestHandler, options?: CommonHttpRequestOptions);
|
|
11
|
-
header<K extends keyof ClientHttpHeaders>(name: K, value: ClientHttpHeaders[K]): this;
|
|
12
|
-
param(name: string, value: any): this;
|
|
13
|
-
fetch(): Promise<TBody>;
|
|
14
|
-
fetch(observe: 'body'): Promise<TBody>;
|
|
15
|
-
fetch(observe: 'response'): Promise<TResponse>;
|
|
16
|
-
with(cb: (_this: this) => void): this;
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { StrictOmit } from 'ts-gems';
|
|
2
|
-
import { HttpResponse, SingletonGetQueryOptions, SingletonResourceInfo } from '../common';
|
|
3
|
-
import { CommonHttpRequestOptions, HttpEvent, HttpRequestHandler } from './http-types.js';
|
|
4
|
-
import { SingletonDeleteRequest } from './requests/singleton-delete-request.js';
|
|
5
|
-
import { SingletonGetRequest } from './requests/singleton-get-request.js';
|
|
6
|
-
export declare class HttpSingletonService<TType, TResponseExt> {
|
|
7
|
-
readonly resource: SingletonResourceInfo;
|
|
8
|
-
protected _handler: HttpRequestHandler;
|
|
9
|
-
constructor(resource: SingletonResourceInfo, _handler: HttpRequestHandler);
|
|
10
|
-
get(options?: SingletonGetQueryOptions & StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
11
|
-
observe?: 'body';
|
|
12
|
-
}): SingletonGetRequest<TType, TType, HttpResponse<TType> & TResponseExt>;
|
|
13
|
-
get(options?: SingletonGetQueryOptions & StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
14
|
-
observe: 'response';
|
|
15
|
-
}): SingletonGetRequest<HttpResponse<TType> & TResponseExt, TType, HttpResponse<TType> & TResponseExt>;
|
|
16
|
-
get(options?: SingletonGetQueryOptions & StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
17
|
-
observe: 'events';
|
|
18
|
-
}): SingletonGetRequest<HttpEvent, TType, HttpResponse<TType> & TResponseExt>;
|
|
19
|
-
delete(options?: StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
20
|
-
observe?: 'body';
|
|
21
|
-
}): SingletonDeleteRequest<never, HttpResponse<never> & TResponseExt>;
|
|
22
|
-
delete(options?: StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
23
|
-
observe: 'response';
|
|
24
|
-
}): SingletonDeleteRequest<HttpResponse<never> & TResponseExt, HttpResponse<never> & TResponseExt>;
|
|
25
|
-
delete(options?: StrictOmit<CommonHttpRequestOptions, 'observe'> & {
|
|
26
|
-
observe: 'events';
|
|
27
|
-
}): SingletonDeleteRequest<HttpEvent, HttpResponse<never> & TResponseExt>;
|
|
28
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CollectionCreateQueryOptions, CollectionResourceInfo, HttpResponse, PartialInput } from '../../common';
|
|
2
|
-
import { HttpRequestHost } from '../http-request-host.js';
|
|
3
|
-
import { CommonHttpRequestOptions, HttpRequestHandler } from '../http-types.js';
|
|
4
|
-
export declare class CollectionCreateRequest<T, TType, TResponse extends HttpResponse<TType>> extends HttpRequestHost<T, TType, TResponse> {
|
|
5
|
-
readonly resource: CollectionResourceInfo;
|
|
6
|
-
constructor(handler: HttpRequestHandler, resource: CollectionResourceInfo, data: PartialInput<TType>, options?: CollectionCreateQueryOptions & CommonHttpRequestOptions);
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CollectionDeleteManyQueryOptions, CollectionResourceInfo, HttpResponse } from '../../common';
|
|
2
|
-
import { HttpRequestHost } from '../http-request-host.js';
|
|
3
|
-
import { CommonHttpRequestOptions, HttpRequestHandler } from '../http-types.js';
|
|
4
|
-
export declare class CollectionDeleteManyRequest<T, TResponse extends HttpResponse<never>> extends HttpRequestHost<T, never, TResponse> {
|
|
5
|
-
readonly resource: CollectionResourceInfo;
|
|
6
|
-
constructor(handler: HttpRequestHandler, resource: CollectionResourceInfo, options?: CollectionDeleteManyQueryOptions & CommonHttpRequestOptions);
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CollectionResourceInfo, HttpResponse } from '../../common';
|
|
2
|
-
import { HttpRequestHost } from '../http-request-host.js';
|
|
3
|
-
import { CommonHttpRequestOptions, HttpRequestHandler } from '../http-types.js';
|
|
4
|
-
export declare class CollectionDeleteRequest<T, TResponse extends HttpResponse<never>> extends HttpRequestHost<T, never, TResponse> {
|
|
5
|
-
readonly resource: CollectionResourceInfo;
|
|
6
|
-
constructor(handler: HttpRequestHandler, resource: CollectionResourceInfo, id: any, options?: CommonHttpRequestOptions);
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CollectionGetQueryOptions, CollectionResourceInfo, HttpResponse } from '../../common';
|
|
2
|
-
import { HttpRequestHost } from '../http-request-host.js';
|
|
3
|
-
import { CommonHttpRequestOptions, HttpRequestHandler } from '../http-types.js';
|
|
4
|
-
export declare class CollectionGetRequest<T, TType, TResponse extends HttpResponse<TType>> extends HttpRequestHost<T, TType, TResponse> {
|
|
5
|
-
readonly resource: CollectionResourceInfo;
|
|
6
|
-
constructor(handler: HttpRequestHandler, resource: CollectionResourceInfo, id: any, options?: CollectionGetQueryOptions & CommonHttpRequestOptions);
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CollectionResourceInfo, CollectionSearchQueryOptions, HttpResponse } from '../../common';
|
|
2
|
-
import { HttpRequestHost } from '../http-request-host.js';
|
|
3
|
-
import { CommonHttpRequestOptions, HttpRequestHandler } from '../http-types.js';
|
|
4
|
-
export declare class CollectionSearchRequest<T, TType, TResponse extends HttpResponse<TType>> extends HttpRequestHost<T, TType, TResponse> {
|
|
5
|
-
readonly resource: CollectionResourceInfo;
|
|
6
|
-
constructor(handler: HttpRequestHandler, resource: CollectionResourceInfo, options?: CollectionSearchQueryOptions & CommonHttpRequestOptions);
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CollectionResourceInfo, CollectionUpdateManyQueryOptions, HttpResponse, PartialInput } from '../../common';
|
|
2
|
-
import { HttpRequestHost } from '../http-request-host.js';
|
|
3
|
-
import { CommonHttpRequestOptions, HttpRequestHandler } from '../http-types.js';
|
|
4
|
-
export declare class CollectionUpdateManyRequest<T, TType, TResponse extends HttpResponse<TType>> extends HttpRequestHost<T, TType, TResponse> {
|
|
5
|
-
readonly resource: CollectionResourceInfo;
|
|
6
|
-
constructor(handler: HttpRequestHandler, resource: CollectionResourceInfo, data: PartialInput<TType>, options?: CollectionUpdateManyQueryOptions & CommonHttpRequestOptions);
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CollectionResourceInfo, CollectionUpdateQueryOptions, HttpResponse, PartialInput } from '../../common';
|
|
2
|
-
import { HttpRequestHost } from '../http-request-host.js';
|
|
3
|
-
import { CommonHttpRequestOptions, HttpRequestHandler } from '../http-types.js';
|
|
4
|
-
export declare class CollectionUpdateRequest<T, TType, TResponse extends HttpResponse<TType>> extends HttpRequestHost<T, TType, TResponse> {
|
|
5
|
-
readonly resource: CollectionResourceInfo;
|
|
6
|
-
constructor(handler: HttpRequestHandler, resource: CollectionResourceInfo, id: any, data: PartialInput<TType>, options?: CollectionUpdateQueryOptions & CommonHttpRequestOptions);
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CollectionCreateQueryOptions, HttpResponse, PartialInput, SingletonResourceInfo } from '../../common';
|
|
2
|
-
import { HttpRequestHost } from '../http-request-host.js';
|
|
3
|
-
import { CommonHttpRequestOptions, HttpRequestHandler } from '../http-types.js';
|
|
4
|
-
export declare class SingletonCreateRequest<T, TType, TResponse extends HttpResponse<TType>> extends HttpRequestHost<T, TType, TResponse> {
|
|
5
|
-
readonly resource: SingletonResourceInfo;
|
|
6
|
-
constructor(handler: HttpRequestHandler, resource: SingletonResourceInfo, data: PartialInput<TType>, options?: CollectionCreateQueryOptions & CommonHttpRequestOptions);
|
|
7
|
-
}
|