ncloudchat 1.0.59 → 1.0.60

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.
@@ -8,11 +8,11 @@
8
8
  exports.__esModule = true;
9
9
  exports.removeChannelMembersQuery = exports.addChannelMembersQuery = exports.deleteChannelQuery = exports.updateChannelQuery = exports.createChannelQuery = exports.getChannelsQuery = exports.getChannelQuery = void 0;
10
10
  var channelLastMessageFields = "last_message {\n message_id\n sort_id\n project_id\n channel_id\n message_type\n mentions\n mentions_everyone\n has \n sender {\n id\n name\n profile\n }\n admin {\n id\n name\n profile\n }\n content\n created_at\n }";
11
- var channelFields = "id\n project_id\n name\n user_id\n user { \n id\n name\n profile\n device_type\n language\n }\n unique_id\n type\n translation\n integration_id\n members\n push\n link_url\n image_url \n customField \n integration_id \n created_at\n updated_at\n ";
11
+ var channelFields = "id\n project_id\n name\n user_id\n user { \n id\n name\n profile\n device_type\n language\n }\n unique_id\n type\n translation\n integration_id\n members\n push\n mutes\n disabled\n link_url\n image_url\n customField\n integration_id\n created_at\n updated_at\n ";
12
12
  exports.getChannelQuery = "query channel ($projectId: String!, $id: String!) {\n channel (projectId: $projectId, id:$id) {\n ".concat(channelFields, "\n ").concat(channelLastMessageFields, "\n }\n }\n");
13
13
  exports.getChannelsQuery = "query channels (\n $projectId: String!, \n $filter: String!, \n $sort: String, \n $option:String\n ) {\n channels (\n projectId: $projectId, \n filter:$filter, \n sort:$sort, \n option:$option\n ) {\n totalCount\n edges {\n node {\n ".concat(channelFields, "\n ").concat(channelLastMessageFields, "\n }\n }\n }\n }\n");
14
- exports.createChannelQuery = "mutation (\n $id: String,\n $projectId: String!, \n $name: String!, \n $type: String!,\n $uniqueId: String,\n $integrationId: String,\n $translation: Boolean,\n $push: Boolean,\n $mutes: Boolean,\n $linkUrl: String,\n $imageUrl: String,\n $customField: String,\n $members: [String]\n ) {\n createChannel(\n input: { \n id: $id,\n projectId: $projectId, \n name: $name, \n type: $type,\n uniqueId: $uniqueId,\n translation:$translation,\n push:$push,\n mutes: $mutes,\n customField: $customField,\n linkUrl:$linkUrl,\n imageUrl:$imageUrl\n integrationId:$integrationId,\n members: $members,\n }\n ) {\n channel {\n ".concat(channelFields, "\n ").concat(channelLastMessageFields, "\n }\n }\n }\n");
15
- exports.updateChannelQuery = "mutation updateChannel (\n $projectId: String!, \n $name: String, \n $type: String,\n $uniqueId: String,\n $translation: Boolean,\n $integrationId: String,\n $push: Boolean,\n $linkUrl: String,\n $imageUrl: String,\n $customField: String,\n $id: ID!,\n $members: [String]\n ) {\n updateChannel(\n input: { \n projectId: $projectId, \n name: $name, \n type: $type,\n id: $id,\n members: $members,\n integrationId: $integrationId,\n uniqueId: $uniqueId,\n translation:$translation,\n push:$push,\n customField:$customField,\n linkUrl:$linkUrl,\n imageUrl:$imageUrl\n }\n ) {\n channel {\n ".concat(channelFields, "\n ").concat(channelLastMessageFields, "\n }\n }\n }\n");
14
+ exports.createChannelQuery = "mutation (\n $id: String,\n $projectId: String!, \n $name: String!, \n $type: String!,\n $uniqueId: String,\n $integrationId: String,\n $translation: Boolean,\n $push: Boolean,\n $mutes: Boolean,\n $disabled: Boolean,\n $linkUrl: String,\n $imageUrl: String,\n $customField: String,\n $members: [String]\n ) {\n createChannel(\n input: {\n id: $id,\n projectId: $projectId,\n name: $name,\n type: $type,\n uniqueId: $uniqueId,\n translation:$translation,\n push:$push,\n mutes: $mutes,\n disabled: $disabled,\n customField: $customField,\n linkUrl:$linkUrl,\n imageUrl:$imageUrl\n integrationId:$integrationId,\n members: $members,\n }\n ) {\n channel {\n ".concat(channelFields, "\n ").concat(channelLastMessageFields, "\n }\n }\n }\n");
15
+ exports.updateChannelQuery = "mutation updateChannel (\n $projectId: String!,\n $name: String,\n $type: String,\n $uniqueId: String,\n $translation: Boolean,\n $integrationId: String,\n $push: Boolean,\n $mutes: Boolean,\n $disabled: Boolean,\n $linkUrl: String,\n $imageUrl: String,\n $customField: String,\n $id: ID!,\n $members: [String]\n ) {\n updateChannel(\n input: {\n projectId: $projectId,\n name: $name,\n type: $type,\n id: $id,\n members: $members,\n integrationId: $integrationId,\n uniqueId: $uniqueId,\n translation:$translation,\n push:$push,\n mutes:$mutes,\n disabled:$disabled,\n customField:$customField,\n linkUrl:$linkUrl,\n imageUrl:$imageUrl\n }\n ) {\n channel {\n ".concat(channelFields, "\n ").concat(channelLastMessageFields, "\n }\n }\n }\n");
16
16
  exports.deleteChannelQuery = "mutation (\n $projectId: String!, \n $id: ID!\n ) {\n deleteChannel(\n input: { \n projectId: $projectId, \n id: $id,\n }\n ) {\n channel {\n ".concat(channelFields, "\n ").concat(channelLastMessageFields, "\n }\n }\n }\n");
