kcommons 9.2.13 → 9.3.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,6 +1,8 @@
1
1
  import { IPaginationFilters } from "../../common/paginationFilters.typings";
2
2
  import { INestedCompany } from "../../company.typings";
3
3
  import { INestedEntityApprovalChainEntry } from "../../entityApprovalChainEntry.typings";
4
+ import { INestedGRN } from "../../grn.typings";
5
+ import { INestedMRN } from "../../mrn.typings";
4
6
  import { INestedStoreLocation } from "../../storeLocation.typings";
5
7
  import { INestedUser } from "../../user.typings";
6
8
  import { INestedISTDItem } from "./istdItems.typings";
@@ -35,9 +37,11 @@ export declare enum ISTD_INCLUDE {
35
37
  terminated_by = "terminated_by",
36
38
  items = "items",
37
39
  sent_to_dest_store_by = "sent_to_dest_store_by",
38
- marked_as_processed_by = "marked_as_processed_by",
40
+ sent_for_processing_by = "sent_for_processing_by",
39
41
  source_approval_chain = "source_approval_chain",
40
- dest_approval_chain = "dest_approval_chain"
42
+ dest_approval_chain = "dest_approval_chain",
43
+ mrns = "mrns",
44
+ grns = "grns"
41
45
  }
42
46
  export interface IISTD {
43
47
  id: string;
@@ -54,8 +58,8 @@ export interface IISTD {
54
58
  dest_store_location_id: string;
55
59
  note: string | null;
56
60
  attachment_link: string | null;
57
- marked_as_processed_by_id: string | null;
58
- marked_as_processed_by_at: Date | null;
61
+ sent_for_processing_by_id: string | null;
62
+ sent_for_processing_at: string | null;
59
63
  termination_remark: string | null;
60
64
  terminated_by_id: string | null;
61
65
  terminated_at: string | null;
@@ -77,22 +81,20 @@ export interface IISTD {
77
81
  dest_contact_person: INestedUser | null;
78
82
  sent_for_source_approval_by: INestedUser | null;
79
83
  sent_for_dest_approval_by: INestedUser | null;
84
+ sent_for_processing_by: INestedUser | null;
80
85
  source_store_location: INestedStoreLocation | null;
81
86
  dest_store_location: INestedStoreLocation | null;
82
87
  terminated_by: INestedUser | null;
83
88
  source_approval_chain: INestedEntityApprovalChainEntry[] | null;
84
89
  dest_approval_chain: INestedEntityApprovalChainEntry[] | null;
90
+ grns: INestedGRN[] | null;
91
+ mrns: INestedMRN[] | null;
85
92
  }
86
- export interface INestedISTD extends Omit<IISTD, "items" | "company" | "created_by" | "last_updated_by" | "source_contact_person" | "dest_contact_person" | "sent_for_source_approval_by" | "sent_for_dest_approval_by" | "source_store_location" | "dest_store_location" | "terminated_by" | "sent_to_dest_store_by" | "marked_as_processed_by" | "source_approval_chain" | "dest_approval_chain"> {
93
+ export interface INestedISTD extends Omit<IISTD, "items" | "company" | "created_by" | "last_updated_by" | "source_contact_person" | "dest_contact_person" | "sent_for_source_approval_by" | "sent_for_dest_approval_by" | "source_store_location" | "dest_store_location" | "terminated_by" | "sent_to_dest_store_by" | "sent_for_processing_by" | "source_approval_chain" | "dest_approval_chain" | "grns" | "mrns"> {
87
94
  }
88
95
  export interface IISTDFilter {
89
- source_contact_person_id?: string | null;
90
- dest_contact_person_id?: string | null;
91
96
  created_by_id?: string | null;
92
- last_updated_by_id?: string | null;
93
97
  terminated_by_id?: string | null;
94
- sent_to_dest_store_by?: string | null;
95
- marked_as_processed_by?: string | null;
96
98
  is_deleted?: boolean | null;
97
99
  include?: ISTD_INCLUDE[] | null;
98
100
  status_at_source?: ISTD_STATUS_FOR_SOURCE | null;
@@ -36,7 +36,9 @@ var ISTD_INCLUDE;
36
36
  ISTD_INCLUDE["terminated_by"] = "terminated_by";
37
37
  ISTD_INCLUDE["items"] = "items";
38
38
  ISTD_INCLUDE["sent_to_dest_store_by"] = "sent_to_dest_store_by";
39
- ISTD_INCLUDE["marked_as_processed_by"] = "marked_as_processed_by";
39
+ ISTD_INCLUDE["sent_for_processing_by"] = "sent_for_processing_by";
40
40
  ISTD_INCLUDE["source_approval_chain"] = "source_approval_chain";
41
41
  ISTD_INCLUDE["dest_approval_chain"] = "dest_approval_chain";
42
+ ISTD_INCLUDE["mrns"] = "mrns";
43
+ ISTD_INCLUDE["grns"] = "grns";
42
44
  })(ISTD_INCLUDE || (exports.ISTD_INCLUDE = ISTD_INCLUDE = {}));
@@ -1,11 +1,15 @@
1
1
  import { IPaginationFilters } from "../../common/paginationFilters.typings";
2
2
  import { INestedCompany } from "../../company.typings";
3
+ import { INestedGRNItem } from "../../grn.typings";
3
4
  import { INestedItem } from "../../item.typings";
5
+ import { INestedMRNItem } from "../../mrn.typings";
4
6
  import { INestedISTD } from "./istd.typings";
5
7
  export declare enum ISTD_ITEM_INCLUDE {
6
8
  company = "company",
7
9
  parent_istd = "parent_istd",
8
- item = "item"
10
+ item = "item",
11
+ child_grn_items = "child_grn_items",
12
+ child_mrn_items = "child_mrn_items"
9
13
  }
10
14
  export interface IISTDItem {
11
15
  id: string;
@@ -25,8 +29,10 @@ export interface IISTDItem {
25
29
  company: INestedCompany | null;
26
30
  parent_istd: INestedISTD | null;
27
31
  item: INestedItem | null;
32
+ child_grn_items: INestedGRNItem[] | null;
33
+ child_mrn_items: INestedMRNItem[] | null;
28
34
  }
29
- export interface INestedISTDItem extends Omit<IISTDItem, "company" | "parent_istd" | "item"> {
35
+ export interface INestedISTDItem extends Omit<IISTDItem, "company" | "parent_istd" | "item" | "child_grn_items" | "child_mrn_items"> {
30
36
  }
31
37
  export interface IISTDItemFilters {
32
38
  item_id?: string | null;
@@ -6,4 +6,6 @@ var ISTD_ITEM_INCLUDE;
6
6
  ISTD_ITEM_INCLUDE["company"] = "company";
7
7
  ISTD_ITEM_INCLUDE["parent_istd"] = "parent_istd";
8
8
  ISTD_ITEM_INCLUDE["item"] = "item";
9
+ ISTD_ITEM_INCLUDE["child_grn_items"] = "child_grn_items";
10
+ ISTD_ITEM_INCLUDE["child_mrn_items"] = "child_mrn_items";
9
11
  })(ISTD_ITEM_INCLUDE || (exports.ISTD_ITEM_INCLUDE = ISTD_ITEM_INCLUDE = {}));
@@ -1,12 +1,18 @@
1
1
  import { INestedASN, INestedASNItem } from "./asn.typings";
2
2
  import { IPaginationFilters } from "./common/paginationFilters.typings";
3
3
  import { INestedCompany } from "./company.typings";
4
+ import { INestedISTD } from "./company/istd/istd.typings";
5
+ import { INestedISTDItem } from "./company/istd/istdItems.typings";
4
6
  import { INestedDepartment } from "./department.typings";
5
7
  import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
6
8
  import { INestedItem } from "./item.typings";
7
9
  import { INestedMRN, INestedMRNItem } from "./mrn.typings";
8
10
  import { INestedStoreLocation } from "./storeLocation.typings";
9
11
  import { INestedUser } from "./user.typings";
12
+ export declare enum GRN_PARENT_DOC_TYPE {
13
+ ASN = "ASN",
14
+ ISTD = "ISTD"
15
+ }
10
16
  export declare enum GRN_INCLUDE {
11
17
  company = "company",
12
18
  shipping_store_location = "shipping_store_location",
@@ -41,6 +47,8 @@ export interface IGRNFiltersWithPagination extends IPaginationFilters, IGRNFilte
41
47
  export interface IGRN {
42
48
  id: string;
43
49
  grn_no: string;
50
+ parent_doc_type?: GRN_PARENT_DOC_TYPE | null;
51
+ parent_istd_id?: string | null;
44
52
  actual_delivery_date: string;
45
53
  expected_delivery_date?: string | null;
46
54
  parent_asn_id?: string | null;
@@ -66,15 +74,17 @@ export interface IGRN {
66
74
  approval_chain?: INestedEntityApprovalChainEntry[] | null;
67
75
  sent_for_approval_by?: INestedUser | null;
68
76
  sent_to_store_by?: INestedUser | null;
77
+ parent_istd: INestedISTD | null;
69
78
  }
70
- export interface INestedGRN extends Omit<IGRN, "company" | "shipping_store_location" | "department" | "parent_asn" | "contact_person" | "items" | "approval_chain" | "sent_for_approval_by" | "sent_to_store_by" | "child_mrns"> {
79
+ export interface INestedGRN extends Omit<IGRN, "company" | "shipping_store_location" | "department" | "parent_asn" | "contact_person" | "items" | "approval_chain" | "sent_for_approval_by" | "sent_to_store_by" | "child_mrns" | "parent_istd"> {
71
80
  }
72
81
  export declare enum GRN_ITEM_INCLUDE {
73
82
  company = "company",
74
83
  parent_grn = "parent_grn",
75
84
  item = "item",
76
85
  parent_asn_item = "parent_asn_item",
77
- referenced_in_mrn_items = "referenced_in_mrn_items"
86
+ referenced_in_mrn_items = "referenced_in_mrn_items",
87
+ parent_istd = "parent_istd"
78
88
  }
79
89
  export interface IGRNItem {
80
90
  id: string;
@@ -88,6 +98,7 @@ export interface IGRNItem {
88
98
  actual_delivered_quantity: number;
89
99
  item_description?: string | null;
90
100
  parent_asn_item_id?: string | null;
101
+ parent_istd_item_id: string | null;
91
102
  is_deleted: boolean;
92
103
  deleted_at?: string | null;
93
104
  created_at: string;
@@ -96,7 +107,8 @@ export interface IGRNItem {
96
107
  parent_grn?: INestedGRN | null;
97
108
  item?: INestedItem | null;
98
109
  parent_asn_item?: INestedASNItem | null;
110
+ parent_istd_item?: INestedISTDItem | null;
99
111
  referenced_in_mrn_items?: INestedMRNItem[] | null;
100
112
  }
101
- export interface INestedGRNItem extends Omit<IGRNItem, "company" | "parent_grn" | "item" | "parent_asn_item" | "referenced_in_mrn_items"> {
113
+ export interface INestedGRNItem extends Omit<IGRNItem, "company" | "parent_grn" | "item" | "parent_asn_item" | "referenced_in_mrn_items" | "parent_istd_item"> {
102
114
  }
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GRN_ITEM_INCLUDE = exports.GRN_STATUS = exports.GRN_INCLUDE = void 0;
3
+ exports.GRN_ITEM_INCLUDE = exports.GRN_STATUS = exports.GRN_INCLUDE = exports.GRN_PARENT_DOC_TYPE = void 0;
4
+ var GRN_PARENT_DOC_TYPE;
5
+ (function (GRN_PARENT_DOC_TYPE) {
6
+ GRN_PARENT_DOC_TYPE["ASN"] = "ASN";
7
+ GRN_PARENT_DOC_TYPE["ISTD"] = "ISTD";
8
+ })(GRN_PARENT_DOC_TYPE || (exports.GRN_PARENT_DOC_TYPE = GRN_PARENT_DOC_TYPE = {}));
4
9
  var GRN_INCLUDE;
5
10
  (function (GRN_INCLUDE) {
6
11
  GRN_INCLUDE["company"] = "company";
@@ -31,4 +36,5 @@ var GRN_ITEM_INCLUDE;
31
36
  GRN_ITEM_INCLUDE["item"] = "item";
32
37
  GRN_ITEM_INCLUDE["parent_asn_item"] = "parent_asn_item";
33
38
  GRN_ITEM_INCLUDE["referenced_in_mrn_items"] = "referenced_in_mrn_items";
39
+ GRN_ITEM_INCLUDE["parent_istd"] = "parent_istd";
34
40
  })(GRN_ITEM_INCLUDE || (exports.GRN_ITEM_INCLUDE = GRN_ITEM_INCLUDE = {}));
@@ -1,11 +1,17 @@
1
1
  import { IPaginationFilters } from "./common/paginationFilters.typings";
2
2
  import { INestedCompany } from "./company.typings";
3
+ import { INestedISTD } from "./company/istd/istd.typings";
4
+ import { INestedISTDItem } from "./company/istd/istdItems.typings";
3
5
  import { INestedDepartment } from "./department.typings";
4
6
  import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
5
7
  import { INestedGRN, INestedGRNItem } from "./grn.typings";
6
8
  import { INestedItem } from "./item.typings";
7
9
  import { INestedStoreLocation } from "./storeLocation.typings";
8
10
  import { INestedUser } from "./user.typings";
11
+ export declare enum MRN_PARENT_DOC_TYPE {
12
+ GRN = "GRN",
13
+ ISTD = "ISTD"
14
+ }
9
15
  export interface IMRNFilters {
10
16
  name?: string;
11
17
  company_id?: string;
@@ -24,7 +30,8 @@ export declare enum MRN_INCLUDE {
24
30
  contact_person = "contact_person",
25
31
  sent_for_approval_by = "sent_for_approval_by",
26
32
  approval_chain = "approval_chain",
27
- items = "items"
33
+ items = "items",
34
+ parent_istd = "parent_istd"
28
35
  }
29
36
  export declare enum MRN_STATUS {
30
37
  DRAFT = "DRAFT",
@@ -38,6 +45,8 @@ export interface IMRN {
38
45
  id: string;
39
46
  company_id: string;
40
47
  mrn_no: string;
48
+ parent_doc_type: MRN_PARENT_DOC_TYPE;
49
+ parent_istd_id: string | null;
41
50
  created_by_id: string;
42
51
  parent_grn_id: string | null;
43
52
  parent_department_id: string;
@@ -60,8 +69,9 @@ export interface IMRN {
60
69
  sent_for_approval_by: INestedUser | null;
61
70
  approval_chain: INestedEntityApprovalChainEntry | null;
62
71
  items: INestedMRNItem[] | null;
72
+ parent_istd: INestedISTD | null;
63
73
  }
64
- export interface INestedMRN extends Omit<IMRN, "company" | "parent_grn" | "parent_department" | "parent_store_location" | "contact_person" | "sent_for_approval_by" | "approval_chain" | "items"> {
74
+ export interface INestedMRN extends Omit<IMRN, "company" | "parent_grn" | "parent_department" | "parent_store_location" | "contact_person" | "sent_for_approval_by" | "approval_chain" | "items" | "parent_istd"> {
65
75
  }
66
76
  export declare enum MRN_ITEM_INCLUDE {
67
77
  parent_mrn = "parent_mrn",
@@ -81,6 +91,7 @@ export interface IMRNItem {
81
91
  actual_quantity: number;
82
92
  item_description: string | null;
83
93
  parent_grn_item_id: string | null;
94
+ parent_istd_item_id: string | null;
84
95
  is_deleted: boolean;
85
96
  deleted_at: string | null;
86
97
  created_at: string;
@@ -89,6 +100,7 @@ export interface IMRNItem {
89
100
  company: INestedCompany | null;
90
101
  item: INestedItem | null;
91
102
  parent_grn_item: INestedGRNItem | null;
103
+ parent_istd_item: INestedISTDItem | null;
92
104
  }
93
- export interface INestedMRNItem extends Omit<IMRNItem, "parent_mrn" | "company" | "item" | "parent_grn_item"> {
105
+ export interface INestedMRNItem extends Omit<IMRNItem, "parent_mrn" | "company" | "item" | "parent_grn_item" | "parent_istd_item"> {
94
106
  }
@@ -1,6 +1,11 @@
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;
3
+ exports.MRN_ITEM_INCLUDE = exports.MRN_STATUS = exports.MRN_INCLUDE = exports.MRN_PARENT_DOC_TYPE = void 0;
4
+ var MRN_PARENT_DOC_TYPE;
5
+ (function (MRN_PARENT_DOC_TYPE) {
6
+ MRN_PARENT_DOC_TYPE["GRN"] = "GRN";
7
+ MRN_PARENT_DOC_TYPE["ISTD"] = "ISTD";
8
+ })(MRN_PARENT_DOC_TYPE || (exports.MRN_PARENT_DOC_TYPE = MRN_PARENT_DOC_TYPE = {}));
4
9
  var MRN_INCLUDE;
5
10
  (function (MRN_INCLUDE) {
6
11
  MRN_INCLUDE["company"] = "company";
@@ -11,6 +16,7 @@ var MRN_INCLUDE;
11
16
  MRN_INCLUDE["sent_for_approval_by"] = "sent_for_approval_by";
12
17
  MRN_INCLUDE["approval_chain"] = "approval_chain";
13
18
  MRN_INCLUDE["items"] = "items";
19
+ MRN_INCLUDE["parent_istd"] = "parent_istd";
14
20
  })(MRN_INCLUDE || (exports.MRN_INCLUDE = MRN_INCLUDE = {}));
15
21
  var MRN_STATUS;
16
22
  (function (MRN_STATUS) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "9.2.13",
3
+ "version": "9.3.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",