jconsumer-shared 1.1.9 → 1.2.1
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 +23 -39
- package/esm2022/lib/order.service.mjs +9 -1
- package/fesm2022/jconsumer-shared.mjs +30 -38
- package/fesm2022/jconsumer-shared.mjs.map +1 -1
- package/jconsumer-shared-1.2.1.tgz +0 -0
- package/lib/consumer-service.d.ts +3 -3
- package/lib/order.service.d.ts +2 -0
- package/package.json +1 -1
- package/jconsumer-shared-1.1.9.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);
|
|
@@ -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);
|
|
@@ -2434,6 +2418,14 @@ class ConsumerService {
|
|
|
2434
2418
|
const url = 'consumer/communications/readMessages/' + providerId + '/' + messageIds + '?account=' + accountId;
|
|
2435
2419
|
return this.servicemeta.httpPut(url);
|
|
2436
2420
|
}
|
|
2421
|
+
linkIpPayment_invoic(data) {
|
|
2422
|
+
const url = 'consumer/ip/pay';
|
|
2423
|
+
return this.servicemeta.httpPost(url, data);
|
|
2424
|
+
}
|
|
2425
|
+
getIpInvoiceDetailsById(accId, uuid) {
|
|
2426
|
+
const url = 'consumer/ip/invoice/' + accId + '/' + uuid;
|
|
2427
|
+
return this.servicemeta.httpGet(url);
|
|
2428
|
+
}
|
|
2437
2429
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConsumerService, deps: [{ token: ServiceMeta }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2438
2430
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConsumerService, providedIn: 'root' });
|
|
2439
2431
|
}
|