kcommons 5.8.5 → 5.8.7

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,4 +1,5 @@
1
1
  import { INestedASN, INestedASNItem } from "./asn.typings";
2
+ import { IPaginationFilters } from "./common/paginationFilters.typings";
2
3
  import { INestedCompany } from "./company.typings";
3
4
  import { INestedDepartment } from "./department.typings";
4
5
  import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
@@ -14,6 +15,22 @@ export declare enum GRN_INCLUDE {
14
15
  items = "items",
15
16
  approval_chain = "approval_chain"
16
17
  }
18
+ export interface IGRNFilters {
19
+ company_id?: string;
20
+ parent_asn_id?: string;
21
+ shipping_store_location_id?: string;
22
+ department_id: string;
23
+ include?: GRN_INCLUDE[];
24
+ }
25
+ export declare enum GRN_STATUS {
26
+ DRAFT = "DRAFT",
27
+ PENDING_APPROVAL = "PENDING APPROVAL",
28
+ APPROVED = "APPROVED",
29
+ REJECTED = "REJECTED",
30
+ CLOSED = "CLOSED"
31
+ }
32
+ export interface IGRNFiltersWithPagination extends IPaginationFilters, IGRNFilters {
33
+ }
17
34
  export interface IGRN {
18
35
  id: string;
19
36
  grn_no: string;
@@ -41,8 +58,6 @@ export interface IGRN {
41
58
  }
42
59
  export interface INestedGRN extends Omit<IGRN, "company" | "shipping_store_location" | "department" | "parent_asn" | "contact_person" | "items" | "approval_chain"> {
43
60
  }
44
- export interface INestedGRN extends Omit<IGRN, "approval_configs" | "departments" | "roles" | "target_store_locations"> {
45
- }
46
61
  export declare enum GRN_ITEM_INCLUDE {
47
62
  company = "company",
48
63
  parent_grn = "parent_grn",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GRN_ITEM_INCLUDE = exports.GRN_INCLUDE = void 0;
3
+ exports.GRN_ITEM_INCLUDE = exports.GRN_STATUS = exports.GRN_INCLUDE = void 0;
4
4
  var GRN_INCLUDE;
5
5
  (function (GRN_INCLUDE) {
6
6
  GRN_INCLUDE["company"] = "company";
@@ -11,6 +11,14 @@ var GRN_INCLUDE;
11
11
  GRN_INCLUDE["items"] = "items";
12
12
  GRN_INCLUDE["approval_chain"] = "approval_chain";
13
13
  })(GRN_INCLUDE || (exports.GRN_INCLUDE = GRN_INCLUDE = {}));
14
+ var GRN_STATUS;
15
+ (function (GRN_STATUS) {
16
+ GRN_STATUS["DRAFT"] = "DRAFT";
17
+ GRN_STATUS["PENDING_APPROVAL"] = "PENDING APPROVAL";
18
+ GRN_STATUS["APPROVED"] = "APPROVED";
19
+ GRN_STATUS["REJECTED"] = "REJECTED";
20
+ GRN_STATUS["CLOSED"] = "CLOSED";
21
+ })(GRN_STATUS || (exports.GRN_STATUS = GRN_STATUS = {}));
14
22
  var GRN_ITEM_INCLUDE;
15
23
  (function (GRN_ITEM_INCLUDE) {
16
24
  GRN_ITEM_INCLUDE["company"] = "company";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.8.5",
3
+ "version": "5.8.7",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",