-
Notifications
You must be signed in to change notification settings - Fork 11k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create contact endpoint (#32693)
- Loading branch information
1 parent
27f9249
commit 927710d
Showing
15 changed files
with
555 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"@rocket.chat/meteor": minor | ||
"@rocket.chat/core-typings": minor | ||
"@rocket.chat/model-typings": minor | ||
"@rocket.chat/models": minor | ||
"@rocket.chat/rest-typings": minor | ||
--- | ||
|
||
Introduced "create contacts" endpoint to omnichannel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { registerModel } from '@rocket.chat/models'; | ||
|
||
import { db } from '../database/utils'; | ||
import { LivechatContactsRaw } from './raw/LivechatContacts'; | ||
|
||
registerModel('ILivechatContactsModel', new LivechatContactsRaw(db)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { ILivechatContact, RocketChatRecordDeleted } from '@rocket.chat/core-typings'; | ||
import type { ILivechatContactsModel } from '@rocket.chat/model-typings'; | ||
import type { Collection, Db } from 'mongodb'; | ||
|
||
import { BaseRaw } from './BaseRaw'; | ||
|
||
export class LivechatContactsRaw extends BaseRaw<ILivechatContact> implements ILivechatContactsModel { | ||
constructor(db: Db, trash?: Collection<RocketChatRecordDeleted<ILivechatContact>>) { | ||
super(db, 'livechat_contact', trash); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.