jconsumer-shared 1.2.5 → 1.2.6
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/esm2022/lib/consumer-service.mjs +21 -45
- package/esm2022/lib/order.service.mjs +9 -1
- package/fesm2022/jconsumer-shared.mjs +28 -44
- package/fesm2022/jconsumer-shared.mjs.map +1 -1
- package/jconsumer-shared-1.2.6.tgz +0 -0
- package/lib/consumer-service.d.ts +3 -5
- package/lib/order.service.d.ts +2 -0
- package/package.json +1 -1
- package/jconsumer-shared-1.2.5.tgz +0 -0
|
@@ -550,6 +550,14 @@ class OrderService {
|
|
|
550
550
|
const url = 'consumer/spitem/settings/' + accountId + '/category?status-eq=Enable';
|
|
551
551
|
return this.servicemeta.httpGet(url);
|
|
552
552
|
}
|
|
553
|
+
getItemType(accountId) {
|
|
554
|
+
const url = 'consumer/spitem/settings/' + accountId + '/type?status-eq=Enable';
|
|
555
|
+
return this.servicemeta.httpGet(url);
|
|
556
|
+
}
|
|
557
|
+
getItemGroup(accountId) {
|
|
558
|
+
const url = 'consumer/spitem/settings/' + accountId + '/group?status-eq=Enable';
|
|
559
|
+
return this.servicemeta.httpGet(url);
|
|
560
|
+
}
|
|
553
561
|
applyCoupon(cartUid, data) {
|
|
554
562
|
const url = 'consumer/cart/' + cartUid + '/apply/providercoupon';
|
|
555
563
|
return this.servicemeta.httpPut(url, data);
|
|
@@ -1684,30 +1692,6 @@ class ConsumerService {
|
|
|
1684
1692
|
const url = 'consumer/providers/' + accountid;
|
|
1685
1693
|
return this.servicemeta.httpDelete(url);
|
|
1686
1694
|
}
|
|
1687
|
-
doDeleteFavProvider(fav, cthis) {
|
|
1688
|
-
return new Promise((resolve, reject) => {
|
|
1689
|
-
this.deleteFavProvider(fav.id)
|
|
1690
|
-
.then(data => {
|
|
1691
|
-
resolve(data);
|
|
1692
|
-
}, error => {
|
|
1693
|
-
reject(error);
|
|
1694
|
-
});
|
|
1695
|
-
});
|
|
1696
|
-
}
|
|
1697
|
-
deleteFavProvider(id) {
|
|
1698
|
-
return new Promise((resolve, reject) => {
|
|
1699
|
-
this.removeProviderfromFavourite(id)
|
|
1700
|
-
.subscribe(data => {
|
|
1701
|
-
resolve('reloadlist');
|
|
1702
|
-
}, error => {
|
|
1703
|
-
reject(error);
|
|
1704
|
-
});
|
|
1705
|
-
});
|
|
1706
|
-
}
|
|
1707
|
-
addProvidertoFavourite(accountid) {
|
|
1708
|
-
const url = 'consumer/providers/' + accountid;
|
|
1709
|
-
return this.servicemeta.httpPost(url);
|
|
1710
|
-
}
|
|
1711
1695
|
changePasswordProfile(data, origin) {
|
|
1712
1696
|
const url = origin + '/login/chpwd';
|
|
1713
1697
|
return this.servicemeta.httpPut(url, data);
|
|
@@ -1759,8 +1743,12 @@ class ConsumerService {
|
|
|
1759
1743
|
getWaitlist(params) {
|
|
1760
1744
|
return this.servicemeta.httpGet('consumer/waitlist', null, params);
|
|
1761
1745
|
}
|
|
1762
|
-
|
|
1763
|
-
|
|
1746
|
+
getWaitlistToday(filter = {}) {
|
|
1747
|
+
const path = 'consumer/waitlist/today';
|
|
1748
|
+
return this.servicemeta.httpGet(path, null, filter);
|
|
1749
|
+
}
|
|
1750
|
+
getWaitlistFuture(filter = {}) {
|
|
1751
|
+
return this.servicemeta.httpGet('consumer/waitlist/future', null, filter);
|
|
1764
1752
|
}
|
|
1765
1753
|
addConsumerWaitlistAttachment(accountid, uuid, body) {
|
|
1766
1754
|
const url = 'consumer/waitlist/' + uuid + '/attachment' + '?account=' + accountid;
|
|
@@ -1776,10 +1764,6 @@ class ConsumerService {
|
|
|
1776
1764
|
const url = 'consumer/waitlist/attachment/' + uuid + '?account=' + accountid;
|
|
1777
1765
|
return this.servicemeta.httpGet(url);
|
|
1778
1766
|
}
|
|
1779
|
-
getWaitlistToday() {
|
|
1780
|
-
const path = 'consumer/waitlist/today';
|
|
1781
|
-
return this.servicemeta.httpGet(path);
|
|
1782
|
-
}
|
|
1783
1767
|
//Appointment Urls
|
|
1784
1768
|
getAppointmentFuture(params) {
|
|
1785
1769
|
return this.servicemeta.httpGet('consumer/appointment/future', null, params);
|
|
@@ -2142,20 +2126,20 @@ class ConsumerService {
|
|
|
2142
2126
|
}
|
|
2143
2127
|
return null;
|
|
2144
2128
|
}
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2129
|
+
getUserEstimatedWaitingTime(prov_arr) {
|
|
2130
|
+
let str = '';
|
|
2131
|
+
for (let i = 0; i < prov_arr.length; i++) {
|
|
2132
|
+
if (str !== '') {
|
|
2133
|
+
str += '%2C'; // comma
|
|
2134
|
+
}
|
|
2135
|
+
str += prov_arr[i];
|
|
2136
|
+
}
|
|
2137
|
+
if (str === '') {
|
|
2138
|
+
return null;
|
|
2139
|
+
}
|
|
2140
|
+
const path = 'provider/waitlist/queues/providerWaitingTime/' + str;
|
|
2141
|
+
return this.servicemeta.httpGet(path);
|
|
2142
|
+
}
|
|
2159
2143
|
// updateAnalytics(body) {
|
|
2160
2144
|
// const url = 'provider/analytics/update';
|
|
2161
2145
|
// return this.servicemeta.httpPost(url, body);
|