kcommons 5.8.8 → 5.8.10

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.
@@ -13,13 +13,16 @@ export declare enum GRN_INCLUDE {
13
13
  parent_asn = "parent_asn",
14
14
  contact_person = "contact_person",
15
15
  items = "items",
16
- approval_chain = "approval_chain"
16
+ approval_chain = "approval_chain",
17
+ sent_for_approval_by = "sent_for_approval_by",
18
+ sent_to_store_by = "sent_to_store_by"
17
19
  }
18
20
  export interface IGRNFilters {
19
21
  company_id?: string;
20
22
  parent_asn_id?: string;
21
23
  shipping_store_location_id?: string;
22
24
  department_id: string;
25
+ status?: GRN_STATUS;
23
26
  include?: GRN_INCLUDE[];
24
27
  }
25
28
  export declare enum GRN_STATUS {
@@ -53,10 +56,12 @@ export interface IGRN {
53
56
  department?: INestedDepartment | null;
54
57
  parent_asn?: INestedASN | null;
55
58
  contact_person?: INestedUser | null;
56
- items?: [];
59
+ items?: INestedGRNItem[] | null;
57
60
  approval_chain?: INestedEntityApprovalChainEntry[] | null;
61
+ sent_for_approval_by?: INestedUser | null;
62
+ sent_to_store_by?: INestedUser | null;
58
63
  }
59
- export interface INestedGRN extends Omit<IGRN, "company" | "shipping_store_location" | "department" | "parent_asn" | "contact_person" | "items" | "approval_chain"> {
64
+ 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"> {
60
65
  }
61
66
  export declare enum GRN_ITEM_INCLUDE {
62
67
  company = "company",
@@ -10,6 +10,8 @@ var GRN_INCLUDE;
10
10
  GRN_INCLUDE["contact_person"] = "contact_person";
11
11
  GRN_INCLUDE["items"] = "items";
12
12
  GRN_INCLUDE["approval_chain"] = "approval_chain";
13
+ GRN_INCLUDE["sent_for_approval_by"] = "sent_for_approval_by";
14
+ GRN_INCLUDE["sent_to_store_by"] = "sent_to_store_by";
13
15
  })(GRN_INCLUDE || (exports.GRN_INCLUDE = GRN_INCLUDE = {}));
14
16
  var GRN_STATUS;
15
17
  (function (GRN_STATUS) {
@@ -66,8 +66,10 @@ export interface IUser {
66
66
  as_contact_person_for_pos?: null | INestedPo[];
67
67
  pos_sent_for_approval?: null | INestedPo[];
68
68
  pos_sent_to_vendors?: null | INestedPo[];
69
+ grns_sent_for_approval?: INestedGRN[] | null;
70
+ grns_sent_to_store?: INestedGRN[] | null;
69
71
  }
70
- export interface INestedUser extends Omit<IUser, "reporting_to" | "active_company" | "active_role" | "subordinates" | "otps" | "as_incharge_in_purchase_locations" | "as_incharge_in_store_locations" | "as_incharge_in_offices" | "as_incharge_in_gates" | "as_contact_person_companies" | "as_contact_person_offices" | "as_contact_person_gates" | "as_contact_person_for_grns" | "owned_companies" | "head_for_departments" | "approved_items" | "approval_chains" | "created_indents" | "created_mis" | "created_prs" | "created_rfqs" | "entity_approval_chains" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "assigned_roles" | "negotiations" | "created_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors"> {
72
+ export interface INestedUser extends Omit<IUser, "reporting_to" | "active_company" | "active_role" | "subordinates" | "otps" | "as_incharge_in_purchase_locations" | "as_incharge_in_store_locations" | "as_incharge_in_offices" | "as_incharge_in_gates" | "as_contact_person_companies" | "as_contact_person_offices" | "as_contact_person_gates" | "as_contact_person_for_grns" | "owned_companies" | "head_for_departments" | "approved_items" | "approval_chains" | "created_indents" | "created_mis" | "created_prs" | "created_rfqs" | "entity_approval_chains" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "assigned_roles" | "negotiations" | "created_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "grns_sent_for_approval" | "grns_sent_to_store"> {
71
73
  }
72
74
  export declare enum UserInclude {
73
75
  as_incharge_in_purchase_locations = "as_incharge_in_purchase_locations",
@@ -87,5 +89,7 @@ export declare enum UserInclude {
87
89
  created_pos = "created_pos",
88
90
  as_contact_person_for_pos = "as_contact_person_for_pos",
89
91
  pos_sent_for_approval = "pos_sent_for_approval",
90
- pos_sent_to_vendors = "pos_sent_to_vendors"
92
+ pos_sent_to_vendors = "pos_sent_to_vendors",
93
+ grns_sent_for_approval = "grns_sent_for_approval",
94
+ grns_sent_to_store = "grns_sent_to_store"
91
95
  }
@@ -22,4 +22,6 @@ var UserInclude;
22
22
  UserInclude["as_contact_person_for_pos"] = "as_contact_person_for_pos";
23
23
  UserInclude["pos_sent_for_approval"] = "pos_sent_for_approval";
24
24
  UserInclude["pos_sent_to_vendors"] = "pos_sent_to_vendors";
25
+ UserInclude["grns_sent_for_approval"] = "grns_sent_for_approval";
26
+ UserInclude["grns_sent_to_store"] = "grns_sent_to_store";
25
27
  })(UserInclude || (exports.UserInclude = UserInclude = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.8.8",
3
+ "version": "5.8.10",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",