hububb-saas-shared 1.2.20 → 1.2.22
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/custom-bundle/index.d.ts +2 -2
- package/dist/schemas/index.d.ts +3 -0
- package/dist/schemas/index.js +3 -0
- package/dist/schemas/task-quote/index.d.ts +41 -0
- package/dist/schemas/task-quote/index.js +19 -0
- package/dist/schemas/task-reporting-photo/index.d.ts +23 -0
- package/dist/schemas/task-reporting-photo/index.js +13 -0
- package/dist/schemas/task-reporting-video/index.d.ts +23 -0
- package/dist/schemas/task-reporting-video/index.js +13 -0
- package/dist/types/enums/index.d.ts +13 -0
- package/dist/types/enums/index.js +17 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.js +3 -0
- package/dist/types/service-worker/index.d.ts +2 -0
- package/dist/types/task/index.d.ts +6 -0
- package/dist/types/task-quote/index.d.ts +10 -0
- package/dist/types/task-quote/index.js +2 -0
- package/dist/types/task-reporting-photo/index.d.ts +6 -0
- package/dist/types/task-reporting-photo/index.js +2 -0
- package/dist/types/task-reporting-video/index.d.ts +6 -0
- package/dist/types/task-reporting-video/index.js +2 -0
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ export declare const customBundleSchema: import("zod").ZodObject<{
|
|
|
17
17
|
}, "strip", import("zod").ZodTypeAny, {
|
|
18
18
|
name: string;
|
|
19
19
|
id: number;
|
|
20
|
-
status: "PENDING" | "ACTIVE" | "
|
|
20
|
+
status: "PENDING" | "ACTIVE" | "ACCEPTED" | "DRAFT" | "DECLINED";
|
|
21
21
|
createdAt: Date;
|
|
22
22
|
updatedAt: Date;
|
|
23
23
|
userId: string;
|
|
@@ -33,7 +33,7 @@ export declare const customBundleSchema: import("zod").ZodObject<{
|
|
|
33
33
|
}, {
|
|
34
34
|
name: string;
|
|
35
35
|
id: number;
|
|
36
|
-
status: "PENDING" | "ACTIVE" | "
|
|
36
|
+
status: "PENDING" | "ACTIVE" | "ACCEPTED" | "DRAFT" | "DECLINED";
|
|
37
37
|
createdAt: Date;
|
|
38
38
|
updatedAt: Date;
|
|
39
39
|
userId: string;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -88,3 +88,6 @@ export * from "./additional-task-automation-service";
|
|
|
88
88
|
export * from "./inventory-item";
|
|
89
89
|
export * from "./task-inventory";
|
|
90
90
|
export * from "./task-inventory-item";
|
|
91
|
+
export * from "./task-quote";
|
|
92
|
+
export * from "./task-reporting-video";
|
|
93
|
+
export * from "./task-reporting-photo";
|
package/dist/schemas/index.js
CHANGED
|
@@ -104,3 +104,6 @@ __exportStar(require("./additional-task-automation-service"), exports);
|
|
|
104
104
|
__exportStar(require("./inventory-item"), exports);
|
|
105
105
|
__exportStar(require("./task-inventory"), exports);
|
|
106
106
|
__exportStar(require("./task-inventory-item"), exports);
|
|
107
|
+
__exportStar(require("./task-quote"), exports);
|
|
108
|
+
__exportStar(require("./task-reporting-video"), exports);
|
|
109
|
+
__exportStar(require("./task-reporting-photo"), exports);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { TaskQuoteStatus } from "../../types/enums";
|
|
2
|
+
export declare const taskQuoteSchema: import("zod").ZodObject<{
|
|
3
|
+
id: import("zod").ZodNumber;
|
|
4
|
+
taskId: import("zod").ZodNumber;
|
|
5
|
+
amount: import("zod").ZodNumber;
|
|
6
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7
|
+
status: import("zod").ZodNativeEnum<typeof TaskQuoteStatus>;
|
|
8
|
+
submittedByWorkerId: import("zod").ZodNumber;
|
|
9
|
+
submittedAt: import("zod").ZodDate;
|
|
10
|
+
respondedByUserId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11
|
+
respondedAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
12
|
+
rejectionReason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
|
+
createdAt: import("zod").ZodDate;
|
|
14
|
+
updatedAt: import("zod").ZodDate;
|
|
15
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
16
|
+
id: number;
|
|
17
|
+
status: TaskQuoteStatus;
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
updatedAt: Date;
|
|
20
|
+
amount: number;
|
|
21
|
+
taskId: number;
|
|
22
|
+
submittedByWorkerId: number;
|
|
23
|
+
submittedAt: Date;
|
|
24
|
+
description?: string | undefined;
|
|
25
|
+
respondedByUserId?: string | undefined;
|
|
26
|
+
respondedAt?: Date | undefined;
|
|
27
|
+
rejectionReason?: string | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
id: number;
|
|
30
|
+
status: TaskQuoteStatus;
|
|
31
|
+
createdAt: Date;
|
|
32
|
+
updatedAt: Date;
|
|
33
|
+
amount: number;
|
|
34
|
+
taskId: number;
|
|
35
|
+
submittedByWorkerId: number;
|
|
36
|
+
submittedAt: Date;
|
|
37
|
+
description?: string | undefined;
|
|
38
|
+
respondedByUserId?: string | undefined;
|
|
39
|
+
respondedAt?: Date | undefined;
|
|
40
|
+
rejectionReason?: string | undefined;
|
|
41
|
+
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskQuoteSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../types/enums");
|
|
6
|
+
exports.taskQuoteSchema = (0, zod_1.object)({
|
|
7
|
+
id: (0, zod_1.number)().int(),
|
|
8
|
+
taskId: (0, zod_1.number)().int(),
|
|
9
|
+
amount: (0, zod_1.number)(),
|
|
10
|
+
description: (0, zod_1.string)().optional(),
|
|
11
|
+
status: (0, zod_1.nativeEnum)(enums_1.TaskQuoteStatus),
|
|
12
|
+
submittedByWorkerId: (0, zod_1.number)().int(),
|
|
13
|
+
submittedAt: (0, zod_1.date)(),
|
|
14
|
+
respondedByUserId: (0, zod_1.string)().optional(),
|
|
15
|
+
respondedAt: (0, zod_1.date)().optional(),
|
|
16
|
+
rejectionReason: (0, zod_1.string)().optional(),
|
|
17
|
+
createdAt: (0, zod_1.date)(),
|
|
18
|
+
updatedAt: (0, zod_1.date)(),
|
|
19
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TaskReportingPhotoType } from "../../types/enums";
|
|
2
|
+
export declare const taskReportingPhotoSchema: import("zod").ZodObject<{
|
|
3
|
+
id: import("zod").ZodNumber;
|
|
4
|
+
taskId: import("zod").ZodNumber;
|
|
5
|
+
url: import("zod").ZodString;
|
|
6
|
+
type: import("zod").ZodNativeEnum<typeof TaskReportingPhotoType>;
|
|
7
|
+
createdAt: import("zod").ZodDate;
|
|
8
|
+
updatedAt: import("zod").ZodDate;
|
|
9
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
10
|
+
type: TaskReportingPhotoType;
|
|
11
|
+
id: number;
|
|
12
|
+
url: string;
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
updatedAt: Date;
|
|
15
|
+
taskId: number;
|
|
16
|
+
}, {
|
|
17
|
+
type: TaskReportingPhotoType;
|
|
18
|
+
id: number;
|
|
19
|
+
url: string;
|
|
20
|
+
createdAt: Date;
|
|
21
|
+
updatedAt: Date;
|
|
22
|
+
taskId: number;
|
|
23
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskReportingPhotoSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../types/enums");
|
|
6
|
+
exports.taskReportingPhotoSchema = (0, zod_1.object)({
|
|
7
|
+
id: (0, zod_1.number)().int(),
|
|
8
|
+
taskId: (0, zod_1.number)().int(),
|
|
9
|
+
url: (0, zod_1.string)(),
|
|
10
|
+
type: (0, zod_1.nativeEnum)(enums_1.TaskReportingPhotoType),
|
|
11
|
+
createdAt: (0, zod_1.date)(),
|
|
12
|
+
updatedAt: (0, zod_1.date)(),
|
|
13
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TaskReportingVideoType } from "../../types/enums";
|
|
2
|
+
export declare const taskReportingVideoSchema: import("zod").ZodObject<{
|
|
3
|
+
id: import("zod").ZodNumber;
|
|
4
|
+
taskId: import("zod").ZodNumber;
|
|
5
|
+
url: import("zod").ZodString;
|
|
6
|
+
type: import("zod").ZodNativeEnum<typeof TaskReportingVideoType>;
|
|
7
|
+
createdAt: import("zod").ZodDate;
|
|
8
|
+
updatedAt: import("zod").ZodDate;
|
|
9
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
10
|
+
type: TaskReportingVideoType;
|
|
11
|
+
id: number;
|
|
12
|
+
url: string;
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
updatedAt: Date;
|
|
15
|
+
taskId: number;
|
|
16
|
+
}, {
|
|
17
|
+
type: TaskReportingVideoType;
|
|
18
|
+
id: number;
|
|
19
|
+
url: string;
|
|
20
|
+
createdAt: Date;
|
|
21
|
+
updatedAt: Date;
|
|
22
|
+
taskId: number;
|
|
23
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskReportingVideoSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../types/enums");
|
|
6
|
+
exports.taskReportingVideoSchema = (0, zod_1.object)({
|
|
7
|
+
id: (0, zod_1.number)().int(),
|
|
8
|
+
taskId: (0, zod_1.number)().int(),
|
|
9
|
+
url: (0, zod_1.string)(),
|
|
10
|
+
type: (0, zod_1.nativeEnum)(enums_1.TaskReportingVideoType),
|
|
11
|
+
createdAt: (0, zod_1.date)(),
|
|
12
|
+
updatedAt: (0, zod_1.date)(),
|
|
13
|
+
});
|
|
@@ -138,6 +138,19 @@ export declare enum TaskInventoryItemStatus {
|
|
|
138
138
|
AVAILABLE = "AVAILABLE",
|
|
139
139
|
MISSING = "MISSING"
|
|
140
140
|
}
|
|
141
|
+
export declare enum TaskQuoteStatus {
|
|
142
|
+
PENDING = "PENDING",
|
|
143
|
+
ACCEPTED = "ACCEPTED",
|
|
144
|
+
REJECTED = "REJECTED"
|
|
145
|
+
}
|
|
146
|
+
export declare enum TaskReportingVideoType {
|
|
147
|
+
BEFORE = "BEFORE",
|
|
148
|
+
AFTER = "AFTER"
|
|
149
|
+
}
|
|
150
|
+
export declare enum TaskReportingPhotoType {
|
|
151
|
+
BEFORE = "BEFORE",
|
|
152
|
+
AFTER = "AFTER"
|
|
153
|
+
}
|
|
141
154
|
export declare enum HumanReviewPriority {
|
|
142
155
|
LOW = "LOW",
|
|
143
156
|
NORMAL = "NORMAL",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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;
|
|
3
|
+
exports.HumanReviewStatus = exports.HumanReviewPriority = exports.TaskReportingPhotoType = exports.TaskReportingVideoType = exports.TaskQuoteStatus = 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";
|
|
@@ -170,6 +170,22 @@ var TaskInventoryItemStatus;
|
|
|
170
170
|
TaskInventoryItemStatus["AVAILABLE"] = "AVAILABLE";
|
|
171
171
|
TaskInventoryItemStatus["MISSING"] = "MISSING";
|
|
172
172
|
})(TaskInventoryItemStatus || (exports.TaskInventoryItemStatus = TaskInventoryItemStatus = {}));
|
|
173
|
+
var TaskQuoteStatus;
|
|
174
|
+
(function (TaskQuoteStatus) {
|
|
175
|
+
TaskQuoteStatus["PENDING"] = "PENDING";
|
|
176
|
+
TaskQuoteStatus["ACCEPTED"] = "ACCEPTED";
|
|
177
|
+
TaskQuoteStatus["REJECTED"] = "REJECTED";
|
|
178
|
+
})(TaskQuoteStatus || (exports.TaskQuoteStatus = TaskQuoteStatus = {}));
|
|
179
|
+
var TaskReportingVideoType;
|
|
180
|
+
(function (TaskReportingVideoType) {
|
|
181
|
+
TaskReportingVideoType["BEFORE"] = "BEFORE";
|
|
182
|
+
TaskReportingVideoType["AFTER"] = "AFTER";
|
|
183
|
+
})(TaskReportingVideoType || (exports.TaskReportingVideoType = TaskReportingVideoType = {}));
|
|
184
|
+
var TaskReportingPhotoType;
|
|
185
|
+
(function (TaskReportingPhotoType) {
|
|
186
|
+
TaskReportingPhotoType["BEFORE"] = "BEFORE";
|
|
187
|
+
TaskReportingPhotoType["AFTER"] = "AFTER";
|
|
188
|
+
})(TaskReportingPhotoType || (exports.TaskReportingPhotoType = TaskReportingPhotoType = {}));
|
|
173
189
|
var HumanReviewPriority;
|
|
174
190
|
(function (HumanReviewPriority) {
|
|
175
191
|
HumanReviewPriority["LOW"] = "LOW";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -89,3 +89,6 @@ export * from "./additional-task-automation-service";
|
|
|
89
89
|
export * from "./inventory-item";
|
|
90
90
|
export * from "./task-inventory";
|
|
91
91
|
export * from "./task-inventory-item";
|
|
92
|
+
export * from "./task-quote";
|
|
93
|
+
export * from "./task-reporting-video";
|
|
94
|
+
export * from "./task-reporting-photo";
|
package/dist/types/index.js
CHANGED
|
@@ -105,3 +105,6 @@ __exportStar(require("./additional-task-automation-service"), exports);
|
|
|
105
105
|
__exportStar(require("./inventory-item"), exports);
|
|
106
106
|
__exportStar(require("./task-inventory"), exports);
|
|
107
107
|
__exportStar(require("./task-inventory-item"), exports);
|
|
108
|
+
__exportStar(require("./task-quote"), exports);
|
|
109
|
+
__exportStar(require("./task-reporting-video"), exports);
|
|
110
|
+
__exportStar(require("./task-reporting-photo"), exports);
|
|
@@ -4,9 +4,11 @@ import { ServiceProvider } from "../service-provider";
|
|
|
4
4
|
import { Task } from "../task";
|
|
5
5
|
import { User } from "../user";
|
|
6
6
|
import { TaskWorkerReview } from "../task-worker-review";
|
|
7
|
+
import { TaskQuote } from "../task-quote";
|
|
7
8
|
export interface ServiceWorker extends infer<typeof ServiceWorkerSchema> {
|
|
8
9
|
serviceProvider?: ServiceProvider;
|
|
9
10
|
tasks?: Task[];
|
|
10
11
|
user?: User;
|
|
11
12
|
reviews?: TaskWorkerReview[];
|
|
13
|
+
taskQuotes?: TaskQuote[];
|
|
12
14
|
}
|
|
@@ -24,6 +24,9 @@ import { TaskAssignment } from "../task-assignment";
|
|
|
24
24
|
import { TaskPhotographySpace } from "../task-photography-space";
|
|
25
25
|
import { AdditionalTaskService } from "../additional-task-service";
|
|
26
26
|
import { TaskInventory } from "../task-inventory";
|
|
27
|
+
import { TaskQuote } from "../task-quote";
|
|
28
|
+
import { TaskReportingVideo } from "../task-reporting-video";
|
|
29
|
+
import { TaskReportingPhoto } from "../task-reporting-photo";
|
|
27
30
|
export interface Task extends infer<typeof taskSchema> {
|
|
28
31
|
property?: Property;
|
|
29
32
|
department?: TaskDepartment;
|
|
@@ -52,4 +55,7 @@ export interface Task extends infer<typeof taskSchema> {
|
|
|
52
55
|
taskPhotographySpaces?: TaskPhotographySpace[];
|
|
53
56
|
additionalTaskServices?: AdditionalTaskService[];
|
|
54
57
|
inventory?: TaskInventory;
|
|
58
|
+
quote?: TaskQuote;
|
|
59
|
+
reportingVideos?: TaskReportingVideo[];
|
|
60
|
+
reportingPhotos?: TaskReportingPhoto[];
|
|
55
61
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { taskQuoteSchema } from "../../schemas/task-quote";
|
|
3
|
+
import { Task } from "../task";
|
|
4
|
+
import { ServiceWorker as ServiceWorkerType } from "../service-worker";
|
|
5
|
+
import { User } from "../user";
|
|
6
|
+
export interface TaskQuote extends infer<typeof taskQuoteSchema> {
|
|
7
|
+
task?: Task;
|
|
8
|
+
submittedByWorker?: ServiceWorkerType;
|
|
9
|
+
respondedByUser?: User;
|
|
10
|
+
}
|