@applite/js-sdk 0.0.11 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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;
@@ -127,18 +171,30 @@ var _InfoApi = class _InfoApi {
127
171
  this.http = http;
128
172
  }
129
173
  list(params) {
130
- return this.http.post("/app/app/list", params);
174
+ return this.http.post("/app/list", params);
131
175
  }
132
176
  create(params) {
133
- return this.http.post("/app/app/create", params);
177
+ return this.http.post("/app/create", params);
134
178
  }
135
179
  getBySlug(params) {
136
180
  const { slug, ...body } = params;
137
- return this.http.post(`/app/app/get/${slug}`, body);
181
+ return this.http.post(`/app/get/${slug}`, body);
138
182
  }
139
183
  getById(params) {
140
184
  const { appId, ...body } = params;
141
- return this.http.post(`/app/app/${appId}`, body);
185
+ return this.http.post(`/app/${appId}`, body);
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);
142
198
  }
143
199
  };
144
200
  __name(_InfoApi, "InfoApi");
@@ -223,6 +279,212 @@ var _WelcomeItemApi = class _WelcomeItemApi {
223
279
  __name(_WelcomeItemApi, "WelcomeItemApi");
224
280
  var WelcomeItemApi = _WelcomeItemApi;
225
281
 
282
+ // src/modules/common/address.ts
283
+ var _AddressApi = class _AddressApi {
284
+ constructor(http) {
285
+ this.http = http;
286
+ }
287
+ async list(params) {
288
+ const { appId, apiKey, ...rest } = params;
289
+ return this.http.post(`/app/${appId}/address/list`, {
290
+ apiKey,
291
+ ...rest
292
+ });
293
+ }
294
+ async create(params) {
295
+ const { appId, apiKey, ...rest } = params;
296
+ return this.http.post(`/app/${appId}/address/create`, {
297
+ apiKey,
298
+ ...rest
299
+ });
300
+ }
301
+ async update(params) {
302
+ const { appId, apiKey, id, ...rest } = params;
303
+ return this.http.post(`/app/${appId}/address/${id}/edit`, {
304
+ apiKey,
305
+ ...rest
306
+ });
307
+ }
308
+ async delete(params) {
309
+ const { appId, apiKey, id } = params;
310
+ return this.http.post(
311
+ `/app/${appId}/address/${id}/delete`,
312
+ { apiKey }
313
+ );
314
+ }
315
+ async getById(params) {
316
+ const { appId, apiKey, id } = params;
317
+ return this.http.post(`/app/${appId}/address/${id}`, { apiKey });
318
+ }
319
+ };
320
+ __name(_AddressApi, "AddressApi");
321
+ var AddressApi = _AddressApi;
322
+
323
+ // src/modules/common/notification-token.ts
324
+ var _NotificationTokenApi = class _NotificationTokenApi {
325
+ constructor(http) {
326
+ this.http = http;
327
+ }
328
+ async set(params) {
329
+ const { appId, apiKey, customerId, ...rest } = params;
330
+ return this.http.post(
331
+ `/app/${appId}/customer/${customerId}/notification-token/set`,
332
+ { apiKey, ...rest }
333
+ );
334
+ }
335
+ async remove(params) {
336
+ const { appId, apiKey, customerId, token } = params;
337
+ return this.http.post(
338
+ `/app/${appId}/customer/${customerId}/notification-token/remove`,
339
+ { apiKey, token }
340
+ );
341
+ }
342
+ async removeAll(params) {
343
+ const { appId, apiKey, customerId } = params;
344
+ return this.http.post(
345
+ `/app/${appId}/customer/${customerId}/notification-token/remove-all`,
346
+ { apiKey }
347
+ );
348
+ }
349
+ async list(params) {
350
+ const { appId, apiKey, customerId } = params;
351
+ return this.http.post(
352
+ `/app/${appId}/customer/${customerId}/notification-token/list`,
353
+ { apiKey }
354
+ );
355
+ }
356
+ };
357
+ __name(_NotificationTokenApi, "NotificationTokenApi");
358
+ var NotificationTokenApi = _NotificationTokenApi;
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
+
226
488
  // src/modules/store/badge.ts
227
489
  var _BadgeApi = class _BadgeApi {
228
490
  constructor(http) {
@@ -611,6 +873,20 @@ var _AppointmentApi = class _AppointmentApi {
611
873
  body
612
874
  );
613
875
  }
876
+ get(params) {
877
+ const { appId, id, ...body } = params;
878
+ return this.http.post(
879
+ `/app/${appId}/multi-service/appointments/${id}`,
880
+ body
881
+ );
882
+ }
883
+ assignAgent(params) {
884
+ const { appId, id, ...body } = params;
885
+ return this.http.post(
886
+ `/app/${appId}/multi-service/appointments/${id}/assign-agent`,
887
+ body
888
+ );
889
+ }
614
890
  };
615
891
  __name(_AppointmentApi, "AppointmentApi");
616
892
  var AppointmentApi = _AppointmentApi;
@@ -673,6 +949,43 @@ var _ServiceApi = class _ServiceApi {
673
949
  __name(_ServiceApi, "ServiceApi");
674
950
  var ServiceApi = _ServiceApi;
675
951
 
952
+ // src/modules/multi-service/field-template.ts
953
+ var _FieldTemplateApi = class _FieldTemplateApi {
954
+ constructor(http) {
955
+ this.http = http;
956
+ }
957
+ async list(params) {
958
+ const { appId, apiKey } = params;
959
+ return this.http.post(
960
+ `/app/${appId}/multi-service/fields/list`,
961
+ { apiKey }
962
+ );
963
+ }
964
+ async create(params) {
965
+ const { appId, apiKey, ...rest } = params;
966
+ return this.http.post(
967
+ `/app/${appId}/multi-service/fields/create`,
968
+ { apiKey, ...rest }
969
+ );
970
+ }
971
+ async update(params) {
972
+ const { appId, apiKey, id, ...rest } = params;
973
+ return this.http.post(
974
+ `/app/${appId}/multi-service/fields/${id}/edit`,
975
+ { apiKey, ...rest }
976
+ );
977
+ }
978
+ async delete(params) {
979
+ const { appId, apiKey, id } = params;
980
+ return this.http.post(
981
+ `/app/${appId}/multi-service/fields/${id}/delete`,
982
+ { apiKey }
983
+ );
984
+ }
985
+ };
986
+ __name(_FieldTemplateApi, "FieldTemplateApi");
987
+ var FieldTemplateApi = _FieldTemplateApi;
988
+
676
989
  // src/modules/multi-service/index.ts
677
990
  var _MultiServiceApi = class _MultiServiceApi {
678
991
  constructor(http) {
@@ -681,11 +994,353 @@ var _MultiServiceApi = class _MultiServiceApi {
681
994
  this.service = new ServiceApi(http);
682
995
  this.appointment = new AppointmentApi(http);
683
996
  this.agent = new AgentApi(http);
997
+ this.fieldTemplate = new FieldTemplateApi(http);
684
998
  }
685
999
  };
686
1000
  __name(_MultiServiceApi, "MultiServiceApi");
687
1001
  var MultiServiceApi = _MultiServiceApi;
688
1002
 
1003
+ // src/modules/super-admin/apps.ts
1004
+ var _SuperAdminAppsApi = class _SuperAdminAppsApi {
1005
+ constructor(http) {
1006
+ this.http = http;
1007
+ }
1008
+ list(params) {
1009
+ return this.http.post("/super-admin/apps/list", params);
1010
+ }
1011
+ };
1012
+ __name(_SuperAdminAppsApi, "SuperAdminAppsApi");
1013
+ var SuperAdminAppsApi = _SuperAdminAppsApi;
1014
+
1015
+ // src/modules/super-admin/auth.ts
1016
+ var _SuperAdminAuthApi = class _SuperAdminAuthApi {
1017
+ constructor(http) {
1018
+ this.http = http;
1019
+ }
1020
+ init(params) {
1021
+ return this.http.post("/super-admin/auth/init", params);
1022
+ }
1023
+ signin(params) {
1024
+ return this.http.post("/super-admin/auth/signin", params);
1025
+ }
1026
+ me(params) {
1027
+ return this.http.post("/super-admin/auth/me", params);
1028
+ }
1029
+ };
1030
+ __name(_SuperAdminAuthApi, "SuperAdminAuthApi");
1031
+ var SuperAdminAuthApi = _SuperAdminAuthApi;
1032
+
1033
+ // src/modules/super-admin/finance.ts
1034
+ var _SuperAdminFinanceApi = class _SuperAdminFinanceApi {
1035
+ constructor(http) {
1036
+ this.http = http;
1037
+ }
1038
+ transactions(params) {
1039
+ return this.http.post(
1040
+ "/super-admin/finance/transactions",
1041
+ params
1042
+ );
1043
+ }
1044
+ withdraw(params) {
1045
+ return this.http.post(
1046
+ "/super-admin/finance/withdraw",
1047
+ params
1048
+ );
1049
+ }
1050
+ };
1051
+ __name(_SuperAdminFinanceApi, "SuperAdminFinanceApi");
1052
+ var SuperAdminFinanceApi = _SuperAdminFinanceApi;
1053
+
1054
+ // src/modules/super-admin/modules.ts
1055
+ var _SuperAdminModulesApi = class _SuperAdminModulesApi {
1056
+ constructor(http) {
1057
+ this.http = http;
1058
+ }
1059
+ list(params) {
1060
+ return this.http.post("/super-admin/modules/list", params);
1061
+ }
1062
+ update(params) {
1063
+ return this.http.post("/super-admin/modules/update", params);
1064
+ }
1065
+ };
1066
+ __name(_SuperAdminModulesApi, "SuperAdminModulesApi");
1067
+ var SuperAdminModulesApi = _SuperAdminModulesApi;
1068
+
1069
+ // src/modules/super-admin/notification.ts
1070
+ var _SuperAdminNotificationApi = class _SuperAdminNotificationApi {
1071
+ constructor(http) {
1072
+ this.http = http;
1073
+ }
1074
+ send(params) {
1075
+ return this.http.post(
1076
+ "/super-admin/notification/send",
1077
+ params
1078
+ );
1079
+ }
1080
+ };
1081
+ __name(_SuperAdminNotificationApi, "SuperAdminNotificationApi");
1082
+ var SuperAdminNotificationApi = _SuperAdminNotificationApi;
1083
+
1084
+ // src/modules/super-admin/stats.ts
1085
+ var _SuperAdminStatsApi = class _SuperAdminStatsApi {
1086
+ constructor(http) {
1087
+ this.http = http;
1088
+ }
1089
+ fetch(params) {
1090
+ return this.http.post("/super-admin/stats", params);
1091
+ }
1092
+ };
1093
+ __name(_SuperAdminStatsApi, "SuperAdminStatsApi");
1094
+ var SuperAdminStatsApi = _SuperAdminStatsApi;
1095
+
1096
+ // src/modules/super-admin/index.ts
1097
+ var _SuperAdminApi = class _SuperAdminApi {
1098
+ constructor(http) {
1099
+ this.http = http;
1100
+ this.auth = new SuperAdminAuthApi(http);
1101
+ this.apps = new SuperAdminAppsApi(http);
1102
+ this.modules = new SuperAdminModulesApi(http);
1103
+ this.stats = new SuperAdminStatsApi(http);
1104
+ this.finance = new SuperAdminFinanceApi(http);
1105
+ this.notification = new SuperAdminNotificationApi(http);
1106
+ }
1107
+ };
1108
+ __name(_SuperAdminApi, "SuperAdminApi");
1109
+ var SuperAdminApi = _SuperAdminApi;
1110
+
1111
+ // src/modules/duticotac/balance.ts
1112
+ var _DuticotacBalanceApi = class _DuticotacBalanceApi {
1113
+ constructor(http) {
1114
+ this.http = http;
1115
+ }
1116
+ get(params) {
1117
+ return this.http.post("/duticotac/balance", params);
1118
+ }
1119
+ };
1120
+ __name(_DuticotacBalanceApi, "DuticotacBalanceApi");
1121
+ var DuticotacBalanceApi = _DuticotacBalanceApi;
1122
+
1123
+ // src/modules/duticotac/offer.ts
1124
+ var _DuticotacOfferApi = class _DuticotacOfferApi {
1125
+ constructor(http) {
1126
+ this.http = http;
1127
+ }
1128
+ create(params) {
1129
+ return this.http.post("/duticotac/offer/create", params);
1130
+ }
1131
+ edit(params) {
1132
+ const { ref, ...body } = params;
1133
+ return this.http.post(`/duticotac/offer/${ref}/edit`, body);
1134
+ }
1135
+ delete(ref, params) {
1136
+ return this.http.post(`/duticotac/offer/${ref}/delete`, params);
1137
+ }
1138
+ list(params) {
1139
+ return this.http.post("/duticotac/offer/list", params);
1140
+ }
1141
+ get(ref, params) {
1142
+ return this.http.post(`/duticotac/offer/${ref}`, params);
1143
+ }
1144
+ };
1145
+ __name(_DuticotacOfferApi, "DuticotacOfferApi");
1146
+ var DuticotacOfferApi = _DuticotacOfferApi;
1147
+
1148
+ // src/modules/duticotac/payment.ts
1149
+ var _DuticotacPaymentApi = class _DuticotacPaymentApi {
1150
+ constructor(http) {
1151
+ this.http = http;
1152
+ }
1153
+ cashIn(params) {
1154
+ return this.http.post("/duticotac/pay/mobile-money/cashin", params);
1155
+ }
1156
+ cashOut(params) {
1157
+ return this.http.post("/duticotac/pay/mobile-money/cashout", params);
1158
+ }
1159
+ setPaymentMethods(params) {
1160
+ return this.http.post("/duticotac/payment-method/set", params);
1161
+ }
1162
+ getPaymentMethods(params) {
1163
+ return this.http.post("/duticotac/payment-method", params);
1164
+ }
1165
+ };
1166
+ __name(_DuticotacPaymentApi, "DuticotacPaymentApi");
1167
+ var DuticotacPaymentApi = _DuticotacPaymentApi;
1168
+
1169
+ // src/modules/duticotac/transaction.ts
1170
+ var _DuticotacTransactionApi = class _DuticotacTransactionApi {
1171
+ constructor(http) {
1172
+ this.http = http;
1173
+ }
1174
+ get(params) {
1175
+ return this.http.post("/duticotac/transaction/get", params);
1176
+ }
1177
+ };
1178
+ __name(_DuticotacTransactionApi, "DuticotacTransactionApi");
1179
+ var DuticotacTransactionApi = _DuticotacTransactionApi;
1180
+
1181
+ // src/modules/duticotac/index.ts
1182
+ var _DuticotacApi = class _DuticotacApi {
1183
+ constructor(http) {
1184
+ this.http = http;
1185
+ this.balance = new DuticotacBalanceApi(http);
1186
+ this.offer = new DuticotacOfferApi(http);
1187
+ this.payment = new DuticotacPaymentApi(http);
1188
+ this.transaction = new DuticotacTransactionApi(http);
1189
+ }
1190
+ };
1191
+ __name(_DuticotacApi, "DuticotacApi");
1192
+ var DuticotacApi = _DuticotacApi;
1193
+
1194
+ // src/modules/kolabo/app.ts
1195
+ var _KolaboAppApi = class _KolaboAppApi {
1196
+ constructor(http) {
1197
+ this.http = http;
1198
+ }
1199
+ configure(slug, params) {
1200
+ return this.http.post(`/kolabo/app/${slug}/configure`, params);
1201
+ }
1202
+ join(slug, params) {
1203
+ return this.http.post(`/kolabo/app/${slug}/join`, params);
1204
+ }
1205
+ getBySlug(slug, params) {
1206
+ return this.http.post(`/kolabo/app/${slug}`, params);
1207
+ }
1208
+ get(slug, params) {
1209
+ return this.http.post(`/kolabo/app/${slug}/get`, params);
1210
+ }
1211
+ list(params) {
1212
+ return this.http.post("/kolabo/app/list", params);
1213
+ }
1214
+ };
1215
+ __name(_KolaboAppApi, "KolaboAppApi");
1216
+ var KolaboAppApi = _KolaboAppApi;
1217
+
1218
+ // src/modules/kolabo/customer.ts
1219
+ var _KolaboCustomerApi = class _KolaboCustomerApi {
1220
+ constructor(http) {
1221
+ this.http = http;
1222
+ }
1223
+ create(params) {
1224
+ return this.http.post("/kolabo/customer/create", params);
1225
+ }
1226
+ createPartnership(params) {
1227
+ return this.http.post("/kolabo/customer/create-partnership", params);
1228
+ }
1229
+ };
1230
+ __name(_KolaboCustomerApi, "KolaboCustomerApi");
1231
+ var KolaboCustomerApi = _KolaboCustomerApi;
1232
+
1233
+ // src/modules/kolabo/partner.ts
1234
+ var _KolaboPartnerApi = class _KolaboPartnerApi {
1235
+ constructor(http) {
1236
+ this.http = http;
1237
+ }
1238
+ signUp(params) {
1239
+ return this.http.post("/kolabo/partner/signup", params);
1240
+ }
1241
+ check(params) {
1242
+ return this.http.post("/kolabo/partner/check", params);
1243
+ }
1244
+ get(id, params) {
1245
+ return this.http.post(`/kolabo/partner/${id}`, params);
1246
+ }
1247
+ editProfile(id, params) {
1248
+ return this.http.post(`/kolabo/partner/${id}/edit-profile`, params);
1249
+ }
1250
+ getLink(id, params) {
1251
+ return this.http.post(`/kolabo/partner/${id}/get-link`, params);
1252
+ }
1253
+ getPartnership(id, params) {
1254
+ return this.http.post(
1255
+ `/kolabo/partner/${id}/get-partnership`,
1256
+ params
1257
+ );
1258
+ }
1259
+ setPin(id, params) {
1260
+ return this.http.post(`/kolabo/partner/${id}/set-pin`, params);
1261
+ }
1262
+ cancelPartnership(id, params) {
1263
+ return this.http.post(`/kolabo/partner/${id}/cancel-partnership`, params);
1264
+ }
1265
+ delete(id, params) {
1266
+ return this.http.post(`/kolabo/partner/${id}/delete`, params);
1267
+ }
1268
+ apps(id, params) {
1269
+ return this.http.post(`/kolabo/partner/${id}/apps`, params);
1270
+ }
1271
+ listTransactions(id, params) {
1272
+ return this.http.post(
1273
+ `/kolabo/partner/${id}/transaction/list`,
1274
+ params
1275
+ );
1276
+ }
1277
+ transaction(id, params) {
1278
+ return this.http.post(
1279
+ `/kolabo/partner/${id}/transaction`,
1280
+ params
1281
+ );
1282
+ }
1283
+ withdraw(id, params) {
1284
+ return this.http.post(`/kolabo/partner/${id}/withdraw`, params);
1285
+ }
1286
+ withdrawWebhook(id, params) {
1287
+ return this.http.post(
1288
+ `/kolabo/partner/${id}/withdraw/webhook`,
1289
+ {
1290
+ appId: params.appId,
1291
+ service_id: params.serviceId,
1292
+ gu_transaction_id: params.guTransactionId,
1293
+ status: params.status,
1294
+ partner_transaction_id: params.partnerTransactionId,
1295
+ call_back_url: params.callBackUrl,
1296
+ commission: params.commission,
1297
+ message: params.message
1298
+ }
1299
+ );
1300
+ }
1301
+ };
1302
+ __name(_KolaboPartnerApi, "KolaboPartnerApi");
1303
+ var KolaboPartnerApi = _KolaboPartnerApi;
1304
+
1305
+ // src/modules/kolabo/index.ts
1306
+ var _KolaboApi = class _KolaboApi {
1307
+ constructor(http) {
1308
+ this.http = http;
1309
+ this.app = new KolaboAppApi(http);
1310
+ this.customer = new KolaboCustomerApi(http);
1311
+ this.partner = new KolaboPartnerApi(http);
1312
+ }
1313
+ };
1314
+ __name(_KolaboApi, "KolaboApi");
1315
+ var KolaboApi = _KolaboApi;
1316
+
1317
+ // src/modules/maintenance/maintenance.ts
1318
+ var _MaintenanceApi = class _MaintenanceApi {
1319
+ constructor(http) {
1320
+ this.http = http;
1321
+ }
1322
+ cronNotification(params = {}) {
1323
+ return this.http.get("/cron/notification", {
1324
+ query: params
1325
+ });
1326
+ }
1327
+ cronBilling(params) {
1328
+ const { authorizationToken, ...query } = params;
1329
+ const headers = authorizationToken ? { authorization: `Bearer ${authorizationToken}` } : void 0;
1330
+ return this.http.get("/cron/billing", {
1331
+ query,
1332
+ headers
1333
+ });
1334
+ }
1335
+ cleanupTransactions(params = {}) {
1336
+ return this.http.get("/cleanup/transactions", {
1337
+ query: params
1338
+ });
1339
+ }
1340
+ };
1341
+ __name(_MaintenanceApi, "MaintenanceApi");
1342
+ var MaintenanceApi = _MaintenanceApi;
1343
+
689
1344
  // src/index.ts
690
1345
  var _AppliteUI = class _AppliteUI {
691
1346
  constructor(config = {}) {
@@ -699,13 +1354,22 @@ var _AppliteUI = class _AppliteUI {
699
1354
  this.finance = new FinanceApi(this.http);
700
1355
  this.welcomeItem = new WelcomeItemApi(this.http);
701
1356
  this.info = new InfoApi(this.http);
1357
+ this.address = new AddressApi(this.http);
1358
+ this.notificationToken = new NotificationTokenApi(this.http);
1359
+ this.notification = new NotificationApi(this.http);
1360
+ this.webhook = new WebhookApi(this.http);
1361
+ this.user = new UserApi(this.http);
702
1362
  this.store = new StoreApi(this.http);
703
1363
  this.multiService = new MultiServiceApi(this.http);
1364
+ this.superAdmin = new SuperAdminApi(this.http);
1365
+ this.duticotac = new DuticotacApi(this.http);
1366
+ this.kolabo = new KolaboApi(this.http);
1367
+ this.maintenance = new MaintenanceApi(this.http);
704
1368
  }
705
1369
  };
706
1370
  __name(_AppliteUI, "AppliteUI");
707
1371
  var AppliteUI = _AppliteUI;
708
1372
 
709
- export { AgentApi, AppliteUI, AppointmentApi, BadgeApi, CategoryApi, CollectionApi, CompanyApi, CustomerApi, DiscountApi, FinanceApi, HttpClient, InfoApi, MultiServiceApi, OptionApi, OrderApi, ProductApi, SellerApi, ServiceApi, ShippingApi, StatsApi, StoreApi, TagApi, TaxApi, WelcomeItemApi };
1373
+ export { AddressApi, AgentApi, AppliteUI, AppointmentApi, BadgeApi, 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, UserApi, WebhookApi, WelcomeItemApi };
710
1374
  //# sourceMappingURL=index.mjs.map
711
1375
  //# sourceMappingURL=index.mjs.map