@techzunction/sdk 0.9.1 → 0.9.2
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 +112 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +247 -1
- package/dist/index.d.ts +247 -1
- package/dist/index.js +112 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1990,6 +1990,102 @@ interface NetWorthSnapshot {
|
|
|
1990
1990
|
netWorth: number;
|
|
1991
1991
|
};
|
|
1992
1992
|
}
|
|
1993
|
+
type TrackedBillingCycle = 'monthly' | 'quarterly' | 'half_yearly' | 'yearly' | 'weekly' | 'lifetime';
|
|
1994
|
+
type TrackedSubSource = 'gmail_auto' | 'manual';
|
|
1995
|
+
type TrackedSubStatus = 'active' | 'cancelled' | 'paused' | 'forgotten' | 'free_trial';
|
|
1996
|
+
type SubAlertType = 'renewal_7d' | 'renewal_3d' | 'renewal_1d' | 'free_trial_expiry' | 'price_increase' | 'price_decrease';
|
|
1997
|
+
type SubSuggestionType = 'cheaper_alternative' | 'plan_downgrade' | 'cancel_forgotten' | 'cancel_low_usage' | 'free_tier_available';
|
|
1998
|
+
type SubSuggestionStatus = 'pending' | 'accepted' | 'dismissed' | 'not_interested';
|
|
1999
|
+
/** A Gmail account connected for subscription scanning. */
|
|
2000
|
+
interface GmailAccount {
|
|
2001
|
+
id: string;
|
|
2002
|
+
email: string;
|
|
2003
|
+
scopes: string[];
|
|
2004
|
+
lastScanAt: string | null;
|
|
2005
|
+
connectedAt: string;
|
|
2006
|
+
}
|
|
2007
|
+
/** A detected or manually added subscription. */
|
|
2008
|
+
interface TrackedSubscription {
|
|
2009
|
+
id: string;
|
|
2010
|
+
serviceName: string;
|
|
2011
|
+
domain: string | null;
|
|
2012
|
+
logoUrl: string | null;
|
|
2013
|
+
category: string;
|
|
2014
|
+
/** Amount in paise (₹ × 100) */
|
|
2015
|
+
amountPaise: number;
|
|
2016
|
+
currency: string;
|
|
2017
|
+
billingCycle: TrackedBillingCycle;
|
|
2018
|
+
nextRenewalAt: string | null;
|
|
2019
|
+
lastSeenAt: string | null;
|
|
2020
|
+
lastActivityAt: string | null;
|
|
2021
|
+
source: TrackedSubSource;
|
|
2022
|
+
status: TrackedSubStatus;
|
|
2023
|
+
isFreeTrialDetected: boolean;
|
|
2024
|
+
freeTrialEndsAt: string | null;
|
|
2025
|
+
notes: string | null;
|
|
2026
|
+
createdAt: string;
|
|
2027
|
+
}
|
|
2028
|
+
/** Renewal/trial/price-change alert for a tracked subscription. */
|
|
2029
|
+
interface SubscriptionAlert {
|
|
2030
|
+
id: string;
|
|
2031
|
+
alertType: SubAlertType;
|
|
2032
|
+
daysUntilRenewal: number | null;
|
|
2033
|
+
/** Amount in paise */
|
|
2034
|
+
amountPaise: number | null;
|
|
2035
|
+
previousAmountPaise: number | null;
|
|
2036
|
+
scheduledAt: string;
|
|
2037
|
+
sentAt: string | null;
|
|
2038
|
+
isDismissed: boolean;
|
|
2039
|
+
createdAt: string;
|
|
2040
|
+
trackedSubscription: {
|
|
2041
|
+
id: string;
|
|
2042
|
+
serviceName: string;
|
|
2043
|
+
logoUrl: string | null;
|
|
2044
|
+
category: string;
|
|
2045
|
+
billingCycle: TrackedBillingCycle;
|
|
2046
|
+
};
|
|
2047
|
+
}
|
|
2048
|
+
/** A money-saving suggestion generated by the engine. */
|
|
2049
|
+
interface SubscriptionSuggestion {
|
|
2050
|
+
id: string;
|
|
2051
|
+
suggestionType: SubSuggestionType;
|
|
2052
|
+
title: string;
|
|
2053
|
+
description: string;
|
|
2054
|
+
/** Estimated annual savings in paise */
|
|
2055
|
+
savingsPaise: number | null;
|
|
2056
|
+
alternativeServiceName: string | null;
|
|
2057
|
+
alternativeAmountPaise: number | null;
|
|
2058
|
+
affiliateUrl: string | null;
|
|
2059
|
+
status: SubSuggestionStatus;
|
|
2060
|
+
createdAt: string;
|
|
2061
|
+
trackedSubscription: {
|
|
2062
|
+
id: string;
|
|
2063
|
+
serviceName: string;
|
|
2064
|
+
logoUrl: string | null;
|
|
2065
|
+
amountPaise: number;
|
|
2066
|
+
billingCycle: TrackedBillingCycle;
|
|
2067
|
+
category: string;
|
|
2068
|
+
};
|
|
2069
|
+
}
|
|
2070
|
+
/** Spending summary returned by analytics. */
|
|
2071
|
+
interface SubRadarSummary {
|
|
2072
|
+
totalMonthlyPaise: number;
|
|
2073
|
+
totalAnnualPaise: number;
|
|
2074
|
+
activeCount: number;
|
|
2075
|
+
lowUsageCount: number;
|
|
2076
|
+
forgottenCount: number;
|
|
2077
|
+
byCategory: Record<string, {
|
|
2078
|
+
count: number;
|
|
2079
|
+
monthlyPaise: number;
|
|
2080
|
+
}>;
|
|
2081
|
+
}
|
|
2082
|
+
/** Month-by-month spending trend. */
|
|
2083
|
+
interface SubRadarTrend {
|
|
2084
|
+
trend: Array<{
|
|
2085
|
+
month: string;
|
|
2086
|
+
totalPaise: number;
|
|
2087
|
+
}>;
|
|
2088
|
+
}
|
|
1993
2089
|
|
|
1994
2090
|
interface RawResponse<T> {
|
|
1995
2091
|
data: T;
|
|
@@ -2459,6 +2555,48 @@ interface SetBudgetDto {
|
|
|
2459
2555
|
interface GetAnomalyAlertsQuery extends PaginatedQuery {
|
|
2460
2556
|
unreadOnly?: boolean;
|
|
2461
2557
|
}
|
|
2558
|
+
type SubRadarBillingCycle = 'monthly' | 'quarterly' | 'half_yearly' | 'yearly' | 'weekly' | 'lifetime';
|
|
2559
|
+
type SubRadarSubStatus = 'active' | 'cancelled' | 'paused' | 'forgotten' | 'free_trial';
|
|
2560
|
+
type SubRadarSuggestionAction = 'accepted' | 'dismissed' | 'not_interested';
|
|
2561
|
+
interface GmailCallbackDto {
|
|
2562
|
+
code: string;
|
|
2563
|
+
}
|
|
2564
|
+
interface AddTrackedSubscriptionDto {
|
|
2565
|
+
serviceName: string;
|
|
2566
|
+
domain?: string;
|
|
2567
|
+
logoUrl?: string;
|
|
2568
|
+
category: string;
|
|
2569
|
+
/** Amount in paise (₹ × 100) */
|
|
2570
|
+
amountPaise: number;
|
|
2571
|
+
currency?: string;
|
|
2572
|
+
billingCycle: SubRadarBillingCycle;
|
|
2573
|
+
nextRenewalAt?: string;
|
|
2574
|
+
isFreeTrialDetected?: boolean;
|
|
2575
|
+
freeTrialEndsAt?: string;
|
|
2576
|
+
notes?: string;
|
|
2577
|
+
}
|
|
2578
|
+
interface UpdateTrackedSubscriptionDto {
|
|
2579
|
+
serviceName?: string;
|
|
2580
|
+
logoUrl?: string;
|
|
2581
|
+
category?: string;
|
|
2582
|
+
amountPaise?: number;
|
|
2583
|
+
billingCycle?: SubRadarBillingCycle;
|
|
2584
|
+
nextRenewalAt?: string;
|
|
2585
|
+
status?: SubRadarSubStatus;
|
|
2586
|
+
notes?: string;
|
|
2587
|
+
}
|
|
2588
|
+
interface QueryTrackedSubscriptionsDto extends PaginatedQuery {
|
|
2589
|
+
category?: string;
|
|
2590
|
+
status?: SubRadarSubStatus;
|
|
2591
|
+
}
|
|
2592
|
+
interface QuerySubscriptionAlertsDto extends PaginatedQuery {
|
|
2593
|
+
undismissed?: boolean;
|
|
2594
|
+
}
|
|
2595
|
+
interface QuerySubscriptionSuggestionsDto extends PaginatedQuery {
|
|
2596
|
+
}
|
|
2597
|
+
interface SuggestionActionDto {
|
|
2598
|
+
action: SubRadarSuggestionAction;
|
|
2599
|
+
}
|
|
2462
2600
|
|
|
2463
2601
|
interface StaffRegisterDto {
|
|
2464
2602
|
name: string;
|
|
@@ -3351,6 +3489,60 @@ declare const TZ: {
|
|
|
3351
3489
|
dismiss(id: string): TZQuery<AnomalyAlert>;
|
|
3352
3490
|
};
|
|
3353
3491
|
};
|
|
3492
|
+
subRadar: {
|
|
3493
|
+
gmail: {
|
|
3494
|
+
list(): TZQuery<{
|
|
3495
|
+
accounts: GmailAccount[];
|
|
3496
|
+
}>;
|
|
3497
|
+
getConnectUrl(): TZQuery<{
|
|
3498
|
+
url: string;
|
|
3499
|
+
}>;
|
|
3500
|
+
callback(data: GmailCallbackDto): TZQuery<{
|
|
3501
|
+
account: GmailAccount;
|
|
3502
|
+
}>;
|
|
3503
|
+
triggerScan(accountId: string): TZQuery<{
|
|
3504
|
+
message: string;
|
|
3505
|
+
accountId: string;
|
|
3506
|
+
}>;
|
|
3507
|
+
disconnect(accountId: string): TZQuery<{
|
|
3508
|
+
message: string;
|
|
3509
|
+
}>;
|
|
3510
|
+
};
|
|
3511
|
+
subscriptions: {
|
|
3512
|
+
list(params?: QueryTrackedSubscriptionsDto): TZPaginatedQuery<TrackedSubscription>;
|
|
3513
|
+
get(id: string): TZQuery<TrackedSubscription>;
|
|
3514
|
+
summary(): TZQuery<{
|
|
3515
|
+
totalMonthlyPaise: number;
|
|
3516
|
+
totalAnnualPaise: number;
|
|
3517
|
+
activeCount: number;
|
|
3518
|
+
byCategory: Record<string, number>;
|
|
3519
|
+
}>;
|
|
3520
|
+
add(data: AddTrackedSubscriptionDto): TZQuery<TrackedSubscription>;
|
|
3521
|
+
update(id: string, data: UpdateTrackedSubscriptionDto): TZQuery<TrackedSubscription>;
|
|
3522
|
+
remove(id: string): TZQuery<{
|
|
3523
|
+
message: string;
|
|
3524
|
+
}>;
|
|
3525
|
+
};
|
|
3526
|
+
alerts: {
|
|
3527
|
+
list(params?: QuerySubscriptionAlertsDto): TZPaginatedQuery<SubscriptionAlert>;
|
|
3528
|
+
dismiss(alertId: string): TZQuery<{
|
|
3529
|
+
message: string;
|
|
3530
|
+
}>;
|
|
3531
|
+
dismissAll(): TZQuery<{
|
|
3532
|
+
message: string;
|
|
3533
|
+
}>;
|
|
3534
|
+
};
|
|
3535
|
+
suggestions: {
|
|
3536
|
+
list(params?: QuerySubscriptionSuggestionsDto): TZPaginatedQuery<SubscriptionSuggestion>;
|
|
3537
|
+
action(suggestionId: string, data: SuggestionActionDto): TZQuery<{
|
|
3538
|
+
message: string;
|
|
3539
|
+
}>;
|
|
3540
|
+
};
|
|
3541
|
+
analytics: {
|
|
3542
|
+
summary(): TZQuery<SubRadarSummary>;
|
|
3543
|
+
trends(months?: number): TZQuery<SubRadarTrend>;
|
|
3544
|
+
};
|
|
3545
|
+
};
|
|
3354
3546
|
};
|
|
3355
3547
|
/** Admin namespace — all staff/org-admin APIs */
|
|
3356
3548
|
readonly admin: {
|
|
@@ -4247,6 +4439,60 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
4247
4439
|
dismiss(id: string): TZQuery<AnomalyAlert>;
|
|
4248
4440
|
};
|
|
4249
4441
|
};
|
|
4442
|
+
subRadar: {
|
|
4443
|
+
gmail: {
|
|
4444
|
+
list(): TZQuery<{
|
|
4445
|
+
accounts: GmailAccount[];
|
|
4446
|
+
}>;
|
|
4447
|
+
getConnectUrl(): TZQuery<{
|
|
4448
|
+
url: string;
|
|
4449
|
+
}>;
|
|
4450
|
+
callback(data: GmailCallbackDto): TZQuery<{
|
|
4451
|
+
account: GmailAccount;
|
|
4452
|
+
}>;
|
|
4453
|
+
triggerScan(accountId: string): TZQuery<{
|
|
4454
|
+
message: string;
|
|
4455
|
+
accountId: string;
|
|
4456
|
+
}>;
|
|
4457
|
+
disconnect(accountId: string): TZQuery<{
|
|
4458
|
+
message: string;
|
|
4459
|
+
}>;
|
|
4460
|
+
};
|
|
4461
|
+
subscriptions: {
|
|
4462
|
+
list(params?: QueryTrackedSubscriptionsDto): TZPaginatedQuery<TrackedSubscription>;
|
|
4463
|
+
get(id: string): TZQuery<TrackedSubscription>;
|
|
4464
|
+
summary(): TZQuery<{
|
|
4465
|
+
totalMonthlyPaise: number;
|
|
4466
|
+
totalAnnualPaise: number;
|
|
4467
|
+
activeCount: number;
|
|
4468
|
+
byCategory: Record<string, number>;
|
|
4469
|
+
}>;
|
|
4470
|
+
add(data: AddTrackedSubscriptionDto): TZQuery<TrackedSubscription>;
|
|
4471
|
+
update(id: string, data: UpdateTrackedSubscriptionDto): TZQuery<TrackedSubscription>;
|
|
4472
|
+
remove(id: string): TZQuery<{
|
|
4473
|
+
message: string;
|
|
4474
|
+
}>;
|
|
4475
|
+
};
|
|
4476
|
+
alerts: {
|
|
4477
|
+
list(params?: QuerySubscriptionAlertsDto): TZPaginatedQuery<SubscriptionAlert>;
|
|
4478
|
+
dismiss(alertId: string): TZQuery<{
|
|
4479
|
+
message: string;
|
|
4480
|
+
}>;
|
|
4481
|
+
dismissAll(): TZQuery<{
|
|
4482
|
+
message: string;
|
|
4483
|
+
}>;
|
|
4484
|
+
};
|
|
4485
|
+
suggestions: {
|
|
4486
|
+
list(params?: QuerySubscriptionSuggestionsDto): TZPaginatedQuery<SubscriptionSuggestion>;
|
|
4487
|
+
action(suggestionId: string, data: SuggestionActionDto): TZQuery<{
|
|
4488
|
+
message: string;
|
|
4489
|
+
}>;
|
|
4490
|
+
};
|
|
4491
|
+
analytics: {
|
|
4492
|
+
summary(): TZQuery<SubRadarSummary>;
|
|
4493
|
+
trends(months?: number): TZQuery<SubRadarTrend>;
|
|
4494
|
+
};
|
|
4495
|
+
};
|
|
4250
4496
|
};
|
|
4251
4497
|
admin: {
|
|
4252
4498
|
auth: {
|
|
@@ -4793,4 +5039,4 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
4793
5039
|
}>;
|
|
4794
5040
|
};
|
|
4795
5041
|
|
|
4796
|
-
export { type AddBeneficiaryDto, type AddCartItemDto, type AddSegmentMembersDto, type Address, type AdjustLoyaltyPointsDto, type AdminAbandonedCart, type AdminAbandonedCartsQuery, type AdminAffiliate, type AdminBlogPost, type AdminBroadcast, type AdminCancelBookingDto, type AdminCoupon, type AdminCustomer, type AdminCustomerDetail, type AdminDashboardData, type AdminDashboardQuery, type AdminDashboardStats, type AdminDeliveryAgent, type AdminDeliveryZone, type AdminFinanceQuery, type AdminFulfillResult, type AdminGiftCard, type AdminGiftCardTransaction, type AdminHelpArticle, type AdminInstitution, type AdminInvoice, type AdminListOrdersQuery, type AdminLocation, type AdminLocationDetail, type AdminLoyaltyAccount, type AdminLoyaltyData, type AdminMealSubscription, type AdminMenuItem, type AdminOrder, type AdminOrderDetail, type AdminOrganization, type AdminPayout, type AdminPopupSettings, type AdminPromotion, type AdminRedemption, type AdminReservation, type AdminReservationSlot, type AdminReservationTable, type AdminReview, type AdminScheduledOrder, type AdminScheduledOrdersQuery, type AdminSetting, type AdminSettlement, type AdminStudentDiscount, type AdminStudentPass, type AdminStudentPassDetail, type AdminStudentPassStats, type AdminSyncLog, type AdminTaxSummary, type AdminTicket, type AdminTicketDetail, type AdminTicketMessage, type AdminWaitlistEntry, type AdminWaitlistGroup, type AnomalyAlert, type ApiError, type ApiErrorEnvelope, type ApiKey, type ApiKeyEnv, type ApiPaginatedEnvelope, type ApiPaginatedResult, type ApiResponseEnvelope, type ApiResult, type ApplyStudentPassDto, type AssignPropertyUnitsDto, type AssignStaffRolesDto, type AuditLog, type AuthResponse, type AuthScope, type AuthTokens, type BankAccount, type BankAccountBalance, type BankAccountStatus, type BankAccountType, type BankCard, type BankTransaction, type Beneficiary, type BillPayment, type BillPaymentStatus, type BudgetItem, type BulkReviewStudentPassesDto, type BulkUpdateSettingsDto, type BulkUpsertEndUsersDto, type CalculateDeliveryDto, type CampaignChannel, type CampaignStatus, type CancelPropertyBookingDto, type CardStatus, type CardType, type CardVariant, type Cart, type CartItemOption, type CartLineItem, type CashFlowSummary, type CatalogCategory, type CatalogItem, type CatalogItemVariant, type CatalogOption, type CatalogOptionGroup, type CatalogSizeVariation, type ChangeEndUserPasswordDto, type CheckPropertyAvailabilityQuery, type CheckReservationAvailabilityQuery, type CompleteSignupDto, type ConnectedSource, type ContactMessage, type ContentPost, type CouponValidation, type CreateAddressDto, type CreateApiKeyDto, type CreateBroadcastDto, type CreateCatalogCategoryDto, type CreateCatalogOptionDto, type CreateCatalogOptionGroupDto, type CreateCatalogVariantDto, type CreateDeliveryAgentDto, type CreateDeliveryZoneDto, type CreateFixedDepositDto, type CreateHelpArticleDto, type CreateIngredientDto, type CreateInstitutionDto, type CreateMealPlanDto, type CreateOrderDto, type CreatePaymentOrderDto, type CreatePropertyAmenityDto, type CreatePropertyBookingDto, type CreatePropertyPaymentOrderDto, type CreatePurchaseOrderDto, type CreateReservationDto, type CreateReservationSlotDto, type CreateReservationTableDto, type CreateReviewDto, type CreateRoleDto, type CreateScheduledTransferDto, 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 EndUserStatus, type EndUserTagsDto, type EndUserVerifyOtpDto, type FixedDeposit, type FixedDepositClosure, type FixedDepositStatus, type FulfillRewardDto, type GenerateVirtualCardDto, type GetAnomalyAlertsQuery, type GetCatalogItemsQuery, type GetStatementQuery, type GiftCard, type GoogleDriveCallbackDto, type GoogleDriveConnectUrl, type HelpArticle, type HostEarning, type Ingredient, type InitiateTransferDto, type Institution, type InviteStaffUserDto, type InvoiceStatus, type InvoiceType, type JoinWatchRoomDto, type JsonObject, type JsonPrimitive, type JsonValue, type KycDocumentType, type KycStatus, type KycStatusResponse, type KycVerification, type ListBillPaymentsQuery, 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 MealPlanItem, type MealSubscription, type MonthlyTrendItem, type MonthlyTrends, type Movie, type MovieCredits, type MovieDetail, type NetWorthSnapshot, type Notification, type NotificationData, type NotificationStatus, type NotificationType, type NutritionData, type OauthProvider, type Order, type OrderItem, type OrderStatus, type OrderType, type OrgStatus, type OtpType, type PaginatedQuery, type PaginatedResponse, type PaginationParams, type PayBillDto, type PaymentMethod, type PaymentOrder, type PaymentProviderType, type PaymentStatus, type PaymentVerification, type PlanFeatures, type PlatformPlan, type PreviewStudentDiscountDto, type PreviewTemplateDto, type ProductType, 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 RefundStatus, type RegisterEndUserDto, type ReorderDto, type ReplySupportTicketDto, type ReportOrderIssueDto, type RequestMagicLinkDto, type Reservation, type ReservationSlot, type ResolvePropertyPriceDto, type Review, type ReviewStudentPassDto, type Role, type RuleConfig, type ScheduleCampaignDto, type ScheduledTransfer, type ScheduledTransferFrequency, type ScheduledTransferStatus, ScopedClient, type SearchQuery, type SearchStatusQuery, type SegmentType, type SetAutoSweepDto, type SetBudgetDto, type SetLocationHoursDto, type SetPropertyTypeAmenitiesDto, type SetSettingDto, type SpendingBreakdown, type SpendingBreakdownItem, type SpendingCategory, 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 SubmitKycDto, type SubscribeBillingPlanDto, type SubscribeMealPlanDto, type SubscribeNewsletterDto, type SubscriptionStatus, type SuperAdminLoginDto, type SuperAdminRole, type SuperAdminStats, type SuperAdmin as SuperAdminUser, type Supplier, type SupportReply, type SupportTicket, type SwitchWatchRoomModeDto, TZ, TZClient, type TZConfig, type TZInitOptions, TZPaginatedQuery, TZQuery, type TaxConfig, type TemplateChannel, type TmdbMovie, type TmdbMovieDetail, type ToggleCardFeatureDto, type ToggleInternationalDto, type TokenStore, type TopUpWalletDto, type TransferMode, type TransferStatus, type UpdateAccountNicknameDto, type UpdateAddressDto, type UpdateApiKeyDto, type UpdateCardLimitsDto, type UpdateCartItemDto, type UpdateCatalogCategoryDto, type UpdateCatalogOptionDto, type UpdateCatalogOptionGroupDto, type UpdateCatalogVariantDto, type UpdateDeliveryAgentDto, type UpdateDeliveryZoneDto, type UpdateEndUserProfileDto, type UpdateHelpArticleDto, type UpdateHousekeepingDto, type UpdateIngredientDto, type UpdateInstitutionDto, type UpdateMealPlanDto, type UpdateMovieProgressDto, type UpdateOrderStatusDto, type UpdateOrgDto, type UpdatePopupSettingsDto, type UpdatePurchaseOrderDto, type UpdateReservationSlotDto, type UpdateReservationStatusDto, type UpdateReservationTableDto, type UpdateReviewStatusDto, type UpdateRoleDto, type UpdateStaffUserDto, type UpdateStudentDiscountDto, type UpdateSupplierDto, type UpdateSupportTicketDto, type UploadResult, type UserStatus, 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 WatchSessionHistoryItem, type WatchSessionResponse, type WatchSessionStatus, type WatchSessionStatusType, type WatchSessionSummary, createTZ };
|
|
5042
|
+
export { type AddBeneficiaryDto, type AddCartItemDto, type AddSegmentMembersDto, type AddTrackedSubscriptionDto, type Address, type AdjustLoyaltyPointsDto, type AdminAbandonedCart, type AdminAbandonedCartsQuery, type AdminAffiliate, type AdminBlogPost, type AdminBroadcast, type AdminCancelBookingDto, type AdminCoupon, type AdminCustomer, type AdminCustomerDetail, type AdminDashboardData, type AdminDashboardQuery, type AdminDashboardStats, type AdminDeliveryAgent, type AdminDeliveryZone, type AdminFinanceQuery, type AdminFulfillResult, type AdminGiftCard, type AdminGiftCardTransaction, type AdminHelpArticle, type AdminInstitution, type AdminInvoice, type AdminListOrdersQuery, type AdminLocation, type AdminLocationDetail, type AdminLoyaltyAccount, type AdminLoyaltyData, type AdminMealSubscription, type AdminMenuItem, type AdminOrder, type AdminOrderDetail, type AdminOrganization, type AdminPayout, type AdminPopupSettings, type AdminPromotion, type AdminRedemption, type AdminReservation, type AdminReservationSlot, type AdminReservationTable, type AdminReview, type AdminScheduledOrder, type AdminScheduledOrdersQuery, type AdminSetting, type AdminSettlement, type AdminStudentDiscount, type AdminStudentPass, type AdminStudentPassDetail, type AdminStudentPassStats, type AdminSyncLog, type AdminTaxSummary, type AdminTicket, type AdminTicketDetail, type AdminTicketMessage, type AdminWaitlistEntry, type AdminWaitlistGroup, type AnomalyAlert, type ApiError, type ApiErrorEnvelope, type ApiKey, type ApiKeyEnv, type ApiPaginatedEnvelope, type ApiPaginatedResult, type ApiResponseEnvelope, type ApiResult, type ApplyStudentPassDto, type AssignPropertyUnitsDto, type AssignStaffRolesDto, type AuditLog, type AuthResponse, type AuthScope, type AuthTokens, type BankAccount, type BankAccountBalance, type BankAccountStatus, type BankAccountType, type BankCard, type BankTransaction, type Beneficiary, type BillPayment, type BillPaymentStatus, type BudgetItem, type BulkReviewStudentPassesDto, type BulkUpdateSettingsDto, type BulkUpsertEndUsersDto, type CalculateDeliveryDto, type CampaignChannel, type CampaignStatus, type CancelPropertyBookingDto, type CardStatus, type CardType, type CardVariant, type Cart, type CartItemOption, type CartLineItem, type CashFlowSummary, type CatalogCategory, type CatalogItem, type CatalogItemVariant, type CatalogOption, type CatalogOptionGroup, type CatalogSizeVariation, type ChangeEndUserPasswordDto, type CheckPropertyAvailabilityQuery, type CheckReservationAvailabilityQuery, type CompleteSignupDto, type ConnectedSource, type ContactMessage, type ContentPost, type CouponValidation, type CreateAddressDto, type CreateApiKeyDto, type CreateBroadcastDto, type CreateCatalogCategoryDto, type CreateCatalogOptionDto, type CreateCatalogOptionGroupDto, type CreateCatalogVariantDto, type CreateDeliveryAgentDto, type CreateDeliveryZoneDto, type CreateFixedDepositDto, type CreateHelpArticleDto, type CreateIngredientDto, type CreateInstitutionDto, type CreateMealPlanDto, type CreateOrderDto, type CreatePaymentOrderDto, type CreatePropertyAmenityDto, type CreatePropertyBookingDto, type CreatePropertyPaymentOrderDto, type CreatePurchaseOrderDto, type CreateReservationDto, type CreateReservationSlotDto, type CreateReservationTableDto, type CreateReviewDto, type CreateRoleDto, type CreateScheduledTransferDto, 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 EndUserStatus, type EndUserTagsDto, type EndUserVerifyOtpDto, type FixedDeposit, type FixedDepositClosure, type FixedDepositStatus, type FulfillRewardDto, type GenerateVirtualCardDto, type GetAnomalyAlertsQuery, type GetCatalogItemsQuery, type GetStatementQuery, type GiftCard, type GmailAccount, type GmailCallbackDto, type GoogleDriveCallbackDto, type GoogleDriveConnectUrl, type HelpArticle, type HostEarning, type Ingredient, type InitiateTransferDto, type Institution, type InviteStaffUserDto, type InvoiceStatus, type InvoiceType, type JoinWatchRoomDto, type JsonObject, type JsonPrimitive, type JsonValue, type KycDocumentType, type KycStatus, type KycStatusResponse, type KycVerification, type ListBillPaymentsQuery, 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 MealPlanItem, type MealSubscription, type MonthlyTrendItem, type MonthlyTrends, type Movie, type MovieCredits, type MovieDetail, type NetWorthSnapshot, type Notification, type NotificationData, type NotificationStatus, type NotificationType, type NutritionData, type OauthProvider, type Order, type OrderItem, type OrderStatus, type OrderType, type OrgStatus, type OtpType, type PaginatedQuery, type PaginatedResponse, type PaginationParams, type PayBillDto, type PaymentMethod, type PaymentOrder, type PaymentProviderType, type PaymentStatus, type PaymentVerification, type PlanFeatures, type PlatformPlan, type PreviewStudentDiscountDto, type PreviewTemplateDto, type ProductType, type Promotion, type PropertyAvailability, type PropertyBooking, type PropertyPriceResolution, type PropertyType, type PurchaseGiftCardDto, type PurchaseOrder, type PurchaseOrderItem, type QueryMealSubscriptionsParams, type QueryPurchaseOrdersParams, type QuerySubscriptionAlertsDto, type QuerySubscriptionSuggestionsDto, type QueryTrackedSubscriptionsDto, type RawResponse, type RedeemGiftCardDto, type RedeemLoyaltyRewardDto, type ReferralInfo, type ReferralValidation, type RefundStatus, type RegisterEndUserDto, type ReorderDto, type ReplySupportTicketDto, type ReportOrderIssueDto, type RequestMagicLinkDto, type Reservation, type ReservationSlot, type ResolvePropertyPriceDto, type Review, type ReviewStudentPassDto, type Role, type RuleConfig, type ScheduleCampaignDto, type ScheduledTransfer, type ScheduledTransferFrequency, type ScheduledTransferStatus, ScopedClient, type SearchQuery, type SearchStatusQuery, type SegmentType, type SetAutoSweepDto, type SetBudgetDto, type SetLocationHoursDto, type SetPropertyTypeAmenitiesDto, type SetSettingDto, type SpendingBreakdown, type SpendingBreakdownItem, type SpendingCategory, 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 SubAlertType, type SubRadarBillingCycle, type SubRadarSubStatus, type SubRadarSuggestionAction, type SubRadarSummary, type SubRadarTrend, type SubSuggestionStatus, type SubSuggestionType, type SubmitContactDto, type SubmitKycDto, type SubscribeBillingPlanDto, type SubscribeMealPlanDto, type SubscribeNewsletterDto, type SubscriptionAlert, type SubscriptionStatus, type SubscriptionSuggestion, type SuggestionActionDto, type SuperAdminLoginDto, type SuperAdminRole, type SuperAdminStats, type SuperAdmin as SuperAdminUser, type Supplier, type SupportReply, type SupportTicket, type SwitchWatchRoomModeDto, TZ, TZClient, type TZConfig, type TZInitOptions, TZPaginatedQuery, TZQuery, type TaxConfig, type TemplateChannel, type TmdbMovie, type TmdbMovieDetail, type ToggleCardFeatureDto, type ToggleInternationalDto, type TokenStore, type TopUpWalletDto, type TrackedBillingCycle, type TrackedSubSource, type TrackedSubStatus, type TrackedSubscription, type TransferMode, type TransferStatus, type UpdateAccountNicknameDto, type UpdateAddressDto, type UpdateApiKeyDto, type UpdateCardLimitsDto, type UpdateCartItemDto, type UpdateCatalogCategoryDto, type UpdateCatalogOptionDto, type UpdateCatalogOptionGroupDto, type UpdateCatalogVariantDto, type UpdateDeliveryAgentDto, type UpdateDeliveryZoneDto, type UpdateEndUserProfileDto, type UpdateHelpArticleDto, type UpdateHousekeepingDto, type UpdateIngredientDto, type UpdateInstitutionDto, type UpdateMealPlanDto, type UpdateMovieProgressDto, type UpdateOrderStatusDto, type UpdateOrgDto, type UpdatePopupSettingsDto, type UpdatePurchaseOrderDto, type UpdateReservationSlotDto, type UpdateReservationStatusDto, type UpdateReservationTableDto, type UpdateReviewStatusDto, type UpdateRoleDto, type UpdateStaffUserDto, type UpdateStudentDiscountDto, type UpdateSupplierDto, type UpdateSupportTicketDto, type UpdateTrackedSubscriptionDto, type UploadResult, type UserStatus, 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 WatchSessionHistoryItem, type WatchSessionResponse, type WatchSessionStatus, type WatchSessionStatusType, type WatchSessionSummary, createTZ };
|
package/dist/index.d.ts
CHANGED
|
@@ -1990,6 +1990,102 @@ interface NetWorthSnapshot {
|
|
|
1990
1990
|
netWorth: number;
|
|
1991
1991
|
};
|
|
1992
1992
|
}
|
|
1993
|
+
type TrackedBillingCycle = 'monthly' | 'quarterly' | 'half_yearly' | 'yearly' | 'weekly' | 'lifetime';
|
|
1994
|
+
type TrackedSubSource = 'gmail_auto' | 'manual';
|
|
1995
|
+
type TrackedSubStatus = 'active' | 'cancelled' | 'paused' | 'forgotten' | 'free_trial';
|
|
1996
|
+
type SubAlertType = 'renewal_7d' | 'renewal_3d' | 'renewal_1d' | 'free_trial_expiry' | 'price_increase' | 'price_decrease';
|
|
1997
|
+
type SubSuggestionType = 'cheaper_alternative' | 'plan_downgrade' | 'cancel_forgotten' | 'cancel_low_usage' | 'free_tier_available';
|
|
1998
|
+
type SubSuggestionStatus = 'pending' | 'accepted' | 'dismissed' | 'not_interested';
|
|
1999
|
+
/** A Gmail account connected for subscription scanning. */
|
|
2000
|
+
interface GmailAccount {
|
|
2001
|
+
id: string;
|
|
2002
|
+
email: string;
|
|
2003
|
+
scopes: string[];
|
|
2004
|
+
lastScanAt: string | null;
|
|
2005
|
+
connectedAt: string;
|
|
2006
|
+
}
|
|
2007
|
+
/** A detected or manually added subscription. */
|
|
2008
|
+
interface TrackedSubscription {
|
|
2009
|
+
id: string;
|
|
2010
|
+
serviceName: string;
|
|
2011
|
+
domain: string | null;
|
|
2012
|
+
logoUrl: string | null;
|
|
2013
|
+
category: string;
|
|
2014
|
+
/** Amount in paise (₹ × 100) */
|
|
2015
|
+
amountPaise: number;
|
|
2016
|
+
currency: string;
|
|
2017
|
+
billingCycle: TrackedBillingCycle;
|
|
2018
|
+
nextRenewalAt: string | null;
|
|
2019
|
+
lastSeenAt: string | null;
|
|
2020
|
+
lastActivityAt: string | null;
|
|
2021
|
+
source: TrackedSubSource;
|
|
2022
|
+
status: TrackedSubStatus;
|
|
2023
|
+
isFreeTrialDetected: boolean;
|
|
2024
|
+
freeTrialEndsAt: string | null;
|
|
2025
|
+
notes: string | null;
|
|
2026
|
+
createdAt: string;
|
|
2027
|
+
}
|
|
2028
|
+
/** Renewal/trial/price-change alert for a tracked subscription. */
|
|
2029
|
+
interface SubscriptionAlert {
|
|
2030
|
+
id: string;
|
|
2031
|
+
alertType: SubAlertType;
|
|
2032
|
+
daysUntilRenewal: number | null;
|
|
2033
|
+
/** Amount in paise */
|
|
2034
|
+
amountPaise: number | null;
|
|
2035
|
+
previousAmountPaise: number | null;
|
|
2036
|
+
scheduledAt: string;
|
|
2037
|
+
sentAt: string | null;
|
|
2038
|
+
isDismissed: boolean;
|
|
2039
|
+
createdAt: string;
|
|
2040
|
+
trackedSubscription: {
|
|
2041
|
+
id: string;
|
|
2042
|
+
serviceName: string;
|
|
2043
|
+
logoUrl: string | null;
|
|
2044
|
+
category: string;
|
|
2045
|
+
billingCycle: TrackedBillingCycle;
|
|
2046
|
+
};
|
|
2047
|
+
}
|
|
2048
|
+
/** A money-saving suggestion generated by the engine. */
|
|
2049
|
+
interface SubscriptionSuggestion {
|
|
2050
|
+
id: string;
|
|
2051
|
+
suggestionType: SubSuggestionType;
|
|
2052
|
+
title: string;
|
|
2053
|
+
description: string;
|
|
2054
|
+
/** Estimated annual savings in paise */
|
|
2055
|
+
savingsPaise: number | null;
|
|
2056
|
+
alternativeServiceName: string | null;
|
|
2057
|
+
alternativeAmountPaise: number | null;
|
|
2058
|
+
affiliateUrl: string | null;
|
|
2059
|
+
status: SubSuggestionStatus;
|
|
2060
|
+
createdAt: string;
|
|
2061
|
+
trackedSubscription: {
|
|
2062
|
+
id: string;
|
|
2063
|
+
serviceName: string;
|
|
2064
|
+
logoUrl: string | null;
|
|
2065
|
+
amountPaise: number;
|
|
2066
|
+
billingCycle: TrackedBillingCycle;
|
|
2067
|
+
category: string;
|
|
2068
|
+
};
|
|
2069
|
+
}
|
|
2070
|
+
/** Spending summary returned by analytics. */
|
|
2071
|
+
interface SubRadarSummary {
|
|
2072
|
+
totalMonthlyPaise: number;
|
|
2073
|
+
totalAnnualPaise: number;
|
|
2074
|
+
activeCount: number;
|
|
2075
|
+
lowUsageCount: number;
|
|
2076
|
+
forgottenCount: number;
|
|
2077
|
+
byCategory: Record<string, {
|
|
2078
|
+
count: number;
|
|
2079
|
+
monthlyPaise: number;
|
|
2080
|
+
}>;
|
|
2081
|
+
}
|
|
2082
|
+
/** Month-by-month spending trend. */
|
|
2083
|
+
interface SubRadarTrend {
|
|
2084
|
+
trend: Array<{
|
|
2085
|
+
month: string;
|
|
2086
|
+
totalPaise: number;
|
|
2087
|
+
}>;
|
|
2088
|
+
}
|
|
1993
2089
|
|
|
1994
2090
|
interface RawResponse<T> {
|
|
1995
2091
|
data: T;
|
|
@@ -2459,6 +2555,48 @@ interface SetBudgetDto {
|
|
|
2459
2555
|
interface GetAnomalyAlertsQuery extends PaginatedQuery {
|
|
2460
2556
|
unreadOnly?: boolean;
|
|
2461
2557
|
}
|
|
2558
|
+
type SubRadarBillingCycle = 'monthly' | 'quarterly' | 'half_yearly' | 'yearly' | 'weekly' | 'lifetime';
|
|
2559
|
+
type SubRadarSubStatus = 'active' | 'cancelled' | 'paused' | 'forgotten' | 'free_trial';
|
|
2560
|
+
type SubRadarSuggestionAction = 'accepted' | 'dismissed' | 'not_interested';
|
|
2561
|
+
interface GmailCallbackDto {
|
|
2562
|
+
code: string;
|
|
2563
|
+
}
|
|
2564
|
+
interface AddTrackedSubscriptionDto {
|
|
2565
|
+
serviceName: string;
|
|
2566
|
+
domain?: string;
|
|
2567
|
+
logoUrl?: string;
|
|
2568
|
+
category: string;
|
|
2569
|
+
/** Amount in paise (₹ × 100) */
|
|
2570
|
+
amountPaise: number;
|
|
2571
|
+
currency?: string;
|
|
2572
|
+
billingCycle: SubRadarBillingCycle;
|
|
2573
|
+
nextRenewalAt?: string;
|
|
2574
|
+
isFreeTrialDetected?: boolean;
|
|
2575
|
+
freeTrialEndsAt?: string;
|
|
2576
|
+
notes?: string;
|
|
2577
|
+
}
|
|
2578
|
+
interface UpdateTrackedSubscriptionDto {
|
|
2579
|
+
serviceName?: string;
|
|
2580
|
+
logoUrl?: string;
|
|
2581
|
+
category?: string;
|
|
2582
|
+
amountPaise?: number;
|
|
2583
|
+
billingCycle?: SubRadarBillingCycle;
|
|
2584
|
+
nextRenewalAt?: string;
|
|
2585
|
+
status?: SubRadarSubStatus;
|
|
2586
|
+
notes?: string;
|
|
2587
|
+
}
|
|
2588
|
+
interface QueryTrackedSubscriptionsDto extends PaginatedQuery {
|
|
2589
|
+
category?: string;
|
|
2590
|
+
status?: SubRadarSubStatus;
|
|
2591
|
+
}
|
|
2592
|
+
interface QuerySubscriptionAlertsDto extends PaginatedQuery {
|
|
2593
|
+
undismissed?: boolean;
|
|
2594
|
+
}
|
|
2595
|
+
interface QuerySubscriptionSuggestionsDto extends PaginatedQuery {
|
|
2596
|
+
}
|
|
2597
|
+
interface SuggestionActionDto {
|
|
2598
|
+
action: SubRadarSuggestionAction;
|
|
2599
|
+
}
|
|
2462
2600
|
|
|
2463
2601
|
interface StaffRegisterDto {
|
|
2464
2602
|
name: string;
|
|
@@ -3351,6 +3489,60 @@ declare const TZ: {
|
|
|
3351
3489
|
dismiss(id: string): TZQuery<AnomalyAlert>;
|
|
3352
3490
|
};
|
|
3353
3491
|
};
|
|
3492
|
+
subRadar: {
|
|
3493
|
+
gmail: {
|
|
3494
|
+
list(): TZQuery<{
|
|
3495
|
+
accounts: GmailAccount[];
|
|
3496
|
+
}>;
|
|
3497
|
+
getConnectUrl(): TZQuery<{
|
|
3498
|
+
url: string;
|
|
3499
|
+
}>;
|
|
3500
|
+
callback(data: GmailCallbackDto): TZQuery<{
|
|
3501
|
+
account: GmailAccount;
|
|
3502
|
+
}>;
|
|
3503
|
+
triggerScan(accountId: string): TZQuery<{
|
|
3504
|
+
message: string;
|
|
3505
|
+
accountId: string;
|
|
3506
|
+
}>;
|
|
3507
|
+
disconnect(accountId: string): TZQuery<{
|
|
3508
|
+
message: string;
|
|
3509
|
+
}>;
|
|
3510
|
+
};
|
|
3511
|
+
subscriptions: {
|
|
3512
|
+
list(params?: QueryTrackedSubscriptionsDto): TZPaginatedQuery<TrackedSubscription>;
|
|
3513
|
+
get(id: string): TZQuery<TrackedSubscription>;
|
|
3514
|
+
summary(): TZQuery<{
|
|
3515
|
+
totalMonthlyPaise: number;
|
|
3516
|
+
totalAnnualPaise: number;
|
|
3517
|
+
activeCount: number;
|
|
3518
|
+
byCategory: Record<string, number>;
|
|
3519
|
+
}>;
|
|
3520
|
+
add(data: AddTrackedSubscriptionDto): TZQuery<TrackedSubscription>;
|
|
3521
|
+
update(id: string, data: UpdateTrackedSubscriptionDto): TZQuery<TrackedSubscription>;
|
|
3522
|
+
remove(id: string): TZQuery<{
|
|
3523
|
+
message: string;
|
|
3524
|
+
}>;
|
|
3525
|
+
};
|
|
3526
|
+
alerts: {
|
|
3527
|
+
list(params?: QuerySubscriptionAlertsDto): TZPaginatedQuery<SubscriptionAlert>;
|
|
3528
|
+
dismiss(alertId: string): TZQuery<{
|
|
3529
|
+
message: string;
|
|
3530
|
+
}>;
|
|
3531
|
+
dismissAll(): TZQuery<{
|
|
3532
|
+
message: string;
|
|
3533
|
+
}>;
|
|
3534
|
+
};
|
|
3535
|
+
suggestions: {
|
|
3536
|
+
list(params?: QuerySubscriptionSuggestionsDto): TZPaginatedQuery<SubscriptionSuggestion>;
|
|
3537
|
+
action(suggestionId: string, data: SuggestionActionDto): TZQuery<{
|
|
3538
|
+
message: string;
|
|
3539
|
+
}>;
|
|
3540
|
+
};
|
|
3541
|
+
analytics: {
|
|
3542
|
+
summary(): TZQuery<SubRadarSummary>;
|
|
3543
|
+
trends(months?: number): TZQuery<SubRadarTrend>;
|
|
3544
|
+
};
|
|
3545
|
+
};
|
|
3354
3546
|
};
|
|
3355
3547
|
/** Admin namespace — all staff/org-admin APIs */
|
|
3356
3548
|
readonly admin: {
|
|
@@ -4247,6 +4439,60 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
4247
4439
|
dismiss(id: string): TZQuery<AnomalyAlert>;
|
|
4248
4440
|
};
|
|
4249
4441
|
};
|
|
4442
|
+
subRadar: {
|
|
4443
|
+
gmail: {
|
|
4444
|
+
list(): TZQuery<{
|
|
4445
|
+
accounts: GmailAccount[];
|
|
4446
|
+
}>;
|
|
4447
|
+
getConnectUrl(): TZQuery<{
|
|
4448
|
+
url: string;
|
|
4449
|
+
}>;
|
|
4450
|
+
callback(data: GmailCallbackDto): TZQuery<{
|
|
4451
|
+
account: GmailAccount;
|
|
4452
|
+
}>;
|
|
4453
|
+
triggerScan(accountId: string): TZQuery<{
|
|
4454
|
+
message: string;
|
|
4455
|
+
accountId: string;
|
|
4456
|
+
}>;
|
|
4457
|
+
disconnect(accountId: string): TZQuery<{
|
|
4458
|
+
message: string;
|
|
4459
|
+
}>;
|
|
4460
|
+
};
|
|
4461
|
+
subscriptions: {
|
|
4462
|
+
list(params?: QueryTrackedSubscriptionsDto): TZPaginatedQuery<TrackedSubscription>;
|
|
4463
|
+
get(id: string): TZQuery<TrackedSubscription>;
|
|
4464
|
+
summary(): TZQuery<{
|
|
4465
|
+
totalMonthlyPaise: number;
|
|
4466
|
+
totalAnnualPaise: number;
|
|
4467
|
+
activeCount: number;
|
|
4468
|
+
byCategory: Record<string, number>;
|
|
4469
|
+
}>;
|
|
4470
|
+
add(data: AddTrackedSubscriptionDto): TZQuery<TrackedSubscription>;
|
|
4471
|
+
update(id: string, data: UpdateTrackedSubscriptionDto): TZQuery<TrackedSubscription>;
|
|
4472
|
+
remove(id: string): TZQuery<{
|
|
4473
|
+
message: string;
|
|
4474
|
+
}>;
|
|
4475
|
+
};
|
|
4476
|
+
alerts: {
|
|
4477
|
+
list(params?: QuerySubscriptionAlertsDto): TZPaginatedQuery<SubscriptionAlert>;
|
|
4478
|
+
dismiss(alertId: string): TZQuery<{
|
|
4479
|
+
message: string;
|
|
4480
|
+
}>;
|
|
4481
|
+
dismissAll(): TZQuery<{
|
|
4482
|
+
message: string;
|
|
4483
|
+
}>;
|
|
4484
|
+
};
|
|
4485
|
+
suggestions: {
|
|
4486
|
+
list(params?: QuerySubscriptionSuggestionsDto): TZPaginatedQuery<SubscriptionSuggestion>;
|
|
4487
|
+
action(suggestionId: string, data: SuggestionActionDto): TZQuery<{
|
|
4488
|
+
message: string;
|
|
4489
|
+
}>;
|
|
4490
|
+
};
|
|
4491
|
+
analytics: {
|
|
4492
|
+
summary(): TZQuery<SubRadarSummary>;
|
|
4493
|
+
trends(months?: number): TZQuery<SubRadarTrend>;
|
|
4494
|
+
};
|
|
4495
|
+
};
|
|
4250
4496
|
};
|
|
4251
4497
|
admin: {
|
|
4252
4498
|
auth: {
|
|
@@ -4793,4 +5039,4 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
4793
5039
|
}>;
|
|
4794
5040
|
};
|
|
4795
5041
|
|
|
4796
|
-
export { type AddBeneficiaryDto, type AddCartItemDto, type AddSegmentMembersDto, type Address, type AdjustLoyaltyPointsDto, type AdminAbandonedCart, type AdminAbandonedCartsQuery, type AdminAffiliate, type AdminBlogPost, type AdminBroadcast, type AdminCancelBookingDto, type AdminCoupon, type AdminCustomer, type AdminCustomerDetail, type AdminDashboardData, type AdminDashboardQuery, type AdminDashboardStats, type AdminDeliveryAgent, type AdminDeliveryZone, type AdminFinanceQuery, type AdminFulfillResult, type AdminGiftCard, type AdminGiftCardTransaction, type AdminHelpArticle, type AdminInstitution, type AdminInvoice, type AdminListOrdersQuery, type AdminLocation, type AdminLocationDetail, type AdminLoyaltyAccount, type AdminLoyaltyData, type AdminMealSubscription, type AdminMenuItem, type AdminOrder, type AdminOrderDetail, type AdminOrganization, type AdminPayout, type AdminPopupSettings, type AdminPromotion, type AdminRedemption, type AdminReservation, type AdminReservationSlot, type AdminReservationTable, type AdminReview, type AdminScheduledOrder, type AdminScheduledOrdersQuery, type AdminSetting, type AdminSettlement, type AdminStudentDiscount, type AdminStudentPass, type AdminStudentPassDetail, type AdminStudentPassStats, type AdminSyncLog, type AdminTaxSummary, type AdminTicket, type AdminTicketDetail, type AdminTicketMessage, type AdminWaitlistEntry, type AdminWaitlistGroup, type AnomalyAlert, type ApiError, type ApiErrorEnvelope, type ApiKey, type ApiKeyEnv, type ApiPaginatedEnvelope, type ApiPaginatedResult, type ApiResponseEnvelope, type ApiResult, type ApplyStudentPassDto, type AssignPropertyUnitsDto, type AssignStaffRolesDto, type AuditLog, type AuthResponse, type AuthScope, type AuthTokens, type BankAccount, type BankAccountBalance, type BankAccountStatus, type BankAccountType, type BankCard, type BankTransaction, type Beneficiary, type BillPayment, type BillPaymentStatus, type BudgetItem, type BulkReviewStudentPassesDto, type BulkUpdateSettingsDto, type BulkUpsertEndUsersDto, type CalculateDeliveryDto, type CampaignChannel, type CampaignStatus, type CancelPropertyBookingDto, type CardStatus, type CardType, type CardVariant, type Cart, type CartItemOption, type CartLineItem, type CashFlowSummary, type CatalogCategory, type CatalogItem, type CatalogItemVariant, type CatalogOption, type CatalogOptionGroup, type CatalogSizeVariation, type ChangeEndUserPasswordDto, type CheckPropertyAvailabilityQuery, type CheckReservationAvailabilityQuery, type CompleteSignupDto, type ConnectedSource, type ContactMessage, type ContentPost, type CouponValidation, type CreateAddressDto, type CreateApiKeyDto, type CreateBroadcastDto, type CreateCatalogCategoryDto, type CreateCatalogOptionDto, type CreateCatalogOptionGroupDto, type CreateCatalogVariantDto, type CreateDeliveryAgentDto, type CreateDeliveryZoneDto, type CreateFixedDepositDto, type CreateHelpArticleDto, type CreateIngredientDto, type CreateInstitutionDto, type CreateMealPlanDto, type CreateOrderDto, type CreatePaymentOrderDto, type CreatePropertyAmenityDto, type CreatePropertyBookingDto, type CreatePropertyPaymentOrderDto, type CreatePurchaseOrderDto, type CreateReservationDto, type CreateReservationSlotDto, type CreateReservationTableDto, type CreateReviewDto, type CreateRoleDto, type CreateScheduledTransferDto, 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 EndUserStatus, type EndUserTagsDto, type EndUserVerifyOtpDto, type FixedDeposit, type FixedDepositClosure, type FixedDepositStatus, type FulfillRewardDto, type GenerateVirtualCardDto, type GetAnomalyAlertsQuery, type GetCatalogItemsQuery, type GetStatementQuery, type GiftCard, type GoogleDriveCallbackDto, type GoogleDriveConnectUrl, type HelpArticle, type HostEarning, type Ingredient, type InitiateTransferDto, type Institution, type InviteStaffUserDto, type InvoiceStatus, type InvoiceType, type JoinWatchRoomDto, type JsonObject, type JsonPrimitive, type JsonValue, type KycDocumentType, type KycStatus, type KycStatusResponse, type KycVerification, type ListBillPaymentsQuery, 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 MealPlanItem, type MealSubscription, type MonthlyTrendItem, type MonthlyTrends, type Movie, type MovieCredits, type MovieDetail, type NetWorthSnapshot, type Notification, type NotificationData, type NotificationStatus, type NotificationType, type NutritionData, type OauthProvider, type Order, type OrderItem, type OrderStatus, type OrderType, type OrgStatus, type OtpType, type PaginatedQuery, type PaginatedResponse, type PaginationParams, type PayBillDto, type PaymentMethod, type PaymentOrder, type PaymentProviderType, type PaymentStatus, type PaymentVerification, type PlanFeatures, type PlatformPlan, type PreviewStudentDiscountDto, type PreviewTemplateDto, type ProductType, 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 RefundStatus, type RegisterEndUserDto, type ReorderDto, type ReplySupportTicketDto, type ReportOrderIssueDto, type RequestMagicLinkDto, type Reservation, type ReservationSlot, type ResolvePropertyPriceDto, type Review, type ReviewStudentPassDto, type Role, type RuleConfig, type ScheduleCampaignDto, type ScheduledTransfer, type ScheduledTransferFrequency, type ScheduledTransferStatus, ScopedClient, type SearchQuery, type SearchStatusQuery, type SegmentType, type SetAutoSweepDto, type SetBudgetDto, type SetLocationHoursDto, type SetPropertyTypeAmenitiesDto, type SetSettingDto, type SpendingBreakdown, type SpendingBreakdownItem, type SpendingCategory, 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 SubmitKycDto, type SubscribeBillingPlanDto, type SubscribeMealPlanDto, type SubscribeNewsletterDto, type SubscriptionStatus, type SuperAdminLoginDto, type SuperAdminRole, type SuperAdminStats, type SuperAdmin as SuperAdminUser, type Supplier, type SupportReply, type SupportTicket, type SwitchWatchRoomModeDto, TZ, TZClient, type TZConfig, type TZInitOptions, TZPaginatedQuery, TZQuery, type TaxConfig, type TemplateChannel, type TmdbMovie, type TmdbMovieDetail, type ToggleCardFeatureDto, type ToggleInternationalDto, type TokenStore, type TopUpWalletDto, type TransferMode, type TransferStatus, type UpdateAccountNicknameDto, type UpdateAddressDto, type UpdateApiKeyDto, type UpdateCardLimitsDto, type UpdateCartItemDto, type UpdateCatalogCategoryDto, type UpdateCatalogOptionDto, type UpdateCatalogOptionGroupDto, type UpdateCatalogVariantDto, type UpdateDeliveryAgentDto, type UpdateDeliveryZoneDto, type UpdateEndUserProfileDto, type UpdateHelpArticleDto, type UpdateHousekeepingDto, type UpdateIngredientDto, type UpdateInstitutionDto, type UpdateMealPlanDto, type UpdateMovieProgressDto, type UpdateOrderStatusDto, type UpdateOrgDto, type UpdatePopupSettingsDto, type UpdatePurchaseOrderDto, type UpdateReservationSlotDto, type UpdateReservationStatusDto, type UpdateReservationTableDto, type UpdateReviewStatusDto, type UpdateRoleDto, type UpdateStaffUserDto, type UpdateStudentDiscountDto, type UpdateSupplierDto, type UpdateSupportTicketDto, type UploadResult, type UserStatus, 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 WatchSessionHistoryItem, type WatchSessionResponse, type WatchSessionStatus, type WatchSessionStatusType, type WatchSessionSummary, createTZ };
|
|
5042
|
+
export { type AddBeneficiaryDto, type AddCartItemDto, type AddSegmentMembersDto, type AddTrackedSubscriptionDto, type Address, type AdjustLoyaltyPointsDto, type AdminAbandonedCart, type AdminAbandonedCartsQuery, type AdminAffiliate, type AdminBlogPost, type AdminBroadcast, type AdminCancelBookingDto, type AdminCoupon, type AdminCustomer, type AdminCustomerDetail, type AdminDashboardData, type AdminDashboardQuery, type AdminDashboardStats, type AdminDeliveryAgent, type AdminDeliveryZone, type AdminFinanceQuery, type AdminFulfillResult, type AdminGiftCard, type AdminGiftCardTransaction, type AdminHelpArticle, type AdminInstitution, type AdminInvoice, type AdminListOrdersQuery, type AdminLocation, type AdminLocationDetail, type AdminLoyaltyAccount, type AdminLoyaltyData, type AdminMealSubscription, type AdminMenuItem, type AdminOrder, type AdminOrderDetail, type AdminOrganization, type AdminPayout, type AdminPopupSettings, type AdminPromotion, type AdminRedemption, type AdminReservation, type AdminReservationSlot, type AdminReservationTable, type AdminReview, type AdminScheduledOrder, type AdminScheduledOrdersQuery, type AdminSetting, type AdminSettlement, type AdminStudentDiscount, type AdminStudentPass, type AdminStudentPassDetail, type AdminStudentPassStats, type AdminSyncLog, type AdminTaxSummary, type AdminTicket, type AdminTicketDetail, type AdminTicketMessage, type AdminWaitlistEntry, type AdminWaitlistGroup, type AnomalyAlert, type ApiError, type ApiErrorEnvelope, type ApiKey, type ApiKeyEnv, type ApiPaginatedEnvelope, type ApiPaginatedResult, type ApiResponseEnvelope, type ApiResult, type ApplyStudentPassDto, type AssignPropertyUnitsDto, type AssignStaffRolesDto, type AuditLog, type AuthResponse, type AuthScope, type AuthTokens, type BankAccount, type BankAccountBalance, type BankAccountStatus, type BankAccountType, type BankCard, type BankTransaction, type Beneficiary, type BillPayment, type BillPaymentStatus, type BudgetItem, type BulkReviewStudentPassesDto, type BulkUpdateSettingsDto, type BulkUpsertEndUsersDto, type CalculateDeliveryDto, type CampaignChannel, type CampaignStatus, type CancelPropertyBookingDto, type CardStatus, type CardType, type CardVariant, type Cart, type CartItemOption, type CartLineItem, type CashFlowSummary, type CatalogCategory, type CatalogItem, type CatalogItemVariant, type CatalogOption, type CatalogOptionGroup, type CatalogSizeVariation, type ChangeEndUserPasswordDto, type CheckPropertyAvailabilityQuery, type CheckReservationAvailabilityQuery, type CompleteSignupDto, type ConnectedSource, type ContactMessage, type ContentPost, type CouponValidation, type CreateAddressDto, type CreateApiKeyDto, type CreateBroadcastDto, type CreateCatalogCategoryDto, type CreateCatalogOptionDto, type CreateCatalogOptionGroupDto, type CreateCatalogVariantDto, type CreateDeliveryAgentDto, type CreateDeliveryZoneDto, type CreateFixedDepositDto, type CreateHelpArticleDto, type CreateIngredientDto, type CreateInstitutionDto, type CreateMealPlanDto, type CreateOrderDto, type CreatePaymentOrderDto, type CreatePropertyAmenityDto, type CreatePropertyBookingDto, type CreatePropertyPaymentOrderDto, type CreatePurchaseOrderDto, type CreateReservationDto, type CreateReservationSlotDto, type CreateReservationTableDto, type CreateReviewDto, type CreateRoleDto, type CreateScheduledTransferDto, 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 EndUserStatus, type EndUserTagsDto, type EndUserVerifyOtpDto, type FixedDeposit, type FixedDepositClosure, type FixedDepositStatus, type FulfillRewardDto, type GenerateVirtualCardDto, type GetAnomalyAlertsQuery, type GetCatalogItemsQuery, type GetStatementQuery, type GiftCard, type GmailAccount, type GmailCallbackDto, type GoogleDriveCallbackDto, type GoogleDriveConnectUrl, type HelpArticle, type HostEarning, type Ingredient, type InitiateTransferDto, type Institution, type InviteStaffUserDto, type InvoiceStatus, type InvoiceType, type JoinWatchRoomDto, type JsonObject, type JsonPrimitive, type JsonValue, type KycDocumentType, type KycStatus, type KycStatusResponse, type KycVerification, type ListBillPaymentsQuery, 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 MealPlanItem, type MealSubscription, type MonthlyTrendItem, type MonthlyTrends, type Movie, type MovieCredits, type MovieDetail, type NetWorthSnapshot, type Notification, type NotificationData, type NotificationStatus, type NotificationType, type NutritionData, type OauthProvider, type Order, type OrderItem, type OrderStatus, type OrderType, type OrgStatus, type OtpType, type PaginatedQuery, type PaginatedResponse, type PaginationParams, type PayBillDto, type PaymentMethod, type PaymentOrder, type PaymentProviderType, type PaymentStatus, type PaymentVerification, type PlanFeatures, type PlatformPlan, type PreviewStudentDiscountDto, type PreviewTemplateDto, type ProductType, type Promotion, type PropertyAvailability, type PropertyBooking, type PropertyPriceResolution, type PropertyType, type PurchaseGiftCardDto, type PurchaseOrder, type PurchaseOrderItem, type QueryMealSubscriptionsParams, type QueryPurchaseOrdersParams, type QuerySubscriptionAlertsDto, type QuerySubscriptionSuggestionsDto, type QueryTrackedSubscriptionsDto, type RawResponse, type RedeemGiftCardDto, type RedeemLoyaltyRewardDto, type ReferralInfo, type ReferralValidation, type RefundStatus, type RegisterEndUserDto, type ReorderDto, type ReplySupportTicketDto, type ReportOrderIssueDto, type RequestMagicLinkDto, type Reservation, type ReservationSlot, type ResolvePropertyPriceDto, type Review, type ReviewStudentPassDto, type Role, type RuleConfig, type ScheduleCampaignDto, type ScheduledTransfer, type ScheduledTransferFrequency, type ScheduledTransferStatus, ScopedClient, type SearchQuery, type SearchStatusQuery, type SegmentType, type SetAutoSweepDto, type SetBudgetDto, type SetLocationHoursDto, type SetPropertyTypeAmenitiesDto, type SetSettingDto, type SpendingBreakdown, type SpendingBreakdownItem, type SpendingCategory, 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 SubAlertType, type SubRadarBillingCycle, type SubRadarSubStatus, type SubRadarSuggestionAction, type SubRadarSummary, type SubRadarTrend, type SubSuggestionStatus, type SubSuggestionType, type SubmitContactDto, type SubmitKycDto, type SubscribeBillingPlanDto, type SubscribeMealPlanDto, type SubscribeNewsletterDto, type SubscriptionAlert, type SubscriptionStatus, type SubscriptionSuggestion, type SuggestionActionDto, type SuperAdminLoginDto, type SuperAdminRole, type SuperAdminStats, type SuperAdmin as SuperAdminUser, type Supplier, type SupportReply, type SupportTicket, type SwitchWatchRoomModeDto, TZ, TZClient, type TZConfig, type TZInitOptions, TZPaginatedQuery, TZQuery, type TaxConfig, type TemplateChannel, type TmdbMovie, type TmdbMovieDetail, type ToggleCardFeatureDto, type ToggleInternationalDto, type TokenStore, type TopUpWalletDto, type TrackedBillingCycle, type TrackedSubSource, type TrackedSubStatus, type TrackedSubscription, type TransferMode, type TransferStatus, type UpdateAccountNicknameDto, type UpdateAddressDto, type UpdateApiKeyDto, type UpdateCardLimitsDto, type UpdateCartItemDto, type UpdateCatalogCategoryDto, type UpdateCatalogOptionDto, type UpdateCatalogOptionGroupDto, type UpdateCatalogVariantDto, type UpdateDeliveryAgentDto, type UpdateDeliveryZoneDto, type UpdateEndUserProfileDto, type UpdateHelpArticleDto, type UpdateHousekeepingDto, type UpdateIngredientDto, type UpdateInstitutionDto, type UpdateMealPlanDto, type UpdateMovieProgressDto, type UpdateOrderStatusDto, type UpdateOrgDto, type UpdatePopupSettingsDto, type UpdatePurchaseOrderDto, type UpdateReservationSlotDto, type UpdateReservationStatusDto, type UpdateReservationTableDto, type UpdateReviewStatusDto, type UpdateRoleDto, type UpdateStaffUserDto, type UpdateStudentDiscountDto, type UpdateSupplierDto, type UpdateSupportTicketDto, type UpdateTrackedSubscriptionDto, type UploadResult, type UserStatus, 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 WatchSessionHistoryItem, type WatchSessionResponse, type WatchSessionStatus, type WatchSessionStatusType, type WatchSessionSummary, createTZ };
|