@epilot/message-client 1.5.0 → 1.5.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/dist/openapi.d.ts CHANGED
@@ -402,7 +402,7 @@ declare namespace Components {
402
402
  /**
403
403
  * If true then html is not provided and must be downloaded using the html_download_url
404
404
  */
405
- html_ommitted?: boolean;
405
+ html_omitted?: boolean;
406
406
  /**
407
407
  * HTML body download URL
408
408
  * example:
@@ -671,13 +671,21 @@ declare namespace Paths {
671
671
  }
672
672
  namespace GetMessage {
673
673
  namespace Parameters {
674
+ /**
675
+ * example:
676
+ * 4d74976d-fb64-47fd-85e2-65eea140f5eb
677
+ */
674
678
  export type Id = string;
675
679
  }
676
680
  export interface PathParameters {
677
- id: Parameters.Id;
681
+ id: /**
682
+ * example:
683
+ * 4d74976d-fb64-47fd-85e2-65eea140f5eb
684
+ */
685
+ Parameters.Id;
678
686
  }
679
687
  namespace Responses {
680
- export interface $201 {
688
+ export interface $200 {
681
689
  /**
682
690
  * Entity ID
683
691
  * example:
@@ -809,13 +817,21 @@ declare namespace Paths {
809
817
  }
810
818
  namespace GetMessageV2 {
811
819
  namespace Parameters {
820
+ /**
821
+ * example:
822
+ * 4d74976d-fb64-47fd-85e2-65eea140f5eb
823
+ */
812
824
  export type Id = string;
813
825
  }
814
826
  export interface PathParameters {
815
- id: Parameters.Id;
827
+ id: /**
828
+ * example:
829
+ * 4d74976d-fb64-47fd-85e2-65eea140f5eb
830
+ */
831
+ Parameters.Id;
816
832
  }
817
833
  namespace Responses {
818
- export interface $201 {
834
+ export interface $200 {
819
835
  /**
820
836
  * Entity ID
821
837
  * example:
@@ -941,7 +957,7 @@ declare namespace Paths {
941
957
  /**
942
958
  * If true then html is not provided and must be downloaded using the html_download_url
943
959
  */
944
- html_ommitted?: boolean;
960
+ html_omitted?: boolean;
945
961
  /**
946
962
  * HTML body download URL
947
963
  * example:
@@ -1643,7 +1659,7 @@ export interface OperationMethods {
1643
1659
  parameters?: Parameters<Paths.GetMessage.PathParameters> | null,
1644
1660
  data?: any,
1645
1661
  config?: AxiosRequestConfig
1646
- ): OperationResponse<Paths.GetMessage.Responses.$201>
1662
+ ): OperationResponse<Paths.GetMessage.Responses.$200>
1647
1663
  /**
1648
1664
  * deleteMessage - deleteMessage
1649
1665
  *
@@ -1814,13 +1830,23 @@ export interface OperationMethods {
1814
1830
  /**
1815
1831
  * getMessageV2 - getMessageV2
1816
1832
  *
1817
- * Get an email message by id
1833
+ * - Fetches message by ID
1834
+ * - If the message html is omitted on the entity, then it keeps the content on the message as a signed url
1835
+ * {
1836
+ * ...
1837
+ * _id: "4d74976d-fb64-47fd-85e2-65eea140f5eb",
1838
+ * _schema: "message",
1839
+ * _org: "org-123",
1840
+ * html_omitted: true,
1841
+ * html_download_url: "https://s3.eu-central-1.amazonaws.com/epilot-attachments/3f34ce73-089c-4d45-a5ee-c161234e41c3/3f34ce73-089c-4d45-a5ee-c161234e41c3.html"
1842
+ * }
1843
+ *
1818
1844
  */
1819
1845
  'getMessageV2'(
1820
1846
  parameters?: Parameters<Paths.GetMessageV2.PathParameters> | null,
1821
1847
  data?: any,
1822
1848
  config?: AxiosRequestConfig
1823
- ): OperationResponse<Paths.GetMessageV2.Responses.$201>
1849
+ ): OperationResponse<Paths.GetMessageV2.Responses.$200>
1824
1850
  }
1825
1851
 
1826
1852
  export interface PathsDictionary {
@@ -1856,7 +1882,7 @@ export interface PathsDictionary {
1856
1882
  parameters?: Parameters<Paths.GetMessage.PathParameters> | null,
1857
1883
  data?: any,
1858
1884
  config?: AxiosRequestConfig
1859
- ): OperationResponse<Paths.GetMessage.Responses.$201>
1885
+ ): OperationResponse<Paths.GetMessage.Responses.$200>
1860
1886
  /**
1861
1887
  * deleteMessage - deleteMessage
1862
1888
  *
@@ -2059,13 +2085,23 @@ export interface PathsDictionary {
2059
2085
  /**
2060
2086
  * getMessageV2 - getMessageV2
2061
2087
  *
2062
- * Get an email message by id
2088
+ * - Fetches message by ID
2089
+ * - If the message html is omitted on the entity, then it keeps the content on the message as a signed url
2090
+ * {
2091
+ * ...
2092
+ * _id: "4d74976d-fb64-47fd-85e2-65eea140f5eb",
2093
+ * _schema: "message",
2094
+ * _org: "org-123",
2095
+ * html_omitted: true,
2096
+ * html_download_url: "https://s3.eu-central-1.amazonaws.com/epilot-attachments/3f34ce73-089c-4d45-a5ee-c161234e41c3/3f34ce73-089c-4d45-a5ee-c161234e41c3.html"
2097
+ * }
2098
+ *
2063
2099
  */
2064
2100
  'get'(
2065
2101
  parameters?: Parameters<Paths.GetMessageV2.PathParameters> | null,
2066
2102
  data?: any,
2067
2103
  config?: AxiosRequestConfig
2068
- ): OperationResponse<Paths.GetMessageV2.Responses.$201>
2104
+ ): OperationResponse<Paths.GetMessageV2.Responses.$200>
2069
2105
  }
2070
2106
  }
2071
2107
 
package/dist/openapi.json CHANGED
@@ -122,12 +122,13 @@
122
122
  "in": "path",
123
123
  "required": true,
124
124
  "schema": {
125
- "type": "string"
125
+ "type": "string",
126
+ "example": "4d74976d-fb64-47fd-85e2-65eea140f5eb"
126
127
  }
127
128
  }
128
129
  ],
129
130
  "responses": {
130
- "201": {
131
+ "200": {
131
132
  "description": "Success",
132
133
  "content": {
133
134
  "application/json": {
@@ -145,13 +146,13 @@
145
146
  }
146
147
  },
147
148
  "302": {
148
- "description": "Redirect to download URL",
149
+ "description": "Redirect to V2 API to fetch the download URL",
149
150
  "headers": {
150
151
  "Location": {
151
- "description": "Download URL",
152
+ "description": "V2 API",
152
153
  "schema": {
153
154
  "type": "string",
154
- "example": "https://s3.eu-central-1.amazonaws.com/epilot-attachments/3f34ce73-089c-4d45-a5ee-c161234e41c3/3f34ce73-089c-4d45-a5ee-c161234e41c3.html"
155
+ "example": "https://message.sls.epilot.io/v2/messages/4d74976d-fb64-47fd-85e2-65eea140f5eb"
155
156
  }
156
157
  }
157
158
  }
@@ -728,7 +729,7 @@
728
729
  "get": {
729
730
  "operationId": "getMessageV2",
730
731
  "summary": "getMessageV2",
731
- "description": "Get an email message by id",
732
+ "description": "- Fetches message by ID\n- If the message html is omitted on the entity, then it keeps the content on the message as a signed url\n {\n ...\n _id: \"4d74976d-fb64-47fd-85e2-65eea140f5eb\",\n _schema: \"message\",\n _org: \"org-123\",\n html_omitted: true,\n html_download_url: \"https://s3.eu-central-1.amazonaws.com/epilot-attachments/3f34ce73-089c-4d45-a5ee-c161234e41c3/3f34ce73-089c-4d45-a5ee-c161234e41c3.html\"\n }\n",
732
733
  "tags": [
733
734
  "Messages"
734
735
  ],
@@ -739,12 +740,13 @@
739
740
  "in": "path",
740
741
  "required": true,
741
742
  "schema": {
742
- "type": "string"
743
+ "type": "string",
744
+ "example": "4d74976d-fb64-47fd-85e2-65eea140f5eb"
743
745
  }
744
746
  }
745
747
  ],
746
748
  "responses": {
747
- "201": {
749
+ "200": {
748
750
  "description": "Success",
749
751
  "content": {
750
752
  "application/json": {
@@ -1010,7 +1012,7 @@
1010
1012
  }
1011
1013
  ],
1012
1014
  "properties": {
1013
- "html_ommitted": {
1015
+ "html_omitted": {
1014
1016
  "type": "boolean",
1015
1017
  "description": "If true then html is not provided and must be downloaded using the html_download_url",
1016
1018
  "default": false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/message-client",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "API Client for epilot Message API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",