hostinger-mail-api-sdk 1.0.2
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 +91 -0
- package/CODEOWNERS +1 -0
- package/README.md +9 -0
- package/api.ts +3760 -0
- package/base.ts +83 -0
- package/common.ts +111 -0
- package/configuration.ts +72 -0
- package/dist/api.d.ts +2426 -0
- package/dist/api.js +2484 -0
- package/dist/base.d.ts +63 -0
- package/dist/base.js +62 -0
- package/dist/common.d.ts +47 -0
- package/dist/common.js +118 -0
- package/dist/configuration.d.ts +51 -0
- package/dist/configuration.js +37 -0
- package/dist/esm/api.d.ts +2426 -0
- package/dist/esm/api.js +2457 -0
- package/dist/esm/base.d.ts +63 -0
- package/dist/esm/base.js +57 -0
- package/dist/esm/common.d.ts +47 -0
- package/dist/esm/common.js +109 -0
- package/dist/esm/configuration.d.ts +51 -0
- package/dist/esm/configuration.js +33 -0
- package/dist/esm/index.d.ts +10 -0
- package/dist/esm/index.js +12 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +28 -0
- package/docs/AccountApi.md +55 -0
- package/docs/Error.md +25 -0
- package/docs/FoldersApi.md +259 -0
- package/docs/MessagesApi.md +860 -0
- package/docs/Pagination.md +27 -0
- package/docs/QuotaApi.md +63 -0
- package/docs/SendApi.md +68 -0
- package/docs/V1FolderMessagesCollection.md +23 -0
- package/docs/V1FolderMessagesDeleteBulkRequest.md +21 -0
- package/docs/V1FolderMessagesFlagsBulkRequest.md +25 -0
- package/docs/V1FolderMessagesFlagsRequest.md +23 -0
- package/docs/V1FolderMessagesMessage.md +47 -0
- package/docs/V1FolderMessagesMessageAddress.md +23 -0
- package/docs/V1FolderMessagesMessageAttachment.md +31 -0
- package/docs/V1FolderMessagesMessageText.md +23 -0
- package/docs/V1FolderMessagesMessageTextResource.md +21 -0
- package/docs/V1FolderMessagesMoveBulkRequest.md +23 -0
- package/docs/V1FolderMessagesMoveRequest.md +21 -0
- package/docs/V1FolderMessagesResource.md +21 -0
- package/docs/V1FolderMessagesSearchRequest.md +45 -0
- package/docs/V1FolderMessagesUpdateFlagsResult.md +21 -0
- package/docs/V1FolderMessagesUpdateFlagsResultData.md +22 -0
- package/docs/V1FolderMessagesUpdateFlagsResultDataFailedInner.md +22 -0
- package/docs/V1FoldersCollection.md +23 -0
- package/docs/V1FoldersCreateRequest.md +21 -0
- package/docs/V1FoldersFolder.md +31 -0
- package/docs/V1FoldersResource.md +21 -0
- package/docs/V1FoldersUpdateRequest.md +21 -0
- package/docs/V1MeMailbox.md +23 -0
- package/docs/V1MeResource.md +21 -0
- package/docs/V1MeResourceData.md +22 -0
- package/docs/V1QuotaQuota.md +29 -0
- package/docs/V1QuotaQuotaResource.md +27 -0
- package/docs/V1QuotaResource.md +21 -0
- package/docs/V1SendAttachment.md +29 -0
- package/docs/V1SendRequest.md +35 -0
- package/docs/V1WebhooksCollection.md +23 -0
- package/docs/V1WebhooksCreateRequest.md +29 -0
- package/docs/V1WebhooksResource.md +21 -0
- package/docs/V1WebhooksResourceWithSecret.md +21 -0
- package/docs/V1WebhooksTestResult.md +21 -0
- package/docs/V1WebhooksTestResultData.md +24 -0
- package/docs/V1WebhooksUpdateRequest.md +29 -0
- package/docs/V1WebhooksWebhook.md +39 -0
- package/docs/V1WebhooksWebhookWithSecret.md +41 -0
- package/docs/WebhooksApi.md +439 -0
- package/index.ts +15 -0
- package/package.json +34 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
name: build-release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
release:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
permissions:
|
|
12
|
+
id-token: write
|
|
13
|
+
contents: write
|
|
14
|
+
outputs:
|
|
15
|
+
new_version: ${{ steps.version.outputs.version }}
|
|
16
|
+
released: ${{ steps.version.outputs.released }}
|
|
17
|
+
steps:
|
|
18
|
+
- name: Repo checkout
|
|
19
|
+
uses: actions/checkout@v4
|
|
20
|
+
with:
|
|
21
|
+
fetch-depth: 0
|
|
22
|
+
|
|
23
|
+
- name: Resolve version from package.json
|
|
24
|
+
id: version
|
|
25
|
+
run: |
|
|
26
|
+
VERSION=$(jq -r .version package.json)
|
|
27
|
+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
|
28
|
+
if git rev-parse "v$VERSION" >/dev/null 2>&1; then
|
|
29
|
+
echo "released=false" >> "$GITHUB_OUTPUT"
|
|
30
|
+
echo "Tag v$VERSION already exists — skipping release."
|
|
31
|
+
else
|
|
32
|
+
echo "released=true" >> "$GITHUB_OUTPUT"
|
|
33
|
+
fi
|
|
34
|
+
|
|
35
|
+
- name: Create release
|
|
36
|
+
if: steps.version.outputs.released == 'true'
|
|
37
|
+
uses: ncipollo/release-action@v1
|
|
38
|
+
with:
|
|
39
|
+
tag: v${{ steps.version.outputs.version }}
|
|
40
|
+
generateReleaseNotes: true
|
|
41
|
+
|
|
42
|
+
publish-npmjs:
|
|
43
|
+
runs-on: ubuntu-latest
|
|
44
|
+
needs: [release]
|
|
45
|
+
if: needs.release.outputs.released == 'true'
|
|
46
|
+
permissions:
|
|
47
|
+
contents: read
|
|
48
|
+
id-token: write
|
|
49
|
+
steps:
|
|
50
|
+
- uses: actions/checkout@v4
|
|
51
|
+
|
|
52
|
+
- uses: actions/setup-node@v4
|
|
53
|
+
with:
|
|
54
|
+
node-version: '20.x'
|
|
55
|
+
registry-url: 'https://registry.npmjs.org'
|
|
56
|
+
|
|
57
|
+
- name: Update NPM
|
|
58
|
+
run: npm install -g npm@latest
|
|
59
|
+
|
|
60
|
+
- name: Install dependencies
|
|
61
|
+
run: npm install
|
|
62
|
+
|
|
63
|
+
- name: Publish package
|
|
64
|
+
run: npm publish --provenance --access public
|
|
65
|
+
|
|
66
|
+
publish-github:
|
|
67
|
+
runs-on: ubuntu-latest
|
|
68
|
+
needs: [release]
|
|
69
|
+
if: needs.release.outputs.released == 'true'
|
|
70
|
+
permissions:
|
|
71
|
+
contents: read
|
|
72
|
+
id-token: write
|
|
73
|
+
packages: write
|
|
74
|
+
steps:
|
|
75
|
+
- uses: actions/checkout@v4
|
|
76
|
+
|
|
77
|
+
- uses: actions/setup-node@v4
|
|
78
|
+
with:
|
|
79
|
+
node-version: '20.x'
|
|
80
|
+
registry-url: 'https://npm.pkg.github.com'
|
|
81
|
+
scope: '@hostinger'
|
|
82
|
+
|
|
83
|
+
- name: Install dependencies
|
|
84
|
+
run: npm install
|
|
85
|
+
|
|
86
|
+
- name: Publish package
|
|
87
|
+
run: |
|
|
88
|
+
sed -i 's+"name": ".*+"name": "@${{ github.repository }}",+gI' ./package.json
|
|
89
|
+
npm publish --provenance --access public
|
|
90
|
+
env:
|
|
91
|
+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
package/CODEOWNERS
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @hostinger/email
|