@hedia/types 2.1.30-alpha.1 → 2.1.30-alpha.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.
@@ -8,7 +8,7 @@ env:
8
8
  NPM_TOKEN: ${{ secrets.HEDIA_BOT_NPM_TOKEN }}
9
9
 
10
10
  jobs:
11
- publish-alpha-build:
11
+ publish-alpha-npm-package:
12
12
  runs-on: ubuntu-latest
13
13
  steps:
14
14
  - uses: actions/checkout@v2
@@ -37,4 +37,5 @@ jobs:
37
37
  issue-number: ${{ github.event.pull_request.number }}
38
38
  body: |
39
39
  🎉Successfully released alpha version🎉
40
- ✅${{ steps.publish-alpha.outputs.version }}✅
40
+ ✅${{ steps.publish-alpha.outputs.version }}✅
41
+
@@ -11,7 +11,7 @@ env:
11
11
  NPM_TOKEN: ${{ secrets.HEDIA_BOT_NPM_TOKEN }}
12
12
 
13
13
  jobs:
14
- publish-build:
14
+ publish-npm-package:
15
15
  runs-on: ubuntu-latest
16
16
  steps:
17
17
  - uses: actions/checkout@v2
@@ -19,7 +19,7 @@ jobs:
19
19
  with:
20
20
  node-version: '14'
21
21
  - name: Register ssh keys
22
- uses: webfactory/ssh-agent@v0.4.1
22
+ uses: webfactory/ssh-agent@v0.5.3
23
23
  with:
24
24
  ssh-private-key: ${{ env.SSH_PRIVATE_KEY }}
25
25
  - name: Register NPM access token
@@ -7,7 +7,7 @@ env:
7
7
  NPM_TOKEN: ${{ secrets.HEDIA_BOT_NPM_TOKEN }}
8
8
 
9
9
  jobs:
10
- version-check-build:
10
+ version-check:
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
13
  - uses: actions/checkout@v2
@@ -15,7 +15,7 @@ jobs:
15
15
  with:
16
16
  node-version: '14'
17
17
  - name: Register ssh keys
18
- uses: webfactory/ssh-agent@v0.4.1
18
+ uses: webfactory/ssh-agent@v0.5.3
19
19
  with:
20
20
  ssh-private-key: |
21
21
  ${{ env.SSH_PRIVATE_KEY }}
@@ -0,0 +1,16 @@
1
+ export declare namespace NotificationService {
2
+ namespace Types {
3
+ interface Notification {
4
+ title: string;
5
+ body: string;
6
+ }
7
+ interface FcmData {
8
+ [key: string]: string;
9
+ }
10
+ interface INotificationOptions {
11
+ notification: Notification;
12
+ data?: FcmData;
13
+ registrationToken: string;
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=notification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.js","sourceRoot":"","sources":["../../../../types/services/outbound/notification.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedia/types",
3
- "version": "2.1.30-alpha.1",
3
+ "version": "2.1.30-alpha.3",
4
4
  "description": "Enums, interfaces, and other common types for use in Hedia's software.",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -0,0 +1,18 @@
1
+ export namespace NotificationService {
2
+ export namespace Types {
3
+ export interface Notification {
4
+ title: string;
5
+ body: string;
6
+ }
7
+
8
+ export interface FcmData {
9
+ [key: string]: string;
10
+ }
11
+
12
+ export interface INotificationOptions {
13
+ notification: Notification;
14
+ data?: FcmData;
15
+ registrationToken: string;
16
+ }
17
+ }
18
+ }