17
17
  exports.addChannelMembersQuery = "mutation (\n $projectId: String!, \n $channelId: String!, \n $memberIds: [String]!\n ) {\n addChannelMembers(\n input: {\n projectId: $projectId, \n channelId: $channelId, \n memberIds:$memberIds \n }\n ) {\n channel {\n ".concat(channelFields, "\n }\n }\n }\n");
18
18
  exports.removeChannelMembersQuery = "mutation (\n $projectId: String!, \n $channelId: String!, \n $memberIds: [String]!\n ) {\n removeChannelMembers(\n input: {\n projectId: $projectId, \n channelId: $channelId, \n memberIds:$memberIds \n }\n ) {\n channel {\n ".concat(channelFields, "\n }\n }\n }\n");
@@ -1 +1 @@
1
- {"version":3,"file":"channel.js","sourceRoot":"","sources":["../../src/graphql/channel.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,IAAM,wBAAwB,GAC1B,wYAqBE,CAAC;AAEP,IAAM,aAAa,GACf,4aAuBC,CAAC;AAEO,QAAA,eAAe,GAC5B,8HAEc,aAAa,2BACb,wBAAwB,yBAGrC,CAAC;AAEW,QAAA,gBAAgB,GAC7B,oYAesB,aAAa,mCACb,wBAAwB,2DAK7C,CAAC;AAEW,QAAA,kBAAkB,GAC/B,+8BAiCkB,aAAa,+BACb,wBAAwB,wCAIzC,CAAC;AAEW,QAAA,kBAAkB,GAC/B,85BA+BkB,aAAa,+BACb,wBAAwB,wCAIzC,CAAC;AAEW,QAAA,kBAAkB,GAAG,qQAWhB,aAAa,+BACb,wBAAwB,wCAIzC,CAAC;AAEW,QAAA,sBAAsB,GAAG,0WAapB,aAAa,wCAI9B,CAAC;AAEW,QAAA,yBAAyB,GAAG,6WAavB,aAAa,wCAI9B,CAAC"}
1
+ {"version":3,"file":"channel.js","sourceRoot":"","sources":["../../src/graphql/channel.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,IAAM,wBAAwB,GAC1B,wYAqBE,CAAC;AAEP,IAAM,aAAa,GACf,ucAyBC,CAAC;AAEO,QAAA,eAAe,GAC5B,8HAEc,aAAa,2BACb,wBAAwB,yBAGrC,CAAC;AAEW,QAAA,gBAAgB,GAC7B,oYAesB,aAAa,mCACb,wBAAwB,2DAK7C,CAAC;AAEW,QAAA,kBAAkB,GAC/B,+gCAmCkB,aAAa,+BACb,wBAAwB,wCAIzC,CAAC;AAEW,QAAA,kBAAkB,GAC/B,ohCAmCkB,aAAa,+BACb,wBAAwB,wCAIzC,CAAC;AAEW,QAAA,kBAAkB,GAAG,qQAWhB,aAAa,+BACb,wBAAwB,wCAIzC,CAAC;AAEW,QAAA,sBAAsB,GAAG,0WAapB,aAAa,wCAI9B,CAAC;AAEW,QAAA,yBAAyB,GAAG,6WAavB,aAAa,wCAI9B,CAAC"}
@@ -105,7 +105,7 @@ var updateChannel = function (channelId, channel) { return __awaiter(void 0, voi
105
105
  case 0:
106
106
  if (!channel.members)
107
107
  channel.members = [];
108
- return [4 /*yield*/, (0, Network_1.fetchData)("updateChannel", channel_1.updateChannelQuery, __assign({ projectId: CoreManager_1["default"].get("PROJECT_ID") }, channel))];
108
+ return [4 /*yield*/, (0, Network_1.fetchData)("updateChannel", channel_1.updateChannelQuery, __assign(__assign({ projectId: CoreManager_1["default"].get("PROJECT_ID") }, channel), { id: channel.id || channelId }))];
109
109
  case 1: return [2 /*return*/, _a.sent()];
110
110
  }
111
111
  });
@@ -1 +1 @@
1
- {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