@scouterna/scoutnet-openapi 0.2.1 → 0.3.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.5](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-openapi-v0.3.4...scoutnet-openapi-v0.3.5) (2026-01-11)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * dummy release ([a4f0044](https://github.com/Scouterna/scoutnet-api/commit/a4f00445b00ef8fb5e5ca93f4c61f8618f1a4023))
9
+
10
+ ## [0.3.4](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-openapi-v0.3.3...scoutnet-openapi-v0.3.4) (2026-01-11)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * dummy release ([7f4784a](https://github.com/Scouterna/scoutnet-api/commit/7f4784af8a0678a9001b17baafc79edebff1f83f))
16
+
17
+ ## [0.3.3](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-openapi-v0.3.2...scoutnet-openapi-v0.3.3) (2026-01-11)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * dummy release ([1d0be9f](https://github.com/Scouterna/scoutnet-api/commit/1d0be9ff1747ff90f3a1cf2a02e8425d4f13ddb7))
23
+
24
+ ## [0.3.2](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-openapi-v0.3.1...scoutnet-openapi-v0.3.2) (2026-01-11)
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * dummy release ([6aa4926](https://github.com/Scouterna/scoutnet-api/commit/6aa492658badd5c456a39027a174890bcd088be2))
30
+
31
+ ## [0.3.1](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-openapi-v0.3.0...scoutnet-openapi-v0.3.1) (2026-01-11)
32
+
33
+
34
+ ### Bug Fixes
35
+
36
+ * dummy release ([73504aa](https://github.com/Scouterna/scoutnet-api/commit/73504aa4ab27c935d8c979a384642bf11c111ba4))
37
+
38
+ ## [0.3.0](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-openapi-v0.2.1...scoutnet-openapi-v0.3.0) (2026-01-11)
39
+
40
+
41
+ ### Features
42
+
43
+ * add questions endpoint ([313d5c3](https://github.com/Scouterna/scoutnet-api/commit/313d5c30d9656dd69a2410a3f06e020455cc5839))
44
+
3
45
  ## [0.2.1](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-openapi-v0.2.0...scoutnet-openapi-v0.2.1) (2025-07-23)
4
46
 
5
47
 
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 The Guides and Scouts of Sweden
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scouterna/scoutnet-openapi",
3
- "version": "0.2.1",
3
+ "version": "0.3.5",
4
4
  "description": "The OpenAPI document for the Scoutnet API, neatly packaged for NPM.",
5
5
  "keywords": [
6
6
  "scouterna",
@@ -0,0 +1,15 @@
1
+ type: object
2
+ properties:
3
+ title:
4
+ type: string
5
+ description: The title of the form.
6
+ id:
7
+ type: number
8
+ description: The form ID number.
9
+ form_type:
10
+ type: string
11
+ enum: [individual, group]
12
+ description: The type of form.
13
+ endpoint_url:
14
+ type: string
15
+ description: A direct, authenticated URL to access the full form data.
@@ -0,0 +1,25 @@
1
+ type: object
2
+ properties:
3
+ question:
4
+ type: string
5
+ description: The question name.
6
+ description:
7
+ type: string
8
+ description: The question description.
9
+ tab_id:
10
+ type: number
11
+ description: ID of the tab the question belongs to.
12
+ section_id:
13
+ type: number
14
+ description: ID of the section the question belongs to.
15
+ default_value:
16
+ type: string
17
+ description: The default value of the question.
18
+ type:
19
+ type: string
20
+ description: The type of question.
21
+ choices:
22
+ type: object
23
+ additionalProperties:
24
+ $ref: './question_choice.yaml'
25
+
@@ -0,0 +1,11 @@
1
+ type: object
2
+ properties:
3
+ value:
4
+ type: number
5
+ description: The choice ID.
6
+ option:
7
+ type: string
8
+ description: The choice text.
9
+ description:
10
+ type: string
11
+ description: The choice description.
@@ -0,0 +1,30 @@
1
+ get:
2
+ summary: Get a list of forms associated with a project
3
+ operationId: getProjectFormts
4
+ tags:
5
+ - project
6
+ responses:
7
+ '200':
8
+ description: |
9
+ Keys of the response object are form IDs and values are form objects.
10
+ content:
11
+ application/json:
12
+ schema:
13
+ type: object
14
+ properties:
15
+ forms:
16
+ type: object
17
+ additionalProperties:
18
+ $ref: ../components/form.yaml
19
+ form:
20
+ $ref: ../components/form.yaml
21
+ questions:
22
+ type: object
23
+ additionalProperties:
24
+ $ref: ../components/question.yaml
25
+ messages:
26
+ type: array
27
+ items:
28
+ type: string
29
+ '401':
30
+ $ref: ../responses/not_authorized.yaml
@@ -8,7 +8,7 @@ info:
8
8
  Scoutnet is the member management system for the Guides and Scouts of
9
9
  Sweden. This API provides access to various resources related to projects,
10
10
  groups, and participants.
11
- version: 0.2.1
11
+ version: 0.3.5
12
12
  license:
13
13
  name: MIT
14
14
  identifier: MIT
@@ -44,3 +44,5 @@ paths:
44
44
  $ref: ./paths/project_get_participants.yaml
45
45
  /project/checkin:
46
46
  $ref: ./paths/project_checkin.yaml
47
+ /project/get/questions:
48
+ $ref: ./paths/project_forms.yaml