ncloudchat 0.0.22-beta → 0.0.23-beta
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
|
@@ -45,7 +45,7 @@ export var createChannel = function (channel) { return __awaiter(void 0, void 0,
|
|
|
45
45
|
endpoint = CoreManager.get('SERVER_URL') + '/graphql';
|
|
46
46
|
if (!channel.members)
|
|
47
47
|
channel.members = [];
|
|
48
|
-
query = "\n mutation (\n $projectId: String!, \n $name: String!, \n $type: String!,\n $uniqueId: String,\n $translation: Boolean,\n $push: Boolean,\n $linkUrl: String,\n $imageUrl: String,\n $id: String,\n $members: [String]\n ) {\n createChannel(\n input: { \n projectId: $projectId, \n name: $name, \n type: $type,\n id: $id,\n members: $members,\n uniqueId: $uniqueId,\n translation:$translation,\n push:$push,\n linkUrl:$linkUrl,\n imageUrl:$imageUrl\n }\n ) {\n channel {\n id\n project_id\n name\n user_id\n unique_id\n
|
|
48
|
+
query = "\n mutation (\n $projectId: String!, \n $name: String!, \n $type: String!,\n $uniqueId: String,\n $translation: Boolean,\n $push: Boolean,\n $linkUrl: String,\n $imageUrl: String,\n $id: String,\n $members: [String]\n ) {\n createChannel(\n input: { \n projectId: $projectId, \n name: $name, \n type: $type,\n id: $id,\n members: $members,\n uniqueId: $uniqueId,\n translation:$translation,\n push:$push,\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 ";
|
|
49
49
|
return [4 /*yield*/, fetch(endpoint, {
|
|
50
50
|
method: 'POST',
|
|
51
51
|
headers: {
|
|
@@ -90,7 +90,7 @@ export var updateChannel = function (channelId, channel) { return __awaiter(void
|
|
|
90
90
|
if (!channel.members)
|
|
91
91
|
channel.members = [];
|
|
92
92
|
console.log(channel);
|
|
93
|
-
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
|
|
93
|
+
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 ";
|
|
94
94
|
return [4 /*yield*/, fetch(endpoint, {
|
|
95
95
|
method: 'POST',
|
|
96
96
|
headers: {
|
|
@@ -128,7 +128,7 @@ export var deleteChannel = function (channelId) { return __awaiter(void 0, void
|
|
|
128
128
|
token = CoreManager.get("TOKEN");
|
|
129
129
|
projectId = CoreManager.get("PROJECT_ID");
|
|
130
130
|
endpoint = CoreManager.get('SERVER_URL') + '/graphql';
|
|
131
|
-
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
|
|
131
|
+
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 ";
|
|
132
132
|
return [4 /*yield*/, fetch(endpoint, {
|
|
133
133
|
method: 'POST',
|
|
134
134
|
headers: {
|
|
@@ -163,7 +163,7 @@ export var createInviteMember = function (channelId, memberIds) { return __await
|
|
|
163
163
|
token = CoreManager.get("TOKEN");
|
|
164
164
|
projectId = CoreManager.get("PROJECT_ID");
|
|
165
165
|
endpoint = CoreManager.get('SERVER_URL') + '/graphql';
|
|
166
|
-
query = "\n mutation ($projectId: String!, $channelId: String!, $memberIds: [String]!) {\n createInviteMember(input: {projectId: $projectId, channelId: $channelId, memberIds:$memberIds }) {\n channel {\n id\n project_id\n name\n user_id\n unique_id\n
|
|
166
|
+
query = "\n mutation ($projectId: String!, $channelId: String!, $memberIds: [String]!) {\n createInviteMember(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 ";
|
|
167
167
|
return [4 /*yield*/, fetch(endpoint, {
|
|
168
168
|
method: 'POST',
|
|
169
169
|
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,
|
|
1
|
+
{"version":3,"file":"channel.js","sourceRoot":"","sources":["../../src/mutations/channel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAIzC,MAAM,CAAC,IAAM,a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G,WAAW,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,UAAU,CAAC;gBACtD,KAAK,GAAG,6kBAoBb,CAAC;gBAEK,qBAAM,KAAK,CACd,QAAQ,EAAE;wBACV,MAAM,EAAE,MAAM;wBACd,OAAO,EAAE;4BACL,eAAe,EAAG,SAAS,GAAG,KAAK;4BACnC,cAAc,EAAE,kBAAkB;4BAClC,QAAQ,EAAE,kBAAkB;yBAC/B;wBACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;4BACjB,KAAK,OAAA;4BACL,SAAS,EAAE;gCACP,SAAS,WAAA;gCACT,SAAS,WAAA;gCACT,SAAS,WAAA;6BACX;yBACH,CAAC;qBACP,CAAC;yBACD,IAAI,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,IAAI,EAAE,EAAV,CAAU,CAAC;yBACvB,IAAI,CAAC,UAAA,IAAI;wBACN,IAAG,IAAI,CAAC,MAAM,EAAE;4BACZ,MAAM,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;yBACxB;wBACD,OAAO,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC;oBAChD,CAAC,CAAC,EAAA;oBAvBF,sBAAO,SAuBL,EAAC;;;KACN,CAAC"}
|
package/esm/queries/channel.js
CHANGED
|
@@ -48,7 +48,7 @@ export var getChannel = function (id) { return __awaiter(void 0, void 0, void 0,
|
|
|
48
48
|
if (!projectId)
|
|
49
49
|
return [2 /*return*/, null];
|
|
50
50
|
endpoint = CoreManager.get('SERVER_URL') + '/graphql';
|
|
51
|
-
query = "\n query channel ($projectId: String!, $id: String!) {\n channel(projectId: $projectId, id:$id) {\n id\n project_id\n name\n user_id\n unique_id\n
|
|
51
|
+
query = "\n query channel ($projectId: String!, $id: String!) {\n channel(projectId: $projectId, id:$id) {\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 ";
|
|
52
52
|
return [4 /*yield*/, fetch(endpoint, {
|
|
53
53
|
method: 'POST',
|
|
54
54
|
headers: {
|
|
@@ -88,7 +88,7 @@ export var getChannels = function (filter, sort, option) { return __awaiter(void
|
|
|
88
88
|
if (!projectId)
|
|
89
89
|
return [2 /*return*/, null];
|
|
90
90
|
endpoint = CoreManager.get('SERVER_URL') + '/graphql';
|
|
91
|
-
query = "\n query channels ($projectId: String!, $filter: String!, $sort: String, $option:String) {\n channels(projectId: $projectId, filter:$filter, sort:$sort, option:$option) {\n totalCount\n edges {\n node {\n id\n project_id\n name\n user_id\n unique_id\n
|
|
91
|
+
query = "\n query channels ($projectId: String!, $filter: String!, $sort: String, $option:String) {\n channels(projectId: $projectId, filter:$filter, sort:$sort, option:$option) {\n totalCount\n edges {\n node {\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 }\n ";
|
|
92
92
|
return [4 /*yield*/, fetch(endpoint, {
|
|
93
93
|
method: 'POST',
|
|
94
94
|
headers: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.js","sourceRoot":"","sources":["../../src/queries/channel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,MAAM,CAAC,IAAM,UAAU,GAAG,UAAO,EAAU;;;;;gBACnC,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;gBACvC,IAAI,CAAC,KAAK;oBAAE,sBAAO,IAAI,EAAC;gBAClB,SAAS,GAAG,WAAW,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;gBAChD,IAAI,CAAC,SAAS;oBAAE,sBAAO,IAAI,EAAC;gBACtB,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,UAAU,CAAC;gBACtD,KAAK,GAA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ACN,CAAC"}
|
package/lib/mutations/channel.js
CHANGED
|
@@ -175,7 +175,7 @@ var createChannel = function createChannel(channel) {
|
|
|
175
175
|
projectId = _CoreManager["default"].get("PROJECT_ID");
|
|
176
176
|
endpoint = _CoreManager["default"].get('SERVER_URL') + '/graphql';
|
|
177
177
|
if (!channel.members) channel.members = [];
|
|
178
|
-
query = "\n mutation (\n $projectId: String!, \n $name: String!, \n $type: String!,\n $uniqueId: String,\n $translation: Boolean,\n $push: Boolean,\n $linkUrl: String,\n $imageUrl: String,\n $id: String,\n $members: [String]\n ) {\n createChannel(\n input: { \n projectId: $projectId, \n name: $name, \n type: $type,\n id: $id,\n members: $members,\n uniqueId: $uniqueId,\n translation:$translation,\n push:$push,\n linkUrl:$linkUrl,\n imageUrl:$imageUrl\n }\n ) {\n channel {\n id\n project_id\n name\n user_id\n unique_id\n
|
|
178
|
+
query = "\n mutation (\n $projectId: String!, \n $name: String!, \n $type: String!,\n $uniqueId: String,\n $translation: Boolean,\n $push: Boolean,\n $linkUrl: String,\n $imageUrl: String,\n $id: String,\n $members: [String]\n ) {\n createChannel(\n input: { \n projectId: $projectId, \n name: $name, \n type: $type,\n id: $id,\n members: $members,\n uniqueId: $uniqueId,\n translation:$translation,\n push:$push,\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 ";
|
|
179
179
|
return [4
|
|
180
180
|
/*yield*/
|
|
181
181
|
, fetch(endpoint, {
|
|
@@ -231,7 +231,7 @@ var updateChannel = function updateChannel(channelId, channel) {
|
|
|
231
231
|
endpoint = _CoreManager["default"].get('SERVER_URL') + '/graphql';
|
|
232
232
|
if (!channel.members) channel.members = [];
|
|
233
233
|
console.log(channel);
|
|
234
|
-
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
|
|
234
|
+
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 ";
|
|
235
235
|
return [4
|
|
236
236
|
/*yield*/
|
|
237
237
|
, fetch(endpoint, {
|
|
@@ -281,7 +281,7 @@ var deleteChannel = function deleteChannel(channelId) {
|
|
|
281
281
|
token = _CoreManager["default"].get("TOKEN");
|
|
282
282
|
projectId = _CoreManager["default"].get("PROJECT_ID");
|
|
283
283
|
endpoint = _CoreManager["default"].get('SERVER_URL') + '/graphql';
|
|
284
|
-
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
|
|
284
|
+
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 ";
|
|
285
285
|
return [4
|
|
286
286
|
/*yield*/
|
|
287
287
|
, fetch(endpoint, {
|
|
@@ -328,7 +328,7 @@ var createInviteMember = function createInviteMember(channelId, memberIds) {
|
|
|
328
328
|
token = _CoreManager["default"].get("TOKEN");
|
|
329
329
|
projectId = _CoreManager["default"].get("PROJECT_ID");
|
|
330
330
|
endpoint = _CoreManager["default"].get('SERVER_URL') + '/graphql';
|
|
331
|
-
query = "\n mutation ($projectId: String!, $channelId: String!, $memberIds: [String]!) {\n createInviteMember(input: {projectId: $projectId, channelId: $channelId, memberIds:$memberIds }) {\n channel {\n id\n project_id\n name\n user_id\n unique_id\n
|
|
331
|
+
query = "\n mutation ($projectId: String!, $channelId: String!, $memberIds: [String]!) {\n createInviteMember(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 ";
|
|
332
332
|
return [4
|
|
333
333
|
/*yield*/
|
|
334
334
|
, fetch(endpoint, {
|
package/lib/queries/channel.js
CHANGED
|
@@ -180,7 +180,7 @@ var getChannel = function getChannel(id) {
|
|
|
180
180
|
/*return*/
|
|
181
181
|
, null];
|
|
182
182
|
endpoint = _CoreManager["default"].get('SERVER_URL') + '/graphql';
|
|
183
|
-
query = "\n query channel ($projectId: String!, $id: String!) {\n channel(projectId: $projectId, id:$id) {\n id\n project_id\n name\n user_id\n unique_id\n
|
|
183
|
+
query = "\n query channel ($projectId: String!, $id: String!) {\n channel(projectId: $projectId, id:$id) {\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 ";
|
|
184
184
|
return [4
|
|
185
185
|
/*yield*/
|
|
186
186
|
, fetch(endpoint, {
|
|
@@ -234,7 +234,7 @@ var getChannels = function getChannels(filter, sort, option) {
|
|
|
234
234
|
/*return*/
|
|
235
235
|
, null];
|
|
236
236
|
endpoint = _CoreManager["default"].get('SERVER_URL') + '/graphql';
|
|
237
|
-
query = "\n query channels ($projectId: String!, $filter: String!, $sort: String, $option:String) {\n channels(projectId: $projectId, filter:$filter, sort:$sort, option:$option) {\n totalCount\n edges {\n node {\n id\n project_id\n name\n user_id\n unique_id\n
|
|
237
|
+
query = "\n query channels ($projectId: String!, $filter: String!, $sort: String, $option:String) {\n channels(projectId: $projectId, filter:$filter, sort:$sort, option:$option) {\n totalCount\n edges {\n node {\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 }\n ";
|
|
238
238
|
return [4
|
|
239
239
|
/*yield*/
|
|
240
240
|
, fetch(endpoint, {
|