kcommons 16.2.0 → 16.3.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.
@@ -40,6 +40,7 @@ export declare enum LIFECYCLE_LOG_ACTIONS {
40
40
  SENT_TO_COMPANY_FOR_APPROVAL = "SENT_TO_COMPANY_FOR_APPROVAL",
41
41
  ARRIVED = "ARRIVED",
42
42
  REQUESTED_AT_SHIPPING_LOCATION = "REQUESTED_AT_SHIPPING_LOCATION",
43
+ IN_TRANSIT = "IN_TRANSIT",
43
44
  AMENDED = "AMENDED"
44
45
  }
45
46
  export declare enum LIFECYCLE_LOGS_INCLUDE {
@@ -41,6 +41,7 @@ var LIFECYCLE_LOG_ACTIONS;
41
41
  LIFECYCLE_LOG_ACTIONS["SENT_TO_COMPANY_FOR_APPROVAL"] = "SENT_TO_COMPANY_FOR_APPROVAL";
42
42
  LIFECYCLE_LOG_ACTIONS["ARRIVED"] = "ARRIVED";
43
43
  LIFECYCLE_LOG_ACTIONS["REQUESTED_AT_SHIPPING_LOCATION"] = "REQUESTED_AT_SHIPPING_LOCATION";
44
+ LIFECYCLE_LOG_ACTIONS["IN_TRANSIT"] = "IN_TRANSIT";
44
45
  LIFECYCLE_LOG_ACTIONS["AMENDED"] = "AMENDED";
45
46
  })(LIFECYCLE_LOG_ACTIONS || (exports.LIFECYCLE_LOG_ACTIONS = LIFECYCLE_LOG_ACTIONS = {}));
46
47
  var LIFECYCLE_LOGS_INCLUDE;
@@ -62,8 +62,13 @@ export interface IIAD {
62
62
  }
63
63
  export interface INestedIAD extends Omit<IIAD, "company" | "item" | "store_location" | "created_by_user" | "last_updated_by_user" | "assigned_approver" | "finalised_by_user" | "terminated_by" | "inventory_logs"> {
64
64
  }
