jconsumer-shared 1.2.3 → 1.2.5
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 +49 -21
- package/esm2022/lib/order.service.mjs +1 -9
- package/fesm2022/jconsumer-shared.mjs +48 -28
- package/fesm2022/jconsumer-shared.mjs.map +1 -1
- package/jconsumer-shared-1.2.5.tgz +0 -0
- package/lib/consumer-service.d.ts +6 -3
- package/lib/order.service.d.ts +0 -2
- package/package.json +1 -1
- package/jconsumer-shared-1.2.3.tgz +0 -0
|
@@ -550,14 +550,6 @@ 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
|
-
}
|
|
561
553
|
applyCoupon(cartUid, data) {
|
|
562
554
|
const url = 'consumer/cart/' + cartUid + '/apply/providercoupon';
|
|
563
555
|
return this.servicemeta.httpPut(url, data);
|
|
@@ -1692,6 +1684,30 @@ class ConsumerService {
|
|
|
1692
1684
|
const url = 'consumer/providers/' + accountid;
|
|
1693
1685
|
return this.servicemeta.httpDelete(url);
|
|
1694
1686
|
}
|
|
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
|
+
}
|
|
1695
1711
|
changePasswordProfile(data, origin) {
|
|
1696
1712
|
const url = origin + '/login/chpwd';
|
|
1697
1713
|
return this.servicemeta.httpPut(url, data);
|
|
@@ -1743,12 +1759,8 @@ class ConsumerService {
|
|
|
1743
1759
|
getWaitlist(params) {
|
|
1744
1760
|
return this.servicemeta.httpGet('consumer/waitlist', null, params);
|
|
1745
1761
|
}
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
return this.servicemeta.httpGet(path, null, filter);
|
|
1749
|
-
}
|
|
1750
|
-
getWaitlistFuture(filter = {}) {
|
|
1751
|
-
return this.servicemeta.httpGet('consumer/waitlist/future', null, filter);
|
|
1762
|
+
getWaitlistFuture(params) {
|
|
1763
|
+
return this.servicemeta.httpGet('consumer/waitlist/future', null, params);
|
|
1752
1764
|
}
|
|
1753
1765
|
addConsumerWaitlistAttachment(accountid, uuid, body) {
|
|
1754
1766
|
const url = 'consumer/waitlist/' + uuid + '/attachment' + '?account=' + accountid;
|
|
@@ -1764,6 +1776,10 @@ class ConsumerService {
|
|
|
1764
1776
|
const url = 'consumer/waitlist/attachment/' + uuid + '?account=' + accountid;
|
|
1765
1777
|
return this.servicemeta.httpGet(url);
|
|
1766
1778
|
}
|
|
1779
|
+
getWaitlistToday() {
|
|
1780
|
+
const path = 'consumer/waitlist/today';
|
|
1781
|
+
return this.servicemeta.httpGet(path);
|
|
1782
|
+
}
|
|
1767
1783
|
//Appointment Urls
|
|
1768
1784
|
getAppointmentFuture(params) {
|
|
1769
1785
|
return this.servicemeta.httpGet('consumer/appointment/future', null, params);
|
|
@@ -2126,20 +2142,20 @@ class ConsumerService {
|
|
|
2126
2142
|
}
|
|
2127
2143
|
return null;
|
|
2128
2144
|
}
|
|
2129
|
-
getUserEstimatedWaitingTime(prov_arr) {
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
}
|
|
2145
|
+
// getUserEstimatedWaitingTime(prov_arr) {
|
|
2146
|
+
// let str = '';
|
|
2147
|
+
// for (let i = 0; i < prov_arr.length; i++) {
|
|
2148
|
+
// if (str !== '') {
|
|
2149
|
+
// str += '%2C'; // comma
|
|
2150
|
+
// }
|
|
2151
|
+
// str += prov_arr[i];
|
|
2152
|
+
// }
|
|
2153
|
+
// if (str === '') {
|
|
2154
|
+
// return null;
|
|
2155
|
+
// }
|
|
2156
|
+
// const path = 'provider/waitlist/queues/providerWaitingTime/' + str;
|
|
2157
|
+
// return this.servicemeta.httpGet(path);
|
|
2158
|
+
// }
|
|
2143
2159
|
// updateAnalytics(body) {
|
|
2144
2160
|
// const url = 'provider/analytics/update';
|
|
2145
2161
|
// return this.servicemeta.httpPost(url, body);
|
|
@@ -2411,6 +2427,10 @@ class ConsumerService {
|
|
|
2411
2427
|
let path = 'provider/account/settings/location/' + locationId + '/' + uniqueId + '/' + listOfUrls;
|
|
2412
2428
|
return this.servicemeta.httpGet(path);
|
|
2413
2429
|
}
|
|
2430
|
+
getLocationsByUserID(userID) {
|
|
2431
|
+
let path = 'consumer/user/' + userID + '/location';
|
|
2432
|
+
return this.servicemeta.httpGet(path);
|
|
2433
|
+
}
|
|
2414
2434
|
getInbox(usertype) {
|
|
2415
2435
|
return this.servicemeta.httpGet(usertype + '/communications');
|
|
2416
2436
|
}
|