@pulsecharterconnect/types 0.1.41 → 0.1.42

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.
@@ -83,6 +83,11 @@ export declare enum SafetyRequirements {
83
83
  CAMTS = "CAMTS",
84
84
  OTHER = "Other"
85
85
  }
86
+ export declare enum TimezoneDisplayMode {
87
+ OCCURRENCE = "Occurrence",
88
+ ORGANIZATION = "Organization",
89
+ USER = "User"
90
+ }
86
91
  export type SafetyCertifications = {
87
92
  certification: SafetyRequirements;
88
93
  expirationDate?: number;
@@ -161,18 +166,24 @@ export interface IOrganization {
161
166
  name: string;
162
167
  type: OrganizationType;
163
168
  featureFlags: IFeatureFlag[];
169
+ timezonePreference?: TimezonePreference;
164
170
  systemAdminOrganizationDetails?: ISystemAdminOrganization;
165
171
  transplantCenterOrganizationDetails?: ITransplantCenterOrganization;
166
172
  transportationOperatorOrganizationDetails?: ITranportationOperatorOrganization;
167
173
  createdAt?: number;
168
174
  updatedAt?: number;
169
175
  }
176
+ export interface TimezonePreference {
177
+ displayMode: TimezoneDisplayMode;
178
+ organizationTimezone?: string;
179
+ }
170
180
  export declare class Organization implements IOrganization {
171
181
  id: string;
172
182
  workOsId: string;
173
183
  name: string;
174
184
  type: OrganizationType;
175
185
  featureFlags: IFeatureFlag[];
186
+ timezonePreference?: TimezonePreference;
176
187
  systemAdminOrganizationDetails?: ISystemAdminOrganization;
177
188
  transplantCenterOrganizationDetails?: ITransplantCenterOrganization;
178
189
  transportationOperatorOrganizationDetails?: ITranportationOperatorOrganization;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Organization = exports.SafetyRequirements = exports.StateCode = exports.GroundService = exports.AirService = exports.OrganizationType = void 0;
3
+ exports.Organization = exports.TimezoneDisplayMode = exports.SafetyRequirements = exports.StateCode = exports.GroundService = exports.AirService = exports.OrganizationType = void 0;
4
4
  var OrganizationType;
5
5
  (function (OrganizationType) {
6
6
  OrganizationType["SYSTEM_ADMIN"] = "System Admin";
@@ -90,12 +90,19 @@ var SafetyRequirements;
90
90
  SafetyRequirements["CAMTS"] = "CAMTS";
91
91
  SafetyRequirements["OTHER"] = "Other";
92
92
  })(SafetyRequirements = exports.SafetyRequirements || (exports.SafetyRequirements = {}));
93
+ var TimezoneDisplayMode;
94
+ (function (TimezoneDisplayMode) {
95
+ TimezoneDisplayMode["OCCURRENCE"] = "Occurrence";
96
+ TimezoneDisplayMode["ORGANIZATION"] = "Organization";
97
+ TimezoneDisplayMode["USER"] = "User";
98
+ })(TimezoneDisplayMode = exports.TimezoneDisplayMode || (exports.TimezoneDisplayMode = {}));
93
99
  class Organization {
94
100
  constructor(organization) {
95
101
  this.id = organization.id;
96
102
  this.workOsId = organization.workOsId;
97
103
  this.name = organization.name;
98
104
  this.type = organization.type;
105
+ this.timezonePreference = organization.timezonePreference;
99
106
  switch (organization.type) {
100
107
  case "System Admin":
101
108
  this.systemAdminOrganizationDetails =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulsecharterconnect/types",
3
- "version": "0.1.41",
3
+ "version": "0.1.42",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",