@kubun/protocol 0.1.0 → 0.2.0

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/lib/index.d.ts CHANGED
@@ -1,14 +1,16 @@
1
1
  import type { AnyClientMessageOf, AnyServerMessageOf, ClientTransportOf, ServerTransportOf } from '@enkaku/protocol';
2
- import type { GraphCommands } from './services/graph.js';
2
+ import type { DocumentProtocol } from './services/document.js';
3
+ import type { GraphProtocol } from './services/graph.js';
3
4
  export * from './models/cluster.js';
4
5
  export * from './models/document.js';
5
6
  export * from './models/graph.js';
6
7
  export * from './models/json-schema.js';
7
8
  export * from './models/value.js';
9
+ export * from './services/document.js';
8
10
  export * from './services/graph.js';
9
- export type Definitions = GraphCommands;
10
- export type ClientMessage = AnyClientMessageOf<Definitions>;
11
- export type ServerMessage = AnyServerMessageOf<Definitions>;
12
- export type ClientTransport = ClientTransportOf<Definitions>;
13
- export type ServerTransport = ServerTransportOf<Definitions>;
11
+ export type Protocol = DocumentProtocol & GraphProtocol;
12
+ export type ClientMessage = AnyClientMessageOf<Protocol>;
13
+ export type ServerMessage = AnyServerMessageOf<Protocol>;
14
+ export type ClientTransport = ClientTransportOf<Protocol>;
15
+ export type ServerTransport = ServerTransportOf<Protocol>;
14
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,kBAAkB,CAAA;AAEzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AAEnC,MAAM,MAAM,WAAW,GAAG,aAAa,CAAA;AAEvC,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC,WAAW,CAAC,CAAA;AAC3D,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC,WAAW,CAAC,CAAA;AAE3D,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAA;AAC5D,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,kBAAkB,CAAA;AAEzB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AAEnC,MAAM,MAAM,QAAQ,GAAG,gBAAgB,GAAG,aAAa,CAAA;AAEvD,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAA;AACxD,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAA;AAExD,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAA;AACzD,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAA"}
package/lib/index.js CHANGED
@@ -3,4 +3,5 @@ export * from './models/document.js';
3
3
  export * from './models/graph.js';
4
4
  export * from './models/json-schema.js';
5
5
  export * from './models/value.js';
6
+ export * from './services/document.js';
6
7
  export * from './services/graph.js';