@pmcretail/mapper-library 0.0.54 → 0.0.56
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 +24 -24
- package/bundles/pmcretail-mapper-library.umd.js +4424 -4398
- package/bundles/pmcretail-mapper-library.umd.js.map +1 -1
- package/esm2015/lib/RJ-mapper.class.js +877 -877
- package/esm2015/lib/TransactionDocumentBuilder.js +1244 -1244
- package/esm2015/lib/WebReturn-mapper.class.js +326 -326
- package/esm2015/lib/WebReturnMagento2RestV1.class.js +275 -275
- package/esm2015/lib/WebReturnSalesforceMapper.class.js +447 -428
- package/esm2015/lib/basket.service.js +527 -527
- package/esm2015/lib/mapper-library.component.js +26 -26
- package/esm2015/lib/mapper-library.model.js +42 -41
- package/esm2015/lib/mapper-library.module.js +21 -21
- package/esm2015/lib/number-util.service.js +42 -42
- package/esm2015/pmcretail-mapper-library.js +4 -4
- package/esm2015/public-api.js +10 -10
- package/fesm2015/pmcretail-mapper-library.js +3782 -3762
- package/fesm2015/pmcretail-mapper-library.js.map +1 -1
- package/lib/RJ-mapper.class.d.ts +80 -80
- package/lib/TransactionDocumentBuilder.d.ts +271 -271
- package/lib/WebReturn-mapper.class.d.ts +27 -27
- package/lib/WebReturnMagento2RestV1.class.d.ts +30 -30
- package/lib/WebReturnSalesforceMapper.class.d.ts +37 -36
- package/lib/WebReturnSalesforceMapper.class.d.ts.map +1 -1
- package/lib/basket.service.d.ts +105 -105
- package/lib/mapper-library.component.d.ts +8 -8
- package/lib/mapper-library.model.d.ts +704 -702
- package/lib/mapper-library.model.d.ts.map +1 -1
- package/lib/mapper-library.module.d.ts +7 -7
- package/lib/number-util.service.d.ts +13 -13
- package/package.json +1 -1
- package/pmcretail-mapper-library.d.ts +5 -5
- package/public-api.d.ts +6 -6
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import { CurrencyPipe } from "@angular/common";
|
|
2
|
-
import { DELIVERY_METHODS, OrderDetails, TransactionDocument, TransactionPromotion, TProduct } from "./mapper-library.model";
|
|
3
|
-
export declare class WebReturnSalesforceMapperBuilderClass {
|
|
4
|
-
private currencyPipe?;
|
|
5
|
-
className: string;
|
|
6
|
-
private orderDetails;
|
|
7
|
-
private webReturnObject;
|
|
8
|
-
numberUtilService: any;
|
|
9
|
-
constructor(orderDetails: OrderDetails, currencyPipe?: CurrencyPipe);
|
|
10
|
-
webReturnCommonMapper(): this;
|
|
11
|
-
getDeliveryMethod(): "" | DELIVERY_METHODS.DELIVERY | DELIVERY_METHODS.SHIP_TO_STORE;
|
|
12
|
-
product(): this;
|
|
13
|
-
linePromotion(): this;
|
|
14
|
-
transactionPromotion(): this;
|
|
15
|
-
getTransactionPromotions(basket: any): TransactionPromotion[];
|
|
16
|
-
updateLinePromotionWithCoupon(): this;
|
|
17
|
-
updateTransactionPromotionPrtionCalc(): this;
|
|
18
|
-
transactionPromotionProductPortionCalc(txDoc: TransactionDocument, promotion: TransactionPromotion): TransactionDocument;
|
|
19
|
-
validateProductItemDiscount(product: TProduct): TProduct;
|
|
20
|
-
customer(): this;
|
|
21
|
-
isInStoreOrder(): this;
|
|
22
|
-
externalTransactionDetails(): this;
|
|
23
|
-
updateTaxBreakdown(): this;
|
|
24
|
-
basketSummary(): this;
|
|
25
|
-
deviceId(deviceId: any): this;
|
|
26
|
-
terminalId(terminalId: any): this;
|
|
27
|
-
orgCode(orgCode: any): this;
|
|
28
|
-
storeId(storeId: any): this;
|
|
29
|
-
storeNodeId(storeNodeId: string): this;
|
|
30
|
-
storeNodeStructure(storeNodeStructure: string): this;
|
|
31
|
-
docId(docId: any): this;
|
|
32
|
-
updateUserID(userID: string): this;
|
|
33
|
-
updateUserName(name: any): this;
|
|
34
|
-
build(): TransactionDocument;
|
|
35
|
-
getUTCDateTime(date: any): string;
|
|
36
|
-
|
|
1
|
+
import { CurrencyPipe } from "@angular/common";
|
|
2
|
+
import { DELIVERY_METHODS, OrderDetails, TransactionDocument, TransactionPromotion, TProduct } from "./mapper-library.model";
|
|
3
|
+
export declare class WebReturnSalesforceMapperBuilderClass {
|
|
4
|
+
private currencyPipe?;
|
|
5
|
+
className: string;
|
|
6
|
+
private orderDetails;
|
|
7
|
+
private webReturnObject;
|
|
8
|
+
numberUtilService: any;
|
|
9
|
+
constructor(orderDetails: OrderDetails, currencyPipe?: CurrencyPipe);
|
|
10
|
+
webReturnCommonMapper(): this;
|
|
11
|
+
getDeliveryMethod(): "" | DELIVERY_METHODS.DELIVERY | DELIVERY_METHODS.SHIP_TO_STORE;
|
|
12
|
+
product(subprovider: any): this;
|
|
13
|
+
linePromotion(): this;
|
|
14
|
+
transactionPromotion(): this;
|
|
15
|
+
getTransactionPromotions(basket: any): TransactionPromotion[];
|
|
16
|
+
updateLinePromotionWithCoupon(): this;
|
|
17
|
+
updateTransactionPromotionPrtionCalc(): this;
|
|
18
|
+
transactionPromotionProductPortionCalc(txDoc: TransactionDocument, promotion: TransactionPromotion): TransactionDocument;
|
|
19
|
+
validateProductItemDiscount(product: TProduct): TProduct;
|
|
20
|
+
customer(): this;
|
|
21
|
+
isInStoreOrder(): this;
|
|
22
|
+
externalTransactionDetails(): this;
|
|
23
|
+
updateTaxBreakdown(): this;
|
|
24
|
+
basketSummary(): this;
|
|
25
|
+
deviceId(deviceId: any): this;
|
|
26
|
+
terminalId(terminalId: any): this;
|
|
27
|
+
orgCode(orgCode: any): this;
|
|
28
|
+
storeId(storeId: any): this;
|
|
29
|
+
storeNodeId(storeNodeId: string): this;
|
|
30
|
+
storeNodeStructure(storeNodeStructure: string): this;
|
|
31
|
+
docId(docId: any): this;
|
|
32
|
+
updateUserID(userID: string): this;
|
|
33
|
+
updateUserName(name: any): this;
|
|
34
|
+
build(): TransactionDocument;
|
|
35
|
+
getUTCDateTime(date: any): string;
|
|
36
|
+
getAvailableQty(status: any): number;
|
|
37
|
+
}
|
|
37
38
|
//# sourceMappingURL=WebReturnSalesforceMapper.class.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebReturnSalesforceMapper.class.d.ts","sourceRoot":"","sources":["../../../projects/mapper-library/src/lib/WebReturnSalesforceMapper.class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAqF,gBAAgB,EAAsE,YAAY,EAAgD,mBAAmB,EAAmB,oBAAoB,EAAuC,QAAQ,
|
|
1
|
+
{"version":3,"file":"WebReturnSalesforceMapper.class.d.ts","sourceRoot":"","sources":["../../../projects/mapper-library/src/lib/WebReturnSalesforceMapper.class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAqF,gBAAgB,EAAsE,YAAY,EAAgD,mBAAmB,EAAmB,oBAAoB,EAAuC,QAAQ,EAAgC,MAAM,wBAAwB,CAAC;AAItZ,qBAAa,qCAAqC;IAmC1C,OAAO,CAAC,YAAY,CAAC;IAjCzB,SAAS,SAA2C;IACpD,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,eAAe,CA2BtB;IACD,iBAAiB,EAAE,GAAG,CAAC;gBAEX,YAAY,EAAE,YAAY,EAC1B,YAAY,CAAC,EAAE,YAAY;IAQvC,qBAAqB;IAqCrB,iBAAiB;IAUjB,OAAO,CAAC,WAAW,KAAA;IA8BnB,aAAa;IAwCb,oBAAoB;IAUpB,wBAAwB,CAAC,MAAM,KAAA,GAAG,oBAAoB,EAAE;IAkCxD,6BAA6B;IA4D7B,oCAAoC;IAUpC,sCAAsC,CAClC,KAAK,EAAE,mBAAmB,EAC1B,SAAS,EAAE,oBAAoB;IAmC1B,2BAA2B,CAAC,OAAO,EAAE,QAAQ;IAYtD,QAAQ;IAiDR,cAAc;IASd,0BAA0B;IAsB1B,kBAAkB;IAyBlB,aAAa;IAqBb,QAAQ,CAAC,QAAQ,KAAA;IAKjB,UAAU,CAAC,UAAU,KAAA;IAKrB,OAAO,CAAC,OAAO,KAAA;IAKf,OAAO,CAAC,OAAO,KAAA;IAKf,WAAW,CAAC,WAAW,EAAE,MAAM;IAK/B,kBAAkB,CAAC,kBAAkB,EAAE,MAAM;IAK7C,KAAK,CAAC,KAAK,KAAA;IAKX,YAAY,CAAC,MAAM,EAAE,MAAM;IAK3B,cAAc,CAAC,IAAI,KAAA;IAKnB,KAAK;IAKL,cAAc,CAAC,IAAI,KAAA;IAMnB,eAAe,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM;CAkBvC"}
|
package/lib/basket.service.d.ts
CHANGED
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
import { Basket, Product, TransactionPromotion } from './mapper-library.model';
|
|
2
|
-
import { TransactionDiscount } from './mapper-library.model';
|
|
3
|
-
import { NumberUtilService } from './number-util.service';
|
|
4
|
-
export declare class BasketService {
|
|
5
|
-
private numberUtilService;
|
|
6
|
-
currentBasket: Basket;
|
|
7
|
-
private basketSource;
|
|
8
|
-
basket: import("rxjs").Observable<any>;
|
|
9
|
-
private productSource;
|
|
10
|
-
product: import("rxjs").Observable<any>;
|
|
11
|
-
private peerSource;
|
|
12
|
-
peerSync: import("rxjs").Observable<boolean>;
|
|
13
|
-
private scanSource;
|
|
14
|
-
scanner: import("rxjs").Observable<boolean>;
|
|
15
|
-
private _isMixedBasketSales;
|
|
16
|
-
get isMixedBasketSales(): any;
|
|
17
|
-
set isMixedBasketSales(v: any);
|
|
18
|
-
className: string;
|
|
19
|
-
constructor(numberUtilService: NumberUtilService);
|
|
20
|
-
updateBasket(basket: Basket): void;
|
|
21
|
-
/**
|
|
22
|
-
* calculates the total basket value and quantity
|
|
23
|
-
* @param null
|
|
24
|
-
* @returns void
|
|
25
|
-
*/
|
|
26
|
-
updateBasketTotal(basketDetails: {
|
|
27
|
-
quantity: number;
|
|
28
|
-
total: number;
|
|
29
|
-
products: any;
|
|
30
|
-
transactionId: any;
|
|
31
|
-
basketTotal: any;
|
|
32
|
-
}, basketState: {
|
|
33
|
-
updateBasket: (arg0: any) => void;
|
|
34
|
-
}): void;
|
|
35
|
-
/**
|
|
36
|
-
* add Line promotion
|
|
37
|
-
* @param null
|
|
38
|
-
* @returns basketDetails
|
|
39
|
-
*/
|
|
40
|
-
addlinePromotion(promotionList: {
|
|
41
|
-
result: {
|
|
42
|
-
linePromotions: string | any[];
|
|
43
|
-
};
|
|
44
|
-
}, basketDetails: {
|
|
45
|
-
products: any;
|
|
46
|
-
}): {
|
|
47
|
-
products: any;
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* add Transaction promotion
|
|
51
|
-
* @param null
|
|
52
|
-
* @returns basketDetails
|
|
53
|
-
*/
|
|
54
|
-
addTransactionPromotion(promotionList: {
|
|
55
|
-
result: {
|
|
56
|
-
transactionPromotion: any;
|
|
57
|
-
};
|
|
58
|
-
}, basketdetails: Basket): Basket;
|
|
59
|
-
updateProductTotalForSummary(basketDetails: {
|
|
60
|
-
total: string | number;
|
|
61
|
-
quantity: string | number;
|
|
62
|
-
products: any;
|
|
63
|
-
}): any;
|
|
64
|
-
updateBasketTotalForSummary(basketDetails: any): any;
|
|
65
|
-
updateTransactionDiscount(basketDetails: {
|
|
66
|
-
transactionDiscount: any[];
|
|
67
|
-
basketTotal: number;
|
|
68
|
-
}): {
|
|
69
|
-
transactionDiscount: any[];
|
|
70
|
-
basketTotal: number;
|
|
71
|
-
};
|
|
72
|
-
updateTransactionPromotion(basketDetails: {
|
|
73
|
-
transactionPromotion: any[];
|
|
74
|
-
basketTotal: number;
|
|
75
|
-
}): {
|
|
76
|
-
transactionPromotion: any[];
|
|
77
|
-
basketTotal: number;
|
|
78
|
-
};
|
|
79
|
-
updateBasketTotalWithoutDiscount(basket: Basket): Basket;
|
|
80
|
-
updateBasketTotalWithDiscounts(basket: any): Basket;
|
|
81
|
-
transactionDiscountAndPromotionProductortionCalculation(basket: Basket): Basket;
|
|
82
|
-
transactionPromotionProductPortionCalc(basket: any, promotion: any): any;
|
|
83
|
-
transactionDiscountProductPortionCalc(basket: any, discount: any): any;
|
|
84
|
-
validateProductItemDiscount(product: Product): Product;
|
|
85
|
-
markProduct(product: Product): void;
|
|
86
|
-
stopPeerSyncProcess(peerSync: boolean): void;
|
|
87
|
-
scanStart(isScanning: boolean): void;
|
|
88
|
-
promotionRemainingCalculation(promotion: TransactionPromotion[]): number;
|
|
89
|
-
discountRemainingCalculation(discount: TransactionDiscount[]): number;
|
|
90
|
-
discountRefundedCalculation(discount: TransactionDiscount[]): number;
|
|
91
|
-
generateNewItemLineId(products: Product[]): any;
|
|
92
|
-
updateBasketProductDataAsPerQuantity(product: any, quantity: number): Product;
|
|
93
|
-
filterProductListWithWebOrder(isWebOrder: boolean): Product[];
|
|
94
|
-
filterProductListWithDelivery(): Product[];
|
|
95
|
-
filterProductListWithDeliveryGroup(group: string, products: Product[]): Product[];
|
|
96
|
-
generateNewDeliveryGroupNumber(products: Product[]): string;
|
|
97
|
-
getDeliveryGroupNumbers(products: Product[]): number[];
|
|
98
|
-
updateProductsWithNewDeliveryGroupNumber(products: Product[]): void;
|
|
99
|
-
calculateEstimatedTime(products: any[]): 0 | {
|
|
100
|
-
value: string;
|
|
101
|
-
type: string;
|
|
102
|
-
};
|
|
103
|
-
updateProductsWithDeliveryGroupNumber(oldGroup: string, newGroup: string): void;
|
|
104
|
-
getDeliveryInfo(): any;
|
|
105
|
-
}
|
|
1
|
+
import { Basket, Product, TransactionPromotion } from './mapper-library.model';
|
|
2
|
+
import { TransactionDiscount } from './mapper-library.model';
|
|
3
|
+
import { NumberUtilService } from './number-util.service';
|
|
4
|
+
export declare class BasketService {
|
|
5
|
+
private numberUtilService;
|
|
6
|
+
currentBasket: Basket;
|
|
7
|
+
private basketSource;
|
|
8
|
+
basket: import("rxjs").Observable<any>;
|
|
9
|
+
private productSource;
|
|
10
|
+
product: import("rxjs").Observable<any>;
|
|
11
|
+
private peerSource;
|
|
12
|
+
peerSync: import("rxjs").Observable<boolean>;
|
|
13
|
+
private scanSource;
|
|
14
|
+
scanner: import("rxjs").Observable<boolean>;
|
|
15
|
+
private _isMixedBasketSales;
|
|
16
|
+
get isMixedBasketSales(): any;
|
|
17
|
+
set isMixedBasketSales(v: any);
|
|
18
|
+
className: string;
|
|
19
|
+
constructor(numberUtilService: NumberUtilService);
|
|
20
|
+
updateBasket(basket: Basket): void;
|
|
21
|
+
/**
|
|
22
|
+
* calculates the total basket value and quantity
|
|
23
|
+
* @param null
|
|
24
|
+
* @returns void
|
|
25
|
+
*/
|
|
26
|
+
updateBasketTotal(basketDetails: {
|
|
27
|
+
quantity: number;
|
|
28
|
+
total: number;
|
|
29
|
+
products: any;
|
|
30
|
+
transactionId: any;
|
|
31
|
+
basketTotal: any;
|
|
32
|
+
}, basketState: {
|
|
33
|
+
updateBasket: (arg0: any) => void;
|
|
34
|
+
}): void;
|
|
35
|
+
/**
|
|
36
|
+
* add Line promotion
|
|
37
|
+
* @param null
|
|
38
|
+
* @returns basketDetails
|
|
39
|
+
*/
|
|
40
|
+
addlinePromotion(promotionList: {
|
|
41
|
+
result: {
|
|
42
|
+
linePromotions: string | any[];
|
|
43
|
+
};
|
|
44
|
+
}, basketDetails: {
|
|
45
|
+
products: any;
|
|
46
|
+
}): {
|
|
47
|
+
products: any;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* add Transaction promotion
|
|
51
|
+
* @param null
|
|
52
|
+
* @returns basketDetails
|
|
53
|
+
*/
|
|
54
|
+
addTransactionPromotion(promotionList: {
|
|
55
|
+
result: {
|
|
56
|
+
transactionPromotion: any;
|
|
57
|
+
};
|
|
58
|
+
}, basketdetails: Basket): Basket;
|
|
59
|
+
updateProductTotalForSummary(basketDetails: {
|
|
60
|
+
total: string | number;
|
|
61
|
+
quantity: string | number;
|
|
62
|
+
products: any;
|
|
63
|
+
}): any;
|
|
64
|
+
updateBasketTotalForSummary(basketDetails: any): any;
|
|
65
|
+
updateTransactionDiscount(basketDetails: {
|
|
66
|
+
transactionDiscount: any[];
|
|
67
|
+
basketTotal: number;
|
|
68
|
+
}): {
|
|
69
|
+
transactionDiscount: any[];
|
|
70
|
+
basketTotal: number;
|
|
71
|
+
};
|
|
72
|
+
updateTransactionPromotion(basketDetails: {
|
|
73
|
+
transactionPromotion: any[];
|
|
74
|
+
basketTotal: number;
|
|
75
|
+
}): {
|
|
76
|
+
transactionPromotion: any[];
|
|
77
|
+
basketTotal: number;
|
|
78
|
+
};
|
|
79
|
+
updateBasketTotalWithoutDiscount(basket: Basket): Basket;
|
|
80
|
+
updateBasketTotalWithDiscounts(basket: any): Basket;
|
|
81
|
+
transactionDiscountAndPromotionProductortionCalculation(basket: Basket): Basket;
|
|
82
|
+
transactionPromotionProductPortionCalc(basket: any, promotion: any): any;
|
|
83
|
+
transactionDiscountProductPortionCalc(basket: any, discount: any): any;
|
|
84
|
+
validateProductItemDiscount(product: Product): Product;
|
|
85
|
+
markProduct(product: Product): void;
|
|
86
|
+
stopPeerSyncProcess(peerSync: boolean): void;
|
|
87
|
+
scanStart(isScanning: boolean): void;
|
|
88
|
+
promotionRemainingCalculation(promotion: TransactionPromotion[]): number;
|
|
89
|
+
discountRemainingCalculation(discount: TransactionDiscount[]): number;
|
|
90
|
+
discountRefundedCalculation(discount: TransactionDiscount[]): number;
|
|
91
|
+
generateNewItemLineId(products: Product[]): any;
|
|
92
|
+
updateBasketProductDataAsPerQuantity(product: any, quantity: number): Product;
|
|
93
|
+
filterProductListWithWebOrder(isWebOrder: boolean): Product[];
|
|
94
|
+
filterProductListWithDelivery(): Product[];
|
|
95
|
+
filterProductListWithDeliveryGroup(group: string, products: Product[]): Product[];
|
|
96
|
+
generateNewDeliveryGroupNumber(products: Product[]): string;
|
|
97
|
+
getDeliveryGroupNumbers(products: Product[]): number[];
|
|
98
|
+
updateProductsWithNewDeliveryGroupNumber(products: Product[]): void;
|
|
99
|
+
calculateEstimatedTime(products: any[]): 0 | {
|
|
100
|
+
value: string;
|
|
101
|
+
type: string;
|
|
102
|
+
};
|
|
103
|
+
updateProductsWithDeliveryGroupNumber(oldGroup: string, newGroup: string): void;
|
|
104
|
+
getDeliveryInfo(): any;
|
|
105
|
+
}
|
|
106
106
|
//# sourceMappingURL=basket.service.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class MapperLibraryComponent implements OnInit {
|
|
4
|
-
constructor();
|
|
5
|
-
ngOnInit(): void;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MapperLibraryComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MapperLibraryComponent, "lib-mapper-library", never, {}, {}, never, never>;
|
|
8
|
-
}
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MapperLibraryComponent implements OnInit {
|
|
4
|
+
constructor();
|
|
5
|
+
ngOnInit(): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapperLibraryComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MapperLibraryComponent, "lib-mapper-library", never, {}, {}, never, never>;
|
|
8
|
+
}
|
|
9
9
|
//# sourceMappingURL=mapper-library.component.d.ts.map
|