@opra/client 0.7.0 → 0.8.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/README.md +1 -1
- package/cjs/714.min.cjs +1 -0
- package/cjs/antlr4ts.min.cjs +2 -0
- package/cjs/antlr4ts.min.cjs.LICENSE.txt +4 -0
- package/cjs/main.min.cjs +1 -0
- package/cjs/opra-common.min.cjs +1 -0
- package/cjs/vendors.min.cjs +2 -0
- package/cjs/vendors.min.cjs.LICENSE.txt +52 -0
- package/esm/714.min.mjs +1 -0
- package/esm/antlr4ts.min.mjs +2 -0
- package/esm/antlr4ts.min.mjs.LICENSE.txt +4 -0
- package/esm/main.min.mjs +1 -0
- package/esm/opra-common.min.mjs +1 -0
- package/esm/vendors.min.mjs +2 -0
- package/esm/vendors.min.mjs.LICENSE.txt +52 -0
- package/package.json +22 -50
- package/{esm → typings}/client-error.d.ts +1 -1
- package/typings/common/constants.d.ts +0 -0
- package/typings/common/exception/enums/issue-severity.enum.d.ts +13 -0
- package/typings/common/exception/error-issue.d.ts +9 -0
- package/typings/common/exception/http-errors/bad-request.error.d.ts +10 -0
- package/typings/common/exception/http-errors/failed-dependency.error.d.ts +9 -0
- package/typings/common/exception/http-errors/forbidden.error.d.ts +11 -0
- package/typings/common/exception/http-errors/internal-server.error.d.ts +9 -0
- package/typings/common/exception/http-errors/method-not-allowed.error.d.ts +10 -0
- package/typings/common/exception/http-errors/not-acceptable.error.d.ts +10 -0
- package/typings/common/exception/http-errors/not-found.error.d.ts +13 -0
- package/typings/common/exception/http-errors/unauthorized.error.d.ts +10 -0
- package/typings/common/exception/http-errors/unprocessable-entity.error.d.ts +9 -0
- package/typings/common/exception/index.d.ts +15 -0
- package/typings/common/exception/opra-exception.d.ts +15 -0
- package/typings/common/exception/resource-errors/resource-conflict.error.d.ts +5 -0
- package/typings/common/exception/resource-errors/resource-not-found.error.d.ts +4 -0
- package/typings/common/exception/wrap-exception.d.ts +2 -0
- package/typings/common/filter/antlr/OpraFilterLexer.d.ts +78 -0
- package/typings/common/filter/antlr/OpraFilterParser.d.ts +365 -0
- package/typings/common/filter/antlr/OpraFilterVisitor.d.ts +290 -0
- package/typings/common/filter/ast/abstract/ast.d.ts +5 -0
- package/typings/common/filter/ast/abstract/expression.d.ts +3 -0
- package/typings/common/filter/ast/abstract/literal.d.ts +6 -0
- package/typings/common/filter/ast/abstract/term.d.ts +3 -0
- package/typings/common/filter/ast/expressions/arithmetic-expression.d.ts +13 -0
- package/typings/common/filter/ast/expressions/array-expression.d.ts +7 -0
- package/typings/common/filter/ast/expressions/comparison-expression.d.ts +10 -0
- package/typings/common/filter/ast/expressions/logical-expression.d.ts +8 -0
- package/typings/common/filter/ast/expressions/parentheses-expression.d.ts +6 -0
- package/typings/common/filter/ast/index.d.ts +16 -0
- package/typings/common/filter/ast/terms/boolean-literal.d.ts +5 -0
- package/typings/common/filter/ast/terms/date-literal.d.ts +6 -0
- package/typings/common/filter/ast/terms/external-constant.d.ts +5 -0
- package/typings/common/filter/ast/terms/null-literal.d.ts +5 -0
- package/typings/common/filter/ast/terms/number-literal.d.ts +6 -0
- package/typings/common/filter/ast/terms/qualified-identifier.d.ts +4 -0
- package/typings/common/filter/ast/terms/string-literal.d.ts +5 -0
- package/typings/common/filter/ast/terms/time-literal.d.ts +6 -0
- package/typings/common/filter/build.d.ts +31 -0
- package/typings/common/filter/error-listener.d.ts +8 -0
- package/typings/common/filter/errors.d.ts +20 -0
- package/typings/common/filter/filter-tree-visitor.d.ts +30 -0
- package/typings/common/filter/index.d.ts +5 -0
- package/typings/common/filter/parse.d.ts +2 -0
- package/typings/common/filter/utils.d.ts +2 -0
- package/typings/common/helpers/index.d.ts +1 -0
- package/typings/common/helpers/responsive-map.d.ts +18 -0
- package/typings/common/http/enums/http-headers.enum.d.ts +379 -0
- package/typings/common/http/enums/http-status.enum.d.ts +290 -0
- package/typings/common/http/http-request.d.ts +34 -0
- package/typings/common/http/index.d.ts +6 -0
- package/typings/common/http/interfaces/client-http-headers.interface.d.ts +65 -0
- package/typings/common/http/interfaces/server-http-headers.interface.d.ts +1 -0
- package/typings/common/http/multipart/batch-multipart.d.ts +31 -0
- package/typings/common/http/multipart/http-request-content.d.ts +8 -0
- package/typings/common/http/multipart/http-response-content.d.ts +7 -0
- package/typings/common/http/multipart/index.d.ts +1 -0
- package/typings/common/http/utils/normalize-headers.d.ts +1 -0
- package/typings/common/i18n/i18n.d.ts +28 -0
- package/typings/common/i18n/index.d.ts +5 -0
- package/typings/common/i18n/string-utils.d.ts +2 -0
- package/typings/common/i18n/translate.d.ts +4 -0
- package/typings/common/index.d.ts +10 -0
- package/typings/common/schema/constants.d.ts +8 -0
- package/typings/common/schema/decorators/opr-collection-resource.decorator.d.ts +8 -0
- package/typings/common/schema/decorators/opr-complex-type.decorator.d.ts +6 -0
- package/typings/common/schema/decorators/opr-field.decorator.d.ts +3 -0
- package/typings/common/schema/decorators/opr-resolver.decorator.d.ts +8 -0
- package/typings/common/schema/decorators/opr-simple-type.decorator.d.ts +6 -0
- package/typings/common/schema/decorators/opr-singleton-resource.decorator.d.ts +8 -0
- package/typings/common/schema/implementation/data-type/builtin/any.type.d.ts +2 -0
- package/typings/common/schema/implementation/data-type/builtin/base64-binary.type.d.ts +2 -0
- package/typings/common/schema/implementation/data-type/builtin/bigint.type.d.ts +2 -0
- package/typings/common/schema/implementation/data-type/builtin/boolean.type.d.ts +2 -0
- package/typings/common/schema/implementation/data-type/builtin/date-string.type.d.ts +2 -0
- package/typings/common/schema/implementation/data-type/builtin/date.type.d.ts +2 -0
- package/typings/common/schema/implementation/data-type/builtin/guid.type.d.ts +2 -0
- package/typings/common/schema/implementation/data-type/builtin/integer.type.d.ts +2 -0
- package/typings/common/schema/implementation/data-type/builtin/number.type.d.ts +2 -0
- package/typings/common/schema/implementation/data-type/builtin/object.type.d.ts +2 -0
- package/typings/common/schema/implementation/data-type/builtin/string.type.d.ts +2 -0
- package/typings/common/schema/implementation/data-type/builtin-data-types.d.ts +4 -0
- package/typings/common/schema/implementation/data-type/complex-type.d.ts +29 -0
- package/typings/common/schema/implementation/data-type/data-type.d.ts +16 -0
- package/typings/common/schema/implementation/data-type/simple-type.d.ts +12 -0
- package/typings/common/schema/implementation/data-type/union-type.d.ts +16 -0
- package/typings/common/schema/implementation/document-builder.d.ts +16 -0
- package/typings/common/schema/implementation/opra-document.d.ts +44 -0
- package/typings/common/schema/implementation/query/collection-count-query.d.ts +14 -0
- package/typings/common/schema/implementation/query/collection-create-query.d.ts +18 -0
- package/typings/common/schema/implementation/query/collection-delete-many-query.d.ts +14 -0
- package/typings/common/schema/implementation/query/collection-delete-query.d.ts +10 -0
- package/typings/common/schema/implementation/query/collection-get-query.d.ts +21 -0
- package/typings/common/schema/implementation/query/collection-search-query.d.ts +30 -0
- package/typings/common/schema/implementation/query/collection-update-many-query.d.ts +15 -0
- package/typings/common/schema/implementation/query/collection-update-query.d.ts +19 -0
- package/typings/common/schema/implementation/query/field-get-query.d.ts +30 -0
- package/typings/common/schema/implementation/query/index.d.ts +27 -0
- package/typings/common/schema/implementation/query/singleton-get-query.d.ts +20 -0
- package/typings/common/schema/implementation/resource/collection-resource-info.d.ts +19 -0
- package/typings/common/schema/implementation/resource/container-resource-info.d.ts +13 -0
- package/typings/common/schema/implementation/resource/resource-info.d.ts +17 -0
- package/typings/common/schema/implementation/resource/singleton-resource-info.d.ts +14 -0
- package/typings/common/schema/implementation/schema-builder/extract-resource-metadata.util.d.ts +3 -0
- package/typings/common/schema/implementation/schema-builder/extract-type-metadata.util.d.ts +4 -0
- package/typings/common/schema/index.d.ts +25 -0
- package/typings/common/schema/interfaces/child-field-query.interface.d.ts +4 -0
- package/typings/common/schema/interfaces/data-type.metadata.d.ts +18 -0
- package/typings/common/schema/interfaces/resource-container.interface.d.ts +8 -0
- package/typings/common/schema/interfaces/resource.metadata.d.ts +18 -0
- package/typings/common/schema/opra-schema.definition.d.ts +178 -0
- package/typings/common/schema/type-helpers/extend-type.helper.d.ts +3 -0
- package/typings/common/schema/type-helpers/mixin-type.helper.d.ts +2 -0
- package/typings/common/schema/type-helpers/mixin.utils.d.ts +3 -0
- package/typings/common/schema/types.d.ts +14 -0
- package/typings/common/schema/utils/class.utils.d.ts +2 -0
- package/typings/common/schema/utils/clone-object.util.d.ts +1 -0
- package/typings/common/schema/utils/inspect.util.d.ts +4 -0
- package/typings/common/schema/utils/normalize-field-array.util.d.ts +3 -0
- package/typings/common/schema/utils/path-to-tree.util.d.ts +4 -0
- package/typings/common/schema/utils/string-compare.util.d.ts +1 -0
- package/typings/common/url/formats/boolean-format.d.ts +5 -0
- package/typings/common/url/formats/date-format.d.ts +16 -0
- package/typings/common/url/formats/filter-format.d.ts +6 -0
- package/typings/common/url/formats/format.d.ts +4 -0
- package/typings/common/url/formats/integer-format.d.ts +9 -0
- package/typings/common/url/formats/number-format.d.ts +12 -0
- package/typings/common/url/formats/string-format.d.ts +14 -0
- package/typings/common/url/index.d.ts +5 -0
- package/typings/common/url/opra-url-path-component.d.ts +15 -0
- package/typings/common/url/opra-url-path.d.ts +30 -0
- package/typings/common/url/opra-url-search-params.d.ts +44 -0
- package/typings/common/url/opra-url.d.ts +79 -0
- package/typings/common/url/utils/path-utils.d.ts +8 -0
- package/typings/common/utils/index.d.ts +3 -0
- package/typings/common/utils/is-url.d.ts +1 -0
- package/typings/common/utils/path-to-tree.d.ts +4 -0
- package/typings/common/utils/type-guards.d.ts +9 -0
- package/{esm → typings}/constants.d.ts +0 -0
- package/{esm → typings}/http/http-client.d.ts +1 -1
- package/{esm → typings}/http/http-collection-service.d.ts +1 -1
- package/{esm → typings}/http/http-request.d.ts +1 -1
- package/{esm → typings}/http/http-response.d.ts +0 -0
- package/{esm → typings}/http/http-singleton-service.d.ts +1 -1
- package/{esm → typings}/http/http-types.d.ts +1 -1
- package/{esm → typings}/http/requests/batch-request.d.ts +1 -1
- package/{esm → typings}/http/requests/collection-create-request.d.ts +1 -1
- package/{esm → typings}/http/requests/collection-delete-many-request.d.ts +1 -1
- package/{esm → typings}/http/requests/collection-delete-request.d.ts +1 -1
- package/{esm → typings}/http/requests/collection-get-request.d.ts +1 -1
- package/{esm → typings}/http/requests/collection-search-request.d.ts +1 -1
- package/{esm → typings}/http/requests/collection-update-many-request.d.ts +1 -1
- package/{esm → typings}/http/requests/collection-update-request.d.ts +1 -1
- package/{esm → typings}/http/requests/http-singleton-get-request.d.ts +1 -1
- package/{esm → typings}/http/utils/merge-raw-http-requests.util.d.ts +0 -0
- package/{esm → typings}/index.d.ts +0 -1
- package/{esm → typings}/interfaces/http-options.interface.d.ts +1 -4
- package/{esm → typings}/interfaces/http-request-config.interface.d.ts +1 -1
- package/umd/714.min.cjs +1 -0
- package/umd/antlr4ts.min.cjs +2 -0
- package/umd/antlr4ts.min.cjs.LICENSE.txt +4 -0
- package/umd/main.min.cjs +1 -0
- package/umd/opra-common.min.cjs +1 -0
- package/umd/vendors.min.cjs +2 -0
- package/umd/vendors.min.cjs.LICENSE.txt +52 -0
- package/cjs/client-error.js +0 -20
- package/cjs/constants.js +0 -6
- package/cjs/http/http-client.js +0 -164
- package/cjs/http/http-collection-service.js +0 -40
- package/cjs/http/http-request.js +0 -66
- package/cjs/http/http-response.js +0 -2
- package/cjs/http/http-singleton-service.js +0 -16
- package/cjs/http/http-types.js +0 -2
- package/cjs/http/requests/batch-request.js +0 -80
- package/cjs/http/requests/collection-create-request.js +0 -35
- package/cjs/http/requests/collection-delete-many-request.js +0 -28
- package/cjs/http/requests/collection-delete-request.js +0 -29
- package/cjs/http/requests/collection-get-request.js +0 -37
- package/cjs/http/requests/collection-search-request.js +0 -44
- package/cjs/http/requests/collection-update-many-request.js +0 -31
- package/cjs/http/requests/collection-update-request.js +0 -40
- package/cjs/http/requests/http-singleton-get-request.js +0 -31
- package/cjs/http/utils/merge-raw-http-requests.util.js +0 -29
- package/cjs/index.js +0 -20
- package/cjs/interfaces/http-options.interface.js +0 -2
- package/cjs/interfaces/http-request-config.interface.js +0 -2
- package/cjs/package.json +0 -3
- package/cjs/types.js +0 -2
- package/esm/client-error.js +0 -16
- package/esm/constants.js +0 -3
- package/esm/http/http-client.js +0 -160
- package/esm/http/http-collection-service.js +0 -36
- package/esm/http/http-request.js +0 -62
- package/esm/http/http-response.js +0 -1
- package/esm/http/http-singleton-service.js +0 -12
- package/esm/http/http-types.js +0 -1
- package/esm/http/requests/batch-request.js +0 -76
- package/esm/http/requests/collection-create-request.js +0 -31
- package/esm/http/requests/collection-delete-many-request.js +0 -24
- package/esm/http/requests/collection-delete-request.js +0 -25
- package/esm/http/requests/collection-get-request.js +0 -33
- package/esm/http/requests/collection-search-request.js +0 -40
- package/esm/http/requests/collection-update-many-request.js +0 -27
- package/esm/http/requests/collection-update-request.js +0 -36
- package/esm/http/requests/http-singleton-get-request.js +0 -27
- package/esm/http/utils/merge-raw-http-requests.util.js +0 -25
- package/esm/index.js +0 -17
- package/esm/interfaces/http-options.interface.js +0 -1
- package/esm/interfaces/http-request-config.interface.js +0 -1
- package/esm/types.d.ts +0 -7
- package/esm/types.js +0 -1
- package/umd/opra-client.umd.min.js +0 -1
|
@@ -0,0 +1,178 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
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'>;
|
|
@@ -0,0 +1,2 @@
|
|
|
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>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Type } from 'ts-gems';
|
|
2
|
+
export declare function applyMixins(derivedCtor: any, baseCtor: any, filter?: (k: string) => boolean): void;
|
|
3
|
+
export declare function inheritPropertyInitializers(target: Record<string, any>, sourceClass: Type, isPropertyInherited?: (key: string) => boolean): void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Builtin, DeepPickWritable, Type } from 'ts-gems';
|
|
2
|
+
export declare type PartialInput<T> = DeepNullablePartial<DeepPickWritable<T>>;
|
|
3
|
+
export declare type PartialOutput<T> = DeepNullablePartial<T>;
|
|
4
|
+
declare type DeepNullablePartial<T> = T extends Builtin ? T : T extends Promise<infer U> ? Promise<DeepNullablePartial<U>> : T extends (infer U)[] ? DeepNullablePartial<U>[] : {
|
|
5
|
+
[P in keyof T]?: DeepNullablePartial<Exclude<T[P], undefined>> | null;
|
|
6
|
+
};
|
|
7
|
+
export declare type Thunk<T> = T | (() => T);
|
|
8
|
+
export declare type ThunkAsync<T> = T | Promise<T> | (() => T) | (() => Promise<T>);
|
|
9
|
+
export declare type TypeThunk<T = any> = Thunk<Type<T>>;
|
|
10
|
+
export declare type TypeThunkAsync<T = any> = ThunkAsync<Type<T>>;
|
|
11
|
+
export declare type Named<T> = T & {
|
|
12
|
+
name: string;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function cloneObject<T extends {}>(obj: T, jsonOnly?: boolean): T;
|
|
@@ -0,0 +1,3 @@
|
|
|
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[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function stringCompare(a: string, b: string): number;
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const nodeInspectCustom: unique symbol;
|
|
2
|
+
export declare type OpraURLPathComponentInit = {
|
|
3
|
+
resource: string;
|
|
4
|
+
key?: any;
|
|
5
|
+
typeCast?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare class OpraURLPathComponent {
|
|
8
|
+
resource: string;
|
|
9
|
+
key?: any;
|
|
10
|
+
typeCast?: string;
|
|
11
|
+
constructor(init: OpraURLPathComponentInit);
|
|
12
|
+
toString(): string;
|
|
13
|
+
[nodeInspectCustom](): any;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { EventEmitter } from 'events';
|
|
3
|
+
import { OpraURLPathComponent, OpraURLPathComponentInit } from './opra-url-path-component.js';
|
|
4
|
+
declare const nodeInspectCustom: unique symbol;
|
|
5
|
+
export declare class OpraURLPath extends EventEmitter {
|
|
6
|
+
private _entries;
|
|
7
|
+
constructor(...components: (OpraURLPathComponent | OpraURLPathComponentInit)[]);
|
|
8
|
+
constructor(init?: string | OpraURLPath | URL | OpraURLPathComponent | OpraURLPathComponentInit);
|
|
9
|
+
get size(): number;
|
|
10
|
+
add(component: OpraURLPathComponent | {
|
|
11
|
+
resource: string;
|
|
12
|
+
key?: any;
|
|
13
|
+
typeCast?: string;
|
|
14
|
+
}): void;
|
|
15
|
+
add(name: string, key?: any, typeCast?: string): void;
|
|
16
|
+
clear(): void;
|
|
17
|
+
get(index: number): OpraURLPathComponent;
|
|
18
|
+
join(pathString: string): this;
|
|
19
|
+
entries(): IterableIterator<[OpraURLPathComponent, number]>;
|
|
20
|
+
values(): IterableIterator<OpraURLPathComponent>;
|
|
21
|
+
forEach(callback: (name: string, key: any, _this: this) => void): void;
|
|
22
|
+
getResource(index: number): string | undefined;
|
|
23
|
+
getKey(index: number): any;
|
|
24
|
+
toString(): string;
|
|
25
|
+
[Symbol.iterator](): IterableIterator<[OpraURLPathComponent, number]>;
|
|
26
|
+
[nodeInspectCustom](): OpraURLPathComponent[];
|
|
27
|
+
protected _add(component: any, key?: any, typeCast?: string): void;
|
|
28
|
+
protected _parse(v: string): void;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { EventEmitter } from 'events';
|
|
3
|
+
import { StrictOmit } from 'ts-gems';
|
|
4
|
+
import { ResponsiveMap } from '../helpers/index.js';
|
|
5
|
+
import { Format } from './formats/format.js';
|
|
6
|
+
declare const nodeInspectCustom: unique symbol;
|
|
7
|
+
interface OpraURLSearchParamItem {
|
|
8
|
+
name: string;
|
|
9
|
+
format?: Format | string;
|
|
10
|
+
array?: boolean | 'strict';
|
|
11
|
+
arrayDelimiter?: string;
|
|
12
|
+
minArrayItems?: number;
|
|
13
|
+
maxArrayItems?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare class OpraURLSearchParams extends EventEmitter {
|
|
16
|
+
protected _params: ResponsiveMap<string, OpraURLSearchParamItem>;
|
|
17
|
+
private _entries;
|
|
18
|
+
private _size;
|
|
19
|
+
constructor(init?: (string | URLSearchParams | OpraURLSearchParams));
|
|
20
|
+
get size(): number;
|
|
21
|
+
addAll(values: URLSearchParams | OpraURLSearchParams | Map<string, any> | Record<string, any>): void;
|
|
22
|
+
append(name: string, value?: any): void;
|
|
23
|
+
clear(): void;
|
|
24
|
+
defineParam(name: string, options?: StrictOmit<OpraURLSearchParamItem, 'name'>): this;
|
|
25
|
+
delete(name: string): void;
|
|
26
|
+
entries(): IterableIterator<[string, any]>;
|
|
27
|
+
forEach(callback: (value: any, name: string, _this: this) => void): void;
|
|
28
|
+
get(name: string, index?: number): any | null;
|
|
29
|
+
getAll(name: string): any[];
|
|
30
|
+
has(name: string): boolean;
|
|
31
|
+
keys(): IterableIterator<string>;
|
|
32
|
+
set(name: string, value?: any): void;
|
|
33
|
+
sort(compareFn?: (a: string, b: string) => number): void;
|
|
34
|
+
values(): IterableIterator<any>;
|
|
35
|
+
toString(): string;
|
|
36
|
+
parse(input: string): void;
|
|
37
|
+
toURLSearchParams(): URLSearchParams;
|
|
38
|
+
[Symbol.iterator](): IterableIterator<[string, any]>;
|
|
39
|
+
get [Symbol.toStringTag](): string;
|
|
40
|
+
[nodeInspectCustom](): ResponsiveMap<string, any[]>;
|
|
41
|
+
protected _delete(name: string): boolean;
|
|
42
|
+
protected _add(name: string, value: any): boolean;
|
|
43
|
+
}
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { OpraURLPath } from './opra-url-path.js';
|
|
2
|
+
import { OpraURLSearchParams } from './opra-url-search-params.js';
|
|
3
|
+
declare const nodeInspectCustom: unique symbol;
|
|
4
|
+
declare const CONTEXT_KEY: unique symbol;
|
|
5
|
+
declare const PATH_KEY: unique symbol;
|
|
6
|
+
declare const SEARCHPARAMS_KEY: unique symbol;
|
|
7
|
+
export declare class OpraURL {
|
|
8
|
+
protected [CONTEXT_KEY]: {
|
|
9
|
+
protocol: string;
|
|
10
|
+
username: string;
|
|
11
|
+
password: string;
|
|
12
|
+
hostname: string;
|
|
13
|
+
pathPrefix: string;
|
|
14
|
+
port: number | null;
|
|
15
|
+
hash: string;
|
|
16
|
+
pathname: string;
|
|
17
|
+
search: string;
|
|
18
|
+
needUpdate: boolean;
|
|
19
|
+
};
|
|
20
|
+
protected [PATH_KEY]: OpraURLPath;
|
|
21
|
+
protected [SEARCHPARAMS_KEY]: OpraURLSearchParams;
|
|
22
|
+
constructor(input?: string, pathPrefix?: string);
|
|
23
|
+
get address(): string;
|
|
24
|
+
get href(): string;
|
|
25
|
+
get protocol(): string;
|
|
26
|
+
set protocol(v: string);
|
|
27
|
+
get username(): string;
|
|
28
|
+
set username(v: string);
|
|
29
|
+
get password(): string;
|
|
30
|
+
set password(v: string);
|
|
31
|
+
get host(): string;
|
|
32
|
+
set host(v: string);
|
|
33
|
+
get hostname(): string;
|
|
34
|
+
set hostname(v: string);
|
|
35
|
+
get port(): number | null;
|
|
36
|
+
set port(v: number | null);
|
|
37
|
+
get origin(): string;
|
|
38
|
+
get pathPrefix(): string;
|
|
39
|
+
set pathPrefix(v: string);
|
|
40
|
+
get path(): OpraURLPath;
|
|
41
|
+
get pathname(): string;
|
|
42
|
+
set pathname(v: string);
|
|
43
|
+
get searchParams(): OpraURLSearchParams;
|
|
44
|
+
get hash(): string;
|
|
45
|
+
set hash(v: string);
|
|
46
|
+
get search(): string;
|
|
47
|
+
set search(v: string);
|
|
48
|
+
addPath(name: string, key?: any): this;
|
|
49
|
+
addSearchParam(name: string, value?: any): this;
|
|
50
|
+
setHost(v: string): this;
|
|
51
|
+
setHostname(v: string): this;
|
|
52
|
+
setProtocol(v: string): this;
|
|
53
|
+
setPort(v: number | null): this;
|
|
54
|
+
setPrefix(v: string): this;
|
|
55
|
+
setPathname(v: string): this;
|
|
56
|
+
setHash(v: string): this;
|
|
57
|
+
setSearch(v: string): this;
|
|
58
|
+
setSearchParam(name: string, value?: any): this;
|
|
59
|
+
parse(input: string): this;
|
|
60
|
+
toString(): string;
|
|
61
|
+
[nodeInspectCustom](): {
|
|
62
|
+
protocol: string;
|
|
63
|
+
username: string;
|
|
64
|
+
password: string;
|
|
65
|
+
host: string;
|
|
66
|
+
hostname: string;
|
|
67
|
+
origin: string;
|
|
68
|
+
pathPrefix: string;
|
|
69
|
+
path: OpraURLPath;
|
|
70
|
+
pathname: string;
|
|
71
|
+
search: string;
|
|
72
|
+
searchParams: OpraURLSearchParams;
|
|
73
|
+
hash: string;
|
|
74
|
+
};
|
|
75
|
+
protected _invalidate(): void;
|
|
76
|
+
protected _update(): void;
|
|
77
|
+
protected _setPathname(v: string, inclSvcRoot?: boolean): void;
|
|
78
|
+
}
|
|
79
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isUrl(url: any): boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference lib="dom" />
|
|
3
|
+
import { Readable } from 'stream';
|
|
4
|
+
export declare function typeGuards(stream: any): boolean;
|
|
5
|
+
export declare function isReadable(x: any): x is Readable;
|
|
6
|
+
export declare function isReadableStream(x: any): x is ReadableStream;
|
|
7
|
+
export declare function isBlob(x: any): x is Blob;
|
|
8
|
+
export declare function isFormData(x: any): x is FormData;
|
|
9
|
+
export declare function isURL(x: any): x is URL;
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Type } from 'ts-gems';
|
|
2
|
-
import { OpraDocument } from '
|
|
2
|
+
import { OpraDocument } from '../common';
|
|
3
3
|
import { HttpCollectionService } from './http-collection-service.js';
|
|
4
4
|
import { HttpRequest } from './http-request.js';
|
|
5
5
|
import { HttpResponse } from './http-response.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CollectionCreateQueryOptions, CollectionDeleteManyQueryOptions, CollectionGetQueryOptions, CollectionResourceInfo, CollectionSearchQueryOptions, CollectionUpdateManyQueryOptions, CollectionUpdateQueryOptions, PartialInput } from '
|
|
1
|
+
import type { CollectionCreateQueryOptions, CollectionDeleteManyQueryOptions, CollectionGetQueryOptions, CollectionResourceInfo, CollectionSearchQueryOptions, CollectionUpdateManyQueryOptions, CollectionUpdateQueryOptions, PartialInput } from '../common';
|
|
2
2
|
import { HttpResponse } from './http-response.js';
|
|
3
3
|
import { CommonHttpRequestOptions, HttpRequestHandler } from './http-types.js';
|
|
4
4
|
import { CollectionCreateRequest } from './requests/collection-create-request.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { ClientHttpHeaders } from '
|
|
2
|
+
import { ClientHttpHeaders } from '../common';
|
|
3
3
|
import { HttpResponse } from './http-response.js';
|
|
4
4
|
import { CommonHttpRequestOptions, HttpRequestHandler, RawHttpRequest } from './http-types.js';
|
|
5
5
|
export declare abstract class HttpRequest<TResult = any, TResponse extends HttpResponse<TResult> = HttpResponse<TResult>> extends Observable<TResult | TResponse> {
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SingletonGetQueryOptions, SingletonResourceInfo } from '
|
|
1
|
+
import { SingletonGetQueryOptions, SingletonResourceInfo } from '../common';
|
|
2
2
|
import { HttpResponse } from './http-response.js';
|
|
3
3
|
import { HttpRequestHandler } from './http-types.js';
|
|
4
4
|
import { HttpSingletonGetRequest } from './requests/http-singleton-get-request.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference lib="dom" />
|
|
3
3
|
import { StrictOmit } from 'ts-gems';
|
|
4
4
|
import { URLSearchParams } from 'url';
|
|
5
|
-
import { ClientHttpHeaders, OpraDocument, OpraURLSearchParams } from '
|
|
5
|
+
import { ClientHttpHeaders, OpraDocument, OpraURLSearchParams } from '../common';
|
|
6
6
|
import type { HttpResponse } from './http-response';
|
|
7
7
|
export declare type CommonHttpRequestOptions = {
|
|
8
8
|
observe?: 'body' | 'response';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BatchMultipart } from '
|
|
1
|
+
import { BatchMultipart } from '../../common';
|
|
2
2
|
import { HttpRequest } from '../http-request.js';
|
|
3
3
|
import { HttpResponse } from '../http-response.js';
|
|
4
4
|
import { CommonHttpRequestOptions, HttpRequestHandler, RawHttpRequest } from '../http-types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollectionCreateQueryOptions, CollectionResourceInfo, PartialInput } from '
|
|
1
|
+
import { CollectionCreateQueryOptions, CollectionResourceInfo, PartialInput } from '../../common';
|
|
2
2
|
import { HttpRequest } from '../http-request.js';
|
|
3
3
|
import { HttpResponse } from '../http-response.js';
|
|
4
4
|
import { CommonHttpRequestOptions, HttpRequestHandler, RawHttpRequest } from '../http-types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollectionDeleteManyQueryOptions, CollectionResourceInfo } from '
|
|
1
|
+
import { CollectionDeleteManyQueryOptions, CollectionResourceInfo } from '../../common';
|
|
2
2
|
import { HttpRequest } from '../http-request.js';
|
|
3
3
|
import { HttpResponse } from '../http-response.js';
|
|
4
4
|
import { CommonHttpRequestOptions, HttpRequestHandler, RawHttpRequest } from '../http-types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollectionResourceInfo } from '
|
|
1
|
+
import { CollectionResourceInfo } from '../../common';
|
|
2
2
|
import { HttpRequest } from '../http-request.js';
|
|
3
3
|
import { HttpResponse } from '../http-response.js';
|
|
4
4
|
import { CommonHttpRequestOptions, HttpRequestHandler, RawHttpRequest } from '../http-types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollectionGetQueryOptions, CollectionResourceInfo } from '
|
|
1
|
+
import { CollectionGetQueryOptions, CollectionResourceInfo } from '../../common';
|
|
2
2
|
import { HttpRequest } from '../http-request.js';
|
|
3
3
|
import { HttpResponse } from '../http-response.js';
|
|
4
4
|
import { CommonHttpRequestOptions, HttpRequestHandler, RawHttpRequest } from '../http-types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollectionResourceInfo, CollectionSearchQueryOptions } from '
|
|
1
|
+
import { CollectionResourceInfo, CollectionSearchQueryOptions } from '../../common';
|
|
2
2
|
import { HttpRequest } from '../http-request.js';
|
|
3
3
|
import { HttpResponse } from '../http-response.js';
|
|
4
4
|
import { CommonHttpRequestOptions, HttpRequestHandler, RawHttpRequest } from '../http-types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollectionResourceInfo, CollectionUpdateManyQueryOptions, PartialInput } from '
|
|
1
|
+
import { CollectionResourceInfo, CollectionUpdateManyQueryOptions, PartialInput } from '../../common';
|
|
2
2
|
import { HttpRequest } from '../http-request.js';
|
|
3
3
|
import { HttpResponse } from '../http-response.js';
|
|
4
4
|
import { CommonHttpRequestOptions, HttpRequestHandler, RawHttpRequest } from '../http-types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollectionResourceInfo, CollectionUpdateQueryOptions, PartialInput } from '
|
|
1
|
+
import { CollectionResourceInfo, CollectionUpdateQueryOptions, PartialInput } from '../../common';
|
|
2
2
|
import { HttpRequest } from '../http-request.js';
|
|
3
3
|
import { HttpResponse } from '../http-response.js';
|
|
4
4
|
import { CommonHttpRequestOptions, HttpRequestHandler, RawHttpRequest } from '../http-types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SingletonGetQueryOptions, SingletonResourceInfo } from '
|
|
1
|
+
import { SingletonGetQueryOptions, SingletonResourceInfo } from '../../common';
|
|
2
2
|
import { HttpRequest } from '../http-request.js';
|
|
3
3
|
import { HttpResponse } from '../http-response.js';
|
|
4
4
|
import { CommonHttpRequestOptions, HttpRequestHandler, RawHttpRequest } from '../http-types.js';
|
|
File without changes
|