ncloudchat 1.0.11 → 1.0.12
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/esm/mutations/channel.js
CHANGED
|
@@ -92,7 +92,7 @@ export var updateChannel = function (channelId, channel) { return __awaiter(void
|
|
|
92
92
|
if (!channel.members)
|
|
93
93
|
channel.members = [];
|
|
94
94
|
console.log(channel);
|
|
95
|
-
query = "\n mutation (\n $projectId: String!, \n $name: String!, \n $translation: Boolean,\n $linkUrl: String,\n $imageUrl: String,\n $id: ID!,\n ) {\n updateChannel(\n input: { \n projectId: $projectId, \n name: $name, \n id: $id,\n translation:$translation,\n linkUrl:$linkUrl,\n imageUrl:$imageUrl\n }\n ) {\n channel {\n id\n project_id\n name\n user_id\n unique_id\n type\n translation\n members\n push\n link_url\n image_url \n created_at\n updated_at\n }\n }\n } \n ";
|
|
95
|
+
query = "\n mutation (\n $projectId: String!, \n $name: String!, \n $translation: Boolean,\n $linkUrl: String,\n $imageUrl: String,\n $id: ID!,\n ) {\n updateChannel(\n input: { \n projectId: $projectId, \n name: $name, \n id: $id,\n translation:$translation,\n linkUrl:$linkUrl,\n imageUrl:$imageUrl\n }\n ) {\n channel {\n id\n project_id\n name\n user_id { \n id\n name\n nickname\n profile\n device_type\n language\n }\n unique_id\n type\n translation\n members\n push\n link_url\n image_url \n created_at\n updated_at\n }\n }\n } \n ";
|
|
96
96
|
return [4 /*yield*/, fetch(endpoint, {
|
|
97
97
|
method: 'POST',
|
|
98
98
|
headers: {
|
|
@@ -132,7 +132,7 @@ export var deleteChannel = function (channelId) { return __awaiter(void 0, void
|
|
|
132
132
|
token = CoreManager.get("TOKEN");
|
|
133
133
|
projectId = CoreManager.get("PROJECT_ID");
|
|
134
134
|
endpoint = CoreManager.get('SERVER_URL') + '/graphql';
|
|
135
|
-
query = "\n mutation (\n $projectId: String!, \n $id: ID!\n ) {\n deleteChannel(\n input: { \n projectId: $projectId, \n id: $id,\n }\n ) {\n channel {\n id\n project_id\n name\n user_id\n unique_id\n type\n translation\n members\n push\n link_url\n image_url \n created_at\n updated_at\n }\n }\n } \n ";
|
|
135
|
+
query = "\n mutation (\n $projectId: String!, \n $id: ID!\n ) {\n deleteChannel(\n input: { \n projectId: $projectId, \n id: $id,\n }\n ) {\n channel {\n id\n project_id\n name\n user_id { \n id\n name\n nickname\n profile\n device_type\n language\n }\n unique_id\n type\n translation\n members\n push\n link_url\n image_url \n created_at\n updated_at\n }\n }\n } \n ";
|
|
136
136
|
return [4 /*yield*/, fetch(endpoint, {
|
|
137
137
|
method: 'POST',
|
|
138
138
|
headers: {
|
|
@@ -169,7 +169,7 @@ export var addChannelMembers = function (channelId, memberIds, options) { return
|
|
|
169
169
|
token = CoreManager.get("TOKEN");
|
|
170
170
|
projectId = CoreManager.get("PROJECT_ID");
|
|
171
171
|
endpoint = CoreManager.get('SERVER_URL') + '/graphql';
|
|
172
|
-
query = "\n mutation ($projectId: String!, $channelId: String!, $memberIds: [String]!) {\n addChannelMembers(input: {projectId: $projectId, channelId: $channelId, memberIds:$memberIds }) {\n channel {\n id\n project_id\n name\n user_id\n unique_id\n type\n translation\n members\n push\n link_url\n image_url \n created_at\n updated_at\n }\n }\n }\n ";
|
|
172
|
+
query = "\n mutation ($projectId: String!, $channelId: String!, $memberIds: [String]!) {\n addChannelMembers(input: {projectId: $projectId, channelId: $channelId, memberIds:$memberIds }) {\n channel {\n id\n project_id\n name\n user_id { \n id\n name\n nickname\n profile\n device_type\n language\n }\n unique_id\n type\n translation\n members\n push\n link_url\n image_url \n created_at\n updated_at\n }\n }\n }\n ";
|
|
173
173
|
return [4 /*yield*/, fetch(endpoint, {
|
|
174
174
|
method: 'POST',
|
|
175
175
|
headers: {
|
|
@@ -208,7 +208,7 @@ export var removeChannelMembers = function (channelId, memberIds, options) { ret
|
|
|
208
208
|
token = CoreManager.get("TOKEN");
|
|
209
209
|
projectId = CoreManager.get("PROJECT_ID");
|
|
210
210
|
endpoint = CoreManager.get('SERVER_URL') + '/graphql';
|
|
211
|
-
query = "\n mutation ($projectId: String!, $channelId: String!, $memberIds: [String]!) {\n removeChannelMembers(input: {projectId: $projectId, channelId: $channelId, memberIds:$memberIds }) {\n channel {\n id\n project_id\n name\n user_id\n unique_id\n type\n translation\n members\n push\n link_url\n image_url \n created_at\n updated_at\n }\n }\n }\n ";
|
|
211
|
+
query = "\n mutation ($projectId: String!, $channelId: String!, $memberIds: [String]!) {\n removeChannelMembers(input: {projectId: $projectId, channelId: $channelId, memberIds:$memberIds }) {\n channel {\n id\n project_id\n name\n user_id { \n id\n name\n nickname\n profile\n device_type\n language\n }\n unique_id\n type\n translation\n members\n push\n link_url\n image_url \n created_at\n updated_at\n }\n }\n }\n ";
|
|
212
212
|
return [4 /*yield*/, fetch(endpoint, {
|
|
213
213
|
method: 'POST',
|
|
214
214
|
headers: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.js","sourceRoot":"","sources":["../../src/mutations/channel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAIzC,MAAM,CAAC,IAAM,aAAa,GAAG,UAAO,OAAqB;;;;;gBAC/C,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;gBACjC,SAAS,GAAG,WAAW,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;gBAC1C,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,UAAU,CAAC;gBAC5D,IAAG,CAAC,OAAO,CAAC,OAAO;oBACf,OAAO,CAAC,OAAO,GAAG,EAAE,CAAC;gBACnB,KAAK,GAAG,gsDAwEb,CAAC;gBAEK,qBAAM,KAAK,CACd,QAAQ,EAAE;wBACV,MAAM,EAAE,MAAM;wBACd,OAAO,EAAE;4BACL,eAAe,EAAG,SAAS,GAAG,KAAK;4BACnC,cAAc,EAAG,SAAS;4BAC1B,c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@ -230,7 +230,7 @@ var updateChannel = function updateChannel(channelId, channel) {
|
|
|
230
230
|
endpoint = _CoreManager["default"].get('SERVER_URL') + '/graphql';
|
|
231
231
|
if (!channel.members) channel.members = [];
|
|
232
232
|
console.log(channel);
|
|
233
|
-
query = "\n mutation (\n $projectId: String!, \n $name: String!, \n $translation: Boolean,\n $linkUrl: String,\n $imageUrl: String,\n $id: ID!,\n ) {\n updateChannel(\n input: { \n projectId: $projectId, \n name: $name, \n id: $id,\n translation:$translation,\n linkUrl:$linkUrl,\n imageUrl:$imageUrl\n }\n ) {\n channel {\n id\n project_id\n name\n user_id\n unique_id\n type\n translation\n members\n push\n link_url\n image_url \n created_at\n updated_at\n }\n }\n } \n ";
|
|
233
|
+
query = "\n mutation (\n $projectId: String!, \n $name: String!, \n $translation: Boolean,\n $linkUrl: String,\n $imageUrl: String,\n $id: ID!,\n ) {\n updateChannel(\n input: { \n projectId: $projectId, \n name: $name, \n id: $id,\n translation:$translation,\n linkUrl:$linkUrl,\n imageUrl:$imageUrl\n }\n ) {\n channel {\n id\n project_id\n name\n user_id { \n id\n name\n nickname\n profile\n device_type\n language\n }\n unique_id\n type\n translation\n members\n push\n link_url\n image_url \n created_at\n updated_at\n }\n }\n } \n ";
|
|
234
234
|
return [4
|
|
235
235
|
/*yield*/
|
|
236
236
|
, fetch(endpoint, {
|
|
@@ -279,7 +279,7 @@ var deleteChannel = function deleteChannel(channelId) {
|
|
|
279
279
|
token = _CoreManager["default"].get("TOKEN");
|
|
280
280
|
projectId = _CoreManager["default"].get("PROJECT_ID");
|
|
281
281
|
endpoint = _CoreManager["default"].get('SERVER_URL') + '/graphql';
|
|
282
|
-
query = "\n mutation (\n $projectId: String!, \n $id: ID!\n ) {\n deleteChannel(\n input: { \n projectId: $projectId, \n id: $id,\n }\n ) {\n channel {\n id\n project_id\n name\n user_id\n unique_id\n type\n translation\n members\n push\n link_url\n image_url \n created_at\n updated_at\n }\n }\n } \n ";
|
|
282
|
+
query = "\n mutation (\n $projectId: String!, \n $id: ID!\n ) {\n deleteChannel(\n input: { \n projectId: $projectId, \n id: $id,\n }\n ) {\n channel {\n id\n project_id\n name\n user_id { \n id\n name\n nickname\n profile\n device_type\n language\n }\n unique_id\n type\n translation\n members\n push\n link_url\n image_url \n created_at\n updated_at\n }\n }\n } \n ";
|
|
283
283
|
return [4
|
|
284
284
|
/*yield*/
|
|
285
285
|
, fetch(endpoint, {
|
|
@@ -325,7 +325,7 @@ var addChannelMembers = function addChannelMembers(channelId, memberIds, options
|
|
|
325
325
|
token = _CoreManager["default"].get("TOKEN");
|
|
326
326
|
projectId = _CoreManager["default"].get("PROJECT_ID");
|
|
327
327
|
endpoint = _CoreManager["default"].get('SERVER_URL') + '/graphql';
|
|
328
|
-
query = "\n mutation ($projectId: String!, $channelId: String!, $memberIds: [String]!) {\n addChannelMembers(input: {projectId: $projectId, channelId: $channelId, memberIds:$memberIds }) {\n channel {\n id\n project_id\n name\n user_id\n unique_id\n type\n translation\n members\n push\n link_url\n image_url \n created_at\n updated_at\n }\n }\n }\n ";
|
|
328
|
+
query = "\n mutation ($projectId: String!, $channelId: String!, $memberIds: [String]!) {\n addChannelMembers(input: {projectId: $projectId, channelId: $channelId, memberIds:$memberIds }) {\n channel {\n id\n project_id\n name\n user_id { \n id\n name\n nickname\n profile\n device_type\n language\n }\n unique_id\n type\n translation\n members\n push\n link_url\n image_url \n created_at\n updated_at\n }\n }\n }\n ";
|
|
329
329
|
return [4
|
|
330
330
|
/*yield*/
|
|
331
331
|
, fetch(endpoint, {
|
|
@@ -373,7 +373,7 @@ var removeChannelMembers = function removeChannelMembers(channelId, memberIds, o
|
|
|
373
373
|
token = _CoreManager["default"].get("TOKEN");
|
|
374
374
|
projectId = _CoreManager["default"].get("PROJECT_ID");
|
|
375
375
|
endpoint = _CoreManager["default"].get('SERVER_URL') + '/graphql';
|
|
376
|
-
query = "\n mutation ($projectId: String!, $channelId: String!, $memberIds: [String]!) {\n removeChannelMembers(input: {projectId: $projectId, channelId: $channelId, memberIds:$memberIds }) {\n channel {\n id\n project_id\n name\n user_id\n unique_id\n type\n translation\n members\n push\n link_url\n image_url \n created_at\n updated_at\n }\n }\n }\n ";
|
|
376
|
+
query = "\n mutation ($projectId: String!, $channelId: String!, $memberIds: [String]!) {\n removeChannelMembers(input: {projectId: $projectId, channelId: $channelId, memberIds:$memberIds }) {\n channel {\n id\n project_id\n name\n user_id { \n id\n name\n nickname\n profile\n device_type\n language\n }\n unique_id\n type\n translation\n members\n push\n link_url\n image_url \n created_at\n updated_at\n }\n }\n }\n ";
|
|
377
377
|
return [4
|
|
378
378
|
/*yield*/
|
|
379
379
|
, fetch(endpoint, {
|