hububb-saas-shared 1.0.3 → 1.0.5

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.
Files changed (54) hide show
  1. package/dist/schemas/address/index.d.ts +34 -0
  2. package/dist/schemas/address/index.js +16 -0
  3. package/dist/schemas/amenity/index.d.ts +16 -0
  4. package/dist/schemas/amenity/index.js +10 -0
  5. package/dist/schemas/enums/index.d.ts +4 -0
  6. package/dist/schemas/enums/index.js +8 -0
  7. package/dist/schemas/image/index.d.ts +31 -0
  8. package/dist/schemas/image/index.js +15 -0
  9. package/dist/schemas/index.d.ts +12 -0
  10. package/dist/schemas/index.js +12 -0
  11. package/dist/schemas/property/index.d.ts +58 -0
  12. package/dist/schemas/property/index.js +24 -0
  13. package/dist/schemas/rate-plan/index.d.ts +34 -0
  14. package/dist/schemas/rate-plan/index.js +16 -0
  15. package/dist/schemas/reservation/index.d.ts +16 -0
  16. package/dist/schemas/reservation/index.js +10 -0
  17. package/dist/schemas/service/index.d.ts +20 -0
  18. package/dist/schemas/service/index.js +12 -0
  19. package/dist/schemas/service-property/index.d.ts +19 -0
  20. package/dist/schemas/service-property/index.js +11 -0
  21. package/dist/schemas/tier/index.d.ts +19 -0
  22. package/dist/schemas/tier/index.js +11 -0
  23. package/dist/schemas/tier-pricing/index.d.ts +19 -0
  24. package/dist/schemas/tier-pricing/index.js +11 -0
  25. package/dist/schemas/tier-service/index.d.ts +10 -0
  26. package/dist/schemas/tier-service/index.js +8 -0
  27. package/dist/schemas/user/index.d.ts +5 -2
  28. package/dist/schemas/user/index.js +1 -0
  29. package/dist/types/address/index.d.ts +6 -0
  30. package/dist/types/address/index.js +2 -0
  31. package/dist/types/amenity/index.d.ts +6 -0
  32. package/dist/types/amenity/index.js +2 -0
  33. package/dist/types/image/index.d.ts +6 -0
  34. package/dist/types/image/index.js +2 -0
  35. package/dist/types/index.d.ts +11 -0
  36. package/dist/types/index.js +11 -0
  37. package/dist/types/property/index.d.ts +18 -0
  38. package/dist/types/property/index.js +2 -0
  39. package/dist/types/rate-plan/index.d.ts +6 -0
  40. package/dist/types/rate-plan/index.js +2 -0
  41. package/dist/types/reservation/index.d.ts +6 -0
  42. package/dist/types/reservation/index.js +2 -0
  43. package/dist/types/service/index.d.ts +8 -0
  44. package/dist/types/service/index.js +2 -0
  45. package/dist/types/service-property/index.d.ts +8 -0
  46. package/dist/types/service-property/index.js +2 -0
  47. package/dist/types/tier/index.d.ts +10 -0
  48. package/dist/types/tier/index.js +2 -0
  49. package/dist/types/tier-pricing/index.d.ts +6 -0
  50. package/dist/types/tier-pricing/index.js +2 -0
  51. package/dist/types/tier-service/index.d.ts +8 -0
  52. package/dist/types/tier-service/index.js +2 -0
  53. package/dist/types/user/index.d.ts +4 -0
  54. package/package.json +3 -2
