kcommons 5.9.0 → 5.9.1

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,10 +1,91 @@
1
+ import { IPaginationFilters } from "./common/paginationFilters.typings";
2
+ import { INestedCompany } from "./company.typings";
3
+ import { INestedDepartment } from "./department.typings";
4
+ import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
5
+ import { INestedGRN, INestedGRNItem } from "./grn.typings";
6
+ import { INestedItem } from "./item.typings";
7
+ import { INestedStoreLocation } from "./storeLocation.typings";
8
+ import { INestedUser } from "./user.typings";
9
+ export interface IMRNFilters {
10
+ company_id?: string;
11
+ department_id?: string;
12
+ store_location_id?: string;
13
+ status?: MRN_STATUS;
14
+ }
15
+ export interface IMRNFiltersWithPagination extends IMRNFilters, IPaginationFilters {
16
+ }
17
+ export declare enum MRN_INCLUDE {
18
+ company = "company",
19
+ parent_grn = "parent_grn",
20
+ parent_department = "parent_department",
21
+ parent_store_location = "parent_store_location",
22
+ contact_person = "contact_person",
23
+ sent_for_approval_by = "sent_for_approval_by",
24
+ approval_chain = "approval_chain",
25
+ items = "items"
26
+ }
27
+ export declare enum MRN_STATUS {
28
+ DRAFT = "DRAFT",
29
+ PENDING_APPROVAL = "PENDING APPROVAL",
30
+ APPROVED = "APPROVED",
31
+ REJECTED = "REJECTED",
32
+ CLOSED = "CLOSED"
33
+ }
1
34
  export interface IMRN {
2
35
  id: string;
36
+ company_id: string;
37
+ mrn_no: string;
38
+ created_by_id: string;
39
+ parent_grn_id: string | null;
40
+ parent_department_id: string;
41
+ parent_store_location_id: string;
42
+ contact_person_id: string | null;
43
+ status: string;
44
+ attachment_link: string | null;
45
+ remark: string | null;
46
+ send_for_approval_at: string | null;
47
+ sent_for_approval_by_id: string | null;
48
+ is_deleted: boolean;
49
+ deleted_at: string | null;
50
+ created_at: string;
51
+ updated_at: string;
52
+ company: INestedCompany | null;
53
+ parent_grn: INestedGRN | null;
54
+ parent_department: INestedDepartment | null;
55
+ parent_store_location: INestedStoreLocation | null;
56
+ contact_person: INestedUser | null;
57
+ sent_for_approval_by: INestedUser | null;
58
+ approval_chain: INestedEntityApprovalChainEntry | null;
59
+ items: INestedMRNItem[] | null;
60
+ }
61
+ export interface INestedMRN extends Omit<IMRN, "company" | "parent_grn" | "parent_department" | "parent_store_location" | "contact_person" | "sent_for_approval_by" | "approval_chain" | "items"> {
3
62
  }
4
- export interface INestedMRN extends Omit<IMRN, ""> {
63
+ export declare enum MRN_ITEM_INCLUDE {
64
+ parent_mrn = "parent_mrn",
65
+ company = "company",
66
+ item = "item",
67
+ parent_grn_item = "parent_grn_item"
5
68
  }
6
69
  export interface IMRNItem {
7
70
  id: string;
71
+ parent_mrn_id: string;
72
+ company_id: string;
73
+ item_id: string;
74
+ item_name: string;
75
+ code_sku: string;
76
+ uom: string;
77
+ expected_quantity: number;
78
+ actual_quantity: number;
79
+ item_description: string | null;
80
+ parent_grn_item_id: string | null;
81
+ is_deleted: boolean;
82
+ deleted_at: Date | null;
83
+ created_at: Date;
84
+ updated_at: Date;
85
+ parent_mrn: INestedMRN | null;
86
+ company: INestedCompany | null;
87
+ item: INestedItem | null;
88
+ parent_grn_item: INestedGRNItem | null;
8
89
  }
9
- export interface INestedMRNItem extends Omit<IMRNItem, ""> {
90
+ export interface INestedMRNItem extends Omit<IMRNItem, "parent_mrn" | "company" | "item" | "parent_grn_item"> {
10
91
  }
@@ -1,2 +1,29 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MRN_ITEM_INCLUDE = exports.MRN_STATUS = exports.MRN_INCLUDE = void 0;
4
+ var MRN_INCLUDE;
5
+ (function (MRN_INCLUDE) {
6
+ MRN_INCLUDE["company"] = "company";
7
+ MRN_INCLUDE["parent_grn"] = "parent_grn";
8
+ MRN_INCLUDE["parent_department"] = "parent_department";
9
+ MRN_INCLUDE["parent_store_location"] = "parent_store_location";
10
+ MRN_INCLUDE["contact_person"] = "contact_person";
11
+ MRN_INCLUDE["sent_for_approval_by"] = "sent_for_approval_by";
12
+ MRN_INCLUDE["approval_chain"] = "approval_chain";
13
+ MRN_INCLUDE["items"] = "items";
14
+ })(MRN_INCLUDE || (exports.MRN_INCLUDE = MRN_INCLUDE = {}));
15
+ var MRN_STATUS;
16
+ (function (MRN_STATUS) {
17
+ MRN_STATUS["DRAFT"] = "DRAFT";
18
+ MRN_STATUS["PENDING_APPROVAL"] = "PENDING APPROVAL";
19
+ MRN_STATUS["APPROVED"] = "APPROVED";
20
+ MRN_STATUS["REJECTED"] = "REJECTED";
21
+ MRN_STATUS["CLOSED"] = "CLOSED";
22
+ })(MRN_STATUS || (exports.MRN_STATUS = MRN_STATUS = {}));
23
+ var MRN_ITEM_INCLUDE;
24
+ (function (MRN_ITEM_INCLUDE) {
25
+ MRN_ITEM_INCLUDE["parent_mrn"] = "parent_mrn";
26
+ MRN_ITEM_INCLUDE["company"] = "company";
27
+ MRN_ITEM_INCLUDE["item"] = "item";
28
+ MRN_ITEM_INCLUDE["parent_grn_item"] = "parent_grn_item";
29
+ })(MRN_ITEM_INCLUDE || (exports.MRN_ITEM_INCLUDE = MRN_ITEM_INCLUDE = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.9.0",
3
+ "version": "5.9.1",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",