hububb-saas-shared 1.0.97 → 1.0.98

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,7 +1,6 @@
1
1
  export declare enum ServiceType {
2
- INTEGRATION = "INTEGRATION",
3
- ON_DEMAND = "ON_DEMAND",
4
- RECURRING = "RECURRING"
2
+ ON_DEMAND = "FULL",
3
+ SUBSCRIPTION = "PRORATED"
5
4
  }
6
5
  export declare enum TaskStatus {
7
6
  PENDING = "PENDING",
@@ -3,9 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SubscriptionStatus = exports.PurchaseStatus = exports.PriceType = exports.InvoiceStatus = exports.InvoiceType = exports.TaskPriority = exports.TaskStatus = exports.ServiceType = void 0;
4
4
  var ServiceType;
5
5
  (function (ServiceType) {
6
- ServiceType["INTEGRATION"] = "INTEGRATION";
7
- ServiceType["ON_DEMAND"] = "ON_DEMAND";
8
- ServiceType["RECURRING"] = "RECURRING";
6
+ ServiceType["ON_DEMAND"] = "FULL";
7
+ ServiceType["SUBSCRIPTION"] = "PRORATED";
9
8
  })(ServiceType || (exports.ServiceType = ServiceType = {}));
10
9
  var TaskStatus;
11
10
  (function (TaskStatus) {
@@ -12,6 +12,8 @@ export declare const serviceSchema: import("zod").ZodObject<{
12
12
  rating: import("zod").ZodNumber;
13
13
  stripePriceId: import("zod").ZodOptional<import("zod").ZodString>;
14
14
  priceType: import("zod").ZodNativeEnum<typeof PriceType>;
15
+ departmentId: import("zod").ZodOptional<import("zod").ZodNumber>;
16
+ subdepartmentId: import("zod").ZodOptional<import("zod").ZodNumber>;
15
17
  }, "strip", import("zod").ZodTypeAny, {
16
18
  name: string;
17
19
  type: ServiceType;
@@ -25,6 +27,8 @@ export declare const serviceSchema: import("zod").ZodObject<{
25
27
  rating: number;
26
28
  priceType: PriceType;
27
29
  stripePriceId?: string | undefined;
30
+ departmentId?: number | undefined;
31
+ subdepartmentId?: number | undefined;
28
32
  }, {
29
33
  name: string;
30
34
  type: ServiceType;
@@ -38,4 +42,6 @@ export declare const serviceSchema: import("zod").ZodObject<{
38
42
  rating: number;
39
43
  priceType: PriceType;
40
44
  stripePriceId?: string | undefined;
45
+ departmentId?: number | undefined;
46
+ subdepartmentId?: number | undefined;
41
47
  }>;
@@ -16,4 +16,6 @@ exports.serviceSchema = (0, zod_1.object)({
16
16
  rating: (0, zod_1.number)(),
17
17
  stripePriceId: (0, zod_1.string)().optional(),
18
18
  priceType: (0, zod_1.nativeEnum)(enums_1.PriceType),
19
+ departmentId: (0, zod_1.number)().int().optional(),
20
+ subdepartmentId: (0, zod_1.number)().int().optional(),
19
21
  });
@@ -18,10 +18,10 @@ export declare const taskSchema: import("zod").ZodObject<{
18
18
  status: TaskStatus;
19
19
  createdAt: Date;
20
20
  updatedAt: Date;
21
- propertyId: number;
22
- dueDate: Date;
23
21
  departmentId: number;
24
22
  subdepartmentId: number;
23
+ propertyId: number;
24
+ dueDate: Date;
25
25
  description?: string | undefined;
26
26
  }, {
27
27
  id: number;
@@ -30,9 +30,9 @@ export declare const taskSchema: import("zod").ZodObject<{
30
30
  status: TaskStatus;
31
31
  createdAt: Date;
32
32
  updatedAt: Date;
33
- propertyId: number;
34
- dueDate: Date;
35
33
  departmentId: number;
36
34
  subdepartmentId: number;
35
+ propertyId: number;
36
+ dueDate: Date;
37
37
  description?: string | undefined;
38
38
  }>;
@@ -18,9 +18,9 @@ export declare const taskAutomationSchema: import("zod").ZodObject<{
18
18
  title: string;
19
19
  createdAt: Date;
20
20
  updatedAt: Date;
21
- propertyId: number;
22
21
  departmentId: number;
23
22
  subdepartmentId: number;
23
+ propertyId: number;
24
24
  isActive: boolean;
25
25
  timeOffsetMinutes: number;
26
26
  eventId: number;
@@ -31,9 +31,9 @@ export declare const taskAutomationSchema: import("zod").ZodObject<{
31
31
  title: string;
32
32
  createdAt: Date;
33
33
  updatedAt: Date;
34
- propertyId: number;
35
34
  departmentId: number;
36
35
  subdepartmentId: number;
36
+ propertyId: number;
37
37
  timeOffsetMinutes: number;
38
38
  eventId: number;
39
39
  description?: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.0.97",
4
+ "version": "1.0.98",
5
5
  "description": "This is a shared package for the hububb saas project",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",