@roadmanjs/chat-client 0.0.30 → 0.0.31

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.
@@ -1 +1,2 @@
1
+ export declare const CHAT_TYPING: import("graphql").DocumentNode;
1
2
  export declare const GET_CHAT_MESSAGE: import("graphql").DocumentNode;
@@ -3,9 +3,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.GET_CHAT_MESSAGE = void 0;
6
+ exports.GET_CHAT_MESSAGE = exports.CHAT_TYPING = void 0;
7
7
  const chatMessage_fragment_1 = require("../fragments/chatMessage.fragment");
8
8
  const graphql_tag_1 = __importDefault(require("graphql-tag"));
9
+ exports.CHAT_TYPING = (0, graphql_tag_1.default) `
10
+ query ChatTyping($convoId: String!, $time: DateTime) {
11
+ data: chatTyping(convoId: $convoId, time: $time)
12
+ }
13
+ `;
9
14
  exports.GET_CHAT_MESSAGE = (0, graphql_tag_1.default) `
10
15
  query GetChatMessage($convoId: String!, $before: DateTime, $after: DateTime, $limit: Float) {
11
16
  data: chatMessage(convoId: $convoId, before: $before, after: $after, limit: $limit) {
@@ -1 +1 @@
1
- {"version":3,"file":"chatMessage.query.js","sourceRoot":"","sources":["../../../src/chat/query/chatMessage.query.ts"],"names":[],"mappings":";;;;;;AAAA,4EAAsE;AACtE,8DAA8B;AAEjB,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;MAU7B,0CAAmB;CACxB,CAAC"}
1
+ {"version":3,"file":"chatMessage.query.js","sourceRoot":"","sources":["../../../src/chat/query/chatMessage.query.ts"],"names":[],"mappings":";;;;;;AAAA,4EAAsE;AACtE,8DAA8B;AAEjB,QAAA,WAAW,GAAG,IAAA,qBAAG,EAAA;;;;CAI7B,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;MAU7B,0CAAmB;CACxB,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const ON_CHAT_MESSAGE_SUBSCRIPTION: import("graphql").DocumentNode;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ON_CHAT_MESSAGE_SUBSCRIPTION = void 0;
7
+ const graphql_tag_1 = __importDefault(require("graphql-tag"));
8
+ exports.ON_CHAT_MESSAGE_SUBSCRIPTION = (0, graphql_tag_1.default) `
9
+ subscription OnChatMessage($convoId: String!, $time: DateTime) {
10
+ data: onChatMessage(convoId: $convoId, time: $time) {
11
+ convoId
12
+ typing
13
+ message
14
+ time
15
+ }
16
+ }
17
+ `;
18
+ //# sourceMappingURL=chatMessage.subscription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatMessage.subscription.js","sourceRoot":"","sources":["../../../src/chat/subscriptions/chatMessage.subscription.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA8B;AAEjB,QAAA,4BAA4B,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;CAS9C,CAAC"}
@@ -1 +1,2 @@
1
1
  export * from './chatConvo.subscription';
2
+ export * from './chatMessage.subscription';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./chatConvo.subscription"), exports);
18
+ __exportStar(require("./chatMessage.subscription"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/chat/subscriptions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/chat/subscriptions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,6DAA2C"}
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@roadmanjs/chat-client","version":"0.0.30","description":"@roadmanjs/chat fragments, query, mutations, subscriptions","main":"dist/index.js","types":"dist/index.d.ts","files":["docs/","dist/","register/","LICENSE"],"author":{"name":"Ceddy Muhoza","email":"ceddymuhoza@gmail.com","url":"https://ceddy.org"},"license":"MIT","private":false,"scripts":{},"lint-staged":{"*.{ts,tsx}":["npm run eslint"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"devDependencies":{},"peerDependencies":{},"dependencies":{"graphql-tag":"^2.12.5"}}
1
+ {"name":"@roadmanjs/chat-client","version":"0.0.31","description":"@roadmanjs/chat fragments, query, mutations, subscriptions","main":"dist/index.js","types":"dist/index.d.ts","files":["docs/","dist/","register/","LICENSE"],"author":{"name":"Ceddy Muhoza","email":"ceddymuhoza@gmail.com","url":"https://ceddy.org"},"license":"MIT","private":false,"scripts":{},"lint-staged":{"*.{ts,tsx}":["npm run eslint"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"devDependencies":{},"peerDependencies":{},"dependencies":{"graphql-tag":"^2.12.5"}}