65
+ export declare enum IAD_LIST_TYPES {
66
+ ALL = "ALL",
67
+ MY_APPROVALS = "MY_APPROVALS"
68
+ }
65
69
  export interface IIADFilters extends Partial<Pick<IIAD, "store_location_id" | "item_id" | "is_approved" | "status">> {
66
70
  name?: string | null;
71
+ list_type?: IAD_LIST_TYPES;
67
72
  user_approvals?: boolean | null;
68
73
  include?: IAD_INCLUDE[] | null;
69
74
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IAD_INCLUDE = exports.IAD_STATUS = exports.IAD_TYPE = void 0;
3
+ exports.IAD_LIST_TYPES = exports.IAD_INCLUDE = exports.IAD_STATUS = exports.IAD_TYPE = void 0;
4
4
  var IAD_TYPE;
5
5
  (function (IAD_TYPE) {
6
6
  IAD_TYPE["STOCK_REDUCTION"] = "STOCK_REDUCTION";
@@ -24,3 +24,8 @@ var IAD_INCLUDE;
24
24
  IAD_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
25
25
  IAD_INCLUDE["inventory_logs"] = "inventory_logs";
26
26
  })(IAD_INCLUDE || (exports.IAD_INCLUDE = IAD_INCLUDE = {}));
27
+ var IAD_LIST_TYPES;
28
+ (function (IAD_LIST_TYPES) {
29
+ IAD_LIST_TYPES["ALL"] = "ALL";
30
+ IAD_LIST_TYPES["MY_APPROVALS"] = "MY_APPROVALS";
31
+ })(IAD_LIST_TYPES || (exports.IAD_LIST_TYPES = IAD_LIST_TYPES = {}));
@@ -3,9 +3,12 @@ import { INestedCompany } from "./company.typings";
3
3
  import { INestedPo } from "./company/masters/po.typings";
4
4
  import { INestedDocumentTaxes } from "./documentTaxes.typings";
5
5
  import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
6
+ import { INestedItem } from "./item.typings";
6
7
  import { INestedMRN } from "./mrn.typings";
8
+ import { INestedStoreLocation } from "./storeLocation.typings";
7
9
  import { INestedSubPOItem } from "./subPOItem.typings";
8
10
  import { INestedUser } from "./user.typings";
11
+ import { INestedVendor } from "./vendor.typings";
9
12
  export declare enum SUB_PO_STATUS {
10
13
  DRAFT = "DRAFT",
11
14
  PENDING_APPROVAL = "PENDING_APPROVAL",
@@ -24,10 +27,16 @@ export declare enum SUB_PO_INCLUDES {
24
27
  approval_chain = "approval_chain",
25
28
  mrns_resolved = "mrns_resolved"
26
29
  }
30
+ export declare enum SUB_PO_METAFIELDS_INCLUDE {
31
+ items_data = "items_data",
32
+ vendor_data = "vendor_data",
33
+ shipping_locatin_data = "shipping_locatin_data"
34
+ }
27
35
  interface ISubPOFiltersBase {
28
36
  name?: string;
29
37
  parent_po_id?: string;
30
38
  include?: SUB_PO_INCLUDES[];
39
+ metafields_include?: SUB_PO_METAFIELDS_INCLUDE[];
31
40
  }
32
41
  export interface ISubPOFilters extends ISubPOFiltersBase {
33
42
  child_mrn_ids?: string[];
@@ -38,6 +47,11 @@ export interface ISubPOFiltersForVendor extends ISubPOFiltersBase {
38
47
  }
39
48
  export interface ISubPOFiltersForVendorWithPagination extends ISubPOFiltersForVendor, IPaginationFilters {
40
49
  }
50
+ export interface ISubPOMetafields {
51
+ items_data: INestedItem[] | null;
52
+ vendor_data: INestedVendor | null;
53
+ shipping_location_data: INestedStoreLocation | null;
54
+ }
41
55
  export interface ISubPO {
42
56
  id: string;
43
57
  company_id: string;
@@ -66,7 +80,8 @@ export interface ISubPO {
66
80
  taxes: INestedDocumentTaxes[] | null;
67
81
  approval_chain: INestedEntityApprovalChainEntry[] | null;
68
82
  mrns_resolved: INestedMRN[] | null;
83
+ metafields: ISubPOMetafields | null;
69
84
  }
70
- export interface INestedSubPO extends Omit<ISubPO, "company" | "parent_po" | "created_by_user" | "last_updated_by_user" | "sent_for_approval_by_user" | "sent_to_vendor_by_user" | "items" | "taxes" | "approval_chain" | "mrns_resolved"> {
85
+ export interface INestedSubPO extends Omit<ISubPO, "company" | "parent_po" | "created_by_user" | "last_updated_by_user" | "sent_for_approval_by_user" | "sent_to_vendor_by_user" | "items" | "taxes" | "approval_chain" | "mrns_resolved" | "metafields"> {
71
86
  }
72
87
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SUB_PO_INCLUDES = exports.SUB_PO_STATUS = void 0;
3
+ exports.SUB_PO_METAFIELDS_INCLUDE = exports.SUB_PO_INCLUDES = exports.SUB_PO_STATUS = void 0;
4
4
  var SUB_PO_STATUS;
5
5
  (function (SUB_PO_STATUS) {
6
6
  SUB_PO_STATUS["DRAFT"] = "DRAFT";
@@ -21,3 +21,9 @@ var SUB_PO_INCLUDES;
21
21
  SUB_PO_INCLUDES["approval_chain"] = "approval_chain";
22
22
  SUB_PO_INCLUDES["mrns_resolved"] = "mrns_resolved";
23
23
  })(SUB_PO_INCLUDES || (exports.SUB_PO_INCLUDES = SUB_PO_INCLUDES = {}));
24
+ var SUB_PO_METAFIELDS_INCLUDE;
25
+ (function (SUB_PO_METAFIELDS_INCLUDE) {
26
+ SUB_PO_METAFIELDS_INCLUDE["items_data"] = "items_data";
27
+ SUB_PO_METAFIELDS_INCLUDE["vendor_data"] = "vendor_data";
28
+ SUB_PO_METAFIELDS_INCLUDE["shipping_locatin_data"] = "shipping_locatin_data";
29
+ })(SUB_PO_METAFIELDS_INCLUDE || (exports.SUB_PO_METAFIELDS_INCLUDE = SUB_PO_METAFIELDS_INCLUDE = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "16.2.0",
3
+ "version": "16.3.1",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",