@oauth2-cli/sky-api 0.3.0 → 0.3.1

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
@@ -2,6 +2,16 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [0.3.1](https://github.com/groton-school/myschoolapp-reporting/compare/oauth2-cli/sky-api/0.3.0...oauth2-cli/sky-api/0.3.1) (2025-12-26)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * include Content-Type header when sending JSON bodies ([b06e18e](https://github.com/groton-school/myschoolapp-reporting/commit/b06e18e5136a08a00e251171348c9cf2325656ca))
11
+ * update CategroyRequest typing to match observed reality ([89ad060](https://github.com/groton-school/myschoolapp-reporting/commit/89ad060476e7efed3430aff969b0dbdaa99692d1))
12
+ * update Colors usage to match current version ([7a82e9f](https://github.com/groton-school/myschoolapp-reporting/commit/7a82e9f3e624992c8c2a0ba7241d82327913391f))
13
+ * update photoalbum.list() to reflect actual behavior, rather than documentation ([e2f1708](https://github.com/groton-school/myschoolapp-reporting/commit/e2f170804f5338c54279b2ca095a075fdbc32fb6))
14
+
5
15
  ## [0.3.0](https://github.com/groton-school/myschoolapp-reporting/compare/oauth2-cli/sky-api/0.2.2...oauth2-cli/sky-api/0.3.0) (2025-12-24)
6
16
 
7
17
 
@@ -1,4 +1,4 @@
1
1
  export type CategoryRequest = {
2
- id?: number;
3
- type?: 'Page content' | 'Class' | 'Activity' | 'Advisory' | 'Team' | 'Dorm' | 'Community';
2
+ id?: number | string;
3
+ type?: 'PageContent' | 'Class' | 'Activity' | 'Advisory' | 'Team' | 'Dorm' | 'Community';
4
4
  };
@@ -7,5 +7,5 @@ export async function categories() {
7
7
  return new Paginated(await SkyAPI.requestJSON('https://api.sky.blackbaud.com/school/v1/contentmanagement/announcements/categories'));
8
8
  }
9
9
  export async function list(request) {
10
- return SkyAPI.requestJSON('https://api.sky.blackbaud.com/school/v1/contentmanagement/announcements/list', 'POST', JSON.stringify(request));
10
+ return SkyAPI.requestJSON('https://api.sky.blackbaud.com/school/v1/contentmanagement/announcements/list', 'POST', JSON.stringify(request), { 'Content-Type': 'application/json' });
11
11
  }
@@ -7,5 +7,5 @@ export async function categories() {
7
7
  return new Paginated(await SkyAPI.requestJSON('https://api.sky.blackbaud.com/school/v1/contentmanagement/news/categories'));
8
8
  }
9
9
  export async function list(request) {
10
- return await SkyAPI.requestJSON('https://api.sky.blackbaud.com/school/v1/contentmanagement/news/list', 'POST', JSON.stringify(request));
10
+ return await SkyAPI.requestJSON('https://api.sky.blackbaud.com/school/v1/contentmanagement/news/list', 'POST', JSON.stringify(request), { 'Content-Type': 'application/json' });
11
11
  }
@@ -0,0 +1,7 @@
1
+ import { URLString } from '@battis/descriptive-types';
2
+ import { PhotoAlbum } from './PhotoAlbum.js';
3
+ export type PhotoAlbumCollection = {
4
+ count?: number;
5
+ next_link?: URLString;
6
+ value?: PhotoAlbum[];
7
+ };
@@ -11,5 +11,5 @@ export * from './PhotoAlbum.js';
11
11
  export * from './PhotoCategory.js';
12
12
  export * from './PhotoCategoryCollection.js';
13
13
  export declare function categories(): Promise<Paginated<PhotoCategory>>;
14
- export declare function list(request: ContentManagementRequest): Promise<PhotoAlbum[]>;
14
+ export declare function list(request: ContentManagementRequest): Promise<Paginated<PhotoAlbum>>;
15
15
  export declare function photosById(album_id: number): Promise<Paginated<MediaItem>>;
@@ -11,7 +11,7 @@ export async function categories() {
11
11
  return new Paginated(await SkyAPI.requestJSON('https://api.sky.blackbaud.com/school/v1/contentmanagement/photoalbums/categories'));
12
12
  }
13
13
  export async function list(request) {
14
- return await SkyAPI.requestJSON('https://api.sky.blackbaud.com/school/v1/contentmanagement/photoalbums/list', 'POST', JSON.stringify(request));
14
+ return new Paginated(await SkyAPI.requestJSON('https://api.sky.blackbaud.com/school/v1/contentmanagement/photoalbums/list', 'POST', JSON.stringify(request), { 'Content-Type': 'application/json' }));
15
15
  }
16
16
  export async function photosById(album_id) {
17
17
  return new Paginated(await SkyAPI.requestJSON(`https://api.sky.blackbaud.com/school/v1/contentmanagement/photoalbums/${album_id}`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oauth2-cli/sky-api",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "keywords": [
5
5
  "blackbaud",
6
6
  "sky",
@@ -28,8 +28,8 @@
28
28
  "devDependencies": {
29
29
  "@battis/descriptive-types": "^0.2.6",
30
30
  "@oauth2-cli/qui-cli-plugin": "^0.3.0",
31
- "@qui-cli/colors": "^3.1.1",
32
- "@qui-cli/env-1password": "^1.2.2",
31
+ "@qui-cli/colors": "^3.2.0",
32
+ "@qui-cli/env-1password": "^1.2.3",
33
33
  "@qui-cli/plugin": "^4.0.0",
34
34
  "@tsconfig/node20": "^20.1.8",
35
35
  "commit-and-tag-version": "^12.6.1",