@uptime.app/contracts 2.0.90 → 3.0.0-UPM-8072.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.
@@ -1,6 +1,8 @@
1
1
  export interface Course {
2
2
  /** maps to LearnUponWebhookCourse.id */
3
3
  id: string;
4
+ /** Id of the Uptime LearnUpon portal the course belongs to */
5
+ uptimeLearnUponPortalId: string;
4
6
  v: number;
5
7
  createdAt: string;
6
8
  updatedAt: string;
@@ -12,7 +14,9 @@ export interface Course {
12
14
  moduleCount: number;
13
15
  /** maps to if LearnUponWebhookCourse.certification exists */
14
16
  isCertified: boolean;
15
- /** maps to LearnUponWebhookCourse.portalId (uptime id of the Learn Upon portal) */
17
+ /**
18
+ * @deprecated use uptimeLearnUponPortalId instead
19
+ */
16
20
  portalId: string;
17
21
  /** maps to LearnUponWebhookCourse.cataloged. If the course is open to self enrollment */
18
22
  isCataloged: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"course.d.ts","sourceRoot":"","sources":["../../../src/course/course.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,MAAM;IACnB,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oDAAoD;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,6DAA6D;IAC7D,WAAW,EAAE,OAAO,CAAC;IACrB,mFAAmF;IACnF,QAAQ,EAAE,MAAM,CAAA;IAChB,yFAAyF;IACzF,WAAW,EAAE,OAAO,CAAC;IACrB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,MAAM,EAAE,MAAM,CAAC;IACf,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
1
+ {"version":3,"file":"course.d.ts","sourceRoot":"","sources":["../../../src/course/course.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,MAAM;IACnB,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,8DAA8D;IAC9D,uBAAuB,EAAE,MAAM,CAAC;IAChC,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oDAAoD;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,6DAA6D;IAC7D,WAAW,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,yFAAyF;IACzF,WAAW,EAAE,OAAO,CAAC;IACrB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,MAAM,EAAE,MAAM,CAAC;IACf,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
@@ -18,6 +18,8 @@ export interface CourseEnrollment {
18
18
  moduleCount: number;
19
19
  /** maps to Course.isCertified */
20
20
  isCertified: boolean;
21
+ /** LearnUponWebhookCourseEnrollment.eventCreated */
22
+ enrolledAt: string;
21
23
  /** maps to LearnUponWebhookCourseCompletion.enrollmentStatus && LearnUponWebhookModuleCompletions*/
22
24
  status: 'not_started' | 'in_progress' | 'completed' | 'passed' | 'failed' | 'pending_review';
23
25
  /** maps to the number of LearnUponWebhookModuleCompletions for this enrollment */
@@ -1 +1 @@
1
- {"version":3,"file":"course-enrollment.d.ts","sourceRoot":"","sources":["../../../src/course-enrollment/course-enrollment.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,gBAAgB;IAC7B,kDAAkD;IAClD,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,2BAA2B;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,8BAA8B;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qBAAqB;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,wBAAwB;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,uDAAuD;IACvD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,oGAAoG;IACpG,MAAM,EAAE,aAAa,GAAG,aAAa,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,gBAAgB,CAAC;IAC7F,kFAAkF;IAClF,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gGAAgG;IAChG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gHAAgH;IAChH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
1
+ {"version":3,"file":"course-enrollment.d.ts","sourceRoot":"","sources":["../../../src/course-enrollment/course-enrollment.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,gBAAgB;IAC7B,kDAAkD;IAClD,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,2BAA2B;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,8BAA8B;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qBAAqB;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,wBAAwB;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,uDAAuD;IACvD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,oDAAoD;IACpD,UAAU,EAAE,MAAM,CAAC;IACnB,oGAAoG;IACpG,MAAM,EAAE,aAAa,GAAG,aAAa,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,gBAAgB,CAAC;IAC7F,kFAAkF;IAClF,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gGAAgG;IAChG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gHAAgH;IAChH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
@@ -100,7 +100,7 @@ export interface LearnUponWebhookModuleCompletion {
100
100
  /** Document last update timestamp */
101
101
  updatedAt: string;
102
102
  /** Unique numeric identifier for the LearnUpon portal */
103
- portalId: string;
103
+ portalId: number;
104
104
  /** List of unique identifiers for an individual user */
105
105
  user: LearnUponWebhookUser;
106
106
  /** Unique numeric identifier for the enrollment */
@@ -204,7 +204,7 @@ export interface LearnUponWebhookCourseEnrollment {
204
204
  /** Document last update timestamp */
205
205
  updatedAt: string;
206
206
  /** Unique numeric identifier for the LearnUpon portal */
207
- portalId: string;
207
+ portalId: number;
208
208
  /** Date of enrollment in UTC format */
209
209
  eventCreated: string;
210
210
  /** List of unique identifiers for an individual user */
@@ -229,7 +229,7 @@ export interface LearnUponWebhookCourse {
229
229
  /** Document last update timestamp */
230
230
  updatedAt: string;
231
231
  /** Unique numeric identifier for the LearnUpon portal */
232
- portalId: string;
232
+ portalId: number;
233
233
  /** Unique identifier numeric for the course */
234
234
  courseId: number;
235
235
  /** The title of the course */
@@ -1,6 +1,8 @@
1
1
  export interface Course {
2
2
  /** maps to LearnUponWebhookCourse.id */
3
3
  id: string;
4
+ /** Id of the Uptime LearnUpon portal the course belongs to */
5
+ uptimeLearnUponPortalId: string;
4
6
  v: number;
5
7
  createdAt: string;
6
8
  updatedAt: string;
@@ -12,7 +14,9 @@ export interface Course {
12
14
  moduleCount: number;
13
15
  /** maps to if LearnUponWebhookCourse.certification exists */
14
16
  isCertified: boolean;
15
- /** maps to LearnUponWebhookCourse.portalId (uptime id of the Learn Upon portal) */
17
+ /**
18
+ * @deprecated use uptimeLearnUponPortalId instead
19
+ */
16
20
  portalId: string;
17
21
  /** maps to LearnUponWebhookCourse.cataloged. If the course is open to self enrollment */
18
22
  isCataloged: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"course.d.ts","sourceRoot":"","sources":["../../../src/course/course.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,MAAM;IACnB,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oDAAoD;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,6DAA6D;IAC7D,WAAW,EAAE,OAAO,CAAC;IACrB,mFAAmF;IACnF,QAAQ,EAAE,MAAM,CAAA;IAChB,yFAAyF;IACzF,WAAW,EAAE,OAAO,CAAC;IACrB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,MAAM,EAAE,MAAM,CAAC;IACf,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
1
+ {"version":3,"file":"course.d.ts","sourceRoot":"","sources":["../../../src/course/course.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,MAAM;IACnB,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,8DAA8D;IAC9D,uBAAuB,EAAE,MAAM,CAAC;IAChC,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oDAAoD;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,6DAA6D;IAC7D,WAAW,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,yFAAyF;IACzF,WAAW,EAAE,OAAO,CAAC;IACrB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,MAAM,EAAE,MAAM,CAAC;IACf,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
@@ -18,6 +18,8 @@ export interface CourseEnrollment {
18
18
  moduleCount: number;
19
19
  /** maps to Course.isCertified */
20
20
  isCertified: boolean;
21
+ /** LearnUponWebhookCourseEnrollment.eventCreated */
22
+ enrolledAt: string;
21
23
  /** maps to LearnUponWebhookCourseCompletion.enrollmentStatus && LearnUponWebhookModuleCompletions*/
22
24
  status: 'not_started' | 'in_progress' | 'completed' | 'passed' | 'failed' | 'pending_review';
23
25
  /** maps to the number of LearnUponWebhookModuleCompletions for this enrollment */
@@ -1 +1 @@
1
- {"version":3,"file":"course-enrollment.d.ts","sourceRoot":"","sources":["../../../src/course-enrollment/course-enrollment.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,gBAAgB;IAC7B,kDAAkD;IAClD,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,2BAA2B;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,8BAA8B;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qBAAqB;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,wBAAwB;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,uDAAuD;IACvD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,oGAAoG;IACpG,MAAM,EAAE,aAAa,GAAG,aAAa,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,gBAAgB,CAAC;IAC7F,kFAAkF;IAClF,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gGAAgG;IAChG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gHAAgH;IAChH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
1
+ {"version":3,"file":"course-enrollment.d.ts","sourceRoot":"","sources":["../../../src/course-enrollment/course-enrollment.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,gBAAgB;IAC7B,kDAAkD;IAClD,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,2BAA2B;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,8BAA8B;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qBAAqB;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,wBAAwB;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,uDAAuD;IACvD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,oDAAoD;IACpD,UAAU,EAAE,MAAM,CAAC;IACnB,oGAAoG;IACpG,MAAM,EAAE,aAAa,GAAG,aAAa,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,gBAAgB,CAAC;IAC7F,kFAAkF;IAClF,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gGAAgG;IAChG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gHAAgH;IAChH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
@@ -100,7 +100,7 @@ export interface LearnUponWebhookModuleCompletion {
100
100
  /** Document last update timestamp */
101
101
  updatedAt: string;
102
102
  /** Unique numeric identifier for the LearnUpon portal */
103
- portalId: string;
103
+ portalId: number;
104
104
  /** List of unique identifiers for an individual user */
105
105
  user: LearnUponWebhookUser;
106
106
  /** Unique numeric identifier for the enrollment */
@@ -204,7 +204,7 @@ export interface LearnUponWebhookCourseEnrollment {
204
204
  /** Document last update timestamp */
205
205
  updatedAt: string;
206
206
  /** Unique numeric identifier for the LearnUpon portal */
207
- portalId: string;
207
+ portalId: number;
208
208
  /** Date of enrollment in UTC format */
209
209
  eventCreated: string;
210
210
  /** List of unique identifiers for an individual user */
@@ -229,7 +229,7 @@ export interface LearnUponWebhookCourse {
229
229
  /** Document last update timestamp */
230
230
  updatedAt: string;
231
231
  /** Unique numeric identifier for the LearnUpon portal */
232
- portalId: string;
232
+ portalId: number;
233
233
  /** Unique identifier numeric for the course */
234
234
  courseId: number;
235
235
  /** The title of the course */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uptime.app/contracts",
3
- "version": "2.0.90",
3
+ "version": "3.0.0-UPM-8072.0",
4
4
  "license": "MIT",
5
5
  "types": "./dist/esm/index.d.ts",
6
6
  "main": "./dist/cjs/index.js",
@@ -14,5 +14,5 @@
14
14
  "devDependencies": {
15
15
  "typescript": "^5.4.3"
16
16
  },
17
- "gitHead": "5c34e8b08b7fa2978cd784b82a346f33e95742d1"
17
+ "gitHead": "d4bb40676e4b9fa7ef18973b0678498c86a83a26"
18
18
  }
@@ -2,6 +2,8 @@
2
2
  export interface Course {
3
3
  /** maps to LearnUponWebhookCourse.id */
4
4
  id: string;
5
+ /** Id of the Uptime LearnUpon portal the course belongs to */
6
+ uptimeLearnUponPortalId: string;
5
7
  v: number;
6
8
  createdAt: string;
7
9
  updatedAt: string;
@@ -13,8 +15,10 @@ export interface Course {
13
15
  moduleCount: number;
14
16
  /** maps to if LearnUponWebhookCourse.certification exists */
15
17
  isCertified: boolean;
16
- /** maps to LearnUponWebhookCourse.portalId (uptime id of the Learn Upon portal) */
17
- portalId: string
18
+ /**
19
+ * @deprecated use uptimeLearnUponPortalId instead
20
+ */
21
+ portalId: string;
18
22
  /** maps to LearnUponWebhookCourse.cataloged. If the course is open to self enrollment */
19
23
  isCataloged: boolean;
20
24
  /** maps to LearnUponWebhookCourse.dueDate.setDate */
@@ -19,6 +19,8 @@ export interface CourseEnrollment {
19
19
  moduleCount: number;
20
20
  /** maps to Course.isCertified */
21
21
  isCertified: boolean;
22
+ /** LearnUponWebhookCourseEnrollment.eventCreated */
23
+ enrolledAt: string;
22
24
  /** maps to LearnUponWebhookCourseCompletion.enrollmentStatus && LearnUponWebhookModuleCompletions*/
23
25
  status: 'not_started' | 'in_progress' | 'completed' | 'passed' | 'failed' | 'pending_review';
24
26
  /** maps to the number of LearnUponWebhookModuleCompletions for this enrollment */
@@ -102,7 +102,7 @@ export interface LearnUponWebhookModuleCompletion {
102
102
  /** Document last update timestamp */
103
103
  updatedAt: string;
104
104
  /** Unique numeric identifier for the LearnUpon portal */
105
- portalId: string;
105
+ portalId: number;
106
106
  /** List of unique identifiers for an individual user */
107
107
  user: LearnUponWebhookUser;
108
108
  /** Unique numeric identifier for the enrollment */
@@ -154,11 +154,11 @@ export interface LearnUponWebhookModuleCompletion {
154
154
  passMark?: number;
155
155
  /** The passing percentage required for this exam. When set, this value overrides passMark */
156
156
  passPercentage?: number;
157
-
157
+
158
158
  // For surveys
159
159
  /** Survey only: unique numeric identifier for a survey in LearnUpon */
160
160
  surveyId?: number;
161
-
161
+
162
162
  // For assignments
163
163
  /** Attributes about the feedback the instructor provides, including an array for any feedback attachments */
164
164
  instructorFeedback?: {
@@ -212,7 +212,7 @@ export interface LearnUponWebhookCourseEnrollment {
212
212
  /** Document last update timestamp */
213
213
  updatedAt: string;
214
214
  /** Unique numeric identifier for the LearnUpon portal */
215
- portalId: string;
215
+ portalId: number;
216
216
  /** Date of enrollment in UTC format */
217
217
  eventCreated: string;
218
218
  /** List of unique identifiers for an individual user */
@@ -238,7 +238,7 @@ export interface LearnUponWebhookCourse {
238
238
  /** Document last update timestamp */
239
239
  updatedAt: string;
240
240
  /** Unique numeric identifier for the LearnUpon portal */
241
- portalId: string;
241
+ portalId: number;
242
242
  /** Unique identifier numeric for the course */
243
243
  courseId: number;
244
244
  /** The title of the course */