kcommons 18.3.3 → 18.3.5

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.
@@ -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;
@@ -30,6 +30,7 @@ class ASNItemWrapper {
30
30
  this.item = null;
31
31
  this.parent_asn = null;
32
32
  this.vendor = null;
33
+ this.ewaybill = null;
33
34
  Object.assign(this, partial);
34
35
  }
35
36
  }
@@ -61,5 +62,6 @@ function convertPOItemToASNItem(poItem, vendor_id, poGRNItemJunction = []) {
61
62
  po_asn_item_junction: null,
62
63
  vendor: null,
63
64
  used_in_grn_items: null,
65
+ ewaybill: null,
64
66
  });
65
67
  }
@@ -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 {
@@ -282,8 +286,9 @@ export interface IASNItem {
282
286
  vendor: INestedVendor | null;
283
287
  used_in_grn_items: INestedGRNItem[] | null;
284
288
  po_asn_item_junction: INestedPOASNItemJunction | null;
289
+ ewaybill: INestedEwaybill[] | null;
285
290
  }
286
- export interface INestedASNItem extends Omit<IASNItem, "company" | "item" | "parent_asn" | "vendor" | "parent_po_item" | "used_in_grn_items" | "po_asn_item_junction"> {
291
+ export interface INestedASNItem extends Omit<IASNItem, "company" | "item" | "parent_asn" | "vendor" | "parent_po_item" | "used_in_grn_items" | "po_asn_item_junction" | "ewaybill"> {
287
292
  }
288
293
  export interface ICancelASNInputs extends Pick<IASN, "cancellation_remark" | "cancelled_by_entity" | "cancelled_by_user_id"> {
289
294
  }
@@ -322,10 +327,12 @@ export declare enum ASN_SORTING_ORDER {
322
327
  }
323
328
  export interface IASNMetafields {
324
329
  items_data: INestedItem[] | null;
330
+ ewaybill_vehicle_details: INestedEwaybillVehicleDetails[] | null;
325
331
  vendor_quote_item_custom_uom_data: IASNVendorQuoteItemCustomUOM[] | null;
326
332
  }
327
333
  export declare enum ASN_METAFIELDS_INCLUDE {
328
334
  items_data = "items_data",
335
+ ewaybill_vehicle_details = "ewaybill_vehicle_details",
329
336
  vendor_quote_item_custom_uom_data = "vendor_quote_item_custom_uom_data"
330
337
  }
331
338
  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 = {}));
@@ -6,5 +6,14 @@ export interface IQRData {
6
6
  export declare enum QR_DOCUMENT_TYPE {
7
7
  ASN = "ASN",
8
8
  VES = "VES",
9
- PO = "PO"
9
+ PO = "PO",
10
+ GI = "GI",
11
+ INDENT = "INDENT",
12
+ MI = "MI",
13
+ GRN = "GRN",
14
+ PR = "PR",
15
+ RFQ = "RFQ",
16
+ ST_D = "ST_D",
17
+ ST_S = "ST_S",
18
+ QUOTE = "QUOTE"
10
19
  }
@@ -6,4 +6,13 @@ var QR_DOCUMENT_TYPE;
6
6
  QR_DOCUMENT_TYPE["ASN"] = "ASN";
7
7
  QR_DOCUMENT_TYPE["VES"] = "VES";
8
8
  QR_DOCUMENT_TYPE["PO"] = "PO";
9
+ QR_DOCUMENT_TYPE["GI"] = "GI";
10
+ QR_DOCUMENT_TYPE["INDENT"] = "INDENT";
11
+ QR_DOCUMENT_TYPE["MI"] = "MI";
12
+ QR_DOCUMENT_TYPE["GRN"] = "GRN";
13
+ QR_DOCUMENT_TYPE["PR"] = "PR";
14
+ QR_DOCUMENT_TYPE["RFQ"] = "RFQ";
15
+ QR_DOCUMENT_TYPE["ST_D"] = "ST_D";
16
+ QR_DOCUMENT_TYPE["ST_S"] = "ST_S";
17
+ QR_DOCUMENT_TYPE["QUOTE"] = "QUOTE";
9
18
  })(QR_DOCUMENT_TYPE || (exports.QR_DOCUMENT_TYPE = QR_DOCUMENT_TYPE = {}));
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -56,6 +56,7 @@ export interface IPRFilters {
56
56
  status?: PR_STATUS;
57
57
  list_type?: PR_LIST_TYPE;
58
58
  status_array?: PR_STATUS[];
59
+ for_rfq?: boolean;
59
60
  purchase_location_id?: string;
60
61
  metafields_include?: PR_METAFIELDS_INCLUDE[];
61
62
  }
@@ -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: IRFQItemDataForQuote[] | null;
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "18.3.3",
3
+ "version": "18.3.5",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",