@applite/js-sdk 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +402 -154
- package/dist/index.d.mts +792 -1
- package/dist/index.d.ts +792 -1
- package/dist/index.js +570 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +551 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -32,6 +32,50 @@ var _HttpClient = class _HttpClient {
|
|
|
32
32
|
}
|
|
33
33
|
return payload;
|
|
34
34
|
}
|
|
35
|
+
async get(path, options = {}) {
|
|
36
|
+
const queryString = this.buildQueryString(options.query);
|
|
37
|
+
const url = `${this.baseUrl}${path}${queryString}`;
|
|
38
|
+
const response = await this.fetchImpl(url, {
|
|
39
|
+
method: "GET",
|
|
40
|
+
headers: {
|
|
41
|
+
...this.headers,
|
|
42
|
+
...options.headers
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
const contentType = response.headers.get("content-type") ?? "";
|
|
46
|
+
const isJson = contentType.includes("application/json");
|
|
47
|
+
const payload = isJson ? await response.json() : null;
|
|
48
|
+
if (!response.ok) {
|
|
49
|
+
const message = payload?.error ?? response.statusText;
|
|
50
|
+
throw new Error(`Request failed with status ${response.status}: ${message}`);
|
|
51
|
+
}
|
|
52
|
+
if (!payload || payload.success !== true) {
|
|
53
|
+
throw new Error(`Request failed: ${payload?.error ?? "Unknown error"}`);
|
|
54
|
+
}
|
|
55
|
+
return payload;
|
|
56
|
+
}
|
|
57
|
+
buildQueryString(query) {
|
|
58
|
+
if (!query) {
|
|
59
|
+
return "";
|
|
60
|
+
}
|
|
61
|
+
const params = new URLSearchParams();
|
|
62
|
+
Object.entries(query).forEach(([key, value]) => {
|
|
63
|
+
if (value === void 0 || value === null) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if (Array.isArray(value)) {
|
|
67
|
+
value.forEach((item) => {
|
|
68
|
+
if (item !== void 0 && item !== null) {
|
|
69
|
+
params.append(key, String(item));
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
params.append(key, String(value));
|
|
75
|
+
});
|
|
76
|
+
const queryString = params.toString();
|
|
77
|
+
return queryString ? `?${queryString}` : "";
|
|
78
|
+
}
|
|
35
79
|
};
|
|
36
80
|
__name(_HttpClient, "HttpClient");
|
|
37
81
|
var HttpClient = _HttpClient;
|
|
@@ -142,6 +186,18 @@ var _InfoApi = class _InfoApi {
|
|
|
142
186
|
const { appId, ...body } = params;
|
|
143
187
|
return this.http.post(`/app/${appId}`, body);
|
|
144
188
|
}
|
|
189
|
+
update(params) {
|
|
190
|
+
const { appId, ...body } = params;
|
|
191
|
+
return this.http.post(`/app/${appId}/update`, body);
|
|
192
|
+
}
|
|
193
|
+
updateModules(params) {
|
|
194
|
+
const { appId, ...body } = params;
|
|
195
|
+
return this.http.post(`/app/${appId}/modules`, body);
|
|
196
|
+
}
|
|
197
|
+
toggleModule(params) {
|
|
198
|
+
const { appId, ...body } = params;
|
|
199
|
+
return this.http.post(`/app/${appId}/modules/toggle`, body);
|
|
200
|
+
}
|
|
145
201
|
};
|
|
146
202
|
__name(_InfoApi, "InfoApi");
|
|
147
203
|
var InfoApi = _InfoApi;
|
|
@@ -258,6 +314,10 @@ var _AddressApi = class _AddressApi {
|
|
|
258
314
|
{ apiKey }
|
|
259
315
|
);
|
|
260
316
|
}
|
|
317
|
+
async getById(params) {
|
|
318
|
+
const { appId, apiKey, id } = params;
|
|
319
|
+
return this.http.post(`/app/${appId}/address/${id}`, { apiKey });
|
|
320
|
+
}
|
|
261
321
|
};
|
|
262
322
|
__name(_AddressApi, "AddressApi");
|
|
263
323
|
var AddressApi = _AddressApi;
|
|
@@ -299,6 +359,134 @@ var _NotificationTokenApi = class _NotificationTokenApi {
|
|
|
299
359
|
__name(_NotificationTokenApi, "NotificationTokenApi");
|
|
300
360
|
var NotificationTokenApi = _NotificationTokenApi;
|
|
301
361
|
|
|
362
|
+
// src/modules/common/notification.ts
|
|
363
|
+
var _NotificationApi = class _NotificationApi {
|
|
364
|
+
constructor(http) {
|
|
365
|
+
this.http = http;
|
|
366
|
+
}
|
|
367
|
+
getFirebaseConfig(params) {
|
|
368
|
+
return this.http.post(
|
|
369
|
+
"/notification/firebase-config",
|
|
370
|
+
params
|
|
371
|
+
);
|
|
372
|
+
}
|
|
373
|
+
setFirebaseConfig(params) {
|
|
374
|
+
return this.http.post(
|
|
375
|
+
"/notification/firebase-config/set",
|
|
376
|
+
params
|
|
377
|
+
);
|
|
378
|
+
}
|
|
379
|
+
deleteFirebaseConfig(params) {
|
|
380
|
+
return this.http.post(
|
|
381
|
+
"/notification/firebase-config/delete",
|
|
382
|
+
params
|
|
383
|
+
);
|
|
384
|
+
}
|
|
385
|
+
getTemplates(params) {
|
|
386
|
+
return this.http.post("/notification/template", params);
|
|
387
|
+
}
|
|
388
|
+
setTemplate(params) {
|
|
389
|
+
return this.http.post(
|
|
390
|
+
"/notification/template/set",
|
|
391
|
+
params
|
|
392
|
+
);
|
|
393
|
+
}
|
|
394
|
+
deleteTemplate(params) {
|
|
395
|
+
return this.http.post("/notification/template/delete", params);
|
|
396
|
+
}
|
|
397
|
+
async getLogs(params) {
|
|
398
|
+
const response = await this.http.post(
|
|
399
|
+
"/notification/logs",
|
|
400
|
+
params
|
|
401
|
+
);
|
|
402
|
+
if (Array.isArray(response.data)) {
|
|
403
|
+
return {
|
|
404
|
+
...response,
|
|
405
|
+
data: {
|
|
406
|
+
logs: response.data,
|
|
407
|
+
total: response.data.length,
|
|
408
|
+
limit: response.data.length,
|
|
409
|
+
offset: 0,
|
|
410
|
+
hasMore: false
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
return response;
|
|
415
|
+
}
|
|
416
|
+
};
|
|
417
|
+
__name(_NotificationApi, "NotificationApi");
|
|
418
|
+
var NotificationApi = _NotificationApi;
|
|
419
|
+
|
|
420
|
+
// src/modules/common/webhook.ts
|
|
421
|
+
var _WebhookApi = class _WebhookApi {
|
|
422
|
+
constructor(http) {
|
|
423
|
+
this.http = http;
|
|
424
|
+
}
|
|
425
|
+
set(params) {
|
|
426
|
+
return this.http.post("/webhook/set", params);
|
|
427
|
+
}
|
|
428
|
+
list(params) {
|
|
429
|
+
return this.http.post("/webhook", params);
|
|
430
|
+
}
|
|
431
|
+
delete(params) {
|
|
432
|
+
return this.http.post("/webhook/delete", params);
|
|
433
|
+
}
|
|
434
|
+
getLogs(params) {
|
|
435
|
+
return this.http.post("/webhook/logs", params);
|
|
436
|
+
}
|
|
437
|
+
};
|
|
438
|
+
__name(_WebhookApi, "WebhookApi");
|
|
439
|
+
var WebhookApi = _WebhookApi;
|
|
440
|
+
|
|
441
|
+
// src/modules/common/user.ts
|
|
442
|
+
var _UserApi = class _UserApi {
|
|
443
|
+
constructor(http) {
|
|
444
|
+
this.http = http;
|
|
445
|
+
}
|
|
446
|
+
signup(params) {
|
|
447
|
+
return this.http.post("/user/signup", {
|
|
448
|
+
nom_de_famille: params.nomDeFamille,
|
|
449
|
+
prenom: params.prenom,
|
|
450
|
+
email: params.email,
|
|
451
|
+
telephone: params.telephone,
|
|
452
|
+
password: params.password,
|
|
453
|
+
confirm: params.confirm
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
signin(params) {
|
|
457
|
+
return this.http.post("/user/signin", params);
|
|
458
|
+
}
|
|
459
|
+
get(params) {
|
|
460
|
+
const { id, ...body } = params;
|
|
461
|
+
return this.http.post(`/user/${id}`, body);
|
|
462
|
+
}
|
|
463
|
+
update(params) {
|
|
464
|
+
const { id, nomDeFamille, ...rest } = params;
|
|
465
|
+
return this.http.post(`/user/${id}/update`, {
|
|
466
|
+
...rest,
|
|
467
|
+
nom_de_famille: nomDeFamille
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
delete(params) {
|
|
471
|
+
const { id, ...body } = params;
|
|
472
|
+
return this.http.post(`/user/${id}/delete`, body);
|
|
473
|
+
}
|
|
474
|
+
editCredentials(params) {
|
|
475
|
+
const { id, ...body } = params;
|
|
476
|
+
return this.http.post(`/user/${id}/edit-cred`, body);
|
|
477
|
+
}
|
|
478
|
+
verifyPassword(params) {
|
|
479
|
+
const { id, ...body } = params;
|
|
480
|
+
return this.http.post(`/user/${id}/verify-pass`, body);
|
|
481
|
+
}
|
|
482
|
+
setNotification(params) {
|
|
483
|
+
const { id, ...body } = params;
|
|
484
|
+
return this.http.post(`/user/${id}/set-notification`, body);
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
__name(_UserApi, "UserApi");
|
|
488
|
+
var UserApi = _UserApi;
|
|
489
|
+
|
|
302
490
|
// src/modules/store/badge.ts
|
|
303
491
|
var _BadgeApi = class _BadgeApi {
|
|
304
492
|
constructor(http) {
|
|
@@ -687,6 +875,20 @@ var _AppointmentApi = class _AppointmentApi {
|
|
|
687
875
|
body
|
|
688
876
|
);
|
|
689
877
|
}
|
|
878
|
+
get(params) {
|
|
879
|
+
const { appId, id, ...body } = params;
|
|
880
|
+
return this.http.post(
|
|
881
|
+
`/app/${appId}/multi-service/appointments/${id}`,
|
|
882
|
+
body
|
|
883
|
+
);
|
|
884
|
+
}
|
|
885
|
+
assignAgent(params) {
|
|
886
|
+
const { appId, id, ...body } = params;
|
|
887
|
+
return this.http.post(
|
|
888
|
+
`/app/${appId}/multi-service/appointments/${id}/assign-agent`,
|
|
889
|
+
body
|
|
890
|
+
);
|
|
891
|
+
}
|
|
690
892
|
};
|
|
691
893
|
__name(_AppointmentApi, "AppointmentApi");
|
|
692
894
|
var AppointmentApi = _AppointmentApi;
|
|
@@ -800,6 +1002,347 @@ var _MultiServiceApi = class _MultiServiceApi {
|
|
|
800
1002
|
__name(_MultiServiceApi, "MultiServiceApi");
|
|
801
1003
|
var MultiServiceApi = _MultiServiceApi;
|
|
802
1004
|
|
|
1005
|
+
// src/modules/super-admin/apps.ts
|
|
1006
|
+
var _SuperAdminAppsApi = class _SuperAdminAppsApi {
|
|
1007
|
+
constructor(http) {
|
|
1008
|
+
this.http = http;
|
|
1009
|
+
}
|
|
1010
|
+
list(params) {
|
|
1011
|
+
return this.http.post("/super-admin/apps/list", params);
|
|
1012
|
+
}
|
|
1013
|
+
};
|
|
1014
|
+
__name(_SuperAdminAppsApi, "SuperAdminAppsApi");
|
|
1015
|
+
var SuperAdminAppsApi = _SuperAdminAppsApi;
|
|
1016
|
+
|
|
1017
|
+
// src/modules/super-admin/auth.ts
|
|
1018
|
+
var _SuperAdminAuthApi = class _SuperAdminAuthApi {
|
|
1019
|
+
constructor(http) {
|
|
1020
|
+
this.http = http;
|
|
1021
|
+
}
|
|
1022
|
+
init(params) {
|
|
1023
|
+
return this.http.post("/super-admin/auth/init", params);
|
|
1024
|
+
}
|
|
1025
|
+
signin(params) {
|
|
1026
|
+
return this.http.post("/super-admin/auth/signin", params);
|
|
1027
|
+
}
|
|
1028
|
+
me(params) {
|
|
1029
|
+
return this.http.post("/super-admin/auth/me", params);
|
|
1030
|
+
}
|
|
1031
|
+
};
|
|
1032
|
+
__name(_SuperAdminAuthApi, "SuperAdminAuthApi");
|
|
1033
|
+
var SuperAdminAuthApi = _SuperAdminAuthApi;
|
|
1034
|
+
|
|
1035
|
+
// src/modules/super-admin/finance.ts
|
|
1036
|
+
var _SuperAdminFinanceApi = class _SuperAdminFinanceApi {
|
|
1037
|
+
constructor(http) {
|
|
1038
|
+
this.http = http;
|
|
1039
|
+
}
|
|
1040
|
+
transactions(params) {
|
|
1041
|
+
return this.http.post(
|
|
1042
|
+
"/super-admin/finance/transactions",
|
|
1043
|
+
params
|
|
1044
|
+
);
|
|
1045
|
+
}
|
|
1046
|
+
withdraw(params) {
|
|
1047
|
+
return this.http.post(
|
|
1048
|
+
"/super-admin/finance/withdraw",
|
|
1049
|
+
params
|
|
1050
|
+
);
|
|
1051
|
+
}
|
|
1052
|
+
};
|
|
1053
|
+
__name(_SuperAdminFinanceApi, "SuperAdminFinanceApi");
|
|
1054
|
+
var SuperAdminFinanceApi = _SuperAdminFinanceApi;
|
|
1055
|
+
|
|
1056
|
+
// src/modules/super-admin/modules.ts
|
|
1057
|
+
var _SuperAdminModulesApi = class _SuperAdminModulesApi {
|
|
1058
|
+
constructor(http) {
|
|
1059
|
+
this.http = http;
|
|
1060
|
+
}
|
|
1061
|
+
list(params) {
|
|
1062
|
+
return this.http.post("/super-admin/modules/list", params);
|
|
1063
|
+
}
|
|
1064
|
+
update(params) {
|
|
1065
|
+
return this.http.post("/super-admin/modules/update", params);
|
|
1066
|
+
}
|
|
1067
|
+
};
|
|
1068
|
+
__name(_SuperAdminModulesApi, "SuperAdminModulesApi");
|
|
1069
|
+
var SuperAdminModulesApi = _SuperAdminModulesApi;
|
|
1070
|
+
|
|
1071
|
+
// src/modules/super-admin/notification.ts
|
|
1072
|
+
var _SuperAdminNotificationApi = class _SuperAdminNotificationApi {
|
|
1073
|
+
constructor(http) {
|
|
1074
|
+
this.http = http;
|
|
1075
|
+
}
|
|
1076
|
+
send(params) {
|
|
1077
|
+
return this.http.post(
|
|
1078
|
+
"/super-admin/notification/send",
|
|
1079
|
+
params
|
|
1080
|
+
);
|
|
1081
|
+
}
|
|
1082
|
+
};
|
|
1083
|
+
__name(_SuperAdminNotificationApi, "SuperAdminNotificationApi");
|
|
1084
|
+
var SuperAdminNotificationApi = _SuperAdminNotificationApi;
|
|
1085
|
+
|
|
1086
|
+
// src/modules/super-admin/stats.ts
|
|
1087
|
+
var _SuperAdminStatsApi = class _SuperAdminStatsApi {
|
|
1088
|
+
constructor(http) {
|
|
1089
|
+
this.http = http;
|
|
1090
|
+
}
|
|
1091
|
+
fetch(params) {
|
|
1092
|
+
return this.http.post("/super-admin/stats", params);
|
|
1093
|
+
}
|
|
1094
|
+
};
|
|
1095
|
+
__name(_SuperAdminStatsApi, "SuperAdminStatsApi");
|
|
1096
|
+
var SuperAdminStatsApi = _SuperAdminStatsApi;
|
|
1097
|
+
|
|
1098
|
+
// src/modules/super-admin/index.ts
|
|
1099
|
+
var _SuperAdminApi = class _SuperAdminApi {
|
|
1100
|
+
constructor(http) {
|
|
1101
|
+
this.http = http;
|
|
1102
|
+
this.auth = new SuperAdminAuthApi(http);
|
|
1103
|
+
this.apps = new SuperAdminAppsApi(http);
|
|
1104
|
+
this.modules = new SuperAdminModulesApi(http);
|
|
1105
|
+
this.stats = new SuperAdminStatsApi(http);
|
|
1106
|
+
this.finance = new SuperAdminFinanceApi(http);
|
|
1107
|
+
this.notification = new SuperAdminNotificationApi(http);
|
|
1108
|
+
}
|
|
1109
|
+
};
|
|
1110
|
+
__name(_SuperAdminApi, "SuperAdminApi");
|
|
1111
|
+
var SuperAdminApi = _SuperAdminApi;
|
|
1112
|
+
|
|
1113
|
+
// src/modules/duticotac/balance.ts
|
|
1114
|
+
var _DuticotacBalanceApi = class _DuticotacBalanceApi {
|
|
1115
|
+
constructor(http) {
|
|
1116
|
+
this.http = http;
|
|
1117
|
+
}
|
|
1118
|
+
get(params) {
|
|
1119
|
+
return this.http.post("/duticotac/balance", params);
|
|
1120
|
+
}
|
|
1121
|
+
};
|
|
1122
|
+
__name(_DuticotacBalanceApi, "DuticotacBalanceApi");
|
|
1123
|
+
var DuticotacBalanceApi = _DuticotacBalanceApi;
|
|
1124
|
+
|
|
1125
|
+
// src/modules/duticotac/offer.ts
|
|
1126
|
+
var _DuticotacOfferApi = class _DuticotacOfferApi {
|
|
1127
|
+
constructor(http) {
|
|
1128
|
+
this.http = http;
|
|
1129
|
+
}
|
|
1130
|
+
create(params) {
|
|
1131
|
+
return this.http.post("/duticotac/offer/create", params);
|
|
1132
|
+
}
|
|
1133
|
+
edit(params) {
|
|
1134
|
+
const { ref, ...body } = params;
|
|
1135
|
+
return this.http.post(`/duticotac/offer/${ref}/edit`, body);
|
|
1136
|
+
}
|
|
1137
|
+
delete(ref, params) {
|
|
1138
|
+
return this.http.post(`/duticotac/offer/${ref}/delete`, params);
|
|
1139
|
+
}
|
|
1140
|
+
list(params) {
|
|
1141
|
+
return this.http.post("/duticotac/offer/list", params);
|
|
1142
|
+
}
|
|
1143
|
+
get(ref, params) {
|
|
1144
|
+
return this.http.post(`/duticotac/offer/${ref}`, params);
|
|
1145
|
+
}
|
|
1146
|
+
};
|
|
1147
|
+
__name(_DuticotacOfferApi, "DuticotacOfferApi");
|
|
1148
|
+
var DuticotacOfferApi = _DuticotacOfferApi;
|
|
1149
|
+
|
|
1150
|
+
// src/modules/duticotac/payment.ts
|
|
1151
|
+
var _DuticotacPaymentApi = class _DuticotacPaymentApi {
|
|
1152
|
+
constructor(http) {
|
|
1153
|
+
this.http = http;
|
|
1154
|
+
}
|
|
1155
|
+
cashIn(params) {
|
|
1156
|
+
return this.http.post("/duticotac/pay/mobile-money/cashin", params);
|
|
1157
|
+
}
|
|
1158
|
+
cashOut(params) {
|
|
1159
|
+
return this.http.post("/duticotac/pay/mobile-money/cashout", params);
|
|
1160
|
+
}
|
|
1161
|
+
setPaymentMethods(params) {
|
|
1162
|
+
return this.http.post("/duticotac/payment-method/set", params);
|
|
1163
|
+
}
|
|
1164
|
+
getPaymentMethods(params) {
|
|
1165
|
+
return this.http.post("/duticotac/payment-method", params);
|
|
1166
|
+
}
|
|
1167
|
+
};
|
|
1168
|
+
__name(_DuticotacPaymentApi, "DuticotacPaymentApi");
|
|
1169
|
+
var DuticotacPaymentApi = _DuticotacPaymentApi;
|
|
1170
|
+
|
|
1171
|
+
// src/modules/duticotac/transaction.ts
|
|
1172
|
+
var _DuticotacTransactionApi = class _DuticotacTransactionApi {
|
|
1173
|
+
constructor(http) {
|
|
1174
|
+
this.http = http;
|
|
1175
|
+
}
|
|
1176
|
+
get(params) {
|
|
1177
|
+
return this.http.post("/duticotac/transaction/get", params);
|
|
1178
|
+
}
|
|
1179
|
+
};
|
|
1180
|
+
__name(_DuticotacTransactionApi, "DuticotacTransactionApi");
|
|
1181
|
+
var DuticotacTransactionApi = _DuticotacTransactionApi;
|
|
1182
|
+
|
|
1183
|
+
// src/modules/duticotac/index.ts
|
|
1184
|
+
var _DuticotacApi = class _DuticotacApi {
|
|
1185
|
+
constructor(http) {
|
|
1186
|
+
this.http = http;
|
|
1187
|
+
this.balance = new DuticotacBalanceApi(http);
|
|
1188
|
+
this.offer = new DuticotacOfferApi(http);
|
|
1189
|
+
this.payment = new DuticotacPaymentApi(http);
|
|
1190
|
+
this.transaction = new DuticotacTransactionApi(http);
|
|
1191
|
+
}
|
|
1192
|
+
};
|
|
1193
|
+
__name(_DuticotacApi, "DuticotacApi");
|
|
1194
|
+
var DuticotacApi = _DuticotacApi;
|
|
1195
|
+
|
|
1196
|
+
// src/modules/kolabo/app.ts
|
|
1197
|
+
var _KolaboAppApi = class _KolaboAppApi {
|
|
1198
|
+
constructor(http) {
|
|
1199
|
+
this.http = http;
|
|
1200
|
+
}
|
|
1201
|
+
configure(slug, params) {
|
|
1202
|
+
return this.http.post(`/kolabo/app/${slug}/configure`, params);
|
|
1203
|
+
}
|
|
1204
|
+
join(slug, params) {
|
|
1205
|
+
return this.http.post(`/kolabo/app/${slug}/join`, params);
|
|
1206
|
+
}
|
|
1207
|
+
getBySlug(slug, params) {
|
|
1208
|
+
return this.http.post(`/kolabo/app/${slug}`, params);
|
|
1209
|
+
}
|
|
1210
|
+
get(slug, params) {
|
|
1211
|
+
return this.http.post(`/kolabo/app/${slug}/get`, params);
|
|
1212
|
+
}
|
|
1213
|
+
list(params) {
|
|
1214
|
+
return this.http.post("/kolabo/app/list", params);
|
|
1215
|
+
}
|
|
1216
|
+
};
|
|
1217
|
+
__name(_KolaboAppApi, "KolaboAppApi");
|
|
1218
|
+
var KolaboAppApi = _KolaboAppApi;
|
|
1219
|
+
|
|
1220
|
+
// src/modules/kolabo/customer.ts
|
|
1221
|
+
var _KolaboCustomerApi = class _KolaboCustomerApi {
|
|
1222
|
+
constructor(http) {
|
|
1223
|
+
this.http = http;
|
|
1224
|
+
}
|
|
1225
|
+
create(params) {
|
|
1226
|
+
return this.http.post("/kolabo/customer/create", params);
|
|
1227
|
+
}
|
|
1228
|
+
createPartnership(params) {
|
|
1229
|
+
return this.http.post("/kolabo/customer/create-partnership", params);
|
|
1230
|
+
}
|
|
1231
|
+
};
|
|
1232
|
+
__name(_KolaboCustomerApi, "KolaboCustomerApi");
|
|
1233
|
+
var KolaboCustomerApi = _KolaboCustomerApi;
|
|
1234
|
+
|
|
1235
|
+
// src/modules/kolabo/partner.ts
|
|
1236
|
+
var _KolaboPartnerApi = class _KolaboPartnerApi {
|
|
1237
|
+
constructor(http) {
|
|
1238
|
+
this.http = http;
|
|
1239
|
+
}
|
|
1240
|
+
signUp(params) {
|
|
1241
|
+
return this.http.post("/kolabo/partner/signup", params);
|
|
1242
|
+
}
|
|
1243
|
+
check(params) {
|
|
1244
|
+
return this.http.post("/kolabo/partner/check", params);
|
|
1245
|
+
}
|
|
1246
|
+
get(id, params) {
|
|
1247
|
+
return this.http.post(`/kolabo/partner/${id}`, params);
|
|
1248
|
+
}
|
|
1249
|
+
editProfile(id, params) {
|
|
1250
|
+
return this.http.post(`/kolabo/partner/${id}/edit-profile`, params);
|
|
1251
|
+
}
|
|
1252
|
+
getLink(id, params) {
|
|
1253
|
+
return this.http.post(`/kolabo/partner/${id}/get-link`, params);
|
|
1254
|
+
}
|
|
1255
|
+
getPartnership(id, params) {
|
|
1256
|
+
return this.http.post(
|
|
1257
|
+
`/kolabo/partner/${id}/get-partnership`,
|
|
1258
|
+
params
|
|
1259
|
+
);
|
|
1260
|
+
}
|
|
1261
|
+
setPin(id, params) {
|
|
1262
|
+
return this.http.post(`/kolabo/partner/${id}/set-pin`, params);
|
|
1263
|
+
}
|
|
1264
|
+
cancelPartnership(id, params) {
|
|
1265
|
+
return this.http.post(`/kolabo/partner/${id}/cancel-partnership`, params);
|
|
1266
|
+
}
|
|
1267
|
+
delete(id, params) {
|
|
1268
|
+
return this.http.post(`/kolabo/partner/${id}/delete`, params);
|
|
1269
|
+
}
|
|
1270
|
+
apps(id, params) {
|
|
1271
|
+
return this.http.post(`/kolabo/partner/${id}/apps`, params);
|
|
1272
|
+
}
|
|
1273
|
+
listTransactions(id, params) {
|
|
1274
|
+
return this.http.post(
|
|
1275
|
+
`/kolabo/partner/${id}/transaction/list`,
|
|
1276
|
+
params
|
|
1277
|
+
);
|
|
1278
|
+
}
|
|
1279
|
+
transaction(id, params) {
|
|
1280
|
+
return this.http.post(
|
|
1281
|
+
`/kolabo/partner/${id}/transaction`,
|
|
1282
|
+
params
|
|
1283
|
+
);
|
|
1284
|
+
}
|
|
1285
|
+
withdraw(id, params) {
|
|
1286
|
+
return this.http.post(`/kolabo/partner/${id}/withdraw`, params);
|
|
1287
|
+
}
|
|
1288
|
+
withdrawWebhook(id, params) {
|
|
1289
|
+
return this.http.post(
|
|
1290
|
+
`/kolabo/partner/${id}/withdraw/webhook`,
|
|
1291
|
+
{
|
|
1292
|
+
appId: params.appId,
|
|
1293
|
+
service_id: params.serviceId,
|
|
1294
|
+
gu_transaction_id: params.guTransactionId,
|
|
1295
|
+
status: params.status,
|
|
1296
|
+
partner_transaction_id: params.partnerTransactionId,
|
|
1297
|
+
call_back_url: params.callBackUrl,
|
|
1298
|
+
commission: params.commission,
|
|
1299
|
+
message: params.message
|
|
1300
|
+
}
|
|
1301
|
+
);
|
|
1302
|
+
}
|
|
1303
|
+
};
|
|
1304
|
+
__name(_KolaboPartnerApi, "KolaboPartnerApi");
|
|
1305
|
+
var KolaboPartnerApi = _KolaboPartnerApi;
|
|
1306
|
+
|
|
1307
|
+
// src/modules/kolabo/index.ts
|
|
1308
|
+
var _KolaboApi = class _KolaboApi {
|
|
1309
|
+
constructor(http) {
|
|
1310
|
+
this.http = http;
|
|
1311
|
+
this.app = new KolaboAppApi(http);
|
|
1312
|
+
this.customer = new KolaboCustomerApi(http);
|
|
1313
|
+
this.partner = new KolaboPartnerApi(http);
|
|
1314
|
+
}
|
|
1315
|
+
};
|
|
1316
|
+
__name(_KolaboApi, "KolaboApi");
|
|
1317
|
+
var KolaboApi = _KolaboApi;
|
|
1318
|
+
|
|
1319
|
+
// src/modules/maintenance/maintenance.ts
|
|
1320
|
+
var _MaintenanceApi = class _MaintenanceApi {
|
|
1321
|
+
constructor(http) {
|
|
1322
|
+
this.http = http;
|
|
1323
|
+
}
|
|
1324
|
+
cronNotification(params = {}) {
|
|
1325
|
+
return this.http.get("/cron/notification", {
|
|
1326
|
+
query: params
|
|
1327
|
+
});
|
|
1328
|
+
}
|
|
1329
|
+
cronBilling(params) {
|
|
1330
|
+
const { authorizationToken, ...query } = params;
|
|
1331
|
+
const headers = authorizationToken ? { authorization: `Bearer ${authorizationToken}` } : void 0;
|
|
1332
|
+
return this.http.get("/cron/billing", {
|
|
1333
|
+
query,
|
|
1334
|
+
headers
|
|
1335
|
+
});
|
|
1336
|
+
}
|
|
1337
|
+
cleanupTransactions(params = {}) {
|
|
1338
|
+
return this.http.get("/cleanup/transactions", {
|
|
1339
|
+
query: params
|
|
1340
|
+
});
|
|
1341
|
+
}
|
|
1342
|
+
};
|
|
1343
|
+
__name(_MaintenanceApi, "MaintenanceApi");
|
|
1344
|
+
var MaintenanceApi = _MaintenanceApi;
|
|
1345
|
+
|
|
803
1346
|
// src/index.ts
|
|
804
1347
|
var _AppliteUI = class _AppliteUI {
|
|
805
1348
|
constructor(config = {}) {
|
|
@@ -815,8 +1358,15 @@ var _AppliteUI = class _AppliteUI {
|
|
|
815
1358
|
this.info = new InfoApi(this.http);
|
|
816
1359
|
this.address = new AddressApi(this.http);
|
|
817
1360
|
this.notificationToken = new NotificationTokenApi(this.http);
|
|
1361
|
+
this.notification = new NotificationApi(this.http);
|
|
1362
|
+
this.webhook = new WebhookApi(this.http);
|
|
1363
|
+
this.user = new UserApi(this.http);
|
|
818
1364
|
this.store = new StoreApi(this.http);
|
|
819
1365
|
this.multiService = new MultiServiceApi(this.http);
|
|
1366
|
+
this.superAdmin = new SuperAdminApi(this.http);
|
|
1367
|
+
this.duticotac = new DuticotacApi(this.http);
|
|
1368
|
+
this.kolabo = new KolaboApi(this.http);
|
|
1369
|
+
this.maintenance = new MaintenanceApi(this.http);
|
|
820
1370
|
}
|
|
821
1371
|
};
|
|
822
1372
|
__name(_AppliteUI, "AppliteUI");
|
|
@@ -832,11 +1382,22 @@ exports.CollectionApi = CollectionApi;
|
|
|
832
1382
|
exports.CompanyApi = CompanyApi;
|
|
833
1383
|
exports.CustomerApi = CustomerApi;
|
|
834
1384
|
exports.DiscountApi = DiscountApi;
|
|
1385
|
+
exports.DuticotacApi = DuticotacApi;
|
|
1386
|
+
exports.DuticotacBalanceApi = DuticotacBalanceApi;
|
|
1387
|
+
exports.DuticotacOfferApi = DuticotacOfferApi;
|
|
1388
|
+
exports.DuticotacPaymentApi = DuticotacPaymentApi;
|
|
1389
|
+
exports.DuticotacTransactionApi = DuticotacTransactionApi;
|
|
835
1390
|
exports.FieldTemplateApi = FieldTemplateApi;
|
|
836
1391
|
exports.FinanceApi = FinanceApi;
|
|
837
1392
|
exports.HttpClient = HttpClient;
|
|
838
1393
|
exports.InfoApi = InfoApi;
|
|
1394
|
+
exports.KolaboApi = KolaboApi;
|
|
1395
|
+
exports.KolaboAppApi = KolaboAppApi;
|
|
1396
|
+
exports.KolaboCustomerApi = KolaboCustomerApi;
|
|
1397
|
+
exports.KolaboPartnerApi = KolaboPartnerApi;
|
|
1398
|
+
exports.MaintenanceApi = MaintenanceApi;
|
|
839
1399
|
exports.MultiServiceApi = MultiServiceApi;
|
|
1400
|
+
exports.NotificationApi = NotificationApi;
|
|
840
1401
|
exports.NotificationTokenApi = NotificationTokenApi;
|
|
841
1402
|
exports.OptionApi = OptionApi;
|
|
842
1403
|
exports.OrderApi = OrderApi;
|
|
@@ -846,8 +1407,17 @@ exports.ServiceApi = ServiceApi;
|
|
|
846
1407
|
exports.ShippingApi = ShippingApi;
|
|
847
1408
|
exports.StatsApi = StatsApi;
|
|
848
1409
|
exports.StoreApi = StoreApi;
|
|
1410
|
+
exports.SuperAdminApi = SuperAdminApi;
|
|
1411
|
+
exports.SuperAdminAppsApi = SuperAdminAppsApi;
|
|
1412
|
+
exports.SuperAdminAuthApi = SuperAdminAuthApi;
|
|
1413
|
+
exports.SuperAdminFinanceApi = SuperAdminFinanceApi;
|
|
1414
|
+
exports.SuperAdminModulesApi = SuperAdminModulesApi;
|
|
1415
|
+
exports.SuperAdminNotificationApi = SuperAdminNotificationApi;
|
|
1416
|
+
exports.SuperAdminStatsApi = SuperAdminStatsApi;
|
|
849
1417
|
exports.TagApi = TagApi;
|
|
850
1418
|
exports.TaxApi = TaxApi;
|
|
1419
|
+
exports.UserApi = UserApi;
|
|
1420
|
+
exports.WebhookApi = WebhookApi;
|
|
851
1421
|
exports.WelcomeItemApi = WelcomeItemApi;
|
|
852
1422
|
//# sourceMappingURL=index.js.map
|
|
853
1423
|
//# sourceMappingURL=index.js.map
|