@techzunction/sdk 0.5.0 → 0.6.1
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 +23 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.js +23 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -589,6 +589,14 @@ interface EarningsSummary {
|
|
|
589
589
|
paidPaise: number;
|
|
590
590
|
totalRooms: number;
|
|
591
591
|
}
|
|
592
|
+
interface ConnectedSource {
|
|
593
|
+
provider: string;
|
|
594
|
+
email: string | null;
|
|
595
|
+
connectedAt: string;
|
|
596
|
+
}
|
|
597
|
+
interface GoogleDriveConnectUrl {
|
|
598
|
+
url: string;
|
|
599
|
+
}
|
|
592
600
|
interface UploadResult {
|
|
593
601
|
url: string;
|
|
594
602
|
publicId: string;
|
|
@@ -1195,6 +1203,9 @@ interface ListWatchRoomsQuery extends PaginatedQuery {
|
|
|
1195
1203
|
interface ListEarningsQuery extends PaginatedQuery {
|
|
1196
1204
|
status?: 'pending' | 'paid';
|
|
1197
1205
|
}
|
|
1206
|
+
interface GoogleDriveCallbackDto {
|
|
1207
|
+
code: string;
|
|
1208
|
+
}
|
|
1198
1209
|
|
|
1199
1210
|
interface StaffRegisterDto {
|
|
1200
1211
|
name: string;
|
|
@@ -1846,6 +1857,7 @@ declare const TZ: {
|
|
|
1846
1857
|
pauseSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
1847
1858
|
resumeSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
1848
1859
|
endSession(sessionId: string): TZQuery<WatchSessionSummary>;
|
|
1860
|
+
updateSessionCap(sessionId: string, meterCapPaise: number): TZQuery<WatchSessionStatus>;
|
|
1849
1861
|
getWatchlist(): TZQuery<Movie[]>;
|
|
1850
1862
|
addToWatchlist(catalogItemId: string): TZQuery<void>;
|
|
1851
1863
|
removeFromWatchlist(catalogItemId: string): TZQuery<void>;
|
|
@@ -1926,6 +1938,12 @@ declare const TZ: {
|
|
|
1926
1938
|
getSummary(): TZQuery<EarningsSummary>;
|
|
1927
1939
|
getHistory(params?: ListEarningsQuery): TZPaginatedQuery<HostEarning>;
|
|
1928
1940
|
};
|
|
1941
|
+
connectedSources: {
|
|
1942
|
+
list(): TZQuery<ConnectedSource[]>;
|
|
1943
|
+
getGoogleDriveConnectUrl(): TZQuery<GoogleDriveConnectUrl>;
|
|
1944
|
+
connectGoogleDrive(data: GoogleDriveCallbackDto): TZQuery<ConnectedSource>;
|
|
1945
|
+
disconnect(provider: string): TZQuery<void>;
|
|
1946
|
+
};
|
|
1929
1947
|
};
|
|
1930
1948
|
/** Admin namespace — all staff/org-admin APIs */
|
|
1931
1949
|
readonly admin: {
|
|
@@ -2577,6 +2595,7 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
2577
2595
|
pauseSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
2578
2596
|
resumeSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
2579
2597
|
endSession(sessionId: string): TZQuery<WatchSessionSummary>;
|
|
2598
|
+
updateSessionCap(sessionId: string, meterCapPaise: number): TZQuery<WatchSessionStatus>;
|
|
2580
2599
|
getWatchlist(): TZQuery<Movie[]>;
|
|
2581
2600
|
addToWatchlist(catalogItemId: string): TZQuery<void>;
|
|
2582
2601
|
removeFromWatchlist(catalogItemId: string): TZQuery<void>;
|
|
@@ -2657,6 +2676,12 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
2657
2676
|
getSummary(): TZQuery<EarningsSummary>;
|
|
2658
2677
|
getHistory(params?: ListEarningsQuery): TZPaginatedQuery<HostEarning>;
|
|
2659
2678
|
};
|
|
2679
|
+
connectedSources: {
|
|
2680
|
+
list(): TZQuery<ConnectedSource[]>;
|
|
2681
|
+
getGoogleDriveConnectUrl(): TZQuery<GoogleDriveConnectUrl>;
|
|
2682
|
+
connectGoogleDrive(data: GoogleDriveCallbackDto): TZQuery<ConnectedSource>;
|
|
2683
|
+
disconnect(provider: string): TZQuery<void>;
|
|
2684
|
+
};
|
|
2660
2685
|
};
|
|
2661
2686
|
admin: {
|
|
2662
2687
|
auth: {
|
|
@@ -3117,4 +3142,4 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
3117
3142
|
}>;
|
|
3118
3143
|
};
|
|
3119
3144
|
|
|
3120
|
-
export { type AddCartItemDto, type AddSegmentMembersDto, type Address, type AdjustLoyaltyPointsDto, type AdminCancelBookingDto, type AdminListOrdersQuery, type AdminMealSubscription, type AdminOrganization, type ApiError, type ApiKey, type ApplyStudentPassDto, type AssignPropertyUnitsDto, type AssignStaffRolesDto, type AuditLog, type AuthResponse, type AuthScope, type AuthTokens, type BulkReviewStudentPassesDto, type BulkUpdateSettingsDto, type BulkUpsertEndUsersDto, type CalculateDeliveryDto, type CancelPropertyBookingDto, type Cart, type CartItemOption, type CartLineItem, type CatalogCategory, type CatalogItem, type CatalogItemVariant, type CatalogOption, type CatalogOptionGroup, type ChangeEndUserPasswordDto, type CheckPropertyAvailabilityQuery, type CheckReservationAvailabilityQuery, type CompleteSignupDto, type ContactMessage, type ContentPost, type CouponValidation, type CreateAddressDto, type CreateApiKeyDto, type CreateCatalogCategoryDto, type CreateCatalogOptionDto, type CreateCatalogOptionGroupDto, type CreateCatalogVariantDto, type CreateHelpArticleDto, type CreateIngredientDto, type CreateInstitutionDto, type CreateMealPlanDto, type CreateOrderDto, type CreatePaymentOrderDto, type CreatePropertyAmenityDto, type CreatePropertyBookingDto, type CreatePropertyPaymentOrderDto, type CreatePurchaseOrderDto, type CreateReservationDto, type CreateReviewDto, type CreateRoleDto, type CreateStudentDiscountDto, type CreateSuperAdminDto, type CreateSupplierDto, type CreateSupportTicketDto, type CreateWasteLogDto, type CreateWatchRoomDto, type DeliveryCalculation, type DeliveryTracking, type DiscountPreview, type EarningsSummary, type EndUser, type EndUserProfile, type EndUserRequestResetDto, type EndUserResetPasswordDto, type EndUserSendOtpDto, type EndUserTagsDto, type EndUserVerifyOtpDto, type GetCatalogItemsQuery, type GiftCard, type HelpArticle, type HostEarning, type Ingredient, type Institution, type InviteStaffUserDto, type JoinWatchRoomDto, type ListCatalogItemsQuery, type ListContentQuery, type ListEarningsQuery, type ListEndUsersQuery, type ListMoviesQuery, type ListOrdersQuery, type ListOrganizationsQuery, type ListReviewsQuery, type ListStaffUsersQuery, type ListStudentPassesQuery, type ListSuperAdminsQuery, type ListWatchRoomsQuery, type LocationHours, type LoginEndUserDto, type LoyaltyAccount, type LoyaltyRedemption, type LoyaltyReward, type LoyaltyTransaction, type MealPlan, type MealSubscription, type Movie, type MovieDetail, type Notification, type Order, type OrderItem, type OrderStatus, type OrderType, type PaginatedQuery, type PaginatedResponse, type PaginationParams, type PaymentMethod, type PaymentOrder, type PaymentVerification, type PlatformPlan, type PreviewStudentDiscountDto, type PreviewTemplateDto, type Promotion, type PropertyAvailability, type PropertyBooking, type PropertyPriceResolution, type PropertyType, type PurchaseGiftCardDto, type PurchaseOrder, type PurchaseOrderItem, type QueryMealSubscriptionsParams, type QueryPurchaseOrdersParams, type RawResponse, type RedeemGiftCardDto, type RedeemLoyaltyRewardDto, type ReferralInfo, type ReferralValidation, type RegisterEndUserDto, type ReorderDto, type ReplySupportTicketDto, type ReportOrderIssueDto, type RequestMagicLinkDto, type Reservation, type ReservationSlot, type ResolvePropertyPriceDto, type Review, type ReviewStudentPassDto, type Role, type ScheduleCampaignDto, ScopedClient, type SearchQuery, type SearchStatusQuery, type SetLocationHoursDto, type SetPropertyTypeAmenitiesDto, type SetSettingDto, type StaffAuthResponse, type StaffChangePasswordDto, type StaffLoginDto, type StaffRegisterDto, type StaffRequestPasswordResetDto, type StaffResetPasswordDto, type StaffSendOtpDto, type StaffUser, type StaffVerifyOtpDto, type StartSignupDto, type StartWatchSessionDto, type StatusQuery, type StockAlert, type StoreLocation, type StorefrontConfig, type StudentDiscount, type StudentPassStatus, type SubmitContactDto, type SubscribeBillingPlanDto, type SubscribeMealPlanDto, type SubscribeNewsletterDto, type SuperAdminLoginDto, type SuperAdminStats, type SuperAdmin as SuperAdminUser, type Supplier, type SupportReply, type SupportTicket, type SwitchWatchRoomModeDto, TZ, TZClient, type TZConfig, type TZInitOptions, TZPaginatedQuery, TZQuery, type TmdbMovie, type TmdbMovieDetail, type TokenStore, type TopUpWalletDto, type UpdateAddressDto, type UpdateApiKeyDto, type UpdateCartItemDto, type UpdateCatalogCategoryDto, type UpdateCatalogOptionDto, type UpdateCatalogOptionGroupDto, type UpdateCatalogVariantDto, type UpdateEndUserProfileDto, type UpdateHelpArticleDto, type UpdateHousekeepingDto, type UpdateIngredientDto, type UpdateInstitutionDto, type UpdateMealPlanDto, type UpdateMovieProgressDto, type UpdateOrderStatusDto, type UpdateOrgDto, type UpdatePurchaseOrderDto, type UpdateReservationStatusDto, type UpdateReviewStatusDto, type UpdateRoleDto, type UpdateStaffUserDto, type UpdateStudentDiscountDto, type UpdateSupplierDto, type UpdateSupportTicketDto, type UploadResult, type ValidateCouponDto, type ValidateReferralDto, type VerifyMagicLinkQuery, type VerifyPaymentDto, type VerifySignupOtpDto, type WalletBalance, type WalletPack, type WalletTransaction, type WasteLog, type WatchRoom, type WatchRoomJoinResponse, type WatchRoomMessage, type WatchRoomPlaybackState, type WatchRoomPrivacy, type WatchRoomStatus, type WatchRoomVibe, type WatchRoomViewer, type WatchRoomViewerMode, type WatchSessionResponse, type WatchSessionStatus, type WatchSessionStatusType, type WatchSessionSummary, createTZ };
|
|
3145
|
+
export { type AddCartItemDto, type AddSegmentMembersDto, type Address, type AdjustLoyaltyPointsDto, type AdminCancelBookingDto, type AdminListOrdersQuery, type AdminMealSubscription, type AdminOrganization, type ApiError, type ApiKey, type ApplyStudentPassDto, type AssignPropertyUnitsDto, type AssignStaffRolesDto, type AuditLog, type AuthResponse, type AuthScope, type AuthTokens, type BulkReviewStudentPassesDto, type BulkUpdateSettingsDto, type BulkUpsertEndUsersDto, type CalculateDeliveryDto, type CancelPropertyBookingDto, type Cart, type CartItemOption, type CartLineItem, type CatalogCategory, type CatalogItem, type CatalogItemVariant, type CatalogOption, type CatalogOptionGroup, type ChangeEndUserPasswordDto, type CheckPropertyAvailabilityQuery, type CheckReservationAvailabilityQuery, type CompleteSignupDto, type ConnectedSource, type ContactMessage, type ContentPost, type CouponValidation, type CreateAddressDto, type CreateApiKeyDto, type CreateCatalogCategoryDto, type CreateCatalogOptionDto, type CreateCatalogOptionGroupDto, type CreateCatalogVariantDto, type CreateHelpArticleDto, type CreateIngredientDto, type CreateInstitutionDto, type CreateMealPlanDto, type CreateOrderDto, type CreatePaymentOrderDto, type CreatePropertyAmenityDto, type CreatePropertyBookingDto, type CreatePropertyPaymentOrderDto, type CreatePurchaseOrderDto, type CreateReservationDto, type CreateReviewDto, type CreateRoleDto, type CreateStudentDiscountDto, type CreateSuperAdminDto, type CreateSupplierDto, type CreateSupportTicketDto, type CreateWasteLogDto, type CreateWatchRoomDto, type DeliveryCalculation, type DeliveryTracking, type DiscountPreview, type EarningsSummary, type EndUser, type EndUserProfile, type EndUserRequestResetDto, type EndUserResetPasswordDto, type EndUserSendOtpDto, type EndUserTagsDto, type EndUserVerifyOtpDto, type GetCatalogItemsQuery, type GiftCard, type GoogleDriveCallbackDto, type GoogleDriveConnectUrl, type HelpArticle, type HostEarning, type Ingredient, type Institution, type InviteStaffUserDto, type JoinWatchRoomDto, type ListCatalogItemsQuery, type ListContentQuery, type ListEarningsQuery, type ListEndUsersQuery, type ListMoviesQuery, type ListOrdersQuery, type ListOrganizationsQuery, type ListReviewsQuery, type ListStaffUsersQuery, type ListStudentPassesQuery, type ListSuperAdminsQuery, type ListWatchRoomsQuery, type LocationHours, type LoginEndUserDto, type LoyaltyAccount, type LoyaltyRedemption, type LoyaltyReward, type LoyaltyTransaction, type MealPlan, type MealSubscription, type Movie, type MovieDetail, type Notification, type Order, type OrderItem, type OrderStatus, type OrderType, type PaginatedQuery, type PaginatedResponse, type PaginationParams, type PaymentMethod, type PaymentOrder, type PaymentVerification, type PlatformPlan, type PreviewStudentDiscountDto, type PreviewTemplateDto, type Promotion, type PropertyAvailability, type PropertyBooking, type PropertyPriceResolution, type PropertyType, type PurchaseGiftCardDto, type PurchaseOrder, type PurchaseOrderItem, type QueryMealSubscriptionsParams, type QueryPurchaseOrdersParams, type RawResponse, type RedeemGiftCardDto, type RedeemLoyaltyRewardDto, type ReferralInfo, type ReferralValidation, type RegisterEndUserDto, type ReorderDto, type ReplySupportTicketDto, type ReportOrderIssueDto, type RequestMagicLinkDto, type Reservation, type ReservationSlot, type ResolvePropertyPriceDto, type Review, type ReviewStudentPassDto, type Role, type ScheduleCampaignDto, ScopedClient, type SearchQuery, type SearchStatusQuery, type SetLocationHoursDto, type SetPropertyTypeAmenitiesDto, type SetSettingDto, type StaffAuthResponse, type StaffChangePasswordDto, type StaffLoginDto, type StaffRegisterDto, type StaffRequestPasswordResetDto, type StaffResetPasswordDto, type StaffSendOtpDto, type StaffUser, type StaffVerifyOtpDto, type StartSignupDto, type StartWatchSessionDto, type StatusQuery, type StockAlert, type StoreLocation, type StorefrontConfig, type StudentDiscount, type StudentPassStatus, type SubmitContactDto, type SubscribeBillingPlanDto, type SubscribeMealPlanDto, type SubscribeNewsletterDto, type SuperAdminLoginDto, type SuperAdminStats, type SuperAdmin as SuperAdminUser, type Supplier, type SupportReply, type SupportTicket, type SwitchWatchRoomModeDto, TZ, TZClient, type TZConfig, type TZInitOptions, TZPaginatedQuery, TZQuery, type TmdbMovie, type TmdbMovieDetail, type TokenStore, type TopUpWalletDto, type UpdateAddressDto, type UpdateApiKeyDto, type UpdateCartItemDto, type UpdateCatalogCategoryDto, type UpdateCatalogOptionDto, type UpdateCatalogOptionGroupDto, type UpdateCatalogVariantDto, type UpdateEndUserProfileDto, type UpdateHelpArticleDto, type UpdateHousekeepingDto, type UpdateIngredientDto, type UpdateInstitutionDto, type UpdateMealPlanDto, type UpdateMovieProgressDto, type UpdateOrderStatusDto, type UpdateOrgDto, type UpdatePurchaseOrderDto, type UpdateReservationStatusDto, type UpdateReviewStatusDto, type UpdateRoleDto, type UpdateStaffUserDto, type UpdateStudentDiscountDto, type UpdateSupplierDto, type UpdateSupportTicketDto, type UploadResult, type ValidateCouponDto, type ValidateReferralDto, type VerifyMagicLinkQuery, type VerifyPaymentDto, type VerifySignupOtpDto, type WalletBalance, type WalletPack, type WalletTransaction, type WasteLog, type WatchRoom, type WatchRoomJoinResponse, type WatchRoomMessage, type WatchRoomPlaybackState, type WatchRoomPrivacy, type WatchRoomStatus, type WatchRoomVibe, type WatchRoomViewer, type WatchRoomViewerMode, type WatchSessionResponse, type WatchSessionStatus, type WatchSessionStatusType, type WatchSessionSummary, createTZ };
|
package/dist/index.d.ts
CHANGED
|
@@ -589,6 +589,14 @@ interface EarningsSummary {
|
|
|
589
589
|
paidPaise: number;
|
|
590
590
|
totalRooms: number;
|
|
591
591
|
}
|
|
592
|
+
interface ConnectedSource {
|
|
593
|
+
provider: string;
|
|
594
|
+
email: string | null;
|
|
595
|
+
connectedAt: string;
|
|
596
|
+
}
|
|
597
|
+
interface GoogleDriveConnectUrl {
|
|
598
|
+
url: string;
|
|
599
|
+
}
|
|
592
600
|
interface UploadResult {
|
|
593
601
|
url: string;
|
|
594
602
|
publicId: string;
|
|
@@ -1195,6 +1203,9 @@ interface ListWatchRoomsQuery extends PaginatedQuery {
|
|
|
1195
1203
|
interface ListEarningsQuery extends PaginatedQuery {
|
|
1196
1204
|
status?: 'pending' | 'paid';
|
|
1197
1205
|
}
|
|
1206
|
+
interface GoogleDriveCallbackDto {
|
|
1207
|
+
code: string;
|
|
1208
|
+
}
|
|
1198
1209
|
|
|
1199
1210
|
interface StaffRegisterDto {
|
|
1200
1211
|
name: string;
|
|
@@ -1846,6 +1857,7 @@ declare const TZ: {
|
|
|
1846
1857
|
pauseSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
1847
1858
|
resumeSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
1848
1859
|
endSession(sessionId: string): TZQuery<WatchSessionSummary>;
|
|
1860
|
+
updateSessionCap(sessionId: string, meterCapPaise: number): TZQuery<WatchSessionStatus>;
|
|
1849
1861
|
getWatchlist(): TZQuery<Movie[]>;
|
|
1850
1862
|
addToWatchlist(catalogItemId: string): TZQuery<void>;
|
|
1851
1863
|
removeFromWatchlist(catalogItemId: string): TZQuery<void>;
|
|
@@ -1926,6 +1938,12 @@ declare const TZ: {
|
|
|
1926
1938
|
getSummary(): TZQuery<EarningsSummary>;
|
|
1927
1939
|
getHistory(params?: ListEarningsQuery): TZPaginatedQuery<HostEarning>;
|
|
1928
1940
|
};
|
|
1941
|
+
connectedSources: {
|
|
1942
|
+
list(): TZQuery<ConnectedSource[]>;
|
|
1943
|
+
getGoogleDriveConnectUrl(): TZQuery<GoogleDriveConnectUrl>;
|
|
1944
|
+
connectGoogleDrive(data: GoogleDriveCallbackDto): TZQuery<ConnectedSource>;
|
|
1945
|
+
disconnect(provider: string): TZQuery<void>;
|
|
1946
|
+
};
|
|
1929
1947
|
};
|
|
1930
1948
|
/** Admin namespace — all staff/org-admin APIs */
|
|
1931
1949
|
readonly admin: {
|
|
@@ -2577,6 +2595,7 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
2577
2595
|
pauseSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
2578
2596
|
resumeSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
2579
2597
|
endSession(sessionId: string): TZQuery<WatchSessionSummary>;
|
|
2598
|
+
updateSessionCap(sessionId: string, meterCapPaise: number): TZQuery<WatchSessionStatus>;
|
|
2580
2599
|
getWatchlist(): TZQuery<Movie[]>;
|
|
2581
2600
|
addToWatchlist(catalogItemId: string): TZQuery<void>;
|
|
2582
2601
|
removeFromWatchlist(catalogItemId: string): TZQuery<void>;
|
|
@@ -2657,6 +2676,12 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
2657
2676
|
getSummary(): TZQuery<EarningsSummary>;
|
|
2658
2677
|
getHistory(params?: ListEarningsQuery): TZPaginatedQuery<HostEarning>;
|
|
2659
2678
|
};
|
|
2679
|
+
connectedSources: {
|
|
2680
|
+
list(): TZQuery<ConnectedSource[]>;
|
|
2681
|
+
getGoogleDriveConnectUrl(): TZQuery<GoogleDriveConnectUrl>;
|
|
2682
|
+
connectGoogleDrive(data: GoogleDriveCallbackDto): TZQuery<ConnectedSource>;
|
|
2683
|
+
disconnect(provider: string): TZQuery<void>;
|
|
2684
|
+
};
|
|
2660
2685
|
};
|
|
2661
2686
|
admin: {
|
|
2662
2687
|
auth: {
|
|
@@ -3117,4 +3142,4 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
3117
3142
|
}>;
|
|
3118
3143
|
};
|
|
3119
3144
|
|
|
3120
|
-
export { type AddCartItemDto, type AddSegmentMembersDto, type Address, type AdjustLoyaltyPointsDto, type AdminCancelBookingDto, type AdminListOrdersQuery, type AdminMealSubscription, type AdminOrganization, type ApiError, type ApiKey, type ApplyStudentPassDto, type AssignPropertyUnitsDto, type AssignStaffRolesDto, type AuditLog, type AuthResponse, type AuthScope, type AuthTokens, type BulkReviewStudentPassesDto, type BulkUpdateSettingsDto, type BulkUpsertEndUsersDto, type CalculateDeliveryDto, type CancelPropertyBookingDto, type Cart, type CartItemOption, type CartLineItem, type CatalogCategory, type CatalogItem, type CatalogItemVariant, type CatalogOption, type CatalogOptionGroup, type ChangeEndUserPasswordDto, type CheckPropertyAvailabilityQuery, type CheckReservationAvailabilityQuery, type CompleteSignupDto, type ContactMessage, type ContentPost, type CouponValidation, type CreateAddressDto, type CreateApiKeyDto, type CreateCatalogCategoryDto, type CreateCatalogOptionDto, type CreateCatalogOptionGroupDto, type CreateCatalogVariantDto, type CreateHelpArticleDto, type CreateIngredientDto, type CreateInstitutionDto, type CreateMealPlanDto, type CreateOrderDto, type CreatePaymentOrderDto, type CreatePropertyAmenityDto, type CreatePropertyBookingDto, type CreatePropertyPaymentOrderDto, type CreatePurchaseOrderDto, type CreateReservationDto, type CreateReviewDto, type CreateRoleDto, type CreateStudentDiscountDto, type CreateSuperAdminDto, type CreateSupplierDto, type CreateSupportTicketDto, type CreateWasteLogDto, type CreateWatchRoomDto, type DeliveryCalculation, type DeliveryTracking, type DiscountPreview, type EarningsSummary, type EndUser, type EndUserProfile, type EndUserRequestResetDto, type EndUserResetPasswordDto, type EndUserSendOtpDto, type EndUserTagsDto, type EndUserVerifyOtpDto, type GetCatalogItemsQuery, type GiftCard, type HelpArticle, type HostEarning, type Ingredient, type Institution, type InviteStaffUserDto, type JoinWatchRoomDto, type ListCatalogItemsQuery, type ListContentQuery, type ListEarningsQuery, type ListEndUsersQuery, type ListMoviesQuery, type ListOrdersQuery, type ListOrganizationsQuery, type ListReviewsQuery, type ListStaffUsersQuery, type ListStudentPassesQuery, type ListSuperAdminsQuery, type ListWatchRoomsQuery, type LocationHours, type LoginEndUserDto, type LoyaltyAccount, type LoyaltyRedemption, type LoyaltyReward, type LoyaltyTransaction, type MealPlan, type MealSubscription, type Movie, type MovieDetail, type Notification, type Order, type OrderItem, type OrderStatus, type OrderType, type PaginatedQuery, type PaginatedResponse, type PaginationParams, type PaymentMethod, type PaymentOrder, type PaymentVerification, type PlatformPlan, type PreviewStudentDiscountDto, type PreviewTemplateDto, type Promotion, type PropertyAvailability, type PropertyBooking, type PropertyPriceResolution, type PropertyType, type PurchaseGiftCardDto, type PurchaseOrder, type PurchaseOrderItem, type QueryMealSubscriptionsParams, type QueryPurchaseOrdersParams, type RawResponse, type RedeemGiftCardDto, type RedeemLoyaltyRewardDto, type ReferralInfo, type ReferralValidation, type RegisterEndUserDto, type ReorderDto, type ReplySupportTicketDto, type ReportOrderIssueDto, type RequestMagicLinkDto, type Reservation, type ReservationSlot, type ResolvePropertyPriceDto, type Review, type ReviewStudentPassDto, type Role, type ScheduleCampaignDto, ScopedClient, type SearchQuery, type SearchStatusQuery, type SetLocationHoursDto, type SetPropertyTypeAmenitiesDto, type SetSettingDto, type StaffAuthResponse, type StaffChangePasswordDto, type StaffLoginDto, type StaffRegisterDto, type StaffRequestPasswordResetDto, type StaffResetPasswordDto, type StaffSendOtpDto, type StaffUser, type StaffVerifyOtpDto, type StartSignupDto, type StartWatchSessionDto, type StatusQuery, type StockAlert, type StoreLocation, type StorefrontConfig, type StudentDiscount, type StudentPassStatus, type SubmitContactDto, type SubscribeBillingPlanDto, type SubscribeMealPlanDto, type SubscribeNewsletterDto, type SuperAdminLoginDto, type SuperAdminStats, type SuperAdmin as SuperAdminUser, type Supplier, type SupportReply, type SupportTicket, type SwitchWatchRoomModeDto, TZ, TZClient, type TZConfig, type TZInitOptions, TZPaginatedQuery, TZQuery, type TmdbMovie, type TmdbMovieDetail, type TokenStore, type TopUpWalletDto, type UpdateAddressDto, type UpdateApiKeyDto, type UpdateCartItemDto, type UpdateCatalogCategoryDto, type UpdateCatalogOptionDto, type UpdateCatalogOptionGroupDto, type UpdateCatalogVariantDto, type UpdateEndUserProfileDto, type UpdateHelpArticleDto, type UpdateHousekeepingDto, type UpdateIngredientDto, type UpdateInstitutionDto, type UpdateMealPlanDto, type UpdateMovieProgressDto, type UpdateOrderStatusDto, type UpdateOrgDto, type UpdatePurchaseOrderDto, type UpdateReservationStatusDto, type UpdateReviewStatusDto, type UpdateRoleDto, type UpdateStaffUserDto, type UpdateStudentDiscountDto, type UpdateSupplierDto, type UpdateSupportTicketDto, type UploadResult, type ValidateCouponDto, type ValidateReferralDto, type VerifyMagicLinkQuery, type VerifyPaymentDto, type VerifySignupOtpDto, type WalletBalance, type WalletPack, type WalletTransaction, type WasteLog, type WatchRoom, type WatchRoomJoinResponse, type WatchRoomMessage, type WatchRoomPlaybackState, type WatchRoomPrivacy, type WatchRoomStatus, type WatchRoomVibe, type WatchRoomViewer, type WatchRoomViewerMode, type WatchSessionResponse, type WatchSessionStatus, type WatchSessionStatusType, type WatchSessionSummary, createTZ };
|
|
3145
|
+
export { type AddCartItemDto, type AddSegmentMembersDto, type Address, type AdjustLoyaltyPointsDto, type AdminCancelBookingDto, type AdminListOrdersQuery, type AdminMealSubscription, type AdminOrganization, type ApiError, type ApiKey, type ApplyStudentPassDto, type AssignPropertyUnitsDto, type AssignStaffRolesDto, type AuditLog, type AuthResponse, type AuthScope, type AuthTokens, type BulkReviewStudentPassesDto, type BulkUpdateSettingsDto, type BulkUpsertEndUsersDto, type CalculateDeliveryDto, type CancelPropertyBookingDto, type Cart, type CartItemOption, type CartLineItem, type CatalogCategory, type CatalogItem, type CatalogItemVariant, type CatalogOption, type CatalogOptionGroup, type ChangeEndUserPasswordDto, type CheckPropertyAvailabilityQuery, type CheckReservationAvailabilityQuery, type CompleteSignupDto, type ConnectedSource, type ContactMessage, type ContentPost, type CouponValidation, type CreateAddressDto, type CreateApiKeyDto, type CreateCatalogCategoryDto, type CreateCatalogOptionDto, type CreateCatalogOptionGroupDto, type CreateCatalogVariantDto, type CreateHelpArticleDto, type CreateIngredientDto, type CreateInstitutionDto, type CreateMealPlanDto, type CreateOrderDto, type CreatePaymentOrderDto, type CreatePropertyAmenityDto, type CreatePropertyBookingDto, type CreatePropertyPaymentOrderDto, type CreatePurchaseOrderDto, type CreateReservationDto, type CreateReviewDto, type CreateRoleDto, type CreateStudentDiscountDto, type CreateSuperAdminDto, type CreateSupplierDto, type CreateSupportTicketDto, type CreateWasteLogDto, type CreateWatchRoomDto, type DeliveryCalculation, type DeliveryTracking, type DiscountPreview, type EarningsSummary, type EndUser, type EndUserProfile, type EndUserRequestResetDto, type EndUserResetPasswordDto, type EndUserSendOtpDto, type EndUserTagsDto, type EndUserVerifyOtpDto, type GetCatalogItemsQuery, type GiftCard, type GoogleDriveCallbackDto, type GoogleDriveConnectUrl, type HelpArticle, type HostEarning, type Ingredient, type Institution, type InviteStaffUserDto, type JoinWatchRoomDto, type ListCatalogItemsQuery, type ListContentQuery, type ListEarningsQuery, type ListEndUsersQuery, type ListMoviesQuery, type ListOrdersQuery, type ListOrganizationsQuery, type ListReviewsQuery, type ListStaffUsersQuery, type ListStudentPassesQuery, type ListSuperAdminsQuery, type ListWatchRoomsQuery, type LocationHours, type LoginEndUserDto, type LoyaltyAccount, type LoyaltyRedemption, type LoyaltyReward, type LoyaltyTransaction, type MealPlan, type MealSubscription, type Movie, type MovieDetail, type Notification, type Order, type OrderItem, type OrderStatus, type OrderType, type PaginatedQuery, type PaginatedResponse, type PaginationParams, type PaymentMethod, type PaymentOrder, type PaymentVerification, type PlatformPlan, type PreviewStudentDiscountDto, type PreviewTemplateDto, type Promotion, type PropertyAvailability, type PropertyBooking, type PropertyPriceResolution, type PropertyType, type PurchaseGiftCardDto, type PurchaseOrder, type PurchaseOrderItem, type QueryMealSubscriptionsParams, type QueryPurchaseOrdersParams, type RawResponse, type RedeemGiftCardDto, type RedeemLoyaltyRewardDto, type ReferralInfo, type ReferralValidation, type RegisterEndUserDto, type ReorderDto, type ReplySupportTicketDto, type ReportOrderIssueDto, type RequestMagicLinkDto, type Reservation, type ReservationSlot, type ResolvePropertyPriceDto, type Review, type ReviewStudentPassDto, type Role, type ScheduleCampaignDto, ScopedClient, type SearchQuery, type SearchStatusQuery, type SetLocationHoursDto, type SetPropertyTypeAmenitiesDto, type SetSettingDto, type StaffAuthResponse, type StaffChangePasswordDto, type StaffLoginDto, type StaffRegisterDto, type StaffRequestPasswordResetDto, type StaffResetPasswordDto, type StaffSendOtpDto, type StaffUser, type StaffVerifyOtpDto, type StartSignupDto, type StartWatchSessionDto, type StatusQuery, type StockAlert, type StoreLocation, type StorefrontConfig, type StudentDiscount, type StudentPassStatus, type SubmitContactDto, type SubscribeBillingPlanDto, type SubscribeMealPlanDto, type SubscribeNewsletterDto, type SuperAdminLoginDto, type SuperAdminStats, type SuperAdmin as SuperAdminUser, type Supplier, type SupportReply, type SupportTicket, type SwitchWatchRoomModeDto, TZ, TZClient, type TZConfig, type TZInitOptions, TZPaginatedQuery, TZQuery, type TmdbMovie, type TmdbMovieDetail, type TokenStore, type TopUpWalletDto, type UpdateAddressDto, type UpdateApiKeyDto, type UpdateCartItemDto, type UpdateCatalogCategoryDto, type UpdateCatalogOptionDto, type UpdateCatalogOptionGroupDto, type UpdateCatalogVariantDto, type UpdateEndUserProfileDto, type UpdateHelpArticleDto, type UpdateHousekeepingDto, type UpdateIngredientDto, type UpdateInstitutionDto, type UpdateMealPlanDto, type UpdateMovieProgressDto, type UpdateOrderStatusDto, type UpdateOrgDto, type UpdatePurchaseOrderDto, type UpdateReservationStatusDto, type UpdateReviewStatusDto, type UpdateRoleDto, type UpdateStaffUserDto, type UpdateStudentDiscountDto, type UpdateSupplierDto, type UpdateSupportTicketDto, type UploadResult, type ValidateCouponDto, type ValidateReferralDto, type VerifyMagicLinkQuery, type VerifyPaymentDto, type VerifySignupOtpDto, type WalletBalance, type WalletPack, type WalletTransaction, type WasteLog, type WatchRoom, type WatchRoomJoinResponse, type WatchRoomMessage, type WatchRoomPlaybackState, type WatchRoomPrivacy, type WatchRoomStatus, type WatchRoomVibe, type WatchRoomViewer, type WatchRoomViewerMode, type WatchSessionResponse, type WatchSessionStatus, type WatchSessionStatusType, type WatchSessionSummary, createTZ };
|
package/dist/index.js
CHANGED
|
@@ -874,6 +874,9 @@ function createStorefrontMovies(c) {
|
|
|
874
874
|
endSession(sessionId) {
|
|
875
875
|
return c.post(`/movies/session/${sessionId}/end`, void 0, "enduser");
|
|
876
876
|
},
|
|
877
|
+
updateSessionCap(sessionId, meterCapPaise) {
|
|
878
|
+
return c.patch(`/movies/session/${sessionId}/update-cap`, { meterCapPaise }, "enduser");
|
|
879
|
+
},
|
|
877
880
|
// ─── Watchlist ───────────────────────────────────────────────────
|
|
878
881
|
getWatchlist() {
|
|
879
882
|
return c.get("/watchlist", "enduser");
|
|
@@ -1034,6 +1037,24 @@ function createStorefrontEarnings(c) {
|
|
|
1034
1037
|
};
|
|
1035
1038
|
}
|
|
1036
1039
|
|
|
1040
|
+
// src/storefront/connected-sources.ts
|
|
1041
|
+
function createStorefrontConnectedSources(c) {
|
|
1042
|
+
return {
|
|
1043
|
+
list() {
|
|
1044
|
+
return c.get("/connected-sources", "enduser");
|
|
1045
|
+
},
|
|
1046
|
+
getGoogleDriveConnectUrl() {
|
|
1047
|
+
return c.get("/connected-sources/google-drive/connect", "enduser");
|
|
1048
|
+
},
|
|
1049
|
+
connectGoogleDrive(data) {
|
|
1050
|
+
return c.post("/connected-sources/google-drive/callback", data, "enduser");
|
|
1051
|
+
},
|
|
1052
|
+
disconnect(provider) {
|
|
1053
|
+
return c.del(`/connected-sources/${provider}`, "enduser");
|
|
1054
|
+
}
|
|
1055
|
+
};
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1037
1058
|
// src/storefront/index.ts
|
|
1038
1059
|
function createStorefront(c) {
|
|
1039
1060
|
return {
|
|
@@ -1066,7 +1087,8 @@ function createStorefront(c) {
|
|
|
1066
1087
|
mealPlans: createStorefrontMealPlans(c),
|
|
1067
1088
|
help: createStorefrontHelp(c),
|
|
1068
1089
|
rooms: createStorefrontRooms(c),
|
|
1069
|
-
earnings: createStorefrontEarnings(c)
|
|
1090
|
+
earnings: createStorefrontEarnings(c),
|
|
1091
|
+
connectedSources: createStorefrontConnectedSources(c)
|
|
1070
1092
|
};
|
|
1071
1093
|
}
|
|
1072
1094
|
|