addio-admin-sdk 1.7.22 → 1.7.23-canary-2
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/Interfaces/Algolia/index.d.ts +8 -1
- package/dist/lib/Cart/index.js +5 -1
- package/dist/lib/Cart/index.js.map +1 -1
- package/dist/lib/MarketplacePublication/index.js.map +1 -1
- package/dist/lib/Shipment/index.js +5 -4
- package/dist/lib/Shipment/index.js.map +1 -1
- package/dist/rules/GR/utils/expedition.js +4 -1
- package/dist/rules/GR/utils/expedition.js.map +1 -1
- package/dist/utils/cart.d.ts +7 -1
- package/dist/utils/cart.js +14 -9
- package/dist/utils/cart.js.map +1 -1
- package/dist/utils/inventories.js +4 -2
- package/dist/utils/inventories.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CartCustomerEnum, CartStatusEnum, CartTypeEnum, ICartItemPrices, ICartPromoApplied, IIndexedDeclination } from '../Cart';
|
|
2
2
|
import { CustomerTypeEnum, IBasicInfoCustomer, ICompanyInfoCustomer, IExpeditionInfo } from '../Customer';
|
|
3
3
|
import { MarketplaceTypeEnum } from '../MarketplacePublication';
|
|
4
|
+
import { TransferRequestStatusEnum } from '../TransferRequest';
|
|
4
5
|
import ITranslation from '../Translation';
|
|
5
6
|
export interface IIndexedAttribute {
|
|
6
7
|
readonly objectID: string;
|
|
@@ -132,9 +133,15 @@ export interface IIndexedCart {
|
|
|
132
133
|
readonly qty: number;
|
|
133
134
|
readonly refunded_qty: number;
|
|
134
135
|
readonly refunded: boolean;
|
|
136
|
+
readonly reserved_qty?: number;
|
|
135
137
|
};
|
|
136
138
|
};
|
|
137
|
-
readonly has_transfers?:
|
|
139
|
+
readonly has_transfers?: {
|
|
140
|
+
[transferID: string]: {
|
|
141
|
+
status: TransferRequestStatusEnum;
|
|
142
|
+
completed: boolean;
|
|
143
|
+
};
|
|
144
|
+
} | null;
|
|
138
145
|
}
|
|
139
146
|
export interface IIndexedCustomer {
|
|
140
147
|
readonly objectID: string;
|
package/dist/lib/Cart/index.js
CHANGED
|
@@ -1337,7 +1337,11 @@ var Cart = (function (_super) {
|
|
|
1337
1337
|
console.log('error while fetching customer: ', e_9.toString());
|
|
1338
1338
|
return [3, 9];
|
|
1339
1339
|
case 9:
|
|
1340
|
-
indexedCartData = (0, cart_1.getIndexedCartData)(cart.data(), space,
|
|
1340
|
+
indexedCartData = (0, cart_1.getIndexedCartData)(cart.data(), space, {
|
|
1341
|
+
setPaidAtIfUndefined: true,
|
|
1342
|
+
customer: !!customer ? customer.data() : undefined,
|
|
1343
|
+
createdAt: (0, moment_1.default)().toDate()
|
|
1344
|
+
});
|
|
1341
1345
|
if (!!!algolia) return [3, 13];
|
|
1342
1346
|
_b.label = 10;
|
|
1343
1347
|
case 10:
|