@scouterna/scoutnet 0.3.13 → 0.3.19
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 +79 -0
- package/LICENSE +21 -0
- package/dist/generated/api-types.d.ts +86 -0
- package/package.json +11 -11
- package/src/generated/api-types.ts +86 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,84 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.3.19](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-v0.3.18...scoutnet-v0.3.19) (2026-01-11)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* dummy release ([a4f0044](https://github.com/Scouterna/scoutnet-api/commit/a4f00445b00ef8fb5e5ca93f4c61f8618f1a4023))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* devDependencies
|
|
15
|
+
* @scouterna/scoutnet-openapi bumped to 0.3.5
|
|
16
|
+
|
|
17
|
+
## [0.3.18](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-v0.3.17...scoutnet-v0.3.18) (2026-01-11)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* dummy release ([7f4784a](https://github.com/Scouterna/scoutnet-api/commit/7f4784af8a0678a9001b17baafc79edebff1f83f))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Dependencies
|
|
26
|
+
|
|
27
|
+
* The following workspace dependencies were updated
|
|
28
|
+
* devDependencies
|
|
29
|
+
* @scouterna/scoutnet-openapi bumped to 0.3.4
|
|
30
|
+
|
|
31
|
+
## [0.3.17](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-v0.3.16...scoutnet-v0.3.17) (2026-01-11)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
|
|
36
|
+
* dummy release ([1d0be9f](https://github.com/Scouterna/scoutnet-api/commit/1d0be9ff1747ff90f3a1cf2a02e8425d4f13ddb7))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Dependencies
|
|
40
|
+
|
|
41
|
+
* The following workspace dependencies were updated
|
|
42
|
+
* devDependencies
|
|
43
|
+
* @scouterna/scoutnet-openapi bumped to 0.3.3
|
|
44
|
+
|
|
45
|
+
## [0.3.16](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-v0.3.15...scoutnet-v0.3.16) (2026-01-11)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Bug Fixes
|
|
49
|
+
|
|
50
|
+
* dummy release ([6aa4926](https://github.com/Scouterna/scoutnet-api/commit/6aa492658badd5c456a39027a174890bcd088be2))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Dependencies
|
|
54
|
+
|
|
55
|
+
* The following workspace dependencies were updated
|
|
56
|
+
* devDependencies
|
|
57
|
+
* @scouterna/scoutnet-openapi bumped to 0.3.2
|
|
58
|
+
|
|
59
|
+
## [0.3.15](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-v0.3.14...scoutnet-v0.3.15) (2026-01-11)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Bug Fixes
|
|
63
|
+
|
|
64
|
+
* dummy release ([73504aa](https://github.com/Scouterna/scoutnet-api/commit/73504aa4ab27c935d8c979a384642bf11c111ba4))
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### Dependencies
|
|
68
|
+
|
|
69
|
+
* The following workspace dependencies were updated
|
|
70
|
+
* devDependencies
|
|
71
|
+
* @scouterna/scoutnet-openapi bumped to 0.3.1
|
|
72
|
+
|
|
73
|
+
## [0.3.14](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-v0.3.13...scoutnet-v0.3.14) (2026-01-11)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### Dependencies
|
|
77
|
+
|
|
78
|
+
* The following workspace dependencies were updated
|
|
79
|
+
* devDependencies
|
|
80
|
+
* @scouterna/scoutnet-openapi bumped to 0.3.0
|
|
81
|
+
|
|
3
82
|
## [0.3.13](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-v0.3.12...scoutnet-v0.3.13) (2025-07-23)
|
|
4
83
|
|
|
5
84
|
|
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.
|
|
@@ -83,6 +83,23 @@ export interface paths {
|
|
|
83
83
|
patch?: never;
|
|
84
84
|
trace?: never;
|
|
85
85
|
};
|
|
86
|
+
"/project/get/questions": {
|
|
87
|
+
parameters: {
|
|
88
|
+
query?: never;
|
|
89
|
+
header?: never;
|
|
90
|
+
path?: never;
|
|
91
|
+
cookie?: never;
|
|
92
|
+
};
|
|
93
|
+
/** Get a list of forms associated with a project */
|
|
94
|
+
get: operations["getProjectFormts"];
|
|
95
|
+
put?: never;
|
|
96
|
+
post?: never;
|
|
97
|
+
delete?: never;
|
|
98
|
+
options?: never;
|
|
99
|
+
head?: never;
|
|
100
|
+
patch?: never;
|
|
101
|
+
trace?: never;
|
|
102
|
+
};
|
|
86
103
|
}
|
|
87
104
|
export type webhooks = Record<string, never>;
|
|
88
105
|
export interface components {
|
|
@@ -334,6 +351,44 @@ export interface components {
|
|
|
334
351
|
/** @description NOT YET DOCUMENTED */
|
|
335
352
|
updated_questions?: unknown | null;
|
|
336
353
|
};
|
|
354
|
+
form: {
|
|
355
|
+
/** @description The title of the form. */
|
|
356
|
+
title?: string | null;
|
|
357
|
+
/** @description The form ID number. */
|
|
358
|
+
id?: number | null;
|
|
359
|
+
/**
|
|
360
|
+
* @description The type of form.
|
|
361
|
+
* @enum {string}
|
|
362
|
+
*/
|
|
363
|
+
form_type?: ("individual" | "group") | null;
|
|
364
|
+
/** @description A direct, authenticated URL to access the full form data. */
|
|
365
|
+
endpoint_url?: string | null;
|
|
366
|
+
};
|
|
367
|
+
question_choice: {
|
|
368
|
+
/** @description The choice ID. */
|
|
369
|
+
value?: number | null;
|
|
370
|
+
/** @description The choice text. */
|
|
371
|
+
option?: string | null;
|
|
372
|
+
/** @description The choice description. */
|
|
373
|
+
description?: string | null;
|
|
374
|
+
};
|
|
375
|
+
question: {
|
|
376
|
+
/** @description The question name. */
|
|
377
|
+
question?: string | null;
|
|
378
|
+
/** @description The question description. */
|
|
379
|
+
description?: string | null;
|
|
380
|
+
/** @description ID of the tab the question belongs to. */
|
|
381
|
+
tab_id?: number | null;
|
|
382
|
+
/** @description ID of the section the question belongs to. */
|
|
383
|
+
section_id?: number | null;
|
|
384
|
+
/** @description The default value of the question. */
|
|
385
|
+
default_value?: string | null;
|
|
386
|
+
/** @description The type of question. */
|
|
387
|
+
type?: string | null;
|
|
388
|
+
choices?: {
|
|
389
|
+
[key: string]: components["schemas"]["question_choice"];
|
|
390
|
+
} | null;
|
|
391
|
+
};
|
|
337
392
|
};
|
|
338
393
|
responses: {
|
|
339
394
|
/** @description When unauthorized there will be no response body. */
|
|
@@ -454,4 +509,35 @@ export interface operations {
|
|
|
454
509
|
401: components["responses"]["not_authorized"];
|
|
455
510
|
};
|
|
456
511
|
};
|
|
512
|
+
getProjectFormts: {
|
|
513
|
+
parameters: {
|
|
514
|
+
query?: never;
|
|
515
|
+
header?: never;
|
|
516
|
+
path?: never;
|
|
517
|
+
cookie?: never;
|
|
518
|
+
};
|
|
519
|
+
requestBody?: never;
|
|
520
|
+
responses: {
|
|
521
|
+
/** @description Keys of the response object are form IDs and values are form objects.
|
|
522
|
+
* */
|
|
523
|
+
200: {
|
|
524
|
+
headers: {
|
|
525
|
+
[name: string]: unknown;
|
|
526
|
+
};
|
|
527
|
+
content: {
|
|
528
|
+
"application/json": {
|
|
529
|
+
forms?: {
|
|
530
|
+
[key: string]: components["schemas"]["form"];
|
|
531
|
+
} | null;
|
|
532
|
+
form?: components["schemas"]["form"] | null;
|
|
533
|
+
questions?: {
|
|
534
|
+
[key: string]: components["schemas"]["question"];
|
|
535
|
+
} | null;
|
|
536
|
+
messages?: string[] | null;
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
401: components["responses"]["not_authorized"];
|
|
541
|
+
};
|
|
542
|
+
};
|
|
457
543
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scouterna/scoutnet",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.19",
|
|
4
4
|
"description": "API client for the Scoutnet API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"scouterna",
|
|
@@ -23,20 +23,20 @@
|
|
|
23
23
|
"type": "module",
|
|
24
24
|
"main": "./dist/index.js",
|
|
25
25
|
"types": "./dist/index.d.ts",
|
|
26
|
-
"scripts": {
|
|
27
|
-
"build": "pnpm run build:types && pnpm run build:format && pnpm run build:typescript",
|
|
28
|
-
"build:types": "node --experimental-strip-types generate-types.ts",
|
|
29
|
-
"build:format": "biome format --write ./src/generated/api-types.ts",
|
|
30
|
-
"build:typescript": "tsc",
|
|
31
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
32
|
-
},
|
|
33
26
|
"devDependencies": {
|
|
34
|
-
"@types/node": "^
|
|
27
|
+
"@types/node": "^24.10.7",
|
|
35
28
|
"openapi-typescript": "^7.6.0",
|
|
36
29
|
"typescript": "~5.6.2",
|
|
37
|
-
"@scouterna/scoutnet-openapi": "
|
|
30
|
+
"@scouterna/scoutnet-openapi": "^0.3.5"
|
|
38
31
|
},
|
|
39
32
|
"dependencies": {
|
|
40
33
|
"openapi-fetch": "^0.13.4"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "pnpm run build:types && pnpm run build:format && pnpm run build:typescript",
|
|
37
|
+
"build:types": "node --experimental-strip-types generate-types.ts",
|
|
38
|
+
"build:format": "biome format --write ./src/generated/api-types.ts",
|
|
39
|
+
"build:typescript": "tsc",
|
|
40
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
41
41
|
}
|
|
42
|
-
}
|
|
42
|
+
}
|
|
@@ -83,6 +83,23 @@ export interface paths {
|
|
|
83
83
|
patch?: never;
|
|
84
84
|
trace?: never;
|
|
85
85
|
};
|
|
86
|
+
"/project/get/questions": {
|
|
87
|
+
parameters: {
|
|
88
|
+
query?: never;
|
|
89
|
+
header?: never;
|
|
90
|
+
path?: never;
|
|
91
|
+
cookie?: never;
|
|
92
|
+
};
|
|
93
|
+
/** Get a list of forms associated with a project */
|
|
94
|
+
get: operations["getProjectFormts"];
|
|
95
|
+
put?: never;
|
|
96
|
+
post?: never;
|
|
97
|
+
delete?: never;
|
|
98
|
+
options?: never;
|
|
99
|
+
head?: never;
|
|
100
|
+
patch?: never;
|
|
101
|
+
trace?: never;
|
|
102
|
+
};
|
|
86
103
|
}
|
|
87
104
|
export type webhooks = Record<string, never>;
|
|
88
105
|
export interface components {
|
|
@@ -352,6 +369,44 @@ export interface components {
|
|
|
352
369
|
/** @description NOT YET DOCUMENTED */
|
|
353
370
|
updated_questions?: unknown | null;
|
|
354
371
|
};
|
|
372
|
+
form: {
|
|
373
|
+
/** @description The title of the form. */
|
|
374
|
+
title?: string | null;
|
|
375
|
+
/** @description The form ID number. */
|
|
376
|
+
id?: number | null;
|
|
377
|
+
/**
|
|
378
|
+
* @description The type of form.
|
|
379
|
+
* @enum {string}
|
|
380
|
+
*/
|
|
381
|
+
form_type?: ("individual" | "group") | null;
|
|
382
|
+
/** @description A direct, authenticated URL to access the full form data. */
|
|
383
|
+
endpoint_url?: string | null;
|
|
384
|
+
};
|
|
385
|
+
question_choice: {
|
|
386
|
+
/** @description The choice ID. */
|
|
387
|
+
value?: number | null;
|
|
388
|
+
/** @description The choice text. */
|
|
389
|
+
option?: string | null;
|
|
390
|
+
/** @description The choice description. */
|
|
391
|
+
description?: string | null;
|
|
392
|
+
};
|
|
393
|
+
question: {
|
|
394
|
+
/** @description The question name. */
|
|
395
|
+
question?: string | null;
|
|
396
|
+
/** @description The question description. */
|
|
397
|
+
description?: string | null;
|
|
398
|
+
/** @description ID of the tab the question belongs to. */
|
|
399
|
+
tab_id?: number | null;
|
|
400
|
+
/** @description ID of the section the question belongs to. */
|
|
401
|
+
section_id?: number | null;
|
|
402
|
+
/** @description The default value of the question. */
|
|
403
|
+
default_value?: string | null;
|
|
404
|
+
/** @description The type of question. */
|
|
405
|
+
type?: string | null;
|
|
406
|
+
choices?: {
|
|
407
|
+
[key: string]: components["schemas"]["question_choice"];
|
|
408
|
+
} | null;
|
|
409
|
+
};
|
|
355
410
|
};
|
|
356
411
|
responses: {
|
|
357
412
|
/** @description When unauthorized there will be no response body. */
|
|
@@ -480,4 +535,35 @@ export interface operations {
|
|
|
480
535
|
401: components["responses"]["not_authorized"];
|
|
481
536
|
};
|
|
482
537
|
};
|
|
538
|
+
getProjectFormts: {
|
|
539
|
+
parameters: {
|
|
540
|
+
query?: never;
|
|
541
|
+
header?: never;
|
|
542
|
+
path?: never;
|
|
543
|
+
cookie?: never;
|
|
544
|
+
};
|
|
545
|
+
requestBody?: never;
|
|
546
|
+
responses: {
|
|
547
|
+
/** @description Keys of the response object are form IDs and values are form objects.
|
|
548
|
+
* */
|
|
549
|
+
200: {
|
|
550
|
+
headers: {
|
|
551
|
+
[name: string]: unknown;
|
|
552
|
+
};
|
|
553
|
+
content: {
|
|
554
|
+
"application/json": {
|
|
555
|
+
forms?: {
|
|
556
|
+
[key: string]: components["schemas"]["form"];
|
|
557
|
+
} | null;
|
|
558
|
+
form?: components["schemas"]["form"] | null;
|
|
559
|
+
questions?: {
|
|
560
|
+
[key: string]: components["schemas"]["question"];
|
|
561
|
+
} | null;
|
|
562
|
+
messages?: string[] | null;
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
401: components["responses"]["not_authorized"];
|
|
567
|
+
};
|
|
568
|
+
};
|
|
483
569
|
}
|