@roadmanjs/chat-client 0.0.40 → 0.0.43

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
1
  export declare const ON_CHAT_CONVO_SUBSCRIPTION: import("graphql").DocumentNode;
2
+ export declare const ON_CONVOS_SUBSCRIPTION: import("graphql").DocumentNode;
@@ -3,11 +3,22 @@ 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.ON_CHAT_CONVO_SUBSCRIPTION = void 0;
6
+ exports.ON_CONVOS_SUBSCRIPTION = exports.ON_CHAT_CONVO_SUBSCRIPTION = void 0;
7
7
  const graphql_tag_1 = __importDefault(require("graphql-tag"));
8
8
  exports.ON_CHAT_CONVO_SUBSCRIPTION = (0, graphql_tag_1.default) `
9
9
  subscription onChatConvo($convoId: String!) {
10
10
  data: onChatConvo(convoId: $convoId)
11
11
  }
12
12
  `;
13
+ exports.ON_CONVOS_SUBSCRIPTION = (0, graphql_tag_1.default) `
14
+ subscription OnConvos($owner: String!, $time: DateTime) {
15
+ data: onConvos(owner: $owner, time: $time) {
16
+ convoId
17
+ typing
18
+ message
19
+ time
20
+ owner
21
+ }
22
+ }
23
+ `;
13
24
  //# sourceMappingURL=chatConvo.subscription.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chatConvo.subscription.js","sourceRoot":"","sources":["../../../src/chat/subscriptions/chatConvo.subscription.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA8B;AAEjB,QAAA,0BAA0B,GAAG,IAAA,qBAAG,EAAA;;;;CAI5C,CAAC"}
1
+ {"version":3,"file":"chatConvo.subscription.js","sourceRoot":"","sources":["../../../src/chat/subscriptions/chatConvo.subscription.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA8B;AAEjB,QAAA,0BAA0B,GAAG,IAAA,qBAAG,EAAA;;;;CAI5C,CAAC;AAEW,QAAA,sBAAsB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;CAUxC,CAAC"}
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ON_CHAT_MESSAGE_SUBSCRIPTION = void 0;
7
7
  const graphql_tag_1 = __importDefault(require("graphql-tag"));
8
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) {
9
+ subscription OnChatMessage($owner: String!, $convoId: String!, $time: DateTime) {
10
+ data: onChatMessage(owner: $owner, convoId: $convoId, time: $time) {
11
11
  convoId
12
12
  typing
13
13
  message
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@roadmanjs/chat-client","version":"0.0.40","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.43","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"}}