@juhuu/sdk-ts 1.2.323 → 1.2.324
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/index.d.mts +20 -2
- package/dist/index.d.ts +20 -2
- package/dist/index.js +18 -1
- package/dist/index.mjs +18 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -181,7 +181,7 @@ interface EnvironmentSettings {
|
|
|
181
181
|
type PaymentMethod = "card" | "stripe_account" | "klarna" | "bancontact" | "eps" | "giropay" | "ideal" | "p24" | "sofort" | "unknown";
|
|
182
182
|
type PaymentReason = "session";
|
|
183
183
|
type PaymentRefundReason = "requestedByUser" | "expiredUncapturedCharge" | "fraudulent" | "duplicate" | "unknown";
|
|
184
|
-
type SessionStatus = "waitingForPayment" | "ready" | "completed";
|
|
184
|
+
type SessionStatus = "waitingForPayment" | "waitingForReady" | "ready" | "completed";
|
|
185
185
|
type AutoRenewMode = "off" | "optIn" | "optOut" | "on";
|
|
186
186
|
type RefundStatus = "inTransitToUser" | "succeeded";
|
|
187
187
|
type SessionTerminatedByType = "user" | "system" | "propertyAdmin" | "nodeArray" | "flow" | "apiKey";
|
|
@@ -1731,6 +1731,7 @@ declare class SessionService extends Service {
|
|
|
1731
1731
|
detachUser(SessionDetachUserParams: JUHUU.Session.DetachUser.Params, SessionDetachUserOptions?: JUHUU.Session.DetachUser.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.DetachUser.Response>>;
|
|
1732
1732
|
delete(SessionDeleteUserParams: JUHUU.Session.Delete.Params, SessionDeleteUserOptions?: JUHUU.Session.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Delete.Response>>;
|
|
1733
1733
|
listen(SessionRealtimeParams: JUHUU.Session.Realtime.Params, SessionRealtimeOptions?: JUHUU.Session.Realtime.Options): JUHUU.Session.Realtime.Response;
|
|
1734
|
+
checkAvailability(SessionCheckAvailabilityParams: JUHUU.Session.CheckAvailability.Params, SessionCheckAvailabilityOptions?: JUHUU.Session.CheckAvailability.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.CheckAvailability.Response>>;
|
|
1734
1735
|
}
|
|
1735
1736
|
|
|
1736
1737
|
declare class LinkService extends Service {
|
|
@@ -2462,7 +2463,7 @@ declare namespace JUHUU {
|
|
|
2462
2463
|
namespace Session {
|
|
2463
2464
|
type Base = {
|
|
2464
2465
|
id: string;
|
|
2465
|
-
status:
|
|
2466
|
+
status: SessionStatus;
|
|
2466
2467
|
paymentId: string | null;
|
|
2467
2468
|
userId: string | null;
|
|
2468
2469
|
propertyId: string;
|
|
@@ -2488,6 +2489,9 @@ declare namespace JUHUU {
|
|
|
2488
2489
|
locationName: string | null;
|
|
2489
2490
|
locationGroupId: string | null;
|
|
2490
2491
|
locationGroupName: string | null;
|
|
2492
|
+
scheduledReadyAt: Date;
|
|
2493
|
+
readyAt: Date | null;
|
|
2494
|
+
metadata: Record<string, any>;
|
|
2491
2495
|
};
|
|
2492
2496
|
export interface Rent extends Base {
|
|
2493
2497
|
type: "rent";
|
|
@@ -2511,6 +2515,8 @@ declare namespace JUHUU {
|
|
|
2511
2515
|
isOffSession: boolean;
|
|
2512
2516
|
userId: string;
|
|
2513
2517
|
propertyId?: string;
|
|
2518
|
+
scheduledReadyAt?: Date;
|
|
2519
|
+
metadata: Record<string, any>;
|
|
2514
2520
|
};
|
|
2515
2521
|
type Options = JUHUU.RequestOptions;
|
|
2516
2522
|
type Response = {
|
|
@@ -2637,6 +2643,18 @@ declare namespace JUHUU {
|
|
|
2637
2643
|
close: () => void;
|
|
2638
2644
|
};
|
|
2639
2645
|
}
|
|
2646
|
+
export namespace CheckAvailability {
|
|
2647
|
+
type Params = {
|
|
2648
|
+
locationId: string;
|
|
2649
|
+
tariffId: string;
|
|
2650
|
+
autoRenew: boolean;
|
|
2651
|
+
};
|
|
2652
|
+
type Options = JUHUU.RequestOptions;
|
|
2653
|
+
type Response = {
|
|
2654
|
+
available: boolean;
|
|
2655
|
+
conflictingSessions: JUHUU.Session.Object[];
|
|
2656
|
+
};
|
|
2657
|
+
}
|
|
2640
2658
|
export { };
|
|
2641
2659
|
}
|
|
2642
2660
|
namespace User {
|
package/dist/index.d.ts
CHANGED
|
@@ -181,7 +181,7 @@ interface EnvironmentSettings {
|
|
|
181
181
|
type PaymentMethod = "card" | "stripe_account" | "klarna" | "bancontact" | "eps" | "giropay" | "ideal" | "p24" | "sofort" | "unknown";
|
|
182
182
|
type PaymentReason = "session";
|
|
183
183
|
type PaymentRefundReason = "requestedByUser" | "expiredUncapturedCharge" | "fraudulent" | "duplicate" | "unknown";
|
|
184
|
-
type SessionStatus = "waitingForPayment" | "ready" | "completed";
|
|
184
|
+
type SessionStatus = "waitingForPayment" | "waitingForReady" | "ready" | "completed";
|
|
185
185
|
type AutoRenewMode = "off" | "optIn" | "optOut" | "on";
|
|
186
186
|
type RefundStatus = "inTransitToUser" | "succeeded";
|
|
187
187
|
type SessionTerminatedByType = "user" | "system" | "propertyAdmin" | "nodeArray" | "flow" | "apiKey";
|
|
@@ -1731,6 +1731,7 @@ declare class SessionService extends Service {
|
|
|
1731
1731
|
detachUser(SessionDetachUserParams: JUHUU.Session.DetachUser.Params, SessionDetachUserOptions?: JUHUU.Session.DetachUser.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.DetachUser.Response>>;
|
|
1732
1732
|
delete(SessionDeleteUserParams: JUHUU.Session.Delete.Params, SessionDeleteUserOptions?: JUHUU.Session.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Delete.Response>>;
|
|
1733
1733
|
listen(SessionRealtimeParams: JUHUU.Session.Realtime.Params, SessionRealtimeOptions?: JUHUU.Session.Realtime.Options): JUHUU.Session.Realtime.Response;
|
|
1734
|
+
checkAvailability(SessionCheckAvailabilityParams: JUHUU.Session.CheckAvailability.Params, SessionCheckAvailabilityOptions?: JUHUU.Session.CheckAvailability.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.CheckAvailability.Response>>;
|
|
1734
1735
|
}
|
|
1735
1736
|
|
|
1736
1737
|
declare class LinkService extends Service {
|
|
@@ -2462,7 +2463,7 @@ declare namespace JUHUU {
|
|
|
2462
2463
|
namespace Session {
|
|
2463
2464
|
type Base = {
|
|
2464
2465
|
id: string;
|
|
2465
|
-
status:
|
|
2466
|
+
status: SessionStatus;
|
|
2466
2467
|
paymentId: string | null;
|
|
2467
2468
|
userId: string | null;
|
|
2468
2469
|
propertyId: string;
|
|
@@ -2488,6 +2489,9 @@ declare namespace JUHUU {
|
|
|
2488
2489
|
locationName: string | null;
|
|
2489
2490
|
locationGroupId: string | null;
|
|
2490
2491
|
locationGroupName: string | null;
|
|
2492
|
+
scheduledReadyAt: Date;
|
|
2493
|
+
readyAt: Date | null;
|
|
2494
|
+
metadata: Record<string, any>;
|
|
2491
2495
|
};
|
|
2492
2496
|
export interface Rent extends Base {
|
|
2493
2497
|
type: "rent";
|
|
@@ -2511,6 +2515,8 @@ declare namespace JUHUU {
|
|
|
2511
2515
|
isOffSession: boolean;
|
|
2512
2516
|
userId: string;
|
|
2513
2517
|
propertyId?: string;
|
|
2518
|
+
scheduledReadyAt?: Date;
|
|
2519
|
+
metadata: Record<string, any>;
|
|
2514
2520
|
};
|
|
2515
2521
|
type Options = JUHUU.RequestOptions;
|
|
2516
2522
|
type Response = {
|
|
@@ -2637,6 +2643,18 @@ declare namespace JUHUU {
|
|
|
2637
2643
|
close: () => void;
|
|
2638
2644
|
};
|
|
2639
2645
|
}
|
|
2646
|
+
export namespace CheckAvailability {
|
|
2647
|
+
type Params = {
|
|
2648
|
+
locationId: string;
|
|
2649
|
+
tariffId: string;
|
|
2650
|
+
autoRenew: boolean;
|
|
2651
|
+
};
|
|
2652
|
+
type Options = JUHUU.RequestOptions;
|
|
2653
|
+
type Response = {
|
|
2654
|
+
available: boolean;
|
|
2655
|
+
conflictingSessions: JUHUU.Session.Object[];
|
|
2656
|
+
};
|
|
2657
|
+
}
|
|
2640
2658
|
export { };
|
|
2641
2659
|
}
|
|
2642
2660
|
namespace User {
|
package/dist/index.js
CHANGED
|
@@ -531,7 +531,9 @@ var SessionService = class extends Service {
|
|
|
531
531
|
type: SessionCreateParams.sessionType,
|
|
532
532
|
isOffSession: SessionCreateParams.isOffSession,
|
|
533
533
|
userId: SessionCreateParams.userId,
|
|
534
|
-
propertyId: SessionCreateParams.propertyId
|
|
534
|
+
propertyId: SessionCreateParams.propertyId,
|
|
535
|
+
scheduledReadyAt: SessionCreateParams.scheduledReadyAt,
|
|
536
|
+
metadata: SessionCreateParams.metadata
|
|
535
537
|
},
|
|
536
538
|
authenticationNotOptional: true
|
|
537
539
|
},
|
|
@@ -710,6 +712,21 @@ var SessionService = class extends Service {
|
|
|
710
712
|
}
|
|
711
713
|
};
|
|
712
714
|
}
|
|
715
|
+
async checkAvailability(SessionCheckAvailabilityParams, SessionCheckAvailabilityOptions) {
|
|
716
|
+
return await super.sendRequest(
|
|
717
|
+
{
|
|
718
|
+
method: "POST",
|
|
719
|
+
url: "sessions/checkAvailability",
|
|
720
|
+
body: {
|
|
721
|
+
locationId: SessionCheckAvailabilityParams.locationId,
|
|
722
|
+
tariffId: SessionCheckAvailabilityParams.tariffId,
|
|
723
|
+
autoRenew: SessionCheckAvailabilityParams.autoRenew
|
|
724
|
+
},
|
|
725
|
+
authenticationNotOptional: false
|
|
726
|
+
},
|
|
727
|
+
SessionCheckAvailabilityOptions
|
|
728
|
+
);
|
|
729
|
+
}
|
|
713
730
|
};
|
|
714
731
|
|
|
715
732
|
// src/links/links.service.ts
|
package/dist/index.mjs
CHANGED
|
@@ -487,7 +487,9 @@ var SessionService = class extends Service {
|
|
|
487
487
|
type: SessionCreateParams.sessionType,
|
|
488
488
|
isOffSession: SessionCreateParams.isOffSession,
|
|
489
489
|
userId: SessionCreateParams.userId,
|
|
490
|
-
propertyId: SessionCreateParams.propertyId
|
|
490
|
+
propertyId: SessionCreateParams.propertyId,
|
|
491
|
+
scheduledReadyAt: SessionCreateParams.scheduledReadyAt,
|
|
492
|
+
metadata: SessionCreateParams.metadata
|
|
491
493
|
},
|
|
492
494
|
authenticationNotOptional: true
|
|
493
495
|
},
|
|
@@ -666,6 +668,21 @@ var SessionService = class extends Service {
|
|
|
666
668
|
}
|
|
667
669
|
};
|
|
668
670
|
}
|
|
671
|
+
async checkAvailability(SessionCheckAvailabilityParams, SessionCheckAvailabilityOptions) {
|
|
672
|
+
return await super.sendRequest(
|
|
673
|
+
{
|
|
674
|
+
method: "POST",
|
|
675
|
+
url: "sessions/checkAvailability",
|
|
676
|
+
body: {
|
|
677
|
+
locationId: SessionCheckAvailabilityParams.locationId,
|
|
678
|
+
tariffId: SessionCheckAvailabilityParams.tariffId,
|
|
679
|
+
autoRenew: SessionCheckAvailabilityParams.autoRenew
|
|
680
|
+
},
|
|
681
|
+
authenticationNotOptional: false
|
|
682
|
+
},
|
|
683
|
+
SessionCheckAvailabilityOptions
|
|
684
|
+
);
|
|
685
|
+
}
|
|
669
686
|
};
|
|
670
687
|
|
|
671
688
|
// src/links/links.service.ts
|