@applite/js-sdk 0.0.17 → 0.0.18
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.mts +226 -1
- package/dist/index.d.ts +226 -1
- package/dist/index.js +78 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +78 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -111,6 +111,7 @@ interface CustomerListItem {
|
|
|
111
111
|
createdAt: string;
|
|
112
112
|
plateforms: PlateformType[];
|
|
113
113
|
isBlocked: boolean;
|
|
114
|
+
viewed: boolean;
|
|
114
115
|
}
|
|
115
116
|
/**
|
|
116
117
|
* Customer minimal info in list/few response
|
|
@@ -134,6 +135,56 @@ interface Customer {
|
|
|
134
135
|
createdAt: string;
|
|
135
136
|
isBlocked: boolean;
|
|
136
137
|
isDeleted: boolean;
|
|
138
|
+
viewed: boolean;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Customer detail appointment summary
|
|
142
|
+
*/
|
|
143
|
+
interface CustomerDetailAppointment {
|
|
144
|
+
id: string;
|
|
145
|
+
ref: string;
|
|
146
|
+
status: string;
|
|
147
|
+
totalPrice: number;
|
|
148
|
+
createdAt: string;
|
|
149
|
+
service: {
|
|
150
|
+
id: string;
|
|
151
|
+
name: string;
|
|
152
|
+
};
|
|
153
|
+
agent: {
|
|
154
|
+
id: string;
|
|
155
|
+
fullname: string;
|
|
156
|
+
} | null;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Customer detail review summary
|
|
160
|
+
*/
|
|
161
|
+
interface CustomerDetailReview {
|
|
162
|
+
id: string;
|
|
163
|
+
type: string;
|
|
164
|
+
rating: number;
|
|
165
|
+
title: string | null;
|
|
166
|
+
comment: string | null;
|
|
167
|
+
createdAt: string;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Customer detail testimony summary
|
|
171
|
+
*/
|
|
172
|
+
interface CustomerDetailTestimony {
|
|
173
|
+
id: string;
|
|
174
|
+
name: string;
|
|
175
|
+
rating: number;
|
|
176
|
+
comment: string;
|
|
177
|
+
status: string;
|
|
178
|
+
createdAt: string;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Customer detail stats
|
|
182
|
+
*/
|
|
183
|
+
interface CustomerDetailStats {
|
|
184
|
+
totalOrders: number;
|
|
185
|
+
totalTransactionsAmount: number;
|
|
186
|
+
totalAppointments: number;
|
|
187
|
+
totalReviews: number;
|
|
137
188
|
}
|
|
138
189
|
/**
|
|
139
190
|
* Customer detail with relations
|
|
@@ -145,12 +196,32 @@ interface CustomerDetail extends Customer {
|
|
|
145
196
|
addresses: CustomerAddress[];
|
|
146
197
|
transactions: CustomerTransaction[];
|
|
147
198
|
storeReviews: CustomerStoreReview[];
|
|
199
|
+
storeOrders: CustomerOrderSummary[];
|
|
200
|
+
multiServiceAppointments: CustomerDetailAppointment[];
|
|
201
|
+
reviews: CustomerDetailReview[];
|
|
202
|
+
testimonies: CustomerDetailTestimony[];
|
|
203
|
+
stats: CustomerDetailStats | null;
|
|
148
204
|
app: {
|
|
149
205
|
id: string;
|
|
150
206
|
name: string;
|
|
151
207
|
slug: string;
|
|
152
208
|
};
|
|
153
209
|
}
|
|
210
|
+
/**
|
|
211
|
+
* Customer order summary
|
|
212
|
+
*/
|
|
213
|
+
interface CustomerOrderSummary {
|
|
214
|
+
id: string;
|
|
215
|
+
ref: string | null;
|
|
216
|
+
total: number;
|
|
217
|
+
status: string | null;
|
|
218
|
+
createdAt: string;
|
|
219
|
+
seller: {
|
|
220
|
+
id: string;
|
|
221
|
+
fullname: string;
|
|
222
|
+
avatar: string | null;
|
|
223
|
+
} | null;
|
|
224
|
+
}
|
|
154
225
|
interface CustomerAddress {
|
|
155
226
|
id: string;
|
|
156
227
|
label: string | null;
|
|
@@ -615,6 +686,18 @@ interface GetNotificationLogsParams extends ListParams {
|
|
|
615
686
|
eventType?: NotificationEventType;
|
|
616
687
|
customerId?: string;
|
|
617
688
|
}
|
|
689
|
+
/**
|
|
690
|
+
* Notification data payload sent with push notifications for navigation
|
|
691
|
+
*/
|
|
692
|
+
interface NotificationDataPayload {
|
|
693
|
+
type: string;
|
|
694
|
+
appId: string;
|
|
695
|
+
appName?: string;
|
|
696
|
+
customerId?: string;
|
|
697
|
+
orderId?: string;
|
|
698
|
+
appointmentId?: string;
|
|
699
|
+
transactionId?: string;
|
|
700
|
+
}
|
|
618
701
|
|
|
619
702
|
declare class NotificationApi {
|
|
620
703
|
private readonly http;
|
|
@@ -1403,6 +1486,9 @@ interface ListProductsParams extends SearchableListParams {
|
|
|
1403
1486
|
tagIds?: string[];
|
|
1404
1487
|
status?: ProductStatus;
|
|
1405
1488
|
}
|
|
1489
|
+
interface BulkDeleteProductsParams extends AppScopedParams {
|
|
1490
|
+
ids: string[];
|
|
1491
|
+
}
|
|
1406
1492
|
|
|
1407
1493
|
/**
|
|
1408
1494
|
* Discount list item
|
|
@@ -2585,6 +2671,106 @@ interface PublicListTestimoniesParams {
|
|
|
2585
2671
|
productId?: string | null;
|
|
2586
2672
|
}
|
|
2587
2673
|
|
|
2674
|
+
type ReviewType = "STORE_PRODUCT" | "MULTI_SERVICE_AGENT" | "MULTI_SERVICE_APPOINTMENT";
|
|
2675
|
+
interface ReviewCustomer {
|
|
2676
|
+
id: string;
|
|
2677
|
+
fullname: string | null;
|
|
2678
|
+
photoUrl: string | null;
|
|
2679
|
+
}
|
|
2680
|
+
interface Review {
|
|
2681
|
+
id: string;
|
|
2682
|
+
appId: string;
|
|
2683
|
+
customerId: string | null;
|
|
2684
|
+
type: ReviewType;
|
|
2685
|
+
rating: number;
|
|
2686
|
+
title: string | null;
|
|
2687
|
+
comment: string | null;
|
|
2688
|
+
images: string[];
|
|
2689
|
+
isVerified: boolean;
|
|
2690
|
+
productId: string | null;
|
|
2691
|
+
variantId: string | null;
|
|
2692
|
+
sellerId: string | null;
|
|
2693
|
+
agentId: string | null;
|
|
2694
|
+
appointmentId: string | null;
|
|
2695
|
+
createdAt: string;
|
|
2696
|
+
updatedAt: string;
|
|
2697
|
+
customer?: ReviewCustomer | null;
|
|
2698
|
+
}
|
|
2699
|
+
interface PublicReview {
|
|
2700
|
+
id: string;
|
|
2701
|
+
type: ReviewType;
|
|
2702
|
+
rating: number;
|
|
2703
|
+
title: string | null;
|
|
2704
|
+
comment: string | null;
|
|
2705
|
+
images: string[];
|
|
2706
|
+
isVerified: boolean;
|
|
2707
|
+
productId: string | null;
|
|
2708
|
+
agentId: string | null;
|
|
2709
|
+
appointmentId: string | null;
|
|
2710
|
+
customer: ReviewCustomer | null;
|
|
2711
|
+
createdAt: string;
|
|
2712
|
+
}
|
|
2713
|
+
interface CustomerSubmitReviewParams {
|
|
2714
|
+
appId: string;
|
|
2715
|
+
appApiKey: string;
|
|
2716
|
+
customerApiKey: string;
|
|
2717
|
+
type: ReviewType;
|
|
2718
|
+
rating: number;
|
|
2719
|
+
title?: string | null;
|
|
2720
|
+
comment?: string | null;
|
|
2721
|
+
images?: string[];
|
|
2722
|
+
productId?: string | null;
|
|
2723
|
+
agentId?: string | null;
|
|
2724
|
+
appointmentId?: string | null;
|
|
2725
|
+
}
|
|
2726
|
+
interface ListReviewsParams extends ListParams {
|
|
2727
|
+
type?: ReviewType | null;
|
|
2728
|
+
productId?: string | null;
|
|
2729
|
+
sellerId?: string | null;
|
|
2730
|
+
agentId?: string | null;
|
|
2731
|
+
appointmentId?: string | null;
|
|
2732
|
+
isVerified?: boolean | null;
|
|
2733
|
+
rating?: number | null;
|
|
2734
|
+
search?: string | null;
|
|
2735
|
+
}
|
|
2736
|
+
interface PublicListReviewsParams {
|
|
2737
|
+
appId: string;
|
|
2738
|
+
appApiKey?: string;
|
|
2739
|
+
customerApiKey?: string;
|
|
2740
|
+
type?: ReviewType | null;
|
|
2741
|
+
productId?: string | null;
|
|
2742
|
+
agentId?: string | null;
|
|
2743
|
+
appointmentId?: string | null;
|
|
2744
|
+
limit?: number;
|
|
2745
|
+
page?: number;
|
|
2746
|
+
}
|
|
2747
|
+
interface GetReviewByIdParams extends AppScopedParams {
|
|
2748
|
+
id: string;
|
|
2749
|
+
}
|
|
2750
|
+
interface EditReviewParams extends AppScopedParams {
|
|
2751
|
+
id: string;
|
|
2752
|
+
title?: string | null;
|
|
2753
|
+
comment?: string | null;
|
|
2754
|
+
rating?: number | null;
|
|
2755
|
+
isVerified?: boolean | null;
|
|
2756
|
+
}
|
|
2757
|
+
interface DeleteReviewParams extends AppScopedParams {
|
|
2758
|
+
id: string;
|
|
2759
|
+
}
|
|
2760
|
+
interface VerifyReviewParams extends AppScopedParams {
|
|
2761
|
+
id: string;
|
|
2762
|
+
isVerified: boolean;
|
|
2763
|
+
}
|
|
2764
|
+
interface ReviewListResponse {
|
|
2765
|
+
reviews: Review[];
|
|
2766
|
+
pagination: {
|
|
2767
|
+
total: number;
|
|
2768
|
+
page: number;
|
|
2769
|
+
limit: number;
|
|
2770
|
+
totalPages: number;
|
|
2771
|
+
};
|
|
2772
|
+
}
|
|
2773
|
+
|
|
2588
2774
|
interface TestimonyListResponse {
|
|
2589
2775
|
testimonies: Testimony[];
|
|
2590
2776
|
pagination: PaginationMeta;
|
|
@@ -2628,6 +2814,41 @@ declare class TestimonyApi {
|
|
|
2628
2814
|
listPublic(params: PublicListTestimoniesParams): Promise<ApiSuccessResponse<PublicTestimony[]>>;
|
|
2629
2815
|
}
|
|
2630
2816
|
|
|
2817
|
+
declare class ReviewApi {
|
|
2818
|
+
private readonly http;
|
|
2819
|
+
constructor(http: HttpClient);
|
|
2820
|
+
/**
|
|
2821
|
+
* Customer: Submit a new review
|
|
2822
|
+
*/
|
|
2823
|
+
submit(params: CustomerSubmitReviewParams): Promise<ApiSuccessResponse<Review>>;
|
|
2824
|
+
/**
|
|
2825
|
+
* Admin: List reviews with filters and pagination
|
|
2826
|
+
*/
|
|
2827
|
+
list(params: ListReviewsParams): Promise<ApiSuccessResponse<ReviewListResponse>>;
|
|
2828
|
+
/**
|
|
2829
|
+
* Public: List verified reviews
|
|
2830
|
+
*/
|
|
2831
|
+
listPublic(params: PublicListReviewsParams): Promise<ApiSuccessResponse<PublicReview[]>>;
|
|
2832
|
+
/**
|
|
2833
|
+
* Get a single review by ID
|
|
2834
|
+
*/
|
|
2835
|
+
getById(params: GetReviewByIdParams): Promise<ApiSuccessResponse<Review>>;
|
|
2836
|
+
/**
|
|
2837
|
+
* Edit a review
|
|
2838
|
+
*/
|
|
2839
|
+
update(params: EditReviewParams): Promise<ApiSuccessResponse<Review>>;
|
|
2840
|
+
/**
|
|
2841
|
+
* Delete a review
|
|
2842
|
+
*/
|
|
2843
|
+
delete(params: DeleteReviewParams): Promise<ApiSuccessResponse<{
|
|
2844
|
+
deleted: boolean;
|
|
2845
|
+
}>>;
|
|
2846
|
+
/**
|
|
2847
|
+
* Admin: Verify/approve a review
|
|
2848
|
+
*/
|
|
2849
|
+
verify(params: VerifyReviewParams): Promise<ApiSuccessResponse<Review>>;
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2631
2852
|
declare class BadgeApi {
|
|
2632
2853
|
private readonly http;
|
|
2633
2854
|
constructor(http: HttpClient);
|
|
@@ -2721,6 +2942,9 @@ declare class ProductApi {
|
|
|
2721
2942
|
delete(params: DeleteProductParams): Promise<ApiSuccessResponse<{
|
|
2722
2943
|
deleted: boolean;
|
|
2723
2944
|
}>>;
|
|
2945
|
+
bulkDelete(params: BulkDeleteProductsParams): Promise<ApiSuccessResponse<{
|
|
2946
|
+
deleted: boolean;
|
|
2947
|
+
}>>;
|
|
2724
2948
|
}
|
|
2725
2949
|
|
|
2726
2950
|
declare class SellerApi {
|
|
@@ -3013,6 +3237,7 @@ declare class AppliteUI {
|
|
|
3013
3237
|
readonly webhook: WebhookApi;
|
|
3014
3238
|
readonly user: UserApi;
|
|
3015
3239
|
readonly testimony: TestimonyApi;
|
|
3240
|
+
readonly review: ReviewApi;
|
|
3016
3241
|
readonly store: StoreApi;
|
|
3017
3242
|
readonly multiService: MultiServiceApi;
|
|
3018
3243
|
readonly superAdmin: SuperAdminApi;
|
|
@@ -3022,4 +3247,4 @@ declare class AppliteUI {
|
|
|
3022
3247
|
constructor(config?: AppliteUIConfig);
|
|
3023
3248
|
}
|
|
3024
3249
|
|
|
3025
|
-
export { type AddCartItemParams, type AddKolaboAppToPartnerParams, type Address, AddressApi, type AddressDeleteParams, type AddressListParams, type AdvancedImageType, AgentApi, type AgentSummary, type ApiErrorResponse, type ApiKeyParams, type ApiResponse, type ApiSuccessResponse, type ApiSuccessResponseWithMeta, type AppDetail, type AppScopedParams, type AppSummary, AppliteUI, type AppliteUIConfig, AppointmentApi, type AppointmentStatus, BadgeApi, type BalanceParams, type CalculateCartTotalsParams, CartApi, type CartCustomerSummary, type CartItem, type CartItemVariant, type CartTotals, type CashInParams, type CashOutParams, CategoryApi, type CheckKolaboPartnerParams, type CleanupTransactionsParams, type CleanupTransactionsResult, CollectionApi, type CollectionType, CompanyApi, type CompanySummary, type ConfigureKolaboAppParams, type CreateAddressParams, type CreateAgentParams, type CreateAppParams, type CreateAppointmentParams, type CreateBadgeParams, type CreateCartParams, type CreateCategoryParams, type CreateCollectionParams, type CreateCompanyParams, type CreateDiscountParams, type CreateDuticotacOfferParams, type CreateFieldTemplateParams, type CreateKolaboCustomerParams, type CreateKolaboCustomerPartnershipParams, type CreateOptionParams, type CreateOrderParams, type CreateProductParams, type CreateSellerParams, type CreateServiceParams, type CreateShippingProfileParams, type CreateStatisticParams, type CreateTagParams, type CreateTaxParams, type CreateTestimonyParams, type CreateWelcomeItemParams, type CronBillingParams, type CronBillingResponse, type CronBillingResult, type CronNotificationParams, type CronNotificationResponse, type CronNotificationResult, type Currency, type Customer, type CustomerAddress, CustomerApi, type CustomerAuthParams, type CustomerBlockParams, type CustomerCheckParams, type CustomerDeleteParams, type CustomerDetail, type CustomerGetParams, type CustomerListFewItem, type CustomerListItem, type CustomerListParams, type CustomerSelfDeleteParams, type CustomerStoreReview, type CustomerSubmitTestimonyParams, type CustomerSummary, type CustomerTransaction, type CustomerUpdateParams, type DeleteAgentParams, type DeleteBadgeParams, type DeleteCategoryParams, type DeleteCollectionParams, type DeleteCompanyParams, type DeleteDiscountParams, type DeleteFieldTemplateParams, type DeleteFirebaseConfigParams, type DeleteKolaboPartnerParams, type DeleteNotificationTemplateParams, type DeleteOptionParams, type DeleteOrderParams, type DeleteProductParams, type DeleteSellerParams, type DeleteServiceParams, type DeleteShippingProfileParams, type DeleteTagParams, type DeleteTaxParams, type DeleteTestimonyParams, type DeleteWebhookParams, type DeleteWelcomeItemParams, DiscountApi, type DiscountAppliesTo, type DiscountMinRequirement, type DiscountType, type DuTicOTacOfferType, DuticotacApi, DuticotacBalanceApi, type DuticotacOffer, DuticotacOfferApi, DuticotacPaymentApi, type DuticotacTransaction, DuticotacTransactionApi, type DuticotacTransactionGetParams, type EditDuticotacOfferParams, type EditKolaboPartnerProfileParams, type EditTestimonyParams, type EntityIdParams, type FieldOption, type FieldOptionInput, FieldTemplateApi, type FieldType, type FileType, FinanceApi, type FirebaseConfig, type FulfillmentStatus, type GetAddressByIdParams, type GetAgentParams, type GetAppByIdParams, type GetAppBySlugParams, type GetAppointmentParams, type GetBadgeParams, type GetCartParams, type GetCategoryParams, type GetCollectionParams, type GetCompanyParams, type GetDiscountParams, type GetFirebaseConfigParams, type GetKolaboPartnerAppsParams, type GetKolaboPartnerTransactionParams, type GetNotificationLogsParams, type GetNotificationTemplatesParams, type GetOptionParams, type GetOrderParams, type GetPaymentMethodsParams, type GetProductParams, type GetSellerParams, type GetServiceParams, type GetShippingProfileParams, type GetStatisticParams, type GetTagParams, type GetTaxParams, type GetTestimonyByIdParams, type GetWebhookLogsParams, type GetWelcomeItemParams, HttpClient, type HttpClientConfig, InfoApi, type InventoryPolicy, type JoinAppParams, KolaboApi, type KolaboApp, KolaboAppApi, type KolaboAppStatus, type KolaboCustomer, KolaboCustomerApi, type KolaboPartner, KolaboPartnerApi, type KolaboPartnerShip, type KolaboPartnerTransactionApp, type KolaboPartnerTransactionCustomer, type KolaboPartnerTransactionDetail, type KolaboPartnerTransactionListItem, type KolaboPartnerTransactionType, type KolaboPartnerType, type KolaboPartnerWithdrawWebhookParams, type KolaboPartnerWithdrawWebhookPartner, type KolaboPartnerWithdrawWebhookTransaction, type KolaboPaymentMethod, type KolaboWithdrawStatus, type ListAgentsParams, type ListAppointmentsParams, type ListAppsParams, type ListBadgesParams, type ListCategoriesParams, type ListCollectionsParams, type ListCompaniesParams, type ListDiscountsParams, type ListFieldTemplatesParams, type ListKolaboPartnerTransactionsParams, type ListNotificationTokensParams, type ListOptionsParams, type ListOrdersParams, type ListParams, type ListProductsParams, type ListSellersParams, type ListServicesParams, type ListShippingProfilesParams, type ListTagsParams, type ListTaxesParams, type ListTestimoniesParams, type ListWelcomeItemsParams, MaintenanceApi, type MemberRole, type ModuleType, type MultiServiceAgentDetail, type MultiServiceAgentListItem, MultiServiceApi, type MultiServiceAppointmentDetail, type MultiServiceAppointmentListItem, type MultiServiceCompanyDetail, type MultiServiceCompanyListItem, type MultiServiceFieldOptionTemplate, type MultiServiceFieldTemplate, type MultiServiceServiceDetail, type MultiServiceServiceListItem, NotificationApi, type NotificationEventType, type NotificationLog, type NotificationLogsResponse, type NotificationPlatform, type NotificationTemplate, type NotificationToken, NotificationTokenApi, OptionApi, type OptionValueInput, type OrderAddress, OrderApi, type OrderCartItem, type OrderCustomerSummary, type OrderItemInput, type OrderItemVariant, type OrderSellerSummary, type OrderStatus, type PaginationMeta, type PaymentMethodSetParams, type PaymentStatus, type PlateformType, ProductApi, type ProductAttributeInput, type ProductDimension, type ProductImage, type ProductImageFull, type ProductStatus, type ProductVariantDetail, type ProductVariantInput, type ProductVariantListItem, type ProductVariantOptionValue, type PublicListTestimoniesParams, type PublicTestimony, type RemoveAllNotificationTokensParams, type RemoveAllTokensResponse, type RemoveCartItemParams, type RemoveNotificationTokenParams, type RemoveTokenResponse, type SearchableListParams, SellerApi, type SellerSummary, ServiceApi, type ServiceField, type ServiceFieldInput, type ServiceSummary, type ServiceSummaryWithFields, type SetFirebaseConfigParams, type SetNotificationTemplateParams, type SetNotificationTokenParams, type SetPinParams, type SetWebhookParams, type Sexe, ShippingApi, type ShippingRateInput, type ShippingRateType, type ShippingZoneInput, type SignUpKolaboPartnerParams, type Statistic, StatsApi, StoreApi, type StoreBadgeDetail, type StoreBadgeListItem, type StoreCart, type StoreCategoryDetail, type StoreCategoryListItem, type StoreCollectionDetail, type StoreCollectionListItem, type StoreDiscountDetail, type StoreDiscountListItem, type StoreOptionDetail, type StoreOptionListItem, type StoreOptionType, type StoreOptionValue, type StoreOrderDetail, type StoreOrderListItem, type StoreProductDetail, type StoreProductListItem, type StoreSellerDetail, type StoreSellerListItem, type StoreShippingProfileDetail, type StoreShippingProfileListItem, type StoreShippingRate, type StoreShippingZone, type StoreTagDetail, type StoreTagListItem, type StoreTaxDetail, type StoreTaxListItem, type SubscriptionStatus, SuperAdminApi, type SuperAdminApp, type SuperAdminAppListParams, type SuperAdminAppListResponse, SuperAdminAppsApi, SuperAdminAuthApi, SuperAdminFinanceApi, type SuperAdminInitParams, type SuperAdminMeParams, type SuperAdminModuleUpdateParams, SuperAdminModulesApi, type SuperAdminModulesListParams, SuperAdminNotificationApi, type SuperAdminNotificationSendParams, type SuperAdminNotificationSendResponse, type SuperAdminPlatformModule, type SuperAdminRole, type SuperAdminSigninParams, type SuperAdminStats, SuperAdminStatsApi, type SuperAdminStatsParams, type SuperAdminTransaction, type SuperAdminTransactionListParams, type SuperAdminTransactionListResponse, type SuperAdminUser, type SuperAdminWithdrawParams, type SuperAdminWithdrawResponse, TagApi, TaxApi, type Testimony, TestimonyApi, type TestimonyStatus, type ToggleModuleParams, type ToggleModuleResponse, type Transaction, type TransactionDetail, type TransactionGetParams, type TransactionListParams, type TransactionProvider, type TransactionStatus, type UpdateAddressParams, type UpdateAgentParams, type UpdateAppModulesParams, type UpdateAppParams, type UpdateAppointmentAgentParams, type UpdateAppointmentStatusParams, type UpdateBadgeParams, type UpdateCartItemParams, type UpdateCategoryParams, type UpdateCollectionParams, type UpdateCompanyParams, type UpdateDiscountParams, type UpdateFieldTemplateParams, type UpdateOptionParams, type UpdateOrderParams, type UpdateProductParams, type UpdateSellerParams, type UpdateServiceParams, type UpdateShippingProfileParams, type UpdateStatisticParams, type UpdateTagParams, type UpdateTaxParams, type UpdateTestimonyStatusParams, type UpdateWelcomeItemParams, type User, UserApi, type UserDeleteParams, type UserEditCredentialsParams, type UserGetParams, type UserSetNotificationParams, type UserSigninParams, type UserSignupParams, type UserUpdateParams, type UserVerifyPasswordParams, type Webhook, WebhookApi, type WebhookEventType, type WebhookLog, type WebhookLogsResponse, type WelcomeItem, WelcomeItemApi, type WithdrawKolaboPartnerParams, type WithdrawParams, type WithdrawResult };
|
|
3250
|
+
export { type AddCartItemParams, type AddKolaboAppToPartnerParams, type Address, AddressApi, type AddressDeleteParams, type AddressListParams, type AdvancedImageType, AgentApi, type AgentSummary, type ApiErrorResponse, type ApiKeyParams, type ApiResponse, type ApiSuccessResponse, type ApiSuccessResponseWithMeta, type AppDetail, type AppScopedParams, type AppSummary, AppliteUI, type AppliteUIConfig, AppointmentApi, type AppointmentStatus, BadgeApi, type BalanceParams, type BulkDeleteProductsParams, type CalculateCartTotalsParams, CartApi, type CartCustomerSummary, type CartItem, type CartItemVariant, type CartTotals, type CashInParams, type CashOutParams, CategoryApi, type CheckKolaboPartnerParams, type CleanupTransactionsParams, type CleanupTransactionsResult, CollectionApi, type CollectionType, CompanyApi, type CompanySummary, type ConfigureKolaboAppParams, type CreateAddressParams, type CreateAgentParams, type CreateAppParams, type CreateAppointmentParams, type CreateBadgeParams, type CreateCartParams, type CreateCategoryParams, type CreateCollectionParams, type CreateCompanyParams, type CreateDiscountParams, type CreateDuticotacOfferParams, type CreateFieldTemplateParams, type CreateKolaboCustomerParams, type CreateKolaboCustomerPartnershipParams, type CreateOptionParams, type CreateOrderParams, type CreateProductParams, type CreateSellerParams, type CreateServiceParams, type CreateShippingProfileParams, type CreateStatisticParams, type CreateTagParams, type CreateTaxParams, type CreateTestimonyParams, type CreateWelcomeItemParams, type CronBillingParams, type CronBillingResponse, type CronBillingResult, type CronNotificationParams, type CronNotificationResponse, type CronNotificationResult, type Currency, type Customer, type CustomerAddress, CustomerApi, type CustomerAuthParams, type CustomerBlockParams, type CustomerCheckParams, type CustomerDeleteParams, type CustomerDetail, type CustomerDetailAppointment, type CustomerDetailReview, type CustomerDetailStats, type CustomerDetailTestimony, type CustomerGetParams, type CustomerListFewItem, type CustomerListItem, type CustomerListParams, type CustomerOrderSummary, type CustomerSelfDeleteParams, type CustomerStoreReview, type CustomerSubmitReviewParams, type CustomerSubmitTestimonyParams, type CustomerSummary, type CustomerTransaction, type CustomerUpdateParams, type DeleteAgentParams, type DeleteBadgeParams, type DeleteCategoryParams, type DeleteCollectionParams, type DeleteCompanyParams, type DeleteDiscountParams, type DeleteFieldTemplateParams, type DeleteFirebaseConfigParams, type DeleteKolaboPartnerParams, type DeleteNotificationTemplateParams, type DeleteOptionParams, type DeleteOrderParams, type DeleteProductParams, type DeleteReviewParams, type DeleteSellerParams, type DeleteServiceParams, type DeleteShippingProfileParams, type DeleteTagParams, type DeleteTaxParams, type DeleteTestimonyParams, type DeleteWebhookParams, type DeleteWelcomeItemParams, DiscountApi, type DiscountAppliesTo, type DiscountMinRequirement, type DiscountType, type DuTicOTacOfferType, DuticotacApi, DuticotacBalanceApi, type DuticotacOffer, DuticotacOfferApi, DuticotacPaymentApi, type DuticotacTransaction, DuticotacTransactionApi, type DuticotacTransactionGetParams, type EditDuticotacOfferParams, type EditKolaboPartnerProfileParams, type EditReviewParams, type EditTestimonyParams, type EntityIdParams, type FieldOption, type FieldOptionInput, FieldTemplateApi, type FieldType, type FileType, FinanceApi, type FirebaseConfig, type FulfillmentStatus, type GetAddressByIdParams, type GetAgentParams, type GetAppByIdParams, type GetAppBySlugParams, type GetAppointmentParams, type GetBadgeParams, type GetCartParams, type GetCategoryParams, type GetCollectionParams, type GetCompanyParams, type GetDiscountParams, type GetFirebaseConfigParams, type GetKolaboPartnerAppsParams, type GetKolaboPartnerTransactionParams, type GetNotificationLogsParams, type GetNotificationTemplatesParams, type GetOptionParams, type GetOrderParams, type GetPaymentMethodsParams, type GetProductParams, type GetReviewByIdParams, type GetSellerParams, type GetServiceParams, type GetShippingProfileParams, type GetStatisticParams, type GetTagParams, type GetTaxParams, type GetTestimonyByIdParams, type GetWebhookLogsParams, type GetWelcomeItemParams, HttpClient, type HttpClientConfig, InfoApi, type InventoryPolicy, type JoinAppParams, KolaboApi, type KolaboApp, KolaboAppApi, type KolaboAppStatus, type KolaboCustomer, KolaboCustomerApi, type KolaboPartner, KolaboPartnerApi, type KolaboPartnerShip, type KolaboPartnerTransactionApp, type KolaboPartnerTransactionCustomer, type KolaboPartnerTransactionDetail, type KolaboPartnerTransactionListItem, type KolaboPartnerTransactionType, type KolaboPartnerType, type KolaboPartnerWithdrawWebhookParams, type KolaboPartnerWithdrawWebhookPartner, type KolaboPartnerWithdrawWebhookTransaction, type KolaboPaymentMethod, type KolaboWithdrawStatus, type ListAgentsParams, type ListAppointmentsParams, type ListAppsParams, type ListBadgesParams, type ListCategoriesParams, type ListCollectionsParams, type ListCompaniesParams, type ListDiscountsParams, type ListFieldTemplatesParams, type ListKolaboPartnerTransactionsParams, type ListNotificationTokensParams, type ListOptionsParams, type ListOrdersParams, type ListParams, type ListProductsParams, type ListReviewsParams, type ListSellersParams, type ListServicesParams, type ListShippingProfilesParams, type ListTagsParams, type ListTaxesParams, type ListTestimoniesParams, type ListWelcomeItemsParams, MaintenanceApi, type MemberRole, type ModuleType, type MultiServiceAgentDetail, type MultiServiceAgentListItem, MultiServiceApi, type MultiServiceAppointmentDetail, type MultiServiceAppointmentListItem, type MultiServiceCompanyDetail, type MultiServiceCompanyListItem, type MultiServiceFieldOptionTemplate, type MultiServiceFieldTemplate, type MultiServiceServiceDetail, type MultiServiceServiceListItem, NotificationApi, type NotificationDataPayload, type NotificationEventType, type NotificationLog, type NotificationLogsResponse, type NotificationPlatform, type NotificationTemplate, type NotificationToken, NotificationTokenApi, OptionApi, type OptionValueInput, type OrderAddress, OrderApi, type OrderCartItem, type OrderCustomerSummary, type OrderItemInput, type OrderItemVariant, type OrderSellerSummary, type OrderStatus, type PaginationMeta, type PaymentMethodSetParams, type PaymentStatus, type PlateformType, ProductApi, type ProductAttributeInput, type ProductDimension, type ProductImage, type ProductImageFull, type ProductStatus, type ProductVariantDetail, type ProductVariantInput, type ProductVariantListItem, type ProductVariantOptionValue, type PublicListReviewsParams, type PublicListTestimoniesParams, type PublicReview, type PublicTestimony, type RemoveAllNotificationTokensParams, type RemoveAllTokensResponse, type RemoveCartItemParams, type RemoveNotificationTokenParams, type RemoveTokenResponse, type Review, ReviewApi, type ReviewCustomer, type ReviewListResponse, type ReviewType, type SearchableListParams, SellerApi, type SellerSummary, ServiceApi, type ServiceField, type ServiceFieldInput, type ServiceSummary, type ServiceSummaryWithFields, type SetFirebaseConfigParams, type SetNotificationTemplateParams, type SetNotificationTokenParams, type SetPinParams, type SetWebhookParams, type Sexe, ShippingApi, type ShippingRateInput, type ShippingRateType, type ShippingZoneInput, type SignUpKolaboPartnerParams, type Statistic, StatsApi, StoreApi, type StoreBadgeDetail, type StoreBadgeListItem, type StoreCart, type StoreCategoryDetail, type StoreCategoryListItem, type StoreCollectionDetail, type StoreCollectionListItem, type StoreDiscountDetail, type StoreDiscountListItem, type StoreOptionDetail, type StoreOptionListItem, type StoreOptionType, type StoreOptionValue, type StoreOrderDetail, type StoreOrderListItem, type StoreProductDetail, type StoreProductListItem, type StoreSellerDetail, type StoreSellerListItem, type StoreShippingProfileDetail, type StoreShippingProfileListItem, type StoreShippingRate, type StoreShippingZone, type StoreTagDetail, type StoreTagListItem, type StoreTaxDetail, type StoreTaxListItem, type SubscriptionStatus, SuperAdminApi, type SuperAdminApp, type SuperAdminAppListParams, type SuperAdminAppListResponse, SuperAdminAppsApi, SuperAdminAuthApi, SuperAdminFinanceApi, type SuperAdminInitParams, type SuperAdminMeParams, type SuperAdminModuleUpdateParams, SuperAdminModulesApi, type SuperAdminModulesListParams, SuperAdminNotificationApi, type SuperAdminNotificationSendParams, type SuperAdminNotificationSendResponse, type SuperAdminPlatformModule, type SuperAdminRole, type SuperAdminSigninParams, type SuperAdminStats, SuperAdminStatsApi, type SuperAdminStatsParams, type SuperAdminTransaction, type SuperAdminTransactionListParams, type SuperAdminTransactionListResponse, type SuperAdminUser, type SuperAdminWithdrawParams, type SuperAdminWithdrawResponse, TagApi, TaxApi, type Testimony, TestimonyApi, type TestimonyStatus, type ToggleModuleParams, type ToggleModuleResponse, type Transaction, type TransactionDetail, type TransactionGetParams, type TransactionListParams, type TransactionProvider, type TransactionStatus, type UpdateAddressParams, type UpdateAgentParams, type UpdateAppModulesParams, type UpdateAppParams, type UpdateAppointmentAgentParams, type UpdateAppointmentStatusParams, type UpdateBadgeParams, type UpdateCartItemParams, type UpdateCategoryParams, type UpdateCollectionParams, type UpdateCompanyParams, type UpdateDiscountParams, type UpdateFieldTemplateParams, type UpdateOptionParams, type UpdateOrderParams, type UpdateProductParams, type UpdateSellerParams, type UpdateServiceParams, type UpdateShippingProfileParams, type UpdateStatisticParams, type UpdateTagParams, type UpdateTaxParams, type UpdateTestimonyStatusParams, type UpdateWelcomeItemParams, type User, UserApi, type UserDeleteParams, type UserEditCredentialsParams, type UserGetParams, type UserSetNotificationParams, type UserSigninParams, type UserSignupParams, type UserUpdateParams, type UserVerifyPasswordParams, type VerifyReviewParams, type Webhook, WebhookApi, type WebhookEventType, type WebhookLog, type WebhookLogsResponse, type WelcomeItem, WelcomeItemApi, type WithdrawKolaboPartnerParams, type WithdrawParams, type WithdrawResult };
|
package/dist/index.d.ts
CHANGED
|
@@ -111,6 +111,7 @@ interface CustomerListItem {
|
|
|
111
111
|
createdAt: string;
|
|
112
112
|
plateforms: PlateformType[];
|
|
113
113
|
isBlocked: boolean;
|
|
114
|
+
viewed: boolean;
|
|
114
115
|
}
|
|
115
116
|
/**
|
|
116
117
|
* Customer minimal info in list/few response
|
|
@@ -134,6 +135,56 @@ interface Customer {
|
|
|
134
135
|
createdAt: string;
|
|
135
136
|
isBlocked: boolean;
|
|
136
137
|
isDeleted: boolean;
|
|
138
|
+
viewed: boolean;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Customer detail appointment summary
|
|
142
|
+
*/
|
|
143
|
+
interface CustomerDetailAppointment {
|
|
144
|
+
id: string;
|
|
145
|
+
ref: string;
|
|
146
|
+
status: string;
|
|
147
|
+
totalPrice: number;
|
|
148
|
+
createdAt: string;
|
|
149
|
+
service: {
|
|
150
|
+
id: string;
|
|
151
|
+
name: string;
|
|
152
|
+
};
|
|
153
|
+
agent: {
|
|
154
|
+
id: string;
|
|
155
|
+
fullname: string;
|
|
156
|
+
} | null;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Customer detail review summary
|
|
160
|
+
*/
|
|
161
|
+
interface CustomerDetailReview {
|
|
162
|
+
id: string;
|
|
163
|
+
type: string;
|
|
164
|
+
rating: number;
|
|
165
|
+
title: string | null;
|
|
166
|
+
comment: string | null;
|
|
167
|
+
createdAt: string;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Customer detail testimony summary
|
|
171
|
+
*/
|
|
172
|
+
interface CustomerDetailTestimony {
|
|
173
|
+
id: string;
|
|
174
|
+
name: string;
|
|
175
|
+
rating: number;
|
|
176
|
+
comment: string;
|
|
177
|
+
status: string;
|
|
178
|
+
createdAt: string;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Customer detail stats
|
|
182
|
+
*/
|
|
183
|
+
interface CustomerDetailStats {
|
|
184
|
+
totalOrders: number;
|
|
185
|
+
totalTransactionsAmount: number;
|
|
186
|
+
totalAppointments: number;
|
|
187
|
+
totalReviews: number;
|
|
137
188
|
}
|
|
138
189
|
/**
|
|
139
190
|
* Customer detail with relations
|
|
@@ -145,12 +196,32 @@ interface CustomerDetail extends Customer {
|
|
|
145
196
|
addresses: CustomerAddress[];
|
|
146
197
|
transactions: CustomerTransaction[];
|
|
147
198
|
storeReviews: CustomerStoreReview[];
|
|
199
|
+
storeOrders: CustomerOrderSummary[];
|
|
200
|
+
multiServiceAppointments: CustomerDetailAppointment[];
|
|
201
|
+
reviews: CustomerDetailReview[];
|
|
202
|
+
testimonies: CustomerDetailTestimony[];
|
|
203
|
+
stats: CustomerDetailStats | null;
|
|
148
204
|
app: {
|
|
149
205
|
id: string;
|
|
150
206
|
name: string;
|
|
151
207
|
slug: string;
|
|
152
208
|
};
|
|
153
209
|
}
|
|
210
|
+
/**
|
|
211
|
+
* Customer order summary
|
|
212
|
+
*/
|
|
213
|
+
interface CustomerOrderSummary {
|
|
214
|
+
id: string;
|
|
215
|
+
ref: string | null;
|
|
216
|
+
total: number;
|
|
217
|
+
status: string | null;
|
|
218
|
+
createdAt: string;
|
|
219
|
+
seller: {
|
|
220
|
+
id: string;
|
|
221
|
+
fullname: string;
|
|
222
|
+
avatar: string | null;
|
|
223
|
+
} | null;
|
|
224
|
+
}
|
|
154
225
|
interface CustomerAddress {
|
|
155
226
|
id: string;
|
|
156
227
|
label: string | null;
|
|
@@ -615,6 +686,18 @@ interface GetNotificationLogsParams extends ListParams {
|
|
|
615
686
|
eventType?: NotificationEventType;
|
|
616
687
|
customerId?: string;
|
|
617
688
|
}
|
|
689
|
+
/**
|
|
690
|
+
* Notification data payload sent with push notifications for navigation
|
|
691
|
+
*/
|
|
692
|
+
interface NotificationDataPayload {
|
|
693
|
+
type: string;
|
|
694
|
+
appId: string;
|
|
695
|
+
appName?: string;
|
|
696
|
+
customerId?: string;
|
|
697
|
+
orderId?: string;
|
|
698
|
+
appointmentId?: string;
|
|
699
|
+
transactionId?: string;
|
|
700
|
+
}
|
|
618
701
|
|
|
619
702
|
declare class NotificationApi {
|
|
620
703
|
private readonly http;
|
|
@@ -1403,6 +1486,9 @@ interface ListProductsParams extends SearchableListParams {
|
|
|
1403
1486
|
tagIds?: string[];
|
|
1404
1487
|
status?: ProductStatus;
|
|
1405
1488
|
}
|
|
1489
|
+
interface BulkDeleteProductsParams extends AppScopedParams {
|
|
1490
|
+
ids: string[];
|
|
1491
|
+
}
|
|
1406
1492
|
|
|
1407
1493
|
/**
|
|
1408
1494
|
* Discount list item
|
|
@@ -2585,6 +2671,106 @@ interface PublicListTestimoniesParams {
|
|
|
2585
2671
|
productId?: string | null;
|
|
2586
2672
|
}
|
|
2587
2673
|
|
|
2674
|
+
type ReviewType = "STORE_PRODUCT" | "MULTI_SERVICE_AGENT" | "MULTI_SERVICE_APPOINTMENT";
|
|
2675
|
+
interface ReviewCustomer {
|
|
2676
|
+
id: string;
|
|
2677
|
+
fullname: string | null;
|
|
2678
|
+
photoUrl: string | null;
|
|
2679
|
+
}
|
|
2680
|
+
interface Review {
|
|
2681
|
+
id: string;
|
|
2682
|
+
appId: string;
|
|
2683
|
+
customerId: string | null;
|
|
2684
|
+
type: ReviewType;
|
|
2685
|
+
rating: number;
|
|
2686
|
+
title: string | null;
|
|
2687
|
+
comment: string | null;
|
|
2688
|
+
images: string[];
|
|
2689
|
+
isVerified: boolean;
|
|
2690
|
+
productId: string | null;
|
|
2691
|
+
variantId: string | null;
|
|
2692
|
+
sellerId: string | null;
|
|
2693
|
+
agentId: string | null;
|
|
2694
|
+
appointmentId: string | null;
|
|
2695
|
+
createdAt: string;
|
|
2696
|
+
updatedAt: string;
|
|
2697
|
+
customer?: ReviewCustomer | null;
|
|
2698
|
+
}
|
|
2699
|
+
interface PublicReview {
|
|
2700
|
+
id: string;
|
|
2701
|
+
type: ReviewType;
|
|
2702
|
+
rating: number;
|
|
2703
|
+
title: string | null;
|
|
2704
|
+
comment: string | null;
|
|
2705
|
+
images: string[];
|
|
2706
|
+
isVerified: boolean;
|
|
2707
|
+
productId: string | null;
|
|
2708
|
+
agentId: string | null;
|
|
2709
|
+
appointmentId: string | null;
|
|
2710
|
+
customer: ReviewCustomer | null;
|
|
2711
|
+
createdAt: string;
|
|
2712
|
+
}
|
|
2713
|
+
interface CustomerSubmitReviewParams {
|
|
2714
|
+
appId: string;
|
|
2715
|
+
appApiKey: string;
|
|
2716
|
+
customerApiKey: string;
|
|
2717
|
+
type: ReviewType;
|
|
2718
|
+
rating: number;
|
|
2719
|
+
title?: string | null;
|
|
2720
|
+
comment?: string | null;
|
|
2721
|
+
images?: string[];
|
|
2722
|
+
productId?: string | null;
|
|
2723
|
+
agentId?: string | null;
|
|
2724
|
+
appointmentId?: string | null;
|
|
2725
|
+
}
|
|
2726
|
+
interface ListReviewsParams extends ListParams {
|
|
2727
|
+
type?: ReviewType | null;
|
|
2728
|
+
productId?: string | null;
|
|
2729
|
+
sellerId?: string | null;
|
|
2730
|
+
agentId?: string | null;
|
|
2731
|
+
appointmentId?: string | null;
|
|
2732
|
+
isVerified?: boolean | null;
|
|
2733
|
+
rating?: number | null;
|
|
2734
|
+
search?: string | null;
|
|
2735
|
+
}
|
|
2736
|
+
interface PublicListReviewsParams {
|
|
2737
|
+
appId: string;
|
|
2738
|
+
appApiKey?: string;
|
|
2739
|
+
customerApiKey?: string;
|
|
2740
|
+
type?: ReviewType | null;
|
|
2741
|
+
productId?: string | null;
|
|
2742
|
+
agentId?: string | null;
|
|
2743
|
+
appointmentId?: string | null;
|
|
2744
|
+
limit?: number;
|
|
2745
|
+
page?: number;
|
|
2746
|
+
}
|
|
2747
|
+
interface GetReviewByIdParams extends AppScopedParams {
|
|
2748
|
+
id: string;
|
|
2749
|
+
}
|
|
2750
|
+
interface EditReviewParams extends AppScopedParams {
|
|
2751
|
+
id: string;
|
|
2752
|
+
title?: string | null;
|
|
2753
|
+
comment?: string | null;
|
|
2754
|
+
rating?: number | null;
|
|
2755
|
+
isVerified?: boolean | null;
|
|
2756
|
+
}
|
|
2757
|
+
interface DeleteReviewParams extends AppScopedParams {
|
|
2758
|
+
id: string;
|
|
2759
|
+
}
|
|
2760
|
+
interface VerifyReviewParams extends AppScopedParams {
|
|
2761
|
+
id: string;
|
|
2762
|
+
isVerified: boolean;
|
|
2763
|
+
}
|
|
2764
|
+
interface ReviewListResponse {
|
|
2765
|
+
reviews: Review[];
|
|
2766
|
+
pagination: {
|
|
2767
|
+
total: number;
|
|
2768
|
+
page: number;
|
|
2769
|
+
limit: number;
|
|
2770
|
+
totalPages: number;
|
|
2771
|
+
};
|
|
2772
|
+
}
|
|
2773
|
+
|
|
2588
2774
|
interface TestimonyListResponse {
|
|
2589
2775
|
testimonies: Testimony[];
|
|
2590
2776
|
pagination: PaginationMeta;
|
|
@@ -2628,6 +2814,41 @@ declare class TestimonyApi {
|
|
|
2628
2814
|
listPublic(params: PublicListTestimoniesParams): Promise<ApiSuccessResponse<PublicTestimony[]>>;
|
|
2629
2815
|
}
|
|
2630
2816
|
|
|
2817
|
+
declare class ReviewApi {
|
|
2818
|
+
private readonly http;
|
|
2819
|
+
constructor(http: HttpClient);
|
|
2820
|
+
/**
|
|
2821
|
+
* Customer: Submit a new review
|
|
2822
|
+
*/
|
|
2823
|
+
submit(params: CustomerSubmitReviewParams): Promise<ApiSuccessResponse<Review>>;
|
|
2824
|
+
/**
|
|
2825
|
+
* Admin: List reviews with filters and pagination
|
|
2826
|
+
*/
|
|
2827
|
+
list(params: ListReviewsParams): Promise<ApiSuccessResponse<ReviewListResponse>>;
|
|
2828
|
+
/**
|
|
2829
|
+
* Public: List verified reviews
|
|
2830
|
+
*/
|
|
2831
|
+
listPublic(params: PublicListReviewsParams): Promise<ApiSuccessResponse<PublicReview[]>>;
|
|
2832
|
+
/**
|
|
2833
|
+
* Get a single review by ID
|
|
2834
|
+
*/
|
|
2835
|
+
getById(params: GetReviewByIdParams): Promise<ApiSuccessResponse<Review>>;
|
|
2836
|
+
/**
|
|
2837
|
+
* Edit a review
|
|
2838
|
+
*/
|
|
2839
|
+
update(params: EditReviewParams): Promise<ApiSuccessResponse<Review>>;
|
|
2840
|
+
/**
|
|
2841
|
+
* Delete a review
|
|
2842
|
+
*/
|
|
2843
|
+
delete(params: DeleteReviewParams): Promise<ApiSuccessResponse<{
|
|
2844
|
+
deleted: boolean;
|
|
2845
|
+
}>>;
|
|
2846
|
+
/**
|
|
2847
|
+
* Admin: Verify/approve a review
|
|
2848
|
+
*/
|
|
2849
|
+
verify(params: VerifyReviewParams): Promise<ApiSuccessResponse<Review>>;
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2631
2852
|
declare class BadgeApi {
|
|
2632
2853
|
private readonly http;
|
|
2633
2854
|
constructor(http: HttpClient);
|
|
@@ -2721,6 +2942,9 @@ declare class ProductApi {
|
|
|
2721
2942
|
delete(params: DeleteProductParams): Promise<ApiSuccessResponse<{
|
|
2722
2943
|
deleted: boolean;
|
|
2723
2944
|
}>>;
|
|
2945
|
+
bulkDelete(params: BulkDeleteProductsParams): Promise<ApiSuccessResponse<{
|
|
2946
|
+
deleted: boolean;
|
|
2947
|
+
}>>;
|
|
2724
2948
|
}
|
|
2725
2949
|
|
|
2726
2950
|
declare class SellerApi {
|
|
@@ -3013,6 +3237,7 @@ declare class AppliteUI {
|
|
|
3013
3237
|
readonly webhook: WebhookApi;
|
|
3014
3238
|
readonly user: UserApi;
|
|
3015
3239
|
readonly testimony: TestimonyApi;
|
|
3240
|
+
readonly review: ReviewApi;
|
|
3016
3241
|
readonly store: StoreApi;
|
|
3017
3242
|
readonly multiService: MultiServiceApi;
|
|
3018
3243
|
readonly superAdmin: SuperAdminApi;
|
|
@@ -3022,4 +3247,4 @@ declare class AppliteUI {
|
|
|
3022
3247
|
constructor(config?: AppliteUIConfig);
|
|
3023
3248
|
}
|
|
3024
3249
|
|
|
3025
|
-
export { type AddCartItemParams, type AddKolaboAppToPartnerParams, type Address, AddressApi, type AddressDeleteParams, type AddressListParams, type AdvancedImageType, AgentApi, type AgentSummary, type ApiErrorResponse, type ApiKeyParams, type ApiResponse, type ApiSuccessResponse, type ApiSuccessResponseWithMeta, type AppDetail, type AppScopedParams, type AppSummary, AppliteUI, type AppliteUIConfig, AppointmentApi, type AppointmentStatus, BadgeApi, type BalanceParams, type CalculateCartTotalsParams, CartApi, type CartCustomerSummary, type CartItem, type CartItemVariant, type CartTotals, type CashInParams, type CashOutParams, CategoryApi, type CheckKolaboPartnerParams, type CleanupTransactionsParams, type CleanupTransactionsResult, CollectionApi, type CollectionType, CompanyApi, type CompanySummary, type ConfigureKolaboAppParams, type CreateAddressParams, type CreateAgentParams, type CreateAppParams, type CreateAppointmentParams, type CreateBadgeParams, type CreateCartParams, type CreateCategoryParams, type CreateCollectionParams, type CreateCompanyParams, type CreateDiscountParams, type CreateDuticotacOfferParams, type CreateFieldTemplateParams, type CreateKolaboCustomerParams, type CreateKolaboCustomerPartnershipParams, type CreateOptionParams, type CreateOrderParams, type CreateProductParams, type CreateSellerParams, type CreateServiceParams, type CreateShippingProfileParams, type CreateStatisticParams, type CreateTagParams, type CreateTaxParams, type CreateTestimonyParams, type CreateWelcomeItemParams, type CronBillingParams, type CronBillingResponse, type CronBillingResult, type CronNotificationParams, type CronNotificationResponse, type CronNotificationResult, type Currency, type Customer, type CustomerAddress, CustomerApi, type CustomerAuthParams, type CustomerBlockParams, type CustomerCheckParams, type CustomerDeleteParams, type CustomerDetail, type CustomerGetParams, type CustomerListFewItem, type CustomerListItem, type CustomerListParams, type CustomerSelfDeleteParams, type CustomerStoreReview, type CustomerSubmitTestimonyParams, type CustomerSummary, type CustomerTransaction, type CustomerUpdateParams, type DeleteAgentParams, type DeleteBadgeParams, type DeleteCategoryParams, type DeleteCollectionParams, type DeleteCompanyParams, type DeleteDiscountParams, type DeleteFieldTemplateParams, type DeleteFirebaseConfigParams, type DeleteKolaboPartnerParams, type DeleteNotificationTemplateParams, type DeleteOptionParams, type DeleteOrderParams, type DeleteProductParams, type DeleteSellerParams, type DeleteServiceParams, type DeleteShippingProfileParams, type DeleteTagParams, type DeleteTaxParams, type DeleteTestimonyParams, type DeleteWebhookParams, type DeleteWelcomeItemParams, DiscountApi, type DiscountAppliesTo, type DiscountMinRequirement, type DiscountType, type DuTicOTacOfferType, DuticotacApi, DuticotacBalanceApi, type DuticotacOffer, DuticotacOfferApi, DuticotacPaymentApi, type DuticotacTransaction, DuticotacTransactionApi, type DuticotacTransactionGetParams, type EditDuticotacOfferParams, type EditKolaboPartnerProfileParams, type EditTestimonyParams, type EntityIdParams, type FieldOption, type FieldOptionInput, FieldTemplateApi, type FieldType, type FileType, FinanceApi, type FirebaseConfig, type FulfillmentStatus, type GetAddressByIdParams, type GetAgentParams, type GetAppByIdParams, type GetAppBySlugParams, type GetAppointmentParams, type GetBadgeParams, type GetCartParams, type GetCategoryParams, type GetCollectionParams, type GetCompanyParams, type GetDiscountParams, type GetFirebaseConfigParams, type GetKolaboPartnerAppsParams, type GetKolaboPartnerTransactionParams, type GetNotificationLogsParams, type GetNotificationTemplatesParams, type GetOptionParams, type GetOrderParams, type GetPaymentMethodsParams, type GetProductParams, type GetSellerParams, type GetServiceParams, type GetShippingProfileParams, type GetStatisticParams, type GetTagParams, type GetTaxParams, type GetTestimonyByIdParams, type GetWebhookLogsParams, type GetWelcomeItemParams, HttpClient, type HttpClientConfig, InfoApi, type InventoryPolicy, type JoinAppParams, KolaboApi, type KolaboApp, KolaboAppApi, type KolaboAppStatus, type KolaboCustomer, KolaboCustomerApi, type KolaboPartner, KolaboPartnerApi, type KolaboPartnerShip, type KolaboPartnerTransactionApp, type KolaboPartnerTransactionCustomer, type KolaboPartnerTransactionDetail, type KolaboPartnerTransactionListItem, type KolaboPartnerTransactionType, type KolaboPartnerType, type KolaboPartnerWithdrawWebhookParams, type KolaboPartnerWithdrawWebhookPartner, type KolaboPartnerWithdrawWebhookTransaction, type KolaboPaymentMethod, type KolaboWithdrawStatus, type ListAgentsParams, type ListAppointmentsParams, type ListAppsParams, type ListBadgesParams, type ListCategoriesParams, type ListCollectionsParams, type ListCompaniesParams, type ListDiscountsParams, type ListFieldTemplatesParams, type ListKolaboPartnerTransactionsParams, type ListNotificationTokensParams, type ListOptionsParams, type ListOrdersParams, type ListParams, type ListProductsParams, type ListSellersParams, type ListServicesParams, type ListShippingProfilesParams, type ListTagsParams, type ListTaxesParams, type ListTestimoniesParams, type ListWelcomeItemsParams, MaintenanceApi, type MemberRole, type ModuleType, type MultiServiceAgentDetail, type MultiServiceAgentListItem, MultiServiceApi, type MultiServiceAppointmentDetail, type MultiServiceAppointmentListItem, type MultiServiceCompanyDetail, type MultiServiceCompanyListItem, type MultiServiceFieldOptionTemplate, type MultiServiceFieldTemplate, type MultiServiceServiceDetail, type MultiServiceServiceListItem, NotificationApi, type NotificationEventType, type NotificationLog, type NotificationLogsResponse, type NotificationPlatform, type NotificationTemplate, type NotificationToken, NotificationTokenApi, OptionApi, type OptionValueInput, type OrderAddress, OrderApi, type OrderCartItem, type OrderCustomerSummary, type OrderItemInput, type OrderItemVariant, type OrderSellerSummary, type OrderStatus, type PaginationMeta, type PaymentMethodSetParams, type PaymentStatus, type PlateformType, ProductApi, type ProductAttributeInput, type ProductDimension, type ProductImage, type ProductImageFull, type ProductStatus, type ProductVariantDetail, type ProductVariantInput, type ProductVariantListItem, type ProductVariantOptionValue, type PublicListTestimoniesParams, type PublicTestimony, type RemoveAllNotificationTokensParams, type RemoveAllTokensResponse, type RemoveCartItemParams, type RemoveNotificationTokenParams, type RemoveTokenResponse, type SearchableListParams, SellerApi, type SellerSummary, ServiceApi, type ServiceField, type ServiceFieldInput, type ServiceSummary, type ServiceSummaryWithFields, type SetFirebaseConfigParams, type SetNotificationTemplateParams, type SetNotificationTokenParams, type SetPinParams, type SetWebhookParams, type Sexe, ShippingApi, type ShippingRateInput, type ShippingRateType, type ShippingZoneInput, type SignUpKolaboPartnerParams, type Statistic, StatsApi, StoreApi, type StoreBadgeDetail, type StoreBadgeListItem, type StoreCart, type StoreCategoryDetail, type StoreCategoryListItem, type StoreCollectionDetail, type StoreCollectionListItem, type StoreDiscountDetail, type StoreDiscountListItem, type StoreOptionDetail, type StoreOptionListItem, type StoreOptionType, type StoreOptionValue, type StoreOrderDetail, type StoreOrderListItem, type StoreProductDetail, type StoreProductListItem, type StoreSellerDetail, type StoreSellerListItem, type StoreShippingProfileDetail, type StoreShippingProfileListItem, type StoreShippingRate, type StoreShippingZone, type StoreTagDetail, type StoreTagListItem, type StoreTaxDetail, type StoreTaxListItem, type SubscriptionStatus, SuperAdminApi, type SuperAdminApp, type SuperAdminAppListParams, type SuperAdminAppListResponse, SuperAdminAppsApi, SuperAdminAuthApi, SuperAdminFinanceApi, type SuperAdminInitParams, type SuperAdminMeParams, type SuperAdminModuleUpdateParams, SuperAdminModulesApi, type SuperAdminModulesListParams, SuperAdminNotificationApi, type SuperAdminNotificationSendParams, type SuperAdminNotificationSendResponse, type SuperAdminPlatformModule, type SuperAdminRole, type SuperAdminSigninParams, type SuperAdminStats, SuperAdminStatsApi, type SuperAdminStatsParams, type SuperAdminTransaction, type SuperAdminTransactionListParams, type SuperAdminTransactionListResponse, type SuperAdminUser, type SuperAdminWithdrawParams, type SuperAdminWithdrawResponse, TagApi, TaxApi, type Testimony, TestimonyApi, type TestimonyStatus, type ToggleModuleParams, type ToggleModuleResponse, type Transaction, type TransactionDetail, type TransactionGetParams, type TransactionListParams, type TransactionProvider, type TransactionStatus, type UpdateAddressParams, type UpdateAgentParams, type UpdateAppModulesParams, type UpdateAppParams, type UpdateAppointmentAgentParams, type UpdateAppointmentStatusParams, type UpdateBadgeParams, type UpdateCartItemParams, type UpdateCategoryParams, type UpdateCollectionParams, type UpdateCompanyParams, type UpdateDiscountParams, type UpdateFieldTemplateParams, type UpdateOptionParams, type UpdateOrderParams, type UpdateProductParams, type UpdateSellerParams, type UpdateServiceParams, type UpdateShippingProfileParams, type UpdateStatisticParams, type UpdateTagParams, type UpdateTaxParams, type UpdateTestimonyStatusParams, type UpdateWelcomeItemParams, type User, UserApi, type UserDeleteParams, type UserEditCredentialsParams, type UserGetParams, type UserSetNotificationParams, type UserSigninParams, type UserSignupParams, type UserUpdateParams, type UserVerifyPasswordParams, type Webhook, WebhookApi, type WebhookEventType, type WebhookLog, type WebhookLogsResponse, type WelcomeItem, WelcomeItemApi, type WithdrawKolaboPartnerParams, type WithdrawParams, type WithdrawResult };
|
|
3250
|
+
export { type AddCartItemParams, type AddKolaboAppToPartnerParams, type Address, AddressApi, type AddressDeleteParams, type AddressListParams, type AdvancedImageType, AgentApi, type AgentSummary, type ApiErrorResponse, type ApiKeyParams, type ApiResponse, type ApiSuccessResponse, type ApiSuccessResponseWithMeta, type AppDetail, type AppScopedParams, type AppSummary, AppliteUI, type AppliteUIConfig, AppointmentApi, type AppointmentStatus, BadgeApi, type BalanceParams, type BulkDeleteProductsParams, type CalculateCartTotalsParams, CartApi, type CartCustomerSummary, type CartItem, type CartItemVariant, type CartTotals, type CashInParams, type CashOutParams, CategoryApi, type CheckKolaboPartnerParams, type CleanupTransactionsParams, type CleanupTransactionsResult, CollectionApi, type CollectionType, CompanyApi, type CompanySummary, type ConfigureKolaboAppParams, type CreateAddressParams, type CreateAgentParams, type CreateAppParams, type CreateAppointmentParams, type CreateBadgeParams, type CreateCartParams, type CreateCategoryParams, type CreateCollectionParams, type CreateCompanyParams, type CreateDiscountParams, type CreateDuticotacOfferParams, type CreateFieldTemplateParams, type CreateKolaboCustomerParams, type CreateKolaboCustomerPartnershipParams, type CreateOptionParams, type CreateOrderParams, type CreateProductParams, type CreateSellerParams, type CreateServiceParams, type CreateShippingProfileParams, type CreateStatisticParams, type CreateTagParams, type CreateTaxParams, type CreateTestimonyParams, type CreateWelcomeItemParams, type CronBillingParams, type CronBillingResponse, type CronBillingResult, type CronNotificationParams, type CronNotificationResponse, type CronNotificationResult, type Currency, type Customer, type CustomerAddress, CustomerApi, type CustomerAuthParams, type CustomerBlockParams, type CustomerCheckParams, type CustomerDeleteParams, type CustomerDetail, type CustomerDetailAppointment, type CustomerDetailReview, type CustomerDetailStats, type CustomerDetailTestimony, type CustomerGetParams, type CustomerListFewItem, type CustomerListItem, type CustomerListParams, type CustomerOrderSummary, type CustomerSelfDeleteParams, type CustomerStoreReview, type CustomerSubmitReviewParams, type CustomerSubmitTestimonyParams, type CustomerSummary, type CustomerTransaction, type CustomerUpdateParams, type DeleteAgentParams, type DeleteBadgeParams, type DeleteCategoryParams, type DeleteCollectionParams, type DeleteCompanyParams, type DeleteDiscountParams, type DeleteFieldTemplateParams, type DeleteFirebaseConfigParams, type DeleteKolaboPartnerParams, type DeleteNotificationTemplateParams, type DeleteOptionParams, type DeleteOrderParams, type DeleteProductParams, type DeleteReviewParams, type DeleteSellerParams, type DeleteServiceParams, type DeleteShippingProfileParams, type DeleteTagParams, type DeleteTaxParams, type DeleteTestimonyParams, type DeleteWebhookParams, type DeleteWelcomeItemParams, DiscountApi, type DiscountAppliesTo, type DiscountMinRequirement, type DiscountType, type DuTicOTacOfferType, DuticotacApi, DuticotacBalanceApi, type DuticotacOffer, DuticotacOfferApi, DuticotacPaymentApi, type DuticotacTransaction, DuticotacTransactionApi, type DuticotacTransactionGetParams, type EditDuticotacOfferParams, type EditKolaboPartnerProfileParams, type EditReviewParams, type EditTestimonyParams, type EntityIdParams, type FieldOption, type FieldOptionInput, FieldTemplateApi, type FieldType, type FileType, FinanceApi, type FirebaseConfig, type FulfillmentStatus, type GetAddressByIdParams, type GetAgentParams, type GetAppByIdParams, type GetAppBySlugParams, type GetAppointmentParams, type GetBadgeParams, type GetCartParams, type GetCategoryParams, type GetCollectionParams, type GetCompanyParams, type GetDiscountParams, type GetFirebaseConfigParams, type GetKolaboPartnerAppsParams, type GetKolaboPartnerTransactionParams, type GetNotificationLogsParams, type GetNotificationTemplatesParams, type GetOptionParams, type GetOrderParams, type GetPaymentMethodsParams, type GetProductParams, type GetReviewByIdParams, type GetSellerParams, type GetServiceParams, type GetShippingProfileParams, type GetStatisticParams, type GetTagParams, type GetTaxParams, type GetTestimonyByIdParams, type GetWebhookLogsParams, type GetWelcomeItemParams, HttpClient, type HttpClientConfig, InfoApi, type InventoryPolicy, type JoinAppParams, KolaboApi, type KolaboApp, KolaboAppApi, type KolaboAppStatus, type KolaboCustomer, KolaboCustomerApi, type KolaboPartner, KolaboPartnerApi, type KolaboPartnerShip, type KolaboPartnerTransactionApp, type KolaboPartnerTransactionCustomer, type KolaboPartnerTransactionDetail, type KolaboPartnerTransactionListItem, type KolaboPartnerTransactionType, type KolaboPartnerType, type KolaboPartnerWithdrawWebhookParams, type KolaboPartnerWithdrawWebhookPartner, type KolaboPartnerWithdrawWebhookTransaction, type KolaboPaymentMethod, type KolaboWithdrawStatus, type ListAgentsParams, type ListAppointmentsParams, type ListAppsParams, type ListBadgesParams, type ListCategoriesParams, type ListCollectionsParams, type ListCompaniesParams, type ListDiscountsParams, type ListFieldTemplatesParams, type ListKolaboPartnerTransactionsParams, type ListNotificationTokensParams, type ListOptionsParams, type ListOrdersParams, type ListParams, type ListProductsParams, type ListReviewsParams, type ListSellersParams, type ListServicesParams, type ListShippingProfilesParams, type ListTagsParams, type ListTaxesParams, type ListTestimoniesParams, type ListWelcomeItemsParams, MaintenanceApi, type MemberRole, type ModuleType, type MultiServiceAgentDetail, type MultiServiceAgentListItem, MultiServiceApi, type MultiServiceAppointmentDetail, type MultiServiceAppointmentListItem, type MultiServiceCompanyDetail, type MultiServiceCompanyListItem, type MultiServiceFieldOptionTemplate, type MultiServiceFieldTemplate, type MultiServiceServiceDetail, type MultiServiceServiceListItem, NotificationApi, type NotificationDataPayload, type NotificationEventType, type NotificationLog, type NotificationLogsResponse, type NotificationPlatform, type NotificationTemplate, type NotificationToken, NotificationTokenApi, OptionApi, type OptionValueInput, type OrderAddress, OrderApi, type OrderCartItem, type OrderCustomerSummary, type OrderItemInput, type OrderItemVariant, type OrderSellerSummary, type OrderStatus, type PaginationMeta, type PaymentMethodSetParams, type PaymentStatus, type PlateformType, ProductApi, type ProductAttributeInput, type ProductDimension, type ProductImage, type ProductImageFull, type ProductStatus, type ProductVariantDetail, type ProductVariantInput, type ProductVariantListItem, type ProductVariantOptionValue, type PublicListReviewsParams, type PublicListTestimoniesParams, type PublicReview, type PublicTestimony, type RemoveAllNotificationTokensParams, type RemoveAllTokensResponse, type RemoveCartItemParams, type RemoveNotificationTokenParams, type RemoveTokenResponse, type Review, ReviewApi, type ReviewCustomer, type ReviewListResponse, type ReviewType, type SearchableListParams, SellerApi, type SellerSummary, ServiceApi, type ServiceField, type ServiceFieldInput, type ServiceSummary, type ServiceSummaryWithFields, type SetFirebaseConfigParams, type SetNotificationTemplateParams, type SetNotificationTokenParams, type SetPinParams, type SetWebhookParams, type Sexe, ShippingApi, type ShippingRateInput, type ShippingRateType, type ShippingZoneInput, type SignUpKolaboPartnerParams, type Statistic, StatsApi, StoreApi, type StoreBadgeDetail, type StoreBadgeListItem, type StoreCart, type StoreCategoryDetail, type StoreCategoryListItem, type StoreCollectionDetail, type StoreCollectionListItem, type StoreDiscountDetail, type StoreDiscountListItem, type StoreOptionDetail, type StoreOptionListItem, type StoreOptionType, type StoreOptionValue, type StoreOrderDetail, type StoreOrderListItem, type StoreProductDetail, type StoreProductListItem, type StoreSellerDetail, type StoreSellerListItem, type StoreShippingProfileDetail, type StoreShippingProfileListItem, type StoreShippingRate, type StoreShippingZone, type StoreTagDetail, type StoreTagListItem, type StoreTaxDetail, type StoreTaxListItem, type SubscriptionStatus, SuperAdminApi, type SuperAdminApp, type SuperAdminAppListParams, type SuperAdminAppListResponse, SuperAdminAppsApi, SuperAdminAuthApi, SuperAdminFinanceApi, type SuperAdminInitParams, type SuperAdminMeParams, type SuperAdminModuleUpdateParams, SuperAdminModulesApi, type SuperAdminModulesListParams, SuperAdminNotificationApi, type SuperAdminNotificationSendParams, type SuperAdminNotificationSendResponse, type SuperAdminPlatformModule, type SuperAdminRole, type SuperAdminSigninParams, type SuperAdminStats, SuperAdminStatsApi, type SuperAdminStatsParams, type SuperAdminTransaction, type SuperAdminTransactionListParams, type SuperAdminTransactionListResponse, type SuperAdminUser, type SuperAdminWithdrawParams, type SuperAdminWithdrawResponse, TagApi, TaxApi, type Testimony, TestimonyApi, type TestimonyStatus, type ToggleModuleParams, type ToggleModuleResponse, type Transaction, type TransactionDetail, type TransactionGetParams, type TransactionListParams, type TransactionProvider, type TransactionStatus, type UpdateAddressParams, type UpdateAgentParams, type UpdateAppModulesParams, type UpdateAppParams, type UpdateAppointmentAgentParams, type UpdateAppointmentStatusParams, type UpdateBadgeParams, type UpdateCartItemParams, type UpdateCategoryParams, type UpdateCollectionParams, type UpdateCompanyParams, type UpdateDiscountParams, type UpdateFieldTemplateParams, type UpdateOptionParams, type UpdateOrderParams, type UpdateProductParams, type UpdateSellerParams, type UpdateServiceParams, type UpdateShippingProfileParams, type UpdateStatisticParams, type UpdateTagParams, type UpdateTaxParams, type UpdateTestimonyStatusParams, type UpdateWelcomeItemParams, type User, UserApi, type UserDeleteParams, type UserEditCredentialsParams, type UserGetParams, type UserSetNotificationParams, type UserSigninParams, type UserSignupParams, type UserUpdateParams, type UserVerifyPasswordParams, type VerifyReviewParams, type Webhook, WebhookApi, type WebhookEventType, type WebhookLog, type WebhookLogsResponse, type WelcomeItem, WelcomeItemApi, type WithdrawKolaboPartnerParams, type WithdrawParams, type WithdrawResult };
|