@techzunction/sdk 0.1.0 → 0.2.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.d.cts CHANGED
@@ -472,6 +472,7 @@ interface WalletPack {
472
472
  name: string;
473
473
  amount: number;
474
474
  bonus: number;
475
+ desc: string | null;
475
476
  isPopular: boolean;
476
477
  }
477
478
  interface UploadResult {
@@ -506,6 +507,78 @@ interface StorefrontConfig {
506
507
  };
507
508
  [key: string]: unknown;
508
509
  }
510
+ interface StudentPassStatus {
511
+ id: string;
512
+ status: 'pending' | 'approved' | 'rejected' | 'expired';
513
+ studentIdNumber: string;
514
+ idImageUrl: string | null;
515
+ expiresAt: string | null;
516
+ createdAt: string;
517
+ reviewedAt: string | null;
518
+ rejectionReason: string | null;
519
+ institution: {
520
+ id: string;
521
+ name: string;
522
+ } | null;
523
+ }
524
+ interface StudentDiscount {
525
+ id: string;
526
+ name: string;
527
+ description: string | null;
528
+ institutionId: string | null;
529
+ institution: {
530
+ id: string;
531
+ name: string;
532
+ } | null;
533
+ discountType: string;
534
+ discountValue: number;
535
+ maxDiscountCap: number | null;
536
+ minOrderAmount: number | null;
537
+ isActive: boolean;
538
+ validFrom: string | null;
539
+ validTo: string | null;
540
+ createdAt: string;
541
+ }
542
+ interface DiscountPreview {
543
+ applicable: boolean;
544
+ discountAmount: number;
545
+ discountName: string | null;
546
+ message: string | null;
547
+ }
548
+ interface Institution {
549
+ id: string;
550
+ name: string;
551
+ }
552
+ interface MealPlan {
553
+ id: string;
554
+ name: string;
555
+ description: string | null;
556
+ price: number;
557
+ durationDays: number;
558
+ items: Record<string, unknown> | null;
559
+ isActive: boolean;
560
+ subscriptionsCount: number;
561
+ createdAt: string;
562
+ }
563
+ interface MealSubscription {
564
+ id: string;
565
+ mealPlanId: string;
566
+ mealPlan: MealPlan;
567
+ startDate: string;
568
+ endDate: string;
569
+ status: string;
570
+ createdAt: string;
571
+ }
572
+ interface HelpArticle {
573
+ id: string;
574
+ slug: string;
575
+ title: string;
576
+ body: string;
577
+ category: string | null;
578
+ sortOrder: number;
579
+ isPublished: boolean;
580
+ createdAt: string;
581
+ }
509
582
  interface AdminOrganization {
510
583
  id: string;
511
584
  name: string;
@@ -887,6 +960,18 @@ interface UpdateMovieProgressDto {
887
960
  progress: number;
888
961
  duration: number;
889
962
  }
963
+ interface ApplyStudentPassDto {
964
+ studentIdNumber: string;
965
+ idImageUrl: string;
966
+ institutionId?: string;
967
+ }
968
+ interface PreviewStudentDiscountDto {
969
+ cartTotal: number;
970
+ itemIds?: string[];
971
+ }
972
+ interface SubscribeMealPlanDto {
973
+ mealPlanId: string;
974
+ }
890
975
 
891
976
  interface StaffRegisterDto {
892
977
  name: string;
@@ -1106,6 +1191,76 @@ interface UpdateSupportTicketDto {
1106
1191
  category?: string;
1107
1192
  assigneeId?: string;
1108
1193
  }
1194
+ interface ListStudentPassesQuery extends PaginatedQuery {
1195
+ status?: string;
1196
+ }
1197
+ interface ReviewStudentPassDto {
1198
+ status: 'approved' | 'rejected';
1199
+ rejectionReason?: string;
1200
+ }
1201
+ interface BulkReviewStudentPassesDto {
1202
+ ids: string[];
1203
+ status: 'approved' | 'rejected';
1204
+ rejectionReason?: string;
1205
+ }
1206
+ interface CreateStudentDiscountDto {
1207
+ name: string;
1208
+ description?: string;
1209
+ institutionId?: string;
1210
+ discountType: string;
1211
+ discountValue: number;
1212
+ maxDiscountCap?: number;
1213
+ minOrderAmount?: number;
1214
+ isActive?: boolean;
1215
+ validFrom?: string;
1216
+ validTo?: string;
1217
+ [key: string]: unknown;
1218
+ }
1219
+ interface UpdateStudentDiscountDto {
1220
+ name?: string;
1221
+ description?: string;
1222
+ discountType?: string;
1223
+ discountValue?: number;
1224
+ isActive?: boolean;
1225
+ [key: string]: unknown;
1226
+ }
1227
+ interface CreateInstitutionDto {
1228
+ name: string;
1229
+ }
1230
+ interface UpdateInstitutionDto {
1231
+ name?: string;
1232
+ }
1233
+ interface CreateMealPlanDto {
1234
+ name: string;
1235
+ description?: string;
1236
+ price: number;
1237
+ durationDays: number;
1238
+ items?: Record<string, unknown>;
1239
+ isActive?: boolean;
1240
+ }
1241
+ interface UpdateMealPlanDto {
1242
+ name?: string;
1243
+ description?: string;
1244
+ price?: number;
1245
+ durationDays?: number;
1246
+ items?: Record<string, unknown>;
1247
+ isActive?: boolean;
1248
+ }
1249
+ interface CreateHelpArticleDto {
1250
+ title: string;
1251
+ slug?: string;
1252
+ body: string;
1253
+ category?: string;
1254
+ sortOrder?: number;
1255
+ }
1256
+ interface UpdateHelpArticleDto {
1257
+ title?: string;
1258
+ slug?: string;
1259
+ body?: string;
1260
+ category?: string;
1261
+ sortOrder?: number;
1262
+ isPublished?: boolean;
1263
+ }
1109
1264
 
1110
1265
  interface SuperAdminLoginDto {
1111
1266
  email: string;
@@ -1456,6 +1611,22 @@ declare const TZ: {
1456
1611
  wallet: {
1457
1612
  getPacks(): TZQuery<WalletPack[]>;
1458
1613
  };
1614
+ student: {
1615
+ getPassStatus(): TZQuery<StudentPassStatus>;
1616
+ applyForPass(data: ApplyStudentPassDto): TZQuery<StudentPassStatus>;
1617
+ previewDiscount(data: PreviewStudentDiscountDto): TZQuery<DiscountPreview>;
1618
+ };
1619
+ mealPlans: {
1620
+ list(): TZQuery<MealPlan[]>;
1621
+ get(id: string): TZQuery<MealPlan>;
1622
+ subscribe(data: SubscribeMealPlanDto): TZQuery<MealSubscription>;
1623
+ mySubscriptions(): TZQuery<MealSubscription[]>;
1624
+ cancelSubscription(id: string): TZQuery<MealSubscription>;
1625
+ };
1626
+ help: {
1627
+ list(): TZQuery<HelpArticle[]>;
1628
+ getBySlug(slug: string): TZQuery<HelpArticle>;
1629
+ };
1459
1630
  };
1460
1631
  /** Admin namespace — all staff/org-admin APIs */
1461
1632
  readonly admin: {
@@ -1780,6 +1951,41 @@ declare const TZ: {
1780
1951
  logs(params?: PaginatedQuery): TZPaginatedQuery<unknown>;
1781
1952
  };
1782
1953
  upload(file: File | Blob, folder?: string): TZQuery<UploadResult>;
1954
+ studentPasses: {
1955
+ list(params?: ListStudentPassesQuery): TZPaginatedQuery<StudentPassStatus>;
1956
+ get(id: string): TZQuery<StudentPassStatus>;
1957
+ review(id: string, data: ReviewStudentPassDto): TZQuery<StudentPassStatus>;
1958
+ bulkReview(data: BulkReviewStudentPassesDto): TZQuery<void>;
1959
+ stats(): TZQuery<Record<string, unknown>>;
1960
+ };
1961
+ studentDiscounts: {
1962
+ list(params?: PaginatedQuery): TZPaginatedQuery<StudentDiscount>;
1963
+ get(id: string): TZQuery<StudentDiscount>;
1964
+ create(data: CreateStudentDiscountDto): TZQuery<StudentDiscount>;
1965
+ update(id: string, data: UpdateStudentDiscountDto): TZQuery<StudentDiscount>;
1966
+ remove(id: string): TZQuery<void>;
1967
+ };
1968
+ institutions: {
1969
+ list(params?: PaginatedQuery): TZPaginatedQuery<Institution>;
1970
+ get(id: string): TZQuery<Institution>;
1971
+ create(data: CreateInstitutionDto): TZQuery<Institution>;
1972
+ update(id: string, data: UpdateInstitutionDto): TZQuery<Institution>;
1973
+ remove(id: string): TZQuery<void>;
1974
+ };
1975
+ mealPlans: {
1976
+ list(params?: PaginatedQuery): TZPaginatedQuery<MealPlan>;
1977
+ get(id: string): TZQuery<MealPlan>;
1978
+ create(data: CreateMealPlanDto): TZQuery<MealPlan>;
1979
+ update(id: string, data: UpdateMealPlanDto): TZQuery<MealPlan>;
1980
+ remove(id: string): TZQuery<void>;
1981
+ };
1982
+ helpArticles: {
1983
+ list(params?: PaginatedQuery): TZPaginatedQuery<HelpArticle>;
1984
+ get(id: string): TZQuery<HelpArticle>;
1985
+ create(data: CreateHelpArticleDto): TZQuery<HelpArticle>;
1986
+ update(id: string, data: UpdateHelpArticleDto): TZQuery<HelpArticle>;
1987
+ remove(id: string): TZQuery<void>;
1988
+ };
1783
1989
  };
1784
1990
  /** Super Admin namespace — platform-wide management APIs */
1785
1991
  readonly superAdmin: {
@@ -2081,6 +2287,22 @@ declare function createTZ(options?: TZInitOptions): {
2081
2287
  wallet: {
2082
2288
  getPacks(): TZQuery<WalletPack[]>;
2083
2289
  };
2290
+ student: {
2291
+ getPassStatus(): TZQuery<StudentPassStatus>;
2292
+ applyForPass(data: ApplyStudentPassDto): TZQuery<StudentPassStatus>;
2293
+ previewDiscount(data: PreviewStudentDiscountDto): TZQuery<DiscountPreview>;
2294
+ };
2295
+ mealPlans: {
2296
+ list(): TZQuery<MealPlan[]>;
2297
+ get(id: string): TZQuery<MealPlan>;
2298
+ subscribe(data: SubscribeMealPlanDto): TZQuery<MealSubscription>;
2299
+ mySubscriptions(): TZQuery<MealSubscription[]>;
2300
+ cancelSubscription(id: string): TZQuery<MealSubscription>;
2301
+ };
2302
+ help: {
2303
+ list(): TZQuery<HelpArticle[]>;
2304
+ getBySlug(slug: string): TZQuery<HelpArticle>;
2305
+ };
2084
2306
  };
2085
2307
  admin: {
2086
2308
  auth: {
@@ -2404,6 +2626,41 @@ declare function createTZ(options?: TZInitOptions): {
2404
2626
  logs(params?: PaginatedQuery): TZPaginatedQuery<unknown>;
2405
2627
  };
2406
2628
  upload(file: File | Blob, folder?: string): TZQuery<UploadResult>;
2629
+ studentPasses: {
2630
+ list(params?: ListStudentPassesQuery): TZPaginatedQuery<StudentPassStatus>;
2631
+ get(id: string): TZQuery<StudentPassStatus>;
2632
+ review(id: string, data: ReviewStudentPassDto): TZQuery<StudentPassStatus>;
2633
+ bulkReview(data: BulkReviewStudentPassesDto): TZQuery<void>;
2634
+ stats(): TZQuery<Record<string, unknown>>;
2635
+ };
2636
+ studentDiscounts: {
2637
+ list(params?: PaginatedQuery): TZPaginatedQuery<StudentDiscount>;
2638
+ get(id: string): TZQuery<StudentDiscount>;
2639
+ create(data: CreateStudentDiscountDto): TZQuery<StudentDiscount>;
2640
+ update(id: string, data: UpdateStudentDiscountDto): TZQuery<StudentDiscount>;
2641
+ remove(id: string): TZQuery<void>;
2642
+ };
2643
+ institutions: {
2644
+ list(params?: PaginatedQuery): TZPaginatedQuery<Institution>;
2645
+ get(id: string): TZQuery<Institution>;
2646
+ create(data: CreateInstitutionDto): TZQuery<Institution>;
2647
+ update(id: string, data: UpdateInstitutionDto): TZQuery<Institution>;
2648
+ remove(id: string): TZQuery<void>;
2649
+ };
2650
+ mealPlans: {
2651
+ list(params?: PaginatedQuery): TZPaginatedQuery<MealPlan>;
2652
+ get(id: string): TZQuery<MealPlan>;
2653
+ create(data: CreateMealPlanDto): TZQuery<MealPlan>;
2654
+ update(id: string, data: UpdateMealPlanDto): TZQuery<MealPlan>;
2655
+ remove(id: string): TZQuery<void>;
2656
+ };
2657
+ helpArticles: {
2658
+ list(params?: PaginatedQuery): TZPaginatedQuery<HelpArticle>;
2659
+ get(id: string): TZQuery<HelpArticle>;
2660
+ create(data: CreateHelpArticleDto): TZQuery<HelpArticle>;
2661
+ update(id: string, data: UpdateHelpArticleDto): TZQuery<HelpArticle>;
2662
+ remove(id: string): TZQuery<void>;
2663
+ };
2407
2664
  };
2408
2665
  superAdmin: {
2409
2666
  auth: {
@@ -2473,4 +2730,4 @@ declare function createTZ(options?: TZInitOptions): {
2473
2730
  }>;
2474
2731
  };
2475
2732
 
2476
- export { type AddCartItemDto, type AddSegmentMembersDto, type Address, type AdjustLoyaltyPointsDto, type AdminCancelBookingDto, type AdminListOrdersQuery, type AdminOrganization, type ApiError, type ApiKey, type AssignPropertyUnitsDto, type AssignStaffRolesDto, type AuditLog, type AuthResponse, type AuthScope, type AuthTokens, 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 CreateOrderDto, type CreatePaymentOrderDto, type CreatePropertyAmenityDto, type CreatePropertyBookingDto, type CreatePropertyPaymentOrderDto, type CreateReservationDto, type CreateReviewDto, type CreateRoleDto, type CreateSuperAdminDto, type CreateSupportTicketDto, type DeliveryCalculation, type DeliveryTracking, type EndUser, type EndUserProfile, type EndUserRequestResetDto, type EndUserResetPasswordDto, type EndUserSendOtpDto, type EndUserTagsDto, type EndUserVerifyOtpDto, type GetCatalogItemsQuery, type GiftCard, type InviteStaffUserDto, type ListCatalogItemsQuery, type ListContentQuery, type ListEndUsersQuery, type ListMoviesQuery, type ListOrdersQuery, type ListOrganizationsQuery, type ListReviewsQuery, type ListStaffUsersQuery, type ListSuperAdminsQuery, type LocationHours, type LoginEndUserDto, type LoyaltyAccount, type LoyaltyRedemption, type LoyaltyReward, type LoyaltyTransaction, 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 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 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 SubmitContactDto, type SubscribeBillingPlanDto, 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 UpdateHousekeepingDto, type UpdateMovieProgressDto, type UpdateOrderStatusDto, type UpdateOrgDto, type UpdateReservationStatusDto, type UpdateReviewStatusDto, type UpdateRoleDto, type UpdateStaffUserDto, type UpdateSupportTicketDto, type UploadResult, type ValidateCouponDto, type ValidateReferralDto, type VerifyMagicLinkQuery, type VerifyPaymentDto, type VerifySignupOtpDto, type WalletPack, createTZ };
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 };
package/dist/index.d.ts CHANGED
@@ -472,6 +472,7 @@ interface WalletPack {
472
472
  name: string;
473
473
  amount: number;
474
474
  bonus: number;
475
+ desc: string | null;
475
476
  isPopular: boolean;
476
477
  }
477
478
  interface UploadResult {
@@ -506,6 +507,78 @@ interface StorefrontConfig {
506
507
  };
507
508
  [key: string]: unknown;
508
509
  }
510
+ interface StudentPassStatus {
511
+ id: string;
512
+ status: 'pending' | 'approved' | 'rejected' | 'expired';
513
+ studentIdNumber: string;
514
+ idImageUrl: string | null;
515
+ expiresAt: string | null;
516
+ createdAt: string;
517
+ reviewedAt: string | null;
518
+ rejectionReason: string | null;
519
+ institution: {
520
+ id: string;
521
+ name: string;
522
+ } | null;
523
+ }
524
+ interface StudentDiscount {
525
+ id: string;
526
+ name: string;
527
+ description: string | null;
528
+ institutionId: string | null;
529
+ institution: {
530
+ id: string;
531
+ name: string;
532
+ } | null;
533
+ discountType: string;
534
+ discountValue: number;
535
+ maxDiscountCap: number | null;
536
+ minOrderAmount: number | null;
537
+ isActive: boolean;
538
+ validFrom: string | null;
539
+ validTo: string | null;
540
+ createdAt: string;
541
+ }
542
+ interface DiscountPreview {
543
+ applicable: boolean;
544
+ discountAmount: number;
545
+ discountName: string | null;
546
+ message: string | null;
547
+ }
548
+ interface Institution {
549
+ id: string;
550
+ name: string;
551
+ }
552
+ interface MealPlan {
553
+ id: string;
554
+ name: string;
555
+ description: string | null;
556
+ price: number;
557
+ durationDays: number;
558
+ items: Record<string, unknown> | null;
559
+ isActive: boolean;
560
+ subscriptionsCount: number;
561
+ createdAt: string;
562
+ }
563
+ interface MealSubscription {
564
+ id: string;
565
+ mealPlanId: string;
566
+ mealPlan: MealPlan;
567
+ startDate: string;
568
+ endDate: string;
569
+ status: string;
570
+ createdAt: string;
571
+ }
572
+ interface HelpArticle {
573
+ id: string;
574
+ slug: string;
575
+ title: string;
576
+ body: string;
577
+ category: string | null;
578
+ sortOrder: number;
579
+ isPublished: boolean;
580
+ createdAt: string;
581
+ }
509
582
  interface AdminOrganization {
510
583
  id: string;
511
584
  name: string;
@@ -887,6 +960,18 @@ interface UpdateMovieProgressDto {
887
960
  progress: number;
888
961
  duration: number;
889
962
  }
963
+ interface ApplyStudentPassDto {
964
+ studentIdNumber: string;
965
+ idImageUrl: string;
966
+ institutionId?: string;
967
+ }
968
+ interface PreviewStudentDiscountDto {
969
+ cartTotal: number;
970
+ itemIds?: string[];
971
+ }
972
+ interface SubscribeMealPlanDto {
973
+ mealPlanId: string;
974
+ }
890
975
 
891
976
  interface StaffRegisterDto {
892
977
  name: string;
@@ -1106,6 +1191,76 @@ interface UpdateSupportTicketDto {
1106
1191
  category?: string;
1107
1192
  assigneeId?: string;
1108
1193
  }
1194
+ interface ListStudentPassesQuery extends PaginatedQuery {
1195
+ status?: string;
1196
+ }
1197
+ interface ReviewStudentPassDto {
1198
+ status: 'approved' | 'rejected';
1199
+ rejectionReason?: string;
1200
+ }
1201
+ interface BulkReviewStudentPassesDto {
1202
+ ids: string[];
1203
+ status: 'approved' | 'rejected';
1204
+ rejectionReason?: string;
1205
+ }
1206
+ interface CreateStudentDiscountDto {
1207
+ name: string;
1208
+ description?: string;
1209
+ institutionId?: string;
1210
+ discountType: string;
1211
+ discountValue: number;
1212
+ maxDiscountCap?: number;
1213
+ minOrderAmount?: number;
1214
+ isActive?: boolean;
1215
+ validFrom?: string;
1216
+ validTo?: string;
1217
+ [key: string]: unknown;
1218
+ }
1219
+ interface UpdateStudentDiscountDto {
1220
+ name?: string;
1221
+ description?: string;
1222
+ discountType?: string;
1223
+ discountValue?: number;
1224
+ isActive?: boolean;
1225
+ [key: string]: unknown;
1226
+ }
1227
+ interface CreateInstitutionDto {
1228
+ name: string;
1229
+ }
1230
+ interface UpdateInstitutionDto {
1231
+ name?: string;
1232
+ }
1233
+ interface CreateMealPlanDto {
1234
+ name: string;
1235
+ description?: string;
1236
+ price: number;
1237
+ durationDays: number;
1238
+ items?: Record<string, unknown>;
1239
+ isActive?: boolean;
1240
+ }
1241
+ interface UpdateMealPlanDto {
1242
+ name?: string;
1243
+ description?: string;
1244
+ price?: number;
1245
+ durationDays?: number;
1246
+ items?: Record<string, unknown>;
1247
+ isActive?: boolean;
1248
+ }
1249
+ interface CreateHelpArticleDto {
1250
+ title: string;
1251
+ slug?: string;
1252
+ body: string;
1253
+ category?: string;
1254
+ sortOrder?: number;
1255
+ }
1256
+ interface UpdateHelpArticleDto {
1257
+ title?: string;
1258
+ slug?: string;
1259
+ body?: string;
1260
+ category?: string;
1261
+ sortOrder?: number;
1262
+ isPublished?: boolean;
1263
+ }
1109
1264
 
1110
1265
  interface SuperAdminLoginDto {
1111
1266
  email: string;
@@ -1456,6 +1611,22 @@ declare const TZ: {
1456
1611
  wallet: {
1457
1612
  getPacks(): TZQuery<WalletPack[]>;
1458
1613
  };
1614
+ student: {
1615
+ getPassStatus(): TZQuery<StudentPassStatus>;
1616
+ applyForPass(data: ApplyStudentPassDto): TZQuery<StudentPassStatus>;
1617
+ previewDiscount(data: PreviewStudentDiscountDto): TZQuery<DiscountPreview>;
1618
+ };
1619
+ mealPlans: {
1620
+ list(): TZQuery<MealPlan[]>;
1621
+ get(id: string): TZQuery<MealPlan>;
1622
+ subscribe(data: SubscribeMealPlanDto): TZQuery<MealSubscription>;
1623
+ mySubscriptions(): TZQuery<MealSubscription[]>;
1624
+ cancelSubscription(id: string): TZQuery<MealSubscription>;
1625
+ };
1626
+ help: {
1627
+ list(): TZQuery<HelpArticle[]>;
1628
+ getBySlug(slug: string): TZQuery<HelpArticle>;
1629
+ };
1459
1630
  };
1460
1631
  /** Admin namespace — all staff/org-admin APIs */
1461
1632
  readonly admin: {
@@ -1780,6 +1951,41 @@ declare const TZ: {
1780
1951
  logs(params?: PaginatedQuery): TZPaginatedQuery<unknown>;
1781
1952
  };
1782
1953
  upload(file: File | Blob, folder?: string): TZQuery<UploadResult>;
1954
+ studentPasses: {
1955
+ list(params?: ListStudentPassesQuery): TZPaginatedQuery<StudentPassStatus>;
1956
+ get(id: string): TZQuery<StudentPassStatus>;
1957
+ review(id: string, data: ReviewStudentPassDto): TZQuery<StudentPassStatus>;
1958
+ bulkReview(data: BulkReviewStudentPassesDto): TZQuery<void>;
1959
+ stats(): TZQuery<Record<string, unknown>>;
1960
+ };
1961
+ studentDiscounts: {
1962
+ list(params?: PaginatedQuery): TZPaginatedQuery<StudentDiscount>;
1963
+ get(id: string): TZQuery<StudentDiscount>;
1964
+ create(data: CreateStudentDiscountDto): TZQuery<StudentDiscount>;
1965
+ update(id: string, data: UpdateStudentDiscountDto): TZQuery<StudentDiscount>;
1966
+ remove(id: string): TZQuery<void>;
1967
+ };
1968
+ institutions: {
1969
+ list(params?: PaginatedQuery): TZPaginatedQuery<Institution>;
1970
+ get(id: string): TZQuery<Institution>;
1971
+ create(data: CreateInstitutionDto): TZQuery<Institution>;
1972
+ update(id: string, data: UpdateInstitutionDto): TZQuery<Institution>;
1973
+ remove(id: string): TZQuery<void>;
1974
+ };
1975
+ mealPlans: {
1976
+ list(params?: PaginatedQuery): TZPaginatedQuery<MealPlan>;
1977
+ get(id: string): TZQuery<MealPlan>;
1978
+ create(data: CreateMealPlanDto): TZQuery<MealPlan>;
1979
+ update(id: string, data: UpdateMealPlanDto): TZQuery<MealPlan>;
1980
+ remove(id: string): TZQuery<void>;
1981
+ };
1982
+ helpArticles: {
1983
+ list(params?: PaginatedQuery): TZPaginatedQuery<HelpArticle>;
1984
+ get(id: string): TZQuery<HelpArticle>;
1985
+ create(data: CreateHelpArticleDto): TZQuery<HelpArticle>;
1986
+ update(id: string, data: UpdateHelpArticleDto): TZQuery<HelpArticle>;
1987
+ remove(id: string): TZQuery<void>;
1988
+ };
1783
1989
  };
1784
1990
  /** Super Admin namespace — platform-wide management APIs */
1785
1991
  readonly superAdmin: {
@@ -2081,6 +2287,22 @@ declare function createTZ(options?: TZInitOptions): {
2081
2287
  wallet: {
2082
2288
  getPacks(): TZQuery<WalletPack[]>;
2083
2289
  };
2290
+ student: {
2291
+ getPassStatus(): TZQuery<StudentPassStatus>;
2292
+ applyForPass(data: ApplyStudentPassDto): TZQuery<StudentPassStatus>;
2293
+ previewDiscount(data: PreviewStudentDiscountDto): TZQuery<DiscountPreview>;
2294
+ };
2295
+ mealPlans: {
2296
+ list(): TZQuery<MealPlan[]>;
2297
+ get(id: string): TZQuery<MealPlan>;
2298
+ subscribe(data: SubscribeMealPlanDto): TZQuery<MealSubscription>;
2299
+ mySubscriptions(): TZQuery<MealSubscription[]>;
2300
+ cancelSubscription(id: string): TZQuery<MealSubscription>;
2301
+ };
2302
+ help: {
2303
+ list(): TZQuery<HelpArticle[]>;
2304
+ getBySlug(slug: string): TZQuery<HelpArticle>;
2305
+ };
2084
2306
  };
2085
2307
  admin: {
2086
2308
  auth: {
@@ -2404,6 +2626,41 @@ declare function createTZ(options?: TZInitOptions): {
2404
2626
  logs(params?: PaginatedQuery): TZPaginatedQuery<unknown>;
2405
2627
  };
2406
2628
  upload(file: File | Blob, folder?: string): TZQuery<UploadResult>;
2629
+ studentPasses: {
2630
+ list(params?: ListStudentPassesQuery): TZPaginatedQuery<StudentPassStatus>;
2631
+ get(id: string): TZQuery<StudentPassStatus>;
2632
+ review(id: string, data: ReviewStudentPassDto): TZQuery<StudentPassStatus>;
2633
+ bulkReview(data: BulkReviewStudentPassesDto): TZQuery<void>;
2634
+ stats(): TZQuery<Record<string, unknown>>;
2635
+ };
2636
+ studentDiscounts: {
2637
+ list(params?: PaginatedQuery): TZPaginatedQuery<StudentDiscount>;
2638
+ get(id: string): TZQuery<StudentDiscount>;
2639
+ create(data: CreateStudentDiscountDto): TZQuery<StudentDiscount>;
2640
+ update(id: string, data: UpdateStudentDiscountDto): TZQuery<StudentDiscount>;
2641
+ remove(id: string): TZQuery<void>;
2642
+ };
2643
+ institutions: {
2644
+ list(params?: PaginatedQuery): TZPaginatedQuery<Institution>;
2645
+ get(id: string): TZQuery<Institution>;
2646
+ create(data: CreateInstitutionDto): TZQuery<Institution>;
2647
+ update(id: string, data: UpdateInstitutionDto): TZQuery<Institution>;
2648
+ remove(id: string): TZQuery<void>;
2649
+ };
2650
+ mealPlans: {
2651
+ list(params?: PaginatedQuery): TZPaginatedQuery<MealPlan>;
2652
+ get(id: string): TZQuery<MealPlan>;
2653
+ create(data: CreateMealPlanDto): TZQuery<MealPlan>;
2654
+ update(id: string, data: UpdateMealPlanDto): TZQuery<MealPlan>;
2655
+ remove(id: string): TZQuery<void>;
2656
+ };
2657
+ helpArticles: {
2658
+ list(params?: PaginatedQuery): TZPaginatedQuery<HelpArticle>;
2659
+ get(id: string): TZQuery<HelpArticle>;
2660
+ create(data: CreateHelpArticleDto): TZQuery<HelpArticle>;
2661
+ update(id: string, data: UpdateHelpArticleDto): TZQuery<HelpArticle>;
2662
+ remove(id: string): TZQuery<void>;
2663
+ };
2407
2664
  };
2408
2665
  superAdmin: {
2409
2666
  auth: {
@@ -2473,4 +2730,4 @@ declare function createTZ(options?: TZInitOptions): {
2473
2730
  }>;
2474
2731
  };
2475
2732
 
2476
- export { type AddCartItemDto, type AddSegmentMembersDto, type Address, type AdjustLoyaltyPointsDto, type AdminCancelBookingDto, type AdminListOrdersQuery, type AdminOrganization, type ApiError, type ApiKey, type AssignPropertyUnitsDto, type AssignStaffRolesDto, type AuditLog, type AuthResponse, type AuthScope, type AuthTokens, 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 CreateOrderDto, type CreatePaymentOrderDto, type CreatePropertyAmenityDto, type CreatePropertyBookingDto, type CreatePropertyPaymentOrderDto, type CreateReservationDto, type CreateReviewDto, type CreateRoleDto, type CreateSuperAdminDto, type CreateSupportTicketDto, type DeliveryCalculation, type DeliveryTracking, type EndUser, type EndUserProfile, type EndUserRequestResetDto, type EndUserResetPasswordDto, type EndUserSendOtpDto, type EndUserTagsDto, type EndUserVerifyOtpDto, type GetCatalogItemsQuery, type GiftCard, type InviteStaffUserDto, type ListCatalogItemsQuery, type ListContentQuery, type ListEndUsersQuery, type ListMoviesQuery, type ListOrdersQuery, type ListOrganizationsQuery, type ListReviewsQuery, type ListStaffUsersQuery, type ListSuperAdminsQuery, type LocationHours, type LoginEndUserDto, type LoyaltyAccount, type LoyaltyRedemption, type LoyaltyReward, type LoyaltyTransaction, 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 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 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 SubmitContactDto, type SubscribeBillingPlanDto, 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 UpdateHousekeepingDto, type UpdateMovieProgressDto, type UpdateOrderStatusDto, type UpdateOrgDto, type UpdateReservationStatusDto, type UpdateReviewStatusDto, type UpdateRoleDto, type UpdateStaffUserDto, type UpdateSupportTicketDto, type UploadResult, type ValidateCouponDto, type ValidateReferralDto, type VerifyMagicLinkQuery, type VerifyPaymentDto, type VerifySignupOtpDto, type WalletPack, createTZ };
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 };