hububb-saas-shared 1.2.42 → 1.2.43
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.
|
@@ -41,6 +41,7 @@ export declare const taskSchema: import("zod").ZodObject<{
|
|
|
41
41
|
parentTaskId: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
42
42
|
providerPaidOut: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
43
43
|
serviceProviderPayoutId: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
44
|
+
assignedProviderId: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
44
45
|
}, "strip", import("zod").ZodTypeAny, {
|
|
45
46
|
id: number;
|
|
46
47
|
priority: TaskPriority;
|
|
@@ -83,6 +84,7 @@ export declare const taskSchema: import("zod").ZodObject<{
|
|
|
83
84
|
parentTaskId?: number | undefined;
|
|
84
85
|
providerPaidOut?: boolean | undefined;
|
|
85
86
|
serviceProviderPayoutId?: number | undefined;
|
|
87
|
+
assignedProviderId?: number | undefined;
|
|
86
88
|
}, {
|
|
87
89
|
id: number;
|
|
88
90
|
priority: TaskPriority;
|
|
@@ -125,4 +127,5 @@ export declare const taskSchema: import("zod").ZodObject<{
|
|
|
125
127
|
parentTaskId?: number | undefined;
|
|
126
128
|
providerPaidOut?: boolean | undefined;
|
|
127
129
|
serviceProviderPayoutId?: number | undefined;
|
|
130
|
+
assignedProviderId?: number | undefined;
|
|
128
131
|
}>;
|
|
@@ -45,4 +45,5 @@ exports.taskSchema = (0, zod_1.object)({
|
|
|
45
45
|
parentTaskId: (0, zod_1.number)().int().optional(),
|
|
46
46
|
providerPaidOut: (0, zod_1.boolean)().optional(),
|
|
47
47
|
serviceProviderPayoutId: (0, zod_1.number)().int().optional(),
|
|
48
|
+
assignedProviderId: (0, zod_1.number)().int().optional(),
|
|
48
49
|
});
|
|
@@ -5,6 +5,7 @@ import { ServiceWorker as ServiceWorkerType } from "../service-worker";
|
|
|
5
5
|
import { ServiceProviderService } from "../service-provider-service";
|
|
6
6
|
import { TaskProviderPricing } from "../task-provider-pricing";
|
|
7
7
|
import { ServiceProviderPayoutInfo } from "../service-provider-payout-info";
|
|
8
|
+
import { Task } from "../task";
|
|
8
9
|
export interface ServiceProviderArea extends infer<typeof ServiceProviderAreaSchema> {
|
|
9
10
|
serviceProvider?: ServiceProvider;
|
|
10
11
|
}
|
|
@@ -23,4 +24,5 @@ export interface ServiceProvider extends infer<typeof ServiceProviderSchema> {
|
|
|
23
24
|
owner?: User;
|
|
24
25
|
taskProviderPricings?: TaskProviderPricing[];
|
|
25
26
|
payoutInfo?: ServiceProviderPayoutInfo;
|
|
27
|
+
assignedTasks?: Task[];
|
|
26
28
|
}
|
|
@@ -32,6 +32,7 @@ import { TaskEstimate } from "../task-estimate";
|
|
|
32
32
|
import { TaskProviderPricing } from "../task-provider-pricing";
|
|
33
33
|
import { TaskSupplyPurchaseItem } from "../task-supply-purchase-item";
|
|
34
34
|
import { ServiceProviderPayout } from "../service-provider-payout";
|
|
35
|
+
import { ServiceProvider } from "../service-provider";
|
|
35
36
|
export interface Task extends infer<typeof taskSchema> {
|
|
36
37
|
property?: Property;
|
|
37
38
|
department?: TaskDepartment;
|
|
@@ -70,4 +71,5 @@ export interface Task extends infer<typeof taskSchema> {
|
|
|
70
71
|
followUpTasks?: Task[];
|
|
71
72
|
supplyPurchaseItems?: TaskSupplyPurchaseItem[];
|
|
72
73
|
serviceProviderPayout?: ServiceProviderPayout;
|
|
74
|
+
assignedProvider?: ServiceProvider;
|
|
73
75
|
}
|