@scouterna/scoutnet-openapi 0.2.0 → 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,54 @@
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
+
45
+ ## [0.2.1](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-openapi-v0.2.0...scoutnet-openapi-v0.2.1) (2025-07-23)
46
+
47
+
48
+ ### Bug Fixes
49
+
50
+ * make optional properties nullable ([c57724b](https://github.com/Scouterna/scoutnet-api/commit/c57724bbbf21a89c69bd41d98ff576aa249c32ff))
51
+
3
52
  ## [0.2.0](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-openapi-v0.1.9...scoutnet-openapi-v0.2.0) (2025-07-23)
4
53
 
5
54
 
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.0",
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",
@@ -1,4 +1,10 @@
1
1
  type: object
2
+ required:
3
+ - body_key
4
+ - body_name
5
+ - body_type
6
+ - body_id
7
+ - organisation_id
2
8
  properties:
3
9
  body_key:
4
10
  type: string
@@ -1,4 +1,7 @@
1
1
  type: object
2
+ required:
3
+ - name
4
+ - groups
2
5
  properties:
3
6
  name:
4
7
  type: string
@@ -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.
@@ -1,4 +1,6 @@
1
1
  type: object
2
+ required:
3
+ - group_no
2
4
  properties:
3
5
  name:
4
6
  type: string
@@ -1,4 +1,7 @@
1
1
  type: object
2
+ required:
3
+ - name
4
+ - id
2
5
  properties:
3
6
  name:
4
7
  type: string
@@ -1,4 +1,10 @@
1
1
  type: object
2
+ required:
3
+ - name
4
+ - type
5
+ - min_age
6
+ - max_age
7
+ - section_id
2
8
  properties:
3
9
  name:
4
10
  type: string
@@ -1,77 +1,77 @@
1
1
  type: object
2
2
  properties:
3
3
  checked_in:
4
- type: [boolean, 'null']
4
+ type: boolean
5
5
  attended:
6
- type: [boolean, 'null']
6
+ type: boolean
7
7
  cancelled:
8
- type: [boolean, 'null']
8
+ type: boolean
9
9
  member_status:
10
- type: [number, 'null']
10
+ type: number
11
11
  member_no:
12
- type: [number, 'null']
12
+ type: number
13
13
  group_registration:
14
- type: [boolean, 'null']
14
+ type: boolean
15
15
  first_name:
16
- type: [string, 'null']
16
+ type: string
17
17
  last_name:
18
- type: [string, 'null']
18
+ type: string
19
19
  ssno:
20
- type: [string, 'null']
20
+ type: string
21
21
  registration_date:
22
- type: [string, 'null']
22
+ type: string
23
23
  cancelled_date:
24
- type: [string, 'null']
24
+ type: string
25
25
  primary_email:
26
- type: [string, 'null']
26
+ type: string
27
27
  fee_id:
28
- type: [number, 'null']
28
+ type: number
29
29
  primary_membership_info:
30
- type: [object, array, 'null']
30
+ type: [object, array]
31
31
  properties:
32
32
  patrol_id:
33
- type: [number, 'null']
33
+ type: number
34
34
  patrol_name:
35
- type: [string, 'null']
35
+ type: string
36
36
  troop_id:
37
- type: [number, 'null']
37
+ type: number
38
38
  troop_name:
39
- type: [string, 'null']
39
+ type: string
40
40
  group_id:
41
- type: [number, 'null']
41
+ type: number
42
42
  group_name:
43
- type: [string, 'null']
43
+ type: string
44
44
  district_id:
45
- type: [number, 'null']
45
+ type: number
46
46
  district_name:
47
- type: [string, 'null']
47
+ type: string
48
48
  region_id:
49
- type: [number, 'null']
49
+ type: number
50
50
  region_name:
51
- type: [string, 'null']
51
+ type: string
52
52
  organisation_id:
53
- type: [number, 'null']
53
+ type: number
54
54
  organisation_name:
55
- type: [string, 'null']
55
+ type: string
56
56
  group_registration_info:
57
- type: [object, array, 'null']
57
+ type: [object, array]
58
58
  properties:
59
59
  group_id:
60
- type: [number, 'null']
60
+ type: number
61
61
  patrol_id:
62
- type: [number, 'null']
62
+ type: number
63
63
  group_name:
64
- type: [string, 'null']
64
+ type: string
65
65
  org_id:
66
- type: [number, 'null']
66
+ type: number
67
67
  org_name:
68
- type: [string, 'null']
68
+ type: string
69
69
  district_id:
70
- type: [number, 'null']
70
+ type: number
71
71
  district_name:
72
- type: [string, 'null']
72
+ type: string
73
73
  patrol_name:
74
- type: [string, 'null']
74
+ type: string
75
75
  questions:
76
76
  type: {}
77
77
  description: NOT YET DOCUMENTED
@@ -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.0
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