@applite/js-sdk 0.0.12 → 0.0.13
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/README.md +402 -154
- package/dist/index.d.mts +792 -1
- package/dist/index.d.ts +792 -1
- package/dist/index.js +570 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +551 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
|
@@ -41,6 +41,11 @@ declare class HttpClient {
|
|
|
41
41
|
private readonly fetchImpl;
|
|
42
42
|
constructor(config?: HttpClientConfig);
|
|
43
43
|
post<T>(path: string, body: Record<string, unknown> | object): Promise<ApiSuccessResponse<T>>;
|
|
44
|
+
get<T>(path: string, options?: {
|
|
45
|
+
query?: Record<string, unknown>;
|
|
46
|
+
headers?: HeadersInit;
|
|
47
|
+
}): Promise<ApiSuccessResponse<T>>;
|
|
48
|
+
private buildQueryString;
|
|
44
49
|
}
|
|
45
50
|
|
|
46
51
|
type Sexe = "M" | "F";
|
|
@@ -105,6 +110,7 @@ interface CustomerListItem {
|
|
|
105
110
|
photoUrl: string | null;
|
|
106
111
|
createdAt: string;
|
|
107
112
|
plateforms: PlateformType[];
|
|
113
|
+
isBlocked: boolean;
|
|
108
114
|
}
|
|
109
115
|
/**
|
|
110
116
|
* Customer minimal info in list/few response
|
|
@@ -126,6 +132,8 @@ interface Customer {
|
|
|
126
132
|
photoUrl: string | null;
|
|
127
133
|
plateforms: PlateformType[];
|
|
128
134
|
createdAt: string;
|
|
135
|
+
isBlocked: boolean;
|
|
136
|
+
isDeleted: boolean;
|
|
129
137
|
}
|
|
130
138
|
/**
|
|
131
139
|
* Customer detail with relations
|
|
@@ -224,6 +232,7 @@ declare class CustomerApi {
|
|
|
224
232
|
}>>;
|
|
225
233
|
}
|
|
226
234
|
|
|
235
|
+
type ModuleType = "MONSMSPRO" | "DUTICOTAC";
|
|
227
236
|
/**
|
|
228
237
|
* App summary in list response
|
|
229
238
|
*/
|
|
@@ -259,6 +268,21 @@ interface ListAppsParams extends ApiKeyParams {
|
|
|
259
268
|
}
|
|
260
269
|
interface GetAppByIdParams extends AppScopedParams {
|
|
261
270
|
}
|
|
271
|
+
interface UpdateAppParams extends AppScopedParams {
|
|
272
|
+
modules?: PlateformType[] | null;
|
|
273
|
+
name?: string | null;
|
|
274
|
+
description?: string | null;
|
|
275
|
+
}
|
|
276
|
+
interface UpdateAppModulesParams extends AppScopedParams {
|
|
277
|
+
modules: Record<string, boolean>;
|
|
278
|
+
}
|
|
279
|
+
interface ToggleModuleParams extends AppScopedParams {
|
|
280
|
+
moduleKey: PlateformType;
|
|
281
|
+
enabled: boolean;
|
|
282
|
+
}
|
|
283
|
+
interface ToggleModuleResponse {
|
|
284
|
+
enabled: boolean;
|
|
285
|
+
}
|
|
262
286
|
|
|
263
287
|
declare class InfoApi {
|
|
264
288
|
private readonly http;
|
|
@@ -267,6 +291,9 @@ declare class InfoApi {
|
|
|
267
291
|
create(params: CreateAppParams): Promise<ApiSuccessResponse<AppDetail>>;
|
|
268
292
|
getBySlug(params: GetAppBySlugParams): Promise<ApiSuccessResponse<AppDetail>>;
|
|
269
293
|
getById(params: GetAppByIdParams): Promise<ApiSuccessResponse<AppDetail>>;
|
|
294
|
+
update(params: UpdateAppParams): Promise<ApiSuccessResponse<AppDetail>>;
|
|
295
|
+
updateModules(params: UpdateAppModulesParams): Promise<ApiSuccessResponse<AppDetail>>;
|
|
296
|
+
toggleModule(params: ToggleModuleParams): Promise<ApiSuccessResponse<ToggleModuleResponse>>;
|
|
270
297
|
}
|
|
271
298
|
|
|
272
299
|
interface Statistic {
|
|
@@ -466,6 +493,9 @@ interface UpdateAddressParams extends AppScopedParams {
|
|
|
466
493
|
interface AddressDeleteParams extends AppScopedParams {
|
|
467
494
|
id: string;
|
|
468
495
|
}
|
|
496
|
+
interface GetAddressByIdParams extends AppScopedParams {
|
|
497
|
+
id: string;
|
|
498
|
+
}
|
|
469
499
|
|
|
470
500
|
declare class AddressApi {
|
|
471
501
|
private readonly http;
|
|
@@ -476,6 +506,7 @@ declare class AddressApi {
|
|
|
476
506
|
delete(params: AddressDeleteParams): Promise<ApiSuccessResponse<{
|
|
477
507
|
deleted: boolean;
|
|
478
508
|
}>>;
|
|
509
|
+
getById(params: GetAddressByIdParams): Promise<ApiSuccessResponse<Address>>;
|
|
479
510
|
}
|
|
480
511
|
|
|
481
512
|
type NotificationPlatform = "IOS" | "ANDROID" | "WEB";
|
|
@@ -523,6 +554,212 @@ declare class NotificationTokenApi {
|
|
|
523
554
|
list(params: ListNotificationTokensParams): Promise<ApiSuccessResponse<NotificationToken[]>>;
|
|
524
555
|
}
|
|
525
556
|
|
|
557
|
+
type NotificationEventType = "PAYMENT_RECEIVED" | "PAYMENT_CONFIRMED" | "PAYMENT_FAILED" | "ORDER_RECEIVED" | "ORDER_CONFIRMED" | "ORDER_SHIPPED" | "ORDER_CANCELLED" | "APPOINTMENT_RECEIVED" | "APPOINTMENT_CONFIRMED" | "APPOINTMENT_COMPLETED" | "APPOINTMENT_CANCELLED";
|
|
558
|
+
interface FirebaseConfig {
|
|
559
|
+
id: string;
|
|
560
|
+
appId?: string | null;
|
|
561
|
+
serviceAccountUrl?: string | null;
|
|
562
|
+
serviceAccountPath?: string | null;
|
|
563
|
+
projectId?: string | null;
|
|
564
|
+
isActive: boolean;
|
|
565
|
+
createdAt?: string | null;
|
|
566
|
+
updatedAt?: string | null;
|
|
567
|
+
}
|
|
568
|
+
interface NotificationTemplate {
|
|
569
|
+
id: string;
|
|
570
|
+
appId?: string | null;
|
|
571
|
+
eventType: NotificationEventType;
|
|
572
|
+
title: string;
|
|
573
|
+
body: string;
|
|
574
|
+
imageUrl?: string | null;
|
|
575
|
+
data?: Record<string, unknown> | null;
|
|
576
|
+
isActive: boolean;
|
|
577
|
+
createdAt?: string | null;
|
|
578
|
+
updatedAt?: string | null;
|
|
579
|
+
}
|
|
580
|
+
interface NotificationLog {
|
|
581
|
+
id: string;
|
|
582
|
+
customerId: string;
|
|
583
|
+
eventType: NotificationEventType;
|
|
584
|
+
title: string;
|
|
585
|
+
body: string;
|
|
586
|
+
payload: Record<string, unknown>;
|
|
587
|
+
tokenCount: number;
|
|
588
|
+
successCount: number;
|
|
589
|
+
failureCount: number;
|
|
590
|
+
status: string;
|
|
591
|
+
errorMessage?: string | null;
|
|
592
|
+
fcmResponse?: Record<string, unknown> | null;
|
|
593
|
+
duration?: number | null;
|
|
594
|
+
createdAt: string;
|
|
595
|
+
}
|
|
596
|
+
interface NotificationLogsResponse {
|
|
597
|
+
logs: NotificationLog[];
|
|
598
|
+
total: number;
|
|
599
|
+
limit: number;
|
|
600
|
+
offset: number;
|
|
601
|
+
hasMore: boolean;
|
|
602
|
+
}
|
|
603
|
+
interface GetFirebaseConfigParams extends AppScopedParams {
|
|
604
|
+
}
|
|
605
|
+
interface SetFirebaseConfigParams extends AppScopedParams {
|
|
606
|
+
serviceAccountUrl: string;
|
|
607
|
+
serviceAccountPath: string;
|
|
608
|
+
projectId?: string | null;
|
|
609
|
+
isActive?: boolean;
|
|
610
|
+
}
|
|
611
|
+
interface DeleteFirebaseConfigParams extends AppScopedParams {
|
|
612
|
+
}
|
|
613
|
+
interface GetNotificationTemplatesParams extends AppScopedParams {
|
|
614
|
+
}
|
|
615
|
+
interface SetNotificationTemplateParams extends AppScopedParams {
|
|
616
|
+
eventType: NotificationEventType;
|
|
617
|
+
title: string;
|
|
618
|
+
body: string;
|
|
619
|
+
imageUrl?: string | null;
|
|
620
|
+
data?: Record<string, unknown> | null;
|
|
621
|
+
isActive?: boolean;
|
|
622
|
+
}
|
|
623
|
+
interface DeleteNotificationTemplateParams extends AppScopedParams {
|
|
624
|
+
eventType: NotificationEventType;
|
|
625
|
+
}
|
|
626
|
+
interface GetNotificationLogsParams extends ListParams {
|
|
627
|
+
eventType?: NotificationEventType;
|
|
628
|
+
customerId?: string;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
declare class NotificationApi {
|
|
632
|
+
private readonly http;
|
|
633
|
+
constructor(http: HttpClient);
|
|
634
|
+
getFirebaseConfig(params: GetFirebaseConfigParams): Promise<ApiSuccessResponse<FirebaseConfig | null>>;
|
|
635
|
+
setFirebaseConfig(params: SetFirebaseConfigParams): Promise<ApiSuccessResponse<FirebaseConfig>>;
|
|
636
|
+
deleteFirebaseConfig(params: DeleteFirebaseConfigParams): Promise<ApiSuccessResponse<unknown>>;
|
|
637
|
+
getTemplates(params: GetNotificationTemplatesParams): Promise<ApiSuccessResponse<NotificationTemplate[]>>;
|
|
638
|
+
setTemplate(params: SetNotificationTemplateParams): Promise<ApiSuccessResponse<NotificationTemplate>>;
|
|
639
|
+
deleteTemplate(params: DeleteNotificationTemplateParams): Promise<ApiSuccessResponse<unknown>>;
|
|
640
|
+
getLogs(params: GetNotificationLogsParams): Promise<ApiSuccessResponse<NotificationLogsResponse>>;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
type WebhookEventType = "PAYMENT_RECEIVED" | "PAYMENT_CONFIRMED" | "PAYMENT_FAILED" | "ORDER_RECEIVED" | "ORDER_CONFIRMED" | "ORDER_SHIPPED" | "ORDER_CANCELLED" | "ORDER_REFUNDED" | "APPOINTMENT_RECEIVED" | "APPOINTMENT_CONFIRMED" | "APPOINTMENT_COMPLETED" | "APPOINTMENT_CANCELLED" | "WITHDRAW_REQUESTED" | "WITHDRAW_COMPLETED" | "WITHDRAW_FAILED";
|
|
644
|
+
interface Webhook {
|
|
645
|
+
id: string;
|
|
646
|
+
appId?: string | null;
|
|
647
|
+
eventType: WebhookEventType;
|
|
648
|
+
url: string;
|
|
649
|
+
isActive: boolean;
|
|
650
|
+
createdAt?: string | null;
|
|
651
|
+
updatedAt?: string | null;
|
|
652
|
+
}
|
|
653
|
+
interface WebhookLog {
|
|
654
|
+
id: string;
|
|
655
|
+
eventType: WebhookEventType;
|
|
656
|
+
payload: Record<string, unknown>;
|
|
657
|
+
response?: Record<string, unknown> | null;
|
|
658
|
+
statusCode?: number | null;
|
|
659
|
+
status: string;
|
|
660
|
+
errorMessage?: string | null;
|
|
661
|
+
duration?: number | null;
|
|
662
|
+
createdAt: string;
|
|
663
|
+
webhook?: Record<string, unknown> | null;
|
|
664
|
+
}
|
|
665
|
+
interface WebhookLogsResponse {
|
|
666
|
+
logs: WebhookLog[];
|
|
667
|
+
total: number;
|
|
668
|
+
limit: number;
|
|
669
|
+
offset: number;
|
|
670
|
+
hasMore: boolean;
|
|
671
|
+
}
|
|
672
|
+
interface SetWebhookParams extends AppScopedParams {
|
|
673
|
+
eventType: WebhookEventType;
|
|
674
|
+
url: string;
|
|
675
|
+
isActive?: boolean;
|
|
676
|
+
}
|
|
677
|
+
interface DeleteWebhookParams extends AppScopedParams {
|
|
678
|
+
eventType: WebhookEventType;
|
|
679
|
+
}
|
|
680
|
+
interface GetWebhookLogsParams extends ListParams {
|
|
681
|
+
eventType?: WebhookEventType;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
declare class WebhookApi {
|
|
685
|
+
private readonly http;
|
|
686
|
+
constructor(http: HttpClient);
|
|
687
|
+
set(params: SetWebhookParams): Promise<ApiSuccessResponse<Webhook>>;
|
|
688
|
+
list(params: AppScopedParams): Promise<ApiSuccessResponse<Webhook[]>>;
|
|
689
|
+
delete(params: DeleteWebhookParams): Promise<ApiSuccessResponse<unknown>>;
|
|
690
|
+
getLogs(params: GetWebhookLogsParams): Promise<ApiSuccessResponse<WebhookLogsResponse>>;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
interface User {
|
|
694
|
+
id: string;
|
|
695
|
+
nomDeFamille: string;
|
|
696
|
+
prenom: string;
|
|
697
|
+
telephone: string;
|
|
698
|
+
email: string;
|
|
699
|
+
avatar?: string | null;
|
|
700
|
+
sexe?: Sexe | null;
|
|
701
|
+
dateOfBirth?: string | null;
|
|
702
|
+
isDeleted?: boolean | null;
|
|
703
|
+
bloque?: boolean | null;
|
|
704
|
+
createdAt: string;
|
|
705
|
+
updatedAt: string;
|
|
706
|
+
apiKey: string;
|
|
707
|
+
}
|
|
708
|
+
interface UserSignupParams {
|
|
709
|
+
nomDeFamille: string;
|
|
710
|
+
prenom: string;
|
|
711
|
+
email: string;
|
|
712
|
+
telephone: string;
|
|
713
|
+
password: string;
|
|
714
|
+
confirm: string;
|
|
715
|
+
}
|
|
716
|
+
interface UserSigninParams {
|
|
717
|
+
email: string;
|
|
718
|
+
password: string;
|
|
719
|
+
}
|
|
720
|
+
interface UserGetParams extends ApiKeyParams {
|
|
721
|
+
id: string;
|
|
722
|
+
}
|
|
723
|
+
interface UserUpdateParams extends ApiKeyParams {
|
|
724
|
+
id: string;
|
|
725
|
+
nomDeFamille: string;
|
|
726
|
+
prenom: string;
|
|
727
|
+
telephone: string;
|
|
728
|
+
avatar?: string | null;
|
|
729
|
+
avatarId?: string | null;
|
|
730
|
+
sexe?: Sexe | null;
|
|
731
|
+
dateOfBirth?: string | null;
|
|
732
|
+
}
|
|
733
|
+
interface UserDeleteParams extends ApiKeyParams {
|
|
734
|
+
id: string;
|
|
735
|
+
}
|
|
736
|
+
interface UserEditCredentialsParams extends ApiKeyParams {
|
|
737
|
+
id: string;
|
|
738
|
+
email: string;
|
|
739
|
+
password: string;
|
|
740
|
+
}
|
|
741
|
+
interface UserVerifyPasswordParams extends AppScopedParams {
|
|
742
|
+
id: string;
|
|
743
|
+
password: string;
|
|
744
|
+
}
|
|
745
|
+
interface UserSetNotificationParams extends ApiKeyParams {
|
|
746
|
+
id: string;
|
|
747
|
+
token: string;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
declare class UserApi {
|
|
751
|
+
private readonly http;
|
|
752
|
+
constructor(http: HttpClient);
|
|
753
|
+
signup(params: UserSignupParams): Promise<ApiSuccessResponse<User>>;
|
|
754
|
+
signin(params: UserSigninParams): Promise<ApiSuccessResponse<User>>;
|
|
755
|
+
get(params: UserGetParams): Promise<ApiSuccessResponse<User | null>>;
|
|
756
|
+
update(params: UserUpdateParams): Promise<ApiSuccessResponse<User>>;
|
|
757
|
+
delete(params: UserDeleteParams): Promise<ApiSuccessResponse<unknown>>;
|
|
758
|
+
editCredentials(params: UserEditCredentialsParams): Promise<ApiSuccessResponse<User>>;
|
|
759
|
+
verifyPassword(params: UserVerifyPasswordParams): Promise<ApiSuccessResponse<boolean>>;
|
|
760
|
+
setNotification(params: UserSetNotificationParams): Promise<ApiSuccessResponse<User>>;
|
|
761
|
+
}
|
|
762
|
+
|
|
526
763
|
/**
|
|
527
764
|
* Seller summary used in nested relations (badge, category, product, etc.)
|
|
528
765
|
*/
|
|
@@ -1885,6 +2122,8 @@ declare class AppointmentApi {
|
|
|
1885
2122
|
create(params: CreateAppointmentParams): Promise<ApiSuccessResponse<MultiServiceAppointmentDetail>>;
|
|
1886
2123
|
list(params: ListAppointmentsParams): Promise<ApiSuccessResponse<MultiServiceAppointmentListItem[]>>;
|
|
1887
2124
|
updateStatus(params: UpdateAppointmentStatusParams): Promise<ApiSuccessResponse<MultiServiceAppointmentDetail>>;
|
|
2125
|
+
get(params: GetAppointmentParams): Promise<ApiSuccessResponse<MultiServiceAppointmentDetail>>;
|
|
2126
|
+
assignAgent(params: UpdateAppointmentAgentParams): Promise<ApiSuccessResponse<MultiServiceAppointmentDetail>>;
|
|
1888
2127
|
}
|
|
1889
2128
|
|
|
1890
2129
|
declare class CompanyApi {
|
|
@@ -1996,6 +2235,551 @@ declare class MultiServiceApi {
|
|
|
1996
2235
|
constructor(http: HttpClient);
|
|
1997
2236
|
}
|
|
1998
2237
|
|
|
2238
|
+
type SuperAdminRole = "ROOT" | "ADMIN" | "VIEWER";
|
|
2239
|
+
interface SuperAdminUser {
|
|
2240
|
+
id: string;
|
|
2241
|
+
email: string;
|
|
2242
|
+
password: string;
|
|
2243
|
+
name?: string | null;
|
|
2244
|
+
apiKey: string;
|
|
2245
|
+
role: SuperAdminRole;
|
|
2246
|
+
createdAt: string;
|
|
2247
|
+
updatedAt: string;
|
|
2248
|
+
}
|
|
2249
|
+
interface SuperAdminInitParams {
|
|
2250
|
+
email: string;
|
|
2251
|
+
password: string;
|
|
2252
|
+
name?: string | null;
|
|
2253
|
+
}
|
|
2254
|
+
interface SuperAdminSigninParams {
|
|
2255
|
+
email: string;
|
|
2256
|
+
password: string;
|
|
2257
|
+
}
|
|
2258
|
+
interface SuperAdminMeParams extends ApiKeyParams {
|
|
2259
|
+
}
|
|
2260
|
+
interface SuperAdminAppListParams extends ApiKeyParams {
|
|
2261
|
+
page?: number;
|
|
2262
|
+
limit?: number;
|
|
2263
|
+
search?: string;
|
|
2264
|
+
}
|
|
2265
|
+
interface SuperAdminAppListResponse {
|
|
2266
|
+
apps: SuperAdminApp[];
|
|
2267
|
+
total: number;
|
|
2268
|
+
page: number;
|
|
2269
|
+
totalPages: number;
|
|
2270
|
+
}
|
|
2271
|
+
interface SuperAdminApp {
|
|
2272
|
+
id: string;
|
|
2273
|
+
name: string;
|
|
2274
|
+
slug: string;
|
|
2275
|
+
description?: string | null;
|
|
2276
|
+
logo?: string | null;
|
|
2277
|
+
apiKey: string;
|
|
2278
|
+
createdAt: string;
|
|
2279
|
+
updatedAt: string;
|
|
2280
|
+
ownerId: string;
|
|
2281
|
+
owner: User;
|
|
2282
|
+
modules?: PlateformType[] | null;
|
|
2283
|
+
totalCustomers?: number | null;
|
|
2284
|
+
totalSales?: number | null;
|
|
2285
|
+
totalOrders?: number | null;
|
|
2286
|
+
balance?: number | null;
|
|
2287
|
+
subscriptionStatus?: SubscriptionStatus | null;
|
|
2288
|
+
nextBillingDate?: string | null;
|
|
2289
|
+
failedBillingAttempts?: number | null;
|
|
2290
|
+
}
|
|
2291
|
+
interface SuperAdminModulesListParams extends ApiKeyParams {
|
|
2292
|
+
}
|
|
2293
|
+
interface SuperAdminModuleUpdateParams extends ApiKeyParams {
|
|
2294
|
+
moduleId: string;
|
|
2295
|
+
price?: number | null;
|
|
2296
|
+
isActive?: boolean | null;
|
|
2297
|
+
}
|
|
2298
|
+
interface SuperAdminPlatformModule {
|
|
2299
|
+
id: string;
|
|
2300
|
+
key: PlateformType;
|
|
2301
|
+
name: string;
|
|
2302
|
+
description?: string | null;
|
|
2303
|
+
price: number;
|
|
2304
|
+
isActive: boolean;
|
|
2305
|
+
updatedAt: string;
|
|
2306
|
+
}
|
|
2307
|
+
interface SuperAdminStatsParams extends ApiKeyParams {
|
|
2308
|
+
}
|
|
2309
|
+
interface SuperAdminStats {
|
|
2310
|
+
totalApps: number;
|
|
2311
|
+
totalUsers: number;
|
|
2312
|
+
totalRevenue: number;
|
|
2313
|
+
graphData: unknown[];
|
|
2314
|
+
}
|
|
2315
|
+
interface SuperAdminTransactionListParams extends ApiKeyParams {
|
|
2316
|
+
page?: number;
|
|
2317
|
+
limit?: number;
|
|
2318
|
+
}
|
|
2319
|
+
interface SuperAdminTransactionListResponse {
|
|
2320
|
+
transactions: SuperAdminTransaction[];
|
|
2321
|
+
total: number;
|
|
2322
|
+
page: number;
|
|
2323
|
+
totalPages: number;
|
|
2324
|
+
}
|
|
2325
|
+
interface SuperAdminTransaction {
|
|
2326
|
+
id: string;
|
|
2327
|
+
ref: string;
|
|
2328
|
+
productId?: string | null;
|
|
2329
|
+
offerId?: string | null;
|
|
2330
|
+
idFromClient?: string | null;
|
|
2331
|
+
token: string;
|
|
2332
|
+
provider: TransactionProvider;
|
|
2333
|
+
amount: number;
|
|
2334
|
+
fees: number;
|
|
2335
|
+
plateform: PlateformType;
|
|
2336
|
+
status: TransactionStatus;
|
|
2337
|
+
appId: string;
|
|
2338
|
+
customerId: string;
|
|
2339
|
+
currency: Currency;
|
|
2340
|
+
paymentUrl?: string | null;
|
|
2341
|
+
createdAt: string;
|
|
2342
|
+
updatedAt: string;
|
|
2343
|
+
app?: AppSummary | null;
|
|
2344
|
+
}
|
|
2345
|
+
interface SuperAdminWithdrawParams extends ApiKeyParams {
|
|
2346
|
+
phone: string;
|
|
2347
|
+
amount: number;
|
|
2348
|
+
paymentMethod: TransactionProvider;
|
|
2349
|
+
password: string;
|
|
2350
|
+
}
|
|
2351
|
+
interface SuperAdminWithdrawResponse {
|
|
2352
|
+
amount: number;
|
|
2353
|
+
balance: number;
|
|
2354
|
+
}
|
|
2355
|
+
interface SuperAdminNotificationSendParams extends ApiKeyParams {
|
|
2356
|
+
title: string;
|
|
2357
|
+
body: string;
|
|
2358
|
+
targetUserIds?: string[] | null;
|
|
2359
|
+
scheduledFor?: string | null;
|
|
2360
|
+
recurrencePattern?: string | null;
|
|
2361
|
+
}
|
|
2362
|
+
interface SuperAdminNotificationSendResponse {
|
|
2363
|
+
status: string;
|
|
2364
|
+
id?: string | null;
|
|
2365
|
+
scheduledFor?: string | null;
|
|
2366
|
+
targetCount?: number | null;
|
|
2367
|
+
}
|
|
2368
|
+
|
|
2369
|
+
declare class SuperAdminAppsApi {
|
|
2370
|
+
private readonly http;
|
|
2371
|
+
constructor(http: HttpClient);
|
|
2372
|
+
list(params: SuperAdminAppListParams): Promise<ApiSuccessResponse<SuperAdminAppListResponse>>;
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2375
|
+
declare class SuperAdminAuthApi {
|
|
2376
|
+
private readonly http;
|
|
2377
|
+
constructor(http: HttpClient);
|
|
2378
|
+
init(params: SuperAdminInitParams): Promise<ApiSuccessResponse<SuperAdminUser>>;
|
|
2379
|
+
signin(params: SuperAdminSigninParams): Promise<ApiSuccessResponse<SuperAdminUser>>;
|
|
2380
|
+
me(params: SuperAdminMeParams): Promise<ApiSuccessResponse<SuperAdminUser>>;
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2383
|
+
declare class SuperAdminFinanceApi {
|
|
2384
|
+
private readonly http;
|
|
2385
|
+
constructor(http: HttpClient);
|
|
2386
|
+
transactions(params: SuperAdminTransactionListParams): Promise<ApiSuccessResponse<SuperAdminTransactionListResponse>>;
|
|
2387
|
+
withdraw(params: SuperAdminWithdrawParams): Promise<ApiSuccessResponse<SuperAdminWithdrawResponse>>;
|
|
2388
|
+
}
|
|
2389
|
+
|
|
2390
|
+
declare class SuperAdminModulesApi {
|
|
2391
|
+
private readonly http;
|
|
2392
|
+
constructor(http: HttpClient);
|
|
2393
|
+
list(params: SuperAdminModulesListParams): Promise<ApiSuccessResponse<SuperAdminPlatformModule[]>>;
|
|
2394
|
+
update(params: SuperAdminModuleUpdateParams): Promise<ApiSuccessResponse<SuperAdminPlatformModule>>;
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
declare class SuperAdminNotificationApi {
|
|
2398
|
+
private readonly http;
|
|
2399
|
+
constructor(http: HttpClient);
|
|
2400
|
+
send(params: SuperAdminNotificationSendParams): Promise<ApiSuccessResponse<SuperAdminNotificationSendResponse>>;
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2403
|
+
declare class SuperAdminStatsApi {
|
|
2404
|
+
private readonly http;
|
|
2405
|
+
constructor(http: HttpClient);
|
|
2406
|
+
fetch(params: SuperAdminStatsParams): Promise<ApiSuccessResponse<SuperAdminStats>>;
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2409
|
+
declare class SuperAdminApi {
|
|
2410
|
+
private readonly http;
|
|
2411
|
+
readonly auth: SuperAdminAuthApi;
|
|
2412
|
+
readonly apps: SuperAdminAppsApi;
|
|
2413
|
+
readonly modules: SuperAdminModulesApi;
|
|
2414
|
+
readonly stats: SuperAdminStatsApi;
|
|
2415
|
+
readonly finance: SuperAdminFinanceApi;
|
|
2416
|
+
readonly notification: SuperAdminNotificationApi;
|
|
2417
|
+
constructor(http: HttpClient);
|
|
2418
|
+
}
|
|
2419
|
+
|
|
2420
|
+
declare class DuticotacBalanceApi {
|
|
2421
|
+
private readonly http;
|
|
2422
|
+
constructor(http: HttpClient);
|
|
2423
|
+
get(params: AppScopedParams): Promise<ApiSuccessResponse<number>>;
|
|
2424
|
+
}
|
|
2425
|
+
|
|
2426
|
+
type DuTicOTacOfferType = "STATIC" | "DYNAMIC";
|
|
2427
|
+
interface DuticotacOffer {
|
|
2428
|
+
id: string;
|
|
2429
|
+
name: string;
|
|
2430
|
+
ref: string;
|
|
2431
|
+
refHash?: string | null;
|
|
2432
|
+
price: number;
|
|
2433
|
+
type: DuTicOTacOfferType;
|
|
2434
|
+
description?: string | null;
|
|
2435
|
+
platform: PlateformType;
|
|
2436
|
+
createdAt: string;
|
|
2437
|
+
updatedAt: string;
|
|
2438
|
+
appId: string;
|
|
2439
|
+
}
|
|
2440
|
+
interface CreateDuticotacOfferParams extends AppScopedParams {
|
|
2441
|
+
name: string;
|
|
2442
|
+
price: number;
|
|
2443
|
+
type?: DuTicOTacOfferType;
|
|
2444
|
+
description?: string | null;
|
|
2445
|
+
platform?: PlateformType;
|
|
2446
|
+
}
|
|
2447
|
+
interface EditDuticotacOfferParams extends AppScopedParams {
|
|
2448
|
+
ref: string;
|
|
2449
|
+
name?: string | null;
|
|
2450
|
+
price?: number | null;
|
|
2451
|
+
type?: DuTicOTacOfferType | null;
|
|
2452
|
+
description?: string | null;
|
|
2453
|
+
platform?: PlateformType | null;
|
|
2454
|
+
}
|
|
2455
|
+
interface CashInParams extends AppScopedParams {
|
|
2456
|
+
amount: number;
|
|
2457
|
+
phone: string;
|
|
2458
|
+
password: string;
|
|
2459
|
+
paymentMethod: TransactionProvider;
|
|
2460
|
+
}
|
|
2461
|
+
interface CashOutParams extends AppScopedParams {
|
|
2462
|
+
amount?: number | null;
|
|
2463
|
+
phone: string;
|
|
2464
|
+
paymentMethod: TransactionProvider;
|
|
2465
|
+
ref?: string | null;
|
|
2466
|
+
transactionId?: string | null;
|
|
2467
|
+
name: string;
|
|
2468
|
+
email: string;
|
|
2469
|
+
country: string;
|
|
2470
|
+
plateform: PlateformType;
|
|
2471
|
+
otp?: string | null;
|
|
2472
|
+
customerId?: string | null;
|
|
2473
|
+
}
|
|
2474
|
+
interface GetPaymentMethodsParams extends AppScopedParams {
|
|
2475
|
+
}
|
|
2476
|
+
interface PaymentMethodSetParams extends AppScopedParams {
|
|
2477
|
+
providers: TransactionProvider[];
|
|
2478
|
+
}
|
|
2479
|
+
interface DuticotacTransactionGetParams extends AppScopedParams {
|
|
2480
|
+
id: string;
|
|
2481
|
+
}
|
|
2482
|
+
interface DuticotacTransaction {
|
|
2483
|
+
id: string;
|
|
2484
|
+
ref: string;
|
|
2485
|
+
productId?: string | null;
|
|
2486
|
+
offerId?: string | null;
|
|
2487
|
+
idFromClient?: string | null;
|
|
2488
|
+
token: string;
|
|
2489
|
+
provider: TransactionProvider;
|
|
2490
|
+
amount: number;
|
|
2491
|
+
fees: number;
|
|
2492
|
+
plateform: PlateformType;
|
|
2493
|
+
status: TransactionStatus;
|
|
2494
|
+
appId: string;
|
|
2495
|
+
customerId: string;
|
|
2496
|
+
currency: Currency;
|
|
2497
|
+
paymentUrl?: string | null;
|
|
2498
|
+
createdAt: string;
|
|
2499
|
+
updatedAt: string;
|
|
2500
|
+
}
|
|
2501
|
+
|
|
2502
|
+
declare class DuticotacOfferApi {
|
|
2503
|
+
private readonly http;
|
|
2504
|
+
constructor(http: HttpClient);
|
|
2505
|
+
create(params: CreateDuticotacOfferParams): Promise<ApiSuccessResponse<DuticotacOffer>>;
|
|
2506
|
+
edit(params: EditDuticotacOfferParams): Promise<ApiSuccessResponse<DuticotacOffer>>;
|
|
2507
|
+
delete(ref: string, params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
|
|
2508
|
+
list(params: AppScopedParams): Promise<ApiSuccessResponse<DuticotacOffer[]>>;
|
|
2509
|
+
get(ref: string, params: AppScopedParams): Promise<ApiSuccessResponse<DuticotacOffer>>;
|
|
2510
|
+
}
|
|
2511
|
+
|
|
2512
|
+
declare class DuticotacPaymentApi {
|
|
2513
|
+
private readonly http;
|
|
2514
|
+
constructor(http: HttpClient);
|
|
2515
|
+
cashIn(params: CashInParams): Promise<ApiSuccessResponse<unknown>>;
|
|
2516
|
+
cashOut(params: CashOutParams): Promise<ApiSuccessResponse<unknown>>;
|
|
2517
|
+
setPaymentMethods(params: PaymentMethodSetParams): Promise<ApiSuccessResponse<unknown>>;
|
|
2518
|
+
getPaymentMethods(params: GetPaymentMethodsParams): Promise<ApiSuccessResponse<TransactionProvider[]>>;
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
declare class DuticotacTransactionApi {
|
|
2522
|
+
private readonly http;
|
|
2523
|
+
constructor(http: HttpClient);
|
|
2524
|
+
get(params: DuticotacTransactionGetParams): Promise<ApiSuccessResponse<DuticotacTransaction>>;
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
declare class DuticotacApi {
|
|
2528
|
+
private readonly http;
|
|
2529
|
+
readonly balance: DuticotacBalanceApi;
|
|
2530
|
+
readonly offer: DuticotacOfferApi;
|
|
2531
|
+
readonly payment: DuticotacPaymentApi;
|
|
2532
|
+
readonly transaction: DuticotacTransactionApi;
|
|
2533
|
+
constructor(http: HttpClient);
|
|
2534
|
+
}
|
|
2535
|
+
|
|
2536
|
+
type KolaboPartnerTransactionType = "ALL" | "REVENUE" | "WITHDRAWAL";
|
|
2537
|
+
type KolaboPaymentMethod = "OM_CI" | "MTN_CI" | "MOOV_CI" | "WAVE_CI";
|
|
2538
|
+
type KolaboWithdrawStatus = "FAILED" | "SUCCESSFUL";
|
|
2539
|
+
interface KolaboApp {
|
|
2540
|
+
id: string;
|
|
2541
|
+
name: string;
|
|
2542
|
+
ref: string;
|
|
2543
|
+
description: string;
|
|
2544
|
+
logo: string;
|
|
2545
|
+
appStoreUrl?: string | null;
|
|
2546
|
+
googlePlayUrl?: string | null;
|
|
2547
|
+
websiteUrl?: string | null;
|
|
2548
|
+
revenueRate: number;
|
|
2549
|
+
status: KolaboAppStatus;
|
|
2550
|
+
isEnabled: boolean;
|
|
2551
|
+
isPopular: boolean;
|
|
2552
|
+
totalPartners: number;
|
|
2553
|
+
createdAt: string;
|
|
2554
|
+
}
|
|
2555
|
+
interface KolaboPartner {
|
|
2556
|
+
id: string;
|
|
2557
|
+
fullName: string;
|
|
2558
|
+
email: string;
|
|
2559
|
+
phone: string;
|
|
2560
|
+
apiKey?: string | null;
|
|
2561
|
+
balance: number;
|
|
2562
|
+
createdAt: string;
|
|
2563
|
+
totalRevenue: number;
|
|
2564
|
+
totalSales: number;
|
|
2565
|
+
totalReferrals: number;
|
|
2566
|
+
totalLinksClicked: number;
|
|
2567
|
+
profilePicture?: string | null;
|
|
2568
|
+
sex: Sexe;
|
|
2569
|
+
type: KolaboPartnerType;
|
|
2570
|
+
identityVericationStatus?: KolaboAppStatus | null;
|
|
2571
|
+
referralCode?: string | null;
|
|
2572
|
+
}
|
|
2573
|
+
interface KolaboCustomer {
|
|
2574
|
+
id: string;
|
|
2575
|
+
fullName: string;
|
|
2576
|
+
email?: string | null;
|
|
2577
|
+
phone?: string | null;
|
|
2578
|
+
createdAt: string;
|
|
2579
|
+
}
|
|
2580
|
+
interface KolaboPartnerShip {
|
|
2581
|
+
id: string;
|
|
2582
|
+
appId: string;
|
|
2583
|
+
partnerId: string;
|
|
2584
|
+
createdAt: string;
|
|
2585
|
+
qrcode?: string | null;
|
|
2586
|
+
totalLinksClicked: number;
|
|
2587
|
+
totalReferrals: number;
|
|
2588
|
+
totalRevenue: number;
|
|
2589
|
+
totalSales: number;
|
|
2590
|
+
updatedAt?: string | null;
|
|
2591
|
+
deleted: boolean;
|
|
2592
|
+
}
|
|
2593
|
+
interface KolaboPartnerTransactionCustomer {
|
|
2594
|
+
fullName: string;
|
|
2595
|
+
}
|
|
2596
|
+
interface KolaboPartnerTransactionApp {
|
|
2597
|
+
logo: string;
|
|
2598
|
+
name?: string | null;
|
|
2599
|
+
revenueRate?: number | null;
|
|
2600
|
+
}
|
|
2601
|
+
interface KolaboPartnerTransactionListItem {
|
|
2602
|
+
id: string;
|
|
2603
|
+
createdAt: string;
|
|
2604
|
+
amount: number;
|
|
2605
|
+
customer?: KolaboPartnerTransactionCustomer | null;
|
|
2606
|
+
app?: KolaboPartnerTransactionApp | null;
|
|
2607
|
+
}
|
|
2608
|
+
interface KolaboPartnerTransactionDetail {
|
|
2609
|
+
id: string;
|
|
2610
|
+
createdAt: string;
|
|
2611
|
+
amount: number;
|
|
2612
|
+
ref?: string | null;
|
|
2613
|
+
productName?: string | null;
|
|
2614
|
+
customer?: KolaboPartnerTransactionCustomer | null;
|
|
2615
|
+
app?: KolaboPartnerTransactionApp | null;
|
|
2616
|
+
}
|
|
2617
|
+
interface KolaboPartnerWithdrawWebhookPartner {
|
|
2618
|
+
id: string;
|
|
2619
|
+
balance: number;
|
|
2620
|
+
}
|
|
2621
|
+
interface KolaboPartnerWithdrawWebhookTransaction {
|
|
2622
|
+
id: string;
|
|
2623
|
+
partner: KolaboPartnerWithdrawWebhookPartner;
|
|
2624
|
+
}
|
|
2625
|
+
interface JoinAppParams extends AppScopedParams {
|
|
2626
|
+
slug: string;
|
|
2627
|
+
}
|
|
2628
|
+
interface CreateKolaboCustomerParams {
|
|
2629
|
+
fullName: string;
|
|
2630
|
+
email?: string | null;
|
|
2631
|
+
phone?: string | null;
|
|
2632
|
+
}
|
|
2633
|
+
interface ConfigureKolaboAppParams extends AppScopedParams {
|
|
2634
|
+
name: string;
|
|
2635
|
+
logo: string;
|
|
2636
|
+
description: string;
|
|
2637
|
+
revenueRate: number;
|
|
2638
|
+
appStoreUrl?: string | null;
|
|
2639
|
+
googlePlayUrl?: string | null;
|
|
2640
|
+
websiteUrl?: string | null;
|
|
2641
|
+
}
|
|
2642
|
+
interface CreateKolaboCustomerPartnershipParams {
|
|
2643
|
+
partnershipId: string;
|
|
2644
|
+
customerId: string;
|
|
2645
|
+
}
|
|
2646
|
+
interface SignUpKolaboPartnerParams {
|
|
2647
|
+
fullName: string;
|
|
2648
|
+
email: string;
|
|
2649
|
+
phone: string;
|
|
2650
|
+
sex: Sexe;
|
|
2651
|
+
password: string;
|
|
2652
|
+
referralCode?: string | null;
|
|
2653
|
+
}
|
|
2654
|
+
interface AddKolaboAppToPartnerParams extends ApiKeyParams {
|
|
2655
|
+
appId: string;
|
|
2656
|
+
}
|
|
2657
|
+
interface SetPinParams extends ApiKeyParams {
|
|
2658
|
+
pin: string;
|
|
2659
|
+
}
|
|
2660
|
+
interface EditKolaboPartnerProfileParams extends ApiKeyParams {
|
|
2661
|
+
fullName: string;
|
|
2662
|
+
email: string;
|
|
2663
|
+
dateOfBirth?: string | null;
|
|
2664
|
+
sex: Sexe;
|
|
2665
|
+
}
|
|
2666
|
+
interface DeleteKolaboPartnerParams extends ApiKeyParams {
|
|
2667
|
+
}
|
|
2668
|
+
interface GetKolaboPartnerAppsParams extends ApiKeyParams {
|
|
2669
|
+
}
|
|
2670
|
+
interface ListKolaboPartnerTransactionsParams extends ApiKeyParams {
|
|
2671
|
+
limit?: number;
|
|
2672
|
+
type?: KolaboPartnerTransactionType;
|
|
2673
|
+
}
|
|
2674
|
+
interface GetKolaboPartnerTransactionParams extends ApiKeyParams {
|
|
2675
|
+
transactionId: string;
|
|
2676
|
+
}
|
|
2677
|
+
interface WithdrawKolaboPartnerParams extends ApiKeyParams {
|
|
2678
|
+
amount: number;
|
|
2679
|
+
phone: string;
|
|
2680
|
+
paymentMethod: KolaboPaymentMethod;
|
|
2681
|
+
}
|
|
2682
|
+
interface KolaboPartnerWithdrawWebhookParams {
|
|
2683
|
+
appId?: string | null;
|
|
2684
|
+
serviceId: string;
|
|
2685
|
+
guTransactionId: string;
|
|
2686
|
+
status: KolaboWithdrawStatus;
|
|
2687
|
+
partnerTransactionId: string;
|
|
2688
|
+
callBackUrl: string;
|
|
2689
|
+
commission?: number | null;
|
|
2690
|
+
message?: string | null;
|
|
2691
|
+
}
|
|
2692
|
+
interface CheckKolaboPartnerParams {
|
|
2693
|
+
phone: string;
|
|
2694
|
+
}
|
|
2695
|
+
|
|
2696
|
+
declare class KolaboAppApi {
|
|
2697
|
+
private readonly http;
|
|
2698
|
+
constructor(http: HttpClient);
|
|
2699
|
+
configure(slug: string, params: ConfigureKolaboAppParams): Promise<ApiSuccessResponse<KolaboApp>>;
|
|
2700
|
+
join(slug: string, params: AppScopedParams): Promise<ApiSuccessResponse<KolaboApp>>;
|
|
2701
|
+
getBySlug(slug: string, params: ApiKeyParams): Promise<ApiSuccessResponse<KolaboApp>>;
|
|
2702
|
+
get(slug: string, params: AppScopedParams): Promise<ApiSuccessResponse<KolaboApp>>;
|
|
2703
|
+
list(params: ApiKeyParams): Promise<ApiSuccessResponse<KolaboApp[]>>;
|
|
2704
|
+
}
|
|
2705
|
+
|
|
2706
|
+
declare class KolaboCustomerApi {
|
|
2707
|
+
private readonly http;
|
|
2708
|
+
constructor(http: HttpClient);
|
|
2709
|
+
create(params: CreateKolaboCustomerParams): Promise<ApiSuccessResponse<KolaboCustomer>>;
|
|
2710
|
+
createPartnership(params: CreateKolaboCustomerPartnershipParams): Promise<ApiSuccessResponse<unknown>>;
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
declare class KolaboPartnerApi {
|
|
2714
|
+
private readonly http;
|
|
2715
|
+
constructor(http: HttpClient);
|
|
2716
|
+
signUp(params: SignUpKolaboPartnerParams): Promise<ApiSuccessResponse<KolaboPartner>>;
|
|
2717
|
+
check(params: CheckKolaboPartnerParams): Promise<ApiSuccessResponse<KolaboPartner | null>>;
|
|
2718
|
+
get(id: string, params: ApiKeyParams): Promise<ApiSuccessResponse<KolaboPartner>>;
|
|
2719
|
+
editProfile(id: string, params: EditKolaboPartnerProfileParams): Promise<ApiSuccessResponse<KolaboPartner>>;
|
|
2720
|
+
getLink(id: string, params: AddKolaboAppToPartnerParams): Promise<ApiSuccessResponse<KolaboPartnerShip>>;
|
|
2721
|
+
getPartnership(id: string, params: AddKolaboAppToPartnerParams): Promise<ApiSuccessResponse<KolaboPartnerShip | null>>;
|
|
2722
|
+
setPin(id: string, params: SetPinParams): Promise<ApiSuccessResponse<unknown>>;
|
|
2723
|
+
cancelPartnership(id: string, params: AddKolaboAppToPartnerParams): Promise<ApiSuccessResponse<boolean>>;
|
|
2724
|
+
delete(id: string, params: DeleteKolaboPartnerParams): Promise<ApiSuccessResponse<boolean>>;
|
|
2725
|
+
apps(id: string, params: GetKolaboPartnerAppsParams): Promise<ApiSuccessResponse<KolaboApp[]>>;
|
|
2726
|
+
listTransactions(id: string, params: ListKolaboPartnerTransactionsParams): Promise<ApiSuccessResponse<KolaboPartnerTransactionListItem[]>>;
|
|
2727
|
+
transaction(id: string, params: GetKolaboPartnerTransactionParams): Promise<ApiSuccessResponse<KolaboPartnerTransactionDetail | null>>;
|
|
2728
|
+
withdraw(id: string, params: WithdrawKolaboPartnerParams): Promise<ApiSuccessResponse<boolean>>;
|
|
2729
|
+
withdrawWebhook(id: string, params: KolaboPartnerWithdrawWebhookParams): Promise<ApiSuccessResponse<KolaboPartnerWithdrawWebhookTransaction>>;
|
|
2730
|
+
}
|
|
2731
|
+
|
|
2732
|
+
declare class KolaboApi {
|
|
2733
|
+
private readonly http;
|
|
2734
|
+
readonly app: KolaboAppApi;
|
|
2735
|
+
readonly customer: KolaboCustomerApi;
|
|
2736
|
+
readonly partner: KolaboPartnerApi;
|
|
2737
|
+
constructor(http: HttpClient);
|
|
2738
|
+
}
|
|
2739
|
+
|
|
2740
|
+
interface CronNotificationParams {
|
|
2741
|
+
[key: string]: unknown;
|
|
2742
|
+
}
|
|
2743
|
+
interface CronBillingParams {
|
|
2744
|
+
authorizationToken?: string | null;
|
|
2745
|
+
[key: string]: unknown;
|
|
2746
|
+
}
|
|
2747
|
+
interface CleanupTransactionsParams {
|
|
2748
|
+
[key: string]: unknown;
|
|
2749
|
+
}
|
|
2750
|
+
interface CronNotificationResult {
|
|
2751
|
+
id: string;
|
|
2752
|
+
status: string;
|
|
2753
|
+
sent: number;
|
|
2754
|
+
failed: number;
|
|
2755
|
+
}
|
|
2756
|
+
interface CronNotificationResponse {
|
|
2757
|
+
processed: number;
|
|
2758
|
+
results: CronNotificationResult[];
|
|
2759
|
+
}
|
|
2760
|
+
interface CronBillingResult {
|
|
2761
|
+
appId: string;
|
|
2762
|
+
status: string;
|
|
2763
|
+
amount?: number | null;
|
|
2764
|
+
attempt?: number | null;
|
|
2765
|
+
error?: string | null;
|
|
2766
|
+
}
|
|
2767
|
+
interface CronBillingResponse {
|
|
2768
|
+
processed: number;
|
|
2769
|
+
details: CronBillingResult[];
|
|
2770
|
+
}
|
|
2771
|
+
interface CleanupTransactionsResult {
|
|
2772
|
+
count: number;
|
|
2773
|
+
}
|
|
2774
|
+
|
|
2775
|
+
declare class MaintenanceApi {
|
|
2776
|
+
private readonly http;
|
|
2777
|
+
constructor(http: HttpClient);
|
|
2778
|
+
cronNotification(params?: CronNotificationParams): Promise<ApiSuccessResponse<CronNotificationResponse>>;
|
|
2779
|
+
cronBilling(params: CronBillingParams): Promise<ApiSuccessResponse<CronBillingResponse>>;
|
|
2780
|
+
cleanupTransactions(params?: CleanupTransactionsParams): Promise<ApiSuccessResponse<CleanupTransactionsResult>>;
|
|
2781
|
+
}
|
|
2782
|
+
|
|
1999
2783
|
interface AppliteUIConfig extends HttpClientConfig {
|
|
2000
2784
|
}
|
|
2001
2785
|
declare class AppliteUI {
|
|
@@ -2007,9 +2791,16 @@ declare class AppliteUI {
|
|
|
2007
2791
|
readonly info: InfoApi;
|
|
2008
2792
|
readonly address: AddressApi;
|
|
2009
2793
|
readonly notificationToken: NotificationTokenApi;
|
|
2794
|
+
readonly notification: NotificationApi;
|
|
2795
|
+
readonly webhook: WebhookApi;
|
|
2796
|
+
readonly user: UserApi;
|
|
2010
2797
|
readonly store: StoreApi;
|
|
2011
2798
|
readonly multiService: MultiServiceApi;
|
|
2799
|
+
readonly superAdmin: SuperAdminApi;
|
|
2800
|
+
readonly duticotac: DuticotacApi;
|
|
2801
|
+
readonly kolabo: KolaboApi;
|
|
2802
|
+
readonly maintenance: MaintenanceApi;
|
|
2012
2803
|
constructor(config?: AppliteUIConfig);
|
|
2013
2804
|
}
|
|
2014
2805
|
|
|
2015
|
-
export { 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, CategoryApi, CollectionApi, type CollectionType, CompanyApi, type CompanySummary, type CreateAddressParams, type CreateAgentParams, type CreateAppParams, type CreateAppointmentParams, type CreateBadgeParams, type CreateCategoryParams, type CreateCollectionParams, type CreateCompanyParams, type CreateDiscountParams, type CreateFieldTemplateParams, type CreateOptionParams, type CreateOrderParams, type CreateProductParams, type CreateSellerParams, type CreateServiceParams, type CreateShippingProfileParams, type CreateStatisticParams, type CreateTagParams, type CreateTaxParams, type CreateWelcomeItemParams, 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 CustomerSummary, type CustomerTransaction, type CustomerUpdateParams, type DeleteAgentParams, type DeleteBadgeParams, type DeleteCategoryParams, type DeleteCollectionParams, type DeleteCompanyParams, type DeleteDiscountParams, type DeleteFieldTemplateParams, type DeleteOptionParams, type DeleteOrderParams, type DeleteProductParams, type DeleteSellerParams, type DeleteServiceParams, type DeleteShippingProfileParams, type DeleteTagParams, type DeleteTaxParams, type DeleteWelcomeItemParams, DiscountApi, type DiscountAppliesTo, type DiscountMinRequirement, type DiscountType, type EntityIdParams, type FieldOption, type FieldOptionInput, FieldTemplateApi, type FieldType, type FileType, FinanceApi, type FulfillmentStatus, type GetAgentParams, type GetAppByIdParams, type GetAppBySlugParams, type GetAppointmentParams, type GetBadgeParams, type GetCategoryParams, type GetCollectionParams, type GetCompanyParams, type GetDiscountParams, type GetOptionParams, type GetOrderParams, type GetProductParams, type GetSellerParams, type GetServiceParams, type GetShippingProfileParams, type GetStatisticParams, type GetTagParams, type GetTaxParams, type GetWelcomeItemParams, HttpClient, type HttpClientConfig, InfoApi, type InventoryPolicy, type KolaboAppStatus, type KolaboPartnerType, type ListAgentsParams, type ListAppointmentsParams, type ListAppsParams, type ListBadgesParams, type ListCategoriesParams, type ListCollectionsParams, type ListCompaniesParams, type ListDiscountsParams, type ListFieldTemplatesParams, type ListNotificationTokensParams, type ListOptionsParams, type ListOrdersParams, type ListParams, type ListProductsParams, type ListSellersParams, type ListServicesParams, type ListShippingProfilesParams, type ListTagsParams, type ListTaxesParams, type ListWelcomeItemsParams, type MemberRole, type MultiServiceAgentDetail, type MultiServiceAgentListItem, MultiServiceApi, type MultiServiceAppointmentDetail, type MultiServiceAppointmentListItem, type MultiServiceCompanyDetail, type MultiServiceCompanyListItem, type MultiServiceFieldOptionTemplate, type MultiServiceFieldTemplate, type MultiServiceServiceDetail, type MultiServiceServiceListItem, type NotificationPlatform, type NotificationToken, NotificationTokenApi, OptionApi, type OptionValueInput, type OrderAddress, OrderApi, type OrderCartItem, type OrderCustomerSummary, type OrderItemInput, type OrderItemVariant, type OrderSellerSummary, type OrderStatus, type PaginationMeta, type PaymentStatus, type PlateformType, ProductApi, type ProductAttributeInput, type ProductDimension, type ProductImage, type ProductImageFull, type ProductStatus, type ProductVariantDetail, type ProductVariantInput, type ProductVariantListItem, type ProductVariantOptionValue, type RemoveAllNotificationTokensParams, type RemoveAllTokensResponse, type RemoveNotificationTokenParams, type RemoveTokenResponse, type SearchableListParams, SellerApi, type SellerSummary, ServiceApi, type ServiceField, type ServiceFieldInput, type ServiceSummary, type ServiceSummaryWithFields, type SetNotificationTokenParams, type Sexe, ShippingApi, type ShippingRateInput, type ShippingRateType, type ShippingZoneInput, type Statistic, StatsApi, StoreApi, type StoreBadgeDetail, type StoreBadgeListItem, 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, TagApi, TaxApi, type Transaction, type TransactionDetail, type TransactionGetParams, type TransactionListParams, type TransactionProvider, type TransactionStatus, type UpdateAddressParams, type UpdateAgentParams, type UpdateAppointmentAgentParams, type UpdateAppointmentStatusParams, type UpdateBadgeParams, 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 UpdateWelcomeItemParams, type WelcomeItem, WelcomeItemApi, type WithdrawParams, type WithdrawResult };
|
|
2806
|
+
export { 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 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 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 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 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 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 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 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 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 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 RemoveAllNotificationTokensParams, type RemoveAllTokensResponse, 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 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 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 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 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 };
|