@esolve/ng-esolve-connect 0.91.1 → 0.93.0
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/account/user-account/classes/esolve-erp-document-request.model.mjs +2 -1
- package/esm2022/lib/account/user-account/interfaces/esolve-erp-document-request-record.interface.mjs +1 -1
- package/esm2022/lib/cart/classes/esolve-cart-item.model.mjs +5 -1
- package/esm2022/lib/cart/interfaces/esolve-cart-additional-params.interface.mjs +2 -0
- package/esm2022/lib/cart/interfaces/esolve-cart-item-record.interface.mjs +1 -1
- package/esm2022/lib/cart/interfaces/esolve-cart-set-item.interface.mjs +1 -1
- package/esm2022/lib/cart/interfaces/index.mjs +2 -1
- package/esm2022/lib/shared/custom-fields/index.mjs +3 -2
- package/esm2022/lib/shared/custom-fields/interfaces/esolve-custom-fields-metadata-item.interface.mjs +2 -0
- package/esm2022/lib/shared/custom-fields/interfaces/esolve-custom-fields-metadata.interface.mjs +2 -0
- package/esm2022/lib/shared/custom-fields/interfaces/esolve-custom-fields.interface.mjs +2 -0
- package/esm2022/lib/shared/custom-fields/interfaces/index.mjs +4 -0
- package/esm2022/lib/shared/custom-fields/types/esolve-input-sub-type.type.mjs +2 -0
- package/esm2022/lib/shared/custom-fields/types/esolve-input-type.type.mjs +2 -0
- package/esm2022/lib/shared/custom-fields/types/index.mjs +3 -0
- package/esm2022/lib/stock/classes/esolve-stock-item-base.model.mjs +4 -1
- package/esm2022/lib/stock/interfaces/esolve-stock-base-record.interface.mjs +1 -1
- package/esm2022/lib/transactions/classes/esolve-transaction-item.model.mjs +5 -1
- package/esm2022/lib/transactions/interfaces/esolve-transaction-item-record.interface.mjs +1 -1
- package/fesm2022/esolve-ng-esolve-connect.mjs +12 -0
- package/fesm2022/esolve-ng-esolve-connect.mjs.map +1 -1
- package/lib/account/user-account/classes/esolve-erp-document-request.model.d.ts +1 -0
- package/lib/account/user-account/interfaces/esolve-erp-document-request-record.interface.d.ts +1 -0
- package/lib/cart/classes/esolve-cart-item.model.d.ts +2 -1
- package/lib/cart/interfaces/esolve-cart-additional-params.interface.d.ts +3 -0
- package/lib/cart/interfaces/esolve-cart-item-record.interface.d.ts +2 -0
- package/lib/cart/interfaces/esolve-cart-set-item.interface.d.ts +2 -0
- package/lib/cart/interfaces/index.d.ts +1 -0
- package/lib/shared/custom-fields/index.d.ts +2 -1
- package/lib/shared/custom-fields/interfaces/esolve-custom-fields-metadata-item.interface.d.ts +10 -0
- package/lib/shared/custom-fields/interfaces/esolve-custom-fields-metadata.interface.d.ts +4 -0
- package/lib/shared/custom-fields/interfaces/index.d.ts +3 -0
- package/lib/shared/custom-fields/types/esolve-input-sub-type.type.d.ts +1 -0
- package/lib/shared/custom-fields/types/esolve-input-type.type.d.ts +1 -0
- package/lib/shared/custom-fields/types/index.d.ts +2 -0
- package/lib/stock/classes/esolve-stock-item-base.model.d.ts +5 -1
- package/lib/stock/interfaces/esolve-stock-base-record.interface.d.ts +2 -1
- package/lib/transactions/classes/esolve-transaction-item.model.d.ts +2 -0
- package/lib/transactions/interfaces/esolve-transaction-item-record.interface.d.ts +2 -0
- package/package.json +1 -1
- package/esm2022/lib/shared/custom-fields/esolve-custom-fields.interface.mjs +0 -2
- /package/lib/shared/custom-fields/{esolve-custom-fields.interface.d.ts → interfaces/esolve-custom-fields.interface.d.ts} +0 -0
|
@@ -3,6 +3,7 @@ export declare class EsolveErpDocumentRequest {
|
|
|
3
3
|
type: string;
|
|
4
4
|
document_reference?: string;
|
|
5
5
|
account?: string;
|
|
6
|
+
email_recipient?: string;
|
|
6
7
|
request_processed: boolean;
|
|
7
8
|
request_processed_date?: Date;
|
|
8
9
|
constructor(record?: Partial<EsolveErpDocumentRequestRecord>);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EsolveCartItemRecord } from '../interfaces';
|
|
1
|
+
import { EsolveCartAdditionalParams, EsolveCartItemRecord } from '../interfaces';
|
|
2
2
|
import { EsolveCartStockItem } from './esolve-cart-stock-item.model';
|
|
3
3
|
export declare class EsolveCartItem {
|
|
4
4
|
delivery_category: string;
|
|
@@ -22,5 +22,6 @@ export declare class EsolveCartItem {
|
|
|
22
22
|
requested_assembly: boolean;
|
|
23
23
|
is_dependency: boolean;
|
|
24
24
|
stock_item: EsolveCartStockItem;
|
|
25
|
+
additional_params?: EsolveCartAdditionalParams;
|
|
25
26
|
constructor(record: Partial<EsolveCartItemRecord>);
|
|
26
27
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EsolveStockUnitOfMeasure } from "../../stock/types";
|
|
2
|
+
import { EsolveCartAdditionalParams } from "./esolve-cart-additional-params.interface";
|
|
2
3
|
export interface EsolveCartItemRecord {
|
|
3
4
|
id: number;
|
|
4
5
|
code: string;
|
|
@@ -39,4 +40,5 @@ export interface EsolveCartItemRecord {
|
|
|
39
40
|
subcategory_min_level: number;
|
|
40
41
|
image_name: string;
|
|
41
42
|
is_dependency?: boolean;
|
|
43
|
+
additional_parameters?: EsolveCartAdditionalParams;
|
|
42
44
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { EsolveCartSetAction } from '../types';
|
|
2
|
+
import { EsolveCartAdditionalParams } from './esolve-cart-additional-params.interface';
|
|
2
3
|
export interface EsolveCartSetItem {
|
|
3
4
|
code: string;
|
|
4
5
|
id?: number;
|
|
5
6
|
qty?: number;
|
|
6
7
|
action?: EsolveCartSetAction;
|
|
8
|
+
additional_params?: EsolveCartAdditionalParams;
|
|
7
9
|
}
|
|
@@ -4,6 +4,7 @@ export * from './esolve-cart-item-record.interface';
|
|
|
4
4
|
export * from './esolve-cart-item-response.interface';
|
|
5
5
|
export * from './esolve-cart-additional-where.interface';
|
|
6
6
|
export * from './esolve-cart-set-item.interface';
|
|
7
|
+
export * from './esolve-cart-additional-params.interface';
|
|
7
8
|
export * from './esolve-cart-totals-record.interface';
|
|
8
9
|
export * from './esolve-transaction-analytics-data-record.interface';
|
|
9
10
|
export * from './esolve-time-slot-checkout.interface';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './interfaces';
|
|
2
|
+
export * from './types';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EsolveInputType, EsolveInputSubType } from "../types";
|
|
2
|
+
export interface EsolveCustomFieldsMetadataItem {
|
|
3
|
+
control_type: EsolveInputType;
|
|
4
|
+
control_sub_type: EsolveInputSubType;
|
|
5
|
+
control_label: string;
|
|
6
|
+
control_default_value: string;
|
|
7
|
+
control_select_options: string;
|
|
8
|
+
is_cart_parameter: boolean;
|
|
9
|
+
is_required: boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type EsolveInputSubType = 'hidden' | 'text' | 'button' | 'radio' | 'checkbox';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type EsolveInputType = 'input' | 'select' | 'select_date' | 'select_datetime';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EsolveCustomFields } from '../../shared/custom-fields';
|
|
1
|
+
import { EsolveCustomFields, EsolveCustomFieldsMetadata } from '../../shared/custom-fields';
|
|
2
2
|
import { EsolveSeoDetails, EsolveSeoInfo } from '../../seo';
|
|
3
3
|
import { EsolveCategoryTreeItem } from '../../category-tree';
|
|
4
4
|
import { EsolveManufacturer } from '../../manufacturers';
|
|
@@ -201,6 +201,10 @@ export declare class EsolveStockItemBase<T extends EsolveCustomFields = EsolveCu
|
|
|
201
201
|
* Stock item custom fields.
|
|
202
202
|
*/
|
|
203
203
|
custom_fields?: T;
|
|
204
|
+
/**
|
|
205
|
+
* Stock item custom fields metadata.
|
|
206
|
+
*/
|
|
207
|
+
custom_fields_metadata?: EsolveCustomFieldsMetadata;
|
|
204
208
|
/**
|
|
205
209
|
* Colours
|
|
206
210
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EsolveCustomFields } from '../../shared/custom-fields';
|
|
1
|
+
import { EsolveCustomFields, EsolveCustomFieldsMetadata } from '../../shared/custom-fields';
|
|
2
2
|
import { EsolveCategoryTreeItemRecord } from '../../category-tree';
|
|
3
3
|
import { EsolveManufacturerRecord } from '../../manufacturers';
|
|
4
4
|
import { EsolveRangeRecord } from '../../ranges';
|
|
@@ -60,6 +60,7 @@ export interface EsolveStockBaseRecord<T extends EsolveCustomFields = EsolveCust
|
|
|
60
60
|
colours: EsolveColourRecord[];
|
|
61
61
|
sizes: string[];
|
|
62
62
|
custom_fields: T;
|
|
63
|
+
custom_fields_metadata: EsolveCustomFieldsMetadata;
|
|
63
64
|
height: number;
|
|
64
65
|
width: number;
|
|
65
66
|
length: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EsolveCartAdditionalParams } from '../../cart';
|
|
1
2
|
import { EsolveStockImageSize, EsolveStockUnitOfMeasure } from '../../stock';
|
|
2
3
|
import { EsolveTransactionItemRecord } from '../interfaces';
|
|
3
4
|
import { EsolveTransactionItemPrice } from './esolve-transaction-item-price.model';
|
|
@@ -19,6 +20,7 @@ export declare class EsolveTransactionItem {
|
|
|
19
20
|
pricing_factor: number;
|
|
20
21
|
price: EsolveTransactionItemPrice;
|
|
21
22
|
line_total: EsolveTransactionItemPrice;
|
|
23
|
+
additional_params?: EsolveCartAdditionalParams;
|
|
22
24
|
/**
|
|
23
25
|
* Path to tiny stock image
|
|
24
26
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EsolveCartAdditionalParams } from "../../cart";
|
|
1
2
|
import { EsolveStockUnitOfMeasure } from "../../stock/types";
|
|
2
3
|
export interface EsolveTransactionItemRecord {
|
|
3
4
|
id: number;
|
|
@@ -24,4 +25,5 @@ export interface EsolveTransactionItemRecord {
|
|
|
24
25
|
line_total_exclusive_after_discount: number;
|
|
25
26
|
line_total_inclusive: number;
|
|
26
27
|
line_total_inclusive_after_discount: number;
|
|
28
|
+
additional_parameters?: EsolveCartAdditionalParams;
|
|
27
29
|
}
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXNvbHZlLWN1c3RvbS1maWVsZHMuaW50ZXJmYWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9uZy1lc29sdmUtY29ubmVjdC9zcmMvbGliL3NoYXJlZC9jdXN0b20tZmllbGRzL2Vzb2x2ZS1jdXN0b20tZmllbGRzLmludGVyZmFjZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBFc29sdmVDdXN0b21GaWVsZHMge1xuICAgIFtrZXk6IHN0cmluZ106IG51bWJlciB8IHN0cmluZyB8IGJvb2xlYW4gfCBudWxsO1xufVxuIl19
|