@epilot/message-client 1.2.2 → 1.3.1

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/CHANGELOG.md ADDED
@@ -0,0 +1,253 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## [1.12.3](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.12.2...@epilot/pricing-client@1.12.3) (2022-05-11)
7
+
8
+ **Note:** Version bump only for package @epilot/pricing-client
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.12.2](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.12.2-alpha.0...@epilot/pricing-client@1.12.2) (2022-05-03)
15
+
16
+
17
+ ### Reverts
18
+
19
+ * Revert "chore(release): publish" ([79a1d35](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/commit/79a1d359edd3d0bd3442a9dd3da293b40017d363))
20
+
21
+
22
+
23
+
24
+
25
+ ## [1.12.1](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.10.0...@epilot/pricing-client@1.12.1) (2022-04-28)
26
+
27
+ **Note:** Version bump only for package @epilot/pricing-client
28
+
29
+
30
+
31
+
32
+
33
+ # [1.10.0](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.9.0...@epilot/pricing-client@1.10.0) (2022-04-25)
34
+
35
+
36
+ ### Features
37
+
38
+ * prod availability ([ca41cc0](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/commit/ca41cc0f87823ffbc6936b3f8b1fe143e512a446))
39
+
40
+
41
+
42
+
43
+
44
+ # [1.9.0](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.8.0...@epilot/pricing-client@1.9.0) (2022-04-22)
45
+
46
+
47
+ ### Features
48
+
49
+ * support additional addresses for orders ([4db6f30](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/commit/4db6f30428ed57233ceccb6d697288354d7b02db))
50
+
51
+
52
+
53
+
54
+
55
+ # [1.8.0](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.7.0...@epilot/pricing-client@1.8.0) (2022-04-08)
56
+
57
+
58
+ ### Features
59
+
60
+ * tracing for staging ([2182fed](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/commit/2182fed2fec3fa108004dceef35ff3f2440bc816))
61
+
62
+
63
+
64
+
65
+
66
+ # [1.7.0](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.6.5...@epilot/pricing-client@1.7.0) (2022-04-07)
67
+
68
+ **Note:** Version bump only for package @epilot/pricing-client
69
+
70
+
71
+
72
+
73
+
74
+ ## [1.6.6-alpha.0](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.6.5...@epilot/pricing-client@1.6.6-alpha.0) (2022-04-07)
75
+
76
+ **Note:** Version bump only for package @epilot/pricing-client
77
+
78
+
79
+
80
+
81
+
82
+ ## [1.6.5](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.6.4...@epilot/pricing-client@1.6.5) (2022-04-04)
83
+
84
+ **Note:** Version bump only for package @epilot/pricing-client
85
+
86
+
87
+
88
+
89
+
90
+ ## [1.6.4](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.6.3...@epilot/pricing-client@1.6.4) (2022-04-04)
91
+
92
+ **Note:** Version bump only for package @epilot/pricing-client
93
+
94
+
95
+
96
+
97
+
98
+ ## [1.6.3](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.6.2...@epilot/pricing-client@1.6.3) (2022-03-29)
99
+
100
+ **Note:** Version bump only for package @epilot/pricing-client
101
+
102
+
103
+
104
+
105
+
106
+ ## [1.6.2](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.5.4...@epilot/pricing-client@1.6.2) (2022-03-25)
107
+
108
+ **Note:** Version bump only for package @epilot/pricing-client
109
+
110
+
111
+
112
+
113
+
114
+ ## [1.6.1](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.5.7-alpha.0...@epilot/pricing-client@1.6.1) (2022-03-18)
115
+
116
+ **Note:** Version bump only for package @epilot/pricing-client
117
+
118
+
119
+
120
+
121
+
122
+ ## [1.5.7-alpha.0](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.5.4...@epilot/pricing-client@1.5.7-alpha.0) (2022-03-16)
123
+
124
+ **Note:** Version bump only for package @epilot/pricing-client
125
+
126
+
127
+
128
+
129
+
130
+ ## [1.5.6](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.5.4...@epilot/pricing-client@1.5.6) (2022-03-12)
131
+
132
+ **Note:** Version bump only for package @epilot/pricing-client
133
+
134
+
135
+
136
+
137
+
138
+ ## [1.5.5](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.5.4...@epilot/pricing-client@1.5.5) (2022-03-11)
139
+
140
+ **Note:** Version bump only for package @epilot/pricing-client
141
+
142
+
143
+
144
+
145
+
146
+ ## [1.5.4](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.5.2...@epilot/pricing-client@1.5.4) (2022-02-11)
147
+
148
+ **Note:** Version bump only for package @epilot/pricing-client
149
+
150
+
151
+
152
+
153
+
154
+ ## [1.5.2](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.5.1...@epilot/pricing-client@1.5.2) (2022-01-19)
155
+
156
+ **Note:** Version bump only for package @epilot/pricing-client
157
+
158
+
159
+
160
+
161
+
162
+ ## [1.5.1](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.5.0...@epilot/pricing-client@1.5.1) (2022-01-19)
163
+
164
+
165
+ ### Bug Fixes
166
+
167
+ * create opportunity api spec ([c1480fa](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/commit/c1480fa810fb018e451773f1805988cad371b669))
168
+
169
+
170
+
171
+
172
+
173
+ # [1.5.0](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.3.1...@epilot/pricing-client@1.5.0) (2022-01-19)
174
+
175
+
176
+ ### Bug Fixes
177
+
178
+ * lock files ([cf87d25](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/commit/cf87d25cb8de79b92e5d9da5904fd9e4ac612099))
179
+
180
+
181
+ ### Features
182
+
183
+ * adds opportunity support ([d9cd33f](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/commit/d9cd33fca52e62ae198a64b3fbb4479d41b24be4))
184
+
185
+
186
+
187
+
188
+
189
+ ## [1.3.1](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.3.0...@epilot/pricing-client@1.3.1) (2022-01-19)
190
+
191
+
192
+ ### Bug Fixes
193
+
194
+ * bug generating orders and updates types with opportunity ([b8c6e64](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/commit/b8c6e64d414edeb0d9f5b66f7554dea4c56539d9))
195
+
196
+
197
+
198
+
199
+
200
+ # [1.3.0](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.2.15...@epilot/pricing-client@1.3.0) (2022-01-03)
201
+
202
+
203
+ ### Features
204
+
205
+ * adds support for files ([709e89f](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/commit/709e89f98064646d6111f76c2cde255490e5ed79))
206
+
207
+
208
+
209
+
210
+
211
+ ## [1.2.15](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.2.14...@epilot/pricing-client@1.2.15) (2021-12-22)
212
+
213
+ **Note:** Version bump only for package @epilot/pricing-client
214
+
215
+
216
+
217
+
218
+
219
+ ## [1.2.14](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.2.13...@epilot/pricing-client@1.2.14) (2021-12-22)
220
+
221
+ **Note:** Version bump only for package @epilot/pricing-client
222
+
223
+
224
+
225
+
226
+
227
+ ## [1.2.13](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.2.12...@epilot/pricing-client@1.2.13) (2021-12-16)
228
+
229
+ **Note:** Version bump only for package @epilot/pricing-client
230
+
231
+
232
+
233
+
234
+
235
+ ## [1.2.12](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.2.11...@epilot/pricing-client@1.2.12) (2021-12-16)
236
+
237
+ **Note:** Version bump only for package @epilot/pricing-client
238
+
239
+
240
+
241
+
242
+
243
+ ## [1.2.11](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.2.10...@epilot/pricing-client@1.2.11) (2021-12-16)
244
+
245
+ **Note:** Version bump only for package @epilot/pricing-client
246
+
247
+
248
+
249
+
250
+
251
+ ## [1.2.10](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.2.9...@epilot/pricing-client@1.2.10) (2021-12-16)
252
+
253
+ **Note:** Version bump only for package @epilot/pricing-client
@@ -1 +1 @@
1
- !function(e,s){for(var t in s)e[t]=s[t];s.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(exports,(()=>{"use strict";var e={914:function(e,s,t){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(s,"__esModule",{value:!0});var r=a(t(279));s.default=r.default},279:e=>{e.exports=JSON.parse('{"openapi":"3.0.2","info":{"title":"Message API","version":"1.0.0","description":"Send and receive email messages via your epilot organization\\n"},"security":[{"EpilotAuth":[]},{"EpilotOrg":[]}],"tags":[{"name":"Messages"},{"name":"Threads"},{"name":"Drafts"}],"paths":{"/v1/message/messages":{"post":{"operationId":"sendMessage","summary":"sendMessage","description":"Send an email message","tags":["Messages"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageRequestParams"}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/BaseEntity"},{"$ref":"#/components/schemas/Message"}]}}}},"403":{"description":"Forbidden"}}},"put":{"operationId":"updateMessage","summary":"updateMessage","description":"Update message metadata","tags":["Messages"],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/BaseEntity"},{"$ref":"#/components/schemas/Message"}]}}}},"403":{"description":"Forbidden"}}}},"/v1/message/messages/{id}":{"get":{"operationId":"getMessage","summary":"getMessage","description":"Get an email message by id","tags":["Messages"],"parameters":[{"name":"id","description":"Message ID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/BaseEntity"},{"$ref":"#/components/schemas/Message"}]}}}},"403":{"description":"Forbidden"}}},"delete":{"operationId":"deleteMessage","summary":"deleteMessage","description":"Immediately and permanently delete a message. This operation cannot be undone.","tags":["Messages"],"parameters":[{"name":"id","description":"Message ID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success"},"403":{"description":"Forbidden"}}}},"/v1/message/messages/{id}/trash":{"post":{"operationId":"trashMessage","summary":"trashMessage","description":"Move a message to the trash","tags":["Messages"],"parameters":[{"name":"id","description":"Message ID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success"},"403":{"description":"Forbidden"}}}},"/v1/message/messages/{id}/untrash":{"post":{"operationId":"untrashMessage","summary":"untrashMessage","description":"Restore a trashed message","tags":["Messages"],"parameters":[{"name":"id","description":"Message ID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success"},"403":{"description":"Forbidden"}}}},"/v1/message/messages/{id}/read":{"post":{"operationId":"markReadMessage","summary":"markReadMessage","description":"Mark message as read","tags":["Messages"],"parameters":[{"name":"id","description":"Message ID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success"},"403":{"description":"Forbidden"}}}},"/v1/message/messages/{id}/unread":{"post":{"operationId":"markUnreadMessage","summary":"markUnreadMessage","description":"Mark message as unread","tags":["Messages"],"parameters":[{"name":"id","description":"Message ID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success"},"403":{"description":"Forbidden"}}}},"/v1/message/threads:search":{"post":{"operationId":"searchThreads","summary":"searchThreads","description":"Search for threads of email messages.\\n\\nMessages with no replies yet are treated as threads with single message.\\n\\nLucene syntax supported.\\n","tags":["Threads"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchParams"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["hits","results"],"properties":{"hits":{"type":"number","description":"Total of matched threads","example":14},"results":{"type":"array","description":"Matched threads","items":{"allOf":[{"$ref":"#/components/schemas/BaseEntity"},{"$ref":"#/components/schemas/Thread"}]}}}}}}},"403":{"description":"Forbidden"}}}},"/v1/message/threads":{"put":{"operationId":"updateThread","summary":"updateThread","description":"Modify thread metadata","tags":["Threads"],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/BaseEntity"},{"$ref":"#/components/schemas/Thread"}]}}}},"403":{"description":"Forbidden"}}}},"/v1/message/threads/{id}":{"delete":{"operationId":"deleteThread","summary":"deleteThread","description":"Immediately and permanently delete a thread. This operation cannot be undone.","tags":["Threads"],"parameters":[{"name":"id","description":"Thread ID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success"},"403":{"description":"Forbidden"}}}},"/v1/message/threads/{id}/trash":{"post":{"operationId":"trashThread","summary":"trashThread","description":"Move a thread to trash","tags":["Threads"],"parameters":[{"name":"id","description":"Thread ID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success"},"403":{"description":"Forbidden"}}}},"/v1/message/threads/{id}/untrash":{"post":{"operationId":"untrashThread","summary":"untrashThread","description":"Restore a trashed thread","tags":["Threads"],"parameters":[{"name":"id","description":"Thread ID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success"},"403":{"description":"Forbidden"}}}},"/v1/message/threads/{id}/read":{"post":{"operationId":"markReadThread","summary":"markReadThread","description":"Mark thread as read","tags":["Threads"],"parameters":[{"name":"id","description":"Thread ID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success"},"403":{"description":"Forbidden"}}}},"/v1/message/threads/{id}/unread":{"post":{"operationId":"markUnreadThread","summary":"markUnreadThread","description":"Mark thread as unread","tags":["Threads"],"parameters":[{"name":"id","description":"Thread ID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success"},"403":{"description":"Forbidden"}}}},"/v1/message/threads/{id}/assign":{"post":{"operationId":"assignThread","summary":"assignThread","description":"Assign thread to entities","tags":["Threads"],"parameters":[{"name":"id","description":"Thread ID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Entities which thread is assigned to","type":"array","items":{"type":"object","properties":{"slug":{"description":"Entity slug","type":"string","example":"contact"},"entity_id":{"description":"Entity ID","type":"string","example":"3f34ce73-089c-4d45-a5ee-c161234e41c3"},"is_main_entity":{"description":"To indicate this is main entity","type":"boolean","example":true}}}}}}},"responses":{"204":{"description":"Success"},"403":{"description":"Forbidden"}}}},"/v1/message/drafts":{"post":{"operationId":"createDraft","summary":"createDraft","description":"Create a new draft","tags":["Drafts"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageRequestParams"}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/BaseEntity"},{"$ref":"#/components/schemas/Message"}]}}}},"403":{"description":"Forbidden"}}}},"/v1/message/drafts:send":{"post":{"operationId":"sendDraft","summary":"sendDraft","description":"Send the existing draft to the recipients","tags":["Drafts"],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/BaseEntity"},{"$ref":"#/components/schemas/Message"}]}}}},"403":{"description":"Forbidden"}}}}},"components":{"securitySchemes":{"EpilotAuth":{"type":"http","scheme":"bearer","description":"Authorization header with epilot OAuth2 bearer token","bearerFormat":"JWT"},"EpilotOrg":{"description":"Overrides the target organization to allow shared tenant access","name":"x-epilot-org-id","in":"header","type":"apiKey"}},"schemas":{"BaseEntity":{"type":"object","required":["_id","_title","_org","_schema","_created_at","_updated_at"],"properties":{"_id":{"type":"string","description":"Entity ID","example":"3fa85f64-5717-4562-b3fc-2c963f66afa6"},"_title":{"type":"string","description":"Entity title"},"_org":{"type":"string","description":"Ivy Organization ID the entity belongs to","example":"206801"},"_schema":{"type":"string","description":"URL-friendly identifier for the entity schema","example":"message"},"_tags":{"type":"array","description":"Entity tags","items":{"type":"string"},"example":["pricing","INBOX"]},"_created_at":{"type":"string","description":"Created date","format":"date-time","example":"2021-02-09T12:41:43.662Z"},"_updated_at":{"type":"string","description":"Updated date","format":"date-time","example":"2021-02-10T09:14:31.990Z"}}},"Thread":{"description":"Thread properties depend on API caller as it\'s not pre-defined. We do recommend having at least `topic` property for categorizing.","required":["topic"],"properties":{"topic":{"type":"string","description":"Message topic (e.g. which service sends the message or message category)","example":"CUSTOMER_MESSAGE"},"assigned_to":{"type":"array","description":"Ivy User ID of who the message is assigned to. Default is the user who sends message.","items":{"type":"string","example":["206801","200109"]}},"org_read_message":{"type":"array","description":"Ivy Organization ID of organization read the message.","items":{"type":"string","example":["789372","210291"]}},"latest_message":{"type":"object","description":"Latest message of thread","$ref":"#/components/schemas/Message"},"latest_trash_message":{"type":"object","description":"Latest trash message of thread","$ref":"#/components/schemas/Message"}}},"Message":{"type":"object","required":["subject","from"],"properties":{"message_id":{"type":"string","description":"Message ID which is from email provider. If you provide `message-id`, API overrides by its own value.","example":"<0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>"},"sender":{"type":"string","description":"Ivy User ID of user sends the message.","example":"206801"},"subject":{"type":"string","description":"Subject","example":"Request for solar panel price"},"html":{"type":"string","description":"HTML body","example":"<div>We at ABC GmbH would like to request a price quote for the solar panel.</div>"},"text":{"type":"string","description":"Text body","example":"We at ABC GmbH would like to request a price quote for the solar panel."},"from":{"$ref":"#/components/schemas/Address"},"reply_to":{"$ref":"#/components/schemas/Address"},"to":{"type":"array","description":"To email addresses","items":{"$ref":"#/components/schemas/Address"}},"cc":{"type":"array","description":"Cc email addresses","items":{"$ref":"#/components/schemas/Address"}},"bcc":{"type":"array","description":"Bcc email addresses","items":{"$ref":"#/components/schemas/Address"}},"file":{"$ref":"#/components/schemas/AttachmentsRelation"},"references":{"type":"string","description":"References header. Value is the series of `message_id` which is reparated by space to indicate that message has parent.\\\\\\nThe last message ID in references identifies the parent. The first message ID in references identifies the first message in the thread.\\\\\\nThe basic idea is that sender should copy `references` from the parent and append the parent\'s `message_id` when replying.\\n","example":"<0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>"},"in_reply_to":{"type":"string","description":"In-Reply-To header. Value is the `message_id` of parent message.\\n","example":"<CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>"},"user_read_message":{"type":"array","description":"Ivy User ID of user read the message.","items":{"type":"string","example":["206801","200109"]}},"org_read_message":{"type":"array","description":"Ivy Organization ID of organization read the message.","items":{"type":"string","example":["789372","210291"]}},"send_status":{"type":"array","description":"Sent message status. The array contains sending message status corresponding to all recipients. For more detail, check `send_status` of each recipient in `to`, `cc`, `bcc`\\\\\\nReference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>\\n","items":{"type":"string","enum":["SEND","DELIVERY","REJECT","COMPLAINT","BOUNCE","ERROR"]}},"type":{"type":"string","description":"Message type","enum":["SENT","RECEIVED"]}}},"Address":{"type":"object","required":["address"],"properties":{"name":{"type":"string","description":"Email address alias","example":"epilot"},"address":{"type":"string","description":"Email address","example":"messaging@epilot.cloud"},"send_status":{"type":"string","description":"Sent message status regarding to this recipient.\\\\\\nReference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>\\n","enum":["SEND","DELIVERY","REJECT","COMPLAINT","BOUNCE","ERROR"]},"send_error":{"type":"object","description":"Information about reject, complaint or bounce event. Only available if `send_status` is REJECT, COMPLAINT, BOUNCE or ERROR.\\\\\\nJSON object is defined by AWS SES. Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/notification-contents.html>\\n"}}},"AttachmentsRelation":{"type":"object","description":"Message attachments","properties":{"$relation":{"type":"array","description":"It\'s normal entity relation with some additional properties for sending message attachment.","items":{"$ref":"#/components/schemas/File"}}}},"File":{"type":"object","required":["entity_id"],"properties":{"entity_id":{"type":"string","description":"File entity ID","example":"f820ce3b-07b0-45ae-bcc6-babb2f53f79f"},"filename":{"type":"string","description":"File name","example":"Produktinformationen_epilot360_Double_Opt_in.pdf"},"is_message_attachment":{"type":"boolean","description":"To indicate this file relation is message attachment. If false then this file will not be sent and simply kept as a file relation."},"cid":{"type":"string","description":"Content ID (for inline)","example":"fb222496-a1a5-4639-94f2-07b5e35e4068"},"inline":{"type":"boolean","description":"If true then this attachment should not be offered for download (at least not in the main attachments list).\\\\\\nThe usecase is CID embedded image (aka inline image).\\n","default":false},"send_as_link":{"type":"boolean","description":"If true then this attachment is sent via link. The link have to be inserted to email body by API caller.\\\\\\nIn this case, service doesn\'t process this attachment.\\n","default":false}}},"MessageRequestParams":{"required":["subject","from"],"properties":{"thread":{"type":"object","required":["topic"],"description":"Open new thread when sending the very first message in conversation. Thread should contains context related to all messages in it (eg. topic, brand_id, opportunity_id, assigned_to,...).\\\\\\nThread properties depend on API caller as it\'s not pre-defined. We do recommend having at least `topic` property for categorizing.\\\\\\n`thread` or `parent_id` must be provided either.\\n","properties":{"topic":{"type":"string","description":"Message topic (e.g. which service sends the message or message category)"},"assigned_to":{"type":"array","description":"Ivy User ID of who the message is assigned to. Default is the user who sends message.","items":{"type":"string"}}},"example":{"topic":"CUSTOMER_MESSAGE","assigned_to":["206801","200109"],"opportunity_id":829072}},"parent_id":{"type":"string","description":"Entity ID of parent message which this message replies to or forwards from.\\\\\\nIf both `parent_id` and `thread` are provided, `thread` is discarded.\\n","example":"44d7a3eb-0cce-4bd3-a7cd-0b3e652de0c2"},"subject":{"type":"string","description":"Subject","example":"Request for solar panel price"},"html":{"type":"string","description":"HTML body","example":"<div>We at ABC GmbH would like to request a price quote for the solar panel.</div>"},"text":{"type":"string","description":"Text body. If not provided, text body is converted from HTML body using [html-to-text](https://www.npmjs.com/package/html-to-text)","example":"We at ABC GmbH would like to request a price quote for the solar panel."},"from":{"$ref":"#/components/schemas/Address"},"reply_to":{"$ref":"#/components/schemas/Address"},"to":{"type":"array","description":"To email addresses","items":{"$ref":"#/components/schemas/Address"}},"cc":{"type":"array","description":"Cc email addresses","items":{"$ref":"#/components/schemas/Address"}},"bcc":{"type":"array","description":"Bcc email addresses","items":{"$ref":"#/components/schemas/Address"}},"file":{"$ref":"#/components/schemas/AttachmentsRelation"}}},"SearchParams":{"type":"object","required":["q"],"properties":{"q":{"description":"Lucene query syntax supported with ElasticSearch","type":"string","example":"subject:\\"Request for solar panel price\\" AND _tags:INBOX"},"from":{"type":"integer","minimum":0,"default":0},"size":{"type":"integer","minimum":1,"default":10}}}}},"servers":[{"url":"https://message.sls.epilot.io"},{"url":"https://message.sls.epilot.io"}]}')}},s={};return function t(a){if(s[a])return s[a].exports;var r=s[a]={exports:{}};return e[a].call(r.exports,r,r.exports,t),r.exports}(914)})());
1
+ !function(e,a){for(var r in a)e[r]=a[r];a.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(exports,(()=>{"use strict";var e={914:function(e,a,r){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});var t=s(r(946));a.default=t.default},946:e=>{e.exports=JSON.parse('{"openapi":"3.0.2","info":{"title":"","version":""},"paths":{"/v1/message/messages":{"post":{"operationId":"sendMessage","requestBody":{"content":{"application/json":{}}}},"put":{"operationId":"updateMessage"}},"/v1/message/messages/{id}":{"get":{"operationId":"getMessage","parameters":[{"name":"id","in":"path","required":true}]},"delete":{"operationId":"deleteMessage","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/messages/{id}/trash":{"post":{"operationId":"trashMessage","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/messages/{id}/untrash":{"post":{"operationId":"untrashMessage","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/messages/{id}/read":{"post":{"operationId":"markReadMessage","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/messages/{id}/unread":{"post":{"operationId":"markUnreadMessage","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/threads:search":{"post":{"operationId":"searchThreads","requestBody":{"content":{"application/json":{}}}}},"/v1/message/threads":{"put":{"operationId":"updateThread"}},"/v1/message/threads/{id}":{"delete":{"operationId":"deleteThread","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/threads/{id}/trash":{"post":{"operationId":"trashThread","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/threads/{id}/untrash":{"post":{"operationId":"untrashThread","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/threads/{id}/read":{"post":{"operationId":"markReadThread","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/threads/{id}/unread":{"post":{"operationId":"markUnreadThread","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/threads/{id}/assign":{"post":{"operationId":"assignThread","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/message/drafts":{"post":{"operationId":"createDraft","requestBody":{"content":{"application/json":{}}}}},"/v1/message/drafts:send":{"post":{"operationId":"sendDraft"}}},"components":{},"servers":[{"url":"https://message.sls.epilot.io"}]}')}},a={};return function r(s){if(a[s])return a[s].exports;var t=a[s]={exports:{}};return e[s].call(t.exports,t,t.exports,r),t.exports}(914)})());
@@ -0,0 +1,206 @@
1
+ {
2
+ "openapi": "3.0.2",
3
+ "info": {
4
+ "title": "",
5
+ "version": ""
6
+ },
7
+ "paths": {
8
+ "/v1/message/messages": {
9
+ "post": {
10
+ "operationId": "sendMessage",
11
+ "requestBody": {
12
+ "content": {
13
+ "application/json": {}
14
+ }
15
+ }
16
+ },
17
+ "put": {
18
+ "operationId": "updateMessage"
19
+ }
20
+ },
21
+ "/v1/message/messages/{id}": {
22
+ "get": {
23
+ "operationId": "getMessage",
24
+ "parameters": [
25
+ {
26
+ "name": "id",
27
+ "in": "path",
28
+ "required": true
29
+ }
30
+ ]
31
+ },
32
+ "delete": {
33
+ "operationId": "deleteMessage",
34
+ "parameters": [
35
+ {
36
+ "name": "id",
37
+ "in": "path",
38
+ "required": true
39
+ }
40
+ ]
41
+ }
42
+ },
43
+ "/v1/message/messages/{id}/trash": {
44
+ "post": {
45
+ "operationId": "trashMessage",
46
+ "parameters": [
47
+ {
48
+ "name": "id",
49
+ "in": "path",
50
+ "required": true
51
+ }
52
+ ]
53
+ }
54
+ },
55
+ "/v1/message/messages/{id}/untrash": {
56
+ "post": {
57
+ "operationId": "untrashMessage",
58
+ "parameters": [
59
+ {
60
+ "name": "id",
61
+ "in": "path",
62
+ "required": true
63
+ }
64
+ ]
65
+ }
66
+ },
67
+ "/v1/message/messages/{id}/read": {
68
+ "post": {
69
+ "operationId": "markReadMessage",
70
+ "parameters": [
71
+ {
72
+ "name": "id",
73
+ "in": "path",
74
+ "required": true
75
+ }
76
+ ]
77
+ }
78
+ },
79
+ "/v1/message/messages/{id}/unread": {
80
+ "post": {
81
+ "operationId": "markUnreadMessage",
82
+ "parameters": [
83
+ {
84
+ "name": "id",
85
+ "in": "path",
86
+ "required": true
87
+ }
88
+ ]
89
+ }
90
+ },
91
+ "/v1/message/threads:search": {
92
+ "post": {
93
+ "operationId": "searchThreads",
94
+ "requestBody": {
95
+ "content": {
96
+ "application/json": {}
97
+ }
98
+ }
99
+ }
100
+ },
101
+ "/v1/message/threads": {
102
+ "put": {
103
+ "operationId": "updateThread"
104
+ }
105
+ },
106
+ "/v1/message/threads/{id}": {
107
+ "delete": {
108
+ "operationId": "deleteThread",
109
+ "parameters": [
110
+ {
111
+ "name": "id",
112
+ "in": "path",
113
+ "required": true
114
+ }
115
+ ]
116
+ }
117
+ },
118
+ "/v1/message/threads/{id}/trash": {
119
+ "post": {
120
+ "operationId": "trashThread",
121
+ "parameters": [
122
+ {
123
+ "name": "id",
124
+ "in": "path",
125
+ "required": true
126
+ }
127
+ ]
128
+ }
129
+ },
130
+ "/v1/message/threads/{id}/untrash": {
131
+ "post": {
132
+ "operationId": "untrashThread",
133
+ "parameters": [
134
+ {
135
+ "name": "id",
136
+ "in": "path",
137
+ "required": true
138
+ }
139
+ ]
140
+ }
141
+ },
142
+ "/v1/message/threads/{id}/read": {
143
+ "post": {
144
+ "operationId": "markReadThread",
145
+ "parameters": [
146
+ {
147
+ "name": "id",
148
+ "in": "path",
149
+ "required": true
150
+ }
151
+ ]
152
+ }
153
+ },
154
+ "/v1/message/threads/{id}/unread": {
155
+ "post": {
156
+ "operationId": "markUnreadThread",
157
+ "parameters": [
158
+ {
159
+ "name": "id",
160
+ "in": "path",
161
+ "required": true
162
+ }
163
+ ]
164
+ }
165
+ },
166
+ "/v1/message/threads/{id}/assign": {
167
+ "post": {
168
+ "operationId": "assignThread",
169
+ "parameters": [
170
+ {
171
+ "name": "id",
172
+ "in": "path",
173
+ "required": true
174
+ }
175
+ ],
176
+ "requestBody": {
177
+ "required": true,
178
+ "content": {
179
+ "application/json": {}
180
+ }
181
+ }
182
+ }
183
+ },
184
+ "/v1/message/drafts": {
185
+ "post": {
186
+ "operationId": "createDraft",
187
+ "requestBody": {
188
+ "content": {
189
+ "application/json": {}
190
+ }
191
+ }
192
+ }
193
+ },
194
+ "/v1/message/drafts:send": {
195
+ "post": {
196
+ "operationId": "sendDraft"
197
+ }
198
+ }
199
+ },
200
+ "components": {},
201
+ "servers": [
202
+ {
203
+ "url": "https://message.sls.epilot.io"
204
+ }
205
+ ]
206
+ }
package/dist/openapi.d.ts CHANGED
@@ -275,6 +275,10 @@ declare namespace Components {
275
275
  */
276
276
  bcc?: Address[];
277
277
  file?: /* Message attachments */ AttachmentsRelation;
278
+ /**
279
+ * This flag lets the caller to send only the message and by-pass creating the entities
280
+ */
281
+ do_not_create_entities?: boolean;
278
282
  }
279
283
  export interface SearchParams {
280
284
  /**