@turndown/library 0.0.48 → 0.0.50

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,4 +1,4 @@
1
- import { USStateCodeType } from "../base";
1
+ import { ObjectValues, USStateCodeType } from "../base";
2
2
  export interface Company {
3
3
  id: string;
4
4
  displayName: string;
@@ -6,6 +6,7 @@ export interface Company {
6
6
  addressLine2?: string;
7
7
  city?: string;
8
8
  stateCode?: USStateCodeType;
9
+ companyType: CompanyType;
9
10
  postalCode?: string;
10
11
  country?: string;
11
12
  timezone?: string;
@@ -14,3 +15,10 @@ export interface Company {
14
15
  createdAt: Date;
15
16
  updatedAt: Date;
16
17
  }
18
+ export declare const COMPANY_TYPES: {
19
+ readonly PROPERTY_MANAGEMENT: "PROPERTY_MANAGEMENT";
20
+ readonly MAINTENANCE: "MAINTENANCE";
21
+ readonly CLEANER: "CLEANER";
22
+ readonly OTHER: "OTHER";
23
+ };
24
+ export type CompanyType = ObjectValues<typeof COMPANY_TYPES>;
@@ -1 +1,6 @@
1
- export {};
1
+ export const COMPANY_TYPES = {
2
+ PROPERTY_MANAGEMENT: "PROPERTY_MANAGEMENT",
3
+ MAINTENANCE: "MAINTENANCE",
4
+ CLEANER: "CLEANER",
5
+ OTHER: "OTHER",
6
+ };
@@ -28,7 +28,7 @@ export interface UserSafe extends Omit<User, "passwordHash" | "signinAttempts" |
28
28
  }
29
29
  export declare const ACCOUNT_TYPE: {
30
30
  readonly TURNDOWN_ADMIN: "TURNDOWN_ADMIN";
31
- readonly OWNER: "OWNER";
31
+ readonly PROPERTY_MANAGER: "PROPERTY_MANAGER";
32
32
  readonly ACCOUNT_ADMIN: "ACCOUNT_ADMIN";
33
33
  readonly MAINTAINER: "MAINTAINER";
34
34
  readonly CLEANER: "CLEANER";
@@ -1,6 +1,6 @@
1
1
  export const ACCOUNT_TYPE = {
2
2
  TURNDOWN_ADMIN: "TURNDOWN_ADMIN",
3
- OWNER: "OWNER",
3
+ PROPERTY_MANAGER: "PROPERTY_MANAGER",
4
4
  ACCOUNT_ADMIN: "ACCOUNT_ADMIN",
5
5
  MAINTAINER: "MAINTAINER",
6
6
  CLEANER: "CLEANER",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turndown/library",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
4
4
  "description": "Shared TypeScript library for the Turndown suite.",
5
5
  "keywords": [
6
6
  "types",