snapshot of https://github.com/zulip/zulip.git @ 48c69911c7dd4e03b20552eb3bd77ad8151c1357 (2026-09-15)
Some checks failed
Code scanning / CodeQL (push) Failing after 15s
Zulip production suite / Ubuntu 22.04 production build (push) Failing after 26s
Zulip production suite / Debian 12 production install with custom db name and user (push) Has been skipped
Zulip production suite / Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga (push) Has been skipped
Zulip production suite / Ubuntu 24.04 production install (push) Has been skipped
Zulip production suite / Ubuntu 26.04 production install (push) Has been skipped
Zulip production suite / Debian 13 production install (push) Has been skipped
Zulip production suite / 7.0 Version Upgrade (push) Has been skipped
Zulip production suite / 8.0 Version Upgrade (push) Has been skipped
Zulip production suite / 6.0 Version Upgrade (push) Has been skipped
Zulip production suite / 10.0 Version Upgrade (push) Has been skipped
Zulip production suite / 9.0 Version Upgrade (push) Has been skipped
Zulip production suite / 12.0 Version Upgrade (push) Has been skipped
Zulip production suite / 11.0 Version Upgrade (push) Has been skipped
GitHub Actions Security Analysis with zizmor / zizmor (push) Failing after 3s
Zulip CI / Debian 12 (Python 3.11, backend + documentation) (push) Failing after 26s
Zulip CI / Ubuntu 22.04 (Python 3.10, backend + frontend) (push) Failing after 3s
Zulip CI / Ubuntu 24.04 (Python 3.12, backend) (push) Failing after 25s
Zulip CI / Ubuntu 26.04 (Python 3.14, backend) (push) Failing after 25s
Zulip CI / Debian 13 (Python 3.13, backend) (push) Failing after 28s
Zulip production suite / Required jobs (push) Has been cancelled
Zulip CI / Required jobs (push) Has been cancelled
API Documentation Update Check / check-feature-level-updated (push) Has been cancelled
API Documentation Update Check / notify-if-api-docs-changed (push) Has been cancelled
Some checks failed
Code scanning / CodeQL (push) Failing after 15s
Zulip production suite / Ubuntu 22.04 production build (push) Failing after 26s
Zulip production suite / Debian 12 production install with custom db name and user (push) Has been skipped
Zulip production suite / Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga (push) Has been skipped
Zulip production suite / Ubuntu 24.04 production install (push) Has been skipped
Zulip production suite / Ubuntu 26.04 production install (push) Has been skipped
Zulip production suite / Debian 13 production install (push) Has been skipped
Zulip production suite / 7.0 Version Upgrade (push) Has been skipped
Zulip production suite / 8.0 Version Upgrade (push) Has been skipped
Zulip production suite / 6.0 Version Upgrade (push) Has been skipped
Zulip production suite / 10.0 Version Upgrade (push) Has been skipped
Zulip production suite / 9.0 Version Upgrade (push) Has been skipped
Zulip production suite / 12.0 Version Upgrade (push) Has been skipped
Zulip production suite / 11.0 Version Upgrade (push) Has been skipped
GitHub Actions Security Analysis with zizmor / zizmor (push) Failing after 3s
Zulip CI / Debian 12 (Python 3.11, backend + documentation) (push) Failing after 26s
Zulip CI / Ubuntu 22.04 (Python 3.10, backend + frontend) (push) Failing after 3s
Zulip CI / Ubuntu 24.04 (Python 3.12, backend) (push) Failing after 25s
Zulip CI / Ubuntu 26.04 (Python 3.14, backend) (push) Failing after 25s
Zulip CI / Debian 13 (Python 3.13, backend) (push) Failing after 28s
Zulip production suite / Required jobs (push) Has been cancelled
Zulip CI / Required jobs (push) Has been cancelled
API Documentation Update Check / check-feature-level-updated (push) Has been cancelled
API Documentation Update Check / notify-if-api-docs-changed (push) Has been cancelled
This commit is contained in:
158
zerver/webhooks/front/fixtures/comment.json
Normal file
158
zerver/webhooks/front/fixtures/comment.json
Normal file
@@ -0,0 +1,158 @@
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/events/evt_28duvr6"
|
||||
},
|
||||
"id": "evt_28duvr6",
|
||||
"type": "comment",
|
||||
"emitted_at": 1518309749.673,
|
||||
"conversation": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/conversations/cnv_keocka",
|
||||
"related": {
|
||||
"events": "https://api2.frontapp.com/conversations/cnv_keocka/events",
|
||||
"followers": "https://api2.frontapp.com/conversations/cnv_keocka/followers",
|
||||
"messages": "https://api2.frontapp.com/conversations/cnv_keocka/messages",
|
||||
"comments": "https://api2.frontapp.com/conversations/cnv_keocka/comments",
|
||||
"inboxes": "https://api2.frontapp.com/conversations/cnv_keocka/inboxes"
|
||||
}
|
||||
},
|
||||
"id": "cnv_keocka",
|
||||
"subject": "Re: Being a robot is great, but...",
|
||||
"status": "assigned",
|
||||
"assignee": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipient": {
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
},
|
||||
"tags": [],
|
||||
"last_message": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/messages/msg_1176ryy",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keocka",
|
||||
"message_replied_to": "https://api2.frontapp.com/messages/msg_1176r8y"
|
||||
}
|
||||
},
|
||||
"id": "msg_1176ryy",
|
||||
"type": "email",
|
||||
"is_inbound": false,
|
||||
"created_at": 1518309342.896,
|
||||
"blurb": "Emotions are dumb and should be hated. ",
|
||||
"body": "<div>Emotions are dumb and should be hated.</div>",
|
||||
"text": "Emotions are dumb and should be hated.\n",
|
||||
"metadata": {},
|
||||
"author": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipients": [
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": null
|
||||
}
|
||||
},
|
||||
"handle": "support@planet-express.com",
|
||||
"role": "from"
|
||||
},
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
}
|
||||
],
|
||||
"attachments": []
|
||||
},
|
||||
"created_at": 1518309203.872
|
||||
},
|
||||
"source": {
|
||||
"_meta": {
|
||||
"type": "teammate"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40z6",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40z6/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40z6/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40z6",
|
||||
"email": "bender@planet-express.com",
|
||||
"username": "bender",
|
||||
"first_name": "Bender",
|
||||
"last_name": "Rodriguez",
|
||||
"is_admin": false,
|
||||
"is_available": true
|
||||
}
|
||||
},
|
||||
"target": {
|
||||
"_meta": {
|
||||
"type": "comment"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/comments/com_shgc2",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keocka",
|
||||
"mentions": "https://api2.frontapp.com/comments/com_shgc2/mentions"
|
||||
}
|
||||
},
|
||||
"id": "com_shgc2",
|
||||
"body": "Sure.",
|
||||
"posted_at": 1518309749.657,
|
||||
"author": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40z6",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40z6/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40z6/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40z6",
|
||||
"email": "bender@planet-express.com",
|
||||
"username": "bender",
|
||||
"first_name": "Bender",
|
||||
"last_name": "Rodriguez",
|
||||
"is_admin": false,
|
||||
"is_available": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
124
zerver/webhooks/front/fixtures/conversation_archived.json
Normal file
124
zerver/webhooks/front/fixtures/conversation_archived.json
Normal file
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/events/evt_28du7y2"
|
||||
},
|
||||
"id": "evt_28du7y2",
|
||||
"type": "archive",
|
||||
"emitted_at": 1518307966.678,
|
||||
"conversation": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/conversations/cnv_keo696",
|
||||
"related": {
|
||||
"events": "https://api2.frontapp.com/conversations/cnv_keo696/events",
|
||||
"followers": "https://api2.frontapp.com/conversations/cnv_keo696/followers",
|
||||
"messages": "https://api2.frontapp.com/conversations/cnv_keo696/messages",
|
||||
"comments": "https://api2.frontapp.com/conversations/cnv_keo696/comments",
|
||||
"inboxes": "https://api2.frontapp.com/conversations/cnv_keo696/inboxes"
|
||||
}
|
||||
},
|
||||
"id": "cnv_keo696",
|
||||
"subject": "Your next delivery is on Epsilon 96Z",
|
||||
"status": "archived",
|
||||
"assignee": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipient": {
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
},
|
||||
"tags": [],
|
||||
"last_message": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/messages/msg_1176ie2",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keo696"
|
||||
}
|
||||
},
|
||||
"id": "msg_1176ie2",
|
||||
"type": "email",
|
||||
"is_inbound": false,
|
||||
"created_at": 1518307909.541,
|
||||
"blurb": "There will be plenty of time to discuss your objections when and if you return. ",
|
||||
"body": "<div>There will be plenty of time to discuss your objections when and if you return.</div>",
|
||||
"text": "There will be plenty of time to discuss your objections when and if you return.\n",
|
||||
"metadata": {},
|
||||
"author": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipients": [
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": null
|
||||
}
|
||||
},
|
||||
"handle": "support@planet-express.com",
|
||||
"role": "from"
|
||||
},
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
}
|
||||
],
|
||||
"attachments": []
|
||||
},
|
||||
"created_at": 1518307874.673
|
||||
},
|
||||
"source": {
|
||||
"_meta": {
|
||||
"type": "teammate"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
}
|
||||
}
|
||||
}
|
||||
146
zerver/webhooks/front/fixtures/conversation_assigned.json
Normal file
146
zerver/webhooks/front/fixtures/conversation_assigned.json
Normal file
@@ -0,0 +1,146 @@
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/events/evt_28duxju"
|
||||
},
|
||||
"id": "evt_28duxju",
|
||||
"type": "assign",
|
||||
"emitted_at": 1518309907.474,
|
||||
"conversation": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/conversations/cnv_keocka",
|
||||
"related": {
|
||||
"events": "https://api2.frontapp.com/conversations/cnv_keocka/events",
|
||||
"followers": "https://api2.frontapp.com/conversations/cnv_keocka/followers",
|
||||
"messages": "https://api2.frontapp.com/conversations/cnv_keocka/messages",
|
||||
"comments": "https://api2.frontapp.com/conversations/cnv_keocka/comments",
|
||||
"inboxes": "https://api2.frontapp.com/conversations/cnv_keocka/inboxes"
|
||||
}
|
||||
},
|
||||
"id": "cnv_keocka",
|
||||
"subject": "Re: Being a robot is great, but...",
|
||||
"status": "assigned",
|
||||
"assignee": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40z6",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40z6/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40z6/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40z6",
|
||||
"email": "bender@planet-express.com",
|
||||
"username": "bender",
|
||||
"first_name": "Bender",
|
||||
"last_name": "Rodriguez",
|
||||
"is_admin": false,
|
||||
"is_available": true
|
||||
},
|
||||
"recipient": {
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
},
|
||||
"tags": [],
|
||||
"last_message": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/messages/msg_1176ryy",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keocka",
|
||||
"message_replied_to": "https://api2.frontapp.com/messages/msg_1176r8y"
|
||||
}
|
||||
},
|
||||
"id": "msg_1176ryy",
|
||||
"type": "email",
|
||||
"is_inbound": false,
|
||||
"created_at": 1518309342.896,
|
||||
"blurb": "Emotions are dumb and should be hated. ",
|
||||
"body": "<div>Emotions are dumb and should be hated.</div>",
|
||||
"text": "Emotions are dumb and should be hated.\n",
|
||||
"metadata": {},
|
||||
"author": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipients": [
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": null
|
||||
}
|
||||
},
|
||||
"handle": "support@planet-express.com",
|
||||
"role": "from"
|
||||
},
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
}
|
||||
],
|
||||
"attachments": []
|
||||
},
|
||||
"created_at": 1518309203.872
|
||||
},
|
||||
"source": {
|
||||
"_meta": {
|
||||
"type": "teammate"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
}
|
||||
},
|
||||
"target": {
|
||||
"_meta": {
|
||||
"type": "teammate"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40z6",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40z6/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40z6/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40z6",
|
||||
"email": "bender@planet-express.com",
|
||||
"username": "bender",
|
||||
"first_name": "Bender",
|
||||
"last_name": "Rodriguez",
|
||||
"is_admin": false,
|
||||
"is_available": true
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/events/evt_28du6my"
|
||||
},
|
||||
"id": "evt_28du6my",
|
||||
"type": "assign",
|
||||
"emitted_at": 1518307894.354,
|
||||
"conversation": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/conversations/cnv_keo696",
|
||||
"related": {
|
||||
"events": "https://api2.frontapp.com/conversations/cnv_keo696/events",
|
||||
"followers": "https://api2.frontapp.com/conversations/cnv_keo696/followers",
|
||||
"messages": "https://api2.frontapp.com/conversations/cnv_keo696/messages",
|
||||
"comments": "https://api2.frontapp.com/conversations/cnv_keo696/comments",
|
||||
"inboxes": "https://api2.frontapp.com/conversations/cnv_keo696/inboxes"
|
||||
}
|
||||
},
|
||||
"id": "cnv_keo696",
|
||||
"subject": "",
|
||||
"status": "invisible",
|
||||
"assignee": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipient": {
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
},
|
||||
"tags": [],
|
||||
"last_message": {},
|
||||
"created_at": 1518307874.673
|
||||
},
|
||||
"source": {
|
||||
"_meta": {
|
||||
"type": "teammate"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
}
|
||||
},
|
||||
"target": {
|
||||
"_meta": {
|
||||
"type": "teammate"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
}
|
||||
}
|
||||
}
|
||||
157
zerver/webhooks/front/fixtures/conversation_assigned_reply.json
Normal file
157
zerver/webhooks/front/fixtures/conversation_assigned_reply.json
Normal file
@@ -0,0 +1,157 @@
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/events/evt_28dupte"
|
||||
},
|
||||
"id": "evt_28dupte",
|
||||
"type": "assign",
|
||||
"emitted_at": 1518309327.693,
|
||||
"conversation": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/conversations/cnv_keocka",
|
||||
"related": {
|
||||
"events": "https://api2.frontapp.com/conversations/cnv_keocka/events",
|
||||
"followers": "https://api2.frontapp.com/conversations/cnv_keocka/followers",
|
||||
"messages": "https://api2.frontapp.com/conversations/cnv_keocka/messages",
|
||||
"comments": "https://api2.frontapp.com/conversations/cnv_keocka/comments",
|
||||
"inboxes": "https://api2.frontapp.com/conversations/cnv_keocka/inboxes"
|
||||
}
|
||||
},
|
||||
"id": "cnv_keocka",
|
||||
"subject": "Being a robot is great, but...",
|
||||
"status": "assigned",
|
||||
"assignee": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipient": {
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
},
|
||||
"tags": [
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/tags/tag_11dg2",
|
||||
"related": {
|
||||
"conversations": "https://api2.frontapp.com/tags/tag_11dg2/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tag_11dg2",
|
||||
"name": "Urgent"
|
||||
}
|
||||
],
|
||||
"last_message": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/messages/msg_1176ryy",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keocka",
|
||||
"message_replied_to": "https://api2.frontapp.com/messages/msg_1176r8y"
|
||||
}
|
||||
},
|
||||
"id": "msg_1176ryy",
|
||||
"type": "email",
|
||||
"is_inbound": false,
|
||||
"created_at": 1518309342.784,
|
||||
"blurb": "Emotions are dumb and should be hated. ",
|
||||
"body": "<div>Emotions are dumb and should be hated.</div>",
|
||||
"text": "Emotions are dumb and should be hated.\n",
|
||||
"metadata": {},
|
||||
"author": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipients": [
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": null
|
||||
}
|
||||
},
|
||||
"handle": "support@planet-express.com",
|
||||
"role": "from"
|
||||
},
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
}
|
||||
],
|
||||
"attachments": []
|
||||
},
|
||||
"created_at": 1518309203.872
|
||||
},
|
||||
"source": {
|
||||
"_meta": {
|
||||
"type": "teammate"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
}
|
||||
},
|
||||
"target": {
|
||||
"_meta": {
|
||||
"type": "teammate"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
}
|
||||
}
|
||||
}
|
||||
124
zerver/webhooks/front/fixtures/conversation_deleted.json
Normal file
124
zerver/webhooks/front/fixtures/conversation_deleted.json
Normal file
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/events/evt_28du84i"
|
||||
},
|
||||
"id": "evt_28du84i",
|
||||
"type": "trash",
|
||||
"emitted_at": 1518307977.111,
|
||||
"conversation": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/conversations/cnv_keo696",
|
||||
"related": {
|
||||
"events": "https://api2.frontapp.com/conversations/cnv_keo696/events",
|
||||
"followers": "https://api2.frontapp.com/conversations/cnv_keo696/followers",
|
||||
"messages": "https://api2.frontapp.com/conversations/cnv_keo696/messages",
|
||||
"comments": "https://api2.frontapp.com/conversations/cnv_keo696/comments",
|
||||
"inboxes": "https://api2.frontapp.com/conversations/cnv_keo696/inboxes"
|
||||
}
|
||||
},
|
||||
"id": "cnv_keo696",
|
||||
"subject": "Your next delivery is on Epsilon 96Z",
|
||||
"status": "deleted",
|
||||
"assignee": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipient": {
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
},
|
||||
"tags": [],
|
||||
"last_message": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/messages/msg_1176ie2",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keo696"
|
||||
}
|
||||
},
|
||||
"id": "msg_1176ie2",
|
||||
"type": "email",
|
||||
"is_inbound": false,
|
||||
"created_at": 1518307909.541,
|
||||
"blurb": "There will be plenty of time to discuss your objections when and if you return. ",
|
||||
"body": "<div>There will be plenty of time to discuss your objections when and if you return.</div>",
|
||||
"text": "There will be plenty of time to discuss your objections when and if you return.\n",
|
||||
"metadata": {},
|
||||
"author": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipients": [
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": null
|
||||
}
|
||||
},
|
||||
"handle": "support@planet-express.com",
|
||||
"role": "from"
|
||||
},
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
}
|
||||
],
|
||||
"attachments": []
|
||||
},
|
||||
"created_at": 1518307874.673
|
||||
},
|
||||
"source": {
|
||||
"_meta": {
|
||||
"type": "teammate"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
}
|
||||
}
|
||||
}
|
||||
124
zerver/webhooks/front/fixtures/conversation_reopened.json
Normal file
124
zerver/webhooks/front/fixtures/conversation_reopened.json
Normal file
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/events/evt_28du836"
|
||||
},
|
||||
"id": "evt_28du836",
|
||||
"type": "reopen",
|
||||
"emitted_at": 1518307972.956,
|
||||
"conversation": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/conversations/cnv_keo696",
|
||||
"related": {
|
||||
"events": "https://api2.frontapp.com/conversations/cnv_keo696/events",
|
||||
"followers": "https://api2.frontapp.com/conversations/cnv_keo696/followers",
|
||||
"messages": "https://api2.frontapp.com/conversations/cnv_keo696/messages",
|
||||
"comments": "https://api2.frontapp.com/conversations/cnv_keo696/comments",
|
||||
"inboxes": "https://api2.frontapp.com/conversations/cnv_keo696/inboxes"
|
||||
}
|
||||
},
|
||||
"id": "cnv_keo696",
|
||||
"subject": "Your next delivery is on Epsilon 96Z",
|
||||
"status": "assigned",
|
||||
"assignee": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipient": {
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
},
|
||||
"tags": [],
|
||||
"last_message": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/messages/msg_1176ie2",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keo696"
|
||||
}
|
||||
},
|
||||
"id": "msg_1176ie2",
|
||||
"type": "email",
|
||||
"is_inbound": false,
|
||||
"created_at": 1518307909.541,
|
||||
"blurb": "There will be plenty of time to discuss your objections when and if you return. ",
|
||||
"body": "<div>There will be plenty of time to discuss your objections when and if you return.</div>",
|
||||
"text": "There will be plenty of time to discuss your objections when and if you return.\n",
|
||||
"metadata": {},
|
||||
"author": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipients": [
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": null
|
||||
}
|
||||
},
|
||||
"handle": "support@planet-express.com",
|
||||
"role": "from"
|
||||
},
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
}
|
||||
],
|
||||
"attachments": []
|
||||
},
|
||||
"created_at": 1518307874.673
|
||||
},
|
||||
"source": {
|
||||
"_meta": {
|
||||
"type": "teammate"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
}
|
||||
}
|
||||
}
|
||||
124
zerver/webhooks/front/fixtures/conversation_restored.json
Normal file
124
zerver/webhooks/front/fixtures/conversation_restored.json
Normal file
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/events/evt_28du86a"
|
||||
},
|
||||
"id": "evt_28du86a",
|
||||
"type": "restore",
|
||||
"emitted_at": 1518307981.377,
|
||||
"conversation": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/conversations/cnv_keo696",
|
||||
"related": {
|
||||
"events": "https://api2.frontapp.com/conversations/cnv_keo696/events",
|
||||
"followers": "https://api2.frontapp.com/conversations/cnv_keo696/followers",
|
||||
"messages": "https://api2.frontapp.com/conversations/cnv_keo696/messages",
|
||||
"comments": "https://api2.frontapp.com/conversations/cnv_keo696/comments",
|
||||
"inboxes": "https://api2.frontapp.com/conversations/cnv_keo696/inboxes"
|
||||
}
|
||||
},
|
||||
"id": "cnv_keo696",
|
||||
"subject": "Your next delivery is on Epsilon 96Z",
|
||||
"status": "assigned",
|
||||
"assignee": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipient": {
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
},
|
||||
"tags": [],
|
||||
"last_message": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/messages/msg_1176ie2",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keo696"
|
||||
}
|
||||
},
|
||||
"id": "msg_1176ie2",
|
||||
"type": "email",
|
||||
"is_inbound": false,
|
||||
"created_at": 1518307909.541,
|
||||
"blurb": "There will be plenty of time to discuss your objections when and if you return. ",
|
||||
"body": "<div>There will be plenty of time to discuss your objections when and if you return.</div>",
|
||||
"text": "There will be plenty of time to discuss your objections when and if you return.\n",
|
||||
"metadata": {},
|
||||
"author": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipients": [
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": null
|
||||
}
|
||||
},
|
||||
"handle": "support@planet-express.com",
|
||||
"role": "from"
|
||||
},
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
}
|
||||
],
|
||||
"attachments": []
|
||||
},
|
||||
"created_at": 1518307874.673
|
||||
},
|
||||
"source": {
|
||||
"_meta": {
|
||||
"type": "teammate"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
}
|
||||
}
|
||||
}
|
||||
120
zerver/webhooks/front/fixtures/conversation_tagged.json
Normal file
120
zerver/webhooks/front/fixtures/conversation_tagged.json
Normal file
@@ -0,0 +1,120 @@
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/events/evt_28duooi"
|
||||
},
|
||||
"id": "evt_28duooi",
|
||||
"type": "tag",
|
||||
"emitted_at": 1518309239.379,
|
||||
"conversation": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/conversations/cnv_keocka",
|
||||
"related": {
|
||||
"events": "https://api2.frontapp.com/conversations/cnv_keocka/events",
|
||||
"followers": "https://api2.frontapp.com/conversations/cnv_keocka/followers",
|
||||
"messages": "https://api2.frontapp.com/conversations/cnv_keocka/messages",
|
||||
"comments": "https://api2.frontapp.com/conversations/cnv_keocka/comments",
|
||||
"inboxes": "https://api2.frontapp.com/conversations/cnv_keocka/inboxes"
|
||||
}
|
||||
},
|
||||
"id": "cnv_keocka",
|
||||
"subject": "Being a robot is great, but...",
|
||||
"status": "unassigned",
|
||||
"assignee": null,
|
||||
"recipient": {
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "from"
|
||||
},
|
||||
"tags": [
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/tags/tag_11dg2",
|
||||
"related": {
|
||||
"conversations": "https://api2.frontapp.com/tags/tag_11dg2/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tag_11dg2",
|
||||
"name": "Urgent"
|
||||
}
|
||||
],
|
||||
"last_message": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/messages/msg_1176r8y",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keocka"
|
||||
}
|
||||
},
|
||||
"id": "msg_1176r8y",
|
||||
"type": "email",
|
||||
"is_inbound": true,
|
||||
"created_at": 1518309200,
|
||||
"blurb": "We don't have emotions, and sometimes that makes me very sad. ",
|
||||
"body": "<div>We don't have emotions, and sometimes that makes me very sad.</div>",
|
||||
"text": "We don't have emotions, and sometimes that makes me very sad.\n",
|
||||
"metadata": {},
|
||||
"author": null,
|
||||
"recipients": [
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "from"
|
||||
},
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": null
|
||||
}
|
||||
},
|
||||
"handle": "support@planet-express.com",
|
||||
"role": "to"
|
||||
}
|
||||
],
|
||||
"attachments": []
|
||||
},
|
||||
"created_at": 1518309203.872
|
||||
},
|
||||
"source": {
|
||||
"_meta": {
|
||||
"type": "teammate"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
}
|
||||
},
|
||||
"target": {
|
||||
"_meta": {
|
||||
"type": "tag"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/tags/tag_11dg2",
|
||||
"related": {
|
||||
"conversations": "https://api2.frontapp.com/tags/tag_11dg2/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tag_11dg2",
|
||||
"name": "Urgent"
|
||||
}
|
||||
}
|
||||
}
|
||||
109
zerver/webhooks/front/fixtures/conversation_unassigned.json
Normal file
109
zerver/webhooks/front/fixtures/conversation_unassigned.json
Normal file
@@ -0,0 +1,109 @@
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/events/evt_28dubfu"
|
||||
},
|
||||
"id": "evt_28dubfu",
|
||||
"type": "unassign",
|
||||
"emitted_at": 1518308225.91,
|
||||
"conversation": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/conversations/cnv_keo696",
|
||||
"related": {
|
||||
"events": "https://api2.frontapp.com/conversations/cnv_keo696/events",
|
||||
"followers": "https://api2.frontapp.com/conversations/cnv_keo696/followers",
|
||||
"messages": "https://api2.frontapp.com/conversations/cnv_keo696/messages",
|
||||
"comments": "https://api2.frontapp.com/conversations/cnv_keo696/comments",
|
||||
"inboxes": "https://api2.frontapp.com/conversations/cnv_keo696/inboxes"
|
||||
}
|
||||
},
|
||||
"id": "cnv_keo696",
|
||||
"subject": "Your next delivery is on Epsilon 96Z",
|
||||
"status": "unassigned",
|
||||
"assignee": null,
|
||||
"recipient": {
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
},
|
||||
"tags": [],
|
||||
"last_message": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/messages/msg_1176ie2",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keo696"
|
||||
}
|
||||
},
|
||||
"id": "msg_1176ie2",
|
||||
"type": "email",
|
||||
"is_inbound": false,
|
||||
"created_at": 1518307909.541,
|
||||
"blurb": "There will be plenty of time to discuss your objections when and if you return. ",
|
||||
"body": "<div>There will be plenty of time to discuss your objections when and if you return.</div>",
|
||||
"text": "There will be plenty of time to discuss your objections when and if you return.\n",
|
||||
"metadata": {},
|
||||
"author": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipients": [
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": null
|
||||
}
|
||||
},
|
||||
"handle": "support@planet-express.com",
|
||||
"role": "from"
|
||||
},
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
}
|
||||
],
|
||||
"attachments": []
|
||||
},
|
||||
"created_at": 1518307874.673
|
||||
},
|
||||
"source": {
|
||||
"_meta": {
|
||||
"type": "teammate"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
}
|
||||
}
|
||||
}
|
||||
140
zerver/webhooks/front/fixtures/conversation_untagged.json
Normal file
140
zerver/webhooks/front/fixtures/conversation_untagged.json
Normal file
@@ -0,0 +1,140 @@
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/events/evt_28dut36"
|
||||
},
|
||||
"id": "evt_28dut36",
|
||||
"type": "untag",
|
||||
"emitted_at": 1518309568.454,
|
||||
"conversation": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/conversations/cnv_keocka",
|
||||
"related": {
|
||||
"events": "https://api2.frontapp.com/conversations/cnv_keocka/events",
|
||||
"followers": "https://api2.frontapp.com/conversations/cnv_keocka/followers",
|
||||
"messages": "https://api2.frontapp.com/conversations/cnv_keocka/messages",
|
||||
"comments": "https://api2.frontapp.com/conversations/cnv_keocka/comments",
|
||||
"inboxes": "https://api2.frontapp.com/conversations/cnv_keocka/inboxes"
|
||||
}
|
||||
},
|
||||
"id": "cnv_keocka",
|
||||
"subject": "Re: Being a robot is great, but...",
|
||||
"status": "assigned",
|
||||
"assignee": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipient": {
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
},
|
||||
"tags": [],
|
||||
"last_message": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/messages/msg_1176ryy",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keocka",
|
||||
"message_replied_to": "https://api2.frontapp.com/messages/msg_1176r8y"
|
||||
}
|
||||
},
|
||||
"id": "msg_1176ryy",
|
||||
"type": "email",
|
||||
"is_inbound": false,
|
||||
"created_at": 1518309342.896,
|
||||
"blurb": "Emotions are dumb and should be hated. ",
|
||||
"body": "<div>Emotions are dumb and should be hated.</div>",
|
||||
"text": "Emotions are dumb and should be hated.\n",
|
||||
"metadata": {},
|
||||
"author": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipients": [
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": null
|
||||
}
|
||||
},
|
||||
"handle": "support@planet-express.com",
|
||||
"role": "from"
|
||||
},
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
}
|
||||
],
|
||||
"attachments": []
|
||||
},
|
||||
"created_at": 1518309203.872
|
||||
},
|
||||
"source": {
|
||||
"_meta": {
|
||||
"type": "teammate"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
}
|
||||
},
|
||||
"target": {
|
||||
"_meta": {
|
||||
"type": "tag"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/tags/tag_11dg2",
|
||||
"related": {
|
||||
"conversations": "https://api2.frontapp.com/tags/tag_11dg2/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tag_11dg2",
|
||||
"name": "Urgent"
|
||||
}
|
||||
}
|
||||
}
|
||||
109
zerver/webhooks/front/fixtures/gmail.json
Normal file
109
zerver/webhooks/front/fixtures/gmail.json
Normal file
@@ -0,0 +1,109 @@
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/events/evt_28du7y2"
|
||||
},
|
||||
"id": "evt_28du7y2",
|
||||
"type": "archive",
|
||||
"emitted_at": 1518307966.678,
|
||||
"conversation": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/conversations/cnv_keo696",
|
||||
"related": {
|
||||
"events": "https://api2.frontapp.com/conversations/cnv_keo696/events",
|
||||
"followers": "https://api2.frontapp.com/conversations/cnv_keo696/followers",
|
||||
"messages": "https://api2.frontapp.com/conversations/cnv_keo696/messages",
|
||||
"comments": "https://api2.frontapp.com/conversations/cnv_keo696/comments",
|
||||
"inboxes": "https://api2.frontapp.com/conversations/cnv_keo696/inboxes"
|
||||
}
|
||||
},
|
||||
"id": "cnv_keo696",
|
||||
"subject": "Your next delivery is on Epsilon 96Z",
|
||||
"status": "archived",
|
||||
"assignee": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipient": {
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
},
|
||||
"tags": [],
|
||||
"last_message": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/messages/msg_1176ie2",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keo696"
|
||||
}
|
||||
},
|
||||
"id": "msg_1176ie2",
|
||||
"type": "email",
|
||||
"is_inbound": false,
|
||||
"created_at": 1518307909.541,
|
||||
"blurb": "There will be plenty of time to discuss your objections when and if you return. ",
|
||||
"body": "<div>There will be plenty of time to discuss your objections when and if you return.</div>",
|
||||
"text": "There will be plenty of time to discuss your objections when and if you return.\n",
|
||||
"metadata": {},
|
||||
"author": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipients": [
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": null
|
||||
}
|
||||
},
|
||||
"handle": "support@planet-express.com",
|
||||
"role": "from"
|
||||
},
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
}
|
||||
],
|
||||
"attachments": []
|
||||
},
|
||||
"created_at": 1518307874.673
|
||||
},
|
||||
"source": {
|
||||
"_meta": {
|
||||
"type": "gmail"
|
||||
},
|
||||
"data": null
|
||||
}
|
||||
}
|
||||
138
zerver/webhooks/front/fixtures/inbound_message.json
Normal file
138
zerver/webhooks/front/fixtures/inbound_message.json
Normal file
@@ -0,0 +1,138 @@
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/events/evt_28duo2q"
|
||||
},
|
||||
"id": "evt_28duo2q",
|
||||
"type": "inbound",
|
||||
"emitted_at": 1518309200,
|
||||
"conversation": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/conversations/cnv_keocka",
|
||||
"related": {
|
||||
"events": "https://api2.frontapp.com/conversations/cnv_keocka/events",
|
||||
"followers": "https://api2.frontapp.com/conversations/cnv_keocka/followers",
|
||||
"messages": "https://api2.frontapp.com/conversations/cnv_keocka/messages",
|
||||
"comments": "https://api2.frontapp.com/conversations/cnv_keocka/comments",
|
||||
"inboxes": "https://api2.frontapp.com/conversations/cnv_keocka/inboxes"
|
||||
}
|
||||
},
|
||||
"id": "2x9c5v",
|
||||
"subject": "Cancellation Request for Subscription #SUB-67890",
|
||||
"status": "unassigned",
|
||||
"assignee": null,
|
||||
"recipient": {
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "from"
|
||||
},
|
||||
"tags": [],
|
||||
"last_message": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/messages/msg_1176r8y",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keocka"
|
||||
}
|
||||
},
|
||||
"id": "msg_1176r8y",
|
||||
"type": "email",
|
||||
"is_inbound": true,
|
||||
"created_at": 1518309200,
|
||||
"blurb": "We don't have emotions, and sometimes that makes me very sad. ",
|
||||
"body": "<div>We don't have emotions, and sometimes that makes me very sad.</div>",
|
||||
"text": "We don't have emotions, and sometimes that makes me very sad.\n",
|
||||
"metadata": {},
|
||||
"author": null,
|
||||
"recipients": [
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "from"
|
||||
},
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": null
|
||||
}
|
||||
},
|
||||
"handle": "support@planet-express.com",
|
||||
"role": "to"
|
||||
}
|
||||
],
|
||||
"attachments": []
|
||||
},
|
||||
"created_at": 1518309203.872
|
||||
},
|
||||
"source": {
|
||||
"_meta": {
|
||||
"type": "inboxes"
|
||||
},
|
||||
"data": [
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/inboxes/inb_6j96",
|
||||
"related": {
|
||||
"channels": "https://api2.frontapp.com/inboxes/inb_6j96/channels",
|
||||
"conversations": "https://api2.frontapp.com/inboxes/inb_6j96/conversations",
|
||||
"teammates": "https://api2.frontapp.com/inboxes/inb_6j96/teammates"
|
||||
}
|
||||
},
|
||||
"id": "inb_6j96",
|
||||
"address": "support@planet-express.com",
|
||||
"send_as": "support@planet-express.com",
|
||||
"name": "Support@",
|
||||
"type": "gmail"
|
||||
}
|
||||
]
|
||||
},
|
||||
"target": {
|
||||
"_meta": {
|
||||
"type": "message"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/messages/msg_1176r8y",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keocka"
|
||||
}
|
||||
},
|
||||
"id": "msg_1176r8y",
|
||||
"type": "email",
|
||||
"is_inbound": true,
|
||||
"created_at": 1518309200,
|
||||
"blurb": "We don't have emotions, and sometimes that makes me very sad. ",
|
||||
"body": "<div>We don't have emotions, and sometimes that makes me very sad.</div>",
|
||||
"text": "We don't have emotions, and sometimes that makes me very sad.\n",
|
||||
"metadata": {},
|
||||
"author": null,
|
||||
"recipients": [
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "from"
|
||||
},
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": null
|
||||
}
|
||||
},
|
||||
"handle": "support@planet-express.com",
|
||||
"role": "to"
|
||||
}
|
||||
],
|
||||
"attachments": []
|
||||
}
|
||||
}
|
||||
}
|
||||
158
zerver/webhooks/front/fixtures/mention.json
Normal file
158
zerver/webhooks/front/fixtures/mention.json
Normal file
@@ -0,0 +1,158 @@
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/events/evt_28duv9e"
|
||||
},
|
||||
"id": "evt_28duv9e",
|
||||
"type": "mention",
|
||||
"emitted_at": 1518309721.065,
|
||||
"conversation": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/conversations/cnv_keocka",
|
||||
"related": {
|
||||
"events": "https://api2.frontapp.com/conversations/cnv_keocka/events",
|
||||
"followers": "https://api2.frontapp.com/conversations/cnv_keocka/followers",
|
||||
"messages": "https://api2.frontapp.com/conversations/cnv_keocka/messages",
|
||||
"comments": "https://api2.frontapp.com/conversations/cnv_keocka/comments",
|
||||
"inboxes": "https://api2.frontapp.com/conversations/cnv_keocka/inboxes"
|
||||
}
|
||||
},
|
||||
"id": "cnv_keocka",
|
||||
"subject": "Re: Being a robot is great, but...",
|
||||
"status": "assigned",
|
||||
"assignee": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipient": {
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
},
|
||||
"tags": [],
|
||||
"last_message": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/messages/msg_1176ryy",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keocka",
|
||||
"message_replied_to": "https://api2.frontapp.com/messages/msg_1176r8y"
|
||||
}
|
||||
},
|
||||
"id": "msg_1176ryy",
|
||||
"type": "email",
|
||||
"is_inbound": false,
|
||||
"created_at": 1518309342.896,
|
||||
"blurb": "Emotions are dumb and should be hated. ",
|
||||
"body": "<div>Emotions are dumb and should be hated.</div>",
|
||||
"text": "Emotions are dumb and should be hated.\n",
|
||||
"metadata": {},
|
||||
"author": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipients": [
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": null
|
||||
}
|
||||
},
|
||||
"handle": "support@planet-express.com",
|
||||
"role": "from"
|
||||
},
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
}
|
||||
],
|
||||
"attachments": []
|
||||
},
|
||||
"created_at": 1518309203.872
|
||||
},
|
||||
"source": {
|
||||
"_meta": {
|
||||
"type": "teammate"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
}
|
||||
},
|
||||
"target": {
|
||||
"_meta": {
|
||||
"type": "comment"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/comments/com_shgbu",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keocka",
|
||||
"mentions": "https://api2.frontapp.com/comments/com_shgbu/mentions"
|
||||
}
|
||||
},
|
||||
"id": "com_shgbu",
|
||||
"body": "@bender Could you take it from here?",
|
||||
"posted_at": 1518309720.998,
|
||||
"author": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
142
zerver/webhooks/front/fixtures/mention_all.json
Normal file
142
zerver/webhooks/front/fixtures/mention_all.json
Normal file
@@ -0,0 +1,142 @@
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/events/evt_28dubmi"
|
||||
},
|
||||
"id": "evt_28dubmi",
|
||||
"type": "mention",
|
||||
"emitted_at": 1518308240.489,
|
||||
"conversation": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/conversations/cnv_keo696",
|
||||
"related": {
|
||||
"events": "https://api2.frontapp.com/conversations/cnv_keo696/events",
|
||||
"followers": "https://api2.frontapp.com/conversations/cnv_keo696/followers",
|
||||
"messages": "https://api2.frontapp.com/conversations/cnv_keo696/messages",
|
||||
"comments": "https://api2.frontapp.com/conversations/cnv_keo696/comments",
|
||||
"inboxes": "https://api2.frontapp.com/conversations/cnv_keo696/inboxes"
|
||||
}
|
||||
},
|
||||
"id": "cnv_keo696",
|
||||
"subject": "Your next delivery is on Epsilon 96Z",
|
||||
"status": "unassigned",
|
||||
"assignee": null,
|
||||
"recipient": {
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
},
|
||||
"tags": [],
|
||||
"last_message": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/messages/msg_1176ie2",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keo696"
|
||||
}
|
||||
},
|
||||
"id": "msg_1176ie2",
|
||||
"type": "email",
|
||||
"is_inbound": false,
|
||||
"created_at": 1518307909.541,
|
||||
"blurb": "There will be plenty of time to discuss your objections when and if you return. ",
|
||||
"body": "<div>There will be plenty of time to discuss your objections when and if you return.</div>",
|
||||
"text": "There will be plenty of time to discuss your objections when and if you return.\n",
|
||||
"metadata": {},
|
||||
"author": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipients": [
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": null
|
||||
}
|
||||
},
|
||||
"handle": "support@planet-express.com",
|
||||
"role": "from"
|
||||
},
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
}
|
||||
],
|
||||
"attachments": []
|
||||
},
|
||||
"created_at": 1518307874.673
|
||||
},
|
||||
"source": {
|
||||
"_meta": {
|
||||
"type": "teammate"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
}
|
||||
},
|
||||
"target": {
|
||||
"_meta": {
|
||||
"type": "comment"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/comments/com_shgaq",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keo696",
|
||||
"mentions": "https://api2.frontapp.com/comments/com_shgaq/mentions"
|
||||
}
|
||||
},
|
||||
"id": "com_shgaq",
|
||||
"body": "@all Could someone else take this?",
|
||||
"posted_at": 1518308240.466,
|
||||
"author": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
183
zerver/webhooks/front/fixtures/outbound_message.json
Normal file
183
zerver/webhooks/front/fixtures/outbound_message.json
Normal file
@@ -0,0 +1,183 @@
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/events/evt_28du6wi"
|
||||
},
|
||||
"id": "evt_28du6wi",
|
||||
"type": "outbound",
|
||||
"emitted_at": 1518307909.541,
|
||||
"conversation": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/conversations/cnv_keo696",
|
||||
"related": {
|
||||
"events": "https://api2.frontapp.com/conversations/cnv_keo696/events",
|
||||
"followers": "https://api2.frontapp.com/conversations/cnv_keo696/followers",
|
||||
"messages": "https://api2.frontapp.com/conversations/cnv_keo696/messages",
|
||||
"comments": "https://api2.frontapp.com/conversations/cnv_keo696/comments",
|
||||
"inboxes": "https://api2.frontapp.com/conversations/cnv_keo696/inboxes"
|
||||
}
|
||||
},
|
||||
"id": "cnv_keo696",
|
||||
"subject": "Your next delivery is on Epsilon 96Z",
|
||||
"status": "assigned",
|
||||
"assignee": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipient": {
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
},
|
||||
"tags": [],
|
||||
"last_message": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/messages/msg_1176ie2",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keo696"
|
||||
}
|
||||
},
|
||||
"id": "msg_1176ie2",
|
||||
"type": "email",
|
||||
"is_inbound": false,
|
||||
"created_at": 1518307909.541,
|
||||
"blurb": "There will be plenty of time to discuss your objections when and if you return. ",
|
||||
"body": "<div>There will be plenty of time to discuss your objections when and if you return.</div>",
|
||||
"text": "There will be plenty of time to discuss your objections when and if you return.\n",
|
||||
"metadata": {},
|
||||
"author": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipients": [
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": null
|
||||
}
|
||||
},
|
||||
"handle": "support@planet-express.com",
|
||||
"role": "from"
|
||||
},
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
}
|
||||
],
|
||||
"attachments": []
|
||||
},
|
||||
"created_at": 1518307874.673
|
||||
},
|
||||
"source": {
|
||||
"_meta": {
|
||||
"type": "inboxes"
|
||||
},
|
||||
"data": [
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/inboxes/inb_6j96",
|
||||
"related": {
|
||||
"channels": "https://api2.frontapp.com/inboxes/inb_6j96/channels",
|
||||
"conversations": "https://api2.frontapp.com/inboxes/inb_6j96/conversations",
|
||||
"teammates": "https://api2.frontapp.com/inboxes/inb_6j96/teammates"
|
||||
}
|
||||
},
|
||||
"id": "inb_6j96",
|
||||
"address": "support@planet-express.com",
|
||||
"send_as": "support@planet-express.com",
|
||||
"name": "Support@",
|
||||
"type": "gmail"
|
||||
}
|
||||
]
|
||||
},
|
||||
"target": {
|
||||
"_meta": {
|
||||
"type": "message"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/messages/msg_1176ie2",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keo696"
|
||||
}
|
||||
},
|
||||
"id": "msg_1176ie2",
|
||||
"type": "email",
|
||||
"is_inbound": false,
|
||||
"created_at": 1518307909.541,
|
||||
"blurb": "There will be plenty of time to discuss your objections when and if you return. ",
|
||||
"body": "<div>There will be plenty of time to discuss your objections when and if you return.</div>",
|
||||
"text": "There will be plenty of time to discuss your objections when and if you return.\n",
|
||||
"metadata": {},
|
||||
"author": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipients": [
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": null
|
||||
}
|
||||
},
|
||||
"handle": "support@planet-express.com",
|
||||
"role": "from"
|
||||
},
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
}
|
||||
],
|
||||
"attachments": []
|
||||
}
|
||||
}
|
||||
}
|
||||
196
zerver/webhooks/front/fixtures/outbound_reply.json
Normal file
196
zerver/webhooks/front/fixtures/outbound_reply.json
Normal file
@@ -0,0 +1,196 @@
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/events/evt_28duq42"
|
||||
},
|
||||
"id": "evt_28duq42",
|
||||
"type": "out_reply",
|
||||
"emitted_at": 1518309342.896,
|
||||
"conversation": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/conversations/cnv_keocka",
|
||||
"related": {
|
||||
"events": "https://api2.frontapp.com/conversations/cnv_keocka/events",
|
||||
"followers": "https://api2.frontapp.com/conversations/cnv_keocka/followers",
|
||||
"messages": "https://api2.frontapp.com/conversations/cnv_keocka/messages",
|
||||
"comments": "https://api2.frontapp.com/conversations/cnv_keocka/comments",
|
||||
"inboxes": "https://api2.frontapp.com/conversations/cnv_keocka/inboxes"
|
||||
}
|
||||
},
|
||||
"id": "cnv_keocka",
|
||||
"subject": "Re: Being a robot is great, but...",
|
||||
"status": "assigned",
|
||||
"assignee": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipient": {
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
},
|
||||
"tags": [
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/tags/tag_11dg2",
|
||||
"related": {
|
||||
"conversations": "https://api2.frontapp.com/tags/tag_11dg2/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tag_11dg2",
|
||||
"name": "Urgent"
|
||||
}
|
||||
],
|
||||
"last_message": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/messages/msg_1176ryy",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keocka",
|
||||
"message_replied_to": "https://api2.frontapp.com/messages/msg_1176r8y"
|
||||
}
|
||||
},
|
||||
"id": "msg_1176ryy",
|
||||
"type": "email",
|
||||
"is_inbound": false,
|
||||
"created_at": 1518309342.896,
|
||||
"blurb": "Emotions are dumb and should be hated. ",
|
||||
"body": "<div>Emotions are dumb and should be hated.</div>",
|
||||
"text": "Emotions are dumb and should be hated.\n",
|
||||
"metadata": {},
|
||||
"author": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipients": [
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": null
|
||||
}
|
||||
},
|
||||
"handle": "support@planet-express.com",
|
||||
"role": "from"
|
||||
},
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
}
|
||||
],
|
||||
"attachments": []
|
||||
},
|
||||
"created_at": 1518309203.872
|
||||
},
|
||||
"source": {
|
||||
"_meta": {
|
||||
"type": "inboxes"
|
||||
},
|
||||
"data": [
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/inboxes/inb_6j96",
|
||||
"related": {
|
||||
"channels": "https://api2.frontapp.com/inboxes/inb_6j96/channels",
|
||||
"conversations": "https://api2.frontapp.com/inboxes/inb_6j96/conversations",
|
||||
"teammates": "https://api2.frontapp.com/inboxes/inb_6j96/teammates"
|
||||
}
|
||||
},
|
||||
"id": "inb_6j96",
|
||||
"address": "support@planet-express.com",
|
||||
"send_as": "support@planet-express.com",
|
||||
"name": "Support@",
|
||||
"type": "gmail"
|
||||
}
|
||||
]
|
||||
},
|
||||
"target": {
|
||||
"_meta": {
|
||||
"type": "message"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/messages/msg_1176ryy",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keocka",
|
||||
"message_replied_to": "https://api2.frontapp.com/messages/msg_1176r8y"
|
||||
}
|
||||
},
|
||||
"id": "msg_1176ryy",
|
||||
"type": "email",
|
||||
"is_inbound": false,
|
||||
"created_at": 1518309342.896,
|
||||
"blurb": "Emotions are dumb and should be hated. ",
|
||||
"body": "<div>Emotions are dumb and should be hated.</div>",
|
||||
"text": "Emotions are dumb and should be hated.\n",
|
||||
"metadata": {},
|
||||
"author": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipients": [
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": null
|
||||
}
|
||||
},
|
||||
"handle": "support@planet-express.com",
|
||||
"role": "from"
|
||||
},
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
}
|
||||
],
|
||||
"attachments": []
|
||||
}
|
||||
}
|
||||
}
|
||||
144
zerver/webhooks/front/fixtures/rule.json
Normal file
144
zerver/webhooks/front/fixtures/rule.json
Normal file
@@ -0,0 +1,144 @@
|
||||
{
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/events/evt_28duxju"
|
||||
},
|
||||
"id": "evt_28duxju",
|
||||
"type": "assign",
|
||||
"emitted_at": 1518309907.474,
|
||||
"conversation": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/conversations/cnv_keocka",
|
||||
"related": {
|
||||
"events": "https://api2.frontapp.com/conversations/cnv_keocka/events",
|
||||
"followers": "https://api2.frontapp.com/conversations/cnv_keocka/followers",
|
||||
"messages": "https://api2.frontapp.com/conversations/cnv_keocka/messages",
|
||||
"comments": "https://api2.frontapp.com/conversations/cnv_keocka/comments",
|
||||
"inboxes": "https://api2.frontapp.com/conversations/cnv_keocka/inboxes"
|
||||
}
|
||||
},
|
||||
"id": "cnv_keocka",
|
||||
"subject": "Re: Being a robot is great, but...",
|
||||
"status": "assigned",
|
||||
"assignee": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40z6",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40z6/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40z6/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40z6",
|
||||
"email": "bender@planet-express.com",
|
||||
"username": "bender",
|
||||
"first_name": "Bender",
|
||||
"last_name": "Rodriguez",
|
||||
"is_admin": false,
|
||||
"is_available": true
|
||||
},
|
||||
"recipient": {
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
},
|
||||
"tags": [],
|
||||
"last_message": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/messages/msg_1176ryy",
|
||||
"related": {
|
||||
"conversation": "https://api2.frontapp.com/conversations/cnv_keocka",
|
||||
"message_replied_to": "https://api2.frontapp.com/messages/msg_1176r8y"
|
||||
}
|
||||
},
|
||||
"id": "msg_1176ryy",
|
||||
"type": "email",
|
||||
"is_inbound": false,
|
||||
"created_at": 1518309342.896,
|
||||
"blurb": "Emotions are dumb and should be hated. ",
|
||||
"body": "<div>Emotions are dumb and should be hated.</div>",
|
||||
"text": "Emotions are dumb and should be hated.\n",
|
||||
"metadata": {},
|
||||
"author": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40yq",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40yq",
|
||||
"email": "leela@planet-express.com",
|
||||
"username": "leela",
|
||||
"first_name": "Leela",
|
||||
"last_name": "Turanga",
|
||||
"is_admin": true,
|
||||
"is_available": true
|
||||
},
|
||||
"recipients": [
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": null
|
||||
}
|
||||
},
|
||||
"handle": "support@planet-express.com",
|
||||
"role": "from"
|
||||
},
|
||||
{
|
||||
"_links": {
|
||||
"related": {
|
||||
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
|
||||
}
|
||||
},
|
||||
"handle": "calculon@momsbot.com",
|
||||
"role": "to"
|
||||
}
|
||||
],
|
||||
"attachments": []
|
||||
},
|
||||
"created_at": 1518309203.872
|
||||
},
|
||||
"source": {
|
||||
"_meta": {
|
||||
"type": "rule"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/rules/rul_55c8c149",
|
||||
"related": {
|
||||
"owner": "https://api2.frontapp.com/teams/tim_55c8c149"
|
||||
}
|
||||
},
|
||||
"id": "rul_55c8c149",
|
||||
"name": "Important deliveries",
|
||||
"actions": [
|
||||
"Assign to Bender Rodriguez"
|
||||
],
|
||||
"is_private": false
|
||||
}
|
||||
},
|
||||
"target": {
|
||||
"_meta": {
|
||||
"type": "teammate"
|
||||
},
|
||||
"data": {
|
||||
"_links": {
|
||||
"self": "https://api2.frontapp.com/teammates/tea_40z6",
|
||||
"related": {
|
||||
"inboxes": "https://api2.frontapp.com/teammates/tea_40z6/inboxes",
|
||||
"conversations": "https://api2.frontapp.com/teammates/tea_40z6/conversations"
|
||||
}
|
||||
},
|
||||
"id": "tea_40z6",
|
||||
"email": "bender@planet-express.com",
|
||||
"username": "bender",
|
||||
"first_name": "Bender",
|
||||
"last_name": "Rodriguez",
|
||||
"is_admin": false,
|
||||
"is_available": true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user