kcommons 5.8.4 → 5.8.6

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,15 @@ 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?: string;
22
+ department_id: string;
23
+ include?: GRN_INCLUDE[];
24
+ }
25
+ export interface IGRNFiltersWithPagination extends IPaginationFilters, IGRNFilters {
26
+ }
17
27
  export interface IGRN {
18
28
  id: string;
19
29
  grn_no: string;
@@ -41,8 +51,6 @@ export interface IGRN {
41
51
  }
42
52
  export interface INestedGRN extends Omit<IGRN, "company" | "shipping_store_location" | "department" | "parent_asn" | "contact_person" | "items" | "approval_chain"> {
43
53
  }
44
- export interface INestedGRN extends Omit<IGRN, "approval_configs" | "departments" | "roles" | "target_store_locations"> {
45
- }
46
54
  export declare enum GRN_ITEM_INCLUDE {
47
55
  company = "company",
48
56
  parent_grn = "parent_grn",
@@ -1,6 +1,8 @@
1
1
  import { INestedApprovalConfig } from "./approvalConfig.typings";
2
+ import { INestedASN } from "./asn.typings";
2
3
  import { INestedCompany } from "./company.typings";
3
4
  import { INestedDepartment } from "./department.typings";
5
+ import { INestedGate } from "./gate.typings";
4
6
  import { INestedGRN } from "./grn.typings";
5
7
  import { INestedIndent } from "./indent.typings";
6
8
  import { INestedMI } from "./mi.typings";
@@ -36,11 +38,13 @@ export interface IStoreLocation extends IAddress {
36
38
  as_shipping_location_for_rfqs?: null | INestedRFQ[];
37
39
  as_shipping_location_for_quotes?: null | INestedQuote[];
38
40
  target_offices?: null | INestedOffice[];
41
+ served_by_gates?: null | INestedGate[];
39
42
  served_by_purchase_locations?: null | INestedPurchaseLocation[];
40
43
  as_shipping_location_for_pos?: null | INestedPo[];
41
44
  as_shipping_location_for_grns?: null | INestedGRN[];
45
+ as_shipping_location_for_asns?: null | INestedASN[];
42
46
  }
43
- export interface INestedStoreLocation extends Omit<IStoreLocation, "company" | "store_incharge" | "approval_configs" | "inventory_entries" | "departments" | "roles" | "indents" | "mis" | "as_shipping_location_for_rfqs" | "as_shipping_location_for_quotes" | "target_offices" | "served_by_purchase_locations" | "as_shipping_location_for_pos" | "as_shipping_location_for_grns"> {
47
+ export interface INestedStoreLocation extends Omit<IStoreLocation, "company" | "store_incharge" | "approval_configs" | "inventory_entries" | "departments" | "roles" | "indents" | "mis" | "as_shipping_location_for_rfqs" | "as_shipping_location_for_quotes" | "target_offices" | "served_by_gates" | "served_by_purchase_locations" | "as_shipping_location_for_pos" | "as_shipping_location_for_grns" | "as_shipping_location_for_asns"> {
44
48
  }
45
49
  export declare enum StoreLocationInclude {
46
50
  company = "company",
@@ -54,7 +58,9 @@ export declare enum StoreLocationInclude {
54
58
  as_shipping_location_for_rfqs = "as_shipping_location_for_rfqs",
55
59
  as_shipping_location_for_quotes = "as_shipping_location_for_quotes",
56
60
  target_offices = "target_offices",
61
+ served_by_gates = "served_by_gates",
57
62
  served_by_purchase_locations = "served_by_purchase_locations",
58
63
  as_shipping_location_for_pos = "as_shipping_location_for_pos",
59
- as_shipping_location_for_grns = "as_shipping_location_for_grns"
64
+ as_shipping_location_for_grns = "as_shipping_location_for_grns",
65
+ as_shipping_location_for_asns = "as_shipping_location_for_asns"
60
66
  }
@@ -14,7 +14,9 @@ var StoreLocationInclude;
14
14
  StoreLocationInclude["as_shipping_location_for_rfqs"] = "as_shipping_location_for_rfqs";
15
15
  StoreLocationInclude["as_shipping_location_for_quotes"] = "as_shipping_location_for_quotes";
16
16
  StoreLocationInclude["target_offices"] = "target_offices";
17
+ StoreLocationInclude["served_by_gates"] = "served_by_gates";
17
18
  StoreLocationInclude["served_by_purchase_locations"] = "served_by_purchase_locations";
18
19
  StoreLocationInclude["as_shipping_location_for_pos"] = "as_shipping_location_for_pos";
19
20
  StoreLocationInclude["as_shipping_location_for_grns"] = "as_shipping_location_for_grns";
21
+ StoreLocationInclude["as_shipping_location_for_asns"] = "as_shipping_location_for_asns";
20
22
  })(StoreLocationInclude || (exports.StoreLocationInclude = StoreLocationInclude = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.8.4",
3
+ "version": "5.8.6",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",