File tree Expand file tree Collapse file tree 8 files changed +13
-8
lines changed
website/src/components/Playground/editor-types Expand file tree Collapse file tree 8 files changed +13
-8
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @data-client/endpoint ' : patch
3
+ ---
4
+
5
+ Update Entity docstring
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ export { default as All } from './schemas/All.js';
6
6
export { default as Object } from './schemas/Object.js' ;
7
7
export { default as Invalidate } from './schemas/Invalidate.js' ;
8
8
export { default as Collection } from './schemas/Collection.js' ;
9
- export { default as Entity } from './schemas/EntitySchema .js' ;
9
+ export { default as Entity } from './schemas/EntityMixin .js' ;
10
10
export { default as Query } from './schemas/Query.js' ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const EmptyBase = class {} as any as abstract new (...args: any[]) => {
10
10
} ;
11
11
12
12
/**
13
- * Represents data that should be deduped by specifying a primary key .
13
+ * Entity defines a single (globally) unique object .
14
14
* @see https://dataclient.io/rest/api/Entity
15
15
*/
16
16
export default abstract class Entity extends EntityMixin ( EmptyBase ) {
Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ import type {
9
9
import { AbstractInstanceType } from '../normal.js' ;
10
10
11
11
/**
12
- * Represents data that should be deduped by specifying a primary key .
12
+ * Entity defines a single (globally) unique object .
13
13
* @see https://dataclient.io/rest/api/schema.Entity
14
14
*/
15
15
export default function EntityMixin < TBase extends Constructor > (
16
16
Base : TBase ,
17
17
options : EntityOptions < InstanceType < TBase > > = { } ,
18
18
) {
19
19
/**
20
- * Represents data that should be deduped by specifying a primary key .
20
+ * Entity defines a single (globally) unique object .
21
21
* @see https://dataclient.io/rest/api/Entity
22
22
*/
23
23
abstract class EntityMixin extends Base {
Original file line number Diff line number Diff line change @@ -1106,7 +1106,7 @@ declare const Entity_base: IEntityClass<abstract new (...args: any[]) => {
1106
1106
pk ( parent ?: any , key ?: string , args ?: readonly any [ ] ) : string | number | undefined ;
1107
1107
} ) ;
1108
1108
/**
1109
- * Represents data that should be deduped by specifying a primary key .
1109
+ * Entity defines a single (globally) unique object .
1110
1110
* @see https://dataclient.io/rest/api/Entity
1111
1111
*/
1112
1112
declare abstract class Entity extends Entity_base {
Original file line number Diff line number Diff line change @@ -1106,7 +1106,7 @@ declare const Entity_base: IEntityClass<abstract new (...args: any[]) => {
1106
1106
pk ( parent ?: any , key ?: string , args ?: readonly any [ ] ) : string | number | undefined ;
1107
1107
} ) ;
1108
1108
/**
1109
- * Represents data that should be deduped by specifying a primary key .
1109
+ * Entity defines a single (globally) unique object .
1110
1110
* @see https://dataclient.io/rest/api/Entity
1111
1111
*/
1112
1112
declare abstract class Entity extends Entity_base {
Original file line number Diff line number Diff line change @@ -1104,7 +1104,7 @@ declare const Entity_base: IEntityClass<abstract new (...args: any[]) => {
1104
1104
pk ( parent ?: any , key ?: string , args ?: readonly any [ ] ) : string | number | undefined ;
1105
1105
} ) ;
1106
1106
/**
1107
- * Represents data that should be deduped by specifying a primary key .
1107
+ * Entity defines a single (globally) unique object .
1108
1108
* @see https://dataclient.io/rest/api/Entity
1109
1109
*/
1110
1110
declare abstract class Entity extends Entity_base {
Original file line number Diff line number Diff line change @@ -1108,7 +1108,7 @@ declare const Entity_base: IEntityClass<abstract new (...args: any[]) => {
1108
1108
pk ( parent ?: any , key ?: string , args ?: readonly any [ ] ) : string | number | undefined ;
1109
1109
} ) ;
1110
1110
/**
1111
- * Represents data that should be deduped by specifying a primary key .
1111
+ * Entity defines a single (globally) unique object .
1112
1112
* @see https://dataclient.io/rest/api/Entity
1113
1113
*/
1114
1114
declare abstract class Entity extends Entity_base {
You can’t perform that action at this time.
0 commit comments