@confed/db-types 0.1.0

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/dist/index.d.ts +252 -0
  2. package/package.json +23 -0
@@ -0,0 +1,252 @@
1
+ export interface UniqueCourse {
2
+ courseId: string;
3
+ subj: string;
4
+ crse: string;
5
+ title: string | null;
6
+ longTitle: string | null;
7
+ credits: number | null;
8
+ creditHr: number | null;
9
+ gradeMinPct: number | null;
10
+ gradeMode: string | null;
11
+ description: string | null;
12
+ dataHash: string;
13
+ usedInActivePrograms: number | null;
14
+ isActive: number | null;
15
+ createdAt: string | null;
16
+ updatedAt: string | null;
17
+ }
18
+ export interface NewUniqueCourse {
19
+ courseId: string;
20
+ subj: string;
21
+ crse: string;
22
+ title?: string | null;
23
+ longTitle?: string | null;
24
+ credits?: number | null;
25
+ creditHr?: number | null;
26
+ gradeMinPct?: number | null;
27
+ gradeMode?: string | null;
28
+ description?: string | null;
29
+ dataHash: string;
30
+ usedInActivePrograms?: number | null;
31
+ isActive?: number | null;
32
+ createdAt?: string | null;
33
+ updatedAt?: string | null;
34
+ }
35
+ export interface ProgramCourseProgram {
36
+ courseId: string;
37
+ progCode: string;
38
+ term: string | null;
39
+ sem: string | null;
40
+ seqNo: number | null;
41
+ sset: string | null;
42
+ subset: string | null;
43
+ attr: string | null;
44
+ gradeMin: string | null;
45
+ isActive: number | null;
46
+ createdAt: string | null;
47
+ updatedAt: string | null;
48
+ }
49
+ export interface NewProgramCourseProgram {
50
+ courseId: string;
51
+ progCode: string;
52
+ term?: string | null;
53
+ sem?: string | null;
54
+ seqNo?: number | null;
55
+ sset?: string | null;
56
+ subset?: string | null;
57
+ attr?: string | null;
58
+ gradeMin?: string | null;
59
+ isActive?: number | null;
60
+ createdAt?: string | null;
61
+ updatedAt?: string | null;
62
+ }
63
+ export interface ProgramFee {
64
+ id: string;
65
+ programCode: string;
66
+ campus: string | null;
67
+ term: string | null;
68
+ programYear: string | null;
69
+ feeRate: string | null;
70
+ totalTuition: number | null;
71
+ tuiRelated: number | null;
72
+ campusSvc: number | null;
73
+ health: number | null;
74
+ healthRec: number | null;
75
+ bus: number | null;
76
+ activity: number | null;
77
+ resource: number | null;
78
+ book: number | null;
79
+ inml: number | null;
80
+ itsf: number | null;
81
+ inrf: number | null;
82
+ fieldTrip: number | null;
83
+ supply: number | null;
84
+ tool: number | null;
85
+ uniform: number | null;
86
+ record: number | null;
87
+ exam: number | null;
88
+ parking: number | null;
89
+ coop: number | null;
90
+ isActive: number | null;
91
+ createdAt: string | null;
92
+ updatedAt: string | null;
93
+ }
94
+ export interface NewProgramFee extends Omit<ProgramFee, "campus" | "term" | "programYear" | "feeRate" | "totalTuition" | "tuiRelated" | "campusSvc" | "health" | "healthRec" | "bus" | "activity" | "resource" | "book" | "inml" | "itsf" | "inrf" | "fieldTrip" | "supply" | "tool" | "uniform" | "record" | "exam" | "parking" | "coop" | "isActive" | "createdAt" | "updatedAt"> {
95
+ campus?: string | null;
96
+ term?: string | null;
97
+ programYear?: string | null;
98
+ feeRate?: string | null;
99
+ totalTuition?: number | null;
100
+ tuiRelated?: number | null;
101
+ campusSvc?: number | null;
102
+ health?: number | null;
103
+ healthRec?: number | null;
104
+ bus?: number | null;
105
+ activity?: number | null;
106
+ resource?: number | null;
107
+ book?: number | null;
108
+ inml?: number | null;
109
+ itsf?: number | null;
110
+ inrf?: number | null;
111
+ fieldTrip?: number | null;
112
+ supply?: number | null;
113
+ tool?: number | null;
114
+ uniform?: number | null;
115
+ record?: number | null;
116
+ exam?: number | null;
117
+ parking?: number | null;
118
+ coop?: number | null;
119
+ isActive?: number | null;
120
+ createdAt?: string | null;
121
+ updatedAt?: string | null;
122
+ }
123
+ export interface SyncState {
124
+ dataset: string;
125
+ hash: string;
126
+ updatedAt: string | null;
127
+ }
128
+ export interface NewSyncState {
129
+ dataset: string;
130
+ hash: string;
131
+ updatedAt?: string | null;
132
+ }
133
+ export interface CeDivision {
134
+ divsCode: string;
135
+ divsDesc: string | null;
136
+ slug: string | null;
137
+ isActive: number | null;
138
+ createdAt: string | null;
139
+ updatedAt: string | null;
140
+ }
141
+ export interface NewCeDivision {
142
+ divsCode: string;
143
+ divsDesc?: string | null;
144
+ slug?: string | null;
145
+ isActive?: number | null;
146
+ createdAt?: string | null;
147
+ updatedAt?: string | null;
148
+ }
149
+ export interface CeDepartment {
150
+ deptCode: string;
151
+ deptDesc: string | null;
152
+ slug: string | null;
153
+ isActive: number | null;
154
+ createdAt: string | null;
155
+ updatedAt: string | null;
156
+ }
157
+ export interface NewCeDepartment {
158
+ deptCode: string;
159
+ deptDesc?: string | null;
160
+ slug?: string | null;
161
+ isActive?: number | null;
162
+ createdAt?: string | null;
163
+ updatedAt?: string | null;
164
+ }
165
+ export interface CeCourse {
166
+ courseId: string;
167
+ subj: string | null;
168
+ courseNumber: string | null;
169
+ title: string | null;
170
+ description: string | null;
171
+ divsCode: string | null;
172
+ slug: string | null;
173
+ regLink: string | null;
174
+ isActive: number | null;
175
+ createdAt: string | null;
176
+ updatedAt: string | null;
177
+ }
178
+ export interface NewCeCourse {
179
+ courseId: string;
180
+ subj?: string | null;
181
+ courseNumber?: string | null;
182
+ title?: string | null;
183
+ description?: string | null;
184
+ divsCode?: string | null;
185
+ slug?: string | null;
186
+ regLink?: string | null;
187
+ isActive?: number | null;
188
+ createdAt?: string | null;
189
+ updatedAt?: string | null;
190
+ }
191
+ export interface CeSession {
192
+ id: string;
193
+ courseId: string | null;
194
+ crn: string | null;
195
+ termCode: string | null;
196
+ campCode: string | null;
197
+ billHrs: string | null;
198
+ tuiwInd: string | null;
199
+ meetDay: string | null;
200
+ meetTime: string | null;
201
+ meetDate: string | null;
202
+ startDate: string | null;
203
+ endDate: string | null;
204
+ roomDescription: string | null;
205
+ buildingDescription: string | null;
206
+ roomNumber: string | null;
207
+ instructor: string | null;
208
+ courseFeesCents: number | null;
209
+ status: string | null;
210
+ isActive: number | null;
211
+ createdAt: string | null;
212
+ updatedAt: string | null;
213
+ }
214
+ export interface NewCeSession {
215
+ id: string;
216
+ courseId?: string | null;
217
+ crn?: string | null;
218
+ termCode?: string | null;
219
+ campCode?: string | null;
220
+ billHrs?: string | null;
221
+ tuiwInd?: string | null;
222
+ meetDay?: string | null;
223
+ meetTime?: string | null;
224
+ meetDate?: string | null;
225
+ startDate?: string | null;
226
+ endDate?: string | null;
227
+ roomDescription?: string | null;
228
+ buildingDescription?: string | null;
229
+ roomNumber?: string | null;
230
+ instructor?: string | null;
231
+ courseFeesCents?: number | null;
232
+ status?: string | null;
233
+ isActive?: number | null;
234
+ createdAt?: string | null;
235
+ updatedAt?: string | null;
236
+ }
237
+ export interface CeCourseDeptMap {
238
+ courseId: string | null;
239
+ deptCode: string | null;
240
+ regLink: string | null;
241
+ isActive: number | null;
242
+ createdAt: string | null;
243
+ updatedAt: string | null;
244
+ }
245
+ export interface NewCeCourseDeptMap {
246
+ courseId?: string | null;
247
+ deptCode?: string | null;
248
+ regLink?: string | null;
249
+ isActive?: number | null;
250
+ createdAt?: string | null;
251
+ updatedAt?: string | null;
252
+ }
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@confed/db-types",
3
+ "version": "0.1.0",
4
+ "description": "TypeScript types for the CC Courses Sync D1 database",
5
+ "type": "module",
6
+ "types": "./dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts"
10
+ }
11
+ },
12
+ "files": ["dist"],
13
+ "scripts": {
14
+ "build": "tsc",
15
+ "prepublishOnly": "npm run build"
16
+ },
17
+ "devDependencies": {
18
+ "typescript": "^5.8.3"
19
+ },
20
+ "publishConfig": {
21
+ "access": "public"
22
+ }
23
+ }