@turndown/library 0.1.24 → 0.1.29
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.
- package/dist/index.cjs +1719 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +2820 -0
- package/dist/index.d.ts +2820 -2
- package/dist/index.mjs +1577 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +10 -6
- package/dist/helpers/date/index.d.ts +0 -113
- package/dist/helpers/date/index.js +0 -171
- package/dist/helpers/index.d.ts +0 -4
- package/dist/helpers/index.js +0 -3
- package/dist/helpers/object/index.d.ts +0 -298
- package/dist/helpers/object/index.js +0 -540
- package/dist/helpers/string/index.d.ts +0 -258
- package/dist/helpers/string/index.js +0 -496
- package/dist/index.js +0 -2
- package/dist/types/api/index.d.ts +0 -71
- package/dist/types/api/index.js +0 -54
- package/dist/types/auth/index.d.ts +0 -107
- package/dist/types/auth/index.js +0 -8
- package/dist/types/auth/routes.d.ts +0 -160
- package/dist/types/auth/routes.js +0 -1
- package/dist/types/base/index.d.ts +0 -200
- package/dist/types/base/index.js +0 -177
- package/dist/types/base/paging.types.d.ts +0 -47
- package/dist/types/base/paging.types.js +0 -1
- package/dist/types/checklist-template/index.d.ts +0 -48
- package/dist/types/checklist-template/index.js +0 -1
- package/dist/types/checklist-template/routes.d.ts +0 -85
- package/dist/types/checklist-template/routes.js +0 -1
- package/dist/types/company/index.d.ts +0 -22
- package/dist/types/company/index.js +0 -7
- package/dist/types/company/routes.d.ts +0 -100
- package/dist/types/company/routes.js +0 -1
- package/dist/types/damage-report/index.d.ts +0 -148
- package/dist/types/damage-report/index.js +0 -29
- package/dist/types/damage-report/routes.d.ts +0 -112
- package/dist/types/damage-report/routes.js +0 -1
- package/dist/types/errors/index.d.ts +0 -66
- package/dist/types/errors/index.js +0 -41
- package/dist/types/health/index.d.ts +0 -20
- package/dist/types/health/index.js +0 -1
- package/dist/types/health/routes.d.ts +0 -10
- package/dist/types/health/routes.js +0 -1
- package/dist/types/image/index.d.ts +0 -35
- package/dist/types/image/index.js +0 -12
- package/dist/types/image/routes.d.ts +0 -32
- package/dist/types/image/routes.js +0 -1
- package/dist/types/index.d.ts +0 -22
- package/dist/types/index.js +0 -22
- package/dist/types/inventory/index.d.ts +0 -124
- package/dist/types/inventory/index.js +0 -30
- package/dist/types/inventory/routes.d.ts +0 -109
- package/dist/types/inventory/routes.js +0 -1
- package/dist/types/job/index.d.ts +0 -7
- package/dist/types/job/index.js +0 -1
- package/dist/types/property/index.d.ts +0 -113
- package/dist/types/property/index.js +0 -25
- package/dist/types/property/routes.d.ts +0 -54
- package/dist/types/property/routes.js +0 -1
- package/dist/types/room/index.d.ts +0 -28
- package/dist/types/room/index.js +0 -17
- package/dist/types/room/routes.d.ts +0 -35
- package/dist/types/room/routes.js +0 -1
- package/dist/types/room-checklist/index.d.ts +0 -43
- package/dist/types/room-checklist/index.js +0 -1
- package/dist/types/room-checklist/routes.d.ts +0 -78
- package/dist/types/room-checklist/routes.js +0 -1
- package/dist/types/subscription/index.d.ts +0 -32
- package/dist/types/subscription/index.js +0 -16
- package/dist/types/user/index.d.ts +0 -59
- package/dist/types/user/index.js +0 -20
- package/dist/types/user/routes.d.ts +0 -46
- package/dist/types/user/routes.js +0 -1
- package/dist/types/work-session/index.d.ts +0 -97
- package/dist/types/work-session/index.js +0 -18
- package/dist/types/work-session/routes.d.ts +0 -89
- package/dist/types/work-session/routes.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./routes";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { IHealthChecks, IHealthCheckResponse } from ".";
|
|
2
|
-
export interface IGetHealthRequest {
|
|
3
|
-
}
|
|
4
|
-
export interface IGetHealthResponse extends IHealthCheckResponse {
|
|
5
|
-
}
|
|
6
|
-
export interface IGetDetailedHealthRequest {
|
|
7
|
-
}
|
|
8
|
-
export interface IGetDetailedHealthResponse {
|
|
9
|
-
checks: IHealthChecks;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export * from "./routes";
|
|
2
|
-
export declare const IMAGE_ENTITY_TYPE: {
|
|
3
|
-
readonly USER_PROFILE: "USER_PROFILE";
|
|
4
|
-
readonly PROPERTY: "PROPERTY";
|
|
5
|
-
readonly COMPANY: "COMPANY";
|
|
6
|
-
readonly CHECKLIST_ITEM: "CHECKLIST_ITEM";
|
|
7
|
-
readonly PROPERTY_ROOM: "PROPERTY_ROOM";
|
|
8
|
-
readonly MAINTENANCE_TICKET: "MAINTENANCE_TICKET";
|
|
9
|
-
readonly WORK_REPORT: "WORK_REPORT";
|
|
10
|
-
readonly CLEANING_REPORT: "CLEANING_REPORT";
|
|
11
|
-
readonly TURNDOWN_DEFAULT: "TURNDOWN_DEFAULT";
|
|
12
|
-
};
|
|
13
|
-
export type TStoredImageEntityType = (typeof IMAGE_ENTITY_TYPE)[keyof typeof IMAGE_ENTITY_TYPE];
|
|
14
|
-
export interface IImage {
|
|
15
|
-
id: string;
|
|
16
|
-
s3Key: string;
|
|
17
|
-
s3Bucket: string;
|
|
18
|
-
entityType: TStoredImageEntityType;
|
|
19
|
-
entityId: string;
|
|
20
|
-
fileName: string;
|
|
21
|
-
mimeType: string;
|
|
22
|
-
fileSizeBytes?: number;
|
|
23
|
-
width?: number;
|
|
24
|
-
height?: number;
|
|
25
|
-
isPublic: boolean;
|
|
26
|
-
category?: string;
|
|
27
|
-
displayOrder: number;
|
|
28
|
-
uploadedBy?: string;
|
|
29
|
-
createdAt: Date;
|
|
30
|
-
updatedAt: Date;
|
|
31
|
-
deletedAt?: Date;
|
|
32
|
-
}
|
|
33
|
-
export interface IImageWithUrl extends IImage {
|
|
34
|
-
url: string;
|
|
35
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from "./routes";
|
|
2
|
-
export const IMAGE_ENTITY_TYPE = {
|
|
3
|
-
USER_PROFILE: "USER_PROFILE",
|
|
4
|
-
PROPERTY: "PROPERTY",
|
|
5
|
-
COMPANY: "COMPANY",
|
|
6
|
-
CHECKLIST_ITEM: "CHECKLIST_ITEM",
|
|
7
|
-
PROPERTY_ROOM: "PROPERTY_ROOM",
|
|
8
|
-
MAINTENANCE_TICKET: "MAINTENANCE_TICKET",
|
|
9
|
-
WORK_REPORT: "WORK_REPORT",
|
|
10
|
-
CLEANING_REPORT: "CLEANING_REPORT",
|
|
11
|
-
TURNDOWN_DEFAULT: "TURNDOWN_DEFAULT",
|
|
12
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { IImageWithUrl } from ".";
|
|
2
|
-
import type { ISuccessResponse } from "../base";
|
|
3
|
-
export interface IImageUserRouteParams {
|
|
4
|
-
userId: string;
|
|
5
|
-
}
|
|
6
|
-
export interface IImagePropertyRouteParams {
|
|
7
|
-
propertyId: string;
|
|
8
|
-
}
|
|
9
|
-
export interface IImageRoomRouteParams {
|
|
10
|
-
roomId: string;
|
|
11
|
-
}
|
|
12
|
-
export interface IImageCompanyRouteParams {
|
|
13
|
-
companyId: string;
|
|
14
|
-
}
|
|
15
|
-
export interface IImageRouteParams {
|
|
16
|
-
imageId: string;
|
|
17
|
-
}
|
|
18
|
-
export interface IUploadProfileImageRequest {
|
|
19
|
-
}
|
|
20
|
-
export interface IUploadProfileImageResponse {
|
|
21
|
-
image: IImageWithUrl;
|
|
22
|
-
}
|
|
23
|
-
export interface IUploadImagesResponse {
|
|
24
|
-
images: IImageWithUrl[];
|
|
25
|
-
}
|
|
26
|
-
export interface IGetImagesForEntityResponse {
|
|
27
|
-
images: IImageWithUrl[];
|
|
28
|
-
}
|
|
29
|
-
export interface IDeleteImageRequest extends IImageRouteParams {
|
|
30
|
-
}
|
|
31
|
-
export interface IDeleteImageResponse extends ISuccessResponse {
|
|
32
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @turndown/shared-types
|
|
3
|
-
* Shared TypeScript types and interfaces for Turndown platform
|
|
4
|
-
* Used by both frontend (React Native/Web) and backend (Node.js)
|
|
5
|
-
*/
|
|
6
|
-
export * from "./api";
|
|
7
|
-
export * from "./auth";
|
|
8
|
-
export * from "./base";
|
|
9
|
-
export * from "./checklist-template";
|
|
10
|
-
export * from "./company";
|
|
11
|
-
export * from "./damage-report";
|
|
12
|
-
export * from "./errors";
|
|
13
|
-
export * from "./health";
|
|
14
|
-
export * from "./image";
|
|
15
|
-
export * from "./inventory";
|
|
16
|
-
export * from "./job";
|
|
17
|
-
export * from "./property";
|
|
18
|
-
export * from "./room";
|
|
19
|
-
export * from "./room-checklist";
|
|
20
|
-
export * from "./subscription";
|
|
21
|
-
export * from "./user";
|
|
22
|
-
export * from "./work-session";
|
package/dist/types/index.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @turndown/shared-types
|
|
3
|
-
* Shared TypeScript types and interfaces for Turndown platform
|
|
4
|
-
* Used by both frontend (React Native/Web) and backend (Node.js)
|
|
5
|
-
*/
|
|
6
|
-
export * from "./api";
|
|
7
|
-
export * from "./auth";
|
|
8
|
-
export * from "./base";
|
|
9
|
-
export * from "./checklist-template";
|
|
10
|
-
export * from "./company";
|
|
11
|
-
export * from "./damage-report";
|
|
12
|
-
export * from "./errors";
|
|
13
|
-
export * from "./health";
|
|
14
|
-
export * from "./image";
|
|
15
|
-
export * from "./inventory";
|
|
16
|
-
export * from "./job";
|
|
17
|
-
export * from "./property";
|
|
18
|
-
export * from "./room";
|
|
19
|
-
export * from "./room-checklist";
|
|
20
|
-
export * from "./subscription";
|
|
21
|
-
export * from "./user";
|
|
22
|
-
export * from "./work-session";
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { IMetaData, TRecordValue } from "../index";
|
|
2
|
-
export * from "./routes";
|
|
3
|
-
declare const INVENTORY_RESTOCK_ORDER_STATUS: {
|
|
4
|
-
readonly PENDING: "PENDING";
|
|
5
|
-
readonly ORDERED: "ORDERED";
|
|
6
|
-
readonly SHIPPED: "SHIPPED";
|
|
7
|
-
readonly RECEIVED: "RECEIVED";
|
|
8
|
-
};
|
|
9
|
-
export type TInventoryRestockOrderStatus = TRecordValue<typeof INVENTORY_RESTOCK_ORDER_STATUS>;
|
|
10
|
-
export declare const INVENTORY_UNITS: {
|
|
11
|
-
COUNT: string;
|
|
12
|
-
ROLLS: string;
|
|
13
|
-
PODS: string;
|
|
14
|
-
BOXES: string;
|
|
15
|
-
BOTTLES: string;
|
|
16
|
-
PACKS: string;
|
|
17
|
-
BAGS: string;
|
|
18
|
-
GALLONS: string;
|
|
19
|
-
LITERS: string;
|
|
20
|
-
KILOGRAMS: string;
|
|
21
|
-
POUNDS: string;
|
|
22
|
-
OUNCES: string;
|
|
23
|
-
GRAMS: string;
|
|
24
|
-
SHEETS: string;
|
|
25
|
-
CASES: string;
|
|
26
|
-
CARTONS: string;
|
|
27
|
-
OTHER: string;
|
|
28
|
-
};
|
|
29
|
-
export type TInventoryUnitType = TRecordValue<typeof INVENTORY_UNITS>;
|
|
30
|
-
export declare const INVENTORY_ITEM_TYPE: {
|
|
31
|
-
readonly CONSUMABLE: "CONSUMABLE";
|
|
32
|
-
readonly FIXED: "FIXED";
|
|
33
|
-
};
|
|
34
|
-
export type TInventoryItemType = TRecordValue<typeof INVENTORY_ITEM_TYPE>;
|
|
35
|
-
export interface IInventoryItem extends IMetaData {
|
|
36
|
-
id: string;
|
|
37
|
-
companyId: string;
|
|
38
|
-
name: string;
|
|
39
|
-
description?: string;
|
|
40
|
-
itemType: TInventoryItemType;
|
|
41
|
-
unit: TInventoryUnitType;
|
|
42
|
-
unitCustom?: string;
|
|
43
|
-
minimumLevel: number;
|
|
44
|
-
reorderLevel: number;
|
|
45
|
-
maximumLevel?: number;
|
|
46
|
-
costPerUnit?: number;
|
|
47
|
-
supplierInfo?: string;
|
|
48
|
-
sku?: string;
|
|
49
|
-
barcode?: string;
|
|
50
|
-
}
|
|
51
|
-
export interface IRoomInventory extends IMetaData {
|
|
52
|
-
id: string;
|
|
53
|
-
roomId: string;
|
|
54
|
-
inventoryItemId: string;
|
|
55
|
-
currentLevel: number;
|
|
56
|
-
minimumLevel: number;
|
|
57
|
-
maximumLevel?: number;
|
|
58
|
-
parLevel?: number;
|
|
59
|
-
lastRestockedAt?: Date;
|
|
60
|
-
lastRestockedBy?: string;
|
|
61
|
-
lastCheckedAt?: Date;
|
|
62
|
-
lastCheckedBy?: string;
|
|
63
|
-
autoReorder: boolean;
|
|
64
|
-
locationNotes?: string;
|
|
65
|
-
}
|
|
66
|
-
export interface IPropertyInventory extends IMetaData {
|
|
67
|
-
id: string;
|
|
68
|
-
propertyId: string;
|
|
69
|
-
inventoryItemId: string;
|
|
70
|
-
currentLevel: number;
|
|
71
|
-
minimumLevel: number;
|
|
72
|
-
maximumLevel?: number;
|
|
73
|
-
parLevel?: number;
|
|
74
|
-
lastRestockedAt?: Date;
|
|
75
|
-
lastRestockedBy?: string;
|
|
76
|
-
lastCheckedAt?: Date;
|
|
77
|
-
lastCheckedBy?: string;
|
|
78
|
-
autoReorder: boolean;
|
|
79
|
-
locationNotes?: string;
|
|
80
|
-
}
|
|
81
|
-
export interface IInventoryCount {
|
|
82
|
-
id: string;
|
|
83
|
-
checklistExecutionId: string;
|
|
84
|
-
roomInventoryId: string;
|
|
85
|
-
previousLevel: number;
|
|
86
|
-
countedLevel: number;
|
|
87
|
-
consumedAmount: number;
|
|
88
|
-
restockedAmount: number;
|
|
89
|
-
finalLevel: number;
|
|
90
|
-
countedBy: string;
|
|
91
|
-
countedAt: Date;
|
|
92
|
-
needsRestock: boolean;
|
|
93
|
-
notes?: string;
|
|
94
|
-
createdAt: Date;
|
|
95
|
-
}
|
|
96
|
-
export interface IInventoryRestockOrder {
|
|
97
|
-
id: string;
|
|
98
|
-
companyId: string;
|
|
99
|
-
orderNumber?: string;
|
|
100
|
-
status: TInventoryRestockOrderStatus;
|
|
101
|
-
totalItems?: number;
|
|
102
|
-
totalCost?: number;
|
|
103
|
-
orderedBy?: string;
|
|
104
|
-
orderedAt?: Date;
|
|
105
|
-
expectedDelivery?: Date;
|
|
106
|
-
receivedBy?: string;
|
|
107
|
-
receivedAt?: Date;
|
|
108
|
-
supplierInfo?: string;
|
|
109
|
-
notes?: string;
|
|
110
|
-
createdAt: Date;
|
|
111
|
-
updatedAt: Date;
|
|
112
|
-
}
|
|
113
|
-
export interface IInventoryRestockOrderItem {
|
|
114
|
-
id: string;
|
|
115
|
-
orderId: string;
|
|
116
|
-
inventoryItemId: string;
|
|
117
|
-
roomInventoryId?: string;
|
|
118
|
-
propertyInventoryId?: string;
|
|
119
|
-
quantityOrdered: number;
|
|
120
|
-
quantityReceived: number;
|
|
121
|
-
unitCost?: number;
|
|
122
|
-
totalCost?: number;
|
|
123
|
-
createdAt: Date;
|
|
124
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export * from "./routes";
|
|
2
|
-
const INVENTORY_RESTOCK_ORDER_STATUS = {
|
|
3
|
-
PENDING: "PENDING",
|
|
4
|
-
ORDERED: "ORDERED",
|
|
5
|
-
SHIPPED: "SHIPPED",
|
|
6
|
-
RECEIVED: "RECEIVED",
|
|
7
|
-
};
|
|
8
|
-
export const INVENTORY_UNITS = {
|
|
9
|
-
COUNT: "COUNT",
|
|
10
|
-
ROLLS: "ROLLS",
|
|
11
|
-
PODS: "PODS",
|
|
12
|
-
BOXES: "BOXES",
|
|
13
|
-
BOTTLES: "BOTTLES",
|
|
14
|
-
PACKS: "PACKS",
|
|
15
|
-
BAGS: "BAGS",
|
|
16
|
-
GALLONS: "GALLONS",
|
|
17
|
-
LITERS: "LITERS",
|
|
18
|
-
KILOGRAMS: "KILOGRAMS",
|
|
19
|
-
POUNDS: "POUNDS",
|
|
20
|
-
OUNCES: "OUNCES",
|
|
21
|
-
GRAMS: "GRAMS",
|
|
22
|
-
SHEETS: "SHEETS",
|
|
23
|
-
CASES: "CASES",
|
|
24
|
-
CARTONS: "CARTONS",
|
|
25
|
-
OTHER: "OTHER",
|
|
26
|
-
};
|
|
27
|
-
export const INVENTORY_ITEM_TYPE = {
|
|
28
|
-
CONSUMABLE: "CONSUMABLE",
|
|
29
|
-
FIXED: "FIXED",
|
|
30
|
-
};
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import type { IInventoryCount, IInventoryItem, IInventoryRestockOrder, IInventoryRestockOrderItem, IPropertyInventory, IRoomInventory, TInventoryRestockOrderStatus } from ".";
|
|
2
|
-
import type { IMessageResponse } from "../base";
|
|
3
|
-
export interface IInventoryCompanyRouteParams {
|
|
4
|
-
companyId: string;
|
|
5
|
-
}
|
|
6
|
-
export interface IInventoryItemRouteParams {
|
|
7
|
-
itemId: string;
|
|
8
|
-
}
|
|
9
|
-
export interface IInventoryRoomRouteParams {
|
|
10
|
-
roomId: string;
|
|
11
|
-
}
|
|
12
|
-
export interface IInventoryPropertyRouteParams {
|
|
13
|
-
propertyId: string;
|
|
14
|
-
}
|
|
15
|
-
export interface IInventoryExecutionRouteParams {
|
|
16
|
-
executionId: string;
|
|
17
|
-
}
|
|
18
|
-
export interface IRoomInventoryIdParams {
|
|
19
|
-
roomInventoryId: string;
|
|
20
|
-
}
|
|
21
|
-
export interface IInventoryOrderRouteParams {
|
|
22
|
-
orderId: string;
|
|
23
|
-
}
|
|
24
|
-
export interface ICreateInventoryItemRequest extends Partial<IInventoryItem> {
|
|
25
|
-
companyId: string;
|
|
26
|
-
name: string;
|
|
27
|
-
}
|
|
28
|
-
export interface ICreateInventoryItemResponse extends IInventoryItem {
|
|
29
|
-
}
|
|
30
|
-
export interface IGetInventoryItemByIdRequest extends IInventoryItemRouteParams {
|
|
31
|
-
}
|
|
32
|
-
export interface IGetInventoryItemByIdResponse extends IInventoryItem {
|
|
33
|
-
}
|
|
34
|
-
export interface IUpdateInventoryItemRequest extends Partial<IInventoryItem> {
|
|
35
|
-
}
|
|
36
|
-
export interface IUpdateInventoryItemResponse extends IInventoryItem {
|
|
37
|
-
}
|
|
38
|
-
export interface IDeleteInventoryItemRequest extends IInventoryItemRouteParams {
|
|
39
|
-
}
|
|
40
|
-
export interface IDeleteInventoryItemResponse extends IMessageResponse {
|
|
41
|
-
}
|
|
42
|
-
export interface IGetInventoryByCompanyIdRequest extends IInventoryCompanyRouteParams {
|
|
43
|
-
}
|
|
44
|
-
export type IGetInventoryByCompanyIdResponse = IInventoryItem[];
|
|
45
|
-
export interface IAddInventoryToPropertyRequest extends Partial<IPropertyInventory> {
|
|
46
|
-
propertyId: string;
|
|
47
|
-
inventoryItemId: string;
|
|
48
|
-
}
|
|
49
|
-
export interface IAddInventoryToPropertyResponse extends IPropertyInventory {
|
|
50
|
-
}
|
|
51
|
-
export interface IGetPropertyInventoryRequest extends IInventoryPropertyRouteParams {
|
|
52
|
-
}
|
|
53
|
-
export type IGetPropertyInventoryResponse = IPropertyInventory[];
|
|
54
|
-
export interface IGetPropertyInventoryNeedingRestockRequest extends IInventoryPropertyRouteParams {
|
|
55
|
-
}
|
|
56
|
-
export type IGetPropertyInventoryNeedingRestockResponse = IPropertyInventory[];
|
|
57
|
-
export interface IAddInventoryToRoomRequest extends Partial<IRoomInventory> {
|
|
58
|
-
roomId: string;
|
|
59
|
-
inventoryItemId: string;
|
|
60
|
-
}
|
|
61
|
-
export interface IAddInventoryToRoomResponse extends IRoomInventory {
|
|
62
|
-
}
|
|
63
|
-
export interface IGetRoomInventoryRequest extends IInventoryRoomRouteParams {
|
|
64
|
-
}
|
|
65
|
-
export type IGetRoomInventoryResponse = IRoomInventory[];
|
|
66
|
-
export interface IUpdateRoomInventoryRequest extends Partial<IRoomInventory> {
|
|
67
|
-
}
|
|
68
|
-
export interface IUpdateRoomInventoryResponse extends IRoomInventory {
|
|
69
|
-
}
|
|
70
|
-
export interface IGetRoomInventoryNeedingRestockRequest extends IInventoryRoomRouteParams {
|
|
71
|
-
}
|
|
72
|
-
export type IGetRoomInventoryNeedingRestockResponse = IRoomInventory[];
|
|
73
|
-
export interface IRecordInventoryCountRequest extends Partial<IInventoryCount> {
|
|
74
|
-
checklistExecutionId: string;
|
|
75
|
-
roomInventoryId: string;
|
|
76
|
-
countedLevel: number;
|
|
77
|
-
countedBy: string;
|
|
78
|
-
}
|
|
79
|
-
export interface IRecordInventoryCountResponse extends IInventoryCount {
|
|
80
|
-
}
|
|
81
|
-
export interface IGetInventoryCountsByExecutionIdRequest extends IInventoryExecutionRouteParams {
|
|
82
|
-
}
|
|
83
|
-
export type IGetInventoryCountsByExecutionIdResponse = IInventoryCount[];
|
|
84
|
-
export interface IRestockOrderItemInput {
|
|
85
|
-
inventoryItemId: string;
|
|
86
|
-
roomInventoryId?: string;
|
|
87
|
-
propertyInventoryId?: string;
|
|
88
|
-
quantityOrdered: number;
|
|
89
|
-
unitCost?: number;
|
|
90
|
-
}
|
|
91
|
-
export interface ICreateRestockOrderRequest extends Partial<IInventoryRestockOrder> {
|
|
92
|
-
companyId: string;
|
|
93
|
-
orderedBy: string;
|
|
94
|
-
items: IRestockOrderItemInput[];
|
|
95
|
-
}
|
|
96
|
-
export interface ICreateRestockOrderResponse extends IInventoryRestockOrder {
|
|
97
|
-
}
|
|
98
|
-
export interface IGetRestockOrdersByCompanyIdRequest extends IInventoryCompanyRouteParams {
|
|
99
|
-
}
|
|
100
|
-
export type IGetRestockOrdersByCompanyIdResponse = IInventoryRestockOrder[];
|
|
101
|
-
export interface IGetRestockOrderItemsRequest extends IInventoryOrderRouteParams {
|
|
102
|
-
}
|
|
103
|
-
export type IGetRestockOrderItemsResponse = IInventoryRestockOrderItem[];
|
|
104
|
-
export interface IUpdateRestockOrderStatusRequest {
|
|
105
|
-
status: TInventoryRestockOrderStatus;
|
|
106
|
-
receivedBy?: string;
|
|
107
|
-
}
|
|
108
|
-
export interface IUpdateRestockOrderStatusResponse extends IInventoryRestockOrder {
|
|
109
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/job/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { ISelectOption, IMetaData, TRecordValue, TStatus, TUSStateCode } from "../index";
|
|
2
|
-
export * from "./routes";
|
|
3
|
-
export declare const PROPERTY_STATUS: {
|
|
4
|
-
readonly Active: "Active";
|
|
5
|
-
readonly Inactive: "Inactive";
|
|
6
|
-
};
|
|
7
|
-
export type TPropertyStatus = TRecordValue<typeof PROPERTY_STATUS>;
|
|
8
|
-
export declare const PropertyStatusOptions: ISelectOption<TPropertyStatus>[];
|
|
9
|
-
export declare const PROPERTY_TYPES: readonly ["Apartment", "Commercial", "Condo", "House"];
|
|
10
|
-
export type TPropertyType = (typeof PROPERTY_TYPES)[number];
|
|
11
|
-
export declare const PropertyTypeOptions: ISelectOption<TPropertyType>[];
|
|
12
|
-
export interface IProperty extends IMetaData {
|
|
13
|
-
id: string;
|
|
14
|
-
displayName: string;
|
|
15
|
-
addressLine1: string;
|
|
16
|
-
addressLine2?: string;
|
|
17
|
-
city: string;
|
|
18
|
-
stateCode: TUSStateCode | string;
|
|
19
|
-
propertyType?: TPropertyType;
|
|
20
|
-
status?: TPropertyStatus;
|
|
21
|
-
sqft?: number;
|
|
22
|
-
postalCode: string;
|
|
23
|
-
country?: string;
|
|
24
|
-
timezone?: string;
|
|
25
|
-
imageUrl?: string;
|
|
26
|
-
photoUrl?: string;
|
|
27
|
-
companyId: string;
|
|
28
|
-
specialNotes?: string;
|
|
29
|
-
}
|
|
30
|
-
export interface IPropertyAccessInformation {
|
|
31
|
-
propertyId: string;
|
|
32
|
-
entryInstructions?: string;
|
|
33
|
-
accessCode?: string;
|
|
34
|
-
wifiName?: string;
|
|
35
|
-
wifiPassword?: string;
|
|
36
|
-
alarmCode?: string;
|
|
37
|
-
parkingInfo?: string;
|
|
38
|
-
specialNotes?: string;
|
|
39
|
-
}
|
|
40
|
-
export interface IPropertyBase {
|
|
41
|
-
id: string;
|
|
42
|
-
name: string;
|
|
43
|
-
address?: string;
|
|
44
|
-
propertyType?: string;
|
|
45
|
-
imageUrl?: string;
|
|
46
|
-
status?: TPropertyStatus;
|
|
47
|
-
}
|
|
48
|
-
export interface IPropertyMetric {
|
|
49
|
-
id: string;
|
|
50
|
-
label: string;
|
|
51
|
-
value: string | number;
|
|
52
|
-
iconName?: string;
|
|
53
|
-
}
|
|
54
|
-
export interface IPropertyAccessItem {
|
|
55
|
-
id: string;
|
|
56
|
-
label: string;
|
|
57
|
-
value?: string;
|
|
58
|
-
iconName?: string;
|
|
59
|
-
}
|
|
60
|
-
export interface IPropertyRoomSummaryItem {
|
|
61
|
-
id: string;
|
|
62
|
-
name: string;
|
|
63
|
-
roomType?: string;
|
|
64
|
-
imageUrl?: string;
|
|
65
|
-
checklistCount?: number;
|
|
66
|
-
inventoryCount?: number;
|
|
67
|
-
}
|
|
68
|
-
export interface IPropertyJobSummaryItem {
|
|
69
|
-
id: string;
|
|
70
|
-
title: string;
|
|
71
|
-
description?: string;
|
|
72
|
-
status?: TStatus;
|
|
73
|
-
}
|
|
74
|
-
export interface IPropertyFormValues {
|
|
75
|
-
displayName: string;
|
|
76
|
-
propertyType: string;
|
|
77
|
-
status: string;
|
|
78
|
-
addressLine1: string;
|
|
79
|
-
city: string;
|
|
80
|
-
stateCode: string;
|
|
81
|
-
postalCode: string;
|
|
82
|
-
specialNotes: string;
|
|
83
|
-
}
|
|
84
|
-
export interface IPropertyAccessFormValues {
|
|
85
|
-
entryInstructions: string;
|
|
86
|
-
accessCode: string;
|
|
87
|
-
wifiName: string;
|
|
88
|
-
wifiPassword: string;
|
|
89
|
-
parkingInfo: string;
|
|
90
|
-
specialNotes: string;
|
|
91
|
-
}
|
|
92
|
-
export interface IPropertyFilterValues {
|
|
93
|
-
status: string;
|
|
94
|
-
propertyType: TPropertyType;
|
|
95
|
-
}
|
|
96
|
-
export interface IPropertySummary {
|
|
97
|
-
id: string;
|
|
98
|
-
displayName: string;
|
|
99
|
-
propertyType: TPropertyType;
|
|
100
|
-
addressLine1: string;
|
|
101
|
-
addressLine2: string;
|
|
102
|
-
city: string;
|
|
103
|
-
stateCode: string;
|
|
104
|
-
postalCode: string;
|
|
105
|
-
imageUrl?: string;
|
|
106
|
-
status?: string;
|
|
107
|
-
}
|
|
108
|
-
export interface IPropertyDetail extends IPropertySummary {
|
|
109
|
-
specialNotes?: string;
|
|
110
|
-
roomCount?: number;
|
|
111
|
-
createdAt?: string;
|
|
112
|
-
updatedAt?: string;
|
|
113
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export * from "./routes";
|
|
2
|
-
export const PROPERTY_STATUS = {
|
|
3
|
-
Active: "Active",
|
|
4
|
-
Inactive: "Inactive",
|
|
5
|
-
};
|
|
6
|
-
export const PropertyStatusOptions = [
|
|
7
|
-
{
|
|
8
|
-
label: "Active",
|
|
9
|
-
value: PROPERTY_STATUS.Active,
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
label: "Inactive",
|
|
13
|
-
value: PROPERTY_STATUS.Inactive,
|
|
14
|
-
},
|
|
15
|
-
];
|
|
16
|
-
export const PROPERTY_TYPES = [
|
|
17
|
-
"Apartment",
|
|
18
|
-
"Commercial",
|
|
19
|
-
"Condo",
|
|
20
|
-
"House",
|
|
21
|
-
];
|
|
22
|
-
export const PropertyTypeOptions = PROPERTY_TYPES.map((propertyType) => ({
|
|
23
|
-
label: propertyType,
|
|
24
|
-
value: propertyType,
|
|
25
|
-
}));
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { IProperty, IPropertyAccessInformation, IPropertyDetail, IPropertySummary } from ".";
|
|
2
|
-
import type { IMessageResponse } from "../base";
|
|
3
|
-
export interface IPropertyIdParams {
|
|
4
|
-
propertyId: string;
|
|
5
|
-
}
|
|
6
|
-
export interface ICompanyIdParams {
|
|
7
|
-
companyId: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ICreatePropertyRequest {
|
|
10
|
-
companyId: string;
|
|
11
|
-
displayName: string;
|
|
12
|
-
propertyType: string;
|
|
13
|
-
status?: string;
|
|
14
|
-
addressLine1: string;
|
|
15
|
-
addressLine2?: string;
|
|
16
|
-
city: string;
|
|
17
|
-
stateCode: string;
|
|
18
|
-
postalCode: string;
|
|
19
|
-
country?: string;
|
|
20
|
-
sqft?: number;
|
|
21
|
-
timezone?: string;
|
|
22
|
-
photoUrl?: string;
|
|
23
|
-
specialNotes?: string;
|
|
24
|
-
}
|
|
25
|
-
export interface IUpdatePropertyRequest extends Partial<ICreatePropertyRequest> {
|
|
26
|
-
}
|
|
27
|
-
export interface IGetPropertiesRequest {
|
|
28
|
-
companyId?: string;
|
|
29
|
-
}
|
|
30
|
-
export interface IGetPropertyByIdRequest extends IPropertyIdParams {
|
|
31
|
-
}
|
|
32
|
-
export interface IDeletePropertyRequest extends IPropertyIdParams {
|
|
33
|
-
}
|
|
34
|
-
export type IGetPropertiesResponse = IPropertySummary[];
|
|
35
|
-
export interface IGetPropertyResponse extends IPropertyDetail {
|
|
36
|
-
}
|
|
37
|
-
export interface ICreatePropertyResponse extends IPropertyDetail {
|
|
38
|
-
}
|
|
39
|
-
export interface IUpdatePropertyResponse extends IPropertyDetail {
|
|
40
|
-
}
|
|
41
|
-
export interface IDeletePropertyResponse extends IMessageResponse {
|
|
42
|
-
}
|
|
43
|
-
export interface IUpdatePropertyAccessInformationRequest extends Partial<IPropertyAccessInformation> {
|
|
44
|
-
}
|
|
45
|
-
export interface IUpdatePropertyAccessInformationResponse extends IPropertyAccessInformation {
|
|
46
|
-
}
|
|
47
|
-
export interface IGetPropertyAccessInformationRequest extends IPropertyIdParams {
|
|
48
|
-
}
|
|
49
|
-
export type IGetPropertyAccessInformationResponse = IPropertyAccessInformation | null;
|
|
50
|
-
export interface IGetPropertyByIdResponse extends IGetPropertyResponse {
|
|
51
|
-
}
|
|
52
|
-
export interface IGetPropertiesByCompanyIdRequest extends ICompanyIdParams {
|
|
53
|
-
}
|
|
54
|
-
export type IGetPropertiesByCompanyIdResponse = IProperty[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { IMetaData, TRecordValue } from "../index";
|
|
2
|
-
export * from "./routes";
|
|
3
|
-
declare const ROOM_TYPE: {
|
|
4
|
-
BEDROOM: string;
|
|
5
|
-
BATHROOM: string;
|
|
6
|
-
KITCHEN: string;
|
|
7
|
-
LIVING_ROOM: string;
|
|
8
|
-
DINING_ROOM: string;
|
|
9
|
-
OFFICE: string;
|
|
10
|
-
GARAGE: string;
|
|
11
|
-
LAUNDRY_ROOM: string;
|
|
12
|
-
BASEMENT: string;
|
|
13
|
-
ATTIC: string;
|
|
14
|
-
BALCONY: string;
|
|
15
|
-
PORCH: string;
|
|
16
|
-
GARDEN: string;
|
|
17
|
-
OTHER: string;
|
|
18
|
-
};
|
|
19
|
-
export type TRoomType = TRecordValue<typeof ROOM_TYPE>;
|
|
20
|
-
export interface IRoom extends IMetaData {
|
|
21
|
-
id: string;
|
|
22
|
-
displayName: string;
|
|
23
|
-
checklistTemplateId?: string;
|
|
24
|
-
roomType?: TRoomType;
|
|
25
|
-
heroPhoto?: string;
|
|
26
|
-
propertyId: string;
|
|
27
|
-
description?: string;
|
|
28
|
-
}
|
package/dist/types/room/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export * from "./routes";
|
|
2
|
-
const ROOM_TYPE = {
|
|
3
|
-
BEDROOM: "BEDROOM",
|
|
4
|
-
BATHROOM: "BATHROOM",
|
|
5
|
-
KITCHEN: "KITCHEN",
|
|
6
|
-
LIVING_ROOM: "LIVING_ROOM",
|
|
7
|
-
DINING_ROOM: "DINING_ROOM",
|
|
8
|
-
OFFICE: "OFFICE",
|
|
9
|
-
GARAGE: "GARAGE",
|
|
10
|
-
LAUNDRY_ROOM: "LAUNDRY_ROOM",
|
|
11
|
-
BASEMENT: "BASEMENT",
|
|
12
|
-
ATTIC: "ATTIC",
|
|
13
|
-
BALCONY: "BALCONY",
|
|
14
|
-
PORCH: "PORCH",
|
|
15
|
-
GARDEN: "GARDEN",
|
|
16
|
-
OTHER: "OTHER",
|
|
17
|
-
};
|