hububb-saas-shared 1.1.76 → 1.1.77

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,3 +1,4 @@
1
+ export declare const accessTypeSchema: import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodLiteral<"SELF_ACCESS">, import("zod").ZodLiteral<"MEET_AND_GREET">]>, import("zod").ZodLiteral<"RECEPTION_CONCIERGE">]>, import("zod").ZodLiteral<"KEY_PICKUP_OTHER_LOCATION">]>, import("zod").ZodLiteral<"ACCESS_AFTER_BOOKING">]>;
1
2
  export declare const propertyMetadataSchema: import("zod").ZodObject<{
2
3
  id: import("zod").ZodNumber;
3
4
  propertyId: import("zod").ZodNumber;
@@ -15,6 +16,7 @@ export declare const propertyMetadataSchema: import("zod").ZodObject<{
15
16
  communalCleanSchedule: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
16
17
  parkingSpace: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
17
18
  accessArrangements: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
19
+ accessType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodLiteral<"SELF_ACCESS">, import("zod").ZodLiteral<"MEET_AND_GREET">]>, import("zod").ZodLiteral<"RECEPTION_CONCIERGE">]>, import("zod").ZodLiteral<"KEY_PICKUP_OTHER_LOCATION">]>, import("zod").ZodLiteral<"ACCESS_AFTER_BOOKING">]>>>;
18
20
  createdAt: import("zod").ZodDate;
19
21
  updatedAt: import("zod").ZodDate;
20
22
  stCancellationPolicy: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodLiteral<"FLEXIBLE">, import("zod").ZodLiteral<"MODERATE">]>, import("zod").ZodLiteral<"STRICT">]>, import("zod").ZodLiteral<"BETTER_STRICT_WITH_GRACE_PERIOD">]>, import("zod").ZodLiteral<"STRICT_14_WITH_GRACE_PERIOD">]>, import("zod").ZodLiteral<"SUPER_STRICT_30">]>, import("zod").ZodLiteral<"SUPER_STRICT_60">]>, import("zod").ZodLiteral<"FIRM_14">]>>;
@@ -40,6 +42,7 @@ export declare const propertyMetadataSchema: import("zod").ZodObject<{
40
42
  accessArrangements?: string | null | undefined;
41
43
  stCancellationPolicy?: "FLEXIBLE" | "MODERATE" | "STRICT" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
42
44
  ltCancellationPolicy?: "CANCEL_LONG_TERM_FAIR" | "CANCEL_LONG_TERM_WITH_GRACE_PERIOD" | undefined;
45
+ accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | null | undefined;
43
46
  }, {
44
47
  id: number;
45
48
  createdAt: Date;
@@ -61,4 +64,5 @@ export declare const propertyMetadataSchema: import("zod").ZodObject<{
61
64
  accessArrangements?: string | null | undefined;
62
65
  stCancellationPolicy?: "FLEXIBLE" | "MODERATE" | "STRICT" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
63
66
  ltCancellationPolicy?: "CANCEL_LONG_TERM_FAIR" | "CANCEL_LONG_TERM_WITH_GRACE_PERIOD" | undefined;
67
+ accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | null | undefined;
64
68
  }>;
@@ -1,7 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.propertyMetadataSchema = void 0;
3
+ exports.propertyMetadataSchema = exports.accessTypeSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ exports.accessTypeSchema = (0, zod_1.literal)("SELF_ACCESS")
6
+ .or((0, zod_1.literal)("MEET_AND_GREET"))
7
+ .or((0, zod_1.literal)("RECEPTION_CONCIERGE"))
8
+ .or((0, zod_1.literal)("KEY_PICKUP_OTHER_LOCATION"))
9
+ .or((0, zod_1.literal)("ACCESS_AFTER_BOOKING"));
5
10
  exports.propertyMetadataSchema = (0, zod_1.object)({
6
11
  id: (0, zod_1.number)().int(),
7
12
  propertyId: (0, zod_1.number)().int(),
@@ -19,6 +24,7 @@ exports.propertyMetadataSchema = (0, zod_1.object)({
19
24
  communalCleanSchedule: (0, zod_1.string)().nullish(),
20
25
  parkingSpace: (0, zod_1.string)().nullish(),
21
26
  accessArrangements: (0, zod_1.string)().nullish(),
27
+ accessType: exports.accessTypeSchema.nullish(),
22
28
  createdAt: (0, zod_1.date)(),
23
29
  updatedAt: (0, zod_1.date)(),
24
30
  stCancellationPolicy: (0, zod_1.literal)("FLEXIBLE")
@@ -1,6 +1,7 @@
1
- import { infer } from "zod";
1
+ import { infer, z } from "zod";
2
2
  import { Property } from "../property";
3
- import { propertyMetadataSchema } from "../../schemas/property-metadata";
3
+ import { accessTypeSchema, propertyMetadataSchema } from "../../schemas/property-metadata";
4
4
  export interface PropertyMetadata extends infer<typeof propertyMetadataSchema> {
5
5
  property?: Property;
6
6
  }
7
+ export type PropertyAccessType = z.infer<typeof accessTypeSchema>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.1.76",
4
+ "version": "1.1.77",
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",