@dxos/echo 0.8.4-main.406dc2a → 0.8.4-main.548089c
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/lib/browser/chunk-3FCPYTWA.mjs +585 -0
- package/dist/lib/browser/chunk-3FCPYTWA.mjs.map +7 -0
- package/dist/lib/browser/{chunk-MB6MMNFP.mjs → chunk-5BNXQE6S.mjs} +106 -236
- package/dist/lib/browser/chunk-5BNXQE6S.mjs.map +7 -0
- package/dist/lib/browser/chunk-U43CXUCL.mjs +410 -0
- package/dist/lib/browser/chunk-U43CXUCL.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +9 -9
- package/dist/lib/browser/internal/index.mjs +5 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/query/index.mjs +4 -6
- package/dist/lib/browser/testing/index.mjs +32 -63
- package/dist/lib/browser/testing/index.mjs.map +3 -3
- package/dist/lib/node-esm/{chunk-BQRA4VLX.mjs → chunk-3FGSPSYN.mjs} +106 -236
- package/dist/lib/node-esm/chunk-3FGSPSYN.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-C7LTTWRL.mjs +585 -0
- package/dist/lib/node-esm/chunk-C7LTTWRL.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-OHJ5WBB6.mjs +410 -0
- package/dist/lib/node-esm/chunk-OHJ5WBB6.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +9 -9
- package/dist/lib/node-esm/internal/index.mjs +5 -1
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/query/index.mjs +4 -6
- package/dist/lib/node-esm/testing/index.mjs +32 -63
- package/dist/lib/node-esm/testing/index.mjs.map +3 -3
- package/dist/types/src/Obj.d.ts +4 -2
- package/dist/types/src/Obj.d.ts.map +1 -1
- package/dist/types/src/{query/tag.d.ts → Tag.d.ts} +7 -7
- package/dist/types/src/Tag.d.ts.map +1 -0
- package/dist/types/src/errors.d.ts +8 -16
- package/dist/types/src/errors.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/internal/ast/annotations.d.ts +6 -0
- package/dist/types/src/internal/ast/annotations.d.ts.map +1 -1
- package/dist/types/src/internal/index.d.ts +2 -2
- package/dist/types/src/internal/index.d.ts.map +1 -1
- package/dist/types/src/internal/object/create.d.ts +1 -1
- package/dist/types/src/internal/object/typename.d.ts +1 -1
- package/dist/types/src/internal/testing/types.d.ts +5 -79
- package/dist/types/src/internal/testing/types.d.ts.map +1 -1
- package/dist/types/src/query/index.d.ts +0 -1
- package/dist/types/src/query/index.d.ts.map +1 -1
- package/dist/types/src/testing/types.d.ts +161 -46
- package/dist/types/src/testing/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +12 -12
- package/src/Obj.ts +21 -2
- package/src/{query/tag.ts → Tag.ts} +8 -6
- package/src/index.ts +1 -0
- package/src/internal/ast/annotations.ts +7 -0
- package/src/internal/index.ts +2 -2
- package/src/internal/json/json-schema.test.ts +27 -35
- package/src/internal/object/create.test.ts +11 -11
- package/src/internal/object/create.ts +1 -1
- package/src/internal/object/json-serializer.test.ts +11 -11
- package/src/internal/object/typename.ts +1 -1
- package/src/internal/proxy/typed-handler.test.ts +7 -7
- package/src/internal/proxy/typed-object.test.ts +1 -1
- package/src/internal/ref/ref.test.ts +1 -1
- package/src/internal/testing/types.ts +10 -77
- package/src/internal/testing/utils.ts +1 -1
- package/src/query/index.ts +1 -1
- package/src/testing/types.ts +39 -22
- package/dist/lib/browser/chunk-HKFCK2GL.mjs +0 -175
- package/dist/lib/browser/chunk-HKFCK2GL.mjs.map +0 -7
- package/dist/lib/browser/chunk-MAAYELT7.mjs +0 -830
- package/dist/lib/browser/chunk-MAAYELT7.mjs.map +0 -7
- package/dist/lib/browser/chunk-MB6MMNFP.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-5NWDGIBT.mjs +0 -830
- package/dist/lib/node-esm/chunk-5NWDGIBT.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-AUAH4E2J.mjs +0 -175
- package/dist/lib/node-esm/chunk-AUAH4E2J.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BQRA4VLX.mjs.map +0 -7
- package/dist/types/src/query/tag.d.ts.map +0 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as Schema from 'effect/Schema';
|
|
2
|
-
import { Expando } from '../object';
|
|
3
2
|
import { Ref, type Ref$ } from '../ref';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated
|
|
5
|
+
*/
|
|
4
6
|
export declare namespace Testing {
|
|
5
7
|
const TestNestedSchema: Schema.mutable<Schema.Struct<{
|
|
6
8
|
field: typeof Schema.String;
|
|
@@ -229,7 +231,7 @@ export declare namespace Testing {
|
|
|
229
231
|
classInstance: Schema.optional<Schema.instanceOf<TestClass>>;
|
|
230
232
|
}>>>>;
|
|
231
233
|
export type TestSchemaWithClass = Schema.Schema.Type<typeof TestSchemaWithClass>;
|
|
232
|
-
const
|
|
234
|
+
const Person_base: import("..").TypedObjectPrototype<import("..").TypedObjectFields<{
|
|
233
235
|
name: typeof Schema.String;
|
|
234
236
|
username: typeof Schema.String;
|
|
235
237
|
email: typeof Schema.String;
|
|
@@ -268,7 +270,7 @@ export declare namespace Testing {
|
|
|
268
270
|
}>;
|
|
269
271
|
}>;
|
|
270
272
|
}>>;
|
|
271
|
-
export class
|
|
273
|
+
export class Person extends Person_base {
|
|
272
274
|
}
|
|
273
275
|
const Task_base: import("..").TypedObjectPrototype<import("..").TypedObjectFields<{
|
|
274
276
|
title: Schema.optional<typeof Schema.String>;
|
|
@@ -329,82 +331,6 @@ export declare namespace Testing {
|
|
|
329
331
|
}>>;
|
|
330
332
|
export class Task extends Task_base {
|
|
331
333
|
}
|
|
332
|
-
export enum RecordType {
|
|
333
|
-
UNDEFINED = 0,
|
|
334
|
-
PERSONAL = 1,
|
|
335
|
-
WORK = 2
|
|
336
|
-
}
|
|
337
|
-
const Container_base: import("..").TypedObjectPrototype<import("..").TypedObjectFields<{
|
|
338
|
-
objects: Schema.mutable<Schema.Array$<Ref$<Expando>>>;
|
|
339
|
-
records: Schema.mutable<Schema.Array$<Schema.SchemaClass<{
|
|
340
|
-
readonly title?: string | undefined;
|
|
341
|
-
readonly description?: string | undefined;
|
|
342
|
-
readonly type?: RecordType | undefined;
|
|
343
|
-
readonly contacts?: Ref<import("..").TypedObjectFields<{
|
|
344
|
-
name: typeof Schema.String;
|
|
345
|
-
username: typeof Schema.String;
|
|
346
|
-
email: typeof Schema.String;
|
|
347
|
-
phoneNumbers: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
348
|
-
label: typeof Schema.String;
|
|
349
|
-
number: typeof Schema.String;
|
|
350
|
-
}>>>;
|
|
351
|
-
tasks: Schema.suspend<Ref<Task>[], import("@dxos/echo-protocol").EncodedReference[], never>;
|
|
352
|
-
address: Schema.Struct<{
|
|
353
|
-
city: Schema.optional<typeof Schema.String>;
|
|
354
|
-
state: Schema.optional<typeof Schema.String>;
|
|
355
|
-
zip: Schema.optional<typeof Schema.String>;
|
|
356
|
-
coordinates: Schema.Struct<{
|
|
357
|
-
lat: Schema.optional<typeof Schema.Number>;
|
|
358
|
-
lng: Schema.optional<typeof Schema.Number>;
|
|
359
|
-
}>;
|
|
360
|
-
}>;
|
|
361
|
-
}, {
|
|
362
|
-
partial: true;
|
|
363
|
-
}>>[] | undefined;
|
|
364
|
-
}, {
|
|
365
|
-
readonly title?: string | undefined;
|
|
366
|
-
readonly description?: string | undefined;
|
|
367
|
-
readonly type?: RecordType | undefined;
|
|
368
|
-
readonly contacts?: import("@dxos/echo-protocol").EncodedReference[] | undefined;
|
|
369
|
-
}, never>>>;
|
|
370
|
-
}, {
|
|
371
|
-
partial: true;
|
|
372
|
-
}>, Schema.Struct.Encoded<{
|
|
373
|
-
objects: Schema.mutable<Schema.Array$<Ref$<Expando>>>;
|
|
374
|
-
records: Schema.mutable<Schema.Array$<Schema.SchemaClass<{
|
|
375
|
-
readonly title?: string | undefined;
|
|
376
|
-
readonly description?: string | undefined;
|
|
377
|
-
readonly type?: RecordType | undefined;
|
|
378
|
-
readonly contacts?: Ref<import("..").TypedObjectFields<{
|
|
379
|
-
name: typeof Schema.String;
|
|
380
|
-
username: typeof Schema.String;
|
|
381
|
-
email: typeof Schema.String;
|
|
382
|
-
phoneNumbers: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
383
|
-
label: typeof Schema.String;
|
|
384
|
-
number: typeof Schema.String;
|
|
385
|
-
}>>>;
|
|
386
|
-
tasks: Schema.suspend<Ref<Task>[], import("@dxos/echo-protocol").EncodedReference[], never>;
|
|
387
|
-
address: Schema.Struct<{
|
|
388
|
-
city: Schema.optional<typeof Schema.String>;
|
|
389
|
-
state: Schema.optional<typeof Schema.String>;
|
|
390
|
-
zip: Schema.optional<typeof Schema.String>;
|
|
391
|
-
coordinates: Schema.Struct<{
|
|
392
|
-
lat: Schema.optional<typeof Schema.Number>;
|
|
393
|
-
lng: Schema.optional<typeof Schema.Number>;
|
|
394
|
-
}>;
|
|
395
|
-
}>;
|
|
396
|
-
}, {
|
|
397
|
-
partial: true;
|
|
398
|
-
}>>[] | undefined;
|
|
399
|
-
}, {
|
|
400
|
-
readonly title?: string | undefined;
|
|
401
|
-
readonly description?: string | undefined;
|
|
402
|
-
readonly type?: RecordType | undefined;
|
|
403
|
-
readonly contacts?: import("@dxos/echo-protocol").EncodedReference[] | undefined;
|
|
404
|
-
}, never>>>;
|
|
405
|
-
}>>;
|
|
406
|
-
export class Container extends Container_base {
|
|
407
|
-
}
|
|
408
334
|
export const HasManager: import("..").EchoTypeSchema<Schema.Struct<{
|
|
409
335
|
since: Schema.optional<typeof Schema.String>;
|
|
410
336
|
}>, import("..").RelationSourceTargetRefs<import("..").TypedObjectFields<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/internal/testing/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/internal/testing/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,GAAG,EAAE,KAAK,IAAI,EAAE,MAAM,QAAQ,CAAC;AAExC;;GAEG;AAEH,yBAAiB,OAAO,CAAC;IAavB,MAAM,gBAAgB;;OAA0D,CAAC;IACjF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAC3E,MAAM,CAAC,MAAM,cAAc;;YAE1B,CAAC;;IAOF,MAAM,OAAO,eAAgB,SAAQ,oBAG/B;KAAG;IAiBT,MAAM,CAAC,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAwD,CAAC;IAChF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAE/D,MAAM,OAAO,cAAe,SAAQ,mBAGP;KAAG;IAGhC,MAAM,CAAC,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAKpB,CAAC;IAEF,MAAM,OAAO,SAAS;QACpB,KAAK,SAAW;QAChB,MAAM;;;KAGP;IAGD,MAAM,CAAC,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAS/B,CAAC;IAEF,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,mBAAmB,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEjF,MAAM,OAAO,MAAO,SAAQ,WAqB3B;KAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEJ,MAAM,OAAO,IAAK,SAAQ,SAazB;KAAG;IAEJ,MAAM,CAAC,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAStB,CAAC;IACF,MAAM,WAAW,UAAW,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC;KAAG;;CAC7E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/query/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/query/index.ts"],"names":[],"mappings":"AAKA,cAAc,SAAS,CAAC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as Schema from 'effect/Schema';
|
|
2
2
|
import { Type } from '..';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated
|
|
5
|
+
*/
|
|
3
6
|
export declare namespace Testing {
|
|
4
|
-
const
|
|
7
|
+
const Person: Type.obj<Schema.SchemaClass<{
|
|
5
8
|
readonly email?: string | undefined;
|
|
6
9
|
readonly name?: string | undefined;
|
|
7
10
|
readonly username?: string | undefined;
|
|
@@ -30,14 +33,27 @@ export declare namespace Testing {
|
|
|
30
33
|
readonly zip?: string | undefined;
|
|
31
34
|
} | undefined;
|
|
32
35
|
}, never>>;
|
|
33
|
-
|
|
36
|
+
interface Person extends Schema.Schema.Type<typeof Person> {
|
|
34
37
|
}
|
|
35
|
-
|
|
36
|
-
const _Task: Type.obj<Schema.SchemaClass<{
|
|
38
|
+
const Task: Type.obj<Schema.SchemaClass<{
|
|
37
39
|
readonly title?: string | undefined;
|
|
38
40
|
readonly description?: string | undefined;
|
|
39
41
|
readonly completed?: boolean | undefined;
|
|
40
|
-
readonly assignee?: import("../internal").Ref<
|
|
42
|
+
readonly assignee?: import("../internal").Ref<Type.OfKind<import("../internal").EntityKind.Object> & {
|
|
43
|
+
email?: string | undefined;
|
|
44
|
+
name?: string | undefined;
|
|
45
|
+
username?: string | undefined;
|
|
46
|
+
tasks?: import("../internal").Ref<Task>[] | undefined;
|
|
47
|
+
address?: {
|
|
48
|
+
readonly city?: string | undefined;
|
|
49
|
+
readonly state?: string | undefined;
|
|
50
|
+
readonly zip?: string | undefined;
|
|
51
|
+
readonly coordinates: {
|
|
52
|
+
readonly lat?: number | undefined;
|
|
53
|
+
readonly lng?: number | undefined;
|
|
54
|
+
};
|
|
55
|
+
} | undefined;
|
|
56
|
+
}> | undefined;
|
|
41
57
|
readonly previous?: import("../internal").Ref<Task> | undefined;
|
|
42
58
|
readonly subTasks?: import("../internal").Ref<Task>[] | undefined;
|
|
43
59
|
}, {
|
|
@@ -48,40 +64,91 @@ export declare namespace Testing {
|
|
|
48
64
|
readonly previous?: import("@dxos/echo-protocol").EncodedReference | undefined;
|
|
49
65
|
readonly subTasks?: import("@dxos/echo-protocol").EncodedReference[] | undefined;
|
|
50
66
|
}, never>>;
|
|
51
|
-
|
|
67
|
+
interface Task extends Schema.Schema.Type<typeof Task> {
|
|
52
68
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
readonly
|
|
61
|
-
readonly
|
|
62
|
-
readonly
|
|
63
|
-
readonly
|
|
64
|
-
readonly
|
|
65
|
-
|
|
66
|
-
|
|
69
|
+
const WorksFor: Type.relation<Schema.Struct<{
|
|
70
|
+
since: Schema.optional<typeof Schema.String>;
|
|
71
|
+
}>, Type.obj<Schema.SchemaClass<{
|
|
72
|
+
readonly email?: string | undefined;
|
|
73
|
+
readonly name?: string | undefined;
|
|
74
|
+
readonly username?: string | undefined;
|
|
75
|
+
readonly tasks?: import("../internal").Ref<Task>[] | undefined;
|
|
76
|
+
readonly address?: {
|
|
77
|
+
readonly city?: string | undefined;
|
|
78
|
+
readonly state?: string | undefined;
|
|
79
|
+
readonly zip?: string | undefined;
|
|
80
|
+
readonly coordinates: {
|
|
81
|
+
readonly lat?: number | undefined;
|
|
82
|
+
readonly lng?: number | undefined;
|
|
83
|
+
};
|
|
84
|
+
} | undefined;
|
|
67
85
|
}, {
|
|
68
|
-
readonly
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
86
|
+
readonly email?: string | undefined;
|
|
87
|
+
readonly name?: string | undefined;
|
|
88
|
+
readonly username?: string | undefined;
|
|
89
|
+
readonly tasks?: import("@dxos/echo-protocol").EncodedReference[] | undefined;
|
|
90
|
+
readonly address?: {
|
|
91
|
+
readonly coordinates: {
|
|
92
|
+
readonly lat?: number | undefined;
|
|
93
|
+
readonly lng?: number | undefined;
|
|
94
|
+
};
|
|
95
|
+
readonly city?: string | undefined;
|
|
96
|
+
readonly state?: string | undefined;
|
|
97
|
+
readonly zip?: string | undefined;
|
|
98
|
+
} | undefined;
|
|
99
|
+
}, never>>, Type.obj<Schema.SchemaClass<{
|
|
100
|
+
readonly email?: string | undefined;
|
|
101
|
+
readonly name?: string | undefined;
|
|
102
|
+
readonly username?: string | undefined;
|
|
103
|
+
readonly tasks?: import("../internal").Ref<Task>[] | undefined;
|
|
104
|
+
readonly address?: {
|
|
105
|
+
readonly city?: string | undefined;
|
|
106
|
+
readonly state?: string | undefined;
|
|
107
|
+
readonly zip?: string | undefined;
|
|
108
|
+
readonly coordinates: {
|
|
109
|
+
readonly lat?: number | undefined;
|
|
110
|
+
readonly lng?: number | undefined;
|
|
111
|
+
};
|
|
112
|
+
} | undefined;
|
|
113
|
+
}, {
|
|
114
|
+
readonly email?: string | undefined;
|
|
115
|
+
readonly name?: string | undefined;
|
|
116
|
+
readonly username?: string | undefined;
|
|
117
|
+
readonly tasks?: import("@dxos/echo-protocol").EncodedReference[] | undefined;
|
|
118
|
+
readonly address?: {
|
|
119
|
+
readonly coordinates: {
|
|
120
|
+
readonly lat?: number | undefined;
|
|
121
|
+
readonly lng?: number | undefined;
|
|
122
|
+
};
|
|
123
|
+
readonly city?: string | undefined;
|
|
124
|
+
readonly state?: string | undefined;
|
|
125
|
+
readonly zip?: string | undefined;
|
|
126
|
+
} | undefined;
|
|
127
|
+
}, never>>>;
|
|
128
|
+
interface WorksFor extends Schema.Schema.Type<typeof WorksFor> {
|
|
129
|
+
}
|
|
130
|
+
const HasManager: Type.relation<Schema.Struct<{
|
|
77
131
|
since: Schema.optional<typeof Schema.String>;
|
|
78
|
-
}>, Schema.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
132
|
+
}>, Type.obj<Schema.SchemaClass<{
|
|
133
|
+
readonly email?: string | undefined;
|
|
134
|
+
readonly name?: string | undefined;
|
|
135
|
+
readonly username?: string | undefined;
|
|
136
|
+
readonly tasks?: import("../internal").Ref<Task>[] | undefined;
|
|
137
|
+
readonly address?: {
|
|
138
|
+
readonly city?: string | undefined;
|
|
139
|
+
readonly state?: string | undefined;
|
|
140
|
+
readonly zip?: string | undefined;
|
|
141
|
+
readonly coordinates: {
|
|
142
|
+
readonly lat?: number | undefined;
|
|
143
|
+
readonly lng?: number | undefined;
|
|
144
|
+
};
|
|
145
|
+
} | undefined;
|
|
146
|
+
}, {
|
|
147
|
+
readonly email?: string | undefined;
|
|
148
|
+
readonly name?: string | undefined;
|
|
149
|
+
readonly username?: string | undefined;
|
|
150
|
+
readonly tasks?: import("@dxos/echo-protocol").EncodedReference[] | undefined;
|
|
151
|
+
readonly address?: {
|
|
85
152
|
readonly coordinates: {
|
|
86
153
|
readonly lat?: number | undefined;
|
|
87
154
|
readonly lng?: number | undefined;
|
|
@@ -90,13 +157,26 @@ export declare namespace Testing {
|
|
|
90
157
|
readonly state?: string | undefined;
|
|
91
158
|
readonly zip?: string | undefined;
|
|
92
159
|
} | undefined;
|
|
93
|
-
}, never
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
160
|
+
}, never>>, Type.obj<Schema.SchemaClass<{
|
|
161
|
+
readonly email?: string | undefined;
|
|
162
|
+
readonly name?: string | undefined;
|
|
163
|
+
readonly username?: string | undefined;
|
|
164
|
+
readonly tasks?: import("../internal").Ref<Task>[] | undefined;
|
|
165
|
+
readonly address?: {
|
|
166
|
+
readonly city?: string | undefined;
|
|
167
|
+
readonly state?: string | undefined;
|
|
168
|
+
readonly zip?: string | undefined;
|
|
169
|
+
readonly coordinates: {
|
|
170
|
+
readonly lat?: number | undefined;
|
|
171
|
+
readonly lng?: number | undefined;
|
|
172
|
+
};
|
|
173
|
+
} | undefined;
|
|
174
|
+
}, {
|
|
175
|
+
readonly email?: string | undefined;
|
|
176
|
+
readonly name?: string | undefined;
|
|
177
|
+
readonly username?: string | undefined;
|
|
178
|
+
readonly tasks?: import("@dxos/echo-protocol").EncodedReference[] | undefined;
|
|
179
|
+
readonly address?: {
|
|
100
180
|
readonly coordinates: {
|
|
101
181
|
readonly lat?: number | undefined;
|
|
102
182
|
readonly lng?: number | undefined;
|
|
@@ -105,9 +185,44 @@ export declare namespace Testing {
|
|
|
105
185
|
readonly state?: string | undefined;
|
|
106
186
|
readonly zip?: string | undefined;
|
|
107
187
|
} | undefined;
|
|
108
|
-
}, never
|
|
109
|
-
|
|
188
|
+
}, never>>>;
|
|
189
|
+
interface HasManager extends Schema.Schema.Type<typeof HasManager> {
|
|
190
|
+
}
|
|
191
|
+
enum RecordType {
|
|
192
|
+
UNDEFINED = 0,
|
|
193
|
+
PERSONAL = 1,
|
|
194
|
+
WORK = 2
|
|
110
195
|
}
|
|
111
|
-
|
|
196
|
+
const Container: Type.obj<Schema.SchemaClass<{
|
|
197
|
+
readonly records?: {
|
|
198
|
+
readonly title?: string | undefined;
|
|
199
|
+
readonly description?: string | undefined;
|
|
200
|
+
readonly type?: RecordType | undefined;
|
|
201
|
+
readonly contacts?: import("../internal").Ref<Type.OfKind<import("../internal").EntityKind.Object> & {
|
|
202
|
+
email?: string | undefined;
|
|
203
|
+
name?: string | undefined;
|
|
204
|
+
username?: string | undefined;
|
|
205
|
+
tasks?: import("../internal").Ref<Task>[] | undefined;
|
|
206
|
+
address?: {
|
|
207
|
+
readonly city?: string | undefined;
|
|
208
|
+
readonly state?: string | undefined;
|
|
209
|
+
readonly zip?: string | undefined;
|
|
210
|
+
readonly coordinates: {
|
|
211
|
+
readonly lat?: number | undefined;
|
|
212
|
+
readonly lng?: number | undefined;
|
|
213
|
+
};
|
|
214
|
+
} | undefined;
|
|
215
|
+
}>[] | undefined;
|
|
216
|
+
}[] | undefined;
|
|
217
|
+
readonly objects?: import("../internal").Ref<Type.Expando>[] | undefined;
|
|
218
|
+
}, {
|
|
219
|
+
readonly records?: {
|
|
220
|
+
readonly title?: string | undefined;
|
|
221
|
+
readonly description?: string | undefined;
|
|
222
|
+
readonly type?: RecordType | undefined;
|
|
223
|
+
readonly contacts?: import("@dxos/echo-protocol").EncodedReference[] | undefined;
|
|
224
|
+
}[] | undefined;
|
|
225
|
+
readonly objects?: import("@dxos/echo-protocol").EncodedReference[] | undefined;
|
|
226
|
+
}, never>>;
|
|
112
227
|
}
|
|
113
228
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/testing/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/testing/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAE1B;;GAEG;AAEH,yBAAiB,OAAO,CAAC;IAChB,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoBlB,CAAC;IAEF,UAAiB,MAAO,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,MAAM,CAAC;KAAG;IAE7D,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAahB,CAAC;IAEF,UAAiB,IAAK,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC;KAAG;IAEzD,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eASpB,CAAC;IAEF,UAAiB,QAAS,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC;KAAG;IAEjE,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAStB,CAAC;IAEF,UAAiB,UAAW,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC;KAAG;IAE5E,KAAY,UAAU;QACpB,SAAS,IAAI;QACb,QAAQ,IAAI;QACZ,IAAI,IAAI;KACT;IAEM,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoBrB,CAAC;CACH"}
|