kcommons 18.3.4 → 18.3.6
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/build/classes/asnWrapper.class.d.ts +2 -0
- package/build/classes/asnWrapper.class.js +1 -0
- package/build/constants/statuses.constants.d.ts +1 -0
- package/build/constants/statuses.constants.js +1 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +2 -0
- package/build/typings/asn.typings.d.ts +8 -2
- package/build/typings/asn.typings.js +2 -0
- package/build/typings/common/ulip/ewaybill.typings.d.ts +16 -0
- package/build/typings/common/ulip/ewaybill.typings.js +2 -0
- package/build/typings/common/ulip/ewaybillVehicle.typings.d.ts +10 -0
- package/build/typings/common/ulip/ewaybillVehicle.typings.js +2 -0
- package/build/typings/pr.typings.d.ts +1 -0
- package/build/typings/quote.typings.d.ts +4 -2
- package/build/typings/quote.typings.js +1 -0
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import { IASNItem } from "../typings/asn.typings";
|
|
|
2
2
|
import { INestedGRNItem } from "../typings/grn.typings";
|
|
3
3
|
import { INestedPOItem } from "../typings/company/masters/po.typings";
|
|
4
4
|
import { INestedPOGRNItemJunction } from "../typings/company/masters/poGrnJunctionItems.typings";
|
|
5
|
+
import { INestedEwaybill } from "../typings/common/ulip/ewaybill.typings";
|
|
5
6
|
export declare class ASNItemWrapper implements IASNItem {
|
|
6
7
|
constructor(partial: IASNItem);
|
|
7
8
|
po_asn_item_junction_id: string;
|
|
@@ -29,5 +30,6 @@ export declare class ASNItemWrapper implements IASNItem {
|
|
|
29
30
|
item: null;
|
|
30
31
|
parent_asn: null;
|
|
31
32
|
vendor: null;
|
|
33
|
+
ewaybill: INestedEwaybill[] | null;
|
|
32
34
|
}
|
|
33
35
|
export declare function convertPOItemToASNItem(poItem: INestedPOItem, vendor_id?: string | null, poGRNItemJunction?: INestedPOGRNItemJunction[] | null): IASNItem;
|
|
@@ -13,6 +13,7 @@ export declare enum STATUSES {
|
|
|
13
13
|
PENDING = "PENDING",
|
|
14
14
|
QUOTED = "QUOTED",
|
|
15
15
|
CANCELLED = "CANCELLED",
|
|
16
|
+
EXPIRED = "EXPIRED",
|
|
16
17
|
/** @deprecated Use Accepted By Vendor instead. Ask to Backend devs before changing any existing code */
|
|
17
18
|
ACCEPTED = "ACCEPTED",
|
|
18
19
|
/** @description Used for when Vendor Accepts any document like PO which is sent by company */
|
|
@@ -17,6 +17,7 @@ var STATUSES;
|
|
|
17
17
|
STATUSES["PENDING"] = "PENDING";
|
|
18
18
|
STATUSES["QUOTED"] = "QUOTED";
|
|
19
19
|
STATUSES["CANCELLED"] = "CANCELLED";
|
|
20
|
+
STATUSES["EXPIRED"] = "EXPIRED";
|
|
20
21
|
/** @deprecated Use Accepted By Vendor instead. Ask to Backend devs before changing any existing code */
|
|
21
22
|
STATUSES["ACCEPTED"] = "ACCEPTED";
|
|
22
23
|
/** @description Used for when Vendor Accepts any document like PO which is sent by company */
|
package/build/index.d.ts
CHANGED
|
@@ -78,6 +78,8 @@ export * from "./typings/subPOItem.typings";
|
|
|
78
78
|
export * from "./typings/company/masters/customerManagementBody.typings";
|
|
79
79
|
export * from "./typings/companyCustomer.typings";
|
|
80
80
|
export * from "./typings/customer.typings";
|
|
81
|
+
export * from "./typings/common/ulip/ewaybill.typings";
|
|
82
|
+
export * from "./typings/common/ulip/ewaybillVehicle.typings";
|
|
81
83
|
export * from "./typings/vendorQuoteItems.typings";
|
|
82
84
|
export * from "./typings/customUOM.typings";
|
|
83
85
|
export * from "./typings/system/queueJob.typings";
|
package/build/index.js
CHANGED
|
@@ -98,6 +98,8 @@ __exportStar(require("./typings/subPOItem.typings"), exports);
|
|
|
98
98
|
__exportStar(require("./typings/company/masters/customerManagementBody.typings"), exports);
|
|
99
99
|
__exportStar(require("./typings/companyCustomer.typings"), exports);
|
|
100
100
|
__exportStar(require("./typings/customer.typings"), exports);
|
|
101
|
+
__exportStar(require("./typings/common/ulip/ewaybill.typings"), exports);
|
|
102
|
+
__exportStar(require("./typings/common/ulip/ewaybillVehicle.typings"), exports);
|
|
101
103
|
__exportStar(require("./typings/vendorQuoteItems.typings"), exports);
|
|
102
104
|
__exportStar(require("./typings/customUOM.typings"), exports);
|
|
103
105
|
// System
|
|
@@ -11,6 +11,8 @@ import { INestedVendor } from "./vendor.typings";
|
|
|
11
11
|
import { INestedPOASNItemJunction } from "./company/masters/poAsnJunctionItems.typings";
|
|
12
12
|
import { IOpenApprovalsBase } from "./common/openApprovals.typings";
|
|
13
13
|
import { INestedVendorUser } from "./vendor/vendorUser.typings";
|
|
14
|
+
import { INestedEwaybill } from "./common/ulip/ewaybill.typings";
|
|
15
|
+
import { INestedEwaybillVehicleDetails } from "./common/ulip/ewaybillVehicle.typings";
|
|
14
16
|
export declare enum ASN_CANCELLED_BY_ENTITY {
|
|
15
17
|
COMPANY = "COMPANY",
|
|
16
18
|
VENDOR = "VENDOR"
|
|
@@ -73,7 +75,8 @@ export declare enum ASN_INCLUDE {
|
|
|
73
75
|
send_by_user = "send_by_user",
|
|
74
76
|
created_by_vendor_user = "created_by_vendor_user",
|
|
75
77
|
last_updated_by_vendor_user = "last_updated_by_vendor_user",
|
|
76
|
-
cancelled_by_vendor_user = "cancelled_by_vendor_user"
|
|
78
|
+
cancelled_by_vendor_user = "cancelled_by_vendor_user",
|
|
79
|
+
ewaybill = "ewaybill"
|
|
77
80
|
}
|
|
78
81
|
export interface IASN {
|
|
79
82
|
id: string;
|
|
@@ -175,6 +178,7 @@ export interface IASN {
|
|
|
175
178
|
asns_sent_to_vendor_by_user: INestedUser | null;
|
|
176
179
|
child_ves: INestedVES[] | null;
|
|
177
180
|
send_by_user: INestedUser | null;
|
|
181
|
+
ewaybill: INestedEwaybill[] | null;
|
|
178
182
|
metafields: IASNMetafields | null;
|
|
179
183
|
}
|
|
180
184
|
export declare enum ASN_MODE_OF_TRANSPORT_FIELDS {
|
|
@@ -283,7 +287,7 @@ export interface IASNItem {
|
|
|
283
287
|
used_in_grn_items: INestedGRNItem[] | null;
|
|
284
288
|
po_asn_item_junction: INestedPOASNItemJunction | null;
|
|
285
289
|
}
|
|
286
|
-
export interface INestedASNItem extends Omit<IASNItem, "company" | "item" | "parent_asn" | "vendor" | "parent_po_item" | "used_in_grn_items" | "po_asn_item_junction"> {
|
|
290
|
+
export interface INestedASNItem extends Omit<IASNItem, "company" | "item" | "parent_asn" | "vendor" | "parent_po_item" | "used_in_grn_items" | "po_asn_item_junction" | "ewaybill"> {
|
|
287
291
|
}
|
|
288
292
|
export interface ICancelASNInputs extends Pick<IASN, "cancellation_remark" | "cancelled_by_entity" | "cancelled_by_user_id"> {
|
|
289
293
|
}
|
|
@@ -322,10 +326,12 @@ export declare enum ASN_SORTING_ORDER {
|
|
|
322
326
|
}
|
|
323
327
|
export interface IASNMetafields {
|
|
324
328
|
items_data: INestedItem[] | null;
|
|
329
|
+
ewaybill_vehicle_details: INestedEwaybillVehicleDetails[] | null;
|
|
325
330
|
vendor_quote_item_custom_uom_data: IASNVendorQuoteItemCustomUOM[] | null;
|
|
326
331
|
}
|
|
327
332
|
export declare enum ASN_METAFIELDS_INCLUDE {
|
|
328
333
|
items_data = "items_data",
|
|
334
|
+
ewaybill_vehicle_details = "ewaybill_vehicle_details",
|
|
329
335
|
vendor_quote_item_custom_uom_data = "vendor_quote_item_custom_uom_data"
|
|
330
336
|
}
|
|
331
337
|
export interface IASNVendorQuoteItemCustomUOM {
|
|
@@ -73,6 +73,7 @@ var ASN_INCLUDE;
|
|
|
73
73
|
ASN_INCLUDE["created_by_vendor_user"] = "created_by_vendor_user";
|
|
74
74
|
ASN_INCLUDE["last_updated_by_vendor_user"] = "last_updated_by_vendor_user";
|
|
75
75
|
ASN_INCLUDE["cancelled_by_vendor_user"] = "cancelled_by_vendor_user";
|
|
76
|
+
ASN_INCLUDE["ewaybill"] = "ewaybill";
|
|
76
77
|
})(ASN_INCLUDE || (exports.ASN_INCLUDE = ASN_INCLUDE = {}));
|
|
77
78
|
var ASN_MODE_OF_TRANSPORT_FIELDS;
|
|
78
79
|
(function (ASN_MODE_OF_TRANSPORT_FIELDS) {
|
|
@@ -153,5 +154,6 @@ var ASN_SORTING_ORDER;
|
|
|
153
154
|
var ASN_METAFIELDS_INCLUDE;
|
|
154
155
|
(function (ASN_METAFIELDS_INCLUDE) {
|
|
155
156
|
ASN_METAFIELDS_INCLUDE["items_data"] = "items_data";
|
|
157
|
+
ASN_METAFIELDS_INCLUDE["ewaybill_vehicle_details"] = "ewaybill_vehicle_details";
|
|
156
158
|
ASN_METAFIELDS_INCLUDE["vendor_quote_item_custom_uom_data"] = "vendor_quote_item_custom_uom_data";
|
|
157
159
|
})(ASN_METAFIELDS_INCLUDE || (exports.ASN_METAFIELDS_INCLUDE = ASN_METAFIELDS_INCLUDE = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { INestedASN } from "../../asn.typings";
|
|
2
|
+
import { INestedEwaybillVehicleDetails } from "./ewaybillVehicle.typings";
|
|
3
|
+
export interface IEwaybill {
|
|
4
|
+
id: string | null;
|
|
5
|
+
from_pincode: string | null;
|
|
6
|
+
hsn_code: string | null;
|
|
7
|
+
eway_bill_date: string | null;
|
|
8
|
+
valid_upto: string | null;
|
|
9
|
+
ewb_no: string | null;
|
|
10
|
+
to_pincode: string | null;
|
|
11
|
+
status: string | null;
|
|
12
|
+
vehicle_details: INestedEwaybillVehicleDetails[] | null;
|
|
13
|
+
associated_asns: INestedASN[] | null;
|
|
14
|
+
}
|
|
15
|
+
export interface INestedEwaybill extends Omit<IEwaybill, "vehicle_details" | "associated_asns"> {
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface IEwaybillVehicleDetails {
|
|
2
|
+
id: string;
|
|
3
|
+
vehicle_no: string | null;
|
|
4
|
+
entered_date: string | null;
|
|
5
|
+
trans_mode: string | null;
|
|
6
|
+
parent_ewaybill_id: string;
|
|
7
|
+
parent_ewaybill: null;
|
|
8
|
+
}
|
|
9
|
+
export interface INestedEwaybillVehicleDetails extends Omit<IEwaybillVehicleDetails, "parent_ewaybill"> {
|
|
10
|
+
}
|
|
@@ -24,7 +24,8 @@ export declare enum QUOTE_TYPE {
|
|
|
24
24
|
}
|
|
25
25
|
export declare enum QUOTE_STATUS {
|
|
26
26
|
PENDING = "PENDING",
|
|
27
|
-
QUOTED = "QUOTED"
|
|
27
|
+
QUOTED = "QUOTED",
|
|
28
|
+
EXPIRED = "EXPIRED"
|
|
28
29
|
}
|
|
29
30
|
export declare enum QUOTING_METHOD_FOR_ITEMS {
|
|
30
31
|
ALTERNATE = "ALTERNATE",
|
|
@@ -68,7 +69,7 @@ export interface IQuoteMetaFields {
|
|
|
68
69
|
referenced_vendor_quote_items: INestedVendorQuoteItem[] | null;
|
|
69
70
|
referenced_vendor_items: INestedVendorItem[] | null;
|
|
70
71
|
custom_uoms: INestedCustomUOM[] | null;
|
|
71
|
-
rfq_items:
|
|
72
|
+
rfq_items: INestedRFQItem[] | null;
|
|
72
73
|
primary_quote_items: INestedQuoteItems[] | null;
|
|
73
74
|
/** @description Not intended for use in WebApp */
|
|
74
75
|
combined_data_for_quote_items: null;
|
|
@@ -156,6 +157,7 @@ export interface IQuoteFilters {
|
|
|
156
157
|
company_id?: string;
|
|
157
158
|
name?: string;
|
|
158
159
|
item_id?: string;
|
|
160
|
+
status_array?: QUOTE_STATUS[];
|
|
159
161
|
show_calculations_in_company_uom?: boolean;
|
|
160
162
|
include?: QUOTE_INCLUDES[];
|
|
161
163
|
metafields_include?: QUOTE_META_INCLUDES[];
|
|
@@ -11,6 +11,7 @@ var QUOTE_STATUS;
|
|
|
11
11
|
(function (QUOTE_STATUS) {
|
|
12
12
|
QUOTE_STATUS["PENDING"] = "PENDING";
|
|
13
13
|
QUOTE_STATUS["QUOTED"] = "QUOTED";
|
|
14
|
+
QUOTE_STATUS["EXPIRED"] = "EXPIRED";
|
|
14
15
|
})(QUOTE_STATUS || (exports.QUOTE_STATUS = QUOTE_STATUS = {}));
|
|
15
16
|
var QUOTING_METHOD_FOR_ITEMS;
|
|
16
17
|
(function (QUOTING_METHOD_FOR_ITEMS) {
|