@techzunction/sdk 0.2.0 → 0.3.0
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 +26 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +69 -1
- package/dist/index.d.ts +69 -1
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -475,6 +475,46 @@ interface WalletPack {
|
|
|
475
475
|
desc: string | null;
|
|
476
476
|
isPopular: boolean;
|
|
477
477
|
}
|
|
478
|
+
interface WalletBalance {
|
|
479
|
+
balancePaise: number;
|
|
480
|
+
}
|
|
481
|
+
interface WalletTransaction {
|
|
482
|
+
id: string;
|
|
483
|
+
type: 'topup' | 'debit' | 'refund';
|
|
484
|
+
amountPaise: number;
|
|
485
|
+
balanceAfterPaise: number;
|
|
486
|
+
description: string | null;
|
|
487
|
+
sessionId: string | null;
|
|
488
|
+
createdAt: string;
|
|
489
|
+
}
|
|
490
|
+
type WatchSessionStatusType = 'active' | 'paused' | 'capped' | 'ended' | 'insufficient_funds';
|
|
491
|
+
interface WatchSessionResponse {
|
|
492
|
+
sessionId: string;
|
|
493
|
+
tmdbId: number;
|
|
494
|
+
movieTitle: string;
|
|
495
|
+
ratePerMinPaise: number;
|
|
496
|
+
meterCapPaise: number;
|
|
497
|
+
status: WatchSessionStatusType;
|
|
498
|
+
balancePaise: number;
|
|
499
|
+
}
|
|
500
|
+
interface WatchSessionStatus {
|
|
501
|
+
sessionId: string;
|
|
502
|
+
status: WatchSessionStatusType;
|
|
503
|
+
totalBilledPaise: number;
|
|
504
|
+
minutesBilled: number;
|
|
505
|
+
ratePerMinPaise: number;
|
|
506
|
+
meterCapPaise: number;
|
|
507
|
+
balancePaise: number;
|
|
508
|
+
}
|
|
509
|
+
interface WatchSessionSummary {
|
|
510
|
+
sessionId: string;
|
|
511
|
+
movieTitle: string;
|
|
512
|
+
minutesBilled: number;
|
|
513
|
+
totalBilledPaise: number;
|
|
514
|
+
meterCapPaise: number;
|
|
515
|
+
hitCap: boolean;
|
|
516
|
+
balancePaise: number;
|
|
517
|
+
}
|
|
478
518
|
interface UploadResult {
|
|
479
519
|
url: string;
|
|
480
520
|
publicId: string;
|
|
@@ -972,6 +1012,18 @@ interface PreviewStudentDiscountDto {
|
|
|
972
1012
|
interface SubscribeMealPlanDto {
|
|
973
1013
|
mealPlanId: string;
|
|
974
1014
|
}
|
|
1015
|
+
interface TopUpWalletDto {
|
|
1016
|
+
razorpayPaymentId: string;
|
|
1017
|
+
razorpayOrderId: string;
|
|
1018
|
+
razorpaySignature: string;
|
|
1019
|
+
amountPaise: number;
|
|
1020
|
+
bonusPaise?: number;
|
|
1021
|
+
}
|
|
1022
|
+
interface StartWatchSessionDto {
|
|
1023
|
+
movieTitle: string;
|
|
1024
|
+
ratePerMinPaise: number;
|
|
1025
|
+
meterCapPaise: number;
|
|
1026
|
+
}
|
|
975
1027
|
|
|
976
1028
|
interface StaffRegisterDto {
|
|
977
1029
|
name: string;
|
|
@@ -1564,6 +1616,11 @@ declare const TZ: {
|
|
|
1564
1616
|
buy(id: string): TZQuery<{
|
|
1565
1617
|
entitlementId: string;
|
|
1566
1618
|
}>;
|
|
1619
|
+
startSession(tmdbId: number, data: StartWatchSessionDto): TZQuery<WatchSessionResponse>;
|
|
1620
|
+
getSessionStatus(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
1621
|
+
pauseSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
1622
|
+
resumeSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
1623
|
+
endSession(sessionId: string): TZQuery<WatchSessionSummary>;
|
|
1567
1624
|
getWatchlist(): TZQuery<Movie[]>;
|
|
1568
1625
|
addToWatchlist(catalogItemId: string): TZQuery<void>;
|
|
1569
1626
|
removeFromWatchlist(catalogItemId: string): TZQuery<void>;
|
|
@@ -1610,6 +1667,9 @@ declare const TZ: {
|
|
|
1610
1667
|
};
|
|
1611
1668
|
wallet: {
|
|
1612
1669
|
getPacks(): TZQuery<WalletPack[]>;
|
|
1670
|
+
getBalance(): TZQuery<WalletBalance>;
|
|
1671
|
+
topUp(data: TopUpWalletDto): TZQuery<WalletBalance>;
|
|
1672
|
+
getTransactions(params?: PaginatedQuery): TZPaginatedQuery<WalletTransaction>;
|
|
1613
1673
|
};
|
|
1614
1674
|
student: {
|
|
1615
1675
|
getPassStatus(): TZQuery<StudentPassStatus>;
|
|
@@ -2240,6 +2300,11 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
2240
2300
|
buy(id: string): TZQuery<{
|
|
2241
2301
|
entitlementId: string;
|
|
2242
2302
|
}>;
|
|
2303
|
+
startSession(tmdbId: number, data: StartWatchSessionDto): TZQuery<WatchSessionResponse>;
|
|
2304
|
+
getSessionStatus(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
2305
|
+
pauseSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
2306
|
+
resumeSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
2307
|
+
endSession(sessionId: string): TZQuery<WatchSessionSummary>;
|
|
2243
2308
|
getWatchlist(): TZQuery<Movie[]>;
|
|
2244
2309
|
addToWatchlist(catalogItemId: string): TZQuery<void>;
|
|
2245
2310
|
removeFromWatchlist(catalogItemId: string): TZQuery<void>;
|
|
@@ -2286,6 +2351,9 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
2286
2351
|
};
|
|
2287
2352
|
wallet: {
|
|
2288
2353
|
getPacks(): TZQuery<WalletPack[]>;
|
|
2354
|
+
getBalance(): TZQuery<WalletBalance>;
|
|
2355
|
+
topUp(data: TopUpWalletDto): TZQuery<WalletBalance>;
|
|
2356
|
+
getTransactions(params?: PaginatedQuery): TZPaginatedQuery<WalletTransaction>;
|
|
2289
2357
|
};
|
|
2290
2358
|
student: {
|
|
2291
2359
|
getPassStatus(): TZQuery<StudentPassStatus>;
|
|
@@ -2730,4 +2798,4 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
2730
2798
|
}>;
|
|
2731
2799
|
};
|
|
2732
2800
|
|
|
2733
|
-
export { type AddCartItemDto, type AddSegmentMembersDto, type Address, type AdjustLoyaltyPointsDto, type AdminCancelBookingDto, type AdminListOrdersQuery, 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 CreateInstitutionDto, type CreateMealPlanDto, type CreateOrderDto, type CreatePaymentOrderDto, type CreatePropertyAmenityDto, type CreatePropertyBookingDto, type CreatePropertyPaymentOrderDto, type CreateReservationDto, type CreateReviewDto, type CreateRoleDto, type CreateStudentDiscountDto, type CreateSuperAdminDto, type CreateSupportTicketDto, type DeliveryCalculation, type DeliveryTracking, type DiscountPreview, type EndUser, type EndUserProfile, type EndUserRequestResetDto, type EndUserResetPasswordDto, type EndUserSendOtpDto, type EndUserTagsDto, type EndUserVerifyOtpDto, type GetCatalogItemsQuery, type GiftCard, type HelpArticle, type Institution, type InviteStaffUserDto, type ListCatalogItemsQuery, type ListContentQuery, type ListEndUsersQuery, type ListMoviesQuery, type ListOrdersQuery, type ListOrganizationsQuery, type ListReviewsQuery, type ListStaffUsersQuery, type ListStudentPassesQuery, type ListSuperAdminsQuery, 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 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 StatusQuery, 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 SupportReply, type SupportTicket, TZ, TZClient, type TZConfig, type TZInitOptions, TZPaginatedQuery, TZQuery, type TmdbMovie, type TmdbMovieDetail, type TokenStore, type UpdateAddressDto, type UpdateApiKeyDto, type UpdateCartItemDto, type UpdateCatalogCategoryDto, type UpdateCatalogOptionDto, type UpdateCatalogOptionGroupDto, type UpdateCatalogVariantDto, type UpdateEndUserProfileDto, type UpdateHelpArticleDto, type UpdateHousekeepingDto, type UpdateInstitutionDto, type UpdateMealPlanDto, type UpdateMovieProgressDto, type UpdateOrderStatusDto, type UpdateOrgDto, type UpdateReservationStatusDto, type UpdateReviewStatusDto, type UpdateRoleDto, type UpdateStaffUserDto, type UpdateStudentDiscountDto, type UpdateSupportTicketDto, type UploadResult, type ValidateCouponDto, type ValidateReferralDto, type VerifyMagicLinkQuery, type VerifyPaymentDto, type VerifySignupOtpDto, type WalletPack, createTZ };
|
|
2801
|
+
export { type AddCartItemDto, type AddSegmentMembersDto, type Address, type AdjustLoyaltyPointsDto, type AdminCancelBookingDto, type AdminListOrdersQuery, 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 CreateInstitutionDto, type CreateMealPlanDto, type CreateOrderDto, type CreatePaymentOrderDto, type CreatePropertyAmenityDto, type CreatePropertyBookingDto, type CreatePropertyPaymentOrderDto, type CreateReservationDto, type CreateReviewDto, type CreateRoleDto, type CreateStudentDiscountDto, type CreateSuperAdminDto, type CreateSupportTicketDto, type DeliveryCalculation, type DeliveryTracking, type DiscountPreview, type EndUser, type EndUserProfile, type EndUserRequestResetDto, type EndUserResetPasswordDto, type EndUserSendOtpDto, type EndUserTagsDto, type EndUserVerifyOtpDto, type GetCatalogItemsQuery, type GiftCard, type HelpArticle, type Institution, type InviteStaffUserDto, type ListCatalogItemsQuery, type ListContentQuery, type ListEndUsersQuery, type ListMoviesQuery, type ListOrdersQuery, type ListOrganizationsQuery, type ListReviewsQuery, type ListStaffUsersQuery, type ListStudentPassesQuery, type ListSuperAdminsQuery, 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 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 StoreLocation, type StorefrontConfig, type StudentDiscount, type StudentPassStatus, type SubmitContactDto, type SubscribeBillingPlanDto, type SubscribeMealPlanDto, type SubscribeNewsletterDto, type SuperAdminLoginDto, type SuperAdminStats, type SuperAdmin as SuperAdminUser, type SupportReply, type SupportTicket, 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 UpdateInstitutionDto, type UpdateMealPlanDto, type UpdateMovieProgressDto, type UpdateOrderStatusDto, type UpdateOrgDto, type UpdateReservationStatusDto, type UpdateReviewStatusDto, type UpdateRoleDto, type UpdateStaffUserDto, type UpdateStudentDiscountDto, type UpdateSupportTicketDto, type UploadResult, type ValidateCouponDto, type ValidateReferralDto, type VerifyMagicLinkQuery, type VerifyPaymentDto, type VerifySignupOtpDto, type WalletBalance, type WalletPack, type WalletTransaction, type WatchSessionResponse, type WatchSessionStatus, type WatchSessionStatusType, type WatchSessionSummary, createTZ };
|
package/dist/index.d.ts
CHANGED
|
@@ -475,6 +475,46 @@ interface WalletPack {
|
|
|
475
475
|
desc: string | null;
|
|
476
476
|
isPopular: boolean;
|
|
477
477
|
}
|
|
478
|
+
interface WalletBalance {
|
|
479
|
+
balancePaise: number;
|
|
480
|
+
}
|
|
481
|
+
interface WalletTransaction {
|
|
482
|
+
id: string;
|
|
483
|
+
type: 'topup' | 'debit' | 'refund';
|
|
484
|
+
amountPaise: number;
|
|
485
|
+
balanceAfterPaise: number;
|
|
486
|
+
description: string | null;
|
|
487
|
+
sessionId: string | null;
|
|
488
|
+
createdAt: string;
|
|
489
|
+
}
|
|
490
|
+
type WatchSessionStatusType = 'active' | 'paused' | 'capped' | 'ended' | 'insufficient_funds';
|
|
491
|
+
interface WatchSessionResponse {
|
|
492
|
+
sessionId: string;
|
|
493
|
+
tmdbId: number;
|
|
494
|
+
movieTitle: string;
|
|
495
|
+
ratePerMinPaise: number;
|
|
496
|
+
meterCapPaise: number;
|
|
497
|
+
status: WatchSessionStatusType;
|
|
498
|
+
balancePaise: number;
|
|
499
|
+
}
|
|
500
|
+
interface WatchSessionStatus {
|
|
501
|
+
sessionId: string;
|
|
502
|
+
status: WatchSessionStatusType;
|
|
503
|
+
totalBilledPaise: number;
|
|
504
|
+
minutesBilled: number;
|
|
505
|
+
ratePerMinPaise: number;
|
|
506
|
+
meterCapPaise: number;
|
|
507
|
+
balancePaise: number;
|
|
508
|
+
}
|
|
509
|
+
interface WatchSessionSummary {
|
|
510
|
+
sessionId: string;
|
|
511
|
+
movieTitle: string;
|
|
512
|
+
minutesBilled: number;
|
|
513
|
+
totalBilledPaise: number;
|
|
514
|
+
meterCapPaise: number;
|
|
515
|
+
hitCap: boolean;
|
|
516
|
+
balancePaise: number;
|
|
517
|
+
}
|
|
478
518
|
interface UploadResult {
|
|
479
519
|
url: string;
|
|
480
520
|
publicId: string;
|
|
@@ -972,6 +1012,18 @@ interface PreviewStudentDiscountDto {
|
|
|
972
1012
|
interface SubscribeMealPlanDto {
|
|
973
1013
|
mealPlanId: string;
|
|
974
1014
|
}
|
|
1015
|
+
interface TopUpWalletDto {
|
|
1016
|
+
razorpayPaymentId: string;
|
|
1017
|
+
razorpayOrderId: string;
|
|
1018
|
+
razorpaySignature: string;
|
|
1019
|
+
amountPaise: number;
|
|
1020
|
+
bonusPaise?: number;
|
|
1021
|
+
}
|
|
1022
|
+
interface StartWatchSessionDto {
|
|
1023
|
+
movieTitle: string;
|
|
1024
|
+
ratePerMinPaise: number;
|
|
1025
|
+
meterCapPaise: number;
|
|
1026
|
+
}
|
|
975
1027
|
|
|
976
1028
|
interface StaffRegisterDto {
|
|
977
1029
|
name: string;
|
|
@@ -1564,6 +1616,11 @@ declare const TZ: {
|
|
|
1564
1616
|
buy(id: string): TZQuery<{
|
|
1565
1617
|
entitlementId: string;
|
|
1566
1618
|
}>;
|
|
1619
|
+
startSession(tmdbId: number, data: StartWatchSessionDto): TZQuery<WatchSessionResponse>;
|
|
1620
|
+
getSessionStatus(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
1621
|
+
pauseSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
1622
|
+
resumeSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
1623
|
+
endSession(sessionId: string): TZQuery<WatchSessionSummary>;
|
|
1567
1624
|
getWatchlist(): TZQuery<Movie[]>;
|
|
1568
1625
|
addToWatchlist(catalogItemId: string): TZQuery<void>;
|
|
1569
1626
|
removeFromWatchlist(catalogItemId: string): TZQuery<void>;
|
|
@@ -1610,6 +1667,9 @@ declare const TZ: {
|
|
|
1610
1667
|
};
|
|
1611
1668
|
wallet: {
|
|
1612
1669
|
getPacks(): TZQuery<WalletPack[]>;
|
|
1670
|
+
getBalance(): TZQuery<WalletBalance>;
|
|
1671
|
+
topUp(data: TopUpWalletDto): TZQuery<WalletBalance>;
|
|
1672
|
+
getTransactions(params?: PaginatedQuery): TZPaginatedQuery<WalletTransaction>;
|
|
1613
1673
|
};
|
|
1614
1674
|
student: {
|
|
1615
1675
|
getPassStatus(): TZQuery<StudentPassStatus>;
|
|
@@ -2240,6 +2300,11 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
2240
2300
|
buy(id: string): TZQuery<{
|
|
2241
2301
|
entitlementId: string;
|
|
2242
2302
|
}>;
|
|
2303
|
+
startSession(tmdbId: number, data: StartWatchSessionDto): TZQuery<WatchSessionResponse>;
|
|
2304
|
+
getSessionStatus(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
2305
|
+
pauseSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
2306
|
+
resumeSession(sessionId: string): TZQuery<WatchSessionStatus>;
|
|
2307
|
+
endSession(sessionId: string): TZQuery<WatchSessionSummary>;
|
|
2243
2308
|
getWatchlist(): TZQuery<Movie[]>;
|
|
2244
2309
|
addToWatchlist(catalogItemId: string): TZQuery<void>;
|
|
2245
2310
|
removeFromWatchlist(catalogItemId: string): TZQuery<void>;
|
|
@@ -2286,6 +2351,9 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
2286
2351
|
};
|
|
2287
2352
|
wallet: {
|
|
2288
2353
|
getPacks(): TZQuery<WalletPack[]>;
|
|
2354
|
+
getBalance(): TZQuery<WalletBalance>;
|
|
2355
|
+
topUp(data: TopUpWalletDto): TZQuery<WalletBalance>;
|
|
2356
|
+
getTransactions(params?: PaginatedQuery): TZPaginatedQuery<WalletTransaction>;
|
|
2289
2357
|
};
|
|
2290
2358
|
student: {
|
|
2291
2359
|
getPassStatus(): TZQuery<StudentPassStatus>;
|
|
@@ -2730,4 +2798,4 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
2730
2798
|
}>;
|
|
2731
2799
|
};
|
|
2732
2800
|
|
|
2733
|
-
export { type AddCartItemDto, type AddSegmentMembersDto, type Address, type AdjustLoyaltyPointsDto, type AdminCancelBookingDto, type AdminListOrdersQuery, 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 CreateInstitutionDto, type CreateMealPlanDto, type CreateOrderDto, type CreatePaymentOrderDto, type CreatePropertyAmenityDto, type CreatePropertyBookingDto, type CreatePropertyPaymentOrderDto, type CreateReservationDto, type CreateReviewDto, type CreateRoleDto, type CreateStudentDiscountDto, type CreateSuperAdminDto, type CreateSupportTicketDto, type DeliveryCalculation, type DeliveryTracking, type DiscountPreview, type EndUser, type EndUserProfile, type EndUserRequestResetDto, type EndUserResetPasswordDto, type EndUserSendOtpDto, type EndUserTagsDto, type EndUserVerifyOtpDto, type GetCatalogItemsQuery, type GiftCard, type HelpArticle, type Institution, type InviteStaffUserDto, type ListCatalogItemsQuery, type ListContentQuery, type ListEndUsersQuery, type ListMoviesQuery, type ListOrdersQuery, type ListOrganizationsQuery, type ListReviewsQuery, type ListStaffUsersQuery, type ListStudentPassesQuery, type ListSuperAdminsQuery, 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 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 StatusQuery, 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 SupportReply, type SupportTicket, TZ, TZClient, type TZConfig, type TZInitOptions, TZPaginatedQuery, TZQuery, type TmdbMovie, type TmdbMovieDetail, type TokenStore, type UpdateAddressDto, type UpdateApiKeyDto, type UpdateCartItemDto, type UpdateCatalogCategoryDto, type UpdateCatalogOptionDto, type UpdateCatalogOptionGroupDto, type UpdateCatalogVariantDto, type UpdateEndUserProfileDto, type UpdateHelpArticleDto, type UpdateHousekeepingDto, type UpdateInstitutionDto, type UpdateMealPlanDto, type UpdateMovieProgressDto, type UpdateOrderStatusDto, type UpdateOrgDto, type UpdateReservationStatusDto, type UpdateReviewStatusDto, type UpdateRoleDto, type UpdateStaffUserDto, type UpdateStudentDiscountDto, type UpdateSupportTicketDto, type UploadResult, type ValidateCouponDto, type ValidateReferralDto, type VerifyMagicLinkQuery, type VerifyPaymentDto, type VerifySignupOtpDto, type WalletPack, createTZ };
|
|
2801
|
+
export { type AddCartItemDto, type AddSegmentMembersDto, type Address, type AdjustLoyaltyPointsDto, type AdminCancelBookingDto, type AdminListOrdersQuery, 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 CreateInstitutionDto, type CreateMealPlanDto, type CreateOrderDto, type CreatePaymentOrderDto, type CreatePropertyAmenityDto, type CreatePropertyBookingDto, type CreatePropertyPaymentOrderDto, type CreateReservationDto, type CreateReviewDto, type CreateRoleDto, type CreateStudentDiscountDto, type CreateSuperAdminDto, type CreateSupportTicketDto, type DeliveryCalculation, type DeliveryTracking, type DiscountPreview, type EndUser, type EndUserProfile, type EndUserRequestResetDto, type EndUserResetPasswordDto, type EndUserSendOtpDto, type EndUserTagsDto, type EndUserVerifyOtpDto, type GetCatalogItemsQuery, type GiftCard, type HelpArticle, type Institution, type InviteStaffUserDto, type ListCatalogItemsQuery, type ListContentQuery, type ListEndUsersQuery, type ListMoviesQuery, type ListOrdersQuery, type ListOrganizationsQuery, type ListReviewsQuery, type ListStaffUsersQuery, type ListStudentPassesQuery, type ListSuperAdminsQuery, 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 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 StoreLocation, type StorefrontConfig, type StudentDiscount, type StudentPassStatus, type SubmitContactDto, type SubscribeBillingPlanDto, type SubscribeMealPlanDto, type SubscribeNewsletterDto, type SuperAdminLoginDto, type SuperAdminStats, type SuperAdmin as SuperAdminUser, type SupportReply, type SupportTicket, 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 UpdateInstitutionDto, type UpdateMealPlanDto, type UpdateMovieProgressDto, type UpdateOrderStatusDto, type UpdateOrgDto, type UpdateReservationStatusDto, type UpdateReviewStatusDto, type UpdateRoleDto, type UpdateStaffUserDto, type UpdateStudentDiscountDto, type UpdateSupportTicketDto, type UploadResult, type ValidateCouponDto, type ValidateReferralDto, type VerifyMagicLinkQuery, type VerifyPaymentDto, type VerifySignupOtpDto, type WalletBalance, type WalletPack, type WalletTransaction, type WatchSessionResponse, type WatchSessionStatus, type WatchSessionStatusType, type WatchSessionSummary, createTZ };
|
package/dist/index.js
CHANGED
|
@@ -858,6 +858,23 @@ function createStorefrontMovies(c) {
|
|
|
858
858
|
buy(id) {
|
|
859
859
|
return c.post(`/movies/${id}/buy`, void 0, "enduser");
|
|
860
860
|
},
|
|
861
|
+
// ─── PPM Watch Sessions ──────────────────────────────────────────
|
|
862
|
+
startSession(tmdbId, data) {
|
|
863
|
+
return c.post(`/movies/${tmdbId}/start-session`, data, "enduser");
|
|
864
|
+
},
|
|
865
|
+
getSessionStatus(sessionId) {
|
|
866
|
+
return c.get(`/movies/session/${sessionId}/status`, "enduser");
|
|
867
|
+
},
|
|
868
|
+
pauseSession(sessionId) {
|
|
869
|
+
return c.post(`/movies/session/${sessionId}/pause`, void 0, "enduser");
|
|
870
|
+
},
|
|
871
|
+
resumeSession(sessionId) {
|
|
872
|
+
return c.post(`/movies/session/${sessionId}/resume`, void 0, "enduser");
|
|
873
|
+
},
|
|
874
|
+
endSession(sessionId) {
|
|
875
|
+
return c.post(`/movies/session/${sessionId}/end`, void 0, "enduser");
|
|
876
|
+
},
|
|
877
|
+
// ─── Watchlist ───────────────────────────────────────────────────
|
|
861
878
|
getWatchlist() {
|
|
862
879
|
return c.get("/watchlist", "enduser");
|
|
863
880
|
},
|
|
@@ -914,6 +931,15 @@ function createStorefrontWallet(c) {
|
|
|
914
931
|
return {
|
|
915
932
|
getPacks() {
|
|
916
933
|
return c.get("/wallet/packs");
|
|
934
|
+
},
|
|
935
|
+
getBalance() {
|
|
936
|
+
return c.get("/wallet/balance", "enduser");
|
|
937
|
+
},
|
|
938
|
+
topUp(data) {
|
|
939
|
+
return c.post("/wallet/topup", data, "enduser");
|
|
940
|
+
},
|
|
941
|
+
getTransactions(params) {
|
|
942
|
+
return c.paginated("/wallet/transactions", params);
|
|
917
943
|
}
|
|
918
944
|
};
|
|
919
945
|
}
|