@epilot/message-client 1.3.1 → 1.3.3

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.
@@ -1 +1 @@
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)})());
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","parameters":[{"in":"query","name":"do_not_create_entities"}],"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)})());
@@ -8,6 +8,12 @@
8
8
  "/v1/message/messages": {
9
9
  "post": {
10
10
  "operationId": "sendMessage",
11
+ "parameters": [
12
+ {
13
+ "in": "query",
14
+ "name": "do_not_create_entities"
15
+ }
16
+ ],
11
17
  "requestBody": {
12
18
  "content": {
13
19
  "application/json": {}
package/dist/openapi.d.ts CHANGED
@@ -275,10 +275,6 @@ 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;
282
278
  }
283
279
  export interface SearchParams {
284
280
  /**
@@ -918,6 +914,12 @@ declare namespace Paths {
918
914
  }
919
915
  }
920
916
  namespace SendMessage {
917
+ namespace Parameters {
918
+ export type DoNotCreateEntities = boolean;
919
+ }
920
+ export interface QueryParameters {
921
+ do_not_create_entities?: Parameters.DoNotCreateEntities;
922
+ }
921
923
  export type RequestBody = Components.Schemas.MessageRequestParams;
922
924
  namespace Responses {
923
925
  export interface $201 {
@@ -1323,7 +1325,7 @@ export interface OperationMethods {
1323
1325
  * Send an email message
1324
1326
  */
1325
1327
  'sendMessage'(
1326
- parameters?: Parameters<UnknownParamsObject> | null,
1328
+ parameters?: Parameters<Paths.SendMessage.QueryParameters> | null,
1327
1329
  data?: Paths.SendMessage.RequestBody,
1328
1330
  config?: AxiosRequestConfig
1329
1331
  ): OperationResponse<Paths.SendMessage.Responses.$201>
@@ -1502,7 +1504,7 @@ export interface PathsDictionary {
1502
1504
  * Send an email message
1503
1505
  */
1504
1506
  'post'(
1505
- parameters?: Parameters<UnknownParamsObject> | null,
1507
+ parameters?: Parameters<Paths.SendMessage.QueryParameters> | null,
1506
1508
  data?: Paths.SendMessage.RequestBody,
1507
1509
  config?: AxiosRequestConfig
1508
1510
  ): OperationResponse<Paths.SendMessage.Responses.$201>
package/dist/openapi.json CHANGED
@@ -30,8 +30,17 @@
30
30
  "operationId": "sendMessage",
31
31
  "summary": "sendMessage",
32
32
  "description": "Send an email message",
33
- "tags": [
34
- "Messages"
33
+ "tags": null,
34
+ "parameters": [
35
+ {
36
+ "in": "query",
37
+ "name": "do_not_create_entities",
38
+ "description": "When true, this flag lets the caller to send only the message and by-pass creating the thread & message entities.",
39
+ "schema": {
40
+ "default": false,
41
+ "type": "boolean"
42
+ }
43
+ }
35
44
  ],
36
45
  "requestBody": {
37
46
  "content": {
@@ -1054,10 +1063,6 @@
1054
1063
  },
1055
1064
  "file": {
1056
1065
  "$ref": "#/components/schemas/AttachmentsRelation"
1057
- },
1058
- "do_not_create_entities": {
1059
- "type": "boolean",
1060
- "description": "This flag lets the caller to send only the message and by-pass creating the entities"
1061
1066
  }
1062
1067
  }
1063
1068
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/message-client",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "API Client for epilot Message API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",