@cratis/fundamentals 7.19.5 → 7.19.6
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/dist/cjs/ConceptAs.d.ts +1 -1
- package/dist/cjs/DateOnly.d.ts +1 -1
- package/dist/cjs/DerivedType.d.ts +2 -2
- package/dist/cjs/Field.d.ts +1 -1
- package/dist/cjs/Fields.d.ts +3 -3
- package/dist/cjs/Guid.d.ts +2 -2
- package/dist/cjs/JsonSerializer.d.ts +2 -2
- package/dist/cjs/PropertyAccessorDescriptor.d.ts +1 -1
- package/dist/cjs/StandardClassDecoratorContext.d.ts +1 -1
- package/dist/cjs/TimeOnly.d.ts +1 -1
- package/dist/cjs/TimeSpan.d.ts +1 -1
- package/dist/cjs/ValueMap.d.ts +1 -1
- package/dist/cjs/derivedTypeDecorator.d.ts +3 -3
- package/dist/cjs/fieldDecorator.d.ts +2 -2
- package/dist/cjs/fieldDecoratorMetadata.d.ts +3 -3
- package/dist/cjs/geospatial/LineString.d.ts +2 -2
- package/dist/cjs/geospatial/LinearRing.d.ts +1 -1
- package/dist/cjs/geospatial/Point.d.ts +1 -1
- package/dist/cjs/geospatial/Polygon.d.ts +2 -2
- package/dist/cjs/geospatial/index.d.ts +4 -4
- package/dist/cjs/index.d.ts +20 -20
- package/dist/cjs/json/DateJsonConverter.d.ts +2 -2
- package/dist/cjs/json/DateOnlyJsonConverter.d.ts +3 -3
- package/dist/cjs/json/GuidJsonConverter.d.ts +3 -3
- package/dist/cjs/json/JsonConverter.d.ts +1 -1
- package/dist/cjs/json/LineStringJsonConverter.d.ts +3 -3
- package/dist/cjs/json/PointJsonConverter.d.ts +3 -3
- package/dist/cjs/json/PolygonJsonConverter.d.ts +3 -3
- package/dist/cjs/json/TimeOnlyJsonConverter.d.ts +3 -3
- package/dist/cjs/json/TimeSpanJsonConverter.d.ts +3 -3
- package/dist/cjs/json/ValueMapJsonConverter.d.ts +3 -3
- package/dist/cjs/json/index.d.ts +10 -10
- package/dist/cjs/typeKey.d.ts +1 -1
- package/dist/esm/ConceptAs.d.ts +1 -1
- package/dist/esm/DateOnly.d.ts +1 -1
- package/dist/esm/DerivedType.d.ts +2 -2
- package/dist/esm/Field.d.ts +1 -1
- package/dist/esm/Fields.d.ts +3 -3
- package/dist/esm/Guid.d.ts +2 -2
- package/dist/esm/JsonSerializer.d.ts +2 -2
- package/dist/esm/PropertyAccessorDescriptor.d.ts +1 -1
- package/dist/esm/StandardClassDecoratorContext.d.ts +1 -1
- package/dist/esm/TimeOnly.d.ts +1 -1
- package/dist/esm/TimeSpan.d.ts +1 -1
- package/dist/esm/ValueMap.d.ts +1 -1
- package/dist/esm/derivedTypeDecorator.d.ts +3 -3
- package/dist/esm/fieldDecorator.d.ts +2 -2
- package/dist/esm/fieldDecoratorMetadata.d.ts +3 -3
- package/dist/esm/geospatial/LineString.d.ts +2 -2
- package/dist/esm/geospatial/LinearRing.d.ts +1 -1
- package/dist/esm/geospatial/Point.d.ts +1 -1
- package/dist/esm/geospatial/Polygon.d.ts +2 -2
- package/dist/esm/geospatial/index.d.ts +4 -4
- package/dist/esm/index.d.ts +20 -20
- package/dist/esm/json/DateJsonConverter.d.ts +2 -2
- package/dist/esm/json/DateOnlyJsonConverter.d.ts +3 -3
- package/dist/esm/json/GuidJsonConverter.d.ts +3 -3
- package/dist/esm/json/JsonConverter.d.ts +1 -1
- package/dist/esm/json/LineStringJsonConverter.d.ts +3 -3
- package/dist/esm/json/PointJsonConverter.d.ts +3 -3
- package/dist/esm/json/PolygonJsonConverter.d.ts +3 -3
- package/dist/esm/json/TimeOnlyJsonConverter.d.ts +3 -3
- package/dist/esm/json/TimeSpanJsonConverter.d.ts +3 -3
- package/dist/esm/json/ValueMapJsonConverter.d.ts +3 -3
- package/dist/esm/json/index.d.ts +10 -10
- package/dist/esm/typeKey.d.ts +1 -1
- package/package.json +37 -16
package/dist/cjs/ConceptAs.d.ts
CHANGED
package/dist/cjs/DateOnly.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import './reflection';
|
|
2
|
-
import { Constructor } from './Constructor';
|
|
1
|
+
import './reflection.js';
|
|
2
|
+
import { Constructor } from './Constructor.js';
|
|
3
3
|
export declare class DerivedType {
|
|
4
4
|
static set(target: Constructor, identifier: string, targetType?: Constructor): void;
|
|
5
5
|
static get(target: Constructor): string;
|
package/dist/cjs/Field.d.ts
CHANGED
package/dist/cjs/Fields.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import './reflection';
|
|
2
|
-
import { Constructor } from './Constructor';
|
|
3
|
-
import { Field } from './Field';
|
|
1
|
+
import './reflection.js';
|
|
2
|
+
import { Constructor } from './Constructor.js';
|
|
3
|
+
import { Field } from './Field.js';
|
|
4
4
|
export declare class Fields {
|
|
5
5
|
static addFieldToType(target: Constructor, field: string, fieldType: Constructor, enumerable: boolean, derivatives: Constructor[], genericArguments: Constructor[]): void;
|
|
6
6
|
static getFieldsForType(target: Constructor): Field[];
|
package/dist/cjs/Guid.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IEquatable } from './IEquatable';
|
|
2
|
-
import { typeKey } from './typeKey';
|
|
1
|
+
import { IEquatable } from './IEquatable.js';
|
|
2
|
+
import { typeKey } from './typeKey.js';
|
|
3
3
|
export declare class Guid implements IEquatable {
|
|
4
4
|
readonly bytes: number[] | Uint8Array | undefined;
|
|
5
5
|
static readonly [typeKey] = "Guid";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Constructor } from './Constructor';
|
|
2
|
-
import { JsonConverter } from './json';
|
|
1
|
+
import { Constructor } from './Constructor.js';
|
|
2
|
+
import { JsonConverter } from './json/index.js';
|
|
3
3
|
export declare class JsonSerializer {
|
|
4
4
|
static readonly DerivedTypeIdProperty: string;
|
|
5
5
|
static registerConverter(converter: JsonConverter): void;
|
package/dist/cjs/TimeOnly.d.ts
CHANGED
package/dist/cjs/TimeSpan.d.ts
CHANGED
package/dist/cjs/ValueMap.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import './reflection';
|
|
2
|
-
import { Constructor } from './Constructor';
|
|
3
|
-
import { StandardClassDecoratorContext } from './StandardClassDecoratorContext';
|
|
1
|
+
import './reflection.js';
|
|
2
|
+
import { Constructor } from './Constructor.js';
|
|
3
|
+
import { StandardClassDecoratorContext } from './StandardClassDecoratorContext.js';
|
|
4
4
|
export declare function derivedType(identifier: string, targetType?: Constructor): {
|
|
5
5
|
<Target extends Constructor>(target: Target): void;
|
|
6
6
|
<Target extends Constructor>(target: Target, context: StandardClassDecoratorContext<Target>): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Constructor } from './Constructor';
|
|
2
|
-
import { StandardFieldDecoratorContext } from './StandardFieldDecoratorContext';
|
|
1
|
+
import { Constructor } from './Constructor.js';
|
|
2
|
+
import { StandardFieldDecoratorContext } from './StandardFieldDecoratorContext.js';
|
|
3
3
|
type fieldOptions = {
|
|
4
4
|
enumerable?: boolean;
|
|
5
5
|
derivatives?: Constructor[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import './reflection';
|
|
2
|
-
import { Constructor } from './Constructor';
|
|
3
|
-
import { Field } from './Field';
|
|
1
|
+
import './reflection.js';
|
|
2
|
+
import { Constructor } from './Constructor.js';
|
|
3
|
+
import { Field } from './Field.js';
|
|
4
4
|
export declare function addFieldToDecoratorMetadata(metadata: Record<PropertyKey, unknown>, field: Field): void;
|
|
5
5
|
export declare function getOwnDecoratorFieldsForType(target: Constructor): Field[];
|
|
6
6
|
//# sourceMappingURL=fieldDecoratorMetadata.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LinearRing } from './LinearRing';
|
|
2
|
-
import { typeKey } from '../typeKey';
|
|
1
|
+
import { LinearRing } from './LinearRing.js';
|
|
2
|
+
import { typeKey } from '../typeKey.js';
|
|
3
3
|
export declare class Polygon {
|
|
4
4
|
static readonly [typeKey] = "Polygon";
|
|
5
5
|
shell: LinearRing;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Point';
|
|
2
|
-
export * from './LinearRing';
|
|
3
|
-
export * from './LineString';
|
|
4
|
-
export * from './Polygon';
|
|
1
|
+
export * from './Point.js';
|
|
2
|
+
export * from './LinearRing.js';
|
|
3
|
+
export * from './LineString.js';
|
|
4
|
+
export * from './Polygon.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export * from './ConceptAs';
|
|
2
|
-
export * from './Constructor';
|
|
3
|
-
export * from './geospatial';
|
|
4
|
-
export * from './json';
|
|
5
|
-
export * from './Field';
|
|
6
|
-
export * from './Fields';
|
|
7
|
-
export * from './DateOnly';
|
|
8
|
-
export * from './Guid';
|
|
9
|
-
export * from './IEquatable';
|
|
10
|
-
export * from './PropertyAccessor';
|
|
11
|
-
export * from './PropertyAccessorDescriptor';
|
|
12
|
-
export * from './PropertyPathResolverProxyHandler';
|
|
13
|
-
export * from './TimeOnly';
|
|
14
|
-
export * from './TimeSpan';
|
|
15
|
-
export * from './ValueMap';
|
|
16
|
-
export * from './typeKey';
|
|
17
|
-
export * from './fieldDecorator';
|
|
18
|
-
export * from './derivedTypeDecorator';
|
|
19
|
-
export * from './JsonSerializer';
|
|
20
|
-
export * from './DerivedType';
|
|
1
|
+
export * from './ConceptAs.js';
|
|
2
|
+
export * from './Constructor.js';
|
|
3
|
+
export * from './geospatial/index.js';
|
|
4
|
+
export * from './json/index.js';
|
|
5
|
+
export * from './Field.js';
|
|
6
|
+
export * from './Fields.js';
|
|
7
|
+
export * from './DateOnly.js';
|
|
8
|
+
export * from './Guid.js';
|
|
9
|
+
export * from './IEquatable.js';
|
|
10
|
+
export * from './PropertyAccessor.js';
|
|
11
|
+
export * from './PropertyAccessorDescriptor.js';
|
|
12
|
+
export * from './PropertyPathResolverProxyHandler.js';
|
|
13
|
+
export * from './TimeOnly.js';
|
|
14
|
+
export * from './TimeSpan.js';
|
|
15
|
+
export * from './ValueMap.js';
|
|
16
|
+
export * from './typeKey.js';
|
|
17
|
+
export * from './fieldDecorator.js';
|
|
18
|
+
export * from './derivedTypeDecorator.js';
|
|
19
|
+
export * from './JsonSerializer.js';
|
|
20
|
+
export * from './DerivedType.js';
|
|
21
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Constructor } from '../Constructor';
|
|
2
|
-
import { JsonConverter } from './JsonConverter';
|
|
1
|
+
import { Constructor } from '../Constructor.js';
|
|
2
|
+
import { JsonConverter } from './JsonConverter.js';
|
|
3
3
|
export declare class DateJsonConverter extends JsonConverter<Date> {
|
|
4
4
|
get type(): Constructor<Date>;
|
|
5
5
|
read(value: any): Date;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Constructor } from '../Constructor';
|
|
2
|
-
import { DateOnly } from '../DateOnly';
|
|
3
|
-
import { JsonConverter } from './JsonConverter';
|
|
1
|
+
import { Constructor } from '../Constructor.js';
|
|
2
|
+
import { DateOnly } from '../DateOnly.js';
|
|
3
|
+
import { JsonConverter } from './JsonConverter.js';
|
|
4
4
|
export declare class DateOnlyJsonConverter extends JsonConverter<DateOnly> {
|
|
5
5
|
get type(): Constructor<DateOnly>;
|
|
6
6
|
read(value: any): DateOnly;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Constructor } from '../Constructor';
|
|
2
|
-
import { Guid } from '../Guid';
|
|
3
|
-
import { JsonConverter } from './JsonConverter';
|
|
1
|
+
import { Constructor } from '../Constructor.js';
|
|
2
|
+
import { Guid } from '../Guid.js';
|
|
3
|
+
import { JsonConverter } from './JsonConverter.js';
|
|
4
4
|
export declare class GuidJsonConverter extends JsonConverter<Guid> {
|
|
5
5
|
get type(): Constructor<Guid>;
|
|
6
6
|
read(value: any): Guid;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Constructor } from '../Constructor';
|
|
2
|
-
import { LineString } from '../geospatial';
|
|
3
|
-
import { JsonConverter } from './JsonConverter';
|
|
1
|
+
import { Constructor } from '../Constructor.js';
|
|
2
|
+
import { LineString } from '../geospatial/index.js';
|
|
3
|
+
import { JsonConverter } from './JsonConverter.js';
|
|
4
4
|
export declare class LineStringJsonConverter extends JsonConverter<LineString> {
|
|
5
5
|
get type(): Constructor<LineString>;
|
|
6
6
|
read(value: any): LineString;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Constructor } from '../Constructor';
|
|
2
|
-
import { Point } from '../geospatial';
|
|
3
|
-
import { JsonConverter } from './JsonConverter';
|
|
1
|
+
import { Constructor } from '../Constructor.js';
|
|
2
|
+
import { Point } from '../geospatial/index.js';
|
|
3
|
+
import { JsonConverter } from './JsonConverter.js';
|
|
4
4
|
export declare class PointJsonConverter extends JsonConverter<Point> {
|
|
5
5
|
get type(): Constructor<Point>;
|
|
6
6
|
read(value: any): Point;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Constructor } from '../Constructor';
|
|
2
|
-
import { Polygon } from '../geospatial';
|
|
3
|
-
import { JsonConverter } from './JsonConverter';
|
|
1
|
+
import { Constructor } from '../Constructor.js';
|
|
2
|
+
import { Polygon } from '../geospatial/index.js';
|
|
3
|
+
import { JsonConverter } from './JsonConverter.js';
|
|
4
4
|
export declare class PolygonJsonConverter extends JsonConverter<Polygon> {
|
|
5
5
|
get type(): Constructor<Polygon>;
|
|
6
6
|
read(value: any): Polygon;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Constructor } from '../Constructor';
|
|
2
|
-
import { TimeOnly } from '../TimeOnly';
|
|
3
|
-
import { JsonConverter } from './JsonConverter';
|
|
1
|
+
import { Constructor } from '../Constructor.js';
|
|
2
|
+
import { TimeOnly } from '../TimeOnly.js';
|
|
3
|
+
import { JsonConverter } from './JsonConverter.js';
|
|
4
4
|
export declare class TimeOnlyJsonConverter extends JsonConverter<TimeOnly> {
|
|
5
5
|
get type(): Constructor<TimeOnly>;
|
|
6
6
|
read(value: any): TimeOnly;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Constructor } from '../Constructor';
|
|
2
|
-
import { TimeSpan } from '../TimeSpan';
|
|
3
|
-
import { JsonConverter } from './JsonConverter';
|
|
1
|
+
import { Constructor } from '../Constructor.js';
|
|
2
|
+
import { TimeSpan } from '../TimeSpan.js';
|
|
3
|
+
import { JsonConverter } from './JsonConverter.js';
|
|
4
4
|
export declare class TimeSpanJsonConverter extends JsonConverter<TimeSpan> {
|
|
5
5
|
get type(): Constructor<TimeSpan>;
|
|
6
6
|
read(value: any): TimeSpan;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Constructor } from '../Constructor';
|
|
2
|
-
import { ValueMap } from '../ValueMap';
|
|
3
|
-
import { JsonConverter } from './JsonConverter';
|
|
1
|
+
import { Constructor } from '../Constructor.js';
|
|
2
|
+
import { ValueMap } from '../ValueMap.js';
|
|
3
|
+
import { JsonConverter } from './JsonConverter.js';
|
|
4
4
|
export declare class ValueMapJsonConverter extends JsonConverter<ValueMap<any, any>> {
|
|
5
5
|
private static serializeMapKey;
|
|
6
6
|
private static convertTypesOnInstance;
|
package/dist/cjs/json/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from './JsonConverter';
|
|
2
|
-
export * from './DateJsonConverter';
|
|
3
|
-
export * from './DateOnlyJsonConverter';
|
|
4
|
-
export * from './GuidJsonConverter';
|
|
5
|
-
export * from './TimeOnlyJsonConverter';
|
|
6
|
-
export * from './TimeSpanJsonConverter';
|
|
7
|
-
export * from './PointJsonConverter';
|
|
8
|
-
export * from './LineStringJsonConverter';
|
|
9
|
-
export * from './PolygonJsonConverter';
|
|
10
|
-
export * from './ValueMapJsonConverter';
|
|
1
|
+
export * from './JsonConverter.js';
|
|
2
|
+
export * from './DateJsonConverter.js';
|
|
3
|
+
export * from './DateOnlyJsonConverter.js';
|
|
4
|
+
export * from './GuidJsonConverter.js';
|
|
5
|
+
export * from './TimeOnlyJsonConverter.js';
|
|
6
|
+
export * from './TimeSpanJsonConverter.js';
|
|
7
|
+
export * from './PointJsonConverter.js';
|
|
8
|
+
export * from './LineStringJsonConverter.js';
|
|
9
|
+
export * from './PolygonJsonConverter.js';
|
|
10
|
+
export * from './ValueMapJsonConverter.js';
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/cjs/typeKey.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Constructor } from './Constructor';
|
|
1
|
+
import { Constructor } from './Constructor.js';
|
|
2
2
|
export declare const typeKey: unique symbol;
|
|
3
3
|
export declare const declaredTypeKey: (type: Constructor | undefined) => string | undefined;
|
|
4
4
|
export declare const typeKeyOf: (type: Constructor | undefined) => string | undefined;
|
package/dist/esm/ConceptAs.d.ts
CHANGED
package/dist/esm/DateOnly.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import './reflection';
|
|
2
|
-
import { Constructor } from './Constructor';
|
|
1
|
+
import './reflection.js';
|
|
2
|
+
import { Constructor } from './Constructor.js';
|
|
3
3
|
export declare class DerivedType {
|
|
4
4
|
static set(target: Constructor, identifier: string, targetType?: Constructor): void;
|
|
5
5
|
static get(target: Constructor): string;
|
package/dist/esm/Field.d.ts
CHANGED
package/dist/esm/Fields.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import './reflection';
|
|
2
|
-
import { Constructor } from './Constructor';
|
|
3
|
-
import { Field } from './Field';
|
|
1
|
+
import './reflection.js';
|
|
2
|
+
import { Constructor } from './Constructor.js';
|
|
3
|
+
import { Field } from './Field.js';
|
|
4
4
|
export declare class Fields {
|
|
5
5
|
static addFieldToType(target: Constructor, field: string, fieldType: Constructor, enumerable: boolean, derivatives: Constructor[], genericArguments: Constructor[]): void;
|
|
6
6
|
static getFieldsForType(target: Constructor): Field[];
|
package/dist/esm/Guid.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IEquatable } from './IEquatable';
|
|
2
|
-
import { typeKey } from './typeKey';
|
|
1
|
+
import { IEquatable } from './IEquatable.js';
|
|
2
|
+
import { typeKey } from './typeKey.js';
|
|
3
3
|
export declare class Guid implements IEquatable {
|
|
4
4
|
readonly bytes: number[] | Uint8Array | undefined;
|
|
5
5
|
static readonly [typeKey] = "Guid";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Constructor } from './Constructor';
|
|
2
|
-
import { JsonConverter } from './json';
|
|
1
|
+
import { Constructor } from './Constructor.js';
|
|
2
|
+
import { JsonConverter } from './json/index.js';
|
|
3
3
|
export declare class JsonSerializer {
|
|
4
4
|
static readonly DerivedTypeIdProperty: string;
|
|
5
5
|
static registerConverter(converter: JsonConverter): void;
|
package/dist/esm/TimeOnly.d.ts
CHANGED
package/dist/esm/TimeSpan.d.ts
CHANGED
package/dist/esm/ValueMap.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import './reflection';
|
|
2
|
-
import { Constructor } from './Constructor';
|
|
3
|
-
import { StandardClassDecoratorContext } from './StandardClassDecoratorContext';
|
|
1
|
+
import './reflection.js';
|
|
2
|
+
import { Constructor } from './Constructor.js';
|
|
3
|
+
import { StandardClassDecoratorContext } from './StandardClassDecoratorContext.js';
|
|
4
4
|
export declare function derivedType(identifier: string, targetType?: Constructor): {
|
|
5
5
|
<Target extends Constructor>(target: Target): void;
|
|
6
6
|
<Target extends Constructor>(target: Target, context: StandardClassDecoratorContext<Target>): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Constructor } from './Constructor';
|
|
2
|
-
import { StandardFieldDecoratorContext } from './StandardFieldDecoratorContext';
|
|
1
|
+
import { Constructor } from './Constructor.js';
|
|
2
|
+
import { StandardFieldDecoratorContext } from './StandardFieldDecoratorContext.js';
|
|
3
3
|
type fieldOptions = {
|
|
4
4
|
enumerable?: boolean;
|
|
5
5
|
derivatives?: Constructor[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import './reflection';
|
|
2
|
-
import { Constructor } from './Constructor';
|
|
3
|
-
import { Field } from './Field';
|
|
1
|
+
import './reflection.js';
|
|
2
|
+
import { Constructor } from './Constructor.js';
|
|
3
|
+
import { Field } from './Field.js';
|
|
4
4
|
export declare function addFieldToDecoratorMetadata(metadata: Record<PropertyKey, unknown>, field: Field): void;
|
|
5
5
|
export declare function getOwnDecoratorFieldsForType(target: Constructor): Field[];
|
|
6
6
|
//# sourceMappingURL=fieldDecoratorMetadata.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LinearRing } from './LinearRing';
|
|
2
|
-
import { typeKey } from '../typeKey';
|
|
1
|
+
import { LinearRing } from './LinearRing.js';
|
|
2
|
+
import { typeKey } from '../typeKey.js';
|
|
3
3
|
export declare class Polygon {
|
|
4
4
|
static readonly [typeKey] = "Polygon";
|
|
5
5
|
shell: LinearRing;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Point';
|
|
2
|
-
export * from './LinearRing';
|
|
3
|
-
export * from './LineString';
|
|
4
|
-
export * from './Polygon';
|
|
1
|
+
export * from './Point.js';
|
|
2
|
+
export * from './LinearRing.js';
|
|
3
|
+
export * from './LineString.js';
|
|
4
|
+
export * from './Polygon.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export * from './ConceptAs';
|
|
2
|
-
export * from './Constructor';
|
|
3
|
-
export * from './geospatial';
|
|
4
|
-
export * from './json';
|
|
5
|
-
export * from './Field';
|
|
6
|
-
export * from './Fields';
|
|
7
|
-
export * from './DateOnly';
|
|
8
|
-
export * from './Guid';
|
|
9
|
-
export * from './IEquatable';
|
|
10
|
-
export * from './PropertyAccessor';
|
|
11
|
-
export * from './PropertyAccessorDescriptor';
|
|
12
|
-
export * from './PropertyPathResolverProxyHandler';
|
|
13
|
-
export * from './TimeOnly';
|
|
14
|
-
export * from './TimeSpan';
|
|
15
|
-
export * from './ValueMap';
|
|
16
|
-
export * from './typeKey';
|
|
17
|
-
export * from './fieldDecorator';
|
|
18
|
-
export * from './derivedTypeDecorator';
|
|
19
|
-
export * from './JsonSerializer';
|
|
20
|
-
export * from './DerivedType';
|
|
1
|
+
export * from './ConceptAs.js';
|
|
2
|
+
export * from './Constructor.js';
|
|
3
|
+
export * from './geospatial/index.js';
|
|
4
|
+
export * from './json/index.js';
|
|
5
|
+
export * from './Field.js';
|
|
6
|
+
export * from './Fields.js';
|
|
7
|
+
export * from './DateOnly.js';
|
|
8
|
+
export * from './Guid.js';
|
|
9
|
+
export * from './IEquatable.js';
|
|
10
|
+
export * from './PropertyAccessor.js';
|
|
11
|
+
export * from './PropertyAccessorDescriptor.js';
|
|
12
|
+
export * from './PropertyPathResolverProxyHandler.js';
|
|
13
|
+
export * from './TimeOnly.js';
|
|
14
|
+
export * from './TimeSpan.js';
|
|
15
|
+
export * from './ValueMap.js';
|
|
16
|
+
export * from './typeKey.js';
|
|
17
|
+
export * from './fieldDecorator.js';
|
|
18
|
+
export * from './derivedTypeDecorator.js';
|
|
19
|
+
export * from './JsonSerializer.js';
|
|
20
|
+
export * from './DerivedType.js';
|
|
21
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Constructor } from '../Constructor';
|
|
2
|
-
import { JsonConverter } from './JsonConverter';
|
|
1
|
+
import { Constructor } from '../Constructor.js';
|
|
2
|
+
import { JsonConverter } from './JsonConverter.js';
|
|
3
3
|
export declare class DateJsonConverter extends JsonConverter<Date> {
|
|
4
4
|
get type(): Constructor<Date>;
|
|
5
5
|
read(value: any): Date;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Constructor } from '../Constructor';
|
|
2
|
-
import { DateOnly } from '../DateOnly';
|
|
3
|
-
import { JsonConverter } from './JsonConverter';
|
|
1
|
+
import { Constructor } from '../Constructor.js';
|
|
2
|
+
import { DateOnly } from '../DateOnly.js';
|
|
3
|
+
import { JsonConverter } from './JsonConverter.js';
|
|
4
4
|
export declare class DateOnlyJsonConverter extends JsonConverter<DateOnly> {
|
|
5
5
|
get type(): Constructor<DateOnly>;
|
|
6
6
|
read(value: any): DateOnly;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Constructor } from '../Constructor';
|
|
2
|
-
import { Guid } from '../Guid';
|
|
3
|
-
import { JsonConverter } from './JsonConverter';
|
|
1
|
+
import { Constructor } from '../Constructor.js';
|
|
2
|
+
import { Guid } from '../Guid.js';
|
|
3
|
+
import { JsonConverter } from './JsonConverter.js';
|
|
4
4
|
export declare class GuidJsonConverter extends JsonConverter<Guid> {
|
|
5
5
|
get type(): Constructor<Guid>;
|
|
6
6
|
read(value: any): Guid;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Constructor } from '../Constructor';
|
|
2
|
-
import { LineString } from '../geospatial';
|
|
3
|
-
import { JsonConverter } from './JsonConverter';
|
|
1
|
+
import { Constructor } from '../Constructor.js';
|
|
2
|
+
import { LineString } from '../geospatial/index.js';
|
|
3
|
+
import { JsonConverter } from './JsonConverter.js';
|
|
4
4
|
export declare class LineStringJsonConverter extends JsonConverter<LineString> {
|
|
5
5
|
get type(): Constructor<LineString>;
|
|
6
6
|
read(value: any): LineString;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Constructor } from '../Constructor';
|
|
2
|
-
import { Point } from '../geospatial';
|
|
3
|
-
import { JsonConverter } from './JsonConverter';
|
|
1
|
+
import { Constructor } from '../Constructor.js';
|
|
2
|
+
import { Point } from '../geospatial/index.js';
|
|
3
|
+
import { JsonConverter } from './JsonConverter.js';
|
|
4
4
|
export declare class PointJsonConverter extends JsonConverter<Point> {
|
|
5
5
|
get type(): Constructor<Point>;
|
|
6
6
|
read(value: any): Point;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Constructor } from '../Constructor';
|
|
2
|
-
import { Polygon } from '../geospatial';
|
|
3
|
-
import { JsonConverter } from './JsonConverter';
|
|
1
|
+
import { Constructor } from '../Constructor.js';
|
|
2
|
+
import { Polygon } from '../geospatial/index.js';
|
|
3
|
+
import { JsonConverter } from './JsonConverter.js';
|
|
4
4
|
export declare class PolygonJsonConverter extends JsonConverter<Polygon> {
|
|
5
5
|
get type(): Constructor<Polygon>;
|
|
6
6
|
read(value: any): Polygon;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Constructor } from '../Constructor';
|
|
2
|
-
import { TimeOnly } from '../TimeOnly';
|
|
3
|
-
import { JsonConverter } from './JsonConverter';
|
|
1
|
+
import { Constructor } from '../Constructor.js';
|
|
2
|
+
import { TimeOnly } from '../TimeOnly.js';
|
|
3
|
+
import { JsonConverter } from './JsonConverter.js';
|
|
4
4
|
export declare class TimeOnlyJsonConverter extends JsonConverter<TimeOnly> {
|
|
5
5
|
get type(): Constructor<TimeOnly>;
|
|
6
6
|
read(value: any): TimeOnly;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Constructor } from '../Constructor';
|
|
2
|
-
import { TimeSpan } from '../TimeSpan';
|
|
3
|
-
import { JsonConverter } from './JsonConverter';
|
|
1
|
+
import { Constructor } from '../Constructor.js';
|
|
2
|
+
import { TimeSpan } from '../TimeSpan.js';
|
|
3
|
+
import { JsonConverter } from './JsonConverter.js';
|
|
4
4
|
export declare class TimeSpanJsonConverter extends JsonConverter<TimeSpan> {
|
|
5
5
|
get type(): Constructor<TimeSpan>;
|
|
6
6
|
read(value: any): TimeSpan;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Constructor } from '../Constructor';
|
|
2
|
-
import { ValueMap } from '../ValueMap';
|
|
3
|
-
import { JsonConverter } from './JsonConverter';
|
|
1
|
+
import { Constructor } from '../Constructor.js';
|
|
2
|
+
import { ValueMap } from '../ValueMap.js';
|
|
3
|
+
import { JsonConverter } from './JsonConverter.js';
|
|
4
4
|
export declare class ValueMapJsonConverter extends JsonConverter<ValueMap<any, any>> {
|
|
5
5
|
private static serializeMapKey;
|
|
6
6
|
private static convertTypesOnInstance;
|
package/dist/esm/json/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from './JsonConverter';
|
|
2
|
-
export * from './DateJsonConverter';
|
|
3
|
-
export * from './DateOnlyJsonConverter';
|
|
4
|
-
export * from './GuidJsonConverter';
|
|
5
|
-
export * from './TimeOnlyJsonConverter';
|
|
6
|
-
export * from './TimeSpanJsonConverter';
|
|
7
|
-
export * from './PointJsonConverter';
|
|
8
|
-
export * from './LineStringJsonConverter';
|
|
9
|
-
export * from './PolygonJsonConverter';
|
|
10
|
-
export * from './ValueMapJsonConverter';
|
|
1
|
+
export * from './JsonConverter.js';
|
|
2
|
+
export * from './DateJsonConverter.js';
|
|
3
|
+
export * from './DateOnlyJsonConverter.js';
|
|
4
|
+
export * from './GuidJsonConverter.js';
|
|
5
|
+
export * from './TimeOnlyJsonConverter.js';
|
|
6
|
+
export * from './TimeSpanJsonConverter.js';
|
|
7
|
+
export * from './PointJsonConverter.js';
|
|
8
|
+
export * from './LineStringJsonConverter.js';
|
|
9
|
+
export * from './PolygonJsonConverter.js';
|
|
10
|
+
export * from './ValueMapJsonConverter.js';
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/typeKey.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Constructor } from './Constructor';
|
|
1
|
+
import { Constructor } from './Constructor.js';
|
|
2
2
|
export declare const typeKey: unique symbol;
|
|
3
3
|
export declare const declaredTypeKey: (type: Constructor | undefined) => string | undefined;
|
|
4
4
|
export declare const typeKeyOf: (type: Constructor | undefined) => string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cratis/fundamentals",
|
|
3
|
-
"version": "7.19.
|
|
3
|
+
"version": "7.19.6",
|
|
4
4
|
"description": "The shared building blocks beneath the Cratis stack — GUIDs, concepts, derived-type serialization, property-path proxies, and decorators for TypeScript",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cratis",
|
|
@@ -31,24 +31,44 @@
|
|
|
31
31
|
"exports": {
|
|
32
32
|
"./package.json": "./package.json",
|
|
33
33
|
".": {
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
"import": {
|
|
35
|
+
"types": "./dist/esm/index.d.ts",
|
|
36
|
+
"default": "./dist/esm/index.js"
|
|
37
|
+
},
|
|
38
|
+
"require": {
|
|
39
|
+
"types": "./dist/cjs/index.d.ts",
|
|
40
|
+
"default": "./dist/cjs/index.js"
|
|
41
|
+
}
|
|
37
42
|
},
|
|
38
43
|
"./geospatial": {
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
"import": {
|
|
45
|
+
"types": "./dist/esm/geospatial/index.d.ts",
|
|
46
|
+
"default": "./dist/esm/geospatial/index.js"
|
|
47
|
+
},
|
|
48
|
+
"require": {
|
|
49
|
+
"types": "./dist/cjs/geospatial/index.d.ts",
|
|
50
|
+
"default": "./dist/cjs/geospatial/index.js"
|
|
51
|
+
}
|
|
42
52
|
},
|
|
43
53
|
"./json": {
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
54
|
+
"import": {
|
|
55
|
+
"types": "./dist/esm/json/index.d.ts",
|
|
56
|
+
"default": "./dist/esm/json/index.js"
|
|
57
|
+
},
|
|
58
|
+
"require": {
|
|
59
|
+
"types": "./dist/cjs/json/index.d.ts",
|
|
60
|
+
"default": "./dist/cjs/json/index.js"
|
|
61
|
+
}
|
|
47
62
|
},
|
|
48
63
|
"./reflection": {
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
64
|
+
"import": {
|
|
65
|
+
"types": "./dist/esm/reflection.d.ts",
|
|
66
|
+
"default": "./dist/esm/reflection.js"
|
|
67
|
+
},
|
|
68
|
+
"require": {
|
|
69
|
+
"types": "./dist/cjs/reflection.d.ts",
|
|
70
|
+
"default": "./dist/cjs/reflection.js"
|
|
71
|
+
}
|
|
52
72
|
}
|
|
53
73
|
},
|
|
54
74
|
"installConfig": {
|
|
@@ -62,14 +82,15 @@
|
|
|
62
82
|
"typescript-programmatic-api": "npm:@typescript/typescript6@^6.0.2"
|
|
63
83
|
},
|
|
64
84
|
"scripts": {
|
|
65
|
-
"prepare": "yarn
|
|
85
|
+
"prepare": "yarn build",
|
|
66
86
|
"clean": "yarn g:clean",
|
|
67
|
-
"build": "yarn g:build",
|
|
87
|
+
"build": "yarn g:build && node scripts/fix-declarations.mjs",
|
|
68
88
|
"lint": "yarn g:lint",
|
|
69
89
|
"lint:ci": "yarn g:lint:ci",
|
|
70
90
|
"test": "yarn g:test",
|
|
71
91
|
"test:watch": "yarn g:test:watch",
|
|
72
|
-
"ci": "yarn
|
|
92
|
+
"ci": "yarn clean && yarn lint:ci && yarn build && yarn test:consumers && yarn test",
|
|
93
|
+
"test:consumers": "node scripts/check-consumers.mjs",
|
|
73
94
|
"up": "yarn g:up"
|
|
74
95
|
}
|
|
75
96
|
}
|