hububb-saas-shared 1.2.17 → 1.2.18

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.
@@ -81,3 +81,5 @@ export * from './reporting-handbook';
81
81
  export * from './supplies-and-notes-handbook';
82
82
  export * from "./ai-agent";
83
83
  export * from "./task-photography-space";
84
+ export * from "./invited-service-provider";
85
+ export * from "./invited-service-provider-preferences";
@@ -97,3 +97,5 @@ __exportStar(require("./reporting-handbook"), exports);
97
97
  __exportStar(require("./supplies-and-notes-handbook"), exports);
98
98
  __exportStar(require("./ai-agent"), exports);
99
99
  __exportStar(require("./task-photography-space"), exports);
100
+ __exportStar(require("./invited-service-provider"), exports);
101
+ __exportStar(require("./invited-service-provider-preferences"), exports);
@@ -0,0 +1,35 @@
1
+ import { InvitedServiceProviderStatus } from "../../types/enums";
2
+ export declare const invitedServiceProviderSchema: import("zod").ZodObject<{
3
+ id: import("zod").ZodNumber;
4
+ phone: import("zod").ZodString;
5
+ phoneCountryCode: import("zod").ZodString;
6
+ phoneLocalNumber: import("zod").ZodString;
7
+ createdAt: import("zod").ZodDate;
8
+ updatedAt: import("zod").ZodDate;
9
+ invitedBy: import("zod").ZodString;
10
+ invitedAt: import("zod").ZodDate;
11
+ registeredAt: import("zod").ZodOptional<import("zod").ZodDate>;
12
+ status: import("zod").ZodNativeEnum<typeof InvitedServiceProviderStatus>;
13
+ }, "strip", import("zod").ZodTypeAny, {
14
+ id: number;
15
+ status: InvitedServiceProviderStatus;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ phone: string;
19
+ phoneCountryCode: string;
20
+ phoneLocalNumber: string;
21
+ invitedBy: string;
22
+ invitedAt: Date;
23
+ registeredAt?: Date | undefined;
24
+ }, {
25
+ id: number;
26
+ status: InvitedServiceProviderStatus;
27
+ createdAt: Date;
28
+ updatedAt: Date;
29
+ phone: string;
30
+ phoneCountryCode: string;
31
+ phoneLocalNumber: string;
32
+ invitedBy: string;
33
+ invitedAt: Date;
34
+ registeredAt?: Date | undefined;
35
+ }>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.invitedServiceProviderSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const enums_1 = require("../../types/enums");
6
+ exports.invitedServiceProviderSchema = (0, zod_1.object)({
7
+ id: (0, zod_1.number)().int(),
8
+ phone: (0, zod_1.string)(),
9
+ phoneCountryCode: (0, zod_1.string)(),
10
+ phoneLocalNumber: (0, zod_1.string)(),
11
+ createdAt: (0, zod_1.date)(),
12
+ updatedAt: (0, zod_1.date)(),
13
+ invitedBy: (0, zod_1.string)(),
14
+ invitedAt: (0, zod_1.date)(),
15
+ registeredAt: (0, zod_1.date)().optional(),
16
+ status: (0, zod_1.nativeEnum)(enums_1.InvitedServiceProviderStatus),
17
+ });
@@ -0,0 +1,23 @@
1
+ import { InvitedServiceProviderPreferencesPriority } from "../../types/enums";
2
+ export declare const invitedServiceProviderPreferencesSchema: import("zod").ZodObject<{
3
+ id: import("zod").ZodNumber;
4
+ userId: import("zod").ZodString;
5
+ invitedServiceProviderId: import("zod").ZodNumber;
6
+ priority: import("zod").ZodNativeEnum<typeof InvitedServiceProviderPreferencesPriority>;
7
+ createdAt: import("zod").ZodDate;
8
+ updatedAt: import("zod").ZodDate;
9
+ }, "strip", import("zod").ZodTypeAny, {
10
+ id: number;
11
+ priority: InvitedServiceProviderPreferencesPriority;
12
+ createdAt: Date;
13
+ updatedAt: Date;
14
+ userId: string;
15
+ invitedServiceProviderId: number;
16
+ }, {
17
+ id: number;
18
+ priority: InvitedServiceProviderPreferencesPriority;
19
+ createdAt: Date;
20
+ updatedAt: Date;
21
+ userId: string;
22
+ invitedServiceProviderId: number;
23
+ }>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.invitedServiceProviderPreferencesSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const enums_1 = require("../../types/enums");
6
+ exports.invitedServiceProviderPreferencesSchema = (0, zod_1.object)({
7
+ id: (0, zod_1.number)().int(),
8
+ userId: (0, zod_1.string)(),
9
+ invitedServiceProviderId: (0, zod_1.number)().int(),
10
+ priority: (0, zod_1.nativeEnum)(enums_1.InvitedServiceProviderPreferencesPriority),
11
+ createdAt: (0, zod_1.date)(),
12
+ updatedAt: (0, zod_1.date)(),
13
+ });
@@ -203,7 +203,7 @@ export declare const updatePropertySchema: z.ZodObject<{
203
203
  keyPickupLocationLatitude?: number | null | undefined;
204
204
  keyPickupLocationLongitude?: number | null | undefined;
205
205
  accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | undefined;
206
- stCancellationPolicy?: "FLEXIBLE" | "MODERATE" | "STRICT" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
206
+ stCancellationPolicy?: "STRICT" | "FLEXIBLE" | "MODERATE" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
207
207
  ltCancellationPolicy?: "CANCEL_LONG_TERM_FAIR" | "CANCEL_LONG_TERM_WITH_GRACE_PERIOD" | undefined;
208
208
  }, {
209
209
  createdAt: Date;
@@ -226,7 +226,7 @@ export declare const updatePropertySchema: z.ZodObject<{
226
226
  keyPickupLocationLatitude?: number | null | undefined;
227
227
  keyPickupLocationLongitude?: number | null | undefined;
228
228
  accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | undefined;
229
- stCancellationPolicy?: "FLEXIBLE" | "MODERATE" | "STRICT" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
229
+ stCancellationPolicy?: "STRICT" | "FLEXIBLE" | "MODERATE" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
230
230
  ltCancellationPolicy?: "CANCEL_LONG_TERM_FAIR" | "CANCEL_LONG_TERM_WITH_GRACE_PERIOD" | undefined;
231
231
  }>>;
232
232
  safetyDetails: z.ZodOptional<z.ZodObject<{
@@ -396,7 +396,7 @@ export declare const updatePropertySchema: z.ZodObject<{
396
396
  keyPickupLocationLatitude?: number | null | undefined;
397
397
  keyPickupLocationLongitude?: number | null | undefined;
398
398
  accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | undefined;
399
- stCancellationPolicy?: "FLEXIBLE" | "MODERATE" | "STRICT" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
399
+ stCancellationPolicy?: "STRICT" | "FLEXIBLE" | "MODERATE" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
400
400
  ltCancellationPolicy?: "CANCEL_LONG_TERM_FAIR" | "CANCEL_LONG_TERM_WITH_GRACE_PERIOD" | undefined;
401
401
  } | undefined;
402
402
  price?: {
@@ -496,7 +496,7 @@ export declare const updatePropertySchema: z.ZodObject<{
496
496
  keyPickupLocationLatitude?: number | null | undefined;
497
497
  keyPickupLocationLongitude?: number | null | undefined;
498
498
  accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | undefined;
499
- stCancellationPolicy?: "FLEXIBLE" | "MODERATE" | "STRICT" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
499
+ stCancellationPolicy?: "STRICT" | "FLEXIBLE" | "MODERATE" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
500
500
  ltCancellationPolicy?: "CANCEL_LONG_TERM_FAIR" | "CANCEL_LONG_TERM_WITH_GRACE_PERIOD" | undefined;
501
501
  } | undefined;
502
502
  price?: {
@@ -47,7 +47,7 @@ export declare const propertyMetadataSchema: import("zod").ZodObject<{
47
47
  keyPickupLocationLatitude?: number | null | undefined;
48
48
  keyPickupLocationLongitude?: number | null | undefined;
49
49
  accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | null | undefined;
50
- stCancellationPolicy?: "FLEXIBLE" | "MODERATE" | "STRICT" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
50
+ stCancellationPolicy?: "STRICT" | "FLEXIBLE" | "MODERATE" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
51
51
  ltCancellationPolicy?: "CANCEL_LONG_TERM_FAIR" | "CANCEL_LONG_TERM_WITH_GRACE_PERIOD" | undefined;
52
52
  }, {
53
53
  id: number;
@@ -72,6 +72,6 @@ export declare const propertyMetadataSchema: import("zod").ZodObject<{
72
72
  keyPickupLocationLatitude?: number | null | undefined;
73
73
  keyPickupLocationLongitude?: number | null | undefined;
74
74
  accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | null | undefined;
75
- stCancellationPolicy?: "FLEXIBLE" | "MODERATE" | "STRICT" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
75
+ stCancellationPolicy?: "STRICT" | "FLEXIBLE" | "MODERATE" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
76
76
  ltCancellationPolicy?: "CANCEL_LONG_TERM_FAIR" | "CANCEL_LONG_TERM_WITH_GRACE_PERIOD" | undefined;
77
77
  }>;
@@ -113,6 +113,15 @@ export declare enum PropertyManagerSessionType {
113
113
  DOCUMENT_ANALYSIS = "DOCUMENT_ANALYSIS",
114
114
  PROPERTY_AUDIT = "PROPERTY_AUDIT"
115
115
  }
116
+ export declare enum InvitedServiceProviderStatus {
117
+ PENDING = "PENDING",
118
+ REGISTERED = "REGISTERED"
119
+ }
120
+ export declare enum InvitedServiceProviderPreferencesPriority {
121
+ STRICT = "STRICT",
122
+ FLEXIBLE = "FLEXIBLE",
123
+ INDIFFERENT = "INDIFFERENT"
124
+ }
116
125
  export declare enum HumanReviewPriority {
117
126
  LOW = "LOW",
118
127
  NORMAL = "NORMAL",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HumanReviewStatus = exports.HumanReviewPriority = 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.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";
@@ -139,6 +139,17 @@ var PropertyManagerSessionType;
139
139
  PropertyManagerSessionType["DOCUMENT_ANALYSIS"] = "DOCUMENT_ANALYSIS";
140
140
  PropertyManagerSessionType["PROPERTY_AUDIT"] = "PROPERTY_AUDIT";
141
141
  })(PropertyManagerSessionType || (exports.PropertyManagerSessionType = PropertyManagerSessionType = {}));
142
+ var InvitedServiceProviderStatus;
143
+ (function (InvitedServiceProviderStatus) {
144
+ InvitedServiceProviderStatus["PENDING"] = "PENDING";
145
+ InvitedServiceProviderStatus["REGISTERED"] = "REGISTERED";
146
+ })(InvitedServiceProviderStatus || (exports.InvitedServiceProviderStatus = InvitedServiceProviderStatus = {}));
147
+ var InvitedServiceProviderPreferencesPriority;
148
+ (function (InvitedServiceProviderPreferencesPriority) {
149
+ InvitedServiceProviderPreferencesPriority["STRICT"] = "STRICT";
150
+ InvitedServiceProviderPreferencesPriority["FLEXIBLE"] = "FLEXIBLE";
151
+ InvitedServiceProviderPreferencesPriority["INDIFFERENT"] = "INDIFFERENT";
152
+ })(InvitedServiceProviderPreferencesPriority || (exports.InvitedServiceProviderPreferencesPriority = InvitedServiceProviderPreferencesPriority = {}));
142
153
  var HumanReviewPriority;
143
154
  (function (HumanReviewPriority) {
144
155
  HumanReviewPriority["LOW"] = "LOW";
@@ -82,3 +82,5 @@ export * from './reporting-handbook';
82
82
  export * from './supplies-and-notes-handbook';
83
83
  export * from "./ai-agent";
84
84
  export * from "./task-photography-space";
85
+ export * from "./invited-service-provider";
86
+ export * from "./invited-service-provider-preferences";
@@ -98,3 +98,5 @@ __exportStar(require("./reporting-handbook"), exports);
98
98
  __exportStar(require("./supplies-and-notes-handbook"), exports);
99
99
  __exportStar(require("./ai-agent"), exports);
100
100
  __exportStar(require("./task-photography-space"), exports);
101
+ __exportStar(require("./invited-service-provider"), exports);
102
+ __exportStar(require("./invited-service-provider-preferences"), exports);
@@ -0,0 +1,8 @@
1
+ import { infer } from "zod";
2
+ import { invitedServiceProviderSchema } from "../../schemas/invited-service-provider";
3
+ import { User } from "../user";
4
+ import { InvitedServiceProviderPreferences } from "../invited-service-provider-preferences";
5
+ export interface InvitedServiceProvider extends infer<typeof invitedServiceProviderSchema> {
6
+ invitedByUser?: User;
7
+ invitedServiceProviderPreferences?: InvitedServiceProviderPreferences[];
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 { invitedServiceProviderPreferencesSchema } from "../../schemas/invited-service-provider-preferences";
3
+ import { User } from "../user";
4
+ import { InvitedServiceProvider } from "../invited-service-provider";
5
+ export interface InvitedServiceProviderPreferences extends infer<typeof invitedServiceProviderPreferencesSchema> {
6
+ user?: User;
7
+ invitedServiceProvider?: InvitedServiceProvider;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -17,6 +17,8 @@ import { CustomBundle } from "../custom-bundle";
17
17
  import { BundleCoupon } from "../custom-bundle-coupon";
18
18
  import { PendingPaymentAction } from "../pending-payment-action";
19
19
  import { UserAiAgentSubscription } from "../ai-agent/user-ai-agent-subscription";
20
+ import { InvitedServiceProvider } from "../invited-service-provider";
21
+ import { InvitedServiceProviderPreferences } from "../invited-service-provider-preferences";
20
22
  export interface User extends infer<typeof userSchema> {
21
23
  tier?: Tier;
22
24
  properties?: Property[];
@@ -39,4 +41,6 @@ export interface User extends infer<typeof userSchema> {
39
41
  createdCoupons?: BundleCoupon[];
40
42
  pendingPaymentActions?: PendingPaymentAction[];
41
43
  aiAgentSubscriptions?: UserAiAgentSubscription[];
44
+ invitedServiceProviders?: InvitedServiceProvider[];
45
+ invitedServiceProviderPreferences?: InvitedServiceProviderPreferences[];
42
46
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.2.17",
4
+ "version": "1.2.18",
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",