@applite/js-sdk 0.0.12 → 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.mjs CHANGED
@@ -30,6 +30,50 @@ var _HttpClient = class _HttpClient {
30
30
  }
31
31
  return payload;
32
32
  }
33
+ async get(path, options = {}) {
34
+ const queryString = this.buildQueryString(options.query);
35
+ const url = `${this.baseUrl}${path}${queryString}`;
36
+ const response = await this.fetchImpl(url, {
37
+ method: "GET",
38
+ headers: {
39
+ ...this.headers,
40
+ ...options.headers
41
+ }
42
+ });
43
+ const contentType = response.headers.get("content-type") ?? "";
44
+ const isJson = contentType.includes("application/json");
45
+ const payload = isJson ? await response.json() : null;
46
+ if (!response.ok) {
47
+ const message = payload?.error ?? response.statusText;
48
+ throw new Error(`Request failed with status ${response.status}: ${message}`);
49
+ }
50
+ if (!payload || payload.success !== true) {
51
+ throw new Error(`Request failed: ${payload?.error ?? "Unknown error"}`);
52
+ }
53
+ return payload;
54
+ }
55
+ buildQueryString(query) {
56
+ if (!query) {
57
+ return "";
58
+ }
59
+ const params = new URLSearchParams();
60
+ Object.entries(query).forEach(([key, value]) => {
61
+ if (value === void 0 || value === null) {
62
+ return;
63
+ }
64
+ if (Array.isArray(value)) {
65
+ value.forEach((item) => {
66
+ if (item !== void 0 && item !== null) {
67
+ params.append(key, String(item));
68
+ }
69
+ });
70
+ return;
71
+ }
72
+ params.append(key, String(value));
73
+ });
74
+ const queryString = params.toString();
75
+ return queryString ? `?${queryString}` : "";
76
+ }
33
77
  };
34
78
  __name(_HttpClient, "HttpClient");
35
79
  var HttpClient = _HttpClient;
@@ -140,6 +184,18 @@ var _InfoApi = class _InfoApi {
140
184
  const { appId, ...body } = params;
141
185
  return this.http.post(`/app/${appId}`, body);
142
186
  }
187
+ update(params) {
188
+ const { appId, ...body } = params;
189
+ return this.http.post(`/app/${appId}/update`, body);
190
+ }
191
+ updateModules(params) {
192
+ const { appId, ...body } = params;
193
+ return this.http.post(`/app/${appId}/modules`, body);
194
+ }
195
+ toggleModule(params) {
196
+ const { appId, ...body } = params;
197
+ return this.http.post(`/app/${appId}/modules/toggle`, body);
198
+ }
143
199
  };
144
200
  __name(_InfoApi, "InfoApi");
145
201
  var InfoApi = _InfoApi;
@@ -256,6 +312,10 @@ var _AddressApi = class _AddressApi {
256
312
  { apiKey }
257
313
  );
258
314
  }
315
+ async getById(params) {
316
+ const { appId, apiKey, id } = params;
317
+ return this.http.post(`/app/${appId}/address/${id}`, { apiKey });
318
+ }
259
319
  };
260
320
  __name(_AddressApi, "AddressApi");
261
321
  var AddressApi = _AddressApi;