@@ -0,0 +1,34 @@
1
+ export declare const addressSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodNumber;
3
+ propertyId: import("zod").ZodNumber;
4
+ street: import("zod").ZodString;
5
+ city: import("zod").ZodString;
6
+ state: import("zod").ZodString;
7
+ zipcode: import("zod").ZodString;
8
+ latitude: import("zod").ZodNumber;
9
+ longitude: import("zod").ZodNumber;
10
+ createdAt: import("zod").ZodDate;
11
+ updatedAt: import("zod").ZodDate;
12
+ }, "strip", import("zod").ZodTypeAny, {
13
+ id: number;
14
+ state: string;
15
+ createdAt: Date;
16
+ updatedAt: Date;
17
+ propertyId: number;
18
+ street: string;
19
+ city: string;
20
+ zipcode: string;
21
+ latitude: number;
22
+ longitude: number;
23
+ }, {
24
+ id: number;
25
+ state: string;
26
+ createdAt: Date;
27
+ updatedAt: Date;
28
+ propertyId: number;
29
+ street: string;
30
+ city: string;
31
+ zipcode: string;
32
+ latitude: number;
33
+ longitude: number;
34
+ }>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addressSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.addressSchema = (0, zod_1.object)({
6
+ id: (0, zod_1.number)().int(),
7
+ propertyId: (0, zod_1.number)().int(),
8
+ street: (0, zod_1.string)(),
9
+ city: (0, zod_1.string)(),
10
+ state: (0, zod_1.string)(),
11
+ zipcode: (0, zod_1.string)(),
12
+ latitude: (0, zod_1.number)(),
13
+ longitude: (0, zod_1.number)(),
14
+ createdAt: (0, zod_1.date)(),
15
+ updatedAt: (0, zod_1.date)(),
16
+ });
@@ -0,0 +1,16 @@
1
+ export declare const amenitySchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodNumber;
3
+ name: import("zod").ZodString;
4
+ createdAt: import("zod").ZodDate;
5
+ updatedAt: import("zod").ZodDate;
6
+ }, "strip", import("zod").ZodTypeAny, {
7
+ name: string;
8
+ id: number;
9
+ createdAt: Date;
10
+ updatedAt: Date;
11
+ }, {
12
+ name: string;
13
+ id: number;
14
+ createdAt: Date;
15
+ updatedAt: Date;
16
+ }>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.amenitySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.amenitySchema = (0, zod_1.object)({
6
+ id: (0, zod_1.number)().int(),
7
+ name: (0, zod_1.string)(),
8
+ createdAt: (0, zod_1.date)(),
9
+ updatedAt: (0, zod_1.date)(),
10
+ });
@@ -0,0 +1,4 @@
1
+ export declare enum ServiceType {
2
+ ON_DEMAND = "ON_DEMAND",
3
+ SUBSCRIPTION = "RECURRING"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceType = void 0;
4
+ var ServiceType;
5
+ (function (ServiceType) {
6
+ ServiceType["ON_DEMAND"] = "ON_DEMAND";
7
+ ServiceType["SUBSCRIPTION"] = "RECURRING";
8
+ })(ServiceType || (exports.ServiceType = ServiceType = {}));
@@ -0,0 +1,31 @@
1
+ export declare const imageSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodNumber;
3
+ propertyId: import("zod").ZodNumber;
4
+ smallUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
5
+ mediumUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
6
+ thumbnailUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
7
+ sortOrder: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
8
+ caption: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
9
+ createdAt: import("zod").ZodDate;
10
+ updatedAt: import("zod").ZodDate;
11
+ }, "strip", import("zod").ZodTypeAny, {
12
+ id: number;
13
+ createdAt: Date;
14
+ updatedAt: Date;
15
+ propertyId: number;
16
+ caption?: string | null | undefined;
17
+ smallUrl?: string | null | undefined;
18
+ mediumUrl?: string | null | undefined;
19
+ thumbnailUrl?: string | null | undefined;
20
+ sortOrder?: number | null | undefined;
21
+ }, {
22
+ id: number;
23
+ createdAt: Date;
24
+ updatedAt: Date;
25
+ propertyId: number;
26
+ caption?: string | null | undefined;
27
+ smallUrl?: string | null | undefined;
28
+ mediumUrl?: string | null | undefined;
29
+ thumbnailUrl?: string | null | undefined;
30
+ sortOrder?: number | null | undefined;
31
+ }>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.imageSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.imageSchema = (0, zod_1.object)({
6
+ id: (0, zod_1.number)().int(),
7
+ propertyId: (0, zod_1.number)().int(),
8
+ smallUrl: (0, zod_1.string)().nullish(),
9
+ mediumUrl: (0, zod_1.string)().nullish(),
10
+ thumbnailUrl: (0, zod_1.string)().nullish(),
11
+ sortOrder: (0, zod_1.number)().int().nullish(),
12
+ caption: (0, zod_1.string)().nullish(),
13
+ createdAt: (0, zod_1.date)(),
14
+ updatedAt: (0, zod_1.date)(),
15
+ });
@@ -1 +1,13 @@
1
1
  export * from "./user";
