hububb-saas-shared 1.2.49 → 1.2.50
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/api-key/index.d.ts +81 -0
- package/dist/schemas/api-key/index.js +33 -0
- package/dist/schemas/availability-settings/index.d.ts +2 -2
- package/dist/schemas/channex/booking.d.ts +2 -2
- package/dist/schemas/channex/thread.d.ts +2 -2
- package/dist/schemas/external-sync-request/index.d.ts +32 -0
- package/dist/schemas/external-sync-request/index.js +15 -0
- package/dist/schemas/guest-verification/index.d.ts +56 -0
- package/dist/schemas/guest-verification/index.js +24 -0
- package/dist/schemas/index.d.ts +8 -0
- package/dist/schemas/index.js +8 -0
- package/dist/schemas/invoice/index.d.ts +2 -2
- package/dist/schemas/klevio/index.d.ts +2 -2
- package/dist/schemas/listing-expectation/index.d.ts +17 -0
- package/dist/schemas/listing-expectation/index.js +11 -0
- package/dist/schemas/notification/index.d.ts +73 -0
- package/dist/schemas/notification/index.js +30 -0
- package/dist/schemas/property/index.d.ts +14 -8
- package/dist/schemas/property/index.js +2 -0
- package/dist/schemas/property-connection-request/index.d.ts +2 -2
- package/dist/schemas/property-guide/index.d.ts +32 -0
- package/dist/schemas/property-guide/index.js +20 -0
- package/dist/schemas/property-room/index.d.ts +2 -2
- package/dist/schemas/property-safety-details/index.d.ts +2 -2
- package/dist/schemas/push-token/index.d.ts +35 -0
- package/dist/schemas/push-token/index.js +17 -0
- package/dist/schemas/reservation/index.d.ts +3 -0
- package/dist/schemas/reservation/index.js +1 -0
- package/dist/schemas/reservation-access-log/index.d.ts +53 -0
- package/dist/schemas/reservation-access-log/index.js +22 -0
- package/dist/schemas/reservation-guest-invite/index.d.ts +35 -0
- package/dist/schemas/reservation-guest-invite/index.js +17 -0
- package/dist/schemas/seam/index.d.ts +4 -4
- package/dist/schemas/service-availability/index.d.ts +25 -0
- package/dist/schemas/service-availability/index.js +13 -0
- package/dist/schemas/service-provider/index.d.ts +2 -2
- package/dist/schemas/service-worker-payout/index.d.ts +88 -0
- package/dist/schemas/service-worker-payout/index.js +36 -0
- package/dist/schemas/task/index.d.ts +34 -4
- package/dist/schemas/task/index.js +11 -1
- package/dist/schemas/task-checklist-item/index.d.ts +2 -2
- package/dist/schemas/task-checklist-space/index.d.ts +2 -2
- package/dist/schemas/task-expense-fact/index.d.ts +37 -0
- package/dist/schemas/task-expense-fact/index.js +18 -0
- package/dist/schemas/task-photography-space/index.d.ts +2 -2
- package/dist/schemas/task-thread/index.d.ts +6 -0
- package/dist/schemas/thread/index.d.ts +78 -6
- package/dist/schemas/user/index.d.ts +9 -0
- package/dist/schemas/user/index.js +3 -0
- package/dist/schemas/webhook/index.d.ts +104 -0
- package/dist/schemas/webhook/index.js +41 -0
- package/dist/types/api-key/index.d.ts +10 -0
- package/dist/types/booking-settings/index.d.ts +2 -0
- package/dist/types/enums/index.d.ts +228 -0
- package/dist/types/enums/index.js +263 -1
- package/dist/types/external-sync-request/index.d.ts +4 -0
- package/dist/types/external-sync-request/index.js +2 -0
- package/dist/types/guest-verification/index.d.ts +3 -18
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.js +7 -0
- package/dist/types/listing-expectation/index.d.ts +6 -0
- package/dist/types/listing-expectation/index.js +2 -0
- package/dist/types/notification/index.d.ts +15 -0
- package/dist/types/notification/index.js +2 -0
- package/dist/types/property/index.d.ts +4 -0
- package/dist/types/property-guide/index.d.ts +6 -0
- package/dist/types/property-guide/index.js +2 -0
- package/dist/types/push-token/index.d.ts +6 -0
- package/dist/types/push-token/index.js +2 -0
- package/dist/types/reservation/index.d.ts +8 -0
- package/dist/types/reservation-access-log/index.d.ts +64 -0
- package/dist/types/reservation-access-log/index.js +2 -0
- package/dist/types/reservation-guest-invite/index.d.ts +9 -0
- package/dist/types/reservation-guest-invite/index.js +2 -0
- package/dist/types/service-availability/index.d.ts +6 -0
- package/dist/types/service-availability/index.js +2 -0
- package/dist/types/service-worker-payout/index.d.ts +17 -0
- package/dist/types/service-worker-payout/index.js +2 -0
- package/dist/types/task/index.d.ts +7 -0
- package/dist/types/task-expense-fact/index.d.ts +12 -0
- package/dist/types/task-expense-fact/index.js +2 -0
- package/dist/types/user/index.d.ts +10 -0
- package/dist/types/webhook/index.d.ts +15 -0
- package/dist/types/webhook/index.js +2 -0
- package/package.json +1 -1
- package/dist/schemas/enums/index.d.ts +0 -45
- package/dist/schemas/enums/index.js +0 -56
- package/dist/schemas/service-property/index.d.ts +0 -19
- package/dist/schemas/service-property/index.js +0 -11
- package/dist/types/service-property/index.d.ts +0 -8
- /package/dist/types/{service-property → api-key}/index.js +0 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { guestVerificationSchema } from "../../schemas/guest-verification";
|
|
1
3
|
import { User } from "../user";
|
|
2
4
|
export declare enum GuestVerificationStatus {
|
|
3
5
|
IN_PROGRESS = "IN_PROGRESS",
|
|
@@ -11,23 +13,6 @@ export declare enum GuestDocumentType {
|
|
|
11
13
|
DRIVERS_LICENSE = "DRIVERS_LICENSE"
|
|
12
14
|
}
|
|
13
15
|
export type GuestKycStep = "verify-identity" | "country" | "document" | "name" | "document-verification" | "selfie" | "review-pending";
|
|
14
|
-
export interface GuestVerification {
|
|
15
|
-
id: string;
|
|
16
|
-
userId: string;
|
|
16
|
+
export interface GuestVerification extends infer<typeof guestVerificationSchema> {
|
|
17
17
|
user?: User;
|
|
18
|
-
status: GuestVerificationStatus;
|
|
19
|
-
currentStep: GuestKycStep;
|
|
20
|
-
country?: string | null;
|
|
21
|
-
documentType?: GuestDocumentType | null;
|
|
22
|
-
firstName?: string | null;
|
|
23
|
-
middleName?: string | null;
|
|
24
|
-
lastName?: string | null;
|
|
25
|
-
documentFrontUrl?: string | null;
|
|
26
|
-
documentBackUrl?: string | null;
|
|
27
|
-
selfieUrl?: string | null;
|
|
28
|
-
submittedAt?: Date | null;
|
|
29
|
-
reviewedAt?: Date | null;
|
|
30
|
-
rejectionReason?: string | null;
|
|
31
|
-
createdAt: Date;
|
|
32
|
-
updatedAt: Date;
|
|
33
18
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -111,3 +111,10 @@ export * from "./booking-settings";
|
|
|
111
111
|
export * from "./availability-settings";
|
|
112
112
|
export * from "./seasonal-min-nights";
|
|
113
113
|
export * from "./guest-verification";
|
|
114
|
+
export * from "./listing-expectation";
|
|
115
|
+
export * from "./notification";
|
|
116
|
+
export * from "./push-token";
|
|
117
|
+
export * from "./reservation-guest-invite";
|
|
118
|
+
export * from "./task-expense-fact";
|
|
119
|
+
export * from "./reservation-access-log";
|
|
120
|
+
export * from "./property-guide";
|
package/dist/types/index.js
CHANGED
|
@@ -127,3 +127,10 @@ __exportStar(require("./booking-settings"), exports);
|
|
|
127
127
|
__exportStar(require("./availability-settings"), exports);
|
|
128
128
|
__exportStar(require("./seasonal-min-nights"), exports);
|
|
129
129
|
__exportStar(require("./guest-verification"), exports);
|
|
130
|
+
__exportStar(require("./listing-expectation"), exports);
|
|
131
|
+
__exportStar(require("./notification"), exports);
|
|
132
|
+
__exportStar(require("./push-token"), exports);
|
|
133
|
+
__exportStar(require("./reservation-guest-invite"), exports);
|
|
134
|
+
__exportStar(require("./task-expense-fact"), exports);
|
|
135
|
+
__exportStar(require("./reservation-access-log"), exports);
|
|
136
|
+
__exportStar(require("./property-guide"), exports);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { listingExpectationSchema } from "../../schemas/listing-expectation";
|
|
3
|
+
import { BookingSettings } from "../booking-settings";
|
|
4
|
+
export interface ListingExpectation extends infer<typeof listingExpectationSchema> {
|
|
5
|
+
bookingSettings?: BookingSettings;
|
|
6
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { notificationPreferenceSchema, notificationSchema } from "../../schemas/notification";
|
|
3
|
+
import { User } from "../user";
|
|
4
|
+
import { Task } from "../task";
|
|
5
|
+
import { Property } from "../property";
|
|
6
|
+
import { Room } from "../room";
|
|
7
|
+
export interface Notification extends infer<typeof notificationSchema> {
|
|
8
|
+
user?: User;
|
|
9
|
+
task?: Task | null;
|
|
10
|
+
property?: Property | null;
|
|
11
|
+
room?: Room | null;
|
|
12
|
+
}
|
|
13
|
+
export interface NotificationPreference extends infer<typeof notificationPreferenceSchema> {
|
|
14
|
+
user?: User;
|
|
15
|
+
}
|
|
@@ -37,6 +37,8 @@ import { CleaningChecklist } from "../cleaning-checklist";
|
|
|
37
37
|
import { SuppliesAndNotesHandbook } from "../supplies-and-notes-handbook";
|
|
38
38
|
import { AvailabilitySettings } from "../availability-settings";
|
|
39
39
|
import { BookingSettings } from "../booking-settings";
|
|
40
|
+
import { Notification } from "../notification";
|
|
41
|
+
import { TaskExpenseFact } from "../task-expense-fact";
|
|
40
42
|
export interface Property extends infer<typeof propertySchema> {
|
|
41
43
|
user?: User;
|
|
42
44
|
rooms?: Room[];
|
|
@@ -80,6 +82,8 @@ export interface Property extends infer<typeof propertySchema> {
|
|
|
80
82
|
suppliesAndNotesHandbook?: SuppliesAndNotesHandbook;
|
|
81
83
|
availabilitySettings?: AvailabilitySettings;
|
|
82
84
|
bookingSettings?: BookingSettings;
|
|
85
|
+
notifications?: Notification[];
|
|
86
|
+
taskExpenseFacts?: TaskExpenseFact[];
|
|
83
87
|
}
|
|
84
88
|
export interface UpdatePropertySchema extends infer<typeof updatePropertySchema> {
|
|
85
89
|
}
|
|
@@ -6,9 +6,14 @@ import { Room } from "../room";
|
|
|
6
6
|
import { Task } from "../task";
|
|
7
7
|
import { Payout } from "../payout";
|
|
8
8
|
import { ReservationOriginalUnit } from "../reservation-original-unit";
|
|
9
|
+
import { User } from "../user";
|
|
10
|
+
import { ReservationGuestInvite } from "../reservation-guest-invite";
|
|
11
|
+
import { TaskExpenseFact } from "../task-expense-fact";
|
|
12
|
+
import { ReservationAccessLog } from "../reservation-access-log";
|
|
9
13
|
export interface Reservation extends infer<typeof ReservationSchema> {
|
|
10
14
|
property?: Property;
|
|
11
15
|
customer?: ReservationCustomer;
|
|
16
|
+
user?: User | null;
|
|
12
17
|
reservationServices?: ReservationService[];
|
|
13
18
|
reservationRooms?: ReservationRoom[];
|
|
14
19
|
reservationUnitAssignments?: ReservationUnitAssignment[];
|
|
@@ -17,6 +22,9 @@ export interface Reservation extends infer<typeof ReservationSchema> {
|
|
|
17
22
|
finance?: ReservationFinance;
|
|
18
23
|
originalUnit?: ReservationOriginalUnit;
|
|
19
24
|
reservationNightFacts?: import("../reservation-night-fact").ReservationNightFact[];
|
|
25
|
+
guestInvites?: ReservationGuestInvite[];
|
|
26
|
+
taskExpenseFacts?: TaskExpenseFact[];
|
|
27
|
+
reservationAccessLogs?: ReservationAccessLog[];
|
|
20
28
|
}
|
|
21
29
|
export interface ReservationFinance extends infer<typeof ReservationFinanceSchema> {
|
|
22
30
|
reservation?: Reservation;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { reservationAccessLogSchema } from "../../schemas/reservation-access-log";
|
|
3
|
+
import { Reservation } from "../reservation";
|
|
4
|
+
import { Property } from "../property";
|
|
5
|
+
import { Room } from "../room";
|
|
6
|
+
import { SeamDevice, SeamAccessCode } from "../seam";
|
|
7
|
+
import { KlevioLock, KlevioKey } from "../klevio";
|
|
8
|
+
/** Raw DB row shape (Prisma `ReservationAccessLog`). */
|
|
9
|
+
export interface ReservationAccessLog extends infer<typeof reservationAccessLogSchema> {
|
|
10
|
+
reservation?: Reservation;
|
|
11
|
+
property?: Property | null;
|
|
12
|
+
room?: Room | null;
|
|
13
|
+
device?: SeamDevice | null;
|
|
14
|
+
accessCode?: SeamAccessCode | null;
|
|
15
|
+
klevioLock?: KlevioLock | null;
|
|
16
|
+
klevioKey?: KlevioKey | null;
|
|
17
|
+
}
|
|
18
|
+
/** Transformed entry returned by `GET /seam/reservations/:id/access-logs`. */
|
|
19
|
+
export interface ReservationAccessLogEntry {
|
|
20
|
+
id: number;
|
|
21
|
+
type: string;
|
|
22
|
+
occurredAt: Date | string;
|
|
23
|
+
device?: {
|
|
24
|
+
id: string;
|
|
25
|
+
deviceName: string;
|
|
26
|
+
deviceType: string;
|
|
27
|
+
imageUrl?: string | null;
|
|
28
|
+
location?: string | null;
|
|
29
|
+
manufacturer?: string | null;
|
|
30
|
+
} | null;
|
|
31
|
+
accessCode?: {
|
|
32
|
+
id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
code?: string | null;
|
|
35
|
+
status: string;
|
|
36
|
+
} | null;
|
|
37
|
+
user?: {
|
|
38
|
+
name?: string;
|
|
39
|
+
email?: string | null;
|
|
40
|
+
role?: string;
|
|
41
|
+
avatar?: string;
|
|
42
|
+
} | null;
|
|
43
|
+
rawData?: unknown;
|
|
44
|
+
}
|
|
45
|
+
/** Paginated access-log timeline for a reservation. */
|
|
46
|
+
export interface ReservationAccessLogsResponse {
|
|
47
|
+
reservation: {
|
|
48
|
+
id: number;
|
|
49
|
+
checkIn: Date | string;
|
|
50
|
+
checkOut: Date | string;
|
|
51
|
+
user?: {
|
|
52
|
+
id: string;
|
|
53
|
+
name?: string | null;
|
|
54
|
+
email?: string | null;
|
|
55
|
+
} | null;
|
|
56
|
+
rooms: Array<{
|
|
57
|
+
id: number;
|
|
58
|
+
name: string;
|
|
59
|
+
}>;
|
|
60
|
+
};
|
|
61
|
+
logs: ReservationAccessLogEntry[];
|
|
62
|
+
nextCursor?: string | null;
|
|
63
|
+
hasMore?: boolean;
|
|
64
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { reservationGuestInviteSchema } from "../../schemas/reservation-guest-invite";
|
|
3
|
+
import { Reservation } from "../reservation";
|
|
4
|
+
import { User } from "../user";
|
|
5
|
+
export interface ReservationGuestInvite extends infer<typeof reservationGuestInviteSchema> {
|
|
6
|
+
reservation?: Reservation;
|
|
7
|
+
invitedBy?: User;
|
|
8
|
+
invitee?: User | null;
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { serviceWorkerPayoutInfoSchema, serviceWorkerPayoutSchema, serviceWorkerWorkingHoursSchema } from "../../schemas/service-worker-payout";
|
|
3
|
+
import { ServiceWorker } from "../service-worker";
|
|
4
|
+
import { Task } from "../task";
|
|
5
|
+
import { ServiceProviderPayout } from "../service-provider-payout";
|
|
6
|
+
export interface ServiceWorkerPayoutInfo extends infer<typeof serviceWorkerPayoutInfoSchema> {
|
|
7
|
+
serviceWorker?: ServiceWorker;
|
|
8
|
+
payouts?: ServiceWorkerPayout[];
|
|
9
|
+
}
|
|
10
|
+
export interface ServiceWorkerPayout extends infer<typeof serviceWorkerPayoutSchema> {
|
|
11
|
+
payoutInfo?: ServiceWorkerPayoutInfo;
|
|
12
|
+
tasks?: Task[];
|
|
13
|
+
providerPayout?: ServiceProviderPayout | null;
|
|
14
|
+
}
|
|
15
|
+
export interface ServiceWorkerWorkingHours extends infer<typeof serviceWorkerWorkingHoursSchema> {
|
|
16
|
+
serviceWorker?: ServiceWorker;
|
|
17
|
+
}
|
|
@@ -33,6 +33,9 @@ import { TaskProviderPricing } from "../task-provider-pricing";
|
|
|
33
33
|
import { TaskSupplyPurchaseItem } from "../task-supply-purchase-item";
|
|
34
34
|
import { ServiceProviderPayout } from "../service-provider-payout";
|
|
35
35
|
import { ServiceProvider } from "../service-provider";
|
|
36
|
+
import { TaskExpenseFact } from "../task-expense-fact";
|
|
37
|
+
import { Notification } from "../notification";
|
|
38
|
+
import { Room } from "../room";
|
|
36
39
|
export interface Task extends infer<typeof taskSchema> {
|
|
37
40
|
property?: Property;
|
|
38
41
|
department?: TaskDepartment;
|
|
@@ -72,4 +75,8 @@ export interface Task extends infer<typeof taskSchema> {
|
|
|
72
75
|
supplyPurchaseItems?: TaskSupplyPurchaseItem[];
|
|
73
76
|
serviceProviderPayout?: ServiceProviderPayout;
|
|
74
77
|
assignedProvider?: ServiceProvider;
|
|
78
|
+
room?: Room | null;
|
|
79
|
+
taskExpenseFacts?: TaskExpenseFact[];
|
|
80
|
+
notifications?: Notification[];
|
|
81
|
+
photographySpaces?: TaskPhotographySpace[];
|
|
75
82
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { taskExpenseFactSchema } from "../../schemas/task-expense-fact";
|
|
3
|
+
import { Task } from "../task";
|
|
4
|
+
import { Reservation } from "../reservation";
|
|
5
|
+
import { Property } from "../property";
|
|
6
|
+
import { Room } from "../room";
|
|
7
|
+
export interface TaskExpenseFact extends infer<typeof taskExpenseFactSchema> {
|
|
8
|
+
task?: Task;
|
|
9
|
+
reservation?: Reservation | null;
|
|
10
|
+
property?: Property;
|
|
11
|
+
room?: Room | null;
|
|
12
|
+
}
|
|
@@ -20,6 +20,10 @@ import { UserAiAgentSubscription } from "../ai-agent/user-ai-agent-subscription"
|
|
|
20
20
|
import { InvitedServiceProvider } from "../invited-service-provider";
|
|
21
21
|
import { InvitedServiceProviderPreferences } from "../invited-service-provider-preferences";
|
|
22
22
|
import { TaskPricing } from "../task-pricing";
|
|
23
|
+
import { GuestVerification } from "../guest-verification";
|
|
24
|
+
import { PushToken } from "../push-token";
|
|
25
|
+
import { ReservationGuestInvite } from "../reservation-guest-invite";
|
|
26
|
+
import { Notification, NotificationPreference } from "../notification";
|
|
23
27
|
export interface User extends infer<typeof userSchema> {
|
|
24
28
|
tier?: Tier;
|
|
25
29
|
properties?: Property[];
|
|
@@ -46,4 +50,10 @@ export interface User extends infer<typeof userSchema> {
|
|
|
46
50
|
invitedServiceProviderPreferences?: InvitedServiceProviderPreferences[];
|
|
47
51
|
addedTaskPricings?: TaskPricing[];
|
|
48
52
|
additionalUserRoles?: UserRole[];
|
|
53
|
+
guestVerification?: GuestVerification | null;
|
|
54
|
+
pushTokens?: PushToken[];
|
|
55
|
+
sentGuestInvites?: ReservationGuestInvite[];
|
|
56
|
+
receivedGuestInvites?: ReservationGuestInvite[];
|
|
57
|
+
notifications?: Notification[];
|
|
58
|
+
notificationPreferences?: NotificationPreference[];
|
|
49
59
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { webhookDeliverySchema, webhookEndpointSchema, webhookEventSchema } from "../../schemas/webhook";
|
|
3
|
+
import { User } from "../user";
|
|
4
|
+
export interface WebhookEndpoint extends infer<typeof webhookEndpointSchema> {
|
|
5
|
+
user?: User;
|
|
6
|
+
deliveries?: WebhookDelivery[];
|
|
7
|
+
}
|
|
8
|
+
export interface WebhookEvent extends infer<typeof webhookEventSchema> {
|
|
9
|
+
user?: User;
|
|
10
|
+
deliveries?: WebhookDelivery[];
|
|
11
|
+
}
|
|
12
|
+
export interface WebhookDelivery extends infer<typeof webhookDeliverySchema> {
|
|
13
|
+
endpoint?: WebhookEndpoint;
|
|
14
|
+
event?: WebhookEvent;
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export declare enum ServiceType {
|
|
2
|
-
INTEGRATION = "INTEGRATION",
|
|
3
|
-
ON_DEMAND = "ON_DEMAND",
|
|
4
|
-
RECURRING = "RECURRING"
|
|
5
|
-
}
|
|
6
|
-
export declare enum TaskStatus {
|
|
7
|
-
PENDING = "PENDING",
|
|
8
|
-
CONFIRMED = "CONFIRMED",
|
|
9
|
-
COMPLETED = "COMPLETED",
|
|
10
|
-
CANCELLED = "CANCELLED"
|
|
11
|
-
}
|
|
12
|
-
export declare enum TaskPriority {
|
|
13
|
-
LOW = "LOW",
|
|
14
|
-
MEDIUM = "MEDIUM",
|
|
15
|
-
HIGH = "HIGH"
|
|
16
|
-
}
|
|
17
|
-
export declare enum InvoiceType {
|
|
18
|
-
SUBSCRIPTION = "SUBSCRIPTION",
|
|
19
|
-
PURCHASE = "PURCHASE"
|
|
20
|
-
}
|
|
21
|
-
export declare enum InvoiceStatus {
|
|
22
|
-
PENDING = "PENDING",
|
|
23
|
-
PAID = "PAID",
|
|
24
|
-
CANCELLED = "CANCELLED",
|
|
25
|
-
FAILED = "FAILED"
|
|
26
|
-
}
|
|
27
|
-
export declare enum PriceType {
|
|
28
|
-
PRORATED = "PRORATED",
|
|
29
|
-
FULL = "FULL"
|
|
30
|
-
}
|
|
31
|
-
export declare enum PurchaseStatus {
|
|
32
|
-
ACTIVE = "ACTIVE",
|
|
33
|
-
CANCELLED = "CANCELLED",
|
|
34
|
-
FAILED = "FAILED"
|
|
35
|
-
}
|
|
36
|
-
export declare enum SubscriptionStatus {
|
|
37
|
-
INCOMPLETE = "INCOMPLETE",
|
|
38
|
-
INCOMPLETE_EXPIRED = "INCOMPLETE_EXPIRED",
|
|
39
|
-
TRIALING = "TRIALING",
|
|
40
|
-
ACTIVE = "ACTIVE",
|
|
41
|
-
PAST_DUE = "PAST_DUE",
|
|
42
|
-
CANCELED = "CANCELED",
|
|
43
|
-
UNPAID = "UNPAID",
|
|
44
|
-
PAUSED = "PAUSED"
|
|
45
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SubscriptionStatus = exports.PurchaseStatus = exports.PriceType = exports.InvoiceStatus = exports.InvoiceType = exports.TaskPriority = exports.TaskStatus = exports.ServiceType = void 0;
|
|
4
|
-
var ServiceType;
|
|
5
|
-
(function (ServiceType) {
|
|
6
|
-
ServiceType["INTEGRATION"] = "INTEGRATION";
|
|
7
|
-
ServiceType["ON_DEMAND"] = "ON_DEMAND";
|
|
8
|
-
ServiceType["RECURRING"] = "RECURRING";
|
|
9
|
-
})(ServiceType || (exports.ServiceType = ServiceType = {}));
|
|
10
|
-
var TaskStatus;
|
|
11
|
-
(function (TaskStatus) {
|
|
12
|
-
TaskStatus["PENDING"] = "PENDING";
|
|
13
|
-
TaskStatus["CONFIRMED"] = "CONFIRMED";
|
|
14
|
-
TaskStatus["COMPLETED"] = "COMPLETED";
|
|
15
|
-
TaskStatus["CANCELLED"] = "CANCELLED";
|
|
16
|
-
})(TaskStatus || (exports.TaskStatus = TaskStatus = {}));
|
|
17
|
-
var TaskPriority;
|
|
18
|
-
(function (TaskPriority) {
|
|
19
|
-
TaskPriority["LOW"] = "LOW";
|
|
20
|
-
TaskPriority["MEDIUM"] = "MEDIUM";
|
|
21
|
-
TaskPriority["HIGH"] = "HIGH";
|
|
22
|
-
})(TaskPriority || (exports.TaskPriority = TaskPriority = {}));
|
|
23
|
-
var InvoiceType;
|
|
24
|
-
(function (InvoiceType) {
|
|
25
|
-
InvoiceType["SUBSCRIPTION"] = "SUBSCRIPTION";
|
|
26
|
-
InvoiceType["PURCHASE"] = "PURCHASE";
|
|
27
|
-
})(InvoiceType || (exports.InvoiceType = InvoiceType = {}));
|
|
28
|
-
var InvoiceStatus;
|
|
29
|
-
(function (InvoiceStatus) {
|
|
30
|
-
InvoiceStatus["PENDING"] = "PENDING";
|
|
31
|
-
InvoiceStatus["PAID"] = "PAID";
|
|
32
|
-
InvoiceStatus["CANCELLED"] = "CANCELLED";
|
|
33
|
-
InvoiceStatus["FAILED"] = "FAILED";
|
|
34
|
-
})(InvoiceStatus || (exports.InvoiceStatus = InvoiceStatus = {}));
|
|
35
|
-
var PriceType;
|
|
36
|
-
(function (PriceType) {
|
|
37
|
-
PriceType["PRORATED"] = "PRORATED";
|
|
38
|
-
PriceType["FULL"] = "FULL";
|
|
39
|
-
})(PriceType || (exports.PriceType = PriceType = {}));
|
|
40
|
-
var PurchaseStatus;
|
|
41
|
-
(function (PurchaseStatus) {
|
|
42
|
-
PurchaseStatus["ACTIVE"] = "ACTIVE";
|
|
43
|
-
PurchaseStatus["CANCELLED"] = "CANCELLED";
|
|
44
|
-
PurchaseStatus["FAILED"] = "FAILED";
|
|
45
|
-
})(PurchaseStatus || (exports.PurchaseStatus = PurchaseStatus = {}));
|
|
46
|
-
var SubscriptionStatus;
|
|
47
|
-
(function (SubscriptionStatus) {
|
|
48
|
-
SubscriptionStatus["INCOMPLETE"] = "INCOMPLETE";
|
|
49
|
-
SubscriptionStatus["INCOMPLETE_EXPIRED"] = "INCOMPLETE_EXPIRED";
|
|
50
|
-
SubscriptionStatus["TRIALING"] = "TRIALING";
|
|
51
|
-
SubscriptionStatus["ACTIVE"] = "ACTIVE";
|
|
52
|
-
SubscriptionStatus["PAST_DUE"] = "PAST_DUE";
|
|
53
|
-
SubscriptionStatus["CANCELED"] = "CANCELED";
|
|
54
|
-
SubscriptionStatus["UNPAID"] = "UNPAID";
|
|
55
|
-
SubscriptionStatus["PAUSED"] = "PAUSED";
|
|
56
|
-
})(SubscriptionStatus || (exports.SubscriptionStatus = SubscriptionStatus = {}));
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare const servicePropertySchema: import("zod").ZodObject<{
|
|
2
|
-
propertyId: import("zod").ZodNumber;
|
|
3
|
-
serviceId: import("zod").ZodNumber;
|
|
4
|
-
status: import("zod").ZodString;
|
|
5
|
-
createdAt: import("zod").ZodDate;
|
|
6
|
-
updatedAt: import("zod").ZodDate;
|
|
7
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
8
|
-
status: string;
|
|
9
|
-
createdAt: Date;
|
|
10
|
-
updatedAt: Date;
|
|
11
|
-
serviceId: number;
|
|
12
|
-
propertyId: number;
|
|
13
|
-
}, {
|
|
14
|
-
status: string;
|
|
15
|
-
createdAt: Date;
|
|
16
|
-
updatedAt: Date;
|
|
17
|
-
serviceId: number;
|
|
18
|
-
propertyId: number;
|
|
19
|
-
}>;
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
status: (0, zod_1.string)(),
|
|
9
|
-
createdAt: (0, zod_1.date)(),
|
|
10
|
-
updatedAt: (0, zod_1.date)(),
|
|
11
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
}
|
|
File without changes
|