kcommons 5.6.5 → 5.8.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.
@@ -1,5 +1,74 @@
1
+ import { INestedASN, INestedASNItem } from "./asn.typings";
2
+ import { INestedCompany } from "./company.typings";
3
+ import { INestedDepartment } from "./department.typings";
4
+ import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
5
+ import { INestedItem } from "./item.typings";
6
+ import { INestedStoreLocation } from "./storeLocation.typings";
7
+ import { INestedUser } from "./user.typings";
8
+ export declare enum GRN_INCLUDE {
9
+ company = "company",
10
+ shipping_store_location = "shipping_store_location",
11
+ department = "department",
12
+ parent_asn = "parent_asn",
13
+ contact_person = "contact_person",
14
+ items = "items",
15
+ approval_chain = "approval_chain"
16
+ }
1
17
  export interface IGRN {
2
18
  id: string;
19
+ grn_no: string;
20
+ actual_delivery_date: string;
21
+ expected_delivery_date: string | null;
22
+ parent_asn_id: string | null;
23
+ shipping_store_location_id: string;
24
+ created_by_id: string;
25
+ company_id: string;
26
+ department_id: string;
27
+ contact_person_id: string;
28
+ attachment_link: string | null;
29
+ remarks: string | null;
30
+ is_deleted: boolean;
31
+ deleted_at: string | null;
32
+ created_at: string;
33
+ updated_at: string;
34
+ company?: INestedCompany | null;
35
+ shipping_store_location?: INestedStoreLocation | null;
36
+ department?: INestedDepartment | null;
37
+ parent_asn?: INestedASN | null;
38
+ contact_person?: INestedUser | null;
39
+ items?: [];
40
+ approval_chain?: INestedEntityApprovalChainEntry[] | null;
41
+ }
42
+ export interface INestedGRN extends Omit<IGRN, "company" | "shipping_store_location" | "department" | "parent_asn" | "contact_person" | "items" | "approval_chain"> {
3
43
  }
4
44
  export interface INestedGRN extends Omit<IGRN, "approval_configs" | "departments" | "roles" | "target_store_locations"> {
5
45
  }
46
+ export declare enum GRN_ITEM_INCLUDE {
47
+ company = "company",
48
+ parent_grn = "parent_grn",
49
+ item = "item",
50
+ parent_asn_item = "parent_asn_item"
51
+ }
52
+ export interface IGRNItem {
53
+ id: string;
54
+ company_id: string;
55
+ parent_grn_id: string;
56
+ item_id: string;
57
+ item_name: string;
58
+ code_sku: string;
59
+ uom: string;
60
+ expected_deliverable_quantity: number;
61
+ actual_delivered_quantity: number;
62
+ item_description: string | null;
63
+ parent_asn_item_id: string | null;
64
+ is_deleted: boolean;
65
+ deleted_at: string | null;
66
+ created_at: string;
67
+ updated_at: string;
68
+ company?: INestedCompany | null;
69
+ parent_grn?: INestedGRN | null;
70
+ item?: INestedItem | null;
71
+ parent_asn_item?: INestedASNItem | null;
72
+ }
73
+ export interface INestedGRNItem extends Omit<IGRNItem, "company" | "parent_grn" | "item" | "parent_asn_item"> {
74
+ }
@@ -1,2 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GRN_ITEM_INCLUDE = exports.GRN_INCLUDE = void 0;
4
+ var GRN_INCLUDE;
5
+ (function (GRN_INCLUDE) {
6
+ GRN_INCLUDE["company"] = "company";
7
+ GRN_INCLUDE["shipping_store_location"] = "shipping_store_location";
8
+ GRN_INCLUDE["department"] = "department";
9
+ GRN_INCLUDE["parent_asn"] = "parent_asn";
10
+ GRN_INCLUDE["contact_person"] = "contact_person";
11
+ GRN_INCLUDE["items"] = "items";
12
+ GRN_INCLUDE["approval_chain"] = "approval_chain";
13
+ })(GRN_INCLUDE || (exports.GRN_INCLUDE = GRN_INCLUDE = {}));
14
+ var GRN_ITEM_INCLUDE;
15
+ (function (GRN_ITEM_INCLUDE) {
16
+ GRN_ITEM_INCLUDE["company"] = "company";
17
+ GRN_ITEM_INCLUDE["parent_grn"] = "parent_grn";
18
+ GRN_ITEM_INCLUDE["item"] = "item";
19
+ GRN_ITEM_INCLUDE["parent_asn_item"] = "parent_asn_item";
20
+ })(GRN_ITEM_INCLUDE || (exports.GRN_ITEM_INCLUDE = GRN_ITEM_INCLUDE = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.6.5",
3
+ "version": "5.8.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",