@opra/client 0.17.0 → 0.17.2
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/client-error.js +17 -0
- package/cjs/constants.js +7 -0
- package/cjs/http/batch-request.js +90 -0
- package/cjs/http/http-client.js +232 -0
- package/cjs/http/http-collection-node.js +110 -0
- package/cjs/http/http-request-observable.js +36 -0
- package/cjs/http/http-request.js +88 -0
- package/cjs/http/http-response.js +24 -0
- package/cjs/http/http-service-base.js +9 -0
- package/cjs/http/http-singleton-node.js +63 -0
- package/cjs/http/http-types.js +2 -0
- package/cjs/index.js +12 -0
- package/cjs/package.json +3 -0
- package/esm/client-error.js +13 -0
- package/esm/constants.js +4 -0
- package/esm/http/batch-request.js +90 -0
- package/esm/http/http-client.js +228 -0
- package/esm/http/http-collection-node.js +106 -0
- package/esm/http/http-request-observable.js +32 -0
- package/esm/http/http-request.js +84 -0
- package/esm/http/http-response.js +20 -0
- package/esm/http/http-service-base.js +5 -0
- package/esm/http/http-singleton-node.js +59 -0
- package/esm/http/http-types.js +1 -0
- package/esm/index.js +9 -0
- package/package.json +32 -12
- package/types/client-error.d.ts +1 -1
- package/types/http/http-client.d.ts +1 -1
- package/types/http/http-collection-node.d.ts +5 -5
- package/types/http/http-request-observable.d.ts +1 -1
- package/types/http/http-request.d.ts +1 -1
- package/types/http/http-response.d.ts +3 -1
- package/types/http/http-singleton-node.d.ts +1 -1
- package/types/http/http-types.d.ts +1 -1
- package/types/index.d.ts +0 -6
- package/cjs/content-disposition-d575fee5.js +0 -473
- package/cjs/cookie-signature-3e974173.js +0 -64
- package/cjs/index.min.mjs +0 -9295
- package/cjs/mime-db-49f150d0.js +0 -10719
- package/cjs/mime-types-6e2bdb57.js +0 -201
- package/cjs/safe-buffer-8acd60c7.js +0 -78
- package/esm/content-disposition-65f281a9.js +0 -470
- package/esm/cookie-signature-bf274b6b.js +0 -62
- package/esm/index.min.mjs +0 -9174
- package/esm/mime-db-d0f15d8f.js +0 -10717
- package/esm/mime-types-79c091fd.js +0 -199
- package/esm/safe-buffer-63383356.js +0 -76
- package/types/common/document/api-document.d.ts +0 -102
- package/types/common/document/constants.d.ts +0 -3
- package/types/common/document/data-type/api-field.d.ts +0 -41
- package/types/common/document/data-type/builtin/any.type.d.ts +0 -2
- package/types/common/document/data-type/builtin/base64.type.d.ts +0 -6
- package/types/common/document/data-type/builtin/bigint.type.d.ts +0 -6
- package/types/common/document/data-type/builtin/boolean.type.d.ts +0 -5
- package/types/common/document/data-type/builtin/date.type.d.ts +0 -4
- package/types/common/document/data-type/builtin/guid.type.d.ts +0 -7
- package/types/common/document/data-type/builtin/index.d.ts +0 -10
- package/types/common/document/data-type/builtin/integer.type.d.ts +0 -6
- package/types/common/document/data-type/builtin/number.type.d.ts +0 -6
- package/types/common/document/data-type/builtin/object.type.d.ts +0 -3
- package/types/common/document/data-type/builtin/string.type.d.ts +0 -5
- package/types/common/document/data-type/builtin/time.type.d.ts +0 -7
- package/types/common/document/data-type/builtin/timestamp.type.d.ts +0 -5
- package/types/common/document/data-type/complex-type.d.ts +0 -56
- package/types/common/document/data-type/data-type.d.ts +0 -33
- package/types/common/document/data-type/enum-type.d.ts +0 -32
- package/types/common/document/data-type/mapped-type.d.ts +0 -53
- package/types/common/document/data-type/simple-type.d.ts +0 -33
- package/types/common/document/data-type/union-type.d.ts +0 -42
- package/types/common/document/factory/add-references.d.ts +0 -4
- package/types/common/document/factory/create-document.d.ts +0 -12
- package/types/common/document/factory/factory.d.ts +0 -61
- package/types/common/document/factory/import-resource-class.d.ts +0 -10
- package/types/common/document/factory/import-type-class.d.ts +0 -17
- package/types/common/document/factory/index.d.ts +0 -1
- package/types/common/document/factory/process-resources.d.ts +0 -7
- package/types/common/document/factory/process-types.d.ts +0 -6
- package/types/common/document/index.d.ts +0 -14
- package/types/common/document/resource/collection.d.ts +0 -69
- package/types/common/document/resource/resource.d.ts +0 -29
- package/types/common/document/resource/singleton.d.ts +0 -51
- package/types/common/document/utils/inspect.util.d.ts +0 -4
- package/types/common/document/utils/string-compare.util.d.ts +0 -1
- package/types/common/exception/enums/issue-severity.enum.d.ts +0 -13
- package/types/common/exception/error-issue.d.ts +0 -9
- package/types/common/exception/http-errors/bad-request.error.d.ts +0 -10
- package/types/common/exception/http-errors/failed-dependency.error.d.ts +0 -9
- package/types/common/exception/http-errors/forbidden.error.d.ts +0 -11
- package/types/common/exception/http-errors/internal-server.error.d.ts +0 -9
- package/types/common/exception/http-errors/method-not-allowed.error.d.ts +0 -10
- package/types/common/exception/http-errors/not-acceptable.error.d.ts +0 -10
- package/types/common/exception/http-errors/not-found.error.d.ts +0 -13
- package/types/common/exception/http-errors/unauthorized.error.d.ts +0 -10
- package/types/common/exception/http-errors/unprocessable-entity.error.d.ts +0 -9
- package/types/common/exception/index.d.ts +0 -15
- package/types/common/exception/opra-exception.d.ts +0 -15
- package/types/common/exception/resource-errors/resource-conflict.error.d.ts +0 -5
- package/types/common/exception/resource-errors/resource-not-found.error.d.ts +0 -8
- package/types/common/exception/wrap-exception.d.ts +0 -2
- package/types/common/filter/antlr/OpraFilterLexer.d.ts +0 -77
- package/types/common/filter/antlr/OpraFilterListener.d.ts +0 -430
- package/types/common/filter/antlr/OpraFilterParser.d.ts +0 -437
- package/types/common/filter/antlr/OpraFilterVisitor.d.ts +0 -260
- package/types/common/filter/ast/abstract/ast.d.ts +0 -5
- package/types/common/filter/ast/abstract/expression.d.ts +0 -3
- package/types/common/filter/ast/abstract/literal.d.ts +0 -6
- package/types/common/filter/ast/abstract/term.d.ts +0 -3
- package/types/common/filter/ast/expressions/arithmetic-expression.d.ts +0 -13
- package/types/common/filter/ast/expressions/array-expression.d.ts +0 -7
- package/types/common/filter/ast/expressions/comparison-expression.d.ts +0 -10
- package/types/common/filter/ast/expressions/logical-expression.d.ts +0 -8
- package/types/common/filter/ast/expressions/parentheses-expression.d.ts +0 -6
- package/types/common/filter/ast/index.d.ts +0 -16
- package/types/common/filter/ast/terms/boolean-literal.d.ts +0 -5
- package/types/common/filter/ast/terms/date-literal.d.ts +0 -6
- package/types/common/filter/ast/terms/external-constant.d.ts +0 -5
- package/types/common/filter/ast/terms/null-literal.d.ts +0 -5
- package/types/common/filter/ast/terms/number-literal.d.ts +0 -6
- package/types/common/filter/ast/terms/qualified-identifier.d.ts +0 -8
- package/types/common/filter/ast/terms/string-literal.d.ts +0 -5
- package/types/common/filter/ast/terms/time-literal.d.ts +0 -6
- package/types/common/filter/build.d.ts +0 -31
- package/types/common/filter/errors.d.ts +0 -20
- package/types/common/filter/filter-tree-visitor.d.ts +0 -33
- package/types/common/filter/index.d.ts +0 -5
- package/types/common/filter/opra-error-listener.d.ts +0 -8
- package/types/common/filter/parse.d.ts +0 -2
- package/types/common/filter/utils.d.ts +0 -2
- package/types/common/helpers/function-utils.d.ts +0 -4
- package/types/common/helpers/get-stack-filename.d.ts +0 -1
- package/types/common/helpers/index.d.ts +0 -8
- package/types/common/helpers/is-url.d.ts +0 -1
- package/types/common/helpers/mixin-utils.d.ts +0 -3
- package/types/common/helpers/object-utils.d.ts +0 -2
- package/types/common/helpers/path-to-object-tree.d.ts +0 -4
- package/types/common/helpers/responsive-map.d.ts +0 -34
- package/types/common/helpers/type-guards.d.ts +0 -11
- package/types/common/http/codecs/boolean-codec.d.ts +0 -5
- package/types/common/http/codecs/date-codec.d.ts +0 -16
- package/types/common/http/codecs/filter-codec.d.ts +0 -6
- package/types/common/http/codecs/integer-codec.d.ts +0 -11
- package/types/common/http/codecs/number-codec.d.ts +0 -14
- package/types/common/http/codecs/string-codec.d.ts +0 -16
- package/types/common/http/enums/http-headers-codes.enum.d.ts +0 -388
- package/types/common/http/enums/http-status-codes.enum.d.ts +0 -290
- package/types/common/http/enums/http-status-messages.d.ts +0 -65
- package/types/common/http/http-headers.d.ts +0 -86
- package/types/common/http/http-message.host.d.ts +0 -122
- package/types/common/http/http-params.d.ts +0 -114
- package/types/common/http/http-request-message.d.ts +0 -213
- package/types/common/http/http-response-message.d.ts +0 -318
- package/types/common/http/index.d.ts +0 -14
- package/types/common/http/interfaces/client-http-headers.interface.d.ts +0 -65
- package/types/common/http/interfaces/cookie-options.interface.d.ts +0 -4
- package/types/common/http/interfaces/server-http-headers.interface.d.ts +0 -1
- package/types/common/http/multipart/batch-multipart.d.ts +0 -0
- package/types/common/http/multipart/http-request-content.d.ts +0 -0
- package/types/common/http/multipart/http-response-content.d.ts +0 -0
- package/types/common/http/multipart/index.d.ts +0 -0
- package/types/common/i18n/i18n.d.ts +0 -28
- package/types/common/i18n/index.d.ts +0 -5
- package/types/common/i18n/string-utils.d.ts +0 -2
- package/types/common/i18n/translate.d.ts +0 -4
- package/types/common/index.d.ts +0 -11
- package/types/common/schema/constants.d.ts +0 -2
- package/types/common/schema/data-type/complex-type.interface.d.ts +0 -16
- package/types/common/schema/data-type/data-type.interface.d.ts +0 -14
- package/types/common/schema/data-type/enum-type.interface.d.ts +0 -15
- package/types/common/schema/data-type/field.interface.d.ts +0 -21
- package/types/common/schema/data-type/mapped-type.interface.d.ts +0 -11
- package/types/common/schema/data-type/simple-type.interface.d.ts +0 -18
- package/types/common/schema/data-type/union-type.interface.d.ts +0 -10
- package/types/common/schema/document.interface.d.ts +0 -34
- package/types/common/schema/index.d.ts +0 -51
- package/types/common/schema/resource/collection.interface.d.ts +0 -33
- package/types/common/schema/resource/container.interface.d.ts +0 -9
- package/types/common/schema/resource/endpoint.interface.d.ts +0 -29
- package/types/common/schema/resource/resource.interface.d.ts +0 -12
- package/types/common/schema/resource/singleton.interface.d.ts +0 -22
- package/types/common/schema/type-guards.d.ts +0 -20
- package/types/common/types.d.ts +0 -11
- package/types/common/url/index.d.ts +0 -5
- package/types/common/url/opra-url-path-component.d.ts +0 -15
- package/types/common/url/opra-url-path.d.ts +0 -36
- package/types/common/url/opra-url.d.ts +0 -70
- package/types/common/url/utils/decode-path-component.d.ts +0 -5
- package/types/common/url/utils/encode-path-component.d.ts +0 -1
- package/types/common/utils/path-utils.d.ts +0 -2
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Expression } from '../abstract/expression.js';
|
|
2
|
-
export type ArithmeticOperator = '+' | '-' | '*' | '/';
|
|
3
|
-
export declare class ArithmeticExpression extends Expression {
|
|
4
|
-
items: ArithmeticExpressionItem[];
|
|
5
|
-
constructor();
|
|
6
|
-
append(op: ArithmeticOperator, expression: Expression): this;
|
|
7
|
-
toString(): string;
|
|
8
|
-
}
|
|
9
|
-
export declare class ArithmeticExpressionItem {
|
|
10
|
-
op: ArithmeticOperator;
|
|
11
|
-
expression: Expression;
|
|
12
|
-
constructor(o: ArithmeticExpressionItem);
|
|
13
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { StrictOmit } from 'ts-gems';
|
|
2
|
-
import { Expression } from '../abstract/expression.js';
|
|
3
|
-
export type ComparisonOperator = '<=' | '<' | '>' | '>=' | '=' | '!=' | 'in' | '!in' | 'like' | '!like' | 'ilike' | '!ilike';
|
|
4
|
-
export declare class ComparisonExpression extends Expression {
|
|
5
|
-
op: ComparisonOperator;
|
|
6
|
-
left: Expression;
|
|
7
|
-
right: Expression;
|
|
8
|
-
constructor(o: StrictOmit<ComparisonExpression, 'kind'>);
|
|
9
|
-
toString(): string;
|
|
10
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Expression } from '../abstract/expression.js';
|
|
2
|
-
export type LogicalOperator = 'and' | 'or';
|
|
3
|
-
export declare class LogicalExpression extends Expression {
|
|
4
|
-
op: LogicalOperator;
|
|
5
|
-
items: Expression[];
|
|
6
|
-
constructor(o: Omit<LogicalExpression, 'kind'>);
|
|
7
|
-
toString(): string;
|
|
8
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export * from './abstract/ast.js';
|
|
2
|
-
export * from './abstract/expression.js';
|
|
3
|
-
export * from './abstract/literal.js';
|
|
4
|
-
export * from './abstract/term.js';
|
|
5
|
-
export * from './expressions/arithmetic-expression.js';
|
|
6
|
-
export * from './expressions/array-expression.js';
|
|
7
|
-
export * from './expressions/comparison-expression.js';
|
|
8
|
-
export * from './expressions/logical-expression.js';
|
|
9
|
-
export * from './expressions/parentheses-expression.js';
|
|
10
|
-
export * from './terms/boolean-literal.js';
|
|
11
|
-
export * from './terms/date-literal.js';
|
|
12
|
-
export * from './terms/null-literal.js';
|
|
13
|
-
export * from './terms/number-literal.js';
|
|
14
|
-
export * from './terms/qualified-identifier.js';
|
|
15
|
-
export * from './terms/string-literal.js';
|
|
16
|
-
export * from './terms/time-literal.js';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ApiField } from '../../../document/data-type/api-field.js';
|
|
2
|
-
import { DataType } from '../../../document/data-type/data-type.js';
|
|
3
|
-
import { Literal } from '../abstract/literal.js';
|
|
4
|
-
export declare class QualifiedIdentifier extends Literal {
|
|
5
|
-
dataType: DataType;
|
|
6
|
-
field?: ApiField;
|
|
7
|
-
constructor(value: string);
|
|
8
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ArithmeticExpression, ArrayExpression, ComparisonExpression, DateLiteral, Expression, LogicalExpression, NumberLiteral, ParenthesesExpression, QualifiedIdentifier, TimeLiteral } from './ast/index.js';
|
|
2
|
-
type _EntryValue = Expression | string | number | bigint | boolean | null | Date;
|
|
3
|
-
export type EntryValue = _EntryValue | _EntryValue[];
|
|
4
|
-
export declare function $or(...items: Expression[]): LogicalExpression;
|
|
5
|
-
export declare function $and(...items: Expression[]): LogicalExpression;
|
|
6
|
-
export declare function $date(v: string): DateLiteral;
|
|
7
|
-
export declare function $time(v: string): TimeLiteral;
|
|
8
|
-
export declare function $number(v: string | number | bigint): NumberLiteral;
|
|
9
|
-
export declare function $array(...items: EntryValue[]): ArrayExpression;
|
|
10
|
-
export declare function $field(v: string): QualifiedIdentifier;
|
|
11
|
-
export declare function $eq(left: EntryValue, right: EntryValue): ComparisonExpression;
|
|
12
|
-
export declare function $ne(left: EntryValue, right: EntryValue): ComparisonExpression;
|
|
13
|
-
export declare function $gt(left: EntryValue, right: EntryValue): ComparisonExpression;
|
|
14
|
-
export declare function $gte(left: EntryValue, right: EntryValue): ComparisonExpression;
|
|
15
|
-
export declare function $lt(left: EntryValue, right: EntryValue): ComparisonExpression;
|
|
16
|
-
export declare function $lte(left: EntryValue, right: EntryValue): ComparisonExpression;
|
|
17
|
-
export declare function $in(left: EntryValue, right: EntryValue): ComparisonExpression;
|
|
18
|
-
export declare function $notIn(left: EntryValue, right: EntryValue): ComparisonExpression;
|
|
19
|
-
export declare function $like(left: EntryValue, right: EntryValue): ComparisonExpression;
|
|
20
|
-
export declare function $notLike(left: _EntryValue, right: _EntryValue): ComparisonExpression;
|
|
21
|
-
export declare function $ilike(left: _EntryValue, right: _EntryValue): ComparisonExpression;
|
|
22
|
-
export declare function $notILike(left: _EntryValue, right: _EntryValue): ComparisonExpression;
|
|
23
|
-
export declare function $paren(expression: Expression): ParenthesesExpression;
|
|
24
|
-
type MathExpression = ArithmeticExpression & {
|
|
25
|
-
add(expression: EntryValue): MathExpression;
|
|
26
|
-
sub(expression: EntryValue): MathExpression;
|
|
27
|
-
mul(expression: EntryValue): MathExpression;
|
|
28
|
-
div(expression: EntryValue): MathExpression;
|
|
29
|
-
};
|
|
30
|
-
export declare function $arithmetic(n: EntryValue): MathExpression;
|
|
31
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { RecognitionException } from '@browsery/antlr4';
|
|
2
|
-
import { Recognizer } from '@browsery/antlr4/typings/Recognizer';
|
|
3
|
-
export declare class SyntaxError extends TypeError {
|
|
4
|
-
}
|
|
5
|
-
export declare class ValidationError extends TypeError {
|
|
6
|
-
}
|
|
7
|
-
export declare class FilterParseError extends Error {
|
|
8
|
-
recognizer: Recognizer<any>;
|
|
9
|
-
offendingSymbol: any | undefined;
|
|
10
|
-
line: number;
|
|
11
|
-
column: number;
|
|
12
|
-
e: RecognitionException | undefined;
|
|
13
|
-
constructor(message: string, args: {
|
|
14
|
-
recognizer: Recognizer<any>;
|
|
15
|
-
offendingSymbol: any | undefined;
|
|
16
|
-
line: number;
|
|
17
|
-
column: number;
|
|
18
|
-
e: RecognitionException | undefined;
|
|
19
|
-
});
|
|
20
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { ParseTreeVisitor as TParseTreeVisitor, RuleNode } from '@browsery/antlr4';
|
|
2
|
-
import { ArithmeticExpressionContext, ArrayExpressionContext, BooleanLiteralContext, ComparisonExpressionContext, DateLiteralContext, DateTimeLiteralContext, ExternalConstantTermContext, IdentifierContext, LogicalExpressionContext, NumberLiteralContext, ParenthesizedExpressionContext, PolarityExpressionContext, QualifiedIdentifierTermContext, RootContext, StringLiteralContext, TimeLiteralContext } from './antlr/OpraFilterParser.js';
|
|
3
|
-
import OpraFilterVisitor from './antlr/OpraFilterVisitor.js';
|
|
4
|
-
import { ArithmeticExpression, ArrayExpression, BooleanLiteral, DateLiteral, LogicalExpression, NullLiteral, NumberLiteral, ParenthesesExpression, QualifiedIdentifier, StringLiteral, TimeLiteral } from './ast/index.js';
|
|
5
|
-
import { ExternalConstant } from './ast/terms/external-constant.js';
|
|
6
|
-
declare const ParseTreeVisitor: typeof TParseTreeVisitor;
|
|
7
|
-
export declare class FilterTreeVisitor extends ParseTreeVisitor<any> implements OpraFilterVisitor<any> {
|
|
8
|
-
private _timeZone?;
|
|
9
|
-
constructor(options?: {
|
|
10
|
-
timeZone?: string;
|
|
11
|
-
});
|
|
12
|
-
visitChildren(node: RuleNode): any;
|
|
13
|
-
protected defaultResult(): any;
|
|
14
|
-
visitRoot(ctx: RootContext): any;
|
|
15
|
-
visitIdentifier(ctx: IdentifierContext): string;
|
|
16
|
-
visitNullLiteral(): NullLiteral;
|
|
17
|
-
visitBooleanLiteral(ctx: BooleanLiteralContext): BooleanLiteral;
|
|
18
|
-
visitNumberLiteral(ctx: NumberLiteralContext): NumberLiteral;
|
|
19
|
-
visitStringLiteral(ctx: StringLiteralContext): StringLiteral;
|
|
20
|
-
visitInfinityLiteral(): NumberLiteral;
|
|
21
|
-
visitDateLiteral(ctx: DateLiteralContext): DateLiteral;
|
|
22
|
-
visitDateTimeLiteral(ctx: DateTimeLiteralContext): DateLiteral;
|
|
23
|
-
visitTimeLiteral(ctx: TimeLiteralContext): TimeLiteral;
|
|
24
|
-
visitQualifiedIdentifierTerm(ctx: QualifiedIdentifierTermContext): QualifiedIdentifier;
|
|
25
|
-
visitPolarityExpression(ctx: PolarityExpressionContext): any;
|
|
26
|
-
visitExternalConstantTerm(ctx: ExternalConstantTermContext): ExternalConstant;
|
|
27
|
-
visitParenthesizedExpression(ctx: ParenthesizedExpressionContext): ParenthesesExpression;
|
|
28
|
-
visitArrayExpression(ctx: ArrayExpressionContext): ArrayExpression;
|
|
29
|
-
visitComparisonExpression(ctx: ComparisonExpressionContext): any;
|
|
30
|
-
visitLogicalExpression(ctx: LogicalExpressionContext): LogicalExpression;
|
|
31
|
-
visitArithmeticExpression(ctx: ArithmeticExpressionContext): ArithmeticExpression;
|
|
32
|
-
}
|
|
33
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ErrorListener, RecognitionException } from '@browsery/antlr4';
|
|
2
|
-
import { Recognizer } from '@browsery/antlr4/typings/Recognizer';
|
|
3
|
-
import { FilterParseError } from './errors.js';
|
|
4
|
-
export declare class OpraErrorListener extends ErrorListener<any> {
|
|
5
|
-
errors: FilterParseError[];
|
|
6
|
-
constructor(errors: FilterParseError[]);
|
|
7
|
-
syntaxError(recognizer: Recognizer<any>, offendingSymbol: any, line: number, column: number, msg: string, e: RecognitionException): void;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getStackFileName(position?: number): string;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './function-utils.js';
|
|
2
|
-
export * from './get-stack-filename.js';
|
|
3
|
-
export * from './is-url.js';
|
|
4
|
-
export * from './mixin-utils.js';
|
|
5
|
-
export * from './object-utils.js';
|
|
6
|
-
export * from './path-to-object-tree.js';
|
|
7
|
-
export * from './responsive-map.js';
|
|
8
|
-
export * from './type-guards.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isUrl(url: string): boolean;
|
|
@@ -1,3 +0,0 @@
|
|
|
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;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export interface ResponsiveMapOptions {
|
|
2
|
-
wellKnownKeys?: string[];
|
|
3
|
-
caseSensitive?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export type ResponsiveMapInit<V> = ResponsiveMap<V> | Map<string, V> | Record<any, V>;
|
|
6
|
-
declare const kKeyMap: unique symbol;
|
|
7
|
-
declare const kKeyOrder: unique symbol;
|
|
8
|
-
declare const kWellKnownKeys: unique symbol;
|
|
9
|
-
declare const kOptions: unique symbol;
|
|
10
|
-
/**
|
|
11
|
-
* A Map implementation that supports case-insensitivity and ordered keys
|
|
12
|
-
*/
|
|
13
|
-
export declare class ResponsiveMap<V> extends Map<string, V> {
|
|
14
|
-
private [kKeyMap];
|
|
15
|
-
private [kKeyOrder];
|
|
16
|
-
private [kWellKnownKeys];
|
|
17
|
-
private [kOptions];
|
|
18
|
-
constructor(init?: ResponsiveMapInit<V> | null, options?: ResponsiveMapOptions);
|
|
19
|
-
clear(): void;
|
|
20
|
-
get(key: string): V | undefined;
|
|
21
|
-
has(key: string): boolean;
|
|
22
|
-
set(key: string, value: V): this;
|
|
23
|
-
setAll(source: ResponsiveMapInit<V>): this;
|
|
24
|
-
keys(): IterableIterator<string>;
|
|
25
|
-
values(): IterableIterator<V>;
|
|
26
|
-
entries(): IterableIterator<[string, V]>;
|
|
27
|
-
delete(key: string): boolean;
|
|
28
|
-
sort(compareFn?: (a: string, b: string) => number): this;
|
|
29
|
-
getProxy(handler?: ProxyHandler<Record<string, V>>): Record<string, V>;
|
|
30
|
-
[Symbol.iterator](): IterableIterator<[string, V]>;
|
|
31
|
-
protected _getOriginalKey(key: string): string;
|
|
32
|
-
protected _getStoringKey(key: string): string;
|
|
33
|
-
}
|
|
34
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference lib="dom" />
|
|
3
|
-
import { Readable } from 'stream';
|
|
4
|
-
import { Type } from 'ts-gems';
|
|
5
|
-
export declare function isConstructor(fn: any): fn is Type;
|
|
6
|
-
export declare function isStream(stream: any): boolean;
|
|
7
|
-
export declare function isReadable(x: any): x is Readable;
|
|
8
|
-
export declare function isReadableStream(x: any): x is ReadableStream;
|
|
9
|
-
export declare function isBlob(x: any): x is Blob;
|
|
10
|
-
export declare function isFormData(x: any): x is FormData;
|
|
11
|
-
export declare function isURL(x: any): x is URL;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { HttpParams } from '../http-params.js';
|
|
2
|
-
export interface DateCodecOptions {
|
|
3
|
-
time?: boolean;
|
|
4
|
-
timeZone?: boolean;
|
|
5
|
-
min?: string;
|
|
6
|
-
max?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare class DateCodec implements HttpParams.Codec {
|
|
9
|
-
time: boolean;
|
|
10
|
-
timeZone: boolean;
|
|
11
|
-
min?: string;
|
|
12
|
-
max?: string;
|
|
13
|
-
constructor(options?: DateCodecOptions);
|
|
14
|
-
decode(value: string): string;
|
|
15
|
-
encode(value: any): string;
|
|
16
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NumberCodec } from './number-codec.js';
|
|
2
|
-
export declare namespace IntegerCodec {
|
|
3
|
-
interface Options extends NumberCodec.Options {
|
|
4
|
-
enum?: number[];
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
export declare class IntegerCodec extends NumberCodec {
|
|
8
|
-
enum?: number[];
|
|
9
|
-
constructor(options?: IntegerCodec.Options);
|
|
10
|
-
decode(value: string): number;
|
|
11
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { HttpParams } from '../http-params.js';
|
|
2
|
-
export declare namespace NumberCodec {
|
|
3
|
-
interface Options {
|
|
4
|
-
max?: number;
|
|
5
|
-
min?: number;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
export declare class NumberCodec implements HttpParams.Codec {
|
|
9
|
-
max?: number;
|
|
10
|
-
min?: number;
|
|
11
|
-
constructor(options?: NumberCodec.Options);
|
|
12
|
-
decode(value: string): number;
|
|
13
|
-
encode(value: any): string;
|
|
14
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { HttpParams } from '../http-params.js';
|
|
2
|
-
export declare namespace StringCodec {
|
|
3
|
-
interface Options {
|
|
4
|
-
maxLength?: number;
|
|
5
|
-
minLength?: number;
|
|
6
|
-
enum?: string[];
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
export declare class StringCodec implements HttpParams.Codec {
|
|
10
|
-
maxLength?: number;
|
|
11
|
-
minLength?: number;
|
|
12
|
-
enum?: string[];
|
|
13
|
-
constructor(options?: StringCodec.Options);
|
|
14
|
-
decode(value: string): string;
|
|
15
|
-
encode(value: any): string;
|
|
16
|
-
}
|