@scouterna/scoutnet 0.3.13 → 0.3.20

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,93 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.20](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-v0.3.19...scoutnet-v0.3.20) (2026-01-11)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * The following workspace dependencies were updated
9
+ * devDependencies
10
+ * @scouterna/scoutnet-openapi bumped to 0.3.6
11
+
12
+ ## [0.3.19](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-v0.3.18...scoutnet-v0.3.19) (2026-01-11)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * dummy release ([a4f0044](https://github.com/Scouterna/scoutnet-api/commit/a4f00445b00ef8fb5e5ca93f4c61f8618f1a4023))
18
+
19
+
20
+ ### Dependencies
21
+
22
+ * The following workspace dependencies were updated
23
+ * devDependencies
24
+ * @scouterna/scoutnet-openapi bumped to 0.3.5
25
+
26
+ ## [0.3.18](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-v0.3.17...scoutnet-v0.3.18) (2026-01-11)
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * dummy release ([7f4784a](https://github.com/Scouterna/scoutnet-api/commit/7f4784af8a0678a9001b17baafc79edebff1f83f))
32
+
33
+
34
+ ### Dependencies
35
+
36
+ * The following workspace dependencies were updated
37
+ * devDependencies
38
+ * @scouterna/scoutnet-openapi bumped to 0.3.4
39
+
40
+ ## [0.3.17](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-v0.3.16...scoutnet-v0.3.17) (2026-01-11)
41
+
42
+
43
+ ### Bug Fixes
44
+
45
+ * dummy release ([1d0be9f](https://github.com/Scouterna/scoutnet-api/commit/1d0be9ff1747ff90f3a1cf2a02e8425d4f13ddb7))
46
+
47
+
48
+ ### Dependencies
49
+
50
+ * The following workspace dependencies were updated
51
+ * devDependencies
52
+ * @scouterna/scoutnet-openapi bumped to 0.3.3
53
+
54
+ ## [0.3.16](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-v0.3.15...scoutnet-v0.3.16) (2026-01-11)
55
+
56
+
57
+ ### Bug Fixes
58
+
59
+ * dummy release ([6aa4926](https://github.com/Scouterna/scoutnet-api/commit/6aa492658badd5c456a39027a174890bcd088be2))
60
+
61
+
62
+ ### Dependencies
63
+
64
+ * The following workspace dependencies were updated
65
+ * devDependencies
66
+ * @scouterna/scoutnet-openapi bumped to 0.3.2
67
+
68
+ ## [0.3.15](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-v0.3.14...scoutnet-v0.3.15) (2026-01-11)
69
+
70
+
71
+ ### Bug Fixes
72
+
73
+ * dummy release ([73504aa](https://github.com/Scouterna/scoutnet-api/commit/73504aa4ab27c935d8c979a384642bf11c111ba4))
74
+
75
+
76
+ ### Dependencies
77
+
78
+ * The following workspace dependencies were updated
79
+ * devDependencies
80
+ * @scouterna/scoutnet-openapi bumped to 0.3.1
81
+
82
+ ## [0.3.14](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-v0.3.13...scoutnet-v0.3.14) (2026-01-11)
83
+
84
+
85
+ ### Dependencies
86
+
87
+ * The following workspace dependencies were updated
88
+ * devDependencies
89
+ * @scouterna/scoutnet-openapi bumped to 0.3.0
90
+
3
91
  ## [0.3.13](https://github.com/Scouterna/scoutnet-api/compare/scoutnet-v0.3.12...scoutnet-v0.3.13) (2025-07-23)
4
92
 
5
93
 
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 {
@@ -278,8 +295,9 @@ export interface components {
278
295
  district_name?: string | null;
279
296
  patrol_name?: string | null;
280
297
  } | unknown[]) | null;
281
- /** @description NOT YET DOCUMENTED */
282
- questions?: unknown | null;
298
+ questions?: {
299
+ [key: string]: string;
300
+ } | null;
283
301
  contact_info?: {
284
302
  [key: string]: string;
285
303
  } | null;
@@ -334,6 +352,44 @@ export interface components {
334
352
  /** @description NOT YET DOCUMENTED */
335
353
  updated_questions?: unknown | null;
336
354
  };
355
+ form: {
356
+ /** @description The title of the form. */
357
+ title?: string | null;
358
+ /** @description The form ID number. */
359
+ id?: number | null;
360
+ /**
361
+ * @description The type of form.
362
+ * @enum {string}
363
+ */
364
+ form_type?: ("individual" | "group") | null;
365
+ /** @description A direct, authenticated URL to access the full form data. */
366
+ endpoint_url?: string | null;
367
+ };
368
+ question_choice: {
369
+ /** @description The choice ID. */
370
+ value?: number | null;
371
+ /** @description The choice text. */
372
+ option?: string | null;
373
+ /** @description The choice description. */
374
+ description?: string | null;
375
+ };
376
+ question: {
377
+ /** @description The question name. */
378
+ question?: string | null;
379
+ /** @description The question description. */
380
+ description?: string | null;
381
+ /** @description ID of the tab the question belongs to. */
382
+ tab_id?: number | null;
383
+ /** @description ID of the section the question belongs to. */
384
+ section_id?: number | null;
385
+ /** @description The default value of the question. */
386
+ default_value?: string | null;
387
+ /** @description The type of question. */
388
+ type?: string | null;
389
+ choices?: {
390
+ [key: string]: components["schemas"]["question_choice"];
391
+ } | null;
392
+ };
337
393
  };
338
394
  responses: {
339
395
  /** @description When unauthorized there will be no response body. */
@@ -454,4 +510,35 @@ export interface operations {
454
510
  401: components["responses"]["not_authorized"];
455
511
  };
456
512
  };
513
+ getProjectFormts: {
514
+ parameters: {
515
+ query?: never;
516
+ header?: never;
517
+ path?: never;
518
+ cookie?: never;
519
+ };
520
+ requestBody?: never;
521
+ responses: {
522
+ /** @description Keys of the response object are form IDs and values are form objects.
523
+ * */
524
+ 200: {
525
+ headers: {
526
+ [name: string]: unknown;
527
+ };
528
+ content: {
529
+ "application/json": {
530
+ forms?: {
531
+ [key: string]: components["schemas"]["form"];
532
+ } | null;
533
+ form?: components["schemas"]["form"] | null;
534
+ questions?: {
535
+ [key: string]: components["schemas"]["question"];
536
+ } | null;
537
+ messages?: string[] | null;
538
+ };
539
+ };
540
+ };
541
+ 401: components["responses"]["not_authorized"];
542
+ };
543
+ };
457
544
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scouterna/scoutnet",
3
- "version": "0.3.13",
3
+ "version": "0.3.20",
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": "^22.10.10",
27
+ "@types/node": "^24.10.7",
35
28
  "openapi-typescript": "^7.6.0",
36
29
  "typescript": "~5.6.2",
37
- "@scouterna/scoutnet-openapi": "workspace:^"
30
+ "@scouterna/scoutnet-openapi": "^0.3.6"
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 {
@@ -296,8 +313,9 @@ export interface components {
296
313
  | unknown[]
297
314
  )
298
315
  | null;
299
- /** @description NOT YET DOCUMENTED */
300
- questions?: unknown | null;
316
+ questions?: {
317
+ [key: string]: string;
318
+ } | null;
301
319
  contact_info?: {
302
320
  [key: string]: string;
303
321
  } | null;
@@ -352,6 +370,44 @@ export interface components {
352
370
  /** @description NOT YET DOCUMENTED */
353
371
  updated_questions?: unknown | null;
354
372
  };
373
+ form: {
374
+ /** @description The title of the form. */
375
+ title?: string | null;
376
+ /** @description The form ID number. */
377
+ id?: number | null;
378
+ /**
379
+ * @description The type of form.
380
+ * @enum {string}
381
+ */
382
+ form_type?: ("individual" | "group") | null;
383
+ /** @description A direct, authenticated URL to access the full form data. */
384
+ endpoint_url?: string | null;
385
+ };
386
+ question_choice: {
387
+ /** @description The choice ID. */
388
+ value?: number | null;
389
+ /** @description The choice text. */
390
+ option?: string | null;
391
+ /** @description The choice description. */
392
+ description?: string | null;
393
+ };
394
+ question: {
395
+ /** @description The question name. */
396
+ question?: string | null;
397
+ /** @description The question description. */
398
+ description?: string | null;
399
+ /** @description ID of the tab the question belongs to. */
400
+ tab_id?: number | null;
401
+ /** @description ID of the section the question belongs to. */
402
+ section_id?: number | null;
403
+ /** @description The default value of the question. */
404
+ default_value?: string | null;
405
+ /** @description The type of question. */
406
+ type?: string | null;
407
+ choices?: {
408
+ [key: string]: components["schemas"]["question_choice"];
409
+ } | null;
410
+ };
355
411
  };
356
412
  responses: {
357
413
  /** @description When unauthorized there will be no response body. */
@@ -480,4 +536,35 @@ export interface operations {
480
536
  401: components["responses"]["not_authorized"];
481
537
  };
482
538
  };
539
+ getProjectFormts: {
540
+ parameters: {
541
+ query?: never;
542
+ header?: never;
543
+ path?: never;
544
+ cookie?: never;
545
+ };
546
+ requestBody?: never;
547
+ responses: {
548
+ /** @description Keys of the response object are form IDs and values are form objects.
549
+ * */
550
+ 200: {
551
+ headers: {
552
+ [name: string]: unknown;
553
+ };
554
+ content: {
555
+ "application/json": {
556
+ forms?: {
557
+ [key: string]: components["schemas"]["form"];
558
+ } | null;
559
+ form?: components["schemas"]["form"] | null;
560
+ questions?: {
561
+ [key: string]: components["schemas"]["question"];
562
+ } | null;
563
+ messages?: string[] | null;
564
+ };
565
+ };
566
+ };
567
+ 401: components["responses"]["not_authorized"];
568
+ };
569
+ };
483
570
  }