@free-drivers-ed-california/types 0.0.16 → 0.0.18

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.
@@ -2,5 +2,5 @@ export * from './person.interface';
2
2
  export * from './base-object.interface';
3
3
  export * from './base-response.interface';
4
4
  export * from './address.interface';
5
- export * from './student.interface';
5
+ export * from '../student/student.interface';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interfaces/generics/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interfaces/generics/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC"}
@@ -2,4 +2,4 @@ export * from './person.interface';
2
2
  export * from './base-object.interface';
3
3
  export * from './base-response.interface';
4
4
  export * from './address.interface';
5
- export * from './student.interface';
5
+ export * from '../student/student.interface';
@@ -1,5 +1,6 @@
1
1
  import { Address } from "../generics";
2
2
  export interface CreateStudentRequest {
3
+ userId: number;
3
4
  firstName: string;
4
5
  lastName: string;
5
6
  email: string;
@@ -1 +1 @@
1
- {"version":3,"file":"create-student-request.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/student/create-student-request.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAEpC,MAAM,WAAW,oBAAoB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CACpB"}
1
+ {"version":3,"file":"create-student-request.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/student/create-student-request.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAEpC,MAAM,WAAW,oBAAoB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CACpB"}
@@ -1,11 +1,8 @@
1
1
  import { BaseResponse } from "../generics";
2
+ import { User } from "../user";
3
+ import { Student } from "./student.interface";
2
4
  export interface CreateStudentResponse extends BaseResponse {
3
- id: number;
4
- firstName: string;
5
- lastName: string;
6
- email: string;
7
- phone: string;
8
- dateOfBirth: string;
9
- createdAt: string;
5
+ user: User;
6
+ student: Student;
10
7
  }
11
8
  //# sourceMappingURL=create-student-response.interface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-student-response.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/student/create-student-response.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AAEzC,MAAM,WAAW,qBAAsB,SAAQ,YAAY;IACvD,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACrB"}
1
+ {"version":3,"file":"create-student-response.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/student/create-student-response.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AACzC,OAAO,EAAC,IAAI,EAAC,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAC,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAE5C,MAAM,WAAW,qBAAsB,SAAQ,YAAY;IACvD,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;CACpB"}
@@ -0,0 +1,8 @@
1
+ import { Address } from "../generics";
2
+ export interface Student {
3
+ userId: string;
4
+ address: Address;
5
+ dateOfBirth: string;
6
+ phone: string;
7
+ }
8
+ //# sourceMappingURL=student.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"student.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/student/student.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAEpC,MAAM,WAAW,OAAO;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACjB"}
@@ -1,9 +1,6 @@
1
- import { UserRoles } from "../../enums";
2
1
  import { BaseResponse } from "../generics";
2
+ import { User } from "./user.interface";
3
3
  export interface CreateUserResponse extends BaseResponse {
4
- id: number;
5
- email: string;
6
- role: UserRoles;
7
- createdAt: string;
4
+ user: User;
8
5
  }
9
6
  //# sourceMappingURL=create-user-response.interface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-user-response.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/user/create-user-response.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AAEzC,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACpD,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACrB"}
1
+ {"version":3,"file":"create-user-response.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/user/create-user-response.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AACzC,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAC;AAEtC,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACpD,IAAI,EAAE,IAAI,CAAC;CACd"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@free-drivers-ed-california/types",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "private": false,
5
5
  "description": "Types and Interfaces for Free Drivers Ed California UI & API",
6
6
  "main": "dist/index.js",
@@ -1,10 +0,0 @@
1
- import { BaseObject } from "./base-object.interface";
2
- import { Person } from "./person.interface";
3
- import { Address } from "./address.interface";
4
- export interface Student extends Person, BaseObject {
5
- address: Address;
6
- dateOfBirth: string;
7
- phone: string;
8
- email: string;
9
- }
10
- //# sourceMappingURL=student.interface.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"student.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/generics/student.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAE5C,MAAM,WAAW,OAAQ,SAAQ,MAAM,EAAE,UAAU;IAC/C,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB"}