@hedia/types 2.1.48-alpha.2 → 2.1.48-alpha.4

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.
@@ -0,0 +1,6 @@
1
+ <!--
2
+ ⚠️⚠️ If pointing to master ⚠️⚠️
3
+ -----------------------------
4
+ - Remember to include HDA on the PR title
5
+ - Remember to set the Label
6
+ --!>
@@ -32,5 +32,4 @@ jobs:
32
32
  issue-number: ${{ github.event.number }}
33
33
  github-token: ${{ secrets.GITHUB_TOKEN }}
34
34
  is-post-merge: true
35
- run-ci: true
36
- run-tsc: true
35
+ run-script: npm ci & npm run tsc
@@ -4,7 +4,7 @@ on:
4
4
  pull_request:
5
5
  branches:
6
6
  - master
7
- types: [opened, reopened, edited, synchronize]
7
+ types: [opened, reopened, edited]
8
8
 
9
9
  permissions:
10
10
  pull-requests: read
@@ -1,10 +1,10 @@
1
- name: On open PR - Version Bump & Publish Alpha
1
+ name: Version Bump & Publish Alpha
2
2
 
3
3
  on:
4
4
  pull_request:
5
5
  branches:
6
6
  - master
7
- types: [opened, synchronize]
7
+ types: [opened, reopened, synchronize]
8
8
 
9
9
  env:
10
10
  NPM_TOKEN: ${{ secrets.HEDIA_BOT_NPM_TOKEN }}
@@ -20,7 +20,7 @@ jobs:
20
20
  one_of: major,minor,patch
21
21
  repo_token: ${{ secrets.GITHUB_TOKEN }}
22
22
 
23
- on-open-pr-publish-alpha:
23
+ version-bump-publish-alpha:
24
24
  needs: [validate-pr-labels]
25
25
  runs-on: ubuntu-latest
26
26
 
@@ -34,22 +34,16 @@ jobs:
34
34
  ref: ${{ github.event.pull_request.head.ref }}
35
35
  token: ${{ secrets.HEDIA_BOT_GITHUB_PAT }}
36
36
 
37
- - name: Use Node.js ${{ matrix.node-version }}
38
- uses: actions/setup-node@v2
37
+ - uses: mstachniuk/ci-skip@v1
39
38
  with:
40
- node-version: ${{ matrix.node-version }}
41
-
42
- - name: Set identity
43
- run: |
44
- git config --global user.email "ci@hedia.co"
45
- git config --global user.name "Hedia CI Bot"
39
+ commit-filter: "autobump"
46
40
 
47
41
  - name: Autobump & Publish
42
+ if: ${{ env.CI_SKIP == 'false' }}
48
43
  uses: hedia-team/autobump-and-publish@master
49
44
  with:
45
+ github-token: ${{ secrets.GITHUB_TOKEN }}
50
46
  label: ${{ toJson(github.event.pull_request.labels.*.name) }}
51
47
  npm-token: ${{ env.NPM_TOKEN }}
52
48
  issue-number: ${{ github.event.number }}
53
- github-token: ${{ secrets.GITHUB_TOKEN }}
54
- run-ci: true
55
- run-tsc: true
49
+ run-script: npm ci & npm run tsc
@@ -5,24 +5,25 @@ export declare namespace LogbookService {
5
5
  oldUUID: string;
6
6
  newUUID: string;
7
7
  }
8
- export interface ILogbookSyncRequest {
9
- lastSyncTimestamp: string;
8
+ interface Cursor {
9
+ created?: CreatedCursor;
10
+ deleted?: string;
11
+ }
12
+ interface CreatedCursor {
13
+ cursor: string;
14
+ hasMore: boolean;
15
+ }
16
+ export interface ILogbookServiceRequest {
17
+ cursor?: Cursor;
10
18
  created: Array<Logbook.Types.ILogbookEntry>;
11
19
  edited: Array<IEditedUUID>;
12
20
  deleted: Array<string>;
13
21
  }
14
- export interface ILogbookSyncResponse {
15
- lastSyncTimestamp: string;
22
+ export interface ILogbookServiceResponse {
23
+ cursor?: Cursor;
16
24
  created: Array<Logbook.Types.ILogbookEntry>;
17
25
  deleted: Array<string>;
18
26
  }
19
- export interface ILogbookGetRequest {
20
- cursor?: string;
21
- }
22
- export interface ILogbookGetResponse {
23
- cursor?: string;
24
- logbooks: Array<Logbook.Types.ILogbookEntry>;
25
- }
26
27
  export {};
27
28
  }
28
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedia/types",
3
- "version": "2.1.48-alpha.2",
3
+ "version": "2.1.48-alpha.4",
4
4
  "description": "Enums, interfaces, and other common types for use in Hedia's software.",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -7,26 +7,27 @@ export namespace LogbookService {
7
7
  newUUID: string;
8
8
  }
9
9
 
10
- export interface ILogbookSyncRequest {
11
- lastSyncTimestamp: string;
10
+ interface Cursor {
11
+ created?: CreatedCursor;
12
+ deleted?: string;
13
+ }
14
+
15
+ interface CreatedCursor {
16
+ cursor: string;
17
+ hasMore: boolean;
18
+ }
19
+
20
+ export interface ILogbookServiceRequest {
21
+ cursor?: Cursor;
12
22
  created: Array<Logbook.Types.ILogbookEntry>;
13
23
  edited: Array<IEditedUUID>;
14
24
  deleted: Array<string>;
15
25
  }
16
26
 
17
- export interface ILogbookSyncResponse {
18
- lastSyncTimestamp: string;
27
+ export interface ILogbookServiceResponse {
28
+ cursor?: Cursor;
19
29
  created: Array<Logbook.Types.ILogbookEntry>;
20
30
  deleted: Array<string>;
21
31
  }
22
-
23
- export interface ILogbookGetRequest {
24
- cursor?: string;
25
- }
26
-
27
- export interface ILogbookGetResponse {
28
- cursor?: string;
29
- logbooks: Array<Logbook.Types.ILogbookEntry>;
30
- }
31
32
  }
32
33
  }
@@ -1,51 +0,0 @@
1
- name: On push - Bump & publish alpha version
2
-
3
- on:
4
- pull_request:
5
- branches:
6
- - master
7
- types: [synchronize]
8
-
9
- env:
10
- NPM_TOKEN: ${{ secrets.HEDIA_BOT_NPM_TOKEN }}
11
-
12
- jobs:
13
- on-push-commit-bump-and-publish-alpha:
14
- runs-on: ubuntu-latest
15
-
16
- strategy:
17
- matrix:
18
- node-version: [14.15]
19
-
20
- steps:
21
- - uses: actions/checkout@v2
22
- with:
23
- ref: ${{ github.event.pull_request.head.ref }}
24
- token: ${{ secrets.HEDIA_BOT_GITHUB_PAT }}
25
-
26
- - uses: mstachniuk/ci-skip@v1
27
- with:
28
- commit-filter: "autobump"
29
-
30
- - name: Use Node.js ${{ matrix.node-version }}
31
- if: ${{ env.CI_SKIP == 'false' }}
32
- uses: actions/setup-node@v2
33
- with:
34
- node-version: ${{ matrix.node-version }}
35
-
36
- - name: Set identity
37
- if: ${{ env.CI_SKIP == 'false' }}
38
- run: |
39
- git config --global user.email "ci@hedia.co"
40
- git config --global user.name "Hedia CI Bot"
41
-
42
- - name: Autobump & Publish
43
- if: ${{ env.CI_SKIP == 'false' }}
44
- uses: hedia-team/autobump-and-publish@master
45
- with:
46
- label: ${{ toJson(github.event.pull_request.labels.*.name) }}
47
- npm-token: ${{ env.NPM_TOKEN }}
48
- issue-number: ${{ github.event.number }}
49
- github-token: ${{ secrets.GITHUB_TOKEN }}
50
- run-ci: true
51
- run-tsc: true