@obe-loms/coms-parser 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/main.d.ts +24 -20
  2. package/package.json +6 -2
package/main.d.ts CHANGED
@@ -1,22 +1,26 @@
1
1
  export default class Client {
2
- private BASE_URL;
3
- constructor(url: string);
4
- Parser(): {
5
- /**
6
- * Parse the official curriculum data from the registrar to a digestible format
7
- * @param curriculum file from registrar
8
- * @returns status 201
9
- */
10
- curriculum: (xls: File) => Promise<Record<string, unknown>>;
11
- /**
12
- * Parse the course offering data
13
- * @param offering file from registrar
14
- * @returns status 201
15
- */
16
- courseOffering: (xls: File) => Promise<Record<string, unknown>>;
17
- coaep: (xls: File, course_id: string) => Promise<Record<string, unknown>>;
18
- enrolledStudent: (xls: File) => Promise<Record<string, unknown>>;
19
- classlist: (xls: File, subj_code: number, period_id: number) => Promise<Record<string, unknown>>;
20
- assessmentData: (xls: File) => Promise<Record<string, unknown>>;
21
- };
2
+ private BASE_URL;
3
+ constructor(url: string);
4
+ Parser(): {
5
+ /**
6
+ * Parse the official curriculum data from the registrar to a digestible format
7
+ * @param curriculum file from registrar
8
+ * @returns status 201
9
+ */
10
+ curriculum: (xls: File) => Promise<Record<string, unknown>>;
11
+ /**
12
+ * Parse the course offering data
13
+ * @param offering file from registrar
14
+ * @returns status 201
15
+ */
16
+ courseOffering: (xls: File) => Promise<Record<string, unknown>>;
17
+ coaep: (xls: File, course_id: string) => Promise<Record<string, unknown>>;
18
+ enrolledStudent: (xls: File) => Promise<Record<string, unknown>>;
19
+ classlist: (
20
+ xls: File,
21
+ subj_code: number,
22
+ period_id: number
23
+ ) => Promise<Record<string, unknown>>;
24
+ assessmentData: (xls: File) => Promise<Record<string, unknown>>;
25
+ };
22
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obe-loms/coms-parser",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "license": "ISC",
5
5
  "dependencies": {
6
6
  "papaparse": "^5.5.3",
@@ -17,5 +17,9 @@
17
17
  "ts-node": "^10.9.2",
18
18
  "typescript": "^5.9.2"
19
19
  },
20
- "main": "bundle.js"
20
+ "main": "./bundle.js",
21
+ "types": "./main.d.ts",
22
+ "publishConfig": {
23
+ "access": "public"
24
+ }
21
25
  }