Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ npm-debug.log

# TypeScript
src/compiled
/dist

# JetBrains
.idea
Expand Down
1 change: 1 addition & 0 deletions dist/constants/symbols.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export declare const AttributeMetadata: symbol;
5 changes: 5 additions & 0 deletions dist/constants/symbols.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/constants/symbols.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/constants/symbols.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"__symbolic":"module","version":3,"metadata":{"AttributeMetadata":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Symbol"},"arguments":["AttributeMetadata"]}}},{"__symbolic":"module","version":1,"metadata":{"AttributeMetadata":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Symbol"},"arguments":["AttributeMetadata"]}}}]
5 changes: 5 additions & 0 deletions dist/converters/date/date.converter.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { PropertyConverter } from '../../interfaces/property-converter.interface';
export declare class DateConverter implements PropertyConverter {
mask(value: any): Date;
unmask(value: any): string;
}
16 changes: 16 additions & 0 deletions dist/converters/date/date.converter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/converters/date/date.converter.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/converters/date/date.converter.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"__symbolic":"module","version":3,"metadata":{"DateConverter":{"__symbolic":"class","members":{"mask":[{"__symbolic":"method"}],"unmask":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"DateConverter":{"__symbolic":"class","members":{"mask":[{"__symbolic":"method"}],"unmask":[{"__symbolic":"method"}]}}}}]
2 changes: 2 additions & 0 deletions dist/decorators/attribute.decorator.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { AttributeDecoratorOptions } from '../interfaces/attribute-decorator-options.interface';
export declare function Attribute(options?: AttributeDecoratorOptions): PropertyDecorator;
79 changes: 79 additions & 0 deletions dist/decorators/attribute.decorator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/decorators/attribute.decorator.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/decorators/attribute.decorator.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"__symbolic":"module","version":3,"metadata":{"Attribute":{"__symbolic":"function","parameters":["options"],"value":{"__symbolic":"error","message":"Function call not supported","line":5,"character":9},"defaults":[{}]}}},{"__symbolic":"module","version":1,"metadata":{"Attribute":{"__symbolic":"function","parameters":["options"],"value":{"__symbolic":"error","message":"Function call not supported","line":5,"character":9},"defaults":[{}]}}}]
1 change: 1 addition & 0 deletions dist/decorators/belongs-to.decorator.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export declare function BelongsTo(config?: any): (target: any, propertyName: string | symbol) => void;
15 changes: 15 additions & 0 deletions dist/decorators/belongs-to.decorator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/decorators/belongs-to.decorator.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/decorators/belongs-to.decorator.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"__symbolic":"module","version":3,"metadata":{"BelongsTo":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"error","message":"Function call not supported","line":1,"character":9},"defaults":[{}]}}},{"__symbolic":"module","version":1,"metadata":{"BelongsTo":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"error","message":"Function call not supported","line":1,"character":9},"defaults":[{}]}}}]
1 change: 1 addition & 0 deletions dist/decorators/has-many.decorator.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export declare function HasMany(config?: any): (target: any, propertyName: string | symbol) => void;
15 changes: 15 additions & 0 deletions dist/decorators/has-many.decorator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/decorators/has-many.decorator.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/decorators/has-many.decorator.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"__symbolic":"module","version":3,"metadata":{"HasMany":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"error","message":"Function call not supported","line":1,"character":9},"defaults":[{}]}}},{"__symbolic":"module","version":1,"metadata":{"HasMany":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"error","message":"Function call not supported","line":1,"character":9},"defaults":[{}]}}}]
1 change: 1 addition & 0 deletions dist/decorators/json-api-datastore-config.decorator.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export declare function JsonApiDatastoreConfig(config?: any): (target: any) => void;
10 changes: 10 additions & 0 deletions dist/decorators/json-api-datastore-config.decorator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/decorators/json-api-datastore-config.decorator.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"__symbolic":"module","version":3,"metadata":{"JsonApiDatastoreConfig":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"error","message":"Function call not supported","line":1,"character":9},"defaults":[{}]}}},{"__symbolic":"module","version":1,"metadata":{"JsonApiDatastoreConfig":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"error","message":"Function call not supported","line":1,"character":9},"defaults":[{}]}}}]
2 changes: 2 additions & 0 deletions dist/decorators/json-api-model-config.decorator.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { ModelConfig } from '../interfaces/model-config.interface';
export declare function JsonApiModelConfig(config: ModelConfig): (target: any) => void;
13 changes: 13 additions & 0 deletions dist/decorators/json-api-model-config.decorator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/decorators/json-api-model-config.decorator.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"__symbolic":"module","version":3,"metadata":{"JsonApiModelConfig":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"error","message":"Function call not supported","line":4,"character":9}}}},{"__symbolic":"module","version":1,"metadata":{"JsonApiModelConfig":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"error","message":"Function call not supported","line":4,"character":9}}}}]
16 changes: 16 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export * from './decorators/has-many.decorator';
export * from './decorators/belongs-to.decorator';
export * from './decorators/attribute.decorator';
export * from './decorators/json-api-model-config.decorator';
export * from './decorators/json-api-datastore-config.decorator';
export * from './models/json-api-meta.model';
export * from './models/json-api.model';
export * from './models/error-response.model';
export * from './models/json-api-query-data';
export * from './interfaces/overrides.interface';
export * from './interfaces/datastore-config.interface';
export * from './interfaces/model-config.interface';
export * from './interfaces/attribute-decorator-options.interface';
export * from './interfaces/property-converter.interface';
export * from './providers';
export * from './module';
17 changes: 17 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/index.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./decorators/has-many.decorator"},{"from":"./decorators/belongs-to.decorator"},{"from":"./decorators/attribute.decorator"},{"from":"./decorators/json-api-model-config.decorator"},{"from":"./decorators/json-api-datastore-config.decorator"},{"from":"./models/json-api-meta.model"},{"from":"./models/json-api.model"},{"from":"./models/error-response.model"},{"from":"./models/json-api-query-data"},{"from":"./interfaces/overrides.interface"},{"from":"./interfaces/datastore-config.interface"},{"from":"./interfaces/model-config.interface"},{"from":"./interfaces/attribute-decorator-options.interface"},{"from":"./interfaces/property-converter.interface"},{"from":"./providers"},{"from":"./module"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./decorators/has-many.decorator"},{"from":"./decorators/belongs-to.decorator"},{"from":"./decorators/attribute.decorator"},{"from":"./decorators/json-api-model-config.decorator"},{"from":"./decorators/json-api-datastore-config.decorator"},{"from":"./models/json-api-meta.model"},{"from":"./models/json-api.model"},{"from":"./models/error-response.model"},{"from":"./models/json-api-query-data"},{"from":"./interfaces/overrides.interface"},{"from":"./interfaces/datastore-config.interface"},{"from":"./interfaces/model-config.interface"},{"from":"./interfaces/attribute-decorator-options.interface"},{"from":"./interfaces/property-converter.interface"},{"from":"./providers"},{"from":"./module"}]}]
5 changes: 5 additions & 0 deletions dist/interfaces/attribute-decorator-options.interface.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { PropertyConverter } from './property-converter.interface';
export interface AttributeDecoratorOptions {
serializedName?: string;
converter?: PropertyConverter;
}
Loading