@atzentis/booking-sdk 0.1.9 → 0.1.10
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.cjs +306 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +713 -2
- package/dist/index.d.ts +713 -2
- package/dist/index.js +302 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1197,6 +1197,233 @@ declare class CategoriesService extends BaseService {
|
|
|
1197
1197
|
delete(categoryId: string): Promise<void>;
|
|
1198
1198
|
}
|
|
1199
1199
|
|
|
1200
|
+
/** Type of discount rule */
|
|
1201
|
+
type DiscountType = "coupon" | "early_bird" | "seasonal" | "last_minute";
|
|
1202
|
+
/** How the discount value is applied */
|
|
1203
|
+
type DiscountValueType = "percentage" | "fixed";
|
|
1204
|
+
/** Status of a discount rule */
|
|
1205
|
+
type DiscountRuleStatus = "active" | "expired" | "exhausted" | "disabled";
|
|
1206
|
+
/** Status of a coupon code */
|
|
1207
|
+
type CouponStatus = "active" | "redeemed" | "expired" | "disabled";
|
|
1208
|
+
/** Sort field for discount rules */
|
|
1209
|
+
type DiscountSortBy = "createdAt" | "name" | "value" | "redemptionCount";
|
|
1210
|
+
/** A discount rule defining eligibility and value */
|
|
1211
|
+
interface DiscountRule {
|
|
1212
|
+
id: string;
|
|
1213
|
+
propertyId: string;
|
|
1214
|
+
name: string;
|
|
1215
|
+
description: string | null;
|
|
1216
|
+
type: DiscountType;
|
|
1217
|
+
valueType: DiscountValueType;
|
|
1218
|
+
value: number;
|
|
1219
|
+
spaceTypes: string[] | null;
|
|
1220
|
+
minNights: number | null;
|
|
1221
|
+
maxNights: number | null;
|
|
1222
|
+
validFrom: string | null;
|
|
1223
|
+
validTo: string | null;
|
|
1224
|
+
bookingFrom: string | null;
|
|
1225
|
+
bookingTo: string | null;
|
|
1226
|
+
maxRedemptions: number | null;
|
|
1227
|
+
maxRedemptionsPerGuest: number | null;
|
|
1228
|
+
minBookingValue: number | null;
|
|
1229
|
+
stackable: boolean;
|
|
1230
|
+
enabled: boolean;
|
|
1231
|
+
status: DiscountRuleStatus;
|
|
1232
|
+
redemptionCount: number;
|
|
1233
|
+
totalDiscountAmount: number;
|
|
1234
|
+
metadata: Record<string, unknown> | null;
|
|
1235
|
+
createdAt: string;
|
|
1236
|
+
updatedAt: string;
|
|
1237
|
+
deletedAt: string | null;
|
|
1238
|
+
}
|
|
1239
|
+
/** A coupon code generated from a discount rule */
|
|
1240
|
+
interface Coupon {
|
|
1241
|
+
id: string;
|
|
1242
|
+
ruleId: string;
|
|
1243
|
+
code: string;
|
|
1244
|
+
status: CouponStatus;
|
|
1245
|
+
maxRedemptions: number | null;
|
|
1246
|
+
redemptionCount: number;
|
|
1247
|
+
expiresAt: string | null;
|
|
1248
|
+
createdAt: string;
|
|
1249
|
+
}
|
|
1250
|
+
/** Result of validating a coupon code */
|
|
1251
|
+
interface CouponValidation {
|
|
1252
|
+
valid: boolean;
|
|
1253
|
+
coupon: Coupon | null;
|
|
1254
|
+
rule: DiscountRule | null;
|
|
1255
|
+
discountAmount: number;
|
|
1256
|
+
finalPrice: number;
|
|
1257
|
+
reason: string | null;
|
|
1258
|
+
}
|
|
1259
|
+
/** Record of a discount being applied to a booking */
|
|
1260
|
+
interface DiscountApplication {
|
|
1261
|
+
id: string;
|
|
1262
|
+
bookingId: string;
|
|
1263
|
+
ruleId: string;
|
|
1264
|
+
couponId: string | null;
|
|
1265
|
+
code: string | null;
|
|
1266
|
+
discountAmount: number;
|
|
1267
|
+
originalPrice: number;
|
|
1268
|
+
finalPrice: number;
|
|
1269
|
+
appliedAt: string;
|
|
1270
|
+
}
|
|
1271
|
+
/** A single redemption record */
|
|
1272
|
+
interface DiscountRedemption {
|
|
1273
|
+
id: string;
|
|
1274
|
+
bookingId: string;
|
|
1275
|
+
guestId: string;
|
|
1276
|
+
couponId: string | null;
|
|
1277
|
+
code: string | null;
|
|
1278
|
+
discountAmount: number;
|
|
1279
|
+
redeemedAt: string;
|
|
1280
|
+
}
|
|
1281
|
+
/** Usage statistics and redemption history for a discount rule */
|
|
1282
|
+
interface DiscountUsage {
|
|
1283
|
+
ruleId: string;
|
|
1284
|
+
totalRedemptions: number;
|
|
1285
|
+
totalDiscountAmount: number;
|
|
1286
|
+
averageDiscountAmount: number;
|
|
1287
|
+
redemptions: DiscountRedemption[];
|
|
1288
|
+
cursor: string | null;
|
|
1289
|
+
hasMore: boolean;
|
|
1290
|
+
}
|
|
1291
|
+
/** Input for creating a discount rule */
|
|
1292
|
+
interface CreateDiscountRuleInput {
|
|
1293
|
+
propertyId: string;
|
|
1294
|
+
name: string;
|
|
1295
|
+
type: DiscountType;
|
|
1296
|
+
valueType: DiscountValueType;
|
|
1297
|
+
value: number;
|
|
1298
|
+
description?: string;
|
|
1299
|
+
spaceTypes?: string[];
|
|
1300
|
+
minNights?: number;
|
|
1301
|
+
maxNights?: number;
|
|
1302
|
+
validFrom?: string;
|
|
1303
|
+
validTo?: string;
|
|
1304
|
+
bookingFrom?: string;
|
|
1305
|
+
bookingTo?: string;
|
|
1306
|
+
maxRedemptions?: number;
|
|
1307
|
+
maxRedemptionsPerGuest?: number;
|
|
1308
|
+
minBookingValue?: number;
|
|
1309
|
+
stackable?: boolean;
|
|
1310
|
+
enabled?: boolean;
|
|
1311
|
+
metadata?: Record<string, unknown>;
|
|
1312
|
+
}
|
|
1313
|
+
/** Input for updating a discount rule */
|
|
1314
|
+
interface UpdateDiscountRuleInput {
|
|
1315
|
+
name?: string;
|
|
1316
|
+
description?: string;
|
|
1317
|
+
value?: number;
|
|
1318
|
+
validFrom?: string;
|
|
1319
|
+
validTo?: string;
|
|
1320
|
+
bookingFrom?: string;
|
|
1321
|
+
bookingTo?: string;
|
|
1322
|
+
maxRedemptions?: number;
|
|
1323
|
+
maxRedemptionsPerGuest?: number;
|
|
1324
|
+
minBookingValue?: number;
|
|
1325
|
+
stackable?: boolean;
|
|
1326
|
+
enabled?: boolean;
|
|
1327
|
+
metadata?: Record<string, unknown>;
|
|
1328
|
+
}
|
|
1329
|
+
/** Parameters for listing discount rules */
|
|
1330
|
+
interface ListDiscountRulesParams {
|
|
1331
|
+
propertyId: string;
|
|
1332
|
+
type?: DiscountType;
|
|
1333
|
+
status?: DiscountRuleStatus;
|
|
1334
|
+
enabled?: boolean;
|
|
1335
|
+
validOn?: string;
|
|
1336
|
+
sortBy?: DiscountSortBy;
|
|
1337
|
+
sortOrder?: "asc" | "desc";
|
|
1338
|
+
limit?: number;
|
|
1339
|
+
cursor?: string;
|
|
1340
|
+
}
|
|
1341
|
+
/** Input for generating coupons from a discount rule */
|
|
1342
|
+
interface GenerateCouponsInput {
|
|
1343
|
+
count?: number;
|
|
1344
|
+
prefix?: string;
|
|
1345
|
+
code?: string;
|
|
1346
|
+
expiresAt?: string;
|
|
1347
|
+
maxRedemptions?: number;
|
|
1348
|
+
}
|
|
1349
|
+
/** Input for validating a coupon code */
|
|
1350
|
+
interface ValidateCouponInput {
|
|
1351
|
+
code: string;
|
|
1352
|
+
propertyId: string;
|
|
1353
|
+
bookingValue: number;
|
|
1354
|
+
checkIn?: string;
|
|
1355
|
+
checkOut?: string;
|
|
1356
|
+
spaceType?: string;
|
|
1357
|
+
guestId?: string;
|
|
1358
|
+
}
|
|
1359
|
+
/** Input for applying a discount to a booking */
|
|
1360
|
+
interface ApplyDiscountInput {
|
|
1361
|
+
bookingId: string;
|
|
1362
|
+
code: string;
|
|
1363
|
+
guestId?: string;
|
|
1364
|
+
}
|
|
1365
|
+
/** Parameters for querying discount usage */
|
|
1366
|
+
interface DiscountUsageParams {
|
|
1367
|
+
from?: string;
|
|
1368
|
+
to?: string;
|
|
1369
|
+
limit?: number;
|
|
1370
|
+
cursor?: string;
|
|
1371
|
+
}
|
|
1372
|
+
/** Paginated list of discount rules */
|
|
1373
|
+
type PaginatedDiscountRules = Paginated<DiscountRule>;
|
|
1374
|
+
|
|
1375
|
+
/**
|
|
1376
|
+
* Service for discount and coupon management in the Atzentis Booking API.
|
|
1377
|
+
*
|
|
1378
|
+
* Provides discount rule CRUD, coupon generation and validation,
|
|
1379
|
+
* discount application, and usage tracking.
|
|
1380
|
+
*
|
|
1381
|
+
* @example
|
|
1382
|
+
* ```typescript
|
|
1383
|
+
* const booking = new BookingClient({ apiKey: "atz_io_live_xxxxx" });
|
|
1384
|
+
*
|
|
1385
|
+
* // Create a discount rule
|
|
1386
|
+
* const rule = await booking.discounts.createRule({
|
|
1387
|
+
* propertyId: "prop_1",
|
|
1388
|
+
* name: "Early Bird 15%",
|
|
1389
|
+
* type: "early_bird",
|
|
1390
|
+
* valueType: "percentage",
|
|
1391
|
+
* value: 15,
|
|
1392
|
+
* });
|
|
1393
|
+
*
|
|
1394
|
+
* // Generate coupon codes
|
|
1395
|
+
* const coupons = await booking.discounts.generateCoupons(rule.id, { count: 10 });
|
|
1396
|
+
*
|
|
1397
|
+
* // Validate a coupon
|
|
1398
|
+
* const result = await booking.discounts.validateCoupon({
|
|
1399
|
+
* code: coupons[0].code,
|
|
1400
|
+
* propertyId: "prop_1",
|
|
1401
|
+
* bookingValue: 500,
|
|
1402
|
+
* });
|
|
1403
|
+
* ```
|
|
1404
|
+
*/
|
|
1405
|
+
declare class DiscountsService extends BaseService {
|
|
1406
|
+
protected readonly basePath = "/guest/v1";
|
|
1407
|
+
/** Create a discount rule */
|
|
1408
|
+
createRule(input: CreateDiscountRuleInput): Promise<DiscountRule>;
|
|
1409
|
+
/** Get a discount rule by ID */
|
|
1410
|
+
getRule(ruleId: string): Promise<DiscountRule>;
|
|
1411
|
+
/** List discount rules with optional filters */
|
|
1412
|
+
listRules(params: ListDiscountRulesParams): Promise<PaginatedDiscountRules>;
|
|
1413
|
+
/** Update a discount rule */
|
|
1414
|
+
updateRule(ruleId: string, input: UpdateDiscountRuleInput): Promise<DiscountRule>;
|
|
1415
|
+
/** Delete a discount rule */
|
|
1416
|
+
deleteRule(ruleId: string): Promise<void>;
|
|
1417
|
+
/** Generate coupon codes for a discount rule */
|
|
1418
|
+
generateCoupons(ruleId: string, input?: GenerateCouponsInput): Promise<Coupon[]>;
|
|
1419
|
+
/** Validate a coupon code against booking context */
|
|
1420
|
+
validateCoupon(input: ValidateCouponInput): Promise<CouponValidation>;
|
|
1421
|
+
/** Apply a discount to a booking */
|
|
1422
|
+
applyDiscount(input: ApplyDiscountInput): Promise<DiscountApplication>;
|
|
1423
|
+
/** Get usage statistics and redemption history for a discount rule */
|
|
1424
|
+
getUsage(ruleId: string, params?: DiscountUsageParams): Promise<DiscountUsage>;
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1200
1427
|
/** Supported distribution channel types */
|
|
1201
1428
|
type ChannelType = "channex" | "ical" | "direct";
|
|
1202
1429
|
/** Channel connection status */
|
|
@@ -2667,6 +2894,198 @@ interface NightAuditReport {
|
|
|
2667
2894
|
discrepancies: NightAuditDiscrepancy[];
|
|
2668
2895
|
generatedAt: string;
|
|
2669
2896
|
}
|
|
2897
|
+
/** Category of a supply item */
|
|
2898
|
+
type SupplyCategory = "cleaning" | "toiletries" | "linens" | "food" | "beverage" | "maintenance" | "office" | "amenities" | "other";
|
|
2899
|
+
/** Unit of measurement for a supply item */
|
|
2900
|
+
type SupplyUnit = "piece" | "kg" | "liter" | "box" | "case" | "roll" | "pack" | "bottle" | "other";
|
|
2901
|
+
/** Type of stock movement */
|
|
2902
|
+
type MovementType = "received" | "consumed" | "adjustment" | "waste";
|
|
2903
|
+
/** A supply item tracked in inventory */
|
|
2904
|
+
interface SupplyItem {
|
|
2905
|
+
id: string;
|
|
2906
|
+
propertyId: string;
|
|
2907
|
+
name: string;
|
|
2908
|
+
description: string | null;
|
|
2909
|
+
category: SupplyCategory;
|
|
2910
|
+
unit: SupplyUnit;
|
|
2911
|
+
sku: string | null;
|
|
2912
|
+
currentLevel: number;
|
|
2913
|
+
reorderThreshold: number;
|
|
2914
|
+
preferredSupplier: string | null;
|
|
2915
|
+
costPerUnit: number | null;
|
|
2916
|
+
notes: string | null;
|
|
2917
|
+
metadata: Record<string, unknown> | null;
|
|
2918
|
+
createdAt: string;
|
|
2919
|
+
updatedAt: string;
|
|
2920
|
+
deletedAt: string | null;
|
|
2921
|
+
}
|
|
2922
|
+
/** Current stock level for a supply item */
|
|
2923
|
+
interface SupplyLevel {
|
|
2924
|
+
itemId: string;
|
|
2925
|
+
itemName: string;
|
|
2926
|
+
currentLevel: number;
|
|
2927
|
+
reorderThreshold: number;
|
|
2928
|
+
isLowStock: boolean;
|
|
2929
|
+
unit: SupplyUnit;
|
|
2930
|
+
lastMovementAt: string | null;
|
|
2931
|
+
}
|
|
2932
|
+
/** A recorded stock movement */
|
|
2933
|
+
interface SupplyMovement {
|
|
2934
|
+
id: string;
|
|
2935
|
+
itemId: string;
|
|
2936
|
+
itemName: string;
|
|
2937
|
+
type: MovementType;
|
|
2938
|
+
quantity: number;
|
|
2939
|
+
previousLevel: number;
|
|
2940
|
+
newLevel: number;
|
|
2941
|
+
reason: string | null;
|
|
2942
|
+
reference: string | null;
|
|
2943
|
+
performedBy: string | null;
|
|
2944
|
+
notes: string | null;
|
|
2945
|
+
metadata: Record<string, unknown> | null;
|
|
2946
|
+
createdAt: string;
|
|
2947
|
+
}
|
|
2948
|
+
/** Input for creating a supply item */
|
|
2949
|
+
interface CreateSupplyItemInput {
|
|
2950
|
+
propertyId: string;
|
|
2951
|
+
name: string;
|
|
2952
|
+
description?: string;
|
|
2953
|
+
category?: SupplyCategory;
|
|
2954
|
+
unit?: SupplyUnit;
|
|
2955
|
+
sku?: string;
|
|
2956
|
+
reorderThreshold?: number;
|
|
2957
|
+
preferredSupplier?: string;
|
|
2958
|
+
costPerUnit?: number;
|
|
2959
|
+
notes?: string;
|
|
2960
|
+
metadata?: Record<string, unknown>;
|
|
2961
|
+
}
|
|
2962
|
+
/** Input for updating a supply item */
|
|
2963
|
+
interface UpdateSupplyItemInput {
|
|
2964
|
+
name?: string;
|
|
2965
|
+
description?: string;
|
|
2966
|
+
category?: SupplyCategory;
|
|
2967
|
+
unit?: SupplyUnit;
|
|
2968
|
+
sku?: string;
|
|
2969
|
+
reorderThreshold?: number;
|
|
2970
|
+
preferredSupplier?: string;
|
|
2971
|
+
costPerUnit?: number;
|
|
2972
|
+
notes?: string;
|
|
2973
|
+
metadata?: Record<string, unknown>;
|
|
2974
|
+
}
|
|
2975
|
+
/** Parameters for listing supply items */
|
|
2976
|
+
interface ListSupplyItemsParams {
|
|
2977
|
+
propertyId: string;
|
|
2978
|
+
category?: SupplyCategory;
|
|
2979
|
+
search?: string;
|
|
2980
|
+
lowStockOnly?: boolean;
|
|
2981
|
+
limit?: number;
|
|
2982
|
+
cursor?: string;
|
|
2983
|
+
}
|
|
2984
|
+
/** Input for updating a stock level */
|
|
2985
|
+
interface UpdateSupplyLevelInput {
|
|
2986
|
+
currentLevel?: number;
|
|
2987
|
+
reorderThreshold?: number;
|
|
2988
|
+
}
|
|
2989
|
+
/** Parameters for listing supply levels */
|
|
2990
|
+
interface ListSupplyLevelsParams {
|
|
2991
|
+
propertyId: string;
|
|
2992
|
+
category?: SupplyCategory;
|
|
2993
|
+
lowStockOnly?: boolean;
|
|
2994
|
+
limit?: number;
|
|
2995
|
+
cursor?: string;
|
|
2996
|
+
}
|
|
2997
|
+
/** Input for creating a supply movement */
|
|
2998
|
+
interface CreateSupplyMovementInput {
|
|
2999
|
+
itemId: string;
|
|
3000
|
+
type: MovementType;
|
|
3001
|
+
quantity: number;
|
|
3002
|
+
reason?: string;
|
|
3003
|
+
reference?: string;
|
|
3004
|
+
performedBy?: string;
|
|
3005
|
+
notes?: string;
|
|
3006
|
+
metadata?: Record<string, unknown>;
|
|
3007
|
+
}
|
|
3008
|
+
/** Parameters for listing supply movements */
|
|
3009
|
+
interface ListSupplyMovementsParams {
|
|
3010
|
+
propertyId: string;
|
|
3011
|
+
itemId?: string;
|
|
3012
|
+
type?: MovementType;
|
|
3013
|
+
from?: string;
|
|
3014
|
+
to?: string;
|
|
3015
|
+
limit?: number;
|
|
3016
|
+
cursor?: string;
|
|
3017
|
+
}
|
|
3018
|
+
/** Parameters for listing low-stock items */
|
|
3019
|
+
interface ListLowStockParams {
|
|
3020
|
+
propertyId: string;
|
|
3021
|
+
category?: SupplyCategory;
|
|
3022
|
+
limit?: number;
|
|
3023
|
+
cursor?: string;
|
|
3024
|
+
}
|
|
3025
|
+
/** Paginated list of supply items */
|
|
3026
|
+
type PaginatedSupplyItems = Paginated<SupplyItem>;
|
|
3027
|
+
/** Paginated list of supply levels */
|
|
3028
|
+
type PaginatedSupplyLevels = Paginated<SupplyLevel>;
|
|
3029
|
+
/** Paginated list of supply movements */
|
|
3030
|
+
type PaginatedSupplyMovements = Paginated<SupplyMovement>;
|
|
3031
|
+
/** Status of an operational task */
|
|
3032
|
+
type TaskStatus = "open" | "in_progress" | "completed" | "cancelled";
|
|
3033
|
+
/** Priority of an operational task */
|
|
3034
|
+
type TaskPriority = "low" | "medium" | "high" | "urgent";
|
|
3035
|
+
/** A general operational task */
|
|
3036
|
+
interface OperationalTask {
|
|
3037
|
+
id: string;
|
|
3038
|
+
propertyId: string;
|
|
3039
|
+
title: string;
|
|
3040
|
+
description: string | null;
|
|
3041
|
+
status: TaskStatus;
|
|
3042
|
+
priority: TaskPriority;
|
|
3043
|
+
assignedTo: string | null;
|
|
3044
|
+
category: string | null;
|
|
3045
|
+
dueAt: string | null;
|
|
3046
|
+
notes: string | null;
|
|
3047
|
+
metadata: Record<string, unknown> | null;
|
|
3048
|
+
createdAt: string;
|
|
3049
|
+
updatedAt: string;
|
|
3050
|
+
completedAt: string | null;
|
|
3051
|
+
}
|
|
3052
|
+
/** Input for creating an operational task */
|
|
3053
|
+
interface CreateTaskInput {
|
|
3054
|
+
propertyId: string;
|
|
3055
|
+
title: string;
|
|
3056
|
+
description?: string;
|
|
3057
|
+
priority?: TaskPriority;
|
|
3058
|
+
assignedTo?: string;
|
|
3059
|
+
category?: string;
|
|
3060
|
+
dueAt?: string;
|
|
3061
|
+
metadata?: Record<string, unknown>;
|
|
3062
|
+
}
|
|
3063
|
+
/** Input for updating an operational task */
|
|
3064
|
+
interface UpdateTaskInput {
|
|
3065
|
+
title?: string;
|
|
3066
|
+
description?: string;
|
|
3067
|
+
status?: TaskStatus;
|
|
3068
|
+
priority?: TaskPriority;
|
|
3069
|
+
assignedTo?: string;
|
|
3070
|
+
category?: string;
|
|
3071
|
+
dueAt?: string;
|
|
3072
|
+
notes?: string;
|
|
3073
|
+
metadata?: Record<string, unknown>;
|
|
3074
|
+
}
|
|
3075
|
+
/** Parameters for listing operational tasks */
|
|
3076
|
+
interface ListTasksParams {
|
|
3077
|
+
propertyId?: string;
|
|
3078
|
+
status?: TaskStatus;
|
|
3079
|
+
priority?: TaskPriority;
|
|
3080
|
+
assignedTo?: string;
|
|
3081
|
+
category?: string;
|
|
3082
|
+
from?: string;
|
|
3083
|
+
to?: string;
|
|
3084
|
+
limit?: number;
|
|
3085
|
+
cursor?: string;
|
|
3086
|
+
}
|
|
3087
|
+
/** Paginated list of operational tasks */
|
|
3088
|
+
type PaginatedTasks = Paginated<OperationalTask>;
|
|
2670
3089
|
|
|
2671
3090
|
/**
|
|
2672
3091
|
* Service for housekeeping operations in the Atzentis Booking API.
|
|
@@ -3335,6 +3754,201 @@ declare class RatePlansService extends BaseService {
|
|
|
3335
3754
|
comparePortfolioRates(input: ComparePortfolioRatesInput): Promise<PortfolioRateComparison>;
|
|
3336
3755
|
}
|
|
3337
3756
|
|
|
3757
|
+
/** Status of a review */
|
|
3758
|
+
type ReviewStatus = "pending" | "published" | "rejected" | "flagged";
|
|
3759
|
+
/** Action to take when moderating a review */
|
|
3760
|
+
type ModerationAction = "approve" | "reject" | "flag";
|
|
3761
|
+
/** Sort field for reviews */
|
|
3762
|
+
type ReviewSortBy = "createdAt" | "rating" | "updatedAt";
|
|
3763
|
+
/** Channel for sending review requests */
|
|
3764
|
+
type ReviewRequestChannel = "email" | "sms" | "push";
|
|
3765
|
+
/** Status of a review request */
|
|
3766
|
+
type ReviewRequestStatus = "sent" | "scheduled" | "failed";
|
|
3767
|
+
/** Period for analytics aggregation */
|
|
3768
|
+
type AnalyticsPeriod = "day" | "week" | "month" | "year";
|
|
3769
|
+
/** An owner response to a review */
|
|
3770
|
+
interface ReviewResponse {
|
|
3771
|
+
id: string;
|
|
3772
|
+
reviewId: string;
|
|
3773
|
+
content: string;
|
|
3774
|
+
respondedBy: string | null;
|
|
3775
|
+
createdAt: string;
|
|
3776
|
+
updatedAt: string;
|
|
3777
|
+
}
|
|
3778
|
+
/** A trend data point in review analytics */
|
|
3779
|
+
interface ReviewTrend {
|
|
3780
|
+
period: string;
|
|
3781
|
+
startDate: string;
|
|
3782
|
+
endDate: string;
|
|
3783
|
+
averageRating: number;
|
|
3784
|
+
reviewCount: number;
|
|
3785
|
+
}
|
|
3786
|
+
/** A guest review */
|
|
3787
|
+
interface Review {
|
|
3788
|
+
id: string;
|
|
3789
|
+
propertyId: string;
|
|
3790
|
+
guestId: string;
|
|
3791
|
+
bookingId: string | null;
|
|
3792
|
+
rating: number;
|
|
3793
|
+
title: string;
|
|
3794
|
+
content: string;
|
|
3795
|
+
status: ReviewStatus;
|
|
3796
|
+
categories: Record<string, number> | null;
|
|
3797
|
+
language: string | null;
|
|
3798
|
+
response: ReviewResponse | null;
|
|
3799
|
+
moderationNotes: string | null;
|
|
3800
|
+
moderatedAt: string | null;
|
|
3801
|
+
moderatedBy: string | null;
|
|
3802
|
+
metadata: Record<string, unknown> | null;
|
|
3803
|
+
createdAt: string;
|
|
3804
|
+
updatedAt: string;
|
|
3805
|
+
deletedAt: string | null;
|
|
3806
|
+
}
|
|
3807
|
+
/** Aggregated review analytics for a property */
|
|
3808
|
+
interface ReviewAnalytics {
|
|
3809
|
+
propertyId: string;
|
|
3810
|
+
averageRating: number;
|
|
3811
|
+
totalReviews: number;
|
|
3812
|
+
ratingDistribution: Record<string, number>;
|
|
3813
|
+
categoryAverages: Record<string, number>;
|
|
3814
|
+
trends: ReviewTrend[];
|
|
3815
|
+
}
|
|
3816
|
+
/** A review request sent to a guest */
|
|
3817
|
+
interface ReviewRequest {
|
|
3818
|
+
id: string;
|
|
3819
|
+
propertyId: string;
|
|
3820
|
+
guestId: string;
|
|
3821
|
+
bookingId: string;
|
|
3822
|
+
channel: ReviewRequestChannel;
|
|
3823
|
+
status: ReviewRequestStatus;
|
|
3824
|
+
sentAt: string | null;
|
|
3825
|
+
scheduledAt: string | null;
|
|
3826
|
+
createdAt: string;
|
|
3827
|
+
}
|
|
3828
|
+
/** Input for creating a review */
|
|
3829
|
+
interface CreateReviewInput {
|
|
3830
|
+
propertyId: string;
|
|
3831
|
+
guestId: string;
|
|
3832
|
+
rating: number;
|
|
3833
|
+
title: string;
|
|
3834
|
+
content: string;
|
|
3835
|
+
bookingId?: string;
|
|
3836
|
+
categories?: Record<string, number>;
|
|
3837
|
+
language?: string;
|
|
3838
|
+
metadata?: Record<string, unknown>;
|
|
3839
|
+
}
|
|
3840
|
+
/** Input for updating a review */
|
|
3841
|
+
interface UpdateReviewInput {
|
|
3842
|
+
title?: string;
|
|
3843
|
+
content?: string;
|
|
3844
|
+
rating?: number;
|
|
3845
|
+
categories?: Record<string, number>;
|
|
3846
|
+
language?: string;
|
|
3847
|
+
metadata?: Record<string, unknown>;
|
|
3848
|
+
}
|
|
3849
|
+
/** Parameters for listing reviews */
|
|
3850
|
+
interface ListReviewsParams {
|
|
3851
|
+
propertyId: string;
|
|
3852
|
+
status?: ReviewStatus;
|
|
3853
|
+
guestId?: string;
|
|
3854
|
+
bookingId?: string;
|
|
3855
|
+
minRating?: number;
|
|
3856
|
+
maxRating?: number;
|
|
3857
|
+
from?: string;
|
|
3858
|
+
to?: string;
|
|
3859
|
+
sortBy?: ReviewSortBy;
|
|
3860
|
+
sortOrder?: "asc" | "desc";
|
|
3861
|
+
limit?: number;
|
|
3862
|
+
cursor?: string;
|
|
3863
|
+
}
|
|
3864
|
+
/** Input for moderating a review */
|
|
3865
|
+
interface ModerateReviewInput {
|
|
3866
|
+
action: ModerationAction;
|
|
3867
|
+
notes?: string;
|
|
3868
|
+
reason?: string;
|
|
3869
|
+
}
|
|
3870
|
+
/** Input for creating an owner response */
|
|
3871
|
+
interface CreateReviewResponseInput {
|
|
3872
|
+
content: string;
|
|
3873
|
+
respondedBy?: string;
|
|
3874
|
+
}
|
|
3875
|
+
/** Input for updating an owner response */
|
|
3876
|
+
interface UpdateReviewResponseInput {
|
|
3877
|
+
content?: string;
|
|
3878
|
+
}
|
|
3879
|
+
/** Parameters for review analytics */
|
|
3880
|
+
interface ReviewAnalyticsParams {
|
|
3881
|
+
propertyId: string;
|
|
3882
|
+
from?: string;
|
|
3883
|
+
to?: string;
|
|
3884
|
+
period?: AnalyticsPeriod;
|
|
3885
|
+
}
|
|
3886
|
+
/** Input for sending a review request */
|
|
3887
|
+
interface SendReviewRequestInput {
|
|
3888
|
+
propertyId: string;
|
|
3889
|
+
guestId: string;
|
|
3890
|
+
bookingId: string;
|
|
3891
|
+
channel?: ReviewRequestChannel;
|
|
3892
|
+
scheduledAt?: string;
|
|
3893
|
+
templateId?: string;
|
|
3894
|
+
metadata?: Record<string, unknown>;
|
|
3895
|
+
}
|
|
3896
|
+
/** Paginated list of reviews */
|
|
3897
|
+
type PaginatedReviews = Paginated<Review>;
|
|
3898
|
+
|
|
3899
|
+
/**
|
|
3900
|
+
* Service for guest review management in the Atzentis Booking API.
|
|
3901
|
+
*
|
|
3902
|
+
* Provides review CRUD, moderation workflow, owner responses,
|
|
3903
|
+
* analytics, and review request triggering.
|
|
3904
|
+
*
|
|
3905
|
+
* @example
|
|
3906
|
+
* ```typescript
|
|
3907
|
+
* const booking = new BookingClient({ apiKey: "atz_io_live_xxxxx" });
|
|
3908
|
+
*
|
|
3909
|
+
* // List published reviews
|
|
3910
|
+
* const reviews = await booking.reviews.listReviews({
|
|
3911
|
+
* propertyId: "prop_1",
|
|
3912
|
+
* status: "published",
|
|
3913
|
+
* sortBy: "rating",
|
|
3914
|
+
* });
|
|
3915
|
+
*
|
|
3916
|
+
* // Moderate a review
|
|
3917
|
+
* await booking.reviews.moderateReview("rev_1", { action: "approve" });
|
|
3918
|
+
*
|
|
3919
|
+
* // Get analytics
|
|
3920
|
+
* const analytics = await booking.reviews.getAnalytics({
|
|
3921
|
+
* propertyId: "prop_1",
|
|
3922
|
+
* period: "month",
|
|
3923
|
+
* });
|
|
3924
|
+
* ```
|
|
3925
|
+
*/
|
|
3926
|
+
declare class ReviewsService extends BaseService {
|
|
3927
|
+
protected readonly basePath = "/guest/v1";
|
|
3928
|
+
/** Create a review */
|
|
3929
|
+
createReview(input: CreateReviewInput): Promise<Review>;
|
|
3930
|
+
/** Get a review by ID */
|
|
3931
|
+
getReview(reviewId: string): Promise<Review>;
|
|
3932
|
+
/** List reviews with optional filters */
|
|
3933
|
+
listReviews(params: ListReviewsParams): Promise<PaginatedReviews>;
|
|
3934
|
+
/** Update a review */
|
|
3935
|
+
updateReview(reviewId: string, input: UpdateReviewInput): Promise<Review>;
|
|
3936
|
+
/** Delete a review */
|
|
3937
|
+
deleteReview(reviewId: string): Promise<void>;
|
|
3938
|
+
/** Moderate a review (approve, reject, or flag) */
|
|
3939
|
+
moderateReview(reviewId: string, input: ModerateReviewInput): Promise<Review>;
|
|
3940
|
+
/** Create an owner response to a review */
|
|
3941
|
+
createResponse(reviewId: string, input: CreateReviewResponseInput): Promise<ReviewResponse>;
|
|
3942
|
+
/** Update an owner response */
|
|
3943
|
+
updateResponse(reviewId: string, input: UpdateReviewResponseInput): Promise<ReviewResponse>;
|
|
3944
|
+
/** Delete an owner response */
|
|
3945
|
+
deleteResponse(reviewId: string): Promise<void>;
|
|
3946
|
+
/** Get review analytics for a property */
|
|
3947
|
+
getAnalytics(params: ReviewAnalyticsParams): Promise<ReviewAnalytics>;
|
|
3948
|
+
/** Send a review request to a guest */
|
|
3949
|
+
sendReviewRequest(input: SendReviewRequestInput): Promise<ReviewRequest>;
|
|
3950
|
+
}
|
|
3951
|
+
|
|
3338
3952
|
/**
|
|
3339
3953
|
* Service for managing bookable spaces in the Atzentis Booking API.
|
|
3340
3954
|
*
|
|
@@ -3612,6 +4226,91 @@ declare class StaffService extends BaseService {
|
|
|
3612
4226
|
listShifts(staffId: string, params?: ListShiftsParams): Promise<StaffShift[]>;
|
|
3613
4227
|
}
|
|
3614
4228
|
|
|
4229
|
+
/**
|
|
4230
|
+
* Service for supply and inventory management in the Atzentis Booking API.
|
|
4231
|
+
*
|
|
4232
|
+
* Provides item CRUD, stock level tracking, movement recording,
|
|
4233
|
+
* and low-stock alert queries.
|
|
4234
|
+
*
|
|
4235
|
+
* @example
|
|
4236
|
+
* ```typescript
|
|
4237
|
+
* const booking = new BookingClient({ apiKey: "atz_io_live_xxxxx" });
|
|
4238
|
+
*
|
|
4239
|
+
* // Create a supply item
|
|
4240
|
+
* const item = await booking.supply.createItem({
|
|
4241
|
+
* propertyId: "prop_1",
|
|
4242
|
+
* name: "Bath Towels",
|
|
4243
|
+
* category: "linens",
|
|
4244
|
+
* unit: "piece",
|
|
4245
|
+
* });
|
|
4246
|
+
*
|
|
4247
|
+
* // Record a stock movement
|
|
4248
|
+
* await booking.supply.createMovement({
|
|
4249
|
+
* itemId: item.id,
|
|
4250
|
+
* type: "received",
|
|
4251
|
+
* quantity: 50,
|
|
4252
|
+
* });
|
|
4253
|
+
*
|
|
4254
|
+
* // Check low-stock items
|
|
4255
|
+
* const lowStock = await booking.supply.listLowStock({ propertyId: "prop_1" });
|
|
4256
|
+
* ```
|
|
4257
|
+
*/
|
|
4258
|
+
declare class SupplyService extends BaseService {
|
|
4259
|
+
protected readonly basePath = "/operations/v1";
|
|
4260
|
+
/** Create a supply item */
|
|
4261
|
+
createItem(input: CreateSupplyItemInput): Promise<SupplyItem>;
|
|
4262
|
+
/** Get a supply item by ID */
|
|
4263
|
+
getItem(itemId: string): Promise<SupplyItem>;
|
|
4264
|
+
/** List supply items with optional filters */
|
|
4265
|
+
listItems(params: ListSupplyItemsParams): Promise<PaginatedSupplyItems>;
|
|
4266
|
+
/** Update a supply item */
|
|
4267
|
+
updateItem(itemId: string, input: UpdateSupplyItemInput): Promise<SupplyItem>;
|
|
4268
|
+
/** Delete a supply item */
|
|
4269
|
+
deleteItem(itemId: string): Promise<void>;
|
|
4270
|
+
/** Get the current stock level for a supply item */
|
|
4271
|
+
getLevel(itemId: string): Promise<SupplyLevel>;
|
|
4272
|
+
/** List stock levels with optional filters */
|
|
4273
|
+
listLevels(params: ListSupplyLevelsParams): Promise<PaginatedSupplyLevels>;
|
|
4274
|
+
/** Update a stock level manually */
|
|
4275
|
+
updateLevel(itemId: string, input: UpdateSupplyLevelInput): Promise<SupplyLevel>;
|
|
4276
|
+
/** Record a stock movement */
|
|
4277
|
+
createMovement(input: CreateSupplyMovementInput): Promise<SupplyMovement>;
|
|
4278
|
+
/** List supply movements with optional filters */
|
|
4279
|
+
listMovements(params: ListSupplyMovementsParams): Promise<PaginatedSupplyMovements>;
|
|
4280
|
+
/** List items whose stock is at or below reorder threshold */
|
|
4281
|
+
listLowStock(params: ListLowStockParams): Promise<PaginatedSupplyItems>;
|
|
4282
|
+
}
|
|
4283
|
+
|
|
4284
|
+
/**
|
|
4285
|
+
* Service for general operational tasks in the Atzentis Booking API.
|
|
4286
|
+
*
|
|
4287
|
+
* Provides task creation, listing with filters, and status updates.
|
|
4288
|
+
*
|
|
4289
|
+
* @example
|
|
4290
|
+
* ```typescript
|
|
4291
|
+
* const booking = new BookingClient({ apiKey: "atz_io_live_xxxxx" });
|
|
4292
|
+
*
|
|
4293
|
+
* // Create a task
|
|
4294
|
+
* const task = await booking.tasks.create({
|
|
4295
|
+
* propertyId: "prop_1",
|
|
4296
|
+
* title: "Restock minibar in room 204",
|
|
4297
|
+
* priority: "high",
|
|
4298
|
+
* });
|
|
4299
|
+
*
|
|
4300
|
+
* // Update task status
|
|
4301
|
+
* await booking.tasks.update(task.id, { status: "in_progress" });
|
|
4302
|
+
* ```
|
|
4303
|
+
*/
|
|
4304
|
+
declare class TasksService extends BaseService {
|
|
4305
|
+
protected readonly basePath = "/operations/v1/tasks";
|
|
4306
|
+
/** Create an operational task */
|
|
4307
|
+
create(input: CreateTaskInput): Promise<OperationalTask>;
|
|
4308
|
+
/** List operational tasks with optional filters */
|
|
4309
|
+
list(params?: ListTasksParams): Promise<PaginatedTasks>;
|
|
4310
|
+
/** Update an operational task */
|
|
4311
|
+
update(taskId: string, input: UpdateTaskInput): Promise<OperationalTask>;
|
|
4312
|
+
}
|
|
4313
|
+
|
|
3615
4314
|
/**
|
|
3616
4315
|
* Main SDK client for the Atzentis Booking API.
|
|
3617
4316
|
*
|
|
@@ -3625,6 +4324,8 @@ declare class BookingClient {
|
|
|
3625
4324
|
readonly httpClient: HttpClient;
|
|
3626
4325
|
private _availability?;
|
|
3627
4326
|
private _bookings?;
|
|
4327
|
+
private _categories?;
|
|
4328
|
+
private _discounts?;
|
|
3628
4329
|
private _distribution?;
|
|
3629
4330
|
private _finance?;
|
|
3630
4331
|
private _groups?;
|
|
@@ -3634,9 +4335,11 @@ declare class BookingClient {
|
|
|
3634
4335
|
private _payments?;
|
|
3635
4336
|
private _properties?;
|
|
3636
4337
|
private _ratePlans?;
|
|
3637
|
-
private
|
|
4338
|
+
private _reviews?;
|
|
3638
4339
|
private _spaces?;
|
|
3639
4340
|
private _staff?;
|
|
4341
|
+
private _supply?;
|
|
4342
|
+
private _tasks?;
|
|
3640
4343
|
constructor(config: BookingClientConfig);
|
|
3641
4344
|
/** Availability service — lazy-initialized on first access */
|
|
3642
4345
|
get availability(): AvailabilityService;
|
|
@@ -3662,10 +4365,18 @@ declare class BookingClient {
|
|
|
3662
4365
|
get ratePlans(): RatePlansService;
|
|
3663
4366
|
/** Categories service — lazy-initialized on first access */
|
|
3664
4367
|
get categories(): CategoriesService;
|
|
4368
|
+
/** Discounts service — lazy-initialized on first access */
|
|
4369
|
+
get discounts(): DiscountsService;
|
|
4370
|
+
/** Reviews service — lazy-initialized on first access */
|
|
4371
|
+
get reviews(): ReviewsService;
|
|
3665
4372
|
/** Spaces service — lazy-initialized on first access */
|
|
3666
4373
|
get spaces(): SpacesService;
|
|
3667
4374
|
/** Staff service — lazy-initialized on first access */
|
|
3668
4375
|
get staff(): StaffService;
|
|
4376
|
+
/** Supply service — lazy-initialized on first access */
|
|
4377
|
+
get supply(): SupplyService;
|
|
4378
|
+
/** Tasks service — lazy-initialized on first access */
|
|
4379
|
+
get tasks(): TasksService;
|
|
3669
4380
|
setApiKey(key: string): void;
|
|
3670
4381
|
setTenantId(id: string): void;
|
|
3671
4382
|
}
|
|
@@ -3748,4 +4459,4 @@ declare function firstPage<T>(fetcher: PageFetcher<T>, options?: PaginationOptio
|
|
|
3748
4459
|
|
|
3749
4460
|
declare const VERSION = "0.1.0";
|
|
3750
4461
|
|
|
3751
|
-
export { type AccountingDailyReport, type AccountingReportParams, type AccountingRevenueReport, type AccountingVatReport, type AppliedRestriction, type AssignSpaceInput, AuthenticationError, type Authorization, type AuthorizationStatus, type AuthorizeInput, type AvailabilityCheckParams, type AvailabilityPricing, type AvailabilityRestrictions, type AvailabilityResult, type AvailabilitySearchParams, type AvailabilitySearchResult, type AvailabilitySearchResultEntry, AvailabilityService, type AvailableSpace, BOOKING_STATUSES, BOOKING_TYPES, type Block, type BlockDate, type Booking, BookingClient, type BookingClientConfig, BookingError, type BookingErrorOptions, type BookingGuest, type BookingPricing, type BookingSort, type BookingSpace, type BookingStatus, type BookingType, BookingsService, type BulkUpdateSpaceInput, type CalculateRateInput, type CalendarDay, type CalendarParams, type CancelBookingInput, type CaptureInput, type CardDetails, CategoriesService, type CategoryPickup, type Channel, type ChannelCredentials, type ChannelMapping, type ChannelSettings, type ChannelStatus, type ChannelType, type ChargeType, type CheckInInput, type CheckOutInput, type ComparePortfolioRatesInput, ConflictError, type Coordinates, type CreateBlockInput, type CreateBookingInput, type CreateCategoryInput, type CreateChannelInput, type CreateChargeInput, type CreateFolioInput, type CreateFolioPaymentInput, type CreateGroupFolioInput, type CreateGroupInput, type CreateGuestInput, type CreateHousekeepingTaskInput, type CreateInvoiceInput, type CreateMappingInput, type CreatePaymentAccountInput, type CreatePropertyInput, type CreateRatePeriodInput, type CreateRatePlanInput, type CreateShiftInput, type CreateSpaceInput, type CreateStaffInput, DEFAULT_MODULES, type DatePickup, DistributionService, type DuplicateCandidate, FinanceService, type Folio, type FolioCharge, type FolioPayment, type FolioPostCharge, type FolioPostInput, type FolioPostItem, type FolioPostResult, type FolioStatus, ForbiddenError, type GetBoardParams, type GetNightAuditHistoryParams, type Group, type GroupBlockSummary, type GroupFolioResult, type GroupStatus, type GroupType, GroupsService, type Guest, type GuestAddress, type GuestBookingSummary, type GuestDuplicateResult, type GuestFolioSummary, type GuestHistoryParams, type GuestMatch, type GuestOrderSummary, type GuestPreferences, type GuestSearchResult, type GuestSort, GuestsService, type HousekeepingBoard, type HousekeepingBoardEntry, type HousekeepingPriority, HousekeepingService, type HousekeepingStatus, type HousekeepingTask, type HousekeepingTaskStatus, type HousekeepingTaskType, HttpClient, type HttpClientOptions, type HttpMethod, type HttpResponse, type ICalExportResult, type ICalImportInput, type ICalImportResult, type Invoice, type InvoiceStatus, type IrisInitiateInput, type IrisTransfer, type IrisTransferStatus, type LinkPosTableInput, type ListBookingsParams, type ListCategoriesParams, type ListChannelsParams, type ListChargesParams, type ListFolioPaymentsParams, type ListFolioPostParams, type ListFoliosParams, type ListGroupsParams, type ListGuestsParams, type ListHousekeepingTasksParams, type ListMappingsParams, type ListPaymentAccountsParams, type ListPropertiesParams, type ListRatePeriodsParams, type ListRatePlansParams, type ListShiftsParams, type ListSpacesParams, type ListStaffParams, type ListTransactionsParams, type Logger, type MergeGuestsInput, type MoveChargesInput, type NightAuditDiscrepancy, type NightAuditError, type NightAuditOccupancy, type NightAuditPaymentMethod, type NightAuditPayments, type NightAuditReport, type NightAuditRevenue, type NightAuditRevenueBreakdown, type NightAuditRun, NightAuditService, type NightAuditStatus, type NightAuditSummary, type NightlyRate, type NoShowInput, NotFoundError, type OccupancyStatus, PROPERTY_MODULES, type PageFetcher, type Paginated, type PaginatedBookings, type PaginatedChannels, type PaginatedCharges, type PaginatedFolioPayments, type PaginatedFolioPostCharges, type PaginatedFolios, type PaginatedGroups, type PaginatedGuestBookings, type PaginatedGuestFolios, type PaginatedGuestOrders, type PaginatedGuests, type PaginatedHousekeepingTasks, type PaginatedMappings, type PaginatedNightAuditRuns, type PaginatedPaymentAccounts, type PaginatedRatePeriods, type PaginatedRatePlans, type PaginatedStaff, type PaginatedSyncLog, type PaginatedTransactions, type PaginationOptions, type Payment, type PaymentAccount, type PaymentAccountStatus, PaymentError, type PaymentProvider, type PaymentStatus, PaymentsService, type Pickup, type PortfolioPropertyRate, type PortfolioRateComparison, type PortfolioRatePushResult, type PortfolioTargetResult, type PriceRange, type PricingParams, type PricingResult, type ProcessPaymentInput, PropertiesService, type Property, type PropertyAddress, type PropertyModules, type PropertyStatus, type PropertyType, type PullSyncInput, type PushPortfolioRatesInput, type PushSyncInput, type RateCalculation, RateLimitError, type RateModifier, type RatePeriod, type RatePlan, type RatePlanStatus, RatePlansService, type RateRestriction, type Refund, type RefundInput, type RefundStatus, type ReleaseBlocksInput, type ReleaseResult, type RequestOptions, type ResolvedBookingClientConfig, type RetryConfig, type RetryOptions, type RunNightAuditInput, SPACE_STATUSES, SPACE_TYPES, type SearchGuestsParams, ServerError, type ServiceSlotParams, type ServiceTimeSlot, type ShiftType, type Space, type SpaceCategory, type SpaceStatus, type SpaceType, SpacesService, type Staff, type StaffDepartment, type StaffRole, StaffService, type StaffShift, type StaffStatus, type SyncError, type SyncLogParams, type SyncOperation, type SyncOperationStatus, type SyncOperationType, type SyncStats, type TableSlotParams, type TerminalAuthorizeInput, type TerminalTransaction, type TerminalTransactionStatus, type TimeSlot, TimeoutError, type Transaction, type TransactionType, type UpdateBookingInput, type UpdateCategoryInput, type UpdateChannelInput, type UpdateFolioInput, type UpdateGroupInput, type UpdateGuestInput, type UpdateGuestPreferences, type UpdateHousekeepingTaskInput, type UpdatePropertyInput, type UpdateRatePeriodInput, type UpdateRatePlanInput, type UpdateRateRestrictionInput, type UpdateSpaceInput, type UpdateSpaceStatusInput, type UpdateStaffInput, VERSION, ValidationError, type VatBreakdownEntry, bookingClientConfigSchema, createErrorFromResponse, firstPage, paginate };
|
|
4462
|
+
export { type AccountingDailyReport, type AccountingReportParams, type AccountingRevenueReport, type AccountingVatReport, type AnalyticsPeriod, type AppliedRestriction, type ApplyDiscountInput, type AssignSpaceInput, AuthenticationError, type Authorization, type AuthorizationStatus, type AuthorizeInput, type AvailabilityCheckParams, type AvailabilityPricing, type AvailabilityRestrictions, type AvailabilityResult, type AvailabilitySearchParams, type AvailabilitySearchResult, type AvailabilitySearchResultEntry, AvailabilityService, type AvailableSpace, BOOKING_STATUSES, BOOKING_TYPES, type Block, type BlockDate, type Booking, BookingClient, type BookingClientConfig, BookingError, type BookingErrorOptions, type BookingGuest, type BookingPricing, type BookingSort, type BookingSpace, type BookingStatus, type BookingType, BookingsService, type BulkUpdateSpaceInput, type CalculateRateInput, type CalendarDay, type CalendarParams, type CancelBookingInput, type CaptureInput, type CardDetails, CategoriesService, type CategoryPickup, type Channel, type ChannelCredentials, type ChannelMapping, type ChannelSettings, type ChannelStatus, type ChannelType, type ChargeType, type CheckInInput, type CheckOutInput, type ComparePortfolioRatesInput, ConflictError, type Coordinates, type Coupon, type CouponStatus, type CouponValidation, type CreateBlockInput, type CreateBookingInput, type CreateCategoryInput, type CreateChannelInput, type CreateChargeInput, type CreateDiscountRuleInput, type CreateFolioInput, type CreateFolioPaymentInput, type CreateGroupFolioInput, type CreateGroupInput, type CreateGuestInput, type CreateHousekeepingTaskInput, type CreateInvoiceInput, type CreateMappingInput, type CreatePaymentAccountInput, type CreatePropertyInput, type CreateRatePeriodInput, type CreateRatePlanInput, type CreateReviewInput, type CreateReviewResponseInput, type CreateShiftInput, type CreateSpaceInput, type CreateStaffInput, type CreateSupplyItemInput, type CreateSupplyMovementInput, type CreateTaskInput, DEFAULT_MODULES, type DatePickup, type DiscountApplication, type DiscountRedemption, type DiscountRule, type DiscountRuleStatus, type DiscountSortBy, type DiscountType, type DiscountUsage, type DiscountUsageParams, type DiscountValueType, DiscountsService, DistributionService, type DuplicateCandidate, FinanceService, type Folio, type FolioCharge, type FolioPayment, type FolioPostCharge, type FolioPostInput, type FolioPostItem, type FolioPostResult, type FolioStatus, ForbiddenError, type GenerateCouponsInput, type GetBoardParams, type GetNightAuditHistoryParams, type Group, type GroupBlockSummary, type GroupFolioResult, type GroupStatus, type GroupType, GroupsService, type Guest, type GuestAddress, type GuestBookingSummary, type GuestDuplicateResult, type GuestFolioSummary, type GuestHistoryParams, type GuestMatch, type GuestOrderSummary, type GuestPreferences, type GuestSearchResult, type GuestSort, GuestsService, type HousekeepingBoard, type HousekeepingBoardEntry, type HousekeepingPriority, HousekeepingService, type HousekeepingStatus, type HousekeepingTask, type HousekeepingTaskStatus, type HousekeepingTaskType, HttpClient, type HttpClientOptions, type HttpMethod, type HttpResponse, type ICalExportResult, type ICalImportInput, type ICalImportResult, type Invoice, type InvoiceStatus, type IrisInitiateInput, type IrisTransfer, type IrisTransferStatus, type LinkPosTableInput, type ListBookingsParams, type ListCategoriesParams, type ListChannelsParams, type ListChargesParams, type ListDiscountRulesParams, type ListFolioPaymentsParams, type ListFolioPostParams, type ListFoliosParams, type ListGroupsParams, type ListGuestsParams, type ListHousekeepingTasksParams, type ListLowStockParams, type ListMappingsParams, type ListPaymentAccountsParams, type ListPropertiesParams, type ListRatePeriodsParams, type ListRatePlansParams, type ListReviewsParams, type ListShiftsParams, type ListSpacesParams, type ListStaffParams, type ListSupplyItemsParams, type ListSupplyLevelsParams, type ListSupplyMovementsParams, type ListTasksParams, type ListTransactionsParams, type Logger, type MergeGuestsInput, type ModerateReviewInput, type ModerationAction, type MoveChargesInput, type MovementType, type NightAuditDiscrepancy, type NightAuditError, type NightAuditOccupancy, type NightAuditPaymentMethod, type NightAuditPayments, type NightAuditReport, type NightAuditRevenue, type NightAuditRevenueBreakdown, type NightAuditRun, NightAuditService, type NightAuditStatus, type NightAuditSummary, type NightlyRate, type NoShowInput, NotFoundError, type OccupancyStatus, type OperationalTask, PROPERTY_MODULES, type PageFetcher, type Paginated, type PaginatedBookings, type PaginatedChannels, type PaginatedCharges, type PaginatedDiscountRules, type PaginatedFolioPayments, type PaginatedFolioPostCharges, type PaginatedFolios, type PaginatedGroups, type PaginatedGuestBookings, type PaginatedGuestFolios, type PaginatedGuestOrders, type PaginatedGuests, type PaginatedHousekeepingTasks, type PaginatedMappings, type PaginatedNightAuditRuns, type PaginatedPaymentAccounts, type PaginatedRatePeriods, type PaginatedRatePlans, type PaginatedReviews, type PaginatedStaff, type PaginatedSupplyItems, type PaginatedSupplyLevels, type PaginatedSupplyMovements, type PaginatedSyncLog, type PaginatedTasks, type PaginatedTransactions, type PaginationOptions, type Payment, type PaymentAccount, type PaymentAccountStatus, PaymentError, type PaymentProvider, type PaymentStatus, PaymentsService, type Pickup, type PortfolioPropertyRate, type PortfolioRateComparison, type PortfolioRatePushResult, type PortfolioTargetResult, type PriceRange, type PricingParams, type PricingResult, type ProcessPaymentInput, PropertiesService, type Property, type PropertyAddress, type PropertyModules, type PropertyStatus, type PropertyType, type PullSyncInput, type PushPortfolioRatesInput, type PushSyncInput, type RateCalculation, RateLimitError, type RateModifier, type RatePeriod, type RatePlan, type RatePlanStatus, RatePlansService, type RateRestriction, type Refund, type RefundInput, type RefundStatus, type ReleaseBlocksInput, type ReleaseResult, type RequestOptions, type ResolvedBookingClientConfig, type RetryConfig, type RetryOptions, type Review, type ReviewAnalytics, type ReviewAnalyticsParams, type ReviewRequest, type ReviewRequestChannel, type ReviewRequestStatus, type ReviewResponse, type ReviewSortBy, type ReviewStatus, type ReviewTrend, ReviewsService, type RunNightAuditInput, SPACE_STATUSES, SPACE_TYPES, type SearchGuestsParams, type SendReviewRequestInput, ServerError, type ServiceSlotParams, type ServiceTimeSlot, type ShiftType, type Space, type SpaceCategory, type SpaceStatus, type SpaceType, SpacesService, type Staff, type StaffDepartment, type StaffRole, StaffService, type StaffShift, type StaffStatus, type SupplyCategory, type SupplyItem, type SupplyLevel, type SupplyMovement, SupplyService, type SupplyUnit, type SyncError, type SyncLogParams, type SyncOperation, type SyncOperationStatus, type SyncOperationType, type SyncStats, type TableSlotParams, type TaskPriority, type TaskStatus, TasksService, type TerminalAuthorizeInput, type TerminalTransaction, type TerminalTransactionStatus, type TimeSlot, TimeoutError, type Transaction, type TransactionType, type UpdateBookingInput, type UpdateCategoryInput, type UpdateChannelInput, type UpdateDiscountRuleInput, type UpdateFolioInput, type UpdateGroupInput, type UpdateGuestInput, type UpdateGuestPreferences, type UpdateHousekeepingTaskInput, type UpdatePropertyInput, type UpdateRatePeriodInput, type UpdateRatePlanInput, type UpdateRateRestrictionInput, type UpdateReviewInput, type UpdateReviewResponseInput, type UpdateSpaceInput, type UpdateSpaceStatusInput, type UpdateStaffInput, type UpdateSupplyItemInput, type UpdateSupplyLevelInput, type UpdateTaskInput, VERSION, type ValidateCouponInput, ValidationError, type VatBreakdownEntry, bookingClientConfigSchema, createErrorFromResponse, firstPage, paginate };
|