@applite/js-sdk 0.0.13 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -457,37 +457,24 @@ interface AddressListParams extends AppScopedParams {
457
457
  interface CreateAddressParams extends AppScopedParams {
458
458
  customerId: string;
459
459
  name: string;
460
- firstName?: string;
461
- lastName?: string;
462
- phone?: string;
463
- email?: string;
464
460
  address: string;
465
461
  address2?: string;
466
462
  city?: string;
467
463
  zip?: string;
468
464
  state?: string;
469
465
  country?: string;
470
- longitude?: number;
471
- latitude?: number;
472
466
  plateform?: PlateformType;
473
467
  }
474
468
  interface UpdateAddressParams extends AppScopedParams {
475
469
  id: string;
476
- addressId?: string;
477
470
  customerId?: string;
478
471
  name?: string;
479
- firstName?: string;
480
- lastName?: string;
481
- phone?: string;
482
- email?: string;
483
472
  address?: string;
484
473
  address2?: string;
485
474
  city?: string;
486
475
  zip?: string;
487
476
  state?: string;
488
477
  country?: string;
489
- longitude?: number;
490
- latitude?: number;
491
478
  plateform?: PlateformType;
492
479
  }
493
480
  interface AddressDeleteParams extends AppScopedParams {
@@ -903,16 +890,83 @@ interface GetBadgeParams extends EntityIdParams {
903
890
  interface ListBadgesParams extends AppScopedParams {
904
891
  }
905
892
 
906
- declare class BadgeApi {
907
- private readonly http;
908
- constructor(http: HttpClient);
909
- list(params: ListBadgesParams): Promise<ApiSuccessResponse<StoreBadgeListItem[]>>;
910
- create(params: CreateBadgeParams): Promise<ApiSuccessResponse<StoreBadgeDetail>>;
911
- get(params: GetBadgeParams): Promise<ApiSuccessResponse<StoreBadgeDetail>>;
912
- update(params: UpdateBadgeParams): Promise<ApiSuccessResponse<StoreBadgeDetail>>;
913
- delete(params: DeleteBadgeParams): Promise<ApiSuccessResponse<{
914
- deleted: boolean;
915
- }>>;
893
+ interface CartCustomerSummary {
894
+ id: string;
895
+ fullname: string;
896
+ telephone: string;
897
+ }
898
+ interface CartItemVariant {
899
+ id: string;
900
+ name: string;
901
+ price: number;
902
+ discountPrice: number | null;
903
+ quantity: number;
904
+ infinite: boolean;
905
+ images: Array<{
906
+ url: string;
907
+ }>;
908
+ product: {
909
+ id: string;
910
+ name: string;
911
+ slug: string;
912
+ };
913
+ }
914
+ interface CartItem {
915
+ id: string;
916
+ variantId: string;
917
+ productId: string;
918
+ quantity: number;
919
+ createdAt: string;
920
+ updatedAt: string;
921
+ cartId: string;
922
+ variant: CartItemVariant;
923
+ }
924
+ /**
925
+ * Cart response with items and optional customer
926
+ */
927
+ interface StoreCart {
928
+ id: string;
929
+ customerId: string | null;
930
+ appId: string;
931
+ createdAt: string;
932
+ updatedAt: string;
933
+ customer: CartCustomerSummary | null;
934
+ items: CartItem[];
935
+ }
936
+ /**
937
+ * Cart totals response
938
+ */
939
+ interface CartTotals {
940
+ subtotal: number;
941
+ total: number;
942
+ itemCount: number;
943
+ items: Array<{
944
+ id: string;
945
+ variantId: string;
946
+ productId: string;
947
+ quantity: number;
948
+ unitPrice: number;
949
+ lineTotal: number;
950
+ }>;
951
+ }
952
+ interface CreateCartParams extends AppScopedParams {
953
+ customerId?: string;
954
+ }
955
+ interface GetCartParams extends EntityIdParams {
956
+ }
957
+ interface AddCartItemParams extends EntityIdParams {
958
+ variantId: string;
959
+ productId: string;
960
+ quantity?: number;
961
+ }
962
+ interface UpdateCartItemParams extends EntityIdParams {
963
+ itemId: string;
964
+ quantity: number;
965
+ }
966
+ interface RemoveCartItemParams extends EntityIdParams {
967
+ itemId: string;
968
+ }
969
+ interface CalculateCartTotalsParams extends EntityIdParams {
916
970
  }
917
971
 
918
972
  /**
@@ -995,16 +1049,39 @@ interface ListCategoriesParams extends SearchableListParams {
995
1049
  sellerId?: string;
996
1050
  }
997
1051
 
998
- declare class CategoryApi {
999
- private readonly http;
1000
- constructor(http: HttpClient);
1001
- list(params: ListCategoriesParams): Promise<ApiSuccessResponseWithMeta<StoreCategoryListItem>>;
1002
- create(params: CreateCategoryParams): Promise<ApiSuccessResponse<StoreCategoryDetail>>;
1003
- get(params: GetCategoryParams): Promise<ApiSuccessResponse<StoreCategoryDetail>>;
1004
- update(params: UpdateCategoryParams): Promise<ApiSuccessResponse<StoreCategoryDetail>>;
1005
- delete(params: DeleteCategoryParams): Promise<ApiSuccessResponse<{
1006
- deleted: boolean;
1007
- }>>;
1052
+ /**
1053
+ * Tag list item
1054
+ */
1055
+ interface StoreTagListItem {
1056
+ id: string;
1057
+ name: string;
1058
+ sellerId: string | null;
1059
+ appId: string;
1060
+ productIds: string[];
1061
+ createdAt: string;
1062
+ updatedAt: string;
1063
+ }
1064
+ /**
1065
+ * Tag detail with product count
1066
+ */
1067
+ interface StoreTagDetail extends StoreTagListItem {
1068
+ _count: {
1069
+ products: number;
1070
+ };
1071
+ }
1072
+ interface CreateTagParams extends AppScopedParams {
1073
+ name: string;
1074
+ sellerId?: string;
1075
+ }
1076
+ interface UpdateTagParams extends EntityIdParams {
1077
+ name: string;
1078
+ }
1079
+ interface DeleteTagParams extends EntityIdParams {
1080
+ }
1081
+ interface GetTagParams extends EntityIdParams {
1082
+ }
1083
+ interface ListTagsParams extends SearchableListParams {
1084
+ sellerId?: string;
1008
1085
  }
1009
1086
 
1010
1087
  /**
@@ -1064,104 +1141,6 @@ interface ListCollectionsParams extends SearchableListParams {
1064
1141
  type?: CollectionType;
1065
1142
  }
1066
1143
 
1067
- declare class CollectionApi {
1068
- private readonly http;
1069
- constructor(http: HttpClient);
1070
- list(params: ListCollectionsParams): Promise<ApiSuccessResponseWithMeta<StoreCollectionListItem>>;
1071
- create(params: CreateCollectionParams): Promise<ApiSuccessResponse<StoreCollectionDetail>>;
1072
- get(params: GetCollectionParams): Promise<ApiSuccessResponse<StoreCollectionDetail>>;
1073
- update(params: UpdateCollectionParams): Promise<ApiSuccessResponse<StoreCollectionDetail>>;
1074
- delete(params: DeleteCollectionParams): Promise<ApiSuccessResponse<{
1075
- deleted: boolean;
1076
- }>>;
1077
- }
1078
-
1079
- /**
1080
- * Discount list item
1081
- */
1082
- interface StoreDiscountListItem {
1083
- id: string;
1084
- appId: string;
1085
- sellerId: string | null;
1086
- code: string;
1087
- type: DiscountType;
1088
- value: number;
1089
- startsAt: string;
1090
- endsAt: string | null;
1091
- usageLimit: number | null;
1092
- usedCount: number;
1093
- minRequirement: DiscountMinRequirement;
1094
- minQuantity: number | null;
1095
- minAmount: number | null;
1096
- appliesTo: DiscountAppliesTo;
1097
- collectionIds: string[];
1098
- productIds: string[];
1099
- isActive: boolean;
1100
- createdAt: string;
1101
- updatedAt: string;
1102
- }
1103
- /**
1104
- * Discount detail with products
1105
- */
1106
- interface StoreDiscountDetail extends StoreDiscountListItem {
1107
- products: Array<{
1108
- id: string;
1109
- name: string;
1110
- slug: string;
1111
- }>;
1112
- }
1113
- interface CreateDiscountParams extends AppScopedParams {
1114
- code: string;
1115
- type: DiscountType;
1116
- value: number;
1117
- startsAt: string;
1118
- endsAt?: string | null;
1119
- usageLimit?: number | null;
1120
- minRequirement?: DiscountMinRequirement;
1121
- minQuantity?: number | null;
1122
- minAmount?: number | null;
1123
- appliesTo?: DiscountAppliesTo;
1124
- collectionIds?: string[];
1125
- productIds?: string[];
1126
- sellerId?: string;
1127
- isActive?: boolean;
1128
- }
1129
- interface UpdateDiscountParams extends EntityIdParams {
1130
- code?: string;
1131
- type?: DiscountType;
1132
- value?: number;
1133
- startsAt?: string;
1134
- endsAt?: string | null;
1135
- usageLimit?: number | null;
1136
- minRequirement?: DiscountMinRequirement;
1137
- minQuantity?: number | null;
1138
- minAmount?: number | null;
1139
- appliesTo?: DiscountAppliesTo;
1140
- collectionIds?: string[];
1141
- productIds?: string[];
1142
- isActive?: boolean;
1143
- }
1144
- interface DeleteDiscountParams extends EntityIdParams {
1145
- }
1146
- interface GetDiscountParams extends EntityIdParams {
1147
- }
1148
- interface ListDiscountsParams extends SearchableListParams {
1149
- sellerId?: string;
1150
- isActive?: boolean;
1151
- }
1152
-
1153
- declare class DiscountApi {
1154
- private readonly http;
1155
- constructor(http: HttpClient);
1156
- list(params: ListDiscountsParams): Promise<ApiSuccessResponseWithMeta<StoreDiscountListItem>>;
1157
- create(params: CreateDiscountParams): Promise<ApiSuccessResponse<StoreDiscountDetail>>;
1158
- get(params: GetDiscountParams): Promise<ApiSuccessResponse<StoreDiscountDetail>>;
1159
- update(params: UpdateDiscountParams): Promise<ApiSuccessResponse<StoreDiscountDetail>>;
1160
- delete(params: DeleteDiscountParams): Promise<ApiSuccessResponse<{
1161
- deleted: boolean;
1162
- }>>;
1163
- }
1164
-
1165
1144
  /**
1166
1145
  * Option value
1167
1146
  */
@@ -1232,165 +1211,36 @@ interface ListOptionsParams extends SearchableListParams {
1232
1211
  sellerId?: string;
1233
1212
  }
1234
1213
 
1235
- declare class OptionApi {
1236
- private readonly http;
1237
- constructor(http: HttpClient);
1238
- list(params: ListOptionsParams): Promise<ApiSuccessResponse<StoreOptionListItem[]>>;
1239
- create(params: CreateOptionParams): Promise<ApiSuccessResponse<StoreOptionDetail>>;
1240
- get(params: GetOptionParams): Promise<ApiSuccessResponse<StoreOptionDetail>>;
1241
- update(params: UpdateOptionParams): Promise<ApiSuccessResponse<StoreOptionDetail>>;
1242
- delete(params: DeleteOptionParams): Promise<ApiSuccessResponse<{
1243
- deleted: boolean;
1244
- }>>;
1245
- }
1246
-
1247
- interface OrderAddress {
1248
- firstName: string;
1249
- lastName: string;
1250
- address1: string;
1251
- address2?: string | null;
1252
- city: string;
1253
- country: string;
1254
- zip?: string | null;
1255
- phone?: string | null;
1214
+ interface ProductImage {
1215
+ url: string;
1256
1216
  }
1257
- interface OrderCustomerSummary {
1217
+ interface ProductImageFull {
1258
1218
  id: string;
1259
- fullname: string;
1260
- telephone: string;
1219
+ url: string;
1220
+ imageId: string | null;
1221
+ variantId: string;
1222
+ sellerId: string;
1223
+ appId: string;
1261
1224
  }
1262
- interface OrderSellerSummary {
1225
+ interface ProductVariantOptionValue {
1263
1226
  id: string;
1264
- fullname: string;
1265
- avatar: string | null;
1227
+ text: string;
1228
+ optionId: string | null;
1266
1229
  }
1267
- interface OrderItemVariant {
1230
+ interface ProductDimension {
1231
+ length: number | null;
1232
+ width: number | null;
1233
+ height: number | null;
1234
+ }
1235
+ /**
1236
+ * Variant in product list (minimal data)
1237
+ */
1238
+ interface ProductVariantListItem {
1268
1239
  id: string;
1269
1240
  price: number;
1270
1241
  discountPrice: number | null;
1271
- product: {
1272
- id: string;
1273
- name: string;
1274
- slug: string;
1275
- };
1276
- images: Array<{
1277
- url: string;
1278
- }>;
1279
- }
1280
- interface OrderCartItem {
1281
- id: string;
1282
- variantId: string;
1283
- productId: string;
1284
- quantity: number;
1285
- createdAt: string;
1286
- updatedAt: string;
1287
- orderId: string;
1288
- variant: OrderItemVariant;
1289
- }
1290
- /**
1291
- * Order list item with customer, seller, and items
1292
- */
1293
- interface StoreOrderListItem {
1294
- id: string;
1295
- ref: string | null;
1296
- total: number;
1297
- subtotal: number;
1298
- taxTotal: number;
1299
- shippingTotal: number;
1300
- discountTotal: number;
1301
- status: OrderStatus;
1302
- paymentStatus: PaymentStatus;
1303
- fulfillmentStatus: FulfillmentStatus;
1304
- shippingAddress: OrderAddress | null;
1305
- billingAddress: OrderAddress | null;
1306
- customerId: string;
1307
- sellerId: string;
1308
- appId: string;
1309
- createdAt: string;
1310
- updatedAt: string;
1311
- customer: OrderCustomerSummary;
1312
- seller: OrderSellerSummary;
1313
- items: OrderCartItem[];
1314
- }
1315
- /**
1316
- * Order detail
1317
- */
1318
- interface StoreOrderDetail extends StoreOrderListItem {
1319
- }
1320
- interface OrderItemInput {
1321
- variantId: string;
1322
- productId: string;
1323
1242
  quantity: number;
1324
- }
1325
- interface CreateOrderParams extends AppScopedParams {
1326
- customerId: string;
1327
- sellerId: string;
1328
- items: OrderItemInput[];
1329
- shippingAddress?: OrderAddress;
1330
- billingAddress?: OrderAddress;
1331
- status?: OrderStatus;
1332
- paymentStatus?: PaymentStatus;
1333
- fulfillmentStatus?: FulfillmentStatus;
1334
- }
1335
- interface UpdateOrderParams extends EntityIdParams {
1336
- status?: OrderStatus;
1337
- paymentStatus?: PaymentStatus;
1338
- fulfillmentStatus?: FulfillmentStatus;
1339
- shippingAddress?: OrderAddress;
1340
- billingAddress?: OrderAddress;
1341
- }
1342
- interface DeleteOrderParams extends EntityIdParams {
1343
- }
1344
- interface GetOrderParams extends EntityIdParams {
1345
- }
1346
- interface ListOrdersParams extends SearchableListParams {
1347
- customerId?: string;
1348
- sellerId?: string;
1349
- status?: OrderStatus;
1350
- paymentStatus?: PaymentStatus;
1351
- fulfillmentStatus?: FulfillmentStatus;
1352
- }
1353
-
1354
- declare class OrderApi {
1355
- private readonly http;
1356
- constructor(http: HttpClient);
1357
- list(params: ListOrdersParams): Promise<ApiSuccessResponseWithMeta<StoreOrderListItem>>;
1358
- create(params: CreateOrderParams): Promise<ApiSuccessResponse<StoreOrderDetail>>;
1359
- get(params: GetOrderParams): Promise<ApiSuccessResponse<StoreOrderDetail>>;
1360
- update(params: UpdateOrderParams): Promise<ApiSuccessResponse<StoreOrderDetail>>;
1361
- delete(params: DeleteOrderParams): Promise<ApiSuccessResponse<{
1362
- deleted: boolean;
1363
- }>>;
1364
- }
1365
-
1366
- interface ProductImage {
1367
- url: string;
1368
- }
1369
- interface ProductImageFull {
1370
- id: string;
1371
- url: string;
1372
- imageId: string | null;
1373
- variantId: string;
1374
- sellerId: string;
1375
- appId: string;
1376
- }
1377
- interface ProductVariantOptionValue {
1378
- id: string;
1379
- text: string;
1380
- optionId: string | null;
1381
- }
1382
- interface ProductDimension {
1383
- length: number | null;
1384
- width: number | null;
1385
- height: number | null;
1386
- }
1387
- /**
1388
- * Variant in product list (minimal data)
1389
- */
1390
- interface ProductVariantListItem {
1391
- id: string;
1392
- price: number;
1393
- discountPrice: number | null;
1243
+ infinite: boolean;
1394
1244
  createdAt: string;
1395
1245
  images: ProductImage[];
1396
1246
  }
@@ -1553,28 +1403,78 @@ interface ListProductsParams extends SearchableListParams {
1553
1403
  status?: ProductStatus;
1554
1404
  }
1555
1405
 
1556
- declare class ProductApi {
1557
- private readonly http;
1558
- constructor(http: HttpClient);
1559
- list(params: ListProductsParams): Promise<ApiSuccessResponseWithMeta<StoreProductListItem>>;
1560
- create(params: CreateProductParams): Promise<ApiSuccessResponse<StoreProductDetail>>;
1561
- get(params: GetProductParams): Promise<ApiSuccessResponse<StoreProductDetail>>;
1562
- update(params: UpdateProductParams): Promise<ApiSuccessResponse<StoreProductDetail>>;
1563
- delete(params: DeleteProductParams): Promise<ApiSuccessResponse<{
1564
- deleted: boolean;
1565
- }>>;
1406
+ /**
1407
+ * Discount list item
1408
+ */
1409
+ interface StoreDiscountListItem {
1410
+ id: string;
1411
+ appId: string;
1412
+ sellerId: string | null;
1413
+ code: string;
1414
+ type: DiscountType;
1415
+ value: number;
1416
+ startsAt: string;
1417
+ endsAt: string | null;
1418
+ usageLimit: number | null;
1419
+ usedCount: number;
1420
+ minRequirement: DiscountMinRequirement;
1421
+ minQuantity: number | null;
1422
+ minAmount: number | null;
1423
+ appliesTo: DiscountAppliesTo;
1424
+ collectionIds: string[];
1425
+ productIds: string[];
1426
+ isActive: boolean;
1427
+ createdAt: string;
1428
+ updatedAt: string;
1566
1429
  }
1567
-
1568
- declare class SellerApi {
1569
- private readonly http;
1570
- constructor(http: HttpClient);
1571
- list(params: ListSellersParams): Promise<ApiSuccessResponse<StoreSellerListItem[]>>;
1572
- create(params: CreateSellerParams): Promise<ApiSuccessResponse<StoreSellerDetail>>;
1573
- get(params: GetSellerParams): Promise<ApiSuccessResponse<StoreSellerDetail>>;
1574
- update(params: UpdateSellerParams): Promise<ApiSuccessResponse<StoreSellerDetail>>;
1575
- delete(params: DeleteSellerParams): Promise<ApiSuccessResponse<{
1576
- deleted: boolean;
1577
- }>>;
1430
+ /**
1431
+ * Discount detail with products
1432
+ */
1433
+ interface StoreDiscountDetail extends StoreDiscountListItem {
1434
+ products: Array<{
1435
+ id: string;
1436
+ name: string;
1437
+ slug: string;
1438
+ }>;
1439
+ }
1440
+ interface CreateDiscountParams extends AppScopedParams {
1441
+ code: string;
1442
+ type: DiscountType;
1443
+ value: number;
1444
+ startsAt: string;
1445
+ endsAt?: string | null;
1446
+ usageLimit?: number | null;
1447
+ minRequirement?: DiscountMinRequirement;
1448
+ minQuantity?: number | null;
1449
+ minAmount?: number | null;
1450
+ appliesTo?: DiscountAppliesTo;
1451
+ collectionIds?: string[];
1452
+ productIds?: string[];
1453
+ sellerId?: string;
1454
+ isActive?: boolean;
1455
+ }
1456
+ interface UpdateDiscountParams extends EntityIdParams {
1457
+ code?: string;
1458
+ type?: DiscountType;
1459
+ value?: number;
1460
+ startsAt?: string;
1461
+ endsAt?: string | null;
1462
+ usageLimit?: number | null;
1463
+ minRequirement?: DiscountMinRequirement;
1464
+ minQuantity?: number | null;
1465
+ minAmount?: number | null;
1466
+ appliesTo?: DiscountAppliesTo;
1467
+ collectionIds?: string[];
1468
+ productIds?: string[];
1469
+ isActive?: boolean;
1470
+ }
1471
+ interface DeleteDiscountParams extends EntityIdParams {
1472
+ }
1473
+ interface GetDiscountParams extends EntityIdParams {
1474
+ }
1475
+ interface ListDiscountsParams extends SearchableListParams {
1476
+ sellerId?: string;
1477
+ isActive?: boolean;
1578
1478
  }
1579
1479
 
1580
1480
  /**
@@ -1657,140 +1557,160 @@ interface ListShippingProfilesParams extends AppScopedParams {
1657
1557
  sellerId?: string;
1658
1558
  }
1659
1559
 
1660
- declare class ShippingApi {
1661
- private readonly http;
1662
- constructor(http: HttpClient);
1663
- list(params: ListShippingProfilesParams): Promise<ApiSuccessResponse<StoreShippingProfileListItem[]>>;
1664
- create(params: CreateShippingProfileParams): Promise<ApiSuccessResponse<StoreShippingProfileDetail>>;
1665
- get(params: GetShippingProfileParams): Promise<ApiSuccessResponse<StoreShippingProfileDetail>>;
1666
- update(params: UpdateShippingProfileParams): Promise<ApiSuccessResponse<StoreShippingProfileDetail>>;
1667
- delete(params: DeleteShippingProfileParams): Promise<ApiSuccessResponse<{
1668
- deleted: boolean;
1669
- }>>;
1670
- }
1671
-
1672
1560
  /**
1673
- * Tag list item
1561
+ * Tax list item
1674
1562
  */
1675
- interface StoreTagListItem {
1563
+ interface StoreTaxListItem {
1676
1564
  id: string;
1677
- name: string;
1678
- sellerId: string | null;
1679
1565
  appId: string;
1680
- productIds: string[];
1566
+ sellerId: string;
1567
+ name: string;
1568
+ rate: number;
1569
+ country: string | null;
1570
+ region: string | null;
1571
+ isCompound: boolean;
1572
+ isShippingTaxable: boolean;
1681
1573
  createdAt: string;
1682
1574
  updatedAt: string;
1683
1575
  }
1684
1576
  /**
1685
- * Tag detail with product count
1577
+ * Tax detail with product count
1686
1578
  */
1687
- interface StoreTagDetail extends StoreTagListItem {
1579
+ interface StoreTaxDetail extends StoreTaxListItem {
1688
1580
  _count: {
1689
1581
  products: number;
1690
1582
  };
1691
1583
  }
1692
- interface CreateTagParams extends AppScopedParams {
1584
+ interface CreateTaxParams extends AppScopedParams {
1693
1585
  name: string;
1694
- sellerId?: string;
1586
+ rate: number;
1587
+ sellerId: string;
1588
+ country?: string | null;
1589
+ region?: string | null;
1590
+ isCompound?: boolean;
1591
+ isShippingTaxable?: boolean;
1695
1592
  }
1696
- interface UpdateTagParams extends EntityIdParams {
1697
- name: string;
1593
+ interface UpdateTaxParams extends EntityIdParams {
1594
+ name?: string;
1595
+ rate?: number;
1596
+ country?: string | null;
1597
+ region?: string | null;
1598
+ isCompound?: boolean;
1599
+ isShippingTaxable?: boolean;
1698
1600
  }
1699
- interface DeleteTagParams extends EntityIdParams {
1601
+ interface DeleteTaxParams extends EntityIdParams {
1700
1602
  }
1701
- interface GetTagParams extends EntityIdParams {
1603
+ interface GetTaxParams extends EntityIdParams {
1702
1604
  }
1703
- interface ListTagsParams extends SearchableListParams {
1605
+ interface ListTaxesParams extends AppScopedParams {
1704
1606
  sellerId?: string;
1705
1607
  }
1706
1608
 
1707
- declare class TagApi {
1708
- private readonly http;
1709
- constructor(http: HttpClient);
1710
- list(params: ListTagsParams): Promise<ApiSuccessResponseWithMeta<StoreTagListItem>>;
1711
- create(params: CreateTagParams): Promise<ApiSuccessResponse<StoreTagDetail>>;
1712
- get(params: GetTagParams): Promise<ApiSuccessResponse<StoreTagDetail>>;
1713
- update(params: UpdateTagParams): Promise<ApiSuccessResponse<StoreTagDetail>>;
1714
- delete(params: DeleteTagParams): Promise<ApiSuccessResponse<{
1715
- deleted: boolean;
1716
- }>>;
1609
+ interface OrderAddress {
1610
+ firstName: string;
1611
+ lastName: string;
1612
+ address1: string;
1613
+ address2?: string | null;
1614
+ city: string;
1615
+ country: string;
1616
+ zip?: string | null;
1617
+ phone?: string | null;
1618
+ }
1619
+ interface OrderCustomerSummary {
1620
+ id: string;
1621
+ fullname: string;
1622
+ telephone: string;
1623
+ }
1624
+ interface OrderSellerSummary {
1625
+ id: string;
1626
+ fullname: string;
1627
+ avatar: string | null;
1628
+ }
1629
+ interface OrderItemVariant {
1630
+ id: string;
1631
+ price: number;
1632
+ discountPrice: number | null;
1633
+ product: {
1634
+ id: string;
1635
+ name: string;
1636
+ slug: string;
1637
+ };
1638
+ images: Array<{
1639
+ url: string;
1640
+ }>;
1641
+ }
1642
+ interface OrderCartItem {
1643
+ id: string;
1644
+ variantId: string;
1645
+ productId: string;
1646
+ quantity: number;
1647
+ createdAt: string;
1648
+ updatedAt: string;
1649
+ orderId: string;
1650
+ variant: OrderItemVariant;
1717
1651
  }
1718
-
1719
1652
  /**
1720
- * Tax list item
1653
+ * Order list item with customer, seller, and items
1721
1654
  */
1722
- interface StoreTaxListItem {
1655
+ interface StoreOrderListItem {
1723
1656
  id: string;
1724
- appId: string;
1657
+ ref: string | null;
1658
+ total: number;
1659
+ subtotal: number;
1660
+ taxTotal: number;
1661
+ shippingTotal: number;
1662
+ discountTotal: number;
1663
+ status: OrderStatus;
1664
+ paymentStatus: PaymentStatus;
1665
+ fulfillmentStatus: FulfillmentStatus;
1666
+ shippingAddress: OrderAddress | null;
1667
+ billingAddress: OrderAddress | null;
1668
+ customerId: string;
1725
1669
  sellerId: string;
1726
- name: string;
1727
- rate: number;
1728
- country: string | null;
1729
- region: string | null;
1730
- isCompound: boolean;
1731
- isShippingTaxable: boolean;
1670
+ appId: string;
1732
1671
  createdAt: string;
1733
1672
  updatedAt: string;
1673
+ customer: OrderCustomerSummary;
1674
+ seller: OrderSellerSummary;
1675
+ items: OrderCartItem[];
1734
1676
  }
1735
1677
  /**
1736
- * Tax detail with product count
1678
+ * Order detail
1737
1679
  */
1738
- interface StoreTaxDetail extends StoreTaxListItem {
1739
- _count: {
1740
- products: number;
1741
- };
1680
+ interface StoreOrderDetail extends StoreOrderListItem {
1742
1681
  }
1743
- interface CreateTaxParams extends AppScopedParams {
1744
- name: string;
1745
- rate: number;
1682
+ interface OrderItemInput {
1683
+ variantId: string;
1684
+ productId: string;
1685
+ quantity: number;
1686
+ }
1687
+ interface CreateOrderParams extends AppScopedParams {
1688
+ customerId: string;
1746
1689
  sellerId: string;
1747
- country?: string | null;
1748
- region?: string | null;
1749
- isCompound?: boolean;
1750
- isShippingTaxable?: boolean;
1690
+ items: OrderItemInput[];
1691
+ shippingAddress?: OrderAddress;
1692
+ billingAddress?: OrderAddress;
1693
+ status?: OrderStatus;
1694
+ paymentStatus?: PaymentStatus;
1695
+ fulfillmentStatus?: FulfillmentStatus;
1751
1696
  }
1752
- interface UpdateTaxParams extends EntityIdParams {
1753
- name?: string;
1754
- rate?: number;
1755
- country?: string | null;
1756
- region?: string | null;
1757
- isCompound?: boolean;
1758
- isShippingTaxable?: boolean;
1697
+ interface UpdateOrderParams extends EntityIdParams {
1698
+ status?: OrderStatus;
1699
+ paymentStatus?: PaymentStatus;
1700
+ fulfillmentStatus?: FulfillmentStatus;
1701
+ shippingAddress?: OrderAddress;
1702
+ billingAddress?: OrderAddress;
1759
1703
  }
1760
- interface DeleteTaxParams extends EntityIdParams {
1704
+ interface DeleteOrderParams extends EntityIdParams {
1761
1705
  }
1762
- interface GetTaxParams extends EntityIdParams {
1706
+ interface GetOrderParams extends EntityIdParams {
1763
1707
  }
1764
- interface ListTaxesParams extends AppScopedParams {
1708
+ interface ListOrdersParams extends SearchableListParams {
1709
+ customerId?: string;
1765
1710
  sellerId?: string;
1766
- }
1767
-
1768
- declare class TaxApi {
1769
- private readonly http;
1770
- constructor(http: HttpClient);
1771
- list(params: ListTaxesParams): Promise<ApiSuccessResponse<StoreTaxListItem[]>>;
1772
- create(params: CreateTaxParams): Promise<ApiSuccessResponse<StoreTaxDetail>>;
1773
- get(params: GetTaxParams): Promise<ApiSuccessResponse<StoreTaxDetail>>;
1774
- update(params: UpdateTaxParams): Promise<ApiSuccessResponse<StoreTaxDetail>>;
1775
- delete(params: DeleteTaxParams): Promise<ApiSuccessResponse<{
1776
- deleted: boolean;
1777
- }>>;
1778
- }
1779
-
1780
- declare class StoreApi {
1781
- private readonly http;
1782
- readonly badge: BadgeApi;
1783
- readonly category: CategoryApi;
1784
- readonly collection: CollectionApi;
1785
- readonly discount: DiscountApi;
1786
- readonly option: OptionApi;
1787
- readonly order: OrderApi;
1788
- readonly product: ProductApi;
1789
- readonly seller: SellerApi;
1790
- readonly shipping: ShippingApi;
1791
- readonly tag: TagApi;
1792
- readonly tax: TaxApi;
1793
- constructor(http: HttpClient);
1711
+ status?: OrderStatus;
1712
+ paymentStatus?: PaymentStatus;
1713
+ fulfillmentStatus?: FulfillmentStatus;
1794
1714
  }
1795
1715
 
1796
1716
  /**
@@ -2040,18 +1960,6 @@ interface ListAgentsParams extends AppScopedParams {
2040
1960
  isActive?: boolean;
2041
1961
  }
2042
1962
 
2043
- declare class AgentApi {
2044
- private readonly http;
2045
- constructor(http: HttpClient);
2046
- list(params: ListAgentsParams): Promise<ApiSuccessResponse<MultiServiceAgentListItem[]>>;
2047
- create(params: CreateAgentParams): Promise<ApiSuccessResponse<MultiServiceAgentDetail>>;
2048
- get(params: GetAgentParams): Promise<ApiSuccessResponse<MultiServiceAgentDetail>>;
2049
- update(params: UpdateAgentParams): Promise<ApiSuccessResponse<MultiServiceAgentDetail>>;
2050
- delete(params: DeleteAgentParams): Promise<ApiSuccessResponse<{
2051
- deleted: boolean;
2052
- }>>;
2053
- }
2054
-
2055
1963
  /**
2056
1964
  * Customer summary for appointment display
2057
1965
  */
@@ -2116,40 +2024,6 @@ interface ListAppointmentsParams extends AppScopedParams {
2116
2024
  status?: AppointmentStatus;
2117
2025
  }
2118
2026
 
2119
- declare class AppointmentApi {
2120
- private readonly http;
2121
- constructor(http: HttpClient);
2122
- create(params: CreateAppointmentParams): Promise<ApiSuccessResponse<MultiServiceAppointmentDetail>>;
2123
- list(params: ListAppointmentsParams): Promise<ApiSuccessResponse<MultiServiceAppointmentListItem[]>>;
2124
- updateStatus(params: UpdateAppointmentStatusParams): Promise<ApiSuccessResponse<MultiServiceAppointmentDetail>>;
2125
- get(params: GetAppointmentParams): Promise<ApiSuccessResponse<MultiServiceAppointmentDetail>>;
2126
- assignAgent(params: UpdateAppointmentAgentParams): Promise<ApiSuccessResponse<MultiServiceAppointmentDetail>>;
2127
- }
2128
-
2129
- declare class CompanyApi {
2130
- private readonly http;
2131
- constructor(http: HttpClient);
2132
- list(params: ListCompaniesParams): Promise<ApiSuccessResponse<MultiServiceCompanyListItem[]>>;
2133
- create(params: CreateCompanyParams): Promise<ApiSuccessResponse<MultiServiceCompanyDetail>>;
2134
- get(params: GetCompanyParams): Promise<ApiSuccessResponse<MultiServiceCompanyDetail>>;
2135
- update(params: UpdateCompanyParams): Promise<ApiSuccessResponse<MultiServiceCompanyDetail>>;
2136
- delete(params: DeleteCompanyParams): Promise<ApiSuccessResponse<{
2137
- deleted: boolean;
2138
- }>>;
2139
- }
2140
-
2141
- declare class ServiceApi {
2142
- private readonly http;
2143
- constructor(http: HttpClient);
2144
- list(params: ListServicesParams): Promise<ApiSuccessResponse<MultiServiceServiceListItem[]>>;
2145
- create(params: CreateServiceParams): Promise<ApiSuccessResponse<MultiServiceServiceDetail>>;
2146
- get(params: GetServiceParams): Promise<ApiSuccessResponse<MultiServiceServiceDetail>>;
2147
- update(params: UpdateServiceParams): Promise<ApiSuccessResponse<MultiServiceServiceDetail>>;
2148
- delete(params: DeleteServiceParams): Promise<ApiSuccessResponse<{
2149
- deleted: boolean;
2150
- }>>;
2151
- }
2152
-
2153
2027
  interface MultiServiceFieldOptionTemplate {
2154
2028
  id: string;
2155
2029
  templateId: string;
@@ -2214,27 +2088,6 @@ interface DeleteFieldTemplateParams extends AppScopedParams {
2214
2088
  id: string;
2215
2089
  }
2216
2090
 
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
-
2228
- declare class MultiServiceApi {
2229
- private readonly http;
2230
- readonly company: CompanyApi;
2231
- readonly service: ServiceApi;
2232
- readonly appointment: AppointmentApi;
2233
- readonly agent: AgentApi;
2234
- readonly fieldTemplate: FieldTemplateApi;
2235
- constructor(http: HttpClient);
2236
- }
2237
-
2238
2091
  type SuperAdminRole = "ROOT" | "ADMIN" | "VIEWER";
2239
2092
  interface SuperAdminUser {
2240
2093
  id: string;
@@ -2366,76 +2219,19 @@ interface SuperAdminNotificationSendResponse {
2366
2219
  targetCount?: number | null;
2367
2220
  }
2368
2221
 
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;
2222
+ type DuTicOTacOfferType = "STATIC" | "DYNAMIC";
2223
+ interface DuticotacOffer {
2224
+ id: string;
2225
+ name: string;
2226
+ ref: string;
2227
+ refHash?: string | null;
2228
+ price: number;
2229
+ type: DuTicOTacOfferType;
2230
+ description?: string | null;
2231
+ platform: PlateformType;
2232
+ createdAt: string;
2233
+ updatedAt: string;
2234
+ appId: string;
2439
2235
  }
2440
2236
  interface CreateDuticotacOfferParams extends AppScopedParams {
2441
2237
  name: string;
@@ -2499,40 +2295,6 @@ interface DuticotacTransaction {
2499
2295
  updatedAt: string;
2500
2296
  }
2501
2297
 
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
2298
  type KolaboPartnerTransactionType = "ALL" | "REVENUE" | "WITHDRAWAL";
2537
2299
  type KolaboPaymentMethod = "OM_CI" | "MTN_CI" | "MOOV_CI" | "WAVE_CI";
2538
2300
  type KolaboWithdrawStatus = "FAILED" | "SUCCESSFUL";
@@ -2693,50 +2455,6 @@ interface CheckKolaboPartnerParams {
2693
2455
  phone: string;
2694
2456
  }
2695
2457
 
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
2458
  interface CronNotificationParams {
2741
2459
  [key: string]: unknown;
2742
2460
  }
@@ -2772,6 +2490,497 @@ interface CleanupTransactionsResult {
2772
2490
  count: number;
2773
2491
  }
2774
2492
 
2493
+ type TestimonyStatus = "PENDING" | "APPROVED" | "REJECTED";
2494
+ interface Testimony {
2495
+ id: string;
2496
+ appId: string;
2497
+ customerId: string | null;
2498
+ name: string;
2499
+ photo: string | null;
2500
+ photoId: string | null;
2501
+ company: string | null;
2502
+ role: string | null;
2503
+ rating: number;
2504
+ comment: string;
2505
+ status: TestimonyStatus;
2506
+ sortOrder: number;
2507
+ isFeatured: boolean;
2508
+ createdAt: string;
2509
+ updatedAt: string;
2510
+ }
2511
+ interface PublicTestimony {
2512
+ id: string;
2513
+ name: string;
2514
+ photo: string | null;
2515
+ company: string | null;
2516
+ role: string | null;
2517
+ rating: number;
2518
+ comment: string;
2519
+ isFeatured: boolean;
2520
+ createdAt: string;
2521
+ }
2522
+ interface CreateTestimonyParams extends AppScopedParams {
2523
+ name: string;
2524
+ photo?: string | null;
2525
+ photoId?: string | null;
2526
+ company?: string | null;
2527
+ role?: string | null;
2528
+ rating?: number;
2529
+ comment: string;
2530
+ status?: TestimonyStatus;
2531
+ sortOrder?: number;
2532
+ isFeatured?: boolean;
2533
+ }
2534
+ interface EditTestimonyParams extends AppScopedParams {
2535
+ id: string;
2536
+ name?: string | null;
2537
+ photo?: string | null;
2538
+ photoId?: string | null;
2539
+ company?: string | null;
2540
+ role?: string | null;
2541
+ rating?: number | null;
2542
+ comment?: string | null;
2543
+ status?: TestimonyStatus | null;
2544
+ sortOrder?: number | null;
2545
+ isFeatured?: boolean | null;
2546
+ }
2547
+ interface UpdateTestimonyStatusParams extends AppScopedParams {
2548
+ id: string;
2549
+ status: TestimonyStatus;
2550
+ }
2551
+ interface ListTestimoniesParams extends ListParams {
2552
+ status?: TestimonyStatus | null;
2553
+ isFeatured?: boolean | null;
2554
+ search?: string | null;
2555
+ }
2556
+ interface GetTestimonyByIdParams extends AppScopedParams {
2557
+ id: string;
2558
+ }
2559
+ interface DeleteTestimonyParams extends AppScopedParams {
2560
+ id: string;
2561
+ }
2562
+ interface CustomerSubmitTestimonyParams {
2563
+ appApiKey: string;
2564
+ customerApiKey: string;
2565
+ name: string;
2566
+ photo?: string | null;
2567
+ photoId?: string | null;
2568
+ company?: string | null;
2569
+ role?: string | null;
2570
+ rating?: number;
2571
+ comment: string;
2572
+ }
2573
+ interface PublicListTestimoniesParams {
2574
+ appApiKey: string;
2575
+ isFeatured?: boolean | null;
2576
+ limit?: number;
2577
+ }
2578
+
2579
+ interface TestimonyListResponse {
2580
+ testimonies: Testimony[];
2581
+ pagination: PaginationMeta;
2582
+ }
2583
+ declare class TestimonyApi {
2584
+ private readonly http;
2585
+ constructor(http: HttpClient);
2586
+ /**
2587
+ * Admin: Create a new testimony
2588
+ */
2589
+ create(params: CreateTestimonyParams): Promise<ApiSuccessResponse<Testimony>>;
2590
+ /**
2591
+ * Admin: List testimonies with filters and pagination
2592
+ */
2593
+ list(params: ListTestimoniesParams): Promise<ApiSuccessResponse<TestimonyListResponse>>;
2594
+ /**
2595
+ * Admin: Get a single testimony by ID
2596
+ */
2597
+ getById(params: GetTestimonyByIdParams): Promise<ApiSuccessResponse<Testimony>>;
2598
+ /**
2599
+ * Admin: Update a testimony
2600
+ */
2601
+ update(params: EditTestimonyParams): Promise<ApiSuccessResponse<Testimony>>;
2602
+ /**
2603
+ * Admin: Delete a testimony
2604
+ */
2605
+ delete(params: DeleteTestimonyParams): Promise<ApiSuccessResponse<{
2606
+ deleted: boolean;
2607
+ }>>;
2608
+ /**
2609
+ * Admin: Update testimony status (approve/reject)
2610
+ */
2611
+ updateStatus(params: UpdateTestimonyStatusParams): Promise<ApiSuccessResponse<Testimony>>;
2612
+ /**
2613
+ * Customer: Submit a new testimony (status will be PENDING)
2614
+ */
2615
+ submit(params: CustomerSubmitTestimonyParams): Promise<ApiSuccessResponse<Testimony>>;
2616
+ /**
2617
+ * Public: List approved testimonies
2618
+ */
2619
+ listPublic(params: PublicListTestimoniesParams): Promise<ApiSuccessResponse<PublicTestimony[]>>;
2620
+ }
2621
+
2622
+ declare class BadgeApi {
2623
+ private readonly http;
2624
+ constructor(http: HttpClient);
2625
+ list(params: ListBadgesParams): Promise<ApiSuccessResponse<StoreBadgeListItem[]>>;
2626
+ create(params: CreateBadgeParams): Promise<ApiSuccessResponse<StoreBadgeDetail>>;
2627
+ get(params: GetBadgeParams): Promise<ApiSuccessResponse<StoreBadgeDetail>>;
2628
+ update(params: UpdateBadgeParams): Promise<ApiSuccessResponse<StoreBadgeDetail>>;
2629
+ delete(params: DeleteBadgeParams): Promise<ApiSuccessResponse<{
2630
+ deleted: boolean;
2631
+ }>>;
2632
+ }
2633
+
2634
+ declare class CartApi {
2635
+ private readonly http;
2636
+ constructor(http: HttpClient);
2637
+ create(params: CreateCartParams): Promise<ApiSuccessResponse<StoreCart>>;
2638
+ get(params: GetCartParams): Promise<ApiSuccessResponse<StoreCart>>;
2639
+ addItem(params: AddCartItemParams): Promise<ApiSuccessResponse<StoreCart>>;
2640
+ updateItem(params: UpdateCartItemParams): Promise<ApiSuccessResponse<StoreCart>>;
2641
+ removeItem(params: RemoveCartItemParams): Promise<ApiSuccessResponse<StoreCart>>;
2642
+ calculateTotals(params: CalculateCartTotalsParams): Promise<ApiSuccessResponse<CartTotals>>;
2643
+ }
2644
+
2645
+ declare class CategoryApi {
2646
+ private readonly http;
2647
+ constructor(http: HttpClient);
2648
+ list(params: ListCategoriesParams): Promise<ApiSuccessResponseWithMeta<StoreCategoryListItem>>;
2649
+ create(params: CreateCategoryParams): Promise<ApiSuccessResponse<StoreCategoryDetail>>;
2650
+ get(params: GetCategoryParams): Promise<ApiSuccessResponse<StoreCategoryDetail>>;
2651
+ update(params: UpdateCategoryParams): Promise<ApiSuccessResponse<StoreCategoryDetail>>;
2652
+ delete(params: DeleteCategoryParams): Promise<ApiSuccessResponse<{
2653
+ deleted: boolean;
2654
+ }>>;
2655
+ }
2656
+
2657
+ declare class CollectionApi {
2658
+ private readonly http;
2659
+ constructor(http: HttpClient);
2660
+ list(params: ListCollectionsParams): Promise<ApiSuccessResponseWithMeta<StoreCollectionListItem>>;
2661
+ create(params: CreateCollectionParams): Promise<ApiSuccessResponse<StoreCollectionDetail>>;
2662
+ get(params: GetCollectionParams): Promise<ApiSuccessResponse<StoreCollectionDetail>>;
2663
+ update(params: UpdateCollectionParams): Promise<ApiSuccessResponse<StoreCollectionDetail>>;
2664
+ delete(params: DeleteCollectionParams): Promise<ApiSuccessResponse<{
2665
+ deleted: boolean;
2666
+ }>>;
2667
+ }
2668
+
2669
+ declare class DiscountApi {
2670
+ private readonly http;
2671
+ constructor(http: HttpClient);
2672
+ list(params: ListDiscountsParams): Promise<ApiSuccessResponseWithMeta<StoreDiscountListItem>>;
2673
+ create(params: CreateDiscountParams): Promise<ApiSuccessResponse<StoreDiscountDetail>>;
2674
+ get(params: GetDiscountParams): Promise<ApiSuccessResponse<StoreDiscountDetail>>;
2675
+ update(params: UpdateDiscountParams): Promise<ApiSuccessResponse<StoreDiscountDetail>>;
2676
+ delete(params: DeleteDiscountParams): Promise<ApiSuccessResponse<{
2677
+ deleted: boolean;
2678
+ }>>;
2679
+ }
2680
+
2681
+ declare class OptionApi {
2682
+ private readonly http;
2683
+ constructor(http: HttpClient);
2684
+ list(params: ListOptionsParams): Promise<ApiSuccessResponse<StoreOptionListItem[]>>;
2685
+ create(params: CreateOptionParams): Promise<ApiSuccessResponse<StoreOptionDetail>>;
2686
+ get(params: GetOptionParams): Promise<ApiSuccessResponse<StoreOptionDetail>>;
2687
+ update(params: UpdateOptionParams): Promise<ApiSuccessResponse<StoreOptionDetail>>;
2688
+ delete(params: DeleteOptionParams): Promise<ApiSuccessResponse<{
2689
+ deleted: boolean;
2690
+ }>>;
2691
+ }
2692
+
2693
+ declare class OrderApi {
2694
+ private readonly http;
2695
+ constructor(http: HttpClient);
2696
+ list(params: ListOrdersParams): Promise<ApiSuccessResponseWithMeta<StoreOrderListItem>>;
2697
+ create(params: CreateOrderParams): Promise<ApiSuccessResponse<StoreOrderDetail>>;
2698
+ get(params: GetOrderParams): Promise<ApiSuccessResponse<StoreOrderDetail>>;
2699
+ update(params: UpdateOrderParams): Promise<ApiSuccessResponse<StoreOrderDetail>>;
2700
+ delete(params: DeleteOrderParams): Promise<ApiSuccessResponse<{
2701
+ deleted: boolean;
2702
+ }>>;
2703
+ }
2704
+
2705
+ declare class ProductApi {
2706
+ private readonly http;
2707
+ constructor(http: HttpClient);
2708
+ list(params: ListProductsParams): Promise<ApiSuccessResponseWithMeta<StoreProductListItem>>;
2709
+ create(params: CreateProductParams): Promise<ApiSuccessResponse<StoreProductDetail>>;
2710
+ get(params: GetProductParams): Promise<ApiSuccessResponse<StoreProductDetail>>;
2711
+ update(params: UpdateProductParams): Promise<ApiSuccessResponse<StoreProductDetail>>;
2712
+ delete(params: DeleteProductParams): Promise<ApiSuccessResponse<{
2713
+ deleted: boolean;
2714
+ }>>;
2715
+ }
2716
+
2717
+ declare class SellerApi {
2718
+ private readonly http;
2719
+ constructor(http: HttpClient);
2720
+ list(params: ListSellersParams): Promise<ApiSuccessResponse<StoreSellerListItem[]>>;
2721
+ create(params: CreateSellerParams): Promise<ApiSuccessResponse<StoreSellerDetail>>;
2722
+ get(params: GetSellerParams): Promise<ApiSuccessResponse<StoreSellerDetail>>;
2723
+ update(params: UpdateSellerParams): Promise<ApiSuccessResponse<StoreSellerDetail>>;
2724
+ delete(params: DeleteSellerParams): Promise<ApiSuccessResponse<{
2725
+ deleted: boolean;
2726
+ }>>;
2727
+ }
2728
+
2729
+ declare class ShippingApi {
2730
+ private readonly http;
2731
+ constructor(http: HttpClient);
2732
+ list(params: ListShippingProfilesParams): Promise<ApiSuccessResponse<StoreShippingProfileListItem[]>>;
2733
+ create(params: CreateShippingProfileParams): Promise<ApiSuccessResponse<StoreShippingProfileDetail>>;
2734
+ get(params: GetShippingProfileParams): Promise<ApiSuccessResponse<StoreShippingProfileDetail>>;
2735
+ update(params: UpdateShippingProfileParams): Promise<ApiSuccessResponse<StoreShippingProfileDetail>>;
2736
+ delete(params: DeleteShippingProfileParams): Promise<ApiSuccessResponse<{
2737
+ deleted: boolean;
2738
+ }>>;
2739
+ }
2740
+
2741
+ declare class TagApi {
2742
+ private readonly http;
2743
+ constructor(http: HttpClient);
2744
+ list(params: ListTagsParams): Promise<ApiSuccessResponseWithMeta<StoreTagListItem>>;
2745
+ create(params: CreateTagParams): Promise<ApiSuccessResponse<StoreTagDetail>>;
2746
+ get(params: GetTagParams): Promise<ApiSuccessResponse<StoreTagDetail>>;
2747
+ update(params: UpdateTagParams): Promise<ApiSuccessResponse<StoreTagDetail>>;
2748
+ delete(params: DeleteTagParams): Promise<ApiSuccessResponse<{
2749
+ deleted: boolean;
2750
+ }>>;
2751
+ }
2752
+
2753
+ declare class TaxApi {
2754
+ private readonly http;
2755
+ constructor(http: HttpClient);
2756
+ list(params: ListTaxesParams): Promise<ApiSuccessResponse<StoreTaxListItem[]>>;
2757
+ create(params: CreateTaxParams): Promise<ApiSuccessResponse<StoreTaxDetail>>;
2758
+ get(params: GetTaxParams): Promise<ApiSuccessResponse<StoreTaxDetail>>;
2759
+ update(params: UpdateTaxParams): Promise<ApiSuccessResponse<StoreTaxDetail>>;
2760
+ delete(params: DeleteTaxParams): Promise<ApiSuccessResponse<{
2761
+ deleted: boolean;
2762
+ }>>;
2763
+ }
2764
+
2765
+ declare class StoreApi {
2766
+ private readonly http;
2767
+ readonly badge: BadgeApi;
2768
+ readonly cart: CartApi;
2769
+ readonly category: CategoryApi;
2770
+ readonly collection: CollectionApi;
2771
+ readonly discount: DiscountApi;
2772
+ readonly option: OptionApi;
2773
+ readonly order: OrderApi;
2774
+ readonly product: ProductApi;
2775
+ readonly seller: SellerApi;
2776
+ readonly shipping: ShippingApi;
2777
+ readonly tag: TagApi;
2778
+ readonly tax: TaxApi;
2779
+ constructor(http: HttpClient);
2780
+ }
2781
+
2782
+ declare class AgentApi {
2783
+ private readonly http;
2784
+ constructor(http: HttpClient);
2785
+ list(params: ListAgentsParams): Promise<ApiSuccessResponse<MultiServiceAgentListItem[]>>;
2786
+ create(params: CreateAgentParams): Promise<ApiSuccessResponse<MultiServiceAgentDetail>>;
2787
+ get(params: GetAgentParams): Promise<ApiSuccessResponse<MultiServiceAgentDetail>>;
2788
+ update(params: UpdateAgentParams): Promise<ApiSuccessResponse<MultiServiceAgentDetail>>;
2789
+ delete(params: DeleteAgentParams): Promise<ApiSuccessResponse<{
2790
+ deleted: boolean;
2791
+ }>>;
2792
+ }
2793
+
2794
+ declare class AppointmentApi {
2795
+ private readonly http;
2796
+ constructor(http: HttpClient);
2797
+ create(params: CreateAppointmentParams): Promise<ApiSuccessResponse<MultiServiceAppointmentDetail>>;
2798
+ list(params: ListAppointmentsParams): Promise<ApiSuccessResponse<MultiServiceAppointmentListItem[]>>;
2799
+ updateStatus(params: UpdateAppointmentStatusParams): Promise<ApiSuccessResponse<MultiServiceAppointmentDetail>>;
2800
+ get(params: GetAppointmentParams): Promise<ApiSuccessResponse<MultiServiceAppointmentDetail>>;
2801
+ assignAgent(params: UpdateAppointmentAgentParams): Promise<ApiSuccessResponse<MultiServiceAppointmentDetail>>;
2802
+ }
2803
+
2804
+ declare class CompanyApi {
2805
+ private readonly http;
2806
+ constructor(http: HttpClient);
2807
+ list(params: ListCompaniesParams): Promise<ApiSuccessResponse<MultiServiceCompanyListItem[]>>;
2808
+ create(params: CreateCompanyParams): Promise<ApiSuccessResponse<MultiServiceCompanyDetail>>;
2809
+ get(params: GetCompanyParams): Promise<ApiSuccessResponse<MultiServiceCompanyDetail>>;
2810
+ update(params: UpdateCompanyParams): Promise<ApiSuccessResponse<MultiServiceCompanyDetail>>;
2811
+ delete(params: DeleteCompanyParams): Promise<ApiSuccessResponse<{
2812
+ deleted: boolean;
2813
+ }>>;
2814
+ }
2815
+
2816
+ declare class ServiceApi {
2817
+ private readonly http;
2818
+ constructor(http: HttpClient);
2819
+ list(params: ListServicesParams): Promise<ApiSuccessResponse<MultiServiceServiceListItem[]>>;
2820
+ create(params: CreateServiceParams): Promise<ApiSuccessResponse<MultiServiceServiceDetail>>;
2821
+ get(params: GetServiceParams): Promise<ApiSuccessResponse<MultiServiceServiceDetail>>;
2822
+ update(params: UpdateServiceParams): Promise<ApiSuccessResponse<MultiServiceServiceDetail>>;
2823
+ delete(params: DeleteServiceParams): Promise<ApiSuccessResponse<{
2824
+ deleted: boolean;
2825
+ }>>;
2826
+ }
2827
+
2828
+ declare class FieldTemplateApi {
2829
+ private readonly http;
2830
+ constructor(http: HttpClient);
2831
+ list(params: ListFieldTemplatesParams): Promise<ApiSuccessResponse<MultiServiceFieldTemplate[]>>;
2832
+ create(params: CreateFieldTemplateParams): Promise<ApiSuccessResponse<MultiServiceFieldTemplate>>;
2833
+ update(params: UpdateFieldTemplateParams): Promise<ApiSuccessResponse<MultiServiceFieldTemplate>>;
2834
+ delete(params: DeleteFieldTemplateParams): Promise<ApiSuccessResponse<{
2835
+ deleted: boolean;
2836
+ }>>;
2837
+ }
2838
+
2839
+ declare class MultiServiceApi {
2840
+ private readonly http;
2841
+ readonly company: CompanyApi;
2842
+ readonly service: ServiceApi;
2843
+ readonly appointment: AppointmentApi;
2844
+ readonly agent: AgentApi;
2845
+ readonly fieldTemplate: FieldTemplateApi;
2846
+ constructor(http: HttpClient);
2847
+ }
2848
+
2849
+ declare class SuperAdminAppsApi {
2850
+ private readonly http;
2851
+ constructor(http: HttpClient);
2852
+ list(params: SuperAdminAppListParams): Promise<ApiSuccessResponse<SuperAdminAppListResponse>>;
2853
+ }
2854
+
2855
+ declare class SuperAdminAuthApi {
2856
+ private readonly http;
2857
+ constructor(http: HttpClient);
2858
+ init(params: SuperAdminInitParams): Promise<ApiSuccessResponse<SuperAdminUser>>;
2859
+ signin(params: SuperAdminSigninParams): Promise<ApiSuccessResponse<SuperAdminUser>>;
2860
+ me(params: SuperAdminMeParams): Promise<ApiSuccessResponse<SuperAdminUser>>;
2861
+ }
2862
+
2863
+ declare class SuperAdminFinanceApi {
2864
+ private readonly http;
2865
+ constructor(http: HttpClient);
2866
+ transactions(params: SuperAdminTransactionListParams): Promise<ApiSuccessResponse<SuperAdminTransactionListResponse>>;
2867
+ withdraw(params: SuperAdminWithdrawParams): Promise<ApiSuccessResponse<SuperAdminWithdrawResponse>>;
2868
+ }
2869
+
2870
+ declare class SuperAdminModulesApi {
2871
+ private readonly http;
2872
+ constructor(http: HttpClient);
2873
+ list(params: SuperAdminModulesListParams): Promise<ApiSuccessResponse<SuperAdminPlatformModule[]>>;
2874
+ update(params: SuperAdminModuleUpdateParams): Promise<ApiSuccessResponse<SuperAdminPlatformModule>>;
2875
+ }
2876
+
2877
+ declare class SuperAdminNotificationApi {
2878
+ private readonly http;
2879
+ constructor(http: HttpClient);
2880
+ send(params: SuperAdminNotificationSendParams): Promise<ApiSuccessResponse<SuperAdminNotificationSendResponse>>;
2881
+ }
2882
+
2883
+ declare class SuperAdminStatsApi {
2884
+ private readonly http;
2885
+ constructor(http: HttpClient);
2886
+ fetch(params: SuperAdminStatsParams): Promise<ApiSuccessResponse<SuperAdminStats>>;
2887
+ }
2888
+
2889
+ declare class SuperAdminApi {
2890
+ private readonly http;
2891
+ readonly auth: SuperAdminAuthApi;
2892
+ readonly apps: SuperAdminAppsApi;
2893
+ readonly modules: SuperAdminModulesApi;
2894
+ readonly stats: SuperAdminStatsApi;
2895
+ readonly finance: SuperAdminFinanceApi;
2896
+ readonly notification: SuperAdminNotificationApi;
2897
+ constructor(http: HttpClient);
2898
+ }
2899
+
2900
+ declare class DuticotacBalanceApi {
2901
+ private readonly http;
2902
+ constructor(http: HttpClient);
2903
+ get(params: AppScopedParams): Promise<ApiSuccessResponse<number>>;
2904
+ }
2905
+
2906
+ declare class DuticotacOfferApi {
2907
+ private readonly http;
2908
+ constructor(http: HttpClient);
2909
+ create(params: CreateDuticotacOfferParams): Promise<ApiSuccessResponse<DuticotacOffer>>;
2910
+ edit(params: EditDuticotacOfferParams): Promise<ApiSuccessResponse<DuticotacOffer>>;
2911
+ delete(ref: string, params: AppScopedParams): Promise<ApiSuccessResponse<unknown>>;
2912
+ list(params: AppScopedParams): Promise<ApiSuccessResponse<DuticotacOffer[]>>;
2913
+ get(ref: string, params: AppScopedParams): Promise<ApiSuccessResponse<DuticotacOffer>>;
2914
+ }
2915
+
2916
+ declare class DuticotacPaymentApi {
2917
+ private readonly http;
2918
+ constructor(http: HttpClient);
2919
+ cashIn(params: CashInParams): Promise<ApiSuccessResponse<unknown>>;
2920
+ cashOut(params: CashOutParams): Promise<ApiSuccessResponse<unknown>>;
2921
+ setPaymentMethods(params: PaymentMethodSetParams): Promise<ApiSuccessResponse<unknown>>;
2922
+ getPaymentMethods(params: GetPaymentMethodsParams): Promise<ApiSuccessResponse<TransactionProvider[]>>;
2923
+ }
2924
+
2925
+ declare class DuticotacTransactionApi {
2926
+ private readonly http;
2927
+ constructor(http: HttpClient);
2928
+ get(params: DuticotacTransactionGetParams): Promise<ApiSuccessResponse<DuticotacTransaction>>;
2929
+ }
2930
+
2931
+ declare class DuticotacApi {
2932
+ private readonly http;
2933
+ readonly balance: DuticotacBalanceApi;
2934
+ readonly offer: DuticotacOfferApi;
2935
+ readonly payment: DuticotacPaymentApi;
2936
+ readonly transaction: DuticotacTransactionApi;
2937
+ constructor(http: HttpClient);
2938
+ }
2939
+
2940
+ declare class KolaboAppApi {
2941
+ private readonly http;
2942
+ constructor(http: HttpClient);
2943
+ configure(slug: string, params: ConfigureKolaboAppParams): Promise<ApiSuccessResponse<KolaboApp>>;
2944
+ join(slug: string, params: AppScopedParams): Promise<ApiSuccessResponse<KolaboApp>>;
2945
+ getBySlug(slug: string, params: ApiKeyParams): Promise<ApiSuccessResponse<KolaboApp>>;
2946
+ get(slug: string, params: AppScopedParams): Promise<ApiSuccessResponse<KolaboApp>>;
2947
+ list(params: ApiKeyParams): Promise<ApiSuccessResponse<KolaboApp[]>>;
2948
+ }
2949
+
2950
+ declare class KolaboCustomerApi {
2951
+ private readonly http;
2952
+ constructor(http: HttpClient);
2953
+ create(params: CreateKolaboCustomerParams): Promise<ApiSuccessResponse<KolaboCustomer>>;
2954
+ createPartnership(params: CreateKolaboCustomerPartnershipParams): Promise<ApiSuccessResponse<unknown>>;
2955
+ }
2956
+
2957
+ declare class KolaboPartnerApi {
2958
+ private readonly http;
2959
+ constructor(http: HttpClient);
2960
+ signUp(params: SignUpKolaboPartnerParams): Promise<ApiSuccessResponse<KolaboPartner>>;
2961
+ check(params: CheckKolaboPartnerParams): Promise<ApiSuccessResponse<KolaboPartner | null>>;
2962
+ get(id: string, params: ApiKeyParams): Promise<ApiSuccessResponse<KolaboPartner>>;
2963
+ editProfile(id: string, params: EditKolaboPartnerProfileParams): Promise<ApiSuccessResponse<KolaboPartner>>;
2964
+ getLink(id: string, params: AddKolaboAppToPartnerParams): Promise<ApiSuccessResponse<KolaboPartnerShip>>;
2965
+ getPartnership(id: string, params: AddKolaboAppToPartnerParams): Promise<ApiSuccessResponse<KolaboPartnerShip | null>>;
2966
+ setPin(id: string, params: SetPinParams): Promise<ApiSuccessResponse<unknown>>;
2967
+ cancelPartnership(id: string, params: AddKolaboAppToPartnerParams): Promise<ApiSuccessResponse<boolean>>;
2968
+ delete(id: string, params: DeleteKolaboPartnerParams): Promise<ApiSuccessResponse<boolean>>;
2969
+ apps(id: string, params: GetKolaboPartnerAppsParams): Promise<ApiSuccessResponse<KolaboApp[]>>;
2970
+ listTransactions(id: string, params: ListKolaboPartnerTransactionsParams): Promise<ApiSuccessResponse<KolaboPartnerTransactionListItem[]>>;
2971
+ transaction(id: string, params: GetKolaboPartnerTransactionParams): Promise<ApiSuccessResponse<KolaboPartnerTransactionDetail | null>>;
2972
+ withdraw(id: string, params: WithdrawKolaboPartnerParams): Promise<ApiSuccessResponse<boolean>>;
2973
+ withdrawWebhook(id: string, params: KolaboPartnerWithdrawWebhookParams): Promise<ApiSuccessResponse<KolaboPartnerWithdrawWebhookTransaction>>;
2974
+ }
2975
+
2976
+ declare class KolaboApi {
2977
+ private readonly http;
2978
+ readonly app: KolaboAppApi;
2979
+ readonly customer: KolaboCustomerApi;
2980
+ readonly partner: KolaboPartnerApi;
2981
+ constructor(http: HttpClient);
2982
+ }
2983
+
2775
2984
  declare class MaintenanceApi {
2776
2985
  private readonly http;
2777
2986
  constructor(http: HttpClient);
@@ -2794,6 +3003,7 @@ declare class AppliteUI {
2794
3003
  readonly notification: NotificationApi;
2795
3004
  readonly webhook: WebhookApi;
2796
3005
  readonly user: UserApi;
3006
+ readonly testimony: TestimonyApi;
2797
3007
  readonly store: StoreApi;
2798
3008
  readonly multiService: MultiServiceApi;
2799
3009
  readonly superAdmin: SuperAdminApi;
@@ -2803,4 +3013,4 @@ declare class AppliteUI {
2803
3013
  constructor(config?: AppliteUIConfig);
2804
3014
  }
2805
3015
 
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 };
3016
+ export { type AddCartItemParams, type AddKolaboAppToPartnerParams, type Address, AddressApi, type AddressDeleteParams, type AddressListParams, type AdvancedImageType, AgentApi, type AgentSummary, type ApiErrorResponse, type ApiKeyParams, type ApiResponse, type ApiSuccessResponse, type ApiSuccessResponseWithMeta, type AppDetail, type AppScopedParams, type AppSummary, AppliteUI, type AppliteUIConfig, AppointmentApi, type AppointmentStatus, BadgeApi, type BalanceParams, type CalculateCartTotalsParams, CartApi, type CartCustomerSummary, type CartItem, type CartItemVariant, type CartTotals, type CashInParams, type CashOutParams, CategoryApi, type CheckKolaboPartnerParams, type CleanupTransactionsParams, type CleanupTransactionsResult, CollectionApi, type CollectionType, CompanyApi, type CompanySummary, type ConfigureKolaboAppParams, type CreateAddressParams, type CreateAgentParams, type CreateAppParams, type CreateAppointmentParams, type CreateBadgeParams, type CreateCartParams, type CreateCategoryParams, type CreateCollectionParams, type CreateCompanyParams, type CreateDiscountParams, type CreateDuticotacOfferParams, type CreateFieldTemplateParams, type CreateKolaboCustomerParams, type CreateKolaboCustomerPartnershipParams, type CreateOptionParams, type CreateOrderParams, type CreateProductParams, type CreateSellerParams, type CreateServiceParams, type CreateShippingProfileParams, type CreateStatisticParams, type CreateTagParams, type CreateTaxParams, type CreateTestimonyParams, type CreateWelcomeItemParams, type CronBillingParams, type CronBillingResponse, type CronBillingResult, type CronNotificationParams, type CronNotificationResponse, type CronNotificationResult, type Currency, type Customer, type CustomerAddress, CustomerApi, type CustomerAuthParams, type CustomerBlockParams, type CustomerCheckParams, type CustomerDeleteParams, type CustomerDetail, type CustomerGetParams, type CustomerListFewItem, type CustomerListItem, type CustomerListParams, type CustomerSelfDeleteParams, type CustomerStoreReview, type CustomerSubmitTestimonyParams, type CustomerSummary, type CustomerTransaction, type CustomerUpdateParams, type DeleteAgentParams, type DeleteBadgeParams, type DeleteCategoryParams, type DeleteCollectionParams, type DeleteCompanyParams, type DeleteDiscountParams, type DeleteFieldTemplateParams, type DeleteFirebaseConfigParams, type DeleteKolaboPartnerParams, type DeleteNotificationTemplateParams, type DeleteOptionParams, type DeleteOrderParams, type DeleteProductParams, type DeleteSellerParams, type DeleteServiceParams, type DeleteShippingProfileParams, type DeleteTagParams, type DeleteTaxParams, type DeleteTestimonyParams, type DeleteWebhookParams, type DeleteWelcomeItemParams, DiscountApi, type DiscountAppliesTo, type DiscountMinRequirement, type DiscountType, type DuTicOTacOfferType, DuticotacApi, DuticotacBalanceApi, type DuticotacOffer, DuticotacOfferApi, DuticotacPaymentApi, type DuticotacTransaction, DuticotacTransactionApi, type DuticotacTransactionGetParams, type EditDuticotacOfferParams, type EditKolaboPartnerProfileParams, type EditTestimonyParams, type EntityIdParams, type FieldOption, type FieldOptionInput, FieldTemplateApi, type FieldType, type FileType, FinanceApi, type FirebaseConfig, type FulfillmentStatus, type GetAddressByIdParams, type GetAgentParams, type GetAppByIdParams, type GetAppBySlugParams, type GetAppointmentParams, type GetBadgeParams, type GetCartParams, type GetCategoryParams, type GetCollectionParams, type GetCompanyParams, type GetDiscountParams, type GetFirebaseConfigParams, type GetKolaboPartnerAppsParams, type GetKolaboPartnerTransactionParams, type GetNotificationLogsParams, type GetNotificationTemplatesParams, type GetOptionParams, type GetOrderParams, type GetPaymentMethodsParams, type GetProductParams, type GetSellerParams, type GetServiceParams, type GetShippingProfileParams, type GetStatisticParams, type GetTagParams, type GetTaxParams, type GetTestimonyByIdParams, type GetWebhookLogsParams, type GetWelcomeItemParams, HttpClient, type HttpClientConfig, InfoApi, type InventoryPolicy, type JoinAppParams, KolaboApi, type KolaboApp, KolaboAppApi, type KolaboAppStatus, type KolaboCustomer, KolaboCustomerApi, type KolaboPartner, KolaboPartnerApi, type KolaboPartnerShip, type KolaboPartnerTransactionApp, type KolaboPartnerTransactionCustomer, type KolaboPartnerTransactionDetail, type KolaboPartnerTransactionListItem, type KolaboPartnerTransactionType, type KolaboPartnerType, type KolaboPartnerWithdrawWebhookParams, type KolaboPartnerWithdrawWebhookPartner, type KolaboPartnerWithdrawWebhookTransaction, type KolaboPaymentMethod, type KolaboWithdrawStatus, type ListAgentsParams, type ListAppointmentsParams, type ListAppsParams, type ListBadgesParams, type ListCategoriesParams, type ListCollectionsParams, type ListCompaniesParams, type ListDiscountsParams, type ListFieldTemplatesParams, type ListKolaboPartnerTransactionsParams, type ListNotificationTokensParams, type ListOptionsParams, type ListOrdersParams, type ListParams, type ListProductsParams, type ListSellersParams, type ListServicesParams, type ListShippingProfilesParams, type ListTagsParams, type ListTaxesParams, type ListTestimoniesParams, type ListWelcomeItemsParams, MaintenanceApi, type MemberRole, type ModuleType, type MultiServiceAgentDetail, type MultiServiceAgentListItem, MultiServiceApi, type MultiServiceAppointmentDetail, type MultiServiceAppointmentListItem, type MultiServiceCompanyDetail, type MultiServiceCompanyListItem, type MultiServiceFieldOptionTemplate, type MultiServiceFieldTemplate, type MultiServiceServiceDetail, type MultiServiceServiceListItem, NotificationApi, type NotificationEventType, type NotificationLog, type NotificationLogsResponse, type NotificationPlatform, type NotificationTemplate, type NotificationToken, NotificationTokenApi, OptionApi, type OptionValueInput, type OrderAddress, OrderApi, type OrderCartItem, type OrderCustomerSummary, type OrderItemInput, type OrderItemVariant, type OrderSellerSummary, type OrderStatus, type PaginationMeta, type PaymentMethodSetParams, type PaymentStatus, type PlateformType, ProductApi, type ProductAttributeInput, type ProductDimension, type ProductImage, type ProductImageFull, type ProductStatus, type ProductVariantDetail, type ProductVariantInput, type ProductVariantListItem, type ProductVariantOptionValue, type PublicListTestimoniesParams, type PublicTestimony, type RemoveAllNotificationTokensParams, type RemoveAllTokensResponse, type RemoveCartItemParams, type RemoveNotificationTokenParams, type RemoveTokenResponse, type SearchableListParams, SellerApi, type SellerSummary, ServiceApi, type ServiceField, type ServiceFieldInput, type ServiceSummary, type ServiceSummaryWithFields, type SetFirebaseConfigParams, type SetNotificationTemplateParams, type SetNotificationTokenParams, type SetPinParams, type SetWebhookParams, type Sexe, ShippingApi, type ShippingRateInput, type ShippingRateType, type ShippingZoneInput, type SignUpKolaboPartnerParams, type Statistic, StatsApi, StoreApi, type StoreBadgeDetail, type StoreBadgeListItem, type StoreCart, type StoreCategoryDetail, type StoreCategoryListItem, type StoreCollectionDetail, type StoreCollectionListItem, type StoreDiscountDetail, type StoreDiscountListItem, type StoreOptionDetail, type StoreOptionListItem, type StoreOptionType, type StoreOptionValue, type StoreOrderDetail, type StoreOrderListItem, type StoreProductDetail, type StoreProductListItem, type StoreSellerDetail, type StoreSellerListItem, type StoreShippingProfileDetail, type StoreShippingProfileListItem, type StoreShippingRate, type StoreShippingZone, type StoreTagDetail, type StoreTagListItem, type StoreTaxDetail, type StoreTaxListItem, type SubscriptionStatus, SuperAdminApi, type SuperAdminApp, type SuperAdminAppListParams, type SuperAdminAppListResponse, SuperAdminAppsApi, SuperAdminAuthApi, SuperAdminFinanceApi, type SuperAdminInitParams, type SuperAdminMeParams, type SuperAdminModuleUpdateParams, SuperAdminModulesApi, type SuperAdminModulesListParams, SuperAdminNotificationApi, type SuperAdminNotificationSendParams, type SuperAdminNotificationSendResponse, type SuperAdminPlatformModule, type SuperAdminRole, type SuperAdminSigninParams, type SuperAdminStats, SuperAdminStatsApi, type SuperAdminStatsParams, type SuperAdminTransaction, type SuperAdminTransactionListParams, type SuperAdminTransactionListResponse, type SuperAdminUser, type SuperAdminWithdrawParams, type SuperAdminWithdrawResponse, TagApi, TaxApi, type Testimony, TestimonyApi, type TestimonyStatus, type ToggleModuleParams, type ToggleModuleResponse, type Transaction, type TransactionDetail, type TransactionGetParams, type TransactionListParams, type TransactionProvider, type TransactionStatus, type UpdateAddressParams, type UpdateAgentParams, type UpdateAppModulesParams, type UpdateAppParams, type UpdateAppointmentAgentParams, type UpdateAppointmentStatusParams, type UpdateBadgeParams, type UpdateCartItemParams, type UpdateCategoryParams, type UpdateCollectionParams, type UpdateCompanyParams, type UpdateDiscountParams, type UpdateFieldTemplateParams, type UpdateOptionParams, type UpdateOrderParams, type UpdateProductParams, type UpdateSellerParams, type UpdateServiceParams, type UpdateShippingProfileParams, type UpdateStatisticParams, type UpdateTagParams, type UpdateTaxParams, type UpdateTestimonyStatusParams, type UpdateWelcomeItemParams, type User, UserApi, type UserDeleteParams, type UserEditCredentialsParams, type UserGetParams, type UserSetNotificationParams, type UserSigninParams, type UserSignupParams, type UserUpdateParams, type UserVerifyPasswordParams, type Webhook, WebhookApi, type WebhookEventType, type WebhookLog, type WebhookLogsResponse, type WelcomeItem, WelcomeItemApi, type WithdrawKolaboPartnerParams, type WithdrawParams, type WithdrawResult };