@oauth2-cli/sky-api 0.2.0 → 0.2.2
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 +14 -0
- package/dist/School/Assignment.d.ts +23 -0
- package/dist/School/Assignment.js +1 -0
- package/dist/School/index.d.ts +1 -0
- package/dist/School/index.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +6 -5
- package/src/School/Assignment.ts +25 -0
- package/src/School/index.ts +1 -0
- package/src/index.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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.2.2](https://github.com/battis/oauth2-cli/compare/sky-api/0.2.1...sky-api/0.2.2) (2025-09-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* update dependencies to address transient openid-client config error ([f0ca9a8](https://github.com/battis/oauth2-cli/commit/f0ca9a8d2bb4551b80a49e48aa43df5ba66a5a9b))
|
|
11
|
+
|
|
12
|
+
## [0.2.1](https://github.com/battis/oauth2-cli/compare/sky-api/0.2.0...sky-api/0.2.1) (2025-03-15)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **sky-api:** add (some) type support for Sky API responses ([de20cf2](https://github.com/battis/oauth2-cli/commit/de20cf24c5d4de71b6e30a89a5812d8e80af44db))
|
|
18
|
+
|
|
5
19
|
## [0.2.0](https://github.com/battis/oauth2-cli/compare/sky-api/0.1.2...sky-api/0.2.0) (2025-03-09)
|
|
6
20
|
|
|
7
21
|
### Features
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DateTimeString } from '@battis/descriptive-types';
|
|
2
|
+
export type Assignment = {
|
|
3
|
+
id: number;
|
|
4
|
+
date: DateTimeString;
|
|
5
|
+
description: string;
|
|
6
|
+
discussion: false;
|
|
7
|
+
due_date: DateTimeString;
|
|
8
|
+
enrolled: number;
|
|
9
|
+
graded_count: number;
|
|
10
|
+
index_id: number;
|
|
11
|
+
major: boolean;
|
|
12
|
+
name: string;
|
|
13
|
+
publish_on_assigned: boolean;
|
|
14
|
+
published: boolean;
|
|
15
|
+
rank: number;
|
|
16
|
+
status: number;
|
|
17
|
+
type: string;
|
|
18
|
+
type_id: number;
|
|
19
|
+
};
|
|
20
|
+
export type AssignmentList = {
|
|
21
|
+
count: number;
|
|
22
|
+
value: Assignment[];
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Assignment.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Assignment.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RequestInfo, RequestInit } from 'node-fetch';
|
|
2
2
|
import * as OAuth2 from 'oauth2-cli';
|
|
3
|
+
export * as School from './School/index.js';
|
|
3
4
|
export type Credentials = Omit<OAuth2.Credentials, 'authorization_endpoint' | 'token_endpoint'> & {
|
|
4
5
|
subscription_key: string;
|
|
5
6
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// TODO replace node-fetch dependency with native fetch when bumping to node@>=21
|
|
2
2
|
import nodeFetch from 'node-fetch';
|
|
3
3
|
import * as OAuth2 from 'oauth2-cli';
|
|
4
|
+
export * as School from './School/index.js';
|
|
4
5
|
const SUBSCRIPTION_HEADER = 'Bb-Api-Subscription-Key';
|
|
5
6
|
export class SkyAPI {
|
|
6
7
|
client;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oauth2-cli/sky-api",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"blackbaud",
|
|
6
6
|
"sky",
|
|
@@ -23,14 +23,15 @@
|
|
|
23
23
|
"types": "./dist/index.d.ts",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"node-fetch": "^3.3.2",
|
|
26
|
-
"oauth2-cli": "0.2.
|
|
26
|
+
"oauth2-cli": "0.2.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@
|
|
30
|
-
"
|
|
29
|
+
"@battis/descriptive-types": "^0.2.3",
|
|
30
|
+
"@tsconfig/node20": "^20.1.6",
|
|
31
|
+
"commit-and-tag-version": "^12.6.0",
|
|
31
32
|
"del-cli": "^6.0.0",
|
|
32
33
|
"npm-run-all": "^4.1.5",
|
|
33
|
-
"typescript": "^5.
|
|
34
|
+
"typescript": "^5.9.2"
|
|
34
35
|
},
|
|
35
36
|
"scripts": {
|
|
36
37
|
"clean": "del ./dist",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DateTimeString } from '@battis/descriptive-types';
|
|
2
|
+
|
|
3
|
+
export type Assignment = {
|
|
4
|
+
id: number;
|
|
5
|
+
date: DateTimeString;
|
|
6
|
+
description: string;
|
|
7
|
+
discussion: false;
|
|
8
|
+
due_date: DateTimeString;
|
|
9
|
+
enrolled: number;
|
|
10
|
+
graded_count: number;
|
|
11
|
+
index_id: number;
|
|
12
|
+
major: boolean;
|
|
13
|
+
name: string;
|
|
14
|
+
publish_on_assigned: boolean;
|
|
15
|
+
published: boolean;
|
|
16
|
+
rank: number;
|
|
17
|
+
status: number;
|
|
18
|
+
type: string;
|
|
19
|
+
type_id: number;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type AssignmentList = {
|
|
23
|
+
count: number;
|
|
24
|
+
value: Assignment[];
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Assignment.js';
|
package/src/index.ts
CHANGED