ncloudchat 1.0.43 → 1.0.45
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/ncloudchat.d.ts +43 -1
- package/ncloudchat.min.js +1 -1
- package/package.json +3 -3
package/ncloudchat.d.ts
CHANGED
|
@@ -490,6 +490,18 @@ declare module 'cloudchat/CloudChat' {
|
|
|
490
490
|
*/
|
|
491
491
|
updatePin(pinId: string, channelId: string, pin: PinInput): Promise<any>;
|
|
492
492
|
getServerUrl(): Promise<any>;
|
|
493
|
+
/**
|
|
494
|
+
* send integration.
|
|
495
|
+
*
|
|
496
|
+
* @async
|
|
497
|
+
* @function sendIntegration
|
|
498
|
+
* @param {string} channelId - An id of the channel.
|
|
499
|
+
* @param {string} integrationId - ID of the integration.
|
|
500
|
+
* @param {string} to - To of the integration.
|
|
501
|
+
* @param {string} message - Message of the integration.
|
|
502
|
+
* @returns {Promise<any>} The data of the updated pin.
|
|
503
|
+
*/
|
|
504
|
+
sendIntegration(channelId: string, integrationId: string, to: string, message: any): Promise<any>;
|
|
493
505
|
}
|
|
494
506
|
|
|
495
507
|
}
|
|
@@ -600,6 +612,7 @@ declare module 'cloudchat/Type' {
|
|
|
600
612
|
linkUrl: string;
|
|
601
613
|
customField: string;
|
|
602
614
|
imageUrl: string;
|
|
615
|
+
integrationId: string;
|
|
603
616
|
members: string[];
|
|
604
617
|
}
|
|
605
618
|
/**
|
|
@@ -687,6 +700,16 @@ declare module 'cloudchat/graphql/friend' {
|
|
|
687
700
|
export const removeFriendQuery: string;
|
|
688
701
|
export const getFriendshipsQuery: string;
|
|
689
702
|
|
|
703
|
+
}
|
|
704
|
+
declare module 'cloudchat/graphql/integration' {
|
|
705
|
+
/**
|
|
706
|
+
* Copyright (c) NBASE CORP. and its affiliates.
|
|
707
|
+
*
|
|
708
|
+
* This source code is licensed under the MIT license found in the
|
|
709
|
+
* LICENSE file in the root directory of this source tree.
|
|
710
|
+
*/
|
|
711
|
+
export const sendIntergrationQuery = "mutation sendIntegration (\n $projectId: String!,\n $channelId: String!, \n $integrationId: String!,\n $to: String,\n $message: String!\n ) {\n sendIntegration (\n input: { projectId: $projectId, \n channelId: $channelId, \n integrationId: $integrationId,\n to: $to,\n message:$message }\n ) {\n status\n message\n }\n }\n";
|
|
712
|
+
|
|
690
713
|
}
|
|
691
714
|
declare module 'cloudchat/graphql/invite' {
|
|
692
715
|
/**
|
|
@@ -705,7 +728,7 @@ declare module 'cloudchat/graphql/member' {
|
|
|
705
728
|
* This source code is licensed under the MIT license found in the
|
|
706
729
|
* LICENSE file in the root directory of this source tree.
|
|
707
730
|
*/
|
|
708
|
-
export const loginQuery = "mutation login(\n $projectId: String!\n $userId: String!\n $name: String\n $profile: String\n $customField: String\n ) {\n login(\n input: {\n projectId: $projectId\n userId: $userId\n name: $name\n profile: $profile\n customField: $customField\n }\n ) {\n token\n }\n }";
|
|
731
|
+
export const loginQuery = "mutation login(\n $projectId: String!\n $userId: String!\n $name: String\n $profile: String\n $token: String\n $customField: String\n ) {\n login(\n input: {\n projectId: $projectId\n userId: $userId\n name: $name\n token: $token\n profile: $profile\n customField: $customField\n }\n ) {\n token\n }\n }";
|
|
709
732
|
export const createMemberBlockQuery: string;
|
|
710
733
|
export const updateMemberQuery = "mutation updateMember(\n $id: String!\n $projectId: String!\n $name: String\n $profile: String\n $remoteip: String\n $memo: String\n $adid: String\n $device: String\n $deviceType: [String]\n $network: String\n $version: String\n $model: String\n $notications: NoticationInput\n )\n {\n updateMember(input: {id: $id, projectId: $projectId, profile: $profile, memo: $memo, name: $name, remoteip: $remoteip, adid: $adid, device: $device, deviceType: $deviceType, network: $network, version: $version, model: $model, notications: $notications}) {\n member {\n id\n project_id\n name\n profile\n country\n memo\n remoteip\n adid\n device\n network\n push\n version\n model\n logined_at\n created_at\n updated_at\n notications {\n token\n device\n os\n }\n }\n }\n}\n";
|
|
711
734
|
export const deleteMemberBlockQuery: string;
|
|
@@ -906,6 +929,25 @@ declare module 'cloudchat/mutations/index' {
|
|
|
906
929
|
export * from 'cloudchat/mutations/invite';
|
|
907
930
|
export * from 'cloudchat/mutations/subscription';
|
|
908
931
|
export * from 'cloudchat/mutations/pin';
|
|
932
|
+
export * from 'cloudchat/mutations/integration';
|
|
933
|
+
|
|
934
|
+
}
|
|
935
|
+
declare module 'cloudchat/mutations/integration' {
|
|
936
|
+
/**
|
|
937
|
+
* Copyright (c) NBASE CORP. and its affiliates.
|
|
938
|
+
*
|
|
939
|
+
* This source code is licensed under the MIT license found in the
|
|
940
|
+
* LICENSE file in the root directory of this source tree.
|
|
941
|
+
*/
|
|
942
|
+
/**
|
|
943
|
+
* Request a friendship to a user.
|
|
944
|
+
*
|
|
945
|
+
* @async
|
|
946
|
+
* @function requestFriend
|
|
947
|
+
* @param {string} friendId - An id of the friend to request.
|
|
948
|
+
* @returns {Promise<any>}
|
|
949
|
+
*/
|
|
950
|
+
export const sendIntegration: (channelId: string, integrationId: string, to: string, message: string) => Promise<any>;
|
|
909
951
|
|
|
910
952
|
}
|
|
911
953
|
declare module 'cloudchat/mutations/invite' {
|