@@ -297,6 +357,215 @@ var _NotificationTokenApi = class _NotificationTokenApi {
297
357
  __name(_NotificationTokenApi, "NotificationTokenApi");
298
358
  var NotificationTokenApi = _NotificationTokenApi;
299
359
 
360
+ // src/modules/common/notification.ts
361
+ var _NotificationApi = class _NotificationApi {
362
+ constructor(http) {
363
+ this.http = http;
364
+ }
365
+ getFirebaseConfig(params) {
366
+ return this.http.post(
367
+ "/notification/firebase-config",
368
+ params
369
+ );
370
+ }
371
+ setFirebaseConfig(params) {
372
+ return this.http.post(
373
+ "/notification/firebase-config/set",
374
+ params
375
+ );
376
+ }
377
+ deleteFirebaseConfig(params) {
378
+ return this.http.post(
379
+ "/notification/firebase-config/delete",
380
+ params
381
+ );
382
+ }
383
+ getTemplates(params) {
384
+ return this.http.post("/notification/template", params);
385
+ }
386
+ setTemplate(params) {
387
+ return this.http.post(
388
+ "/notification/template/set",
389
+ params
390
+ );
391
+ }
392
+ deleteTemplate(params) {
393
+ return this.http.post("/notification/template/delete", params);
394
+ }
395
+ async getLogs(params) {
396
+ const response = await this.http.post(
397
+ "/notification/logs",
398
+ params
399
+ );
400
+ if (Array.isArray(response.data)) {
401
+ return {
402
+ ...response,
403
+ data: {
404
+ logs: response.data,
405
+ total: response.data.length,
406
+ limit: response.data.length,
407
+ offset: 0,
408
+ hasMore: false
409
+ }
410
+ };
411
+ }
412
+ return response;
413
+ }
414
+ };
415
+ __name(_NotificationApi, "NotificationApi");
416
+ var NotificationApi = _NotificationApi;
417
+
418
+ // src/modules/common/webhook.ts
419
+ var _WebhookApi = class _WebhookApi {
420
+ constructor(http) {
421
+ this.http = http;
422
+ }
423
+ set(params) {
424
+ return this.http.post("/webhook/set", params);
425
+ }
426
+ list(params) {
427
+ return this.http.post("/webhook", params);
428
+ }
429
+ delete(params) {
430
+ return this.http.post("/webhook/delete", params);
431
+ }
432
+ getLogs(params) {
433
+ return this.http.post("/webhook/logs", params);
434
+ }
435
+ };
436
+ __name(_WebhookApi, "WebhookApi");
437
+ var WebhookApi = _WebhookApi;
438
+
439
+ // src/modules/common/user.ts
440
+ var _UserApi = class _UserApi {
441
+ constructor(http) {
442
+ this.http = http;
443
+ }
444
+ signup(params) {
445
+ return this.http.post("/user/signup", {
446
+ nom_de_famille: params.nomDeFamille,
447
+ prenom: params.prenom,
448
+ email: params.email,
449
+ telephone: params.telephone,
450
+ password: params.password,
451
+ confirm: params.confirm
452
+ });
453
+ }
454
+ signin(params) {
455
+ return this.http.post("/user/signin", params);
456
+ }
457
+ get(params) {
458
+ const { id, ...body } = params;
459
+ return this.http.post(`/user/${id}`, body);
460
+ }
461
+ update(params) {
462
+ const { id, nomDeFamille, ...rest } = params;
463
+ return this.http.post(`/user/${id}/update`, {
464
+ ...rest,
465
+ nom_de_famille: nomDeFamille
466
+ });
467
+ }
468
+ delete(params) {
469
+ const { id, ...body } = params;
470
+ return this.http.post(`/user/${id}/delete`, body);
471
+ }
472
+ editCredentials(params) {
473
+ const { id, ...body } = params;
474
+ return this.http.post(`/user/${id}/edit-cred`, body);
475
+ }
476
+ verifyPassword(params) {
477
+ const { id, ...body } = params;
478
+ return this.http.post(`/user/${id}/verify-pass`, body);
479
+ }
480
+ setNotification(params) {
481
+ const { id, ...body } = params;
482
+ return this.http.post(`/user/${id}/set-notification`, body);
483
+ }
484
+ };
485
+ __name(_UserApi, "UserApi");
486
+ var UserApi = _UserApi;
487
+
488
+ // src/modules/common/testimony.ts
489
+ var _TestimonyApi = class _TestimonyApi {
490
+ constructor(http) {
491
+ this.http = http;
492
+ }
493
+ /**
494
+ * Admin: Create a new testimony
495
+ */
496
+ async create(params) {
497
+ const { appId, apiKey, ...rest } = params;
498
+ return this.http.post(`/app/${appId}/testimony/create`, {
499
+ apiKey,
500
+ ...rest
501
+ });
502
+ }
503
+ /**
504
+ * Admin: List testimonies with filters and pagination
505
+ */
506
+ async list(params) {
507
+ const { appId, apiKey, ...rest } = params;
508
+ return this.http.post(`/app/${appId}/testimony/list`, {
509
+ apiKey,
510
+ ...rest
511
+ });
512
+ }
513
+ /**
514
+ * Admin: Get a single testimony by ID
515
+ */
516
+ async getById(params) {
517
+ const { appId, apiKey, id } = params;
518
+ return this.http.post(`/app/${appId}/testimony/${id}`, { apiKey });
519
+ }
520
+ /**
521
+ * Admin: Update a testimony
522
+ */
523
+ async update(params) {
524
+ const { appId, apiKey, id, ...rest } = params;
525
+ return this.http.post(`/app/${appId}/testimony/${id}/edit`, {
526
+ apiKey,
527
+ ...rest
528
+ });
529
+ }
530
+ /**
531
+ * Admin: Delete a testimony
532
+ */
533
+ async delete(params) {
534
+ const { appId, apiKey, id } = params;
535
+ return this.http.post(`/app/${appId}/testimony/${id}/delete`, {
536
+ apiKey
537
+ });
538
+ }
539
+ /**
540
+ * Admin: Update testimony status (approve/reject)
541
+ */
542
+ async updateStatus(params) {
543
+ const { appId, apiKey, id, status } = params;
544
+ return this.http.post(`/app/${appId}/testimony/${id}/status`, {
545
+ apiKey,
546
+ status
547
+ });
548
+ }
549
+ /**
550
+ * Customer: Submit a new testimony (status will be PENDING)
551
+ */
552
+ async submit(params) {
553
+ const { appApiKey, ...rest } = params;
554
+ return this.http.post(`/testimony/submit`, {
555
+ appApiKey,
556
+ ...rest
557
+ });
558
+ }
559
+ /**
560
+ * Public: List approved testimonies
561
+ */
562
+ async listPublic(params) {
563
+ return this.http.post(`/testimony/public`, params);
564
+ }
565
+ };
566
+ __name(_TestimonyApi, "TestimonyApi");
567
+ var TestimonyApi = _TestimonyApi;
568
+
300
569
  // src/modules/store/badge.ts
301
570
  var _BadgeApi = class _BadgeApi {
302
571
  constructor(http) {
@@ -326,6 +595,39 @@ var _BadgeApi = class _BadgeApi {
326
595
  __name(_BadgeApi, "BadgeApi");
327
596
  var BadgeApi = _BadgeApi;
328
597
 
598
+ // src/modules/store/cart.ts
599
+ var _CartApi = class _CartApi {
600
+ constructor(http) {
601
+ this.http = http;
602
+ }
603
+ create(params) {
604
+ const { appId, ...body } = params;
605
+ return this.http.post(`/app/${appId}/store/cart/create`, body);
606
+ }
607
+ get(params) {
608
+ const { appId, id, ...body } = params;
609
+ return this.http.post(`/app/${appId}/store/cart/${id}`, body);
610
+ }
611
+ addItem(params) {
612
+ const { appId, id, ...body } = params;
613
+ return this.http.post(`/app/${appId}/store/cart/${id}/add-item`, body);
614
+ }
615
+ updateItem(params) {
616
+ const { appId, id, ...body } = params;
617
+ return this.http.post(`/app/${appId}/store/cart/${id}/update-item`, body);
618
+ }
619
+ removeItem(params) {
620
+ const { appId, id, ...body } = params;
621
+ return this.http.post(`/app/${appId}/store/cart/${id}/remove-item`, body);
622
+ }
623
+ calculateTotals(params) {
624
+ const { appId, id, ...body } = params;
625
+ return this.http.post(`/app/${appId}/store/cart/${id}/calculate-totals`, body);
626
+ }
627
+ };
628
+ __name(_CartApi, "CartApi");
629
+ var CartApi = _CartApi;
630
+
329
631
  // src/modules/store/category.ts
330
632
  var _CategoryApi = class _CategoryApi {
331
633
  constructor(http) {
@@ -621,6 +923,7 @@ var _StoreApi = class _StoreApi {
621
923
  constructor(http) {
622
924
  this.http = http;
623
925
  this.badge = new BadgeApi(http);
926
+ this.cart = new CartApi(http);
624
927
  this.category = new CategoryApi(http);
625
928
  this.collection = new CollectionApi(http);
626
929
  this.discount = new DiscountApi(http);
@@ -685,6 +988,20 @@ var _AppointmentApi = class _AppointmentApi {
685
988
  body
686
989
  );
687
990
  }
991
+ get(params) {
992
+ const { appId, id, ...body } = params;
993
+ return this.http.post(
994
+ `/app/${appId}/multi-service/appointments/${id}`,
995
+ body
996
+ );
997
+ }
998
+ assignAgent(params) {
999
+ const { appId, id, ...body } = params;
1000
+ return this.http.post(
1001
+ `/app/${appId}/multi-service/appointments/${id}/assign-agent`,
1002
+ body
1003
+ );
1004
+ }
688
1005
  };
689
1006
  __name(_AppointmentApi, "AppointmentApi");
690
1007
  var AppointmentApi = _AppointmentApi;
@@ -798,6 +1115,347 @@ var _MultiServiceApi = class _MultiServiceApi {
798
1115
  __name(_MultiServiceApi, "MultiServiceApi");
799
1116
  var MultiServiceApi = _MultiServiceApi;
800
1117
 
1118
+ // src/modules/super-admin/apps.ts
1119
+ var _SuperAdminAppsApi = class _SuperAdminAppsApi {
1120
+ constructor(http) {
1121
+ this.http = http;
1122
+ }
1123
+ list(params) {
1124
+ return this.http.post("/super-admin/apps/list", params);
1125
+ }
1126
+ };
1127
+ __name(_SuperAdminAppsApi, "SuperAdminAppsApi");
1128
+ var SuperAdminAppsApi = _SuperAdminAppsApi;
1129
+
1130
+ // src/modules/super-admin/auth.ts
1131
+ var _SuperAdminAuthApi = class _SuperAdminAuthApi {
1132
+ constructor(http) {
1133
+ this.http = http;
1134
+ }
1135
+ init(params) {
1136
+ return this.http.post("/super-admin/auth/init", params);
1137
+ }
1138
+ signin(params) {
1139
+ return this.http.post("/super-admin/auth/signin", params);
1140
+ }
1141
+ me(params) {
1142
+ return this.http.post("/super-admin/auth/me", params);
1143
+ }
1144
+ };
1145
+ __name(_SuperAdminAuthApi, "SuperAdminAuthApi");
1146
+ var SuperAdminAuthApi = _SuperAdminAuthApi;
1147
+
1148
+ // src/modules/super-admin/finance.ts
1149
+ var _SuperAdminFinanceApi = class _SuperAdminFinanceApi {
1150
+ constructor(http) {
1151
+ this.http = http;
1152
+ }
1153
+ transactions(params) {
1154
+ return this.http.post(
1155
+ "/super-admin/finance/transactions",
1156
+ params
1157
+ );
1158
+ }
1159
+ withdraw(params) {
1160
+ return this.http.post(
1161
+ "/super-admin/finance/withdraw",
1162
+ params
1163
+ );
1164
+ }
1165
+ };
1166
+ __name(_SuperAdminFinanceApi, "SuperAdminFinanceApi");
1167
+ var SuperAdminFinanceApi = _SuperAdminFinanceApi;
1168
+
1169
+ // src/modules/super-admin/modules.ts
1170
+ var _SuperAdminModulesApi = class _SuperAdminModulesApi {
1171
+ constructor(http) {
1172
+ this.http = http;
1173
+ }
1174
+ list(params) {
1175
+ return this.http.post("/super-admin/modules/list", params);
1176
+ }
1177
+ update(params) {
1178
+ return this.http.post("/super-admin/modules/update", params);
1179
+ }
1180
+ };
1181
+ __name(_SuperAdminModulesApi, "SuperAdminModulesApi");
1182
+ var SuperAdminModulesApi = _SuperAdminModulesApi;
1183
+
1184
+ // src/modules/super-admin/notification.ts
1185
+ var _SuperAdminNotificationApi = class _SuperAdminNotificationApi {
1186
+ constructor(http) {
1187
+ this.http = http;
1188
+ }
1189
+ send(params) {
1190
+ return this.http.post(
1191
+ "/super-admin/notification/send",
1192
+ params
1193
+ );
1194
+ }
1195
+ };
1196
+ __name(_SuperAdminNotificationApi, "SuperAdminNotificationApi");
1197
+ var SuperAdminNotificationApi = _SuperAdminNotificationApi;
1198
+
1199
+ // src/modules/super-admin/stats.ts
1200
+ var _SuperAdminStatsApi = class _SuperAdminStatsApi {
1201
+ constructor(http) {
1202
+ this.http = http;
1203
+ }
1204
+ fetch(params) {
1205
+ return this.http.post("/super-admin/stats", params);
1206
+ }
1207
+ };
1208
+ __name(_SuperAdminStatsApi, "SuperAdminStatsApi");
1209
+ var SuperAdminStatsApi = _SuperAdminStatsApi;
1210
+
1211
+ // src/modules/super-admin/index.ts
1212
+ var _SuperAdminApi = class _SuperAdminApi {
1213
+ constructor(http) {
1214
+ this.http = http;
1215
+ this.auth = new SuperAdminAuthApi(http);
1216
+ this.apps = new SuperAdminAppsApi(http);
1217
+ this.modules = new SuperAdminModulesApi(http);
1218
+ this.stats = new SuperAdminStatsApi(http);
1219
+ this.finance = new SuperAdminFinanceApi(http);
1220
+ this.notification = new SuperAdminNotificationApi(http);
1221
+ }
1222
+ };
1223
+ __name(_SuperAdminApi, "SuperAdminApi");
1224
+ var SuperAdminApi = _SuperAdminApi;
1225
+
1226
+ // src/modules/duticotac/balance.ts
1227
+ var _DuticotacBalanceApi = class _DuticotacBalanceApi {
1228
+ constructor(http) {
1229
+ this.http = http;
1230
+ }
1231
+ get(params) {
1232
+ return this.http.post("/duticotac/balance", params);
1233
+ }
1234
+ };
1235
+ __name(_DuticotacBalanceApi, "DuticotacBalanceApi");
1236
+ var DuticotacBalanceApi = _DuticotacBalanceApi;
1237
+
1238
+ // src/modules/duticotac/offer.ts
1239
+ var _DuticotacOfferApi = class _DuticotacOfferApi {
1240
+ constructor(http) {
1241
+ this.http = http;
1242
+ }
1243
+ create(params) {
1244
+ return this.http.post("/duticotac/offer/create", params);
1245
+ }
1246
+ edit(params) {
1247
+ const { ref, ...body } = params;
1248
+ return this.http.post(`/duticotac/offer/${ref}/edit`, body);
1249
+ }
1250
+ delete(ref, params) {
1251
+ return this.http.post(`/duticotac/offer/${ref}/delete`, params);
1252
+ }
1253
+ list(params) {
1254
+ return this.http.post("/duticotac/offer/list", params);
1255
+ }
1256
+ get(ref, params) {
1257
+ return this.http.post(`/duticotac/offer/${ref}`, params);
1258
+ }
1259
+ };
1260
+ __name(_DuticotacOfferApi, "DuticotacOfferApi");
1261
+ var DuticotacOfferApi = _DuticotacOfferApi;
1262
+
1263
+ // src/modules/duticotac/payment.ts
1264
+ var _DuticotacPaymentApi = class _DuticotacPaymentApi {
1265
+ constructor(http) {
1266
+ this.http = http;
1267
+ }
1268
+ cashIn(params) {
1269
+ return this.http.post("/duticotac/pay/mobile-money/cashin", params);
1270
+ }
1271
+ cashOut(params) {
1272
+ return this.http.post("/duticotac/pay/mobile-money/cashout", params);
1273
+ }
1274
+ setPaymentMethods(params) {
1275
+ return this.http.post("/duticotac/payment-method/set", params);
1276
+ }
1277
+ getPaymentMethods(params) {
1278
+ return this.http.post("/duticotac/payment-method", params);
1279
+ }
1280
+ };
1281
+ __name(_DuticotacPaymentApi, "DuticotacPaymentApi");
1282
+ var DuticotacPaymentApi = _DuticotacPaymentApi;
1283
+
1284
+ // src/modules/duticotac/transaction.ts
1285
+ var _DuticotacTransactionApi = class _DuticotacTransactionApi {
1286
+ constructor(http) {
1287
+ this.http = http;
1288
+ }
1289
+ get(params) {
1290
+ return this.http.post("/duticotac/transaction/get", params);
1291
+ }
1292
+ };
1293
+ __name(_DuticotacTransactionApi, "DuticotacTransactionApi");
1294
+ var DuticotacTransactionApi = _DuticotacTransactionApi;
1295
+
1296
+ // src/modules/duticotac/index.ts
1297
+ var _DuticotacApi = class _DuticotacApi {
1298
+ constructor(http) {
1299
+ this.http = http;
1300
+ this.balance = new DuticotacBalanceApi(http);
1301
+ this.offer = new DuticotacOfferApi(http);
1302
+ this.payment = new DuticotacPaymentApi(http);
1303
+ this.transaction = new DuticotacTransactionApi(http);
1304
+ }
1305
+ };
1306
+ __name(_DuticotacApi, "DuticotacApi");
1307
+ var DuticotacApi = _DuticotacApi;
1308
+
1309
+ // src/modules/kolabo/app.ts
1310
+ var _KolaboAppApi = class _KolaboAppApi {
1311
+ constructor(http) {
1312
+ this.http = http;
1313
+ }
1314
+ configure(slug, params) {
1315
+ return this.http.post(`/kolabo/app/${slug}/configure`, params);
1316
+ }
1317
+ join(slug, params) {
1318
+ return this.http.post(`/kolabo/app/${slug}/join`, params);
1319
+ }
1320
+ getBySlug(slug, params) {
1321
+ return this.http.post(`/kolabo/app/${slug}`, params);
1322
+ }
1323
+ get(slug, params) {
1324
+ return this.http.post(`/kolabo/app/${slug}/get`, params);
1325
+ }
1326
+ list(params) {
1327
+ return this.http.post("/kolabo/app/list", params);
1328
+ }
1329
+ };
1330
+ __name(_KolaboAppApi, "KolaboAppApi");
1331
+ var KolaboAppApi = _KolaboAppApi;
1332
+
1333
+ // src/modules/kolabo/customer.ts
1334
+ var _KolaboCustomerApi = class _KolaboCustomerApi {
1335
+ constructor(http) {
1336
+ this.http = http;
1337
+ }
1338
+ create(params) {
1339
+ return this.http.post("/kolabo/customer/create", params);
1340
+ }
1341
+ createPartnership(params) {
1342
+ return this.http.post("/kolabo/customer/create-partnership", params);
1343
+ }
1344
+ };
1345
+ __name(_KolaboCustomerApi, "KolaboCustomerApi");
1346
+ var KolaboCustomerApi = _KolaboCustomerApi;
1347
+
1348
+ // src/modules/kolabo/partner.ts
1349
+ var _KolaboPartnerApi = class _KolaboPartnerApi {
1350
+ constructor(http) {
1351
+ this.http = http;
1352
+ }
1353
+ signUp(params) {
1354
+ return this.http.post("/kolabo/partner/signup", params);
1355
+ }
1356
+ check(params) {
1357
+ return this.http.post("/kolabo/partner/check", params);
1358
+ }
1359
+ get(id, params) {
1360
+ return this.http.post(`/kolabo/partner/${id}`, params);
1361
+ }
1362
+ editProfile(id, params) {
1363
+ return this.http.post(`/kolabo/partner/${id}/edit-profile`, params);
1364
+ }
1365
+ getLink(id, params) {
1366
+ return this.http.post(`/kolabo/partner/${id}/get-link`, params);
1367
+ }
1368
+ getPartnership(id, params) {
1369
+ return this.http.post(
1370
+ `/kolabo/partner/${id}/get-partnership`,
1371
+ params
1372
+ );
1373
+ }
1374
+ setPin(id, params) {
1375
+ return this.http.post(`/kolabo/partner/${id}/set-pin`, params);
1376
+ }
1377
+ cancelPartnership(id, params) {
1378
+ return this.http.post(`/kolabo/partner/${id}/cancel-partnership`, params);
1379
+ }
1380
+ delete(id, params) {
1381
+ return this.http.post(`/kolabo/partner/${id}/delete`, params);
1382
+ }
1383
+ apps(id, params) {
1384
+ return this.http.post(`/kolabo/partner/${id}/apps`, params);
1385
+ }
1386
+ listTransactions(id, params) {
1387
+ return this.http.post(
1388
+ `/kolabo/partner/${id}/transaction/list`,
1389
+ params
1390
+ );
1391
+ }
1392
+ transaction(id, params) {
1393
+ return this.http.post(
1394
+ `/kolabo/partner/${id}/transaction`,
1395
+ params
1396
+ );
1397
+ }
1398
+ withdraw(id, params) {
1399
+ return this.http.post(`/kolabo/partner/${id}/withdraw`, params);
1400
+ }
1401
+ withdrawWebhook(id, params) {
1402
+ return this.http.post(
1403
+ `/kolabo/partner/${id}/withdraw/webhook`,
1404
+ {
1405
+ appId: params.appId,
1406
+ service_id: params.serviceId,
1407
+ gu_transaction_id: params.guTransactionId,
1408
+ status: params.status,
1409
+ partner_transaction_id: params.partnerTransactionId,
1410
+ call_back_url: params.callBackUrl,
1411
+ commission: params.commission,
1412
+ message: params.message
1413
+ }
1414
+ );
1415
+ }
1416
+ };
1417
+ __name(_KolaboPartnerApi, "KolaboPartnerApi");
1418
+ var KolaboPartnerApi = _KolaboPartnerApi;
1419
+
1420
+ // src/modules/kolabo/index.ts
1421
+ var _KolaboApi = class _KolaboApi {
1422
+ constructor(http) {
1423
+ this.http = http;
1424
+ this.app = new KolaboAppApi(http);
1425
+ this.customer = new KolaboCustomerApi(http);
1426
+ this.partner = new KolaboPartnerApi(http);
1427
+ }
1428
+ };
1429
+ __name(_KolaboApi, "KolaboApi");
1430
+ var KolaboApi = _KolaboApi;
1431
+
1432
+ // src/modules/maintenance/maintenance.ts
1433
+ var _MaintenanceApi = class _MaintenanceApi {
1434
+ constructor(http) {
1435
+ this.http = http;
1436
+ }
1437
+ cronNotification(params = {}) {
1438
+ return this.http.get("/cron/notification", {
1439
+ query: params
1440
+ });
1441
+ }
1442
+ cronBilling(params) {
1443
+ const { authorizationToken, ...query } = params;
1444
+ const headers = authorizationToken ? { authorization: `Bearer ${authorizationToken}` } : void 0;
1445
+ return this.http.get("/cron/billing", {
1446
+ query,
1447
+ headers
1448
+ });
1449
+ }
1450
+ cleanupTransactions(params = {}) {
1451
+ return this.http.get("/cleanup/transactions", {
1452
+ query: params
1453
+ });
1454
+ }
1455
+ };
1456
+ __name(_MaintenanceApi, "MaintenanceApi");
1457
+ var MaintenanceApi = _MaintenanceApi;
1458
+
801
1459
  // src/index.ts
802
1460
  var _AppliteUI = class _AppliteUI {
803
1461
  constructor(config = {}) {
@@ -813,13 +1471,21 @@ var _AppliteUI = class _AppliteUI {
813
1471
  this.info = new InfoApi(this.http);
814
1472
  this.address = new AddressApi(this.http);
815
1473
  this.notificationToken = new NotificationTokenApi(this.http);
1474
+ this.notification = new NotificationApi(this.http);
1475
+ this.webhook = new WebhookApi(this.http);
1476
+ this.user = new UserApi(this.http);
1477
+ this.testimony = new TestimonyApi(this.http);
816
1478
  this.store = new StoreApi(this.http);
817
1479
  this.multiService = new MultiServiceApi(this.http);
1480
+ this.superAdmin = new SuperAdminApi(this.http);
1481
+ this.duticotac = new DuticotacApi(this.http);
1482
+ this.kolabo = new KolaboApi(this.http);
1483
+ this.maintenance = new MaintenanceApi(this.http);
818
1484
  }
819
1485
  };
820
1486
  __name(_AppliteUI, "AppliteUI");
821
1487
  var AppliteUI = _AppliteUI;
822
1488
 
823
- export { AddressApi, AgentApi, AppliteUI, AppointmentApi, BadgeApi, CategoryApi, CollectionApi, CompanyApi, CustomerApi, DiscountApi, FieldTemplateApi, FinanceApi, HttpClient, InfoApi, MultiServiceApi, NotificationTokenApi, OptionApi, OrderApi, ProductApi, SellerApi, ServiceApi, ShippingApi, StatsApi, StoreApi, TagApi, TaxApi, WelcomeItemApi };
1489
+ export { AddressApi, AgentApi, AppliteUI, AppointmentApi, BadgeApi, CartApi, CategoryApi, CollectionApi, CompanyApi, CustomerApi, DiscountApi, DuticotacApi, DuticotacBalanceApi, DuticotacOfferApi, DuticotacPaymentApi, DuticotacTransactionApi, FieldTemplateApi, FinanceApi, HttpClient, InfoApi, KolaboApi, KolaboAppApi, KolaboCustomerApi, KolaboPartnerApi, MaintenanceApi, MultiServiceApi, NotificationApi, NotificationTokenApi, OptionApi, OrderApi, ProductApi, SellerApi, ServiceApi, ShippingApi, StatsApi, StoreApi, SuperAdminApi, SuperAdminAppsApi, SuperAdminAuthApi, SuperAdminFinanceApi, SuperAdminModulesApi, SuperAdminNotificationApi, SuperAdminStatsApi, TagApi, TaxApi, TestimonyApi, UserApi, WebhookApi, WelcomeItemApi };
824
1490
  //# sourceMappingURL=index.mjs.map
825
1491
  //# sourceMappingURL=index.mjs.map