2
+ export * from "./tier";
3
+ export * from "./property";
4
+ export * from "./rate-plan";
5
+ export * from "./tier-pricing";
6
+ export * from "./service";
7
+ export * from "./reservation";
8
+ export * from "./enums";
9
+ export * from "./service-property";
10
+ export * from "./tier-service";
11
+ export * from "./image";
12
+ export * from "./amenity";
13
+ export * from "./address";
@@ -15,3 +15,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./user"), exports);
18
+ __exportStar(require("./tier"), exports);
19
+ __exportStar(require("./property"), exports);
20
+ __exportStar(require("./rate-plan"), exports);
21
+ __exportStar(require("./tier-pricing"), exports);
22
+ __exportStar(require("./service"), exports);
23
+ __exportStar(require("./reservation"), exports);
24
+ __exportStar(require("./enums"), exports);
25
+ __exportStar(require("./service-property"), exports);
26
+ __exportStar(require("./tier-service"), exports);
27
+ __exportStar(require("./image"), exports);
28
+ __exportStar(require("./amenity"), exports);
29
+ __exportStar(require("./address"), exports);
@@ -0,0 +1,58 @@
1
+ export declare const propertySchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodNumber;
3
+ title: import("zod").ZodString;
4
+ createdAt: import("zod").ZodDate;
5
+ updatedAt: import("zod").ZodDate;
6
+ userId: import("zod").ZodString;
7
+ propertyType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
8
+ bedrooms: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
9
+ bathrooms: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
10
+ capacity: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
11
+ beds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
12
+ cleaningFee: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
13
+ basePrice: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
14
+ currency: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
15
+ checkInTime: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
16
+ checkOutTime: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
17
+ channexId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
18
+ airbnbId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
19
+ channexRoomTypeId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
20
+ }, "strip", import("zod").ZodTypeAny, {
21
+ id: number;
22
+ title: string;
23
+ createdAt: Date;
24
+ updatedAt: Date;
25
+ userId: string;
26
+ currency?: string | null | undefined;
27
+ basePrice?: number | null | undefined;
28
+ propertyType?: string | null | undefined;
29
+ bedrooms?: number | null | undefined;
30
+ bathrooms?: number | null | undefined;
31
+ capacity?: number | null | undefined;
32
+ beds?: number | null | undefined;
33
+ cleaningFee?: number | null | undefined;
34
+ checkInTime?: string | null | undefined;
35
+ checkOutTime?: string | null | undefined;
36
+ channexId?: string | null | undefined;
37
+ airbnbId?: string | null | undefined;
38
+ channexRoomTypeId?: string | null | undefined;
39
+ }, {
40
+ id: number;
41
+ title: string;
42
+ createdAt: Date;
43
+ updatedAt: Date;
44
+ userId: string;
45
+ currency?: string | null | undefined;
46
+ basePrice?: number | null | undefined;
47
+ propertyType?: string | null | undefined;
48
+ bedrooms?: number | null | undefined;
49
+ bathrooms?: number | null | undefined;
50
+ capacity?: number | null | undefined;
51
+ beds?: number | null | undefined;
52
+ cleaningFee?: number | null | undefined;
53
+ checkInTime?: string | null | undefined;
54
+ checkOutTime?: string | null | undefined;
55
+ channexId?: string | null | undefined;
56
+ airbnbId?: string | null | undefined;
57
+ channexRoomTypeId?: string | null | undefined;
58
+ }>;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.propertySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.propertySchema = (0, zod_1.object)({
6
+ id: (0, zod_1.number)().int(),
7
+ title: (0, zod_1.string)(),
8
+ createdAt: (0, zod_1.date)(),
9
+ updatedAt: (0, zod_1.date)(),
10
+ userId: (0, zod_1.string)(),
11
+ propertyType: (0, zod_1.string)().nullish(),
12
+ bedrooms: (0, zod_1.number)().int().nullish(),
13
+ bathrooms: (0, zod_1.number)().int().nullish(),
14
+ capacity: (0, zod_1.number)().int().nullish(),
15
+ beds: (0, zod_1.number)().int().nullish(),
16
+ cleaningFee: (0, zod_1.number)().nullish(),
17
+ basePrice: (0, zod_1.number)().nullish(),
18
+ currency: (0, zod_1.string)().nullish(),
19
+ checkInTime: (0, zod_1.string)().nullish(),
20
+ checkOutTime: (0, zod_1.string)().nullish(),
21
+ channexId: (0, zod_1.string)().nullish(),
22
+ airbnbId: (0, zod_1.string)().nullish(),
23
+ channexRoomTypeId: (0, zod_1.string)().nullish(),
24
+ });
@@ -0,0 +1,34 @@
1
+ export declare const ratePlanSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodNumber;
3
+ name: import("zod").ZodString;
4
+ propertyId: import("zod").ZodNumber;
5
+ occupancy: import("zod").ZodNumber;
6
+ rate: import("zod").ZodNumber;
7
+ currency: import("zod").ZodString;
8
+ channexPropertyId: import("zod").ZodString;
9
+ channexRatePlanId: import("zod").ZodString;
10
+ createdAt: import("zod").ZodDate;
11
+ updatedAt: import("zod").ZodDate;
12
+ }, "strip", import("zod").ZodTypeAny, {
13
+ currency: string;
14
+ name: string;
15
+ id: number;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ propertyId: number;
19
+ occupancy: number;
20
+ rate: number;
21
+ channexPropertyId: string;
22
+ channexRatePlanId: string;
23
+ }, {
24
+ currency: string;
25
+ name: string;
26
+ id: number;
27
+ createdAt: Date;
28
+ updatedAt: Date;
29
+ propertyId: number;
30
+ occupancy: number;
31
+ rate: number;
32
+ channexPropertyId: string;
33
+ channexRatePlanId: string;
34
+ }>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ratePlanSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.ratePlanSchema = (0, zod_1.object)({
6
+ id: (0, zod_1.number)().int(),
7
+ name: (0, zod_1.string)(),
8
+ propertyId: (0, zod_1.number)().int(),
9
+ occupancy: (0, zod_1.number)(),
10
+ rate: (0, zod_1.number)(),
11
+ currency: (0, zod_1.string)(),
12
+ channexPropertyId: (0, zod_1.string)(),
13
+ channexRatePlanId: (0, zod_1.string)(),
14
+ createdAt: (0, zod_1.date)(),
15
+ updatedAt: (0, zod_1.date)(),
16
+ });
@@ -0,0 +1,16 @@
1
+ export declare const reservationSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodNumber;
3
+ propertyId: import("zod").ZodNumber;
4
+ createdAt: import("zod").ZodDate;
5
+ updatedAt: import("zod").ZodDate;
6
+ }, "strip", import("zod").ZodTypeAny, {
7
+ id: number;
8
+ createdAt: Date;
9
+ updatedAt: Date;
10
+ propertyId: number;
11
+ }, {
12
+ id: number;
13
+ createdAt: Date;
14
+ updatedAt: Date;
15
+ propertyId: number;
16
+ }>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reservationSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.reservationSchema = (0, zod_1.object)({
6
+ id: (0, zod_1.number)().int(),
7
+ propertyId: (0, zod_1.number)().int(),
8
+ createdAt: (0, zod_1.date)(),
9
+ updatedAt: (0, zod_1.date)(),
10
+ });
@@ -0,0 +1,20 @@
1
+ import { ServiceType } from "../enums";
2
+ export declare const serviceSchema: import("zod").ZodObject<{
3
+ id: import("zod").ZodNumber;
4
+ name: import("zod").ZodString;
5
+ type: import("zod").ZodNativeEnum<typeof ServiceType>;
6
+ price: import("zod").ZodNumber;
7
+ integrationName: import("zod").ZodString;
8
+ }, "strip", import("zod").ZodTypeAny, {
9
+ name: string;
10
+ type: ServiceType;
11
+ id: number;
12
+ price: number;
13
+ integrationName: string;
14
+ }, {
15
+ name: string;
16
+ type: ServiceType;
17
+ id: number;
18
+ price: number;
19
+ integrationName: string;
20
+ }>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.serviceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const enums_1 = require("../enums");
6
+ exports.serviceSchema = (0, zod_1.object)({
7
+ id: (0, zod_1.number)().int(),
8
+ name: (0, zod_1.string)(),
9
+ type: (0, zod_1.nativeEnum)(enums_1.ServiceType),
10
+ price: (0, zod_1.number)(),
11
+ integrationName: (0, zod_1.string)(),
12
+ });
@@ -0,0 +1,19 @@
1
+ export declare const servicePropertySchema: import("zod").ZodObject<{
2
+ propertyId: import("zod").ZodNumber;
3
+ serviceId: import("zod").ZodNumber;
4
+ isActive: import("zod").ZodBoolean;
5
+ createdAt: import("zod").ZodDate;
6
+ updatedAt: import("zod").ZodDate;
7
+ }, "strip", import("zod").ZodTypeAny, {
8
+ createdAt: Date;
9
+ updatedAt: Date;
10
+ serviceId: number;
11
+ propertyId: number;
12
+ isActive: boolean;
13
+ }, {
14
+ createdAt: Date;
15
+ updatedAt: Date;
16
+ serviceId: number;
17
+ propertyId: number;
18
+ isActive: boolean;
19
+ }>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.servicePropertySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.servicePropertySchema = (0, zod_1.object)({
6
+ propertyId: (0, zod_1.number)().int(),
7
+ serviceId: (0, zod_1.number)().int(),
8
+ isActive: (0, zod_1.boolean)(),
9
+ createdAt: (0, zod_1.date)(),
10
+ updatedAt: (0, zod_1.date)(),
11
+ });
@@ -0,0 +1,19 @@
1
+ export declare const tierSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodNumber;
3
+ name: import("zod").ZodString;
4
+ basePrice: import("zod").ZodNumber;
5
+ createdAt: import("zod").ZodDate;
6
+ updatedAt: import("zod").ZodDate;
7
+ }, "strip", import("zod").ZodTypeAny, {
8
+ name: string;
9
+ id: number;
10
+ createdAt: Date;
11
+ updatedAt: Date;
12
+ basePrice: number;
13
+ }, {
14
+ name: string;
15
+ id: number;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ basePrice: number;
19
+ }>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tierSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.tierSchema = (0, zod_1.object)({
6
+ id: (0, zod_1.number)().int(),
7
+ name: (0, zod_1.string)(),
8
+ basePrice: (0, zod_1.number)(),
9
+ createdAt: (0, zod_1.date)(),
10
+ updatedAt: (0, zod_1.date)(),
11
+ });
@@ -0,0 +1,19 @@
1
+ export declare const tierPricingSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodNumber;
3
+ tierId: import("zod").ZodNumber;
4
+ minProperties: import("zod").ZodNumber;
5
+ maxProperties: import("zod").ZodNumber;
6
+ price: import("zod").ZodNumber;
7
+ }, "strip", import("zod").ZodTypeAny, {
8
+ id: number;
9
+ tierId: number;
10
+ minProperties: number;
11
+ maxProperties: number;
12
+ price: number;
13
+ }, {
14
+ id: number;
15
+ tierId: number;
16
+ minProperties: number;
17
+ maxProperties: number;
18
+ price: number;
19
+ }>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tierPricingSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.tierPricingSchema = (0, zod_1.object)({
6
+ id: (0, zod_1.number)().int(),
7
+ tierId: (0, zod_1.number)().int(),
8
+ minProperties: (0, zod_1.number)(),
9
+ maxProperties: (0, zod_1.number)(),
10
+ price: (0, zod_1.number)(),
11
+ });
@@ -0,0 +1,10 @@
1
+ export declare const tierServiceSchema: import("zod").ZodObject<{
2
+ tierId: import("zod").ZodNumber;
3
+ serviceId: import("zod").ZodNumber;
4
+ }, "strip", import("zod").ZodTypeAny, {
5
+ tierId: number;
6
+ serviceId: number;
7
+ }, {
8
+ tierId: number;
9
+ serviceId: number;
10
+ }>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tierServiceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.tierServiceSchema = (0, zod_1.object)({
6
+ tierId: (0, zod_1.number)().int(),
7
+ serviceId: (0, zod_1.number)().int(),
8
+ });
@@ -4,16 +4,19 @@ export declare const userSchema: import("zod").ZodObject<{
4
4
  email: import("zod").ZodString;
5
5
  createdAt: import("zod").ZodDate;
6
6
  updatedAt: import("zod").ZodDate;
7
+ tierId: import("zod").ZodNumber;
7
8
  }, "strip", import("zod").ZodTypeAny, {
8
- id: string;
9
9
  name: string;
10
+ id: string;
10
11
  email: string;
11
12
  createdAt: Date;
12
13
  updatedAt: Date;
14
+ tierId: number;
13
15
  }, {
14
- id: string;
15
16
  name: string;
17
+ id: string;
16
18
  email: string;
17
19
  createdAt: Date;
18
20
  updatedAt: Date;
21
+ tierId: number;
19
22
  }>;
@@ -8,4 +8,5 @@ exports.userSchema = (0, zod_1.object)({
8
8
  email: (0, zod_1.string)().email(),
9
9
  createdAt: (0, zod_1.date)(),
10
10
  updatedAt: (0, zod_1.date)(),
11
+ tierId: (0, zod_1.number)(),
11
12
  });
@@ -0,0 +1,6 @@
1
+ import { infer } from "zod";
2
+ import { addressSchema } from "../../schemas/address";
3
+ import { Property } from "../property";
4
+ export interface Address extends infer<typeof addressSchema> {
5
+ property?: Property;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { infer } from "zod";
2
+ import { Property } from "../property";
3
+ import { amenitySchema } from "../../schemas/amenity";
4
+ export interface Amenity extends infer<typeof amenitySchema> {
5
+ properties?: Property[];
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { infer } from "zod";
2
+ import { Property } from "../property";
3
+ import { imageSchema } from "../../schemas/image";
4
+ export interface Image extends infer<typeof imageSchema> {
5
+ property?: Property;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,12 @@
1
1
  export * from "./user";
2
+ export * from "./tier";
3
+ export * from "./property";
4
+ export * from "./rate-plan";
5
+ export * from "./tier-pricing";
6
+ export * from "./service";
7
+ export * from "./reservation";
8
+ export * from "./service-property";
9
+ export * from "./tier-service";
10
+ export * from "./image";
11
+ export * from "./amenity";
12
+ export * from "./address";
@@ -15,3 +15,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./user"), exports);
18
+ __exportStar(require("./tier"), exports);
19
+ __exportStar(require("./property"), exports);
20
+ __exportStar(require("./rate-plan"), exports);
21
+ __exportStar(require("./tier-pricing"), exports);
22
+ __exportStar(require("./service"), exports);
23
+ __exportStar(require("./reservation"), exports);
24
+ __exportStar(require("./service-property"), exports);
25
+ __exportStar(require("./tier-service"), exports);
26
+ __exportStar(require("./image"), exports);
27
+ __exportStar(require("./amenity"), exports);
28
+ __exportStar(require("./address"), exports);
@@ -0,0 +1,18 @@
1
+ import { infer } from "zod";
2
+ import { propertySchema } from "../../schemas/property";
3
+ import { User } from "../user";
4
+ import { RatePlan } from "../rate-plan";
5
+ import { Reservation } from "../reservation";
6
+ import { ServiceProperty } from "../service-property";
7
+ import { Image } from "../image";
8
+ import { Amenity } from "../amenity";
9
+ import { Address } from "../address";
10
+ export interface Property extends infer<typeof propertySchema> {
11
+ user?: User;
12
+ ratePlans?: RatePlan[];
13
+ reservations?: Reservation[];
14
+ serviceProperties?: ServiceProperty[];
15
+ images?: Image[];
16
+ amenities?: Amenity[];
17
+ address?: Address;
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { infer } from "zod";
2
+ import { ratePlanSchema } from "../../schemas/rate-plan";
3
+ import { Property } from "../property";
4
+ export interface RatePlan extends infer<typeof ratePlanSchema> {
5
+ property?: Property;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { infer } from "zod";
2
+ import { reservationSchema } from "../../schemas/reservation";
3
+ import { Property } from "../property";
4
+ export interface Reservation extends infer<typeof reservationSchema> {
5
+ property?: Property;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { infer } from "zod";
2
+ import { serviceSchema } from "../../schemas/service";
3
+ import { TierService } from "../tier-service";
4
+ import { ServiceProperty } from "../service-property";
5
+ export interface Service extends infer<typeof serviceSchema> {
6
+ tierServices?: TierService[];
7
+ serviceProperties?: ServiceProperty[];
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { infer } from "zod";
2
+ import { servicePropertySchema } from "../../schemas/service-property";
3
+ import { Property } from "../property";
4
+ import { Service } from "../service";
5
+ export interface ServiceProperty extends infer<typeof servicePropertySchema> {
6
+ property?: Property;
7
+ service?: Service;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { infer } from "zod";
2
+ import { tierSchema } from "../../schemas/tier";
3
+ import { User } from "../user";
4
+ import { TierPricing } from "../tier-pricing";
5
+ import { TierService } from "../tier-service";
6
+ export interface Tier extends infer<typeof tierSchema> {
7
+ users?: User[];
8
+ tierPricings?: TierPricing[];
9
+ tierServices?: TierService[];
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { infer } from "zod";
2
+ import { tierPricingSchema } from "../../schemas/tier-pricing";
3
+ import { Tier } from "../tier";
4
+ export interface TierPricing extends infer<typeof tierPricingSchema> {
5
+ tier?: Tier;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { infer } from "zod";
2
+ import { tierServiceSchema } from "../../schemas/tier-service";
3
+ import { Tier } from "../tier";
4
+ import { Service } from "../service";
5
+ export interface TierService extends infer<typeof tierServiceSchema> {
6
+ tier?: Tier;
7
+ service?: Service;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,8 @@
1
1
  import { infer } from "zod";
2
2
  import { userSchema } from "../../schemas/user";
3
+ import { Tier } from "../tier";
4
+ import { Property } from "../property";
3
5
  export interface User extends infer<typeof userSchema> {
6
+ tier?: Tier;
7
+ properties?: Property[];
4
8
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.0.3",
4
+ "version": "1.0.5",
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",
@@ -13,7 +13,8 @@
13
13
  ],
14
14
  "scripts": {
15
15
  "test": "echo \"Error: no test specified\" && exit 1",
16
- "build": "tsc"
16
+ "build": "tsc",
17
+ "prepublishOnly": "tsc"
17
18
  },
18
19
  "keywords": [],
19
20
  "author": "MVP Masters",