@techzunction/sdk 0.6.5 → 0.6.6
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 +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +121 -102
- package/dist/index.d.ts +121 -102
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2155,6 +2155,7 @@ interface ListStudentPassesQuery extends PaginatedQuery {
|
|
|
2155
2155
|
interface ReviewStudentPassDto {
|
|
2156
2156
|
status: 'approved' | 'rejected';
|
|
2157
2157
|
rejectionReason?: string;
|
|
2158
|
+
[key: string]: unknown;
|
|
2158
2159
|
}
|
|
2159
2160
|
interface BulkReviewStudentPassesDto {
|
|
2160
2161
|
ids: string[];
|
|
@@ -2187,6 +2188,8 @@ interface CreateInstitutionDto {
|
|
|
2187
2188
|
}
|
|
2188
2189
|
interface UpdateInstitutionDto {
|
|
2189
2190
|
name?: string;
|
|
2191
|
+
isActive?: boolean;
|
|
2192
|
+
[key: string]: unknown;
|
|
2190
2193
|
}
|
|
2191
2194
|
interface CreateMealPlanDto {
|
|
2192
2195
|
name: string;
|
|
@@ -2832,16 +2835,16 @@ declare const TZ: {
|
|
|
2832
2835
|
removeOption(optionId: string): TZQuery<void>;
|
|
2833
2836
|
};
|
|
2834
2837
|
orders: {
|
|
2835
|
-
list(params?: AdminListOrdersQuery): TZPaginatedQuery<
|
|
2838
|
+
list(params?: AdminListOrdersQuery): TZPaginatedQuery<AdminOrder>;
|
|
2836
2839
|
stats(): TZQuery<Record<string, unknown>>;
|
|
2837
|
-
get(id: string): TZQuery<
|
|
2838
|
-
updateStatus(id: string, data: UpdateOrderStatusDto): TZQuery<
|
|
2840
|
+
get(id: string): TZQuery<AdminOrderDetail>;
|
|
2841
|
+
updateStatus(id: string, data: UpdateOrderStatusDto): TZQuery<AdminOrderDetail>;
|
|
2839
2842
|
};
|
|
2840
2843
|
locations: {
|
|
2841
|
-
list(): TZQuery<
|
|
2842
|
-
get(id: string): TZQuery<
|
|
2843
|
-
create(data: Record<string, unknown>): TZQuery<
|
|
2844
|
-
update(id: string, data: Record<string, unknown>): TZQuery<
|
|
2844
|
+
list(): TZQuery<AdminLocation[]>;
|
|
2845
|
+
get(id: string): TZQuery<AdminLocationDetail>;
|
|
2846
|
+
create(data: Record<string, unknown>): TZQuery<AdminLocation>;
|
|
2847
|
+
update(id: string, data: Record<string, unknown>): TZQuery<AdminLocation>;
|
|
2845
2848
|
remove(id: string): TZQuery<void>;
|
|
2846
2849
|
setHours(id: string, data: SetLocationHoursDto): TZQuery<void>;
|
|
2847
2850
|
getDeliveryZones(id: string): TZQuery<unknown[]>;
|
|
@@ -2850,8 +2853,8 @@ declare const TZ: {
|
|
|
2850
2853
|
removeDeliveryZone(zoneId: string): TZQuery<void>;
|
|
2851
2854
|
};
|
|
2852
2855
|
endUsers: {
|
|
2853
|
-
list(params?: ListEndUsersQuery): TZPaginatedQuery<
|
|
2854
|
-
get(id: string): TZQuery<
|
|
2856
|
+
list(params?: ListEndUsersQuery): TZPaginatedQuery<AdminCustomer>;
|
|
2857
|
+
get(id: string): TZQuery<AdminCustomerDetail>;
|
|
2855
2858
|
create(data: Record<string, unknown>): TZQuery<unknown>;
|
|
2856
2859
|
bulkUpsert(data: BulkUpsertEndUsersDto): TZQuery<unknown>;
|
|
2857
2860
|
update(id: string, data: Record<string, unknown>): TZQuery<unknown>;
|
|
@@ -2881,7 +2884,10 @@ declare const TZ: {
|
|
|
2881
2884
|
}>;
|
|
2882
2885
|
};
|
|
2883
2886
|
settings: {
|
|
2884
|
-
getAll(): TZQuery<
|
|
2887
|
+
getAll(): TZQuery<{
|
|
2888
|
+
grouped: Record<string, AdminSetting[]>;
|
|
2889
|
+
settings: AdminSetting[];
|
|
2890
|
+
}>;
|
|
2885
2891
|
getGroup(group: string): TZQuery<Record<string, unknown>>;
|
|
2886
2892
|
set(group: string, key: string, data: SetSettingDto): TZQuery<void>;
|
|
2887
2893
|
bulkUpdate(data: BulkUpdateSettingsDto): TZQuery<void>;
|
|
@@ -2975,46 +2981,49 @@ declare const TZ: {
|
|
|
2975
2981
|
removeReward(id: string): TZQuery<void>;
|
|
2976
2982
|
};
|
|
2977
2983
|
coupons: {
|
|
2978
|
-
list(params?: StatusQuery): TZPaginatedQuery<
|
|
2979
|
-
get(id: string): TZQuery<
|
|
2980
|
-
create(data: Record<string, unknown>): TZQuery<
|
|
2981
|
-
update(id: string, data: Record<string, unknown>): TZQuery<
|
|
2984
|
+
list(params?: StatusQuery): TZPaginatedQuery<AdminCoupon>;
|
|
2985
|
+
get(id: string): TZQuery<AdminCoupon>;
|
|
2986
|
+
create(data: Record<string, unknown>): TZQuery<AdminCoupon>;
|
|
2987
|
+
update(id: string, data: Record<string, unknown>): TZQuery<AdminCoupon>;
|
|
2982
2988
|
remove(id: string): TZQuery<void>;
|
|
2983
2989
|
};
|
|
2984
2990
|
promotions: {
|
|
2985
|
-
list(params?: PaginatedQuery): TZPaginatedQuery<
|
|
2986
|
-
get(id: string): TZQuery<
|
|
2987
|
-
create(data: Record<string, unknown>): TZQuery<
|
|
2988
|
-
update(id: string, data: Record<string, unknown>): TZQuery<
|
|
2991
|
+
list(params?: PaginatedQuery): TZPaginatedQuery<AdminPromotion>;
|
|
2992
|
+
get(id: string): TZQuery<AdminPromotion>;
|
|
2993
|
+
create(data: Record<string, unknown>): TZQuery<AdminPromotion>;
|
|
2994
|
+
update(id: string, data: Record<string, unknown>): TZQuery<AdminPromotion>;
|
|
2989
2995
|
remove(id: string): TZQuery<void>;
|
|
2990
2996
|
};
|
|
2991
2997
|
reviews: {
|
|
2992
|
-
list(params?: StatusQuery): TZPaginatedQuery<
|
|
2993
|
-
updateStatus(id: string, data: UpdateReviewStatusDto): TZQuery<
|
|
2998
|
+
list(params?: StatusQuery): TZPaginatedQuery<AdminReview>;
|
|
2999
|
+
updateStatus(id: string, data: UpdateReviewStatusDto): TZQuery<AdminReview>;
|
|
2994
3000
|
};
|
|
2995
3001
|
giftCards: {
|
|
2996
|
-
list(params?: PaginatedQuery): TZPaginatedQuery<
|
|
2997
|
-
get(id: string): TZQuery<
|
|
2998
|
-
create(data: Record<string, unknown>): TZQuery<
|
|
3002
|
+
list(params?: PaginatedQuery): TZPaginatedQuery<AdminGiftCard>;
|
|
3003
|
+
get(id: string): TZQuery<AdminGiftCard>;
|
|
3004
|
+
create(data: Record<string, unknown>): TZQuery<AdminGiftCard>;
|
|
2999
3005
|
};
|
|
3000
3006
|
reservations: {
|
|
3001
|
-
list(params?: StatusQuery): TZPaginatedQuery<
|
|
3002
|
-
updateStatus(id: string, data: UpdateReservationStatusDto): TZQuery<
|
|
3003
|
-
resources(): TZQuery<
|
|
3004
|
-
createResource(data: Record<string, unknown>): TZQuery<
|
|
3005
|
-
updateResource(id: string, data: Record<string, unknown>): TZQuery<
|
|
3007
|
+
list(params?: StatusQuery): TZPaginatedQuery<AdminReservation>;
|
|
3008
|
+
updateStatus(id: string, data: UpdateReservationStatusDto): TZQuery<AdminReservation>;
|
|
3009
|
+
resources(): TZQuery<AdminReservationTable[]>;
|
|
3010
|
+
createResource(data: Record<string, unknown>): TZQuery<AdminReservationTable>;
|
|
3011
|
+
updateResource(id: string, data: Record<string, unknown>): TZQuery<AdminReservationTable>;
|
|
3006
3012
|
removeResource(id: string): TZQuery<void>;
|
|
3007
3013
|
};
|
|
3008
3014
|
support: {
|
|
3009
|
-
list(params?: StatusQuery): TZPaginatedQuery<
|
|
3010
|
-
get(id: string): TZQuery<
|
|
3011
|
-
update(id: string, data: UpdateSupportTicketDto): TZQuery<
|
|
3015
|
+
list(params?: StatusQuery): TZPaginatedQuery<AdminTicket>;
|
|
3016
|
+
get(id: string): TZQuery<AdminTicketDetail>;
|
|
3017
|
+
update(id: string, data: UpdateSupportTicketDto): TZQuery<AdminTicketDetail>;
|
|
3018
|
+
reply(ticketId: string, data: {
|
|
3019
|
+
body: string;
|
|
3020
|
+
}): TZQuery<AdminTicketMessage>;
|
|
3012
3021
|
};
|
|
3013
3022
|
content: {
|
|
3014
|
-
list(params?: StatusQuery): TZPaginatedQuery<
|
|
3015
|
-
get(id: string): TZQuery<
|
|
3016
|
-
create(data: Record<string, unknown>): TZQuery<
|
|
3017
|
-
update(id: string, data: Record<string, unknown>): TZQuery<
|
|
3023
|
+
list(params?: StatusQuery): TZPaginatedQuery<AdminBlogPost>;
|
|
3024
|
+
get(id: string): TZQuery<AdminBlogPost>;
|
|
3025
|
+
create(data: Record<string, unknown>): TZQuery<AdminBlogPost>;
|
|
3026
|
+
update(id: string, data: Record<string, unknown>): TZQuery<AdminBlogPost>;
|
|
3018
3027
|
remove(id: string): TZQuery<void>;
|
|
3019
3028
|
};
|
|
3020
3029
|
payments: {
|
|
@@ -3079,24 +3088,24 @@ declare const TZ: {
|
|
|
3079
3088
|
};
|
|
3080
3089
|
upload(file: File | Blob, folder?: string): TZQuery<UploadResult>;
|
|
3081
3090
|
studentPasses: {
|
|
3082
|
-
list(params?: ListStudentPassesQuery): TZPaginatedQuery<
|
|
3083
|
-
get(id: string): TZQuery<
|
|
3084
|
-
review(id: string, data: ReviewStudentPassDto): TZQuery<
|
|
3091
|
+
list(params?: ListStudentPassesQuery): TZPaginatedQuery<AdminStudentPass>;
|
|
3092
|
+
get(id: string): TZQuery<AdminStudentPassDetail>;
|
|
3093
|
+
review(id: string, data: ReviewStudentPassDto): TZQuery<AdminStudentPassDetail>;
|
|
3085
3094
|
bulkReview(data: BulkReviewStudentPassesDto): TZQuery<void>;
|
|
3086
|
-
stats(): TZQuery<
|
|
3095
|
+
stats(): TZQuery<AdminStudentPassStats>;
|
|
3087
3096
|
};
|
|
3088
3097
|
studentDiscounts: {
|
|
3089
|
-
list(params?: PaginatedQuery): TZPaginatedQuery<
|
|
3090
|
-
get(id: string): TZQuery<
|
|
3091
|
-
create(data: CreateStudentDiscountDto): TZQuery<
|
|
3092
|
-
update(id: string, data: UpdateStudentDiscountDto): TZQuery<
|
|
3098
|
+
list(params?: PaginatedQuery): TZPaginatedQuery<AdminStudentDiscount>;
|
|
3099
|
+
get(id: string): TZQuery<AdminStudentDiscount>;
|
|
3100
|
+
create(data: CreateStudentDiscountDto): TZQuery<AdminStudentDiscount>;
|
|
3101
|
+
update(id: string, data: UpdateStudentDiscountDto): TZQuery<AdminStudentDiscount>;
|
|
3093
3102
|
remove(id: string): TZQuery<void>;
|
|
3094
3103
|
};
|
|
3095
3104
|
institutions: {
|
|
3096
|
-
list(params?: PaginatedQuery): TZPaginatedQuery<
|
|
3097
|
-
get(id: string): TZQuery<
|
|
3098
|
-
create(data: CreateInstitutionDto): TZQuery<
|
|
3099
|
-
update(id: string, data: UpdateInstitutionDto): TZQuery<
|
|
3105
|
+
list(params?: PaginatedQuery): TZPaginatedQuery<AdminInstitution>;
|
|
3106
|
+
get(id: string): TZQuery<AdminInstitution>;
|
|
3107
|
+
create(data: CreateInstitutionDto): TZQuery<AdminInstitution>;
|
|
3108
|
+
update(id: string, data: UpdateInstitutionDto): TZQuery<AdminInstitution>;
|
|
3100
3109
|
remove(id: string): TZQuery<void>;
|
|
3101
3110
|
};
|
|
3102
3111
|
inventory: {
|
|
@@ -3140,10 +3149,10 @@ declare const TZ: {
|
|
|
3140
3149
|
remove(id: string): TZQuery<void>;
|
|
3141
3150
|
};
|
|
3142
3151
|
helpArticles: {
|
|
3143
|
-
list(params?: PaginatedQuery): TZPaginatedQuery<
|
|
3144
|
-
get(id: string): TZQuery<
|
|
3145
|
-
create(data: CreateHelpArticleDto): TZQuery<
|
|
3146
|
-
update(id: string, data: UpdateHelpArticleDto): TZQuery<
|
|
3152
|
+
list(params?: PaginatedQuery): TZPaginatedQuery<AdminHelpArticle>;
|
|
3153
|
+
get(id: string): TZQuery<AdminHelpArticle>;
|
|
3154
|
+
create(data: CreateHelpArticleDto): TZQuery<AdminHelpArticle>;
|
|
3155
|
+
update(id: string, data: UpdateHelpArticleDto): TZQuery<AdminHelpArticle>;
|
|
3147
3156
|
remove(id: string): TZQuery<void>;
|
|
3148
3157
|
};
|
|
3149
3158
|
dashboard: {
|
|
@@ -3189,6 +3198,8 @@ declare const TZ: {
|
|
|
3189
3198
|
settlements(params?: AdminFinanceQuery): TZPaginatedQuery<AdminSettlement>;
|
|
3190
3199
|
payouts(params?: AdminFinanceQuery): TZPaginatedQuery<AdminPayout>;
|
|
3191
3200
|
markPaid(id: string): TZQuery<void>;
|
|
3201
|
+
createPayout(data: Record<string, unknown>): TZQuery<AdminPayout>;
|
|
3202
|
+
markPayoutPaid(id: string): TZQuery<void>;
|
|
3192
3203
|
exportReport(params?: Record<string, unknown>): TZQuery<{
|
|
3193
3204
|
url: string;
|
|
3194
3205
|
}>;
|
|
@@ -3654,16 +3665,16 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
3654
3665
|
removeOption(optionId: string): TZQuery<void>;
|
|
3655
3666
|
};
|
|
3656
3667
|
orders: {
|
|
3657
|
-
list(params?: AdminListOrdersQuery): TZPaginatedQuery<
|
|
3668
|
+
list(params?: AdminListOrdersQuery): TZPaginatedQuery<AdminOrder>;
|
|
3658
3669
|
stats(): TZQuery<Record<string, unknown>>;
|
|
3659
|
-
get(id: string): TZQuery<
|
|
3660
|
-
updateStatus(id: string, data: UpdateOrderStatusDto): TZQuery<
|
|
3670
|
+
get(id: string): TZQuery<AdminOrderDetail>;
|
|
3671
|
+
updateStatus(id: string, data: UpdateOrderStatusDto): TZQuery<AdminOrderDetail>;
|
|
3661
3672
|
};
|
|
3662
3673
|
locations: {
|
|
3663
|
-
list(): TZQuery<
|
|
3664
|
-
get(id: string): TZQuery<
|
|
3665
|
-
create(data: Record<string, unknown>): TZQuery<
|
|
3666
|
-
update(id: string, data: Record<string, unknown>): TZQuery<
|
|
3674
|
+
list(): TZQuery<AdminLocation[]>;
|
|
3675
|
+
get(id: string): TZQuery<AdminLocationDetail>;
|
|
3676
|
+
create(data: Record<string, unknown>): TZQuery<AdminLocation>;
|
|
3677
|
+
update(id: string, data: Record<string, unknown>): TZQuery<AdminLocation>;
|
|
3667
3678
|
remove(id: string): TZQuery<void>;
|
|
3668
3679
|
setHours(id: string, data: SetLocationHoursDto): TZQuery<void>;
|
|
3669
3680
|
getDeliveryZones(id: string): TZQuery<unknown[]>;
|
|
@@ -3672,8 +3683,8 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
3672
3683
|
removeDeliveryZone(zoneId: string): TZQuery<void>;
|
|
3673
3684
|
};
|
|
3674
3685
|
endUsers: {
|
|
3675
|
-
list(params?: ListEndUsersQuery): TZPaginatedQuery<
|
|
3676
|
-
get(id: string): TZQuery<
|
|
3686
|
+
list(params?: ListEndUsersQuery): TZPaginatedQuery<AdminCustomer>;
|
|
3687
|
+
get(id: string): TZQuery<AdminCustomerDetail>;
|
|
3677
3688
|
create(data: Record<string, unknown>): TZQuery<unknown>;
|
|
3678
3689
|
bulkUpsert(data: BulkUpsertEndUsersDto): TZQuery<unknown>;
|
|
3679
3690
|
update(id: string, data: Record<string, unknown>): TZQuery<unknown>;
|
|
@@ -3703,7 +3714,10 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
3703
3714
|
}>;
|
|
3704
3715
|
};
|
|
3705
3716
|
settings: {
|
|
3706
|
-
getAll(): TZQuery<
|
|
3717
|
+
getAll(): TZQuery<{
|
|
3718
|
+
grouped: Record<string, AdminSetting[]>;
|
|
3719
|
+
settings: AdminSetting[];
|
|
3720
|
+
}>;
|
|
3707
3721
|
getGroup(group: string): TZQuery<Record<string, unknown>>;
|
|
3708
3722
|
set(group: string, key: string, data: SetSettingDto): TZQuery<void>;
|
|
3709
3723
|
bulkUpdate(data: BulkUpdateSettingsDto): TZQuery<void>;
|
|
@@ -3797,46 +3811,49 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
3797
3811
|
removeReward(id: string): TZQuery<void>;
|
|
3798
3812
|
};
|
|
3799
3813
|
coupons: {
|
|
3800
|
-
list(params?: StatusQuery): TZPaginatedQuery<
|
|
3801
|
-
get(id: string): TZQuery<
|
|
3802
|
-
create(data: Record<string, unknown>): TZQuery<
|
|
3803
|
-
update(id: string, data: Record<string, unknown>): TZQuery<
|
|
3814
|
+
list(params?: StatusQuery): TZPaginatedQuery<AdminCoupon>;
|
|
3815
|
+
get(id: string): TZQuery<AdminCoupon>;
|
|
3816
|
+
create(data: Record<string, unknown>): TZQuery<AdminCoupon>;
|
|
3817
|
+
update(id: string, data: Record<string, unknown>): TZQuery<AdminCoupon>;
|
|
3804
3818
|
remove(id: string): TZQuery<void>;
|
|
3805
3819
|
};
|
|
3806
3820
|
promotions: {
|
|
3807
|
-
list(params?: PaginatedQuery): TZPaginatedQuery<
|
|
3808
|
-
get(id: string): TZQuery<
|
|
3809
|
-
create(data: Record<string, unknown>): TZQuery<
|
|
3810
|
-
update(id: string, data: Record<string, unknown>): TZQuery<
|
|
3821
|
+
list(params?: PaginatedQuery): TZPaginatedQuery<AdminPromotion>;
|
|
3822
|
+
get(id: string): TZQuery<AdminPromotion>;
|
|
3823
|
+
create(data: Record<string, unknown>): TZQuery<AdminPromotion>;
|
|
3824
|
+
update(id: string, data: Record<string, unknown>): TZQuery<AdminPromotion>;
|
|
3811
3825
|
remove(id: string): TZQuery<void>;
|
|
3812
3826
|
};
|
|
3813
3827
|
reviews: {
|
|
3814
|
-
list(params?: StatusQuery): TZPaginatedQuery<
|
|
3815
|
-
updateStatus(id: string, data: UpdateReviewStatusDto): TZQuery<
|
|
3828
|
+
list(params?: StatusQuery): TZPaginatedQuery<AdminReview>;
|
|
3829
|
+
updateStatus(id: string, data: UpdateReviewStatusDto): TZQuery<AdminReview>;
|
|
3816
3830
|
};
|
|
3817
3831
|
giftCards: {
|
|
3818
|
-
list(params?: PaginatedQuery): TZPaginatedQuery<
|
|
3819
|
-
get(id: string): TZQuery<
|
|
3820
|
-
create(data: Record<string, unknown>): TZQuery<
|
|
3832
|
+
list(params?: PaginatedQuery): TZPaginatedQuery<AdminGiftCard>;
|
|
3833
|
+
get(id: string): TZQuery<AdminGiftCard>;
|
|
3834
|
+
create(data: Record<string, unknown>): TZQuery<AdminGiftCard>;
|
|
3821
3835
|
};
|
|
3822
3836
|
reservations: {
|
|
3823
|
-
list(params?: StatusQuery): TZPaginatedQuery<
|
|
3824
|
-
updateStatus(id: string, data: UpdateReservationStatusDto): TZQuery<
|
|
3825
|
-
resources(): TZQuery<
|
|
3826
|
-
createResource(data: Record<string, unknown>): TZQuery<
|
|
3827
|
-
updateResource(id: string, data: Record<string, unknown>): TZQuery<
|
|
3837
|
+
list(params?: StatusQuery): TZPaginatedQuery<AdminReservation>;
|
|
3838
|
+
updateStatus(id: string, data: UpdateReservationStatusDto): TZQuery<AdminReservation>;
|
|
3839
|
+
resources(): TZQuery<AdminReservationTable[]>;
|
|
3840
|
+
createResource(data: Record<string, unknown>): TZQuery<AdminReservationTable>;
|
|
3841
|
+
updateResource(id: string, data: Record<string, unknown>): TZQuery<AdminReservationTable>;
|
|
3828
3842
|
removeResource(id: string): TZQuery<void>;
|
|
3829
3843
|
};
|
|
3830
3844
|
support: {
|
|
3831
|
-
list(params?: StatusQuery): TZPaginatedQuery<
|
|
3832
|
-
get(id: string): TZQuery<
|
|
3833
|
-
update(id: string, data: UpdateSupportTicketDto): TZQuery<
|
|
3845
|
+
list(params?: StatusQuery): TZPaginatedQuery<AdminTicket>;
|
|
3846
|
+
get(id: string): TZQuery<AdminTicketDetail>;
|
|
3847
|
+
update(id: string, data: UpdateSupportTicketDto): TZQuery<AdminTicketDetail>;
|
|
3848
|
+
reply(ticketId: string, data: {
|
|
3849
|
+
body: string;
|
|
3850
|
+
}): TZQuery<AdminTicketMessage>;
|
|
3834
3851
|
};
|
|
3835
3852
|
content: {
|
|
3836
|
-
list(params?: StatusQuery): TZPaginatedQuery<
|
|
3837
|
-
get(id: string): TZQuery<
|
|
3838
|
-
create(data: Record<string, unknown>): TZQuery<
|
|
3839
|
-
update(id: string, data: Record<string, unknown>): TZQuery<
|
|
3853
|
+
list(params?: StatusQuery): TZPaginatedQuery<AdminBlogPost>;
|
|
3854
|
+
get(id: string): TZQuery<AdminBlogPost>;
|
|
3855
|
+
create(data: Record<string, unknown>): TZQuery<AdminBlogPost>;
|
|
3856
|
+
update(id: string, data: Record<string, unknown>): TZQuery<AdminBlogPost>;
|
|
3840
3857
|
remove(id: string): TZQuery<void>;
|
|
3841
3858
|
};
|
|
3842
3859
|
payments: {
|
|
@@ -3901,24 +3918,24 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
3901
3918
|
};
|
|
3902
3919
|
upload(file: File | Blob, folder?: string): TZQuery<UploadResult>;
|
|
3903
3920
|
studentPasses: {
|
|
3904
|
-
list(params?: ListStudentPassesQuery): TZPaginatedQuery<
|
|
3905
|
-
get(id: string): TZQuery<
|
|
3906
|
-
review(id: string, data: ReviewStudentPassDto): TZQuery<
|
|
3921
|
+
list(params?: ListStudentPassesQuery): TZPaginatedQuery<AdminStudentPass>;
|
|
3922
|
+
get(id: string): TZQuery<AdminStudentPassDetail>;
|
|
3923
|
+
review(id: string, data: ReviewStudentPassDto): TZQuery<AdminStudentPassDetail>;
|
|
3907
3924
|
bulkReview(data: BulkReviewStudentPassesDto): TZQuery<void>;
|
|
3908
|
-
stats(): TZQuery<
|
|
3925
|
+
stats(): TZQuery<AdminStudentPassStats>;
|
|
3909
3926
|
};
|
|
3910
3927
|
studentDiscounts: {
|
|
3911
|
-
list(params?: PaginatedQuery): TZPaginatedQuery<
|
|
3912
|
-
get(id: string): TZQuery<
|
|
3913
|
-
create(data: CreateStudentDiscountDto): TZQuery<
|
|
3914
|
-
update(id: string, data: UpdateStudentDiscountDto): TZQuery<
|
|
3928
|
+
list(params?: PaginatedQuery): TZPaginatedQuery<AdminStudentDiscount>;
|
|
3929
|
+
get(id: string): TZQuery<AdminStudentDiscount>;
|
|
3930
|
+
create(data: CreateStudentDiscountDto): TZQuery<AdminStudentDiscount>;
|
|
3931
|
+
update(id: string, data: UpdateStudentDiscountDto): TZQuery<AdminStudentDiscount>;
|
|
3915
3932
|
remove(id: string): TZQuery<void>;
|
|
3916
3933
|
};
|
|
3917
3934
|
institutions: {
|
|
3918
|
-
list(params?: PaginatedQuery): TZPaginatedQuery<
|
|
3919
|
-
get(id: string): TZQuery<
|
|
3920
|
-
create(data: CreateInstitutionDto): TZQuery<
|
|
3921
|
-
update(id: string, data: UpdateInstitutionDto): TZQuery<
|
|
3935
|
+
list(params?: PaginatedQuery): TZPaginatedQuery<AdminInstitution>;
|
|
3936
|
+
get(id: string): TZQuery<AdminInstitution>;
|
|
3937
|
+
create(data: CreateInstitutionDto): TZQuery<AdminInstitution>;
|
|
3938
|
+
update(id: string, data: UpdateInstitutionDto): TZQuery<AdminInstitution>;
|
|
3922
3939
|
remove(id: string): TZQuery<void>;
|
|
3923
3940
|
};
|
|
3924
3941
|
inventory: {
|
|
@@ -3962,10 +3979,10 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
3962
3979
|
remove(id: string): TZQuery<void>;
|
|
3963
3980
|
};
|
|
3964
3981
|
helpArticles: {
|
|
3965
|
-
list(params?: PaginatedQuery): TZPaginatedQuery<
|
|
3966
|
-
get(id: string): TZQuery<
|
|
3967
|
-
create(data: CreateHelpArticleDto): TZQuery<
|
|
3968
|
-
update(id: string, data: UpdateHelpArticleDto): TZQuery<
|
|
3982
|
+
list(params?: PaginatedQuery): TZPaginatedQuery<AdminHelpArticle>;
|
|
3983
|
+
get(id: string): TZQuery<AdminHelpArticle>;
|
|
3984
|
+
create(data: CreateHelpArticleDto): TZQuery<AdminHelpArticle>;
|
|
3985
|
+
update(id: string, data: UpdateHelpArticleDto): TZQuery<AdminHelpArticle>;
|
|
3969
3986
|
remove(id: string): TZQuery<void>;
|
|
3970
3987
|
};
|
|
3971
3988
|
dashboard: {
|
|
@@ -4011,6 +4028,8 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
4011
4028
|
settlements(params?: AdminFinanceQuery): TZPaginatedQuery<AdminSettlement>;
|
|
4012
4029
|
payouts(params?: AdminFinanceQuery): TZPaginatedQuery<AdminPayout>;
|
|
4013
4030
|
markPaid(id: string): TZQuery<void>;
|
|
4031
|
+
createPayout(data: Record<string, unknown>): TZQuery<AdminPayout>;
|
|
4032
|
+
markPayoutPaid(id: string): TZQuery<void>;
|
|
4014
4033
|
exportReport(params?: Record<string, unknown>): TZQuery<{
|
|
4015
4034
|
url: string;
|
|
4016
4035
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -1720,6 +1720,9 @@ function createAdmin(root, c) {
|
|
|
1720
1720
|
},
|
|
1721
1721
|
update(id, data) {
|
|
1722
1722
|
return c.patch(`/support/${id}`, data);
|
|
1723
|
+
},
|
|
1724
|
+
reply(ticketId, data) {
|
|
1725
|
+
return c.post(`/support/${ticketId}/reply`, data);
|
|
1723
1726
|
}
|
|
1724
1727
|
},
|
|
1725
1728
|
// ─── Content (Admin) ─────────────────────────────────────────────
|
|
@@ -2171,6 +2174,12 @@ function createAdmin(root, c) {
|
|
|
2171
2174
|
markPaid(id) {
|
|
2172
2175
|
return c.patch(`/admin/finance/payouts/${id}`, { isPaid: true });
|
|
2173
2176
|
},
|
|
2177
|
+
createPayout(data) {
|
|
2178
|
+
return c.post("/admin/finance/payouts", data);
|
|
2179
|
+
},
|
|
2180
|
+
markPayoutPaid(id) {
|
|
2181
|
+
return c.patch(`/admin/finance/payouts/${id}`, { isPaid: true });
|
|
2182
|
+
},
|
|
2174
2183
|
exportReport(params) {
|
|
2175
2184
|
return c.post("/admin/reports/export", params);
|
|
2176
2185
|
}
|