@applite/js-sdk 0.0.11 → 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 +1020 -6
- package/dist/index.d.ts +1020 -6
- package/dist/index.js +691 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +669 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -10
package/dist/index.d.mts
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";
|
|
@@ -62,7 +67,7 @@ type DiscountAppliesTo = "ALL" | "COLLECTIONS" | "PRODUCTS";
|
|
|
62
67
|
type ShippingRateType = "FLAT" | "WEIGHT_BASED" | "PRICE_BASED";
|
|
63
68
|
type SubscriptionStatus = "ACTIVE" | "PAST_DUE" | "CANCELED" | "SUSPENDED";
|
|
64
69
|
type FileType = "IMAGE" | "VIDEO" | "GIF";
|
|
65
|
-
type FieldType = "TEXT" | "NUMBER" | "SELECT" | "MULTIPLE_SELECT" | "EMAIL" | "PHONE" | "DATE";
|
|
70
|
+
type FieldType = "TEXT" | "NUMBER" | "SELECT" | "MULTIPLE_SELECT" | "EMAIL" | "PHONE" | "DATE" | "ADDRESS";
|
|
66
71
|
type AppointmentStatus = "PENDING" | "CONFIRMED" | "IN_PROGRESS" | "COMPLETED" | "CANCELLED";
|
|
67
72
|
type KolaboAppStatus = "PENDING" | "APPROVED" | "REVALIATING" | "REJECTED";
|
|
68
73
|
type KolaboPartnerType = "INDEPENDENT" | "AGENCY";
|
|
@@ -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 {
|
|
@@ -402,6 +429,337 @@ declare class WelcomeItemApi {
|
|
|
402
429
|
}>>;
|
|
403
430
|
}
|
|
404
431
|
|
|
432
|
+
interface Address {
|
|
433
|
+
id: string;
|
|
434
|
+
appId: string;
|
|
435
|
+
customerId: string;
|
|
436
|
+
name: string;
|
|
437
|
+
firstName: string | null;
|
|
438
|
+
lastName: string | null;
|
|
439
|
+
phone: string | null;
|
|
440
|
+
email: string | null;
|
|
441
|
+
address: string;
|
|
442
|
+
address2: string | null;
|
|
443
|
+
city: string | null;
|
|
444
|
+
zip: string | null;
|
|
445
|
+
state: string | null;
|
|
446
|
+
country: string | null;
|
|
447
|
+
longitude: number | null;
|
|
448
|
+
latitude: number | null;
|
|
449
|
+
plateform: PlateformType | null;
|
|
450
|
+
createdAt: string;
|
|
451
|
+
updatedAt: string;
|
|
452
|
+
}
|
|
453
|
+
interface AddressListParams extends AppScopedParams {
|
|
454
|
+
customerId?: string;
|
|
455
|
+
plateform?: PlateformType;
|
|
456
|
+
}
|
|
457
|
+
interface CreateAddressParams extends AppScopedParams {
|
|
458
|
+
customerId: string;
|
|
459
|
+
name: string;
|
|
460
|
+
firstName?: string;
|
|
461
|
+
lastName?: string;
|
|
462
|
+
phone?: string;
|
|
463
|
+
email?: string;
|
|
464
|
+
address: string;
|
|
465
|
+
address2?: string;
|
|
466
|
+
city?: string;
|
|
467
|
+
zip?: string;
|
|
468
|
+
state?: string;
|
|
469
|
+
country?: string;
|
|
470
|
+
longitude?: number;
|
|
471
|
+
latitude?: number;
|
|
472
|
+
plateform?: PlateformType;
|
|
473
|
+
}
|
|
474
|
+
interface UpdateAddressParams extends AppScopedParams {
|
|
475
|
+
id: string;
|
|
476
|
+
addressId?: string;
|
|
477
|
+
customerId?: string;
|
|
478
|
+
name?: string;
|
|
479
|
+
firstName?: string;
|
|
480
|
+
lastName?: string;
|
|
481
|
+
phone?: string;
|
|
482
|
+
email?: string;
|
|
483
|
+
address?: string;
|
|
484
|
+
address2?: string;
|
|
485
|
+
city?: string;
|
|
486
|
+
zip?: string;
|
|
487
|
+
state?: string;
|
|
488
|
+
country?: string;
|
|
489
|
+
longitude?: number;
|
|
490
|
+
latitude?: number;
|
|
491
|
+
plateform?: PlateformType;
|
|
492
|
+
}
|
|
493
|
+
interface AddressDeleteParams extends AppScopedParams {
|
|
494
|
+
id: string;
|
|
495
|
+
}
|
|
496
|
+
interface GetAddressByIdParams extends AppScopedParams {
|
|
497
|
+
id: string;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
declare class AddressApi {
|
|
501
|
+
private readonly http;
|
|
502
|
+
constructor(http: HttpClient);
|
|
503
|
+
list(params: AddressListParams): Promise<ApiSuccessResponse<Address[]>>;
|
|
504
|
+
create(params: CreateAddressParams): Promise<ApiSuccessResponse<Address>>;
|
|
505
|
+
update(params: UpdateAddressParams): Promise<ApiSuccessResponse<Address>>;
|
|
506
|
+
delete(params: AddressDeleteParams): Promise<ApiSuccessResponse<{
|
|
507
|
+
deleted: boolean;
|
|
508
|
+
}>>;
|
|
509
|
+
getById(params: GetAddressByIdParams): Promise<ApiSuccessResponse<Address>>;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
type NotificationPlatform = "IOS" | "ANDROID" | "WEB";
|
|
513
|
+
interface NotificationToken {
|
|
514
|
+
id: string;
|
|
515
|
+
customerId: string;
|
|
516
|
+
appId: string;
|
|
517
|
+
token: string;
|
|
518
|
+
platform: NotificationPlatform;
|
|
519
|
+
deviceId: string | null;
|
|
520
|
+
deviceName: string | null;
|
|
521
|
+
createdAt: string;
|
|
522
|
+
lastUsedAt: string;
|
|
523
|
+
}
|
|
524
|
+
interface RemoveTokenResponse {
|
|
525
|
+
removed: boolean;
|
|
526
|
+
}
|
|
527
|
+
interface RemoveAllTokensResponse {
|
|
528
|
+
removedCount: number;
|
|
529
|
+
}
|
|
530
|
+
interface SetNotificationTokenParams extends AppScopedParams {
|
|
531
|
+
customerId: string;
|
|
532
|
+
token: string;
|
|
533
|
+
platform: NotificationPlatform;
|
|
534
|
+
deviceId?: string;
|
|
535
|
+
deviceName?: string;
|
|
536
|
+
}
|
|
537
|
+
interface RemoveNotificationTokenParams extends AppScopedParams {
|
|
538
|
+
customerId: string;
|
|
539
|
+
token: string;
|
|
540
|
+
}
|
|
541
|
+
interface RemoveAllNotificationTokensParams extends AppScopedParams {
|
|
542
|
+
customerId: string;
|
|
543
|
+
}
|
|
544
|
+
interface ListNotificationTokensParams extends AppScopedParams {
|
|
545
|
+
customerId: string;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
declare class NotificationTokenApi {
|
|
549
|
+
private readonly http;
|
|
550
|
+
constructor(http: HttpClient);
|
|
551
|
+
set(params: SetNotificationTokenParams): Promise<ApiSuccessResponse<NotificationToken>>;
|
|
552
|
+
remove(params: RemoveNotificationTokenParams): Promise<ApiSuccessResponse<RemoveTokenResponse>>;
|
|
553
|
+
removeAll(params: RemoveAllNotificationTokensParams): Promise<ApiSuccessResponse<RemoveAllTokensResponse>>;
|
|
554
|
+
list(params: ListNotificationTokensParams): Promise<ApiSuccessResponse<NotificationToken[]>>;
|
|
555
|
+
}
|
|
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
|
+
|
|
405
763
|
/**
|
|
406
764
|
* Seller summary used in nested relations (badge, category, product, etc.)
|
|
407
765
|
*/
|
|
@@ -1513,6 +1871,7 @@ interface FieldOption {
|
|
|
1513
1871
|
interface ServiceField {
|
|
1514
1872
|
id: string;
|
|
1515
1873
|
serviceId: string;
|
|
1874
|
+
ref: string;
|
|
1516
1875
|
label: string;
|
|
1517
1876
|
description: string | null;
|
|
1518
1877
|
type: FieldType;
|
|
@@ -1523,6 +1882,7 @@ interface ServiceField {
|
|
|
1523
1882
|
maxLength: number | null;
|
|
1524
1883
|
regex: string | null;
|
|
1525
1884
|
multiplier: boolean;
|
|
1885
|
+
useSelect: boolean;
|
|
1526
1886
|
options: FieldOption[];
|
|
1527
1887
|
}
|
|
1528
1888
|
/**
|
|
@@ -1532,6 +1892,13 @@ interface ServiceSummary {
|
|
|
1532
1892
|
id: string;
|
|
1533
1893
|
name: string;
|
|
1534
1894
|
}
|
|
1895
|
+
/**
|
|
1896
|
+
* Service summary with fields for appointment display
|
|
1897
|
+
*/
|
|
1898
|
+
interface ServiceSummaryWithFields extends ServiceSummary {
|
|
1899
|
+
icon: string | null;
|
|
1900
|
+
fields: ServiceField[];
|
|
1901
|
+
}
|
|
1535
1902
|
/**
|
|
1536
1903
|
* Service list item with company and fields
|
|
1537
1904
|
*/
|
|
@@ -1569,6 +1936,7 @@ interface FieldOptionInput {
|
|
|
1569
1936
|
}
|
|
1570
1937
|
interface ServiceFieldInput {
|
|
1571
1938
|
id?: string;
|
|
1939
|
+
ref?: string;
|
|
1572
1940
|
label: string;
|
|
1573
1941
|
description?: string | null;
|
|
1574
1942
|
type: FieldType;
|
|
@@ -1579,6 +1947,7 @@ interface ServiceFieldInput {
|
|
|
1579
1947
|
maxLength?: number | null;
|
|
1580
1948
|
regex?: string | null;
|
|
1581
1949
|
multiplier?: boolean;
|
|
1950
|
+
useSelect?: boolean;
|
|
1582
1951
|
options?: FieldOptionInput[];
|
|
1583
1952
|
}
|
|
1584
1953
|
interface CreateServiceParams extends AppScopedParams {
|
|
@@ -1683,6 +2052,15 @@ declare class AgentApi {
|
|
|
1683
2052
|
}>>;
|
|
1684
2053
|
}
|
|
1685
2054
|
|
|
2055
|
+
/**
|
|
2056
|
+
* Customer summary for appointment display
|
|
2057
|
+
*/
|
|
2058
|
+
interface CustomerSummary {
|
|
2059
|
+
id: string;
|
|
2060
|
+
fullname: string;
|
|
2061
|
+
telephone: string;
|
|
2062
|
+
photoUrl: string | null;
|
|
2063
|
+
}
|
|
1686
2064
|
/**
|
|
1687
2065
|
* Appointment list item with service and agent
|
|
1688
2066
|
*/
|
|
@@ -1692,7 +2070,7 @@ interface MultiServiceAppointmentListItem {
|
|
|
1692
2070
|
companyId: string;
|
|
1693
2071
|
serviceId: string;
|
|
1694
2072
|
agentId: string | null;
|
|
1695
|
-
|
|
2073
|
+
customerId: string | null;
|
|
1696
2074
|
filledFields: Record<string, unknown>;
|
|
1697
2075
|
totalPrice: number;
|
|
1698
2076
|
date: string;
|
|
@@ -1700,8 +2078,9 @@ interface MultiServiceAppointmentListItem {
|
|
|
1700
2078
|
status: AppointmentStatus;
|
|
1701
2079
|
createdAt: string;
|
|
1702
2080
|
updatedAt: string;
|
|
1703
|
-
service:
|
|
2081
|
+
service: ServiceSummaryWithFields;
|
|
1704
2082
|
agent: AgentSummary | null;
|
|
2083
|
+
customer: CustomerSummary | null;
|
|
1705
2084
|
}
|
|
1706
2085
|
/**
|
|
1707
2086
|
* Appointment detail
|
|
@@ -1716,16 +2095,19 @@ interface CreateAppointmentParams extends AppScopedParams {
|
|
|
1716
2095
|
companyId: string;
|
|
1717
2096
|
serviceId: string;
|
|
1718
2097
|
agentId?: string | null;
|
|
1719
|
-
|
|
2098
|
+
customerId: string;
|
|
1720
2099
|
filledFields: Record<string, unknown>;
|
|
1721
2100
|
totalPrice: number;
|
|
1722
2101
|
date: string;
|
|
1723
2102
|
commune: string;
|
|
1724
|
-
status?: AppointmentStatus;
|
|
2103
|
+
status?: AppointmentStatus | null;
|
|
1725
2104
|
}
|
|
1726
2105
|
interface UpdateAppointmentStatusParams extends EntityIdParams {
|
|
1727
2106
|
status: AppointmentStatus;
|
|
1728
2107
|
}
|
|
2108
|
+
interface UpdateAppointmentAgentParams extends EntityIdParams {
|
|
2109
|
+
agentId: string | null;
|
|
2110
|
+
}
|
|
1729
2111
|
interface GetAppointmentParams extends EntityIdParams {
|
|
1730
2112
|
}
|
|
1731
2113
|
interface ListAppointmentsParams extends AppScopedParams {
|
|
@@ -1740,6 +2122,8 @@ declare class AppointmentApi {
|
|
|
1740
2122
|
create(params: CreateAppointmentParams): Promise<ApiSuccessResponse<MultiServiceAppointmentDetail>>;
|
|
1741
2123
|
list(params: ListAppointmentsParams): Promise<ApiSuccessResponse<MultiServiceAppointmentListItem[]>>;
|
|
1742
2124
|
updateStatus(params: UpdateAppointmentStatusParams): Promise<ApiSuccessResponse<MultiServiceAppointmentDetail>>;
|
|
2125
|
+
get(params: GetAppointmentParams): Promise<ApiSuccessResponse<MultiServiceAppointmentDetail>>;
|
|
2126
|
+
assignAgent(params: UpdateAppointmentAgentParams): Promise<ApiSuccessResponse<MultiServiceAppointmentDetail>>;
|
|
1743
2127
|
}
|
|
1744
2128
|
|
|
1745
2129
|
declare class CompanyApi {
|
|
@@ -1766,13 +2150,634 @@ declare class ServiceApi {
|
|
|
1766
2150
|
}>>;
|
|
1767
2151
|
}
|
|
1768
2152
|
|
|
2153
|
+
interface MultiServiceFieldOptionTemplate {
|
|
2154
|
+
id: string;
|
|
2155
|
+
templateId: string;
|
|
2156
|
+
label: string;
|
|
2157
|
+
value: string;
|
|
2158
|
+
description: string | null;
|
|
2159
|
+
price: number | null;
|
|
2160
|
+
}
|
|
2161
|
+
interface MultiServiceFieldTemplate {
|
|
2162
|
+
id: string;
|
|
2163
|
+
appId: string;
|
|
2164
|
+
ref: string | null;
|
|
2165
|
+
label: string;
|
|
2166
|
+
description: string | null;
|
|
2167
|
+
type: FieldType;
|
|
2168
|
+
min: number | null;
|
|
2169
|
+
max: number | null;
|
|
2170
|
+
minLength: number | null;
|
|
2171
|
+
maxLength: number | null;
|
|
2172
|
+
regex: string | null;
|
|
2173
|
+
required: boolean;
|
|
2174
|
+
multiplier: boolean;
|
|
2175
|
+
useSelect: boolean;
|
|
2176
|
+
options: MultiServiceFieldOptionTemplate[];
|
|
2177
|
+
createdAt: string;
|
|
2178
|
+
updatedAt: string;
|
|
2179
|
+
}
|
|
2180
|
+
interface ListFieldTemplatesParams extends AppScopedParams {
|
|
2181
|
+
}
|
|
2182
|
+
interface CreateFieldTemplateParams extends AppScopedParams {
|
|
2183
|
+
ref?: string;
|
|
2184
|
+
label: string;
|
|
2185
|
+
description?: string;
|
|
2186
|
+
type: FieldType;
|
|
2187
|
+
min?: number;
|
|
2188
|
+
max?: number;
|
|
2189
|
+
minLength?: number;
|
|
2190
|
+
maxLength?: number;
|
|
2191
|
+
regex?: string;
|
|
2192
|
+
required?: boolean;
|
|
2193
|
+
multiplier?: boolean;
|
|
2194
|
+
useSelect?: boolean;
|
|
2195
|
+
options?: FieldOptionInput[];
|
|
2196
|
+
}
|
|
2197
|
+
interface UpdateFieldTemplateParams extends AppScopedParams {
|
|
2198
|
+
id: string;
|
|
2199
|
+
ref?: string;
|
|
2200
|
+
label?: string;
|
|
2201
|
+
description?: string;
|
|
2202
|
+
type?: FieldType;
|
|
2203
|
+
min?: number;
|
|
2204
|
+
max?: number;
|
|
2205
|
+
minLength?: number;
|
|
2206
|
+
maxLength?: number;
|
|
2207
|
+
regex?: string;
|
|
2208
|
+
required?: boolean;
|
|
2209
|
+
multiplier?: boolean;
|
|
2210
|
+
useSelect?: boolean;
|
|
2211
|
+
options?: FieldOptionInput[];
|
|
2212
|
+
}
|
|
2213
|
+
interface DeleteFieldTemplateParams extends AppScopedParams {
|
|
2214
|
+
id: string;
|
|
2215
|
+
}
|
|
2216
|
+
|
|
2217
|
+
declare class FieldTemplateApi {
|
|
2218
|
+
private readonly http;
|
|
2219
|
+
constructor(http: HttpClient);
|
|
2220
|
+
list(params: ListFieldTemplatesParams): Promise<ApiSuccessResponse<MultiServiceFieldTemplate[]>>;
|
|
2221
|
+
create(params: CreateFieldTemplateParams): Promise<ApiSuccessResponse<MultiServiceFieldTemplate>>;
|
|
2222
|
+
update(params: UpdateFieldTemplateParams): Promise<ApiSuccessResponse<MultiServiceFieldTemplate>>;
|
|
2223
|
+
delete(params: DeleteFieldTemplateParams): Promise<ApiSuccessResponse<{
|
|
2224
|
+
deleted: boolean;
|
|
2225
|
+
}>>;
|
|
2226
|
+
}
|
|
2227
|
+
|
|
1769
2228
|
declare class MultiServiceApi {
|
|
1770
2229
|
private readonly http;
|
|
1771
2230
|
readonly company: CompanyApi;
|
|
1772
2231
|
readonly service: ServiceApi;
|
|
1773
2232
|
readonly appointment: AppointmentApi;
|
|
1774
2233
|
readonly agent: AgentApi;
|
|
2234
|
+
readonly fieldTemplate: FieldTemplateApi;
|
|
2235
|
+
constructor(http: HttpClient);
|
|
2236
|
+
}
|
|
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;
|
|
1775
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>>;
|
|
1776
2781
|
}
|
|
1777
2782
|
|
|
1778
2783
|
interface AppliteUIConfig extends HttpClientConfig {
|
|
@@ -1784,9 +2789,18 @@ declare class AppliteUI {
|
|
|
1784
2789
|
readonly finance: FinanceApi;
|
|
1785
2790
|
readonly welcomeItem: WelcomeItemApi;
|
|
1786
2791
|
readonly info: InfoApi;
|
|
2792
|
+
readonly address: AddressApi;
|
|
2793
|
+
readonly notificationToken: NotificationTokenApi;
|
|
2794
|
+
readonly notification: NotificationApi;
|
|
2795
|
+
readonly webhook: WebhookApi;
|
|
2796
|
+
readonly user: UserApi;
|
|
1787
2797
|
readonly store: StoreApi;
|
|
1788
2798
|
readonly multiService: MultiServiceApi;
|
|
2799
|
+
readonly superAdmin: SuperAdminApi;
|
|
2800
|
+
readonly duticotac: DuticotacApi;
|
|
2801
|
+
readonly kolabo: KolaboApi;
|
|
2802
|
+
readonly maintenance: MaintenanceApi;
|
|
1789
2803
|
constructor(config?: AppliteUIConfig);
|
|
1790
2804
|
}
|
|
1791
2805
|
|
|
1792
|
-
export { 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 CreateAgentParams, type CreateAppParams, type CreateAppointmentParams, type CreateBadgeParams, type CreateCategoryParams, type CreateCollectionParams, type CreateCompanyParams, type CreateDiscountParams, 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 CustomerTransaction, type CustomerUpdateParams, type DeleteAgentParams, type DeleteBadgeParams, type DeleteCategoryParams, type DeleteCollectionParams, type DeleteCompanyParams, type DeleteDiscountParams, 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, 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 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 MultiServiceServiceDetail, type MultiServiceServiceListItem, 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 SearchableListParams, SellerApi, type SellerSummary, ServiceApi, type ServiceField, type ServiceFieldInput, type ServiceSummary, 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 UpdateAgentParams, type UpdateAppointmentStatusParams, type UpdateBadgeParams, type UpdateCategoryParams, type UpdateCollectionParams, type UpdateCompanyParams, type UpdateDiscountParams, 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 };
|