@pulsecharterconnect/types 0.0.32 → 0.0.33

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.
@@ -148,6 +148,8 @@ export interface IOrganization {
148
148
  systemAdminOrganizationDetails?: ISystemAdminOrganization;
149
149
  transplantCenterOrganizationDetails?: ITransplantCenterOrganization;
150
150
  transportationOperatorOrganizationDetails?: ITranportationOperatorOrganization;
151
+ createdAt?: number;
152
+ updatedAt?: number;
151
153
  }
152
154
  export declare class Organization implements IOrganization {
153
155
  id: string;
@@ -157,5 +159,7 @@ export declare class Organization implements IOrganization {
157
159
  systemAdminOrganizationDetails?: ISystemAdminOrganization;
158
160
  transplantCenterOrganizationDetails?: ITransplantCenterOrganization;
159
161
  transportationOperatorOrganizationDetails?: ITranportationOperatorOrganization;
162
+ createdAt?: number;
163
+ updatedAt?: number;
160
164
  constructor(organization: IOrganization);
161
165
  }
@@ -109,6 +109,9 @@ class Organization {
109
109
  default:
110
110
  throw new Error('Organization type not recognized');
111
111
  }
112
+ ;
113
+ this.createdAt = organization.createdAt;
114
+ this.updatedAt = organization.updatedAt;
112
115
  }
113
116
  }
114
117
  exports.Organization = Organization;
@@ -3,10 +3,14 @@ export interface ISampleItem {
3
3
  id: string;
4
4
  fieldOne: SampleFieldOne;
5
5
  fieldTwo: number;
6
+ createdAt?: number;
7
+ updatedAt?: number;
6
8
  }
7
9
  export declare class SampleItem implements ISampleItem {
8
10
  id: string;
9
11
  fieldOne: SampleFieldOne;
10
12
  fieldTwo: number;
11
- constructor(id: string, fieldOne: SampleFieldOne, fieldTwo: number);
13
+ createdAt?: number;
14
+ updatedAt?: number;
15
+ constructor(id: string, fieldOne: SampleFieldOne, fieldTwo: number, createdAt?: number, updatedAt?: number);
12
16
  }
@@ -2,10 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SampleItem = void 0;
4
4
  class SampleItem {
5
- constructor(id, fieldOne, fieldTwo) {
5
+ constructor(id, fieldOne, fieldTwo, createdAt, updatedAt) {
6
6
  this.id = id;
7
7
  this.fieldOne = fieldOne;
8
8
  this.fieldTwo = fieldTwo;
9
+ this.createdAt = createdAt;
10
+ this.updatedAt = updatedAt;
9
11
  }
10
12
  }
11
13
  exports.SampleItem = SampleItem;
@@ -24,6 +24,8 @@ export interface IUser {
24
24
  lastLoginDate?: number;
25
25
  notificationSettings: NotificationSettings;
26
26
  verifiedEmail?: boolean;
27
+ createdAt?: number;
28
+ updatedAt?: number;
27
29
  }
28
30
  export declare class User implements IUser {
29
31
  id: string;
@@ -44,7 +46,9 @@ export declare class User implements IUser {
44
46
  lastLoginDate?: number;
45
47
  notificationSettings: NotificationSettings;
46
48
  verifiedEmail?: boolean;
47
- constructor({ id, workOsId, primaryEmail, secondaryEmail, firstName, lastName, title, primaryPhoneNumber, secondaryPhoneNumber, privacyAgreedOnDate, termsAgreedOnDate, organizationId, role, addedByUserId, addedOnDate, lastLoginDate, notificationSettings, verifiedEmail, }: IUser);
49
+ createdAt?: number;
50
+ updatedAt?: number;
51
+ constructor({ id, workOsId, primaryEmail, secondaryEmail, firstName, lastName, title, primaryPhoneNumber, secondaryPhoneNumber, privacyAgreedOnDate, termsAgreedOnDate, organizationId, role, addedByUserId, addedOnDate, lastLoginDate, notificationSettings, verifiedEmail, createdAt, updatedAt, }: IUser);
48
52
  }
49
53
  export declare class ResetPassword {
50
54
  token: string;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ResetPassword = exports.User = void 0;
4
4
  class User {
5
- constructor({ id, workOsId, primaryEmail, secondaryEmail, firstName, lastName, title, primaryPhoneNumber, secondaryPhoneNumber, privacyAgreedOnDate, termsAgreedOnDate, organizationId, role, addedByUserId, addedOnDate, lastLoginDate, notificationSettings, verifiedEmail, }) {
5
+ constructor({ id, workOsId, primaryEmail, secondaryEmail, firstName, lastName, title, primaryPhoneNumber, secondaryPhoneNumber, privacyAgreedOnDate, termsAgreedOnDate, organizationId, role, addedByUserId, addedOnDate, lastLoginDate, notificationSettings, verifiedEmail, createdAt, updatedAt, }) {
6
6
  this.id = id;
7
7
  this.workOsId = workOsId;
8
8
  this.primaryEmail = primaryEmail;
@@ -26,6 +26,8 @@ class User {
26
26
  inApp: notificationSettings.inApp || true,
27
27
  };
28
28
  this.verifiedEmail = verifiedEmail || false;
29
+ this.createdAt = createdAt;
30
+ this.updatedAt = updatedAt;
29
31
  }
30
32
  }
31
33
  exports.User = User;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulsecharterconnect/types",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",