hostinger-mail-api-sdk 1.0.2 → 1.17.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/.github/workflows/build-release.yaml +29 -1
- package/README.md +2 -2
- package/api.ts +33 -2
- package/base.ts +2 -2
- package/common.ts +2 -2
- package/configuration.ts +3 -3
- package/dist/api.d.ts +33 -2
- package/dist/api.js +2 -2
- package/dist/base.d.ts +2 -2
- package/dist/base.js +2 -2
- package/dist/common.d.ts +2 -2
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +3 -3
- package/dist/esm/api.d.ts +33 -2
- package/dist/esm/api.js +2 -2
- package/dist/esm/base.d.ts +2 -2
- package/dist/esm/base.js +2 -2
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +2 -2
- package/dist/esm/configuration.d.ts +2 -2
- package/dist/esm/configuration.js +3 -3
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/docs/V1SendMessageRef.md +23 -0
- package/docs/V1SendRequest.md +4 -0
- package/index.ts +2 -2
- package/package.json +2 -2
|
@@ -51,7 +51,7 @@ jobs:
|
|
|
51
51
|
|
|
52
52
|
- uses: actions/setup-node@v4
|
|
53
53
|
with:
|
|
54
|
-
node-version: '
|
|
54
|
+
node-version: '26.x'
|
|
55
55
|
registry-url: 'https://registry.npmjs.org'
|
|
56
56
|
|
|
57
57
|
- name: Update NPM
|
|
@@ -89,3 +89,31 @@ jobs:
|
|
|
89
89
|
npm publish --provenance --access public
|
|
90
90
|
env:
|
|
91
91
|
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
92
|
+
|
|
93
|
+
notify-failure:
|
|
94
|
+
needs: [release, publish-npmjs, publish-github]
|
|
95
|
+
if: failure()
|
|
96
|
+
runs-on: ubuntu-latest
|
|
97
|
+
steps:
|
|
98
|
+
- name: Notify Slack on release failure
|
|
99
|
+
uses: slackapi/slack-github-action@v2.1.0
|
|
100
|
+
with:
|
|
101
|
+
errors: true
|
|
102
|
+
webhook: ${{ secrets.PLATFORM_INCIDENT_SLACK_CHANNEL_WEBHOOK }}
|
|
103
|
+
webhook-type: incoming-webhook
|
|
104
|
+
payload: |
|
|
105
|
+
text: ":rotating_light: Release failed in ${{ github.repository }}"
|
|
106
|
+
blocks:
|
|
107
|
+
- type: section
|
|
108
|
+
text:
|
|
109
|
+
type: mrkdwn
|
|
110
|
+
text: |
|
|
111
|
+
:rotating_light: *Release failed:* `${{ github.repository }}`
|
|
112
|
+
*Commit:* <${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>
|
|
113
|
+
- type: actions
|
|
114
|
+
elements:
|
|
115
|
+
- type: button
|
|
116
|
+
text:
|
|
117
|
+
type: plain_text
|
|
118
|
+
text: "View failed run"
|
|
119
|
+
url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|
package/README.md
CHANGED
package/api.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Hostinger
|
|
4
|
+
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.1.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -788,6 +788,25 @@ export interface V1SendAttachment {
|
|
|
788
788
|
*/
|
|
789
789
|
'encoding': string;
|
|
790
790
|
}
|
|
791
|
+
/**
|
|
792
|
+
* Reference to a source message by UID within a folder, used for reply/forward threading. Both fields are required.
|
|
793
|
+
* @export
|
|
794
|
+
* @interface V1SendMessageRef
|
|
795
|
+
*/
|
|
796
|
+
export interface V1SendMessageRef {
|
|
797
|
+
/**
|
|
798
|
+
* UID of the source message.
|
|
799
|
+
* @type {number}
|
|
800
|
+
* @memberof V1SendMessageRef
|
|
801
|
+
*/
|
|
802
|
+
'uid': number;
|
|
803
|
+
/**
|
|
804
|
+
* Folder containing the source message.
|
|
805
|
+
* @type {string}
|
|
806
|
+
* @memberof V1SendMessageRef
|
|
807
|
+
*/
|
|
808
|
+
'folder': string;
|
|
809
|
+
}
|
|
791
810
|
/**
|
|
792
811
|
* Outgoing message payload. At least one of to, cc, or bcc must be present.
|
|
793
812
|
* @export
|
|
@@ -842,6 +861,18 @@ export interface V1SendRequest {
|
|
|
842
861
|
* @memberof V1SendRequest
|
|
843
862
|
*/
|
|
844
863
|
'attachments': Array<V1SendAttachment>;
|
|
864
|
+
/**
|
|
865
|
+
* Source message this is a reply to. Copies its Message-Id/References into In-Reply-To/References and flags it \\Answered. Mutually exclusive with forwardOf.
|
|
866
|
+
* @type {V1SendMessageRef}
|
|
867
|
+
* @memberof V1SendRequest
|
|
868
|
+
*/
|
|
869
|
+
'inReplyTo': V1SendMessageRef;
|
|
870
|
+
/**
|
|
871
|
+
* Source message this forwards. Copies its Message-Id/References into In-Reply-To/References and flags it $forwarded. Mutually exclusive with inReplyTo.
|
|
872
|
+
* @type {V1SendMessageRef}
|
|
873
|
+
* @memberof V1SendRequest
|
|
874
|
+
*/
|
|
875
|
+
'forwardOf': V1SendMessageRef;
|
|
845
876
|
}
|
|
846
877
|
/**
|
|
847
878
|
* Paginated list of webhooks.
|
package/base.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Hostinger
|
|
4
|
+
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.1.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/common.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Hostinger
|
|
4
|
+
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.1.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/configuration.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Hostinger
|
|
4
|
+
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.1.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -48,7 +48,7 @@ export class Configuration {
|
|
|
48
48
|
this.baseOptions = {
|
|
49
49
|
...param.baseOptions,
|
|
50
50
|
headers: {
|
|
51
|
-
'User-Agent': "hostinger-mail-typescript-sdk/1.
|
|
51
|
+
'User-Agent': "hostinger-mail-typescript-sdk/1.17.1",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hostinger
|
|
2
|
+
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -780,6 +780,25 @@ export interface V1SendAttachment {
|
|
|
780
780
|
*/
|
|
781
781
|
'encoding': string;
|
|
782
782
|
}
|
|
783
|
+
/**
|
|
784
|
+
* Reference to a source message by UID within a folder, used for reply/forward threading. Both fields are required.
|
|
785
|
+
* @export
|
|
786
|
+
* @interface V1SendMessageRef
|
|
787
|
+
*/
|
|
788
|
+
export interface V1SendMessageRef {
|
|
789
|
+
/**
|
|
790
|
+
* UID of the source message.
|
|
791
|
+
* @type {number}
|
|
792
|
+
* @memberof V1SendMessageRef
|
|
793
|
+
*/
|
|
794
|
+
'uid': number;
|
|
795
|
+
/**
|
|
796
|
+
* Folder containing the source message.
|
|
797
|
+
* @type {string}
|
|
798
|
+
* @memberof V1SendMessageRef
|
|
799
|
+
*/
|
|
800
|
+
'folder': string;
|
|
801
|
+
}
|
|
783
802
|
/**
|
|
784
803
|
* Outgoing message payload. At least one of to, cc, or bcc must be present.
|
|
785
804
|
* @export
|
|
@@ -834,6 +853,18 @@ export interface V1SendRequest {
|
|
|
834
853
|
* @memberof V1SendRequest
|
|
835
854
|
*/
|
|
836
855
|
'attachments': Array<V1SendAttachment>;
|
|
856
|
+
/**
|
|
857
|
+
* Source message this is a reply to. Copies its Message-Id/References into In-Reply-To/References and flags it \\Answered. Mutually exclusive with forwardOf.
|
|
858
|
+
* @type {V1SendMessageRef}
|
|
859
|
+
* @memberof V1SendRequest
|
|
860
|
+
*/
|
|
861
|
+
'inReplyTo': V1SendMessageRef;
|
|
862
|
+
/**
|
|
863
|
+
* Source message this forwards. Copies its Message-Id/References into In-Reply-To/References and flags it $forwarded. Mutually exclusive with inReplyTo.
|
|
864
|
+
* @type {V1SendMessageRef}
|
|
865
|
+
* @memberof V1SendRequest
|
|
866
|
+
*/
|
|
867
|
+
'forwardOf': V1SendMessageRef;
|
|
837
868
|
}
|
|
838
869
|
/**
|
|
839
870
|
* Paginated list of webhooks.
|
package/dist/api.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
* Hostinger
|
|
5
|
+
* Hostinger Mail API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.1.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hostinger
|
|
2
|
+
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/base.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
* Hostinger
|
|
5
|
+
* Hostinger Mail API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.1.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hostinger
|
|
2
|
+
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
* Hostinger
|
|
5
|
+
* Hostinger Mail API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.1.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hostinger
|
|
2
|
+
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
* Hostinger
|
|
5
|
+
* Hostinger Mail API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.1.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -16,7 +16,7 @@ class Configuration {
|
|
|
16
16
|
var _a;
|
|
17
17
|
this.accessToken = param.accessToken;
|
|
18
18
|
this.basePath = param.basePath;
|
|
19
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-mail-typescript-sdk/1.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-mail-typescript-sdk/1.17.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hostinger
|
|
2
|
+
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -780,6 +780,25 @@ export interface V1SendAttachment {
|
|
|
780
780
|
*/
|
|
781
781
|
'encoding': string;
|
|
782
782
|
}
|
|
783
|
+
/**
|
|
784
|
+
* Reference to a source message by UID within a folder, used for reply/forward threading. Both fields are required.
|
|
785
|
+
* @export
|
|
786
|
+
* @interface V1SendMessageRef
|
|
787
|
+
*/
|
|
788
|
+
export interface V1SendMessageRef {
|
|
789
|
+
/**
|
|
790
|
+
* UID of the source message.
|
|
791
|
+
* @type {number}
|
|
792
|
+
* @memberof V1SendMessageRef
|
|
793
|
+
*/
|
|
794
|
+
'uid': number;
|
|
795
|
+
/**
|
|
796
|
+
* Folder containing the source message.
|
|
797
|
+
* @type {string}
|
|
798
|
+
* @memberof V1SendMessageRef
|
|
799
|
+
*/
|
|
800
|
+
'folder': string;
|
|
801
|
+
}
|
|
783
802
|
/**
|
|
784
803
|
* Outgoing message payload. At least one of to, cc, or bcc must be present.
|
|
785
804
|
* @export
|
|
@@ -834,6 +853,18 @@ export interface V1SendRequest {
|
|
|
834
853
|
* @memberof V1SendRequest
|
|
835
854
|
*/
|
|
836
855
|
'attachments': Array<V1SendAttachment>;
|
|
856
|
+
/**
|
|
857
|
+
* Source message this is a reply to. Copies its Message-Id/References into In-Reply-To/References and flags it \\Answered. Mutually exclusive with forwardOf.
|
|
858
|
+
* @type {V1SendMessageRef}
|
|
859
|
+
* @memberof V1SendRequest
|
|
860
|
+
*/
|
|
861
|
+
'inReplyTo': V1SendMessageRef;
|
|
862
|
+
/**
|
|
863
|
+
* Source message this forwards. Copies its Message-Id/References into In-Reply-To/References and flags it $forwarded. Mutually exclusive with inReplyTo.
|
|
864
|
+
* @type {V1SendMessageRef}
|
|
865
|
+
* @memberof V1SendRequest
|
|
866
|
+
*/
|
|
867
|
+
'forwardOf': V1SendMessageRef;
|
|
837
868
|
}
|
|
838
869
|
/**
|
|
839
870
|
* Paginated list of webhooks.
|
package/dist/esm/api.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Hostinger
|
|
4
|
+
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.1.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hostinger
|
|
2
|
+
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/base.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Hostinger
|
|
4
|
+
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.1.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hostinger
|
|
2
|
+
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Hostinger
|
|
4
|
+
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.1.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hostinger
|
|
2
|
+
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Hostinger
|
|
4
|
+
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.1.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -13,7 +13,7 @@ export class Configuration {
|
|
|
13
13
|
var _a;
|
|
14
14
|
this.accessToken = param.accessToken;
|
|
15
15
|
this.basePath = param.basePath;
|
|
16
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-mail-typescript-sdk/1.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-mail-typescript-sdk/1.17.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hostinger
|
|
2
|
+
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Hostinger
|
|
4
|
+
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.1.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hostinger
|
|
2
|
+
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
* Hostinger
|
|
5
|
+
* Hostinger Mail API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.1.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# V1SendMessageRef
|
|
2
|
+
|
|
3
|
+
Reference to a source message by UID within a folder, used for reply/forward threading. Both fields are required.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**uid** | **number** | UID of the source message. | [default to undefined]
|
|
10
|
+
**folder** | **string** | Folder containing the source message. | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { V1SendMessageRef } from 'hostinger-mail-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: V1SendMessageRef = {
|
|
18
|
+
uid,
|
|
19
|
+
folder,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/V1SendRequest.md
CHANGED
|
@@ -14,6 +14,8 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**text** | **string** | | [optional] [default to undefined]
|
|
15
15
|
**html** | **string** | | [optional] [default to undefined]
|
|
16
16
|
**attachments** | [**Array<V1SendAttachment>**](V1SendAttachment.md) | | [optional] [default to undefined]
|
|
17
|
+
**inReplyTo** | [**V1SendMessageRef**](V1SendMessageRef.md) | Source message this is a reply to. Copies its Message-Id/References into In-Reply-To/References and flags it \\Answered. Mutually exclusive with forwardOf. | [optional] [default to undefined]
|
|
18
|
+
**forwardOf** | [**V1SendMessageRef**](V1SendMessageRef.md) | Source message this forwards. Copies its Message-Id/References into In-Reply-To/References and flags it $forwarded. Mutually exclusive with inReplyTo. | [optional] [default to undefined]
|
|
17
19
|
|
|
18
20
|
## Example
|
|
19
21
|
|
|
@@ -29,6 +31,8 @@ const instance: V1SendRequest = {
|
|
|
29
31
|
text,
|
|
30
32
|
html,
|
|
31
33
|
attachments,
|
|
34
|
+
inReplyTo,
|
|
35
|
+
forwardOf,
|
|
32
36
|
};
|
|
33
37
|
```
|
|
34
38
|
|
package/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Hostinger
|
|
4
|
+
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.1.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hostinger-mail-api-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.1",
|
|
4
4
|
"description": "Hostinger API TypeScript SDK",
|
|
5
5
|
"author": "Hostinger",
|
|
6
6
|
"repository": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"axios": "^1.8.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@types/node": "12.11.5 -
|
|
31
|
+
"@types/node": "12.11.5 - 26.1.2",
|
|
32
32
|
"typescript": "^4.0 || ^5.0"
|
|
33
33
|
}
|
|
34
34
|
}
|