hububb-saas-shared 1.2.18 → 1.2.20
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/schemas/additional-task-automation-service/index.d.ts +19 -0
- package/dist/schemas/additional-task-automation-service/index.js +11 -0
- package/dist/schemas/additional-task-service/index.d.ts +19 -0
- package/dist/schemas/additional-task-service/index.js +11 -0
- package/dist/schemas/index.d.ts +5 -0
- package/dist/schemas/index.js +5 -0
- package/dist/schemas/inventory-item/index.d.ts +29 -0
- package/dist/schemas/inventory-item/index.js +15 -0
- package/dist/schemas/task/index.d.ts +7 -1
- package/dist/schemas/task/index.js +2 -0
- package/dist/schemas/task-inventory/index.d.ts +29 -0
- package/dist/schemas/task-inventory/index.js +15 -0
- package/dist/schemas/task-inventory-item/index.d.ts +38 -0
- package/dist/schemas/task-inventory-item/index.js +18 -0
- package/dist/types/additional-task-automation-service/index.d.ts +8 -0
- package/dist/types/additional-task-automation-service/index.js +2 -0
- package/dist/types/additional-task-service/index.d.ts +8 -0
- package/dist/types/additional-task-service/index.js +2 -0
- package/dist/types/enums/index.d.ts +16 -0
- package/dist/types/enums/index.js +21 -1
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.js +5 -0
- package/dist/types/inventory-item/index.d.ts +6 -0
- package/dist/types/inventory-item/index.js +2 -0
- package/dist/types/task/index.d.ts +4 -0
- package/dist/types/task-automation/index.d.ts +2 -0
- package/dist/types/task-inventory/index.d.ts +8 -0
- package/dist/types/task-inventory/index.js +2 -0
- package/dist/types/task-inventory-item/index.d.ts +8 -0
- package/dist/types/task-inventory-item/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const additionalTaskAutomationServiceSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
automationId: import("zod").ZodNumber;
|
|
4
|
+
serviceId: import("zod").ZodNumber;
|
|
5
|
+
createdAt: import("zod").ZodDate;
|
|
6
|
+
updatedAt: import("zod").ZodDate;
|
|
7
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
8
|
+
id: number;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
serviceId: number;
|
|
12
|
+
automationId: number;
|
|
13
|
+
}, {
|
|
14
|
+
id: number;
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
serviceId: number;
|
|
18
|
+
automationId: number;
|
|
19
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.additionalTaskAutomationServiceSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.additionalTaskAutomationServiceSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
automationId: (0, zod_1.number)().int(),
|
|
8
|
+
serviceId: (0, zod_1.number)().int(),
|
|
9
|
+
createdAt: (0, zod_1.date)(),
|
|
10
|
+
updatedAt: (0, zod_1.date)(),
|
|
11
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const additionalTaskServiceSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
taskId: import("zod").ZodNumber;
|
|
4
|
+
serviceId: import("zod").ZodNumber;
|
|
5
|
+
createdAt: import("zod").ZodDate;
|
|
6
|
+
updatedAt: import("zod").ZodDate;
|
|
7
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
8
|
+
id: number;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
serviceId: number;
|
|
12
|
+
taskId: number;
|
|
13
|
+
}, {
|
|
14
|
+
id: number;
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
serviceId: number;
|
|
18
|
+
taskId: number;
|
|
19
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.additionalTaskServiceSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.additionalTaskServiceSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
taskId: (0, zod_1.number)().int(),
|
|
8
|
+
serviceId: (0, zod_1.number)().int(),
|
|
9
|
+
createdAt: (0, zod_1.date)(),
|
|
10
|
+
updatedAt: (0, zod_1.date)(),
|
|
11
|
+
});
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -83,3 +83,8 @@ export * from "./ai-agent";
|
|
|
83
83
|
export * from "./task-photography-space";
|
|
84
84
|
export * from "./invited-service-provider";
|
|
85
85
|
export * from "./invited-service-provider-preferences";
|
|
86
|
+
export * from "./additional-task-service";
|
|
87
|
+
export * from "./additional-task-automation-service";
|
|
88
|
+
export * from "./inventory-item";
|
|
89
|
+
export * from "./task-inventory";
|
|
90
|
+
export * from "./task-inventory-item";
|
package/dist/schemas/index.js
CHANGED
|
@@ -99,3 +99,8 @@ __exportStar(require("./ai-agent"), exports);
|
|
|
99
99
|
__exportStar(require("./task-photography-space"), exports);
|
|
100
100
|
__exportStar(require("./invited-service-provider"), exports);
|
|
101
101
|
__exportStar(require("./invited-service-provider-preferences"), exports);
|
|
102
|
+
__exportStar(require("./additional-task-service"), exports);
|
|
103
|
+
__exportStar(require("./additional-task-automation-service"), exports);
|
|
104
|
+
__exportStar(require("./inventory-item"), exports);
|
|
105
|
+
__exportStar(require("./task-inventory"), exports);
|
|
106
|
+
__exportStar(require("./task-inventory-item"), exports);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { InventoryItemCategory } from "../../types/enums";
|
|
2
|
+
export declare const inventoryItemSchema: import("zod").ZodObject<{
|
|
3
|
+
id: import("zod").ZodNumber;
|
|
4
|
+
code: import("zod").ZodString;
|
|
5
|
+
label: import("zod").ZodString;
|
|
6
|
+
category: import("zod").ZodNativeEnum<typeof InventoryItemCategory>;
|
|
7
|
+
isActive: import("zod").ZodBoolean;
|
|
8
|
+
sortOrder: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
9
|
+
createdAt: import("zod").ZodDate;
|
|
10
|
+
updatedAt: import("zod").ZodDate;
|
|
11
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
12
|
+
code: string;
|
|
13
|
+
id: number;
|
|
14
|
+
label: string;
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
category: InventoryItemCategory;
|
|
18
|
+
isActive: boolean;
|
|
19
|
+
sortOrder?: number | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
code: string;
|
|
22
|
+
id: number;
|
|
23
|
+
label: string;
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
updatedAt: Date;
|
|
26
|
+
category: InventoryItemCategory;
|
|
27
|
+
isActive: boolean;
|
|
28
|
+
sortOrder?: number | undefined;
|
|
29
|
+
}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.inventoryItemSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../types/enums");
|
|
6
|
+
exports.inventoryItemSchema = (0, zod_1.object)({
|
|
7
|
+
id: (0, zod_1.number)().int(),
|
|
8
|
+
code: (0, zod_1.string)(),
|
|
9
|
+
label: (0, zod_1.string)(),
|
|
10
|
+
category: (0, zod_1.nativeEnum)(enums_1.InventoryItemCategory),
|
|
11
|
+
isActive: (0, zod_1.boolean)(),
|
|
12
|
+
sortOrder: (0, zod_1.number)().int().optional(),
|
|
13
|
+
createdAt: (0, zod_1.date)(),
|
|
14
|
+
updatedAt: (0, zod_1.date)(),
|
|
15
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TaskPriority, TaskStatus } from "../../types/enums";
|
|
1
|
+
import { TaskBlockReason, TaskPriority, TaskStatus } from "../../types/enums";
|
|
2
2
|
export declare const taskSchema: import("zod").ZodObject<{
|
|
3
3
|
id: import("zod").ZodNumber;
|
|
4
4
|
status: import("zod").ZodNativeEnum<typeof TaskStatus>;
|
|
@@ -36,6 +36,8 @@ export declare const taskSchema: import("zod").ZodObject<{
|
|
|
36
36
|
isDamageNoticed: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
37
37
|
damageDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
38
38
|
cleaningDetergentFillPercentage: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
39
|
+
isBlocked: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
40
|
+
blockReason: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof TaskBlockReason>>;
|
|
39
41
|
}, "strip", import("zod").ZodTypeAny, {
|
|
40
42
|
id: number;
|
|
41
43
|
priority: TaskPriority;
|
|
@@ -73,6 +75,8 @@ export declare const taskSchema: import("zod").ZodObject<{
|
|
|
73
75
|
isDamageNoticed?: boolean | undefined;
|
|
74
76
|
damageDescription?: string | undefined;
|
|
75
77
|
cleaningDetergentFillPercentage?: number | undefined;
|
|
78
|
+
isBlocked?: boolean | undefined;
|
|
79
|
+
blockReason?: TaskBlockReason | undefined;
|
|
76
80
|
}, {
|
|
77
81
|
id: number;
|
|
78
82
|
priority: TaskPriority;
|
|
@@ -110,4 +114,6 @@ export declare const taskSchema: import("zod").ZodObject<{
|
|
|
110
114
|
isDamageNoticed?: boolean | undefined;
|
|
111
115
|
damageDescription?: string | undefined;
|
|
112
116
|
cleaningDetergentFillPercentage?: number | undefined;
|
|
117
|
+
isBlocked?: boolean | undefined;
|
|
118
|
+
blockReason?: TaskBlockReason | undefined;
|
|
113
119
|
}>;
|
|
@@ -40,4 +40,6 @@ exports.taskSchema = (0, zod_1.object)({
|
|
|
40
40
|
isDamageNoticed: (0, zod_1.boolean)().optional(),
|
|
41
41
|
damageDescription: (0, zod_1.string)().optional(),
|
|
42
42
|
cleaningDetergentFillPercentage: (0, zod_1.number)().int().optional(),
|
|
43
|
+
isBlocked: (0, zod_1.boolean)().optional(),
|
|
44
|
+
blockReason: (0, zod_1.nativeEnum)(enums_1.TaskBlockReason).optional(),
|
|
43
45
|
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { TaskInventoryStatus } from "../../types/enums";
|
|
2
|
+
export declare const taskInventorySchema: import("zod").ZodObject<{
|
|
3
|
+
id: import("zod").ZodNumber;
|
|
4
|
+
taskId: import("zod").ZodNumber;
|
|
5
|
+
status: import("zod").ZodNativeEnum<typeof TaskInventoryStatus>;
|
|
6
|
+
answeredAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
7
|
+
blockedAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
8
|
+
unblockedAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
9
|
+
createdAt: import("zod").ZodDate;
|
|
10
|
+
updatedAt: import("zod").ZodDate;
|
|
11
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
12
|
+
id: number;
|
|
13
|
+
status: TaskInventoryStatus;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
taskId: number;
|
|
17
|
+
answeredAt?: Date | undefined;
|
|
18
|
+
blockedAt?: Date | undefined;
|
|
19
|
+
unblockedAt?: Date | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
id: number;
|
|
22
|
+
status: TaskInventoryStatus;
|
|
23
|
+
createdAt: Date;
|
|
24
|
+
updatedAt: Date;
|
|
25
|
+
taskId: number;
|
|
26
|
+
answeredAt?: Date | undefined;
|
|
27
|
+
blockedAt?: Date | undefined;
|
|
28
|
+
unblockedAt?: Date | undefined;
|
|
29
|
+
}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskInventorySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../types/enums");
|
|
6
|
+
exports.taskInventorySchema = (0, zod_1.object)({
|
|
7
|
+
id: (0, zod_1.number)().int(),
|
|
8
|
+
taskId: (0, zod_1.number)().int(),
|
|
9
|
+
status: (0, zod_1.nativeEnum)(enums_1.TaskInventoryStatus),
|
|
10
|
+
answeredAt: (0, zod_1.date)().optional(),
|
|
11
|
+
blockedAt: (0, zod_1.date)().optional(),
|
|
12
|
+
unblockedAt: (0, zod_1.date)().optional(),
|
|
13
|
+
createdAt: (0, zod_1.date)(),
|
|
14
|
+
updatedAt: (0, zod_1.date)(),
|
|
15
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { InventoryItemCategory, TaskInventoryItemStatus } from "../../types/enums";
|
|
2
|
+
export declare const taskInventoryItemSchema: import("zod").ZodObject<{
|
|
3
|
+
id: import("zod").ZodNumber;
|
|
4
|
+
taskInventoryId: import("zod").ZodNumber;
|
|
5
|
+
templateItemId: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
6
|
+
code: import("zod").ZodString;
|
|
7
|
+
label: import("zod").ZodString;
|
|
8
|
+
category: import("zod").ZodNativeEnum<typeof InventoryItemCategory>;
|
|
9
|
+
sortOrder: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
10
|
+
status: import("zod").ZodNativeEnum<typeof TaskInventoryItemStatus>;
|
|
11
|
+
createdAt: import("zod").ZodDate;
|
|
12
|
+
updatedAt: import("zod").ZodDate;
|
|
13
|
+
inventoryItemId: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
14
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
15
|
+
code: string;
|
|
16
|
+
id: number;
|
|
17
|
+
label: string;
|
|
18
|
+
status: TaskInventoryItemStatus;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
category: InventoryItemCategory;
|
|
22
|
+
taskInventoryId: number;
|
|
23
|
+
sortOrder?: number | undefined;
|
|
24
|
+
templateItemId?: number | undefined;
|
|
25
|
+
inventoryItemId?: number | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
code: string;
|
|
28
|
+
id: number;
|
|
29
|
+
label: string;
|
|
30
|
+
status: TaskInventoryItemStatus;
|
|
31
|
+
createdAt: Date;
|
|
32
|
+
updatedAt: Date;
|
|
33
|
+
category: InventoryItemCategory;
|
|
34
|
+
taskInventoryId: number;
|
|
35
|
+
sortOrder?: number | undefined;
|
|
36
|
+
templateItemId?: number | undefined;
|
|
37
|
+
inventoryItemId?: number | undefined;
|
|
38
|
+
}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskInventoryItemSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../types/enums");
|
|
6
|
+
exports.taskInventoryItemSchema = (0, zod_1.object)({
|
|
7
|
+
id: (0, zod_1.number)().int(),
|
|
8
|
+
taskInventoryId: (0, zod_1.number)().int(),
|
|
9
|
+
templateItemId: (0, zod_1.number)().int().optional(),
|
|
10
|
+
code: (0, zod_1.string)(),
|
|
11
|
+
label: (0, zod_1.string)(),
|
|
12
|
+
category: (0, zod_1.nativeEnum)(enums_1.InventoryItemCategory),
|
|
13
|
+
sortOrder: (0, zod_1.number)().int().optional(),
|
|
14
|
+
status: (0, zod_1.nativeEnum)(enums_1.TaskInventoryItemStatus),
|
|
15
|
+
createdAt: (0, zod_1.date)(),
|
|
16
|
+
updatedAt: (0, zod_1.date)(),
|
|
17
|
+
inventoryItemId: (0, zod_1.number)().int().optional(),
|
|
18
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { additionalTaskAutomationServiceSchema } from "../../schemas/additional-task-automation-service";
|
|
3
|
+
import { TaskAutomation } from "../task-automation";
|
|
4
|
+
import { Service } from "../service";
|
|
5
|
+
export interface AdditionalTaskAutomationService extends infer<typeof additionalTaskAutomationServiceSchema> {
|
|
6
|
+
automation?: TaskAutomation;
|
|
7
|
+
service?: Service;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { additionalTaskServiceSchema } from "../../schemas/additional-task-service";
|
|
3
|
+
import { Task } from "../task";
|
|
4
|
+
import { Service } from "../service";
|
|
5
|
+
export interface AdditionalTaskService extends infer<typeof additionalTaskServiceSchema> {
|
|
6
|
+
task?: Task;
|
|
7
|
+
service?: Service;
|
|
8
|
+
}
|
|
@@ -122,6 +122,22 @@ export declare enum InvitedServiceProviderPreferencesPriority {
|
|
|
122
122
|
FLEXIBLE = "FLEXIBLE",
|
|
123
123
|
INDIFFERENT = "INDIFFERENT"
|
|
124
124
|
}
|
|
125
|
+
export declare enum TaskBlockReason {
|
|
126
|
+
MISSING_INVENTORY = "MISSING_INVENTORY"
|
|
127
|
+
}
|
|
128
|
+
export declare enum InventoryItemCategory {
|
|
129
|
+
DETERGENTS = "DETERGENTS",
|
|
130
|
+
SUPPLIES = "SUPPLIES"
|
|
131
|
+
}
|
|
132
|
+
export declare enum TaskInventoryStatus {
|
|
133
|
+
PENDING = "PENDING",
|
|
134
|
+
READY = "READY",
|
|
135
|
+
BLOCKED = "BLOCKED"
|
|
136
|
+
}
|
|
137
|
+
export declare enum TaskInventoryItemStatus {
|
|
138
|
+
AVAILABLE = "AVAILABLE",
|
|
139
|
+
MISSING = "MISSING"
|
|
140
|
+
}
|
|
125
141
|
export declare enum HumanReviewPriority {
|
|
126
142
|
LOW = "LOW",
|
|
127
143
|
NORMAL = "NORMAL",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HumanReviewStatus = exports.HumanReviewPriority = exports.InvitedServiceProviderPreferencesPriority = exports.InvitedServiceProviderStatus = exports.PropertyManagerSessionType = exports.PropertyManagerSuggestionStatus = exports.PropertyManagerSessionStatus = exports.AgentActionType = exports.AgentSessionStatus = exports.GuestCoordinatorResponseStyle = exports.AiAgentCategory = exports.PropertyType = exports.OnboardingType = exports.SubscriptionStatus = exports.PurchaseStatus = exports.PriceType = exports.InvoiceStatus = exports.InvoiceType = exports.TaskPriority = exports.TaskStatus = exports.ServiceCategory = exports.ServiceGroup = exports.ServiceType = void 0;
|
|
3
|
+
exports.HumanReviewStatus = exports.HumanReviewPriority = exports.TaskInventoryItemStatus = exports.TaskInventoryStatus = exports.InventoryItemCategory = exports.TaskBlockReason = exports.InvitedServiceProviderPreferencesPriority = exports.InvitedServiceProviderStatus = exports.PropertyManagerSessionType = exports.PropertyManagerSuggestionStatus = exports.PropertyManagerSessionStatus = exports.AgentActionType = exports.AgentSessionStatus = exports.GuestCoordinatorResponseStyle = exports.AiAgentCategory = exports.PropertyType = exports.OnboardingType = exports.SubscriptionStatus = exports.PurchaseStatus = exports.PriceType = exports.InvoiceStatus = exports.InvoiceType = exports.TaskPriority = exports.TaskStatus = exports.ServiceCategory = exports.ServiceGroup = exports.ServiceType = void 0;
|
|
4
4
|
var ServiceType;
|
|
5
5
|
(function (ServiceType) {
|
|
6
6
|
ServiceType["INTEGRATION"] = "INTEGRATION";
|
|
@@ -150,6 +150,26 @@ var InvitedServiceProviderPreferencesPriority;
|
|
|
150
150
|
InvitedServiceProviderPreferencesPriority["FLEXIBLE"] = "FLEXIBLE";
|
|
151
151
|
InvitedServiceProviderPreferencesPriority["INDIFFERENT"] = "INDIFFERENT";
|
|
152
152
|
})(InvitedServiceProviderPreferencesPriority || (exports.InvitedServiceProviderPreferencesPriority = InvitedServiceProviderPreferencesPriority = {}));
|
|
153
|
+
var TaskBlockReason;
|
|
154
|
+
(function (TaskBlockReason) {
|
|
155
|
+
TaskBlockReason["MISSING_INVENTORY"] = "MISSING_INVENTORY";
|
|
156
|
+
})(TaskBlockReason || (exports.TaskBlockReason = TaskBlockReason = {}));
|
|
157
|
+
var InventoryItemCategory;
|
|
158
|
+
(function (InventoryItemCategory) {
|
|
159
|
+
InventoryItemCategory["DETERGENTS"] = "DETERGENTS";
|
|
160
|
+
InventoryItemCategory["SUPPLIES"] = "SUPPLIES";
|
|
161
|
+
})(InventoryItemCategory || (exports.InventoryItemCategory = InventoryItemCategory = {}));
|
|
162
|
+
var TaskInventoryStatus;
|
|
163
|
+
(function (TaskInventoryStatus) {
|
|
164
|
+
TaskInventoryStatus["PENDING"] = "PENDING";
|
|
165
|
+
TaskInventoryStatus["READY"] = "READY";
|
|
166
|
+
TaskInventoryStatus["BLOCKED"] = "BLOCKED";
|
|
167
|
+
})(TaskInventoryStatus || (exports.TaskInventoryStatus = TaskInventoryStatus = {}));
|
|
168
|
+
var TaskInventoryItemStatus;
|
|
169
|
+
(function (TaskInventoryItemStatus) {
|
|
170
|
+
TaskInventoryItemStatus["AVAILABLE"] = "AVAILABLE";
|
|
171
|
+
TaskInventoryItemStatus["MISSING"] = "MISSING";
|
|
172
|
+
})(TaskInventoryItemStatus || (exports.TaskInventoryItemStatus = TaskInventoryItemStatus = {}));
|
|
153
173
|
var HumanReviewPriority;
|
|
154
174
|
(function (HumanReviewPriority) {
|
|
155
175
|
HumanReviewPriority["LOW"] = "LOW";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -84,3 +84,8 @@ export * from "./ai-agent";
|
|
|
84
84
|
export * from "./task-photography-space";
|
|
85
85
|
export * from "./invited-service-provider";
|
|
86
86
|
export * from "./invited-service-provider-preferences";
|
|
87
|
+
export * from "./additional-task-service";
|
|
88
|
+
export * from "./additional-task-automation-service";
|
|
89
|
+
export * from "./inventory-item";
|
|
90
|
+
export * from "./task-inventory";
|
|
91
|
+
export * from "./task-inventory-item";
|
package/dist/types/index.js
CHANGED
|
@@ -100,3 +100,8 @@ __exportStar(require("./ai-agent"), exports);
|
|
|
100
100
|
__exportStar(require("./task-photography-space"), exports);
|
|
101
101
|
__exportStar(require("./invited-service-provider"), exports);
|
|
102
102
|
__exportStar(require("./invited-service-provider-preferences"), exports);
|
|
103
|
+
__exportStar(require("./additional-task-service"), exports);
|
|
104
|
+
__exportStar(require("./additional-task-automation-service"), exports);
|
|
105
|
+
__exportStar(require("./inventory-item"), exports);
|
|
106
|
+
__exportStar(require("./task-inventory"), exports);
|
|
107
|
+
__exportStar(require("./task-inventory-item"), exports);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { inventoryItemSchema } from "../../schemas/inventory-item";
|
|
3
|
+
import { TaskInventoryItem } from "../task-inventory-item";
|
|
4
|
+
export interface InventoryItem extends infer<typeof inventoryItemSchema> {
|
|
5
|
+
taskInventoryItems?: TaskInventoryItem[];
|
|
6
|
+
}
|
|
@@ -22,6 +22,8 @@ import { TaskChecklist } from "../task-checklist";
|
|
|
22
22
|
import { TaskDamagePhoto } from "../task-damage-photo";
|
|
23
23
|
import { TaskAssignment } from "../task-assignment";
|
|
24
24
|
import { TaskPhotographySpace } from "../task-photography-space";
|
|
25
|
+
import { AdditionalTaskService } from "../additional-task-service";
|
|
26
|
+
import { TaskInventory } from "../task-inventory";
|
|
25
27
|
export interface Task extends infer<typeof taskSchema> {
|
|
26
28
|
property?: Property;
|
|
27
29
|
department?: TaskDepartment;
|
|
@@ -48,4 +50,6 @@ export interface Task extends infer<typeof taskSchema> {
|
|
|
48
50
|
damagePhotos?: TaskDamagePhoto[];
|
|
49
51
|
taskAssignments?: TaskAssignment[];
|
|
50
52
|
taskPhotographySpaces?: TaskPhotographySpace[];
|
|
53
|
+
additionalTaskServices?: AdditionalTaskService[];
|
|
54
|
+
inventory?: TaskInventory;
|
|
51
55
|
}
|
|
@@ -7,6 +7,7 @@ import { TaskAutomationAttachment } from "../task-automation-attachment";
|
|
|
7
7
|
import { TaskAutomationTag } from "../task-automation-tag";
|
|
8
8
|
import { Property } from "../property";
|
|
9
9
|
import { Service } from "../service";
|
|
10
|
+
import { AdditionalTaskAutomationService } from "../additional-task-automation-service";
|
|
10
11
|
export interface TaskAutomation extends infer<typeof taskAutomationSchema> {
|
|
11
12
|
event?: TaskAutomationEvent;
|
|
12
13
|
department?: TaskDepartment;
|
|
@@ -15,4 +16,5 @@ export interface TaskAutomation extends infer<typeof taskAutomationSchema> {
|
|
|
15
16
|
tags?: TaskAutomationTag[];
|
|
16
17
|
property?: Property;
|
|
17
18
|
service?: Service;
|
|
19
|
+
additionalTaskAutomationServices?: AdditionalTaskAutomationService[];
|
|
18
20
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { taskInventorySchema } from "../../schemas/task-inventory";
|
|
3
|
+
import { Task } from "../task";
|
|
4
|
+
import { TaskInventoryItem } from "../task-inventory-item";
|
|
5
|
+
export interface TaskInventory extends infer<typeof taskInventorySchema> {
|
|
6
|
+
task?: Task;
|
|
7
|
+
items?: TaskInventoryItem[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { taskInventoryItemSchema } from "../../schemas/task-inventory-item";
|
|
3
|
+
import { TaskInventory } from "../task-inventory";
|
|
4
|
+
import { InventoryItem } from "../inventory-item";
|
|
5
|
+
export interface TaskInventoryItem extends infer<typeof taskInventoryItemSchema> {
|
|
6
|
+
taskInventory?: TaskInventory;
|
|
7
|
+
inventoryItem?: InventoryItem;
|
|
8
|
+
}
|