@kohost/api-client 1.0.0-beta.1 → 1.0.0-beta.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.
@@ -1,6 +1,27 @@
1
1
  image: node:16.17.1
2
2
 
3
+ definitions:
4
+ install-aws-cli: &install-aws-cli |
5
+ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
6
+ unzip awscliv2.zip
7
+ ./aws/install
8
+
3
9
  pipelines:
10
+ custom:
11
+ publish-use-cases:
12
+ - variables:
13
+ - name: USE_CASE_HASH
14
+ - step:
15
+ image: atlassian/default-image:3
16
+ name: Fetch use cases
17
+ script:
18
+ - *install-aws-cli
19
+ ## fetch use cases from s3
20
+ - aws s3 cp s3://cloud-v3-data/useCases/useCases-${USE_CASE_HASH}.json ./useCases/http.json
21
+ ## commit the result
22
+ - git commit -am "Update use cases"
23
+ - git push
24
+
4
25
  pull-requests:
5
26
  "**":
6
27
  - step:
@@ -8,7 +29,8 @@ pipelines:
8
29
  caches:
9
30
  - node
10
31
  script:
11
- - npm install
32
+ - npm ci
33
+ - npm rum lint
12
34
  branches:
13
35
  master:
14
36
  - step:
@@ -16,7 +38,7 @@ pipelines:
16
38
  caches:
17
39
  - node
18
40
  script:
19
- - npm install
41
+ - npm ci
20
42
  - pipe: atlassian/npm-publish:0.3.2
21
43
  variables:
22
44
  NPM_TOKEN: $NPM_TOKEN
@@ -26,7 +48,7 @@ pipelines:
26
48
  caches:
27
49
  - node
28
50
  script:
29
- - npm install
51
+ - npm ci
30
52
  - npm version prerelease --preid=beta -m "Upgrade to %s [skip ci]"
31
53
  - git push && git push --tags
32
54
  - pipe: atlassian/npm-publish:0.3.2
@@ -40,7 +62,7 @@ pipelines:
40
62
  caches:
41
63
  - node
42
64
  script:
43
- - npm install
65
+ - npm ci
44
66
  - npm version prerelease --preid=beta -m "Upgrade to %s [skip ci]"
45
67
  - git push && git push --tags
46
68
  - pipe: atlassian/npm-publish:0.3.2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kohost/api-client",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.3",
4
4
  "description": "API client for Kohost utils",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -175,6 +175,15 @@
175
175
  }
176
176
  }
177
177
  ],
178
+ [
179
+ "ListUserReservations",
180
+ {
181
+ "http": {
182
+ "method": "GET",
183
+ "path": "/users/:id/reservations"
184
+ }
185
+ }
186
+ ],
178
187
  [
179
188
  "ListSpaces",
180
189
  {
@@ -598,60 +607,6 @@
598
607
  }
599
608
  }
600
609
  ],
601
- [
602
- "CreateSceneController",
603
- {
604
- "http": {
605
- "method": "POST",
606
- "path": "/rooms/:roomId/sceneControllers"
607
- }
608
- }
609
- ],
610
- [
611
- "ListSceneControllers",
612
- {
613
- "http": {
614
- "method": "GET",
615
- "path": "/rooms/:roomId/sceneControllers"
616
- }
617
- }
618
- ],
619
- [
620
- "UpdateSceneController",
621
- {
622
- "http": {
623
- "method": "PUT",
624
- "path": "/rooms/:roomId/sceneControllers/:id"
625
- }
626
- }
627
- ],
628
- [
629
- "DeleteSceneController",
630
- {
631
- "http": {
632
- "method": "DELETE",
633
- "path": "/rooms/:roomId/sceneControllers/:id"
634
- }
635
- }
636
- ],
637
- [
638
- "DescribeSceneController",
639
- {
640
- "http": {
641
- "method": "GET",
642
- "path": "/rooms/:roomId/sceneControllers/:id"
643
- }
644
- }
645
- ],
646
- [
647
- "SetSceneController",
648
- {
649
- "http": {
650
- "method": "POST",
651
- "path": "/rooms/:roomId/sceneControllers/:id"
652
- }
653
- }
654
- ],
655
610
  [
656
611
  "CreateSource",
657
612
  {