kcommons 5.2.6 → 5.2.8

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.
@@ -6,7 +6,9 @@ import { INestedItem } from "./item.typings";
6
6
  import { INestedItemCategory } from "./itemCategory.typings";
7
7
  import { IItemSubcategory } from "./itemSubcategory.typings";
8
8
  import { INestedMI, INestedMIItem } from "./mi.typings";
9
+ import { INestedNegotiation } from "./negotiation.typings";
9
10
  import { INestedOffice } from "./offices.typings";
11
+ import { INestedPo } from "./po.typings";
10
12
  import { INestedPR, INestedPrItem } from "./pr.typings";
11
13
  import { INestedPurchaseLocation } from "./purchaseLocation.typings";
12
14
  import { INestedQuote } from "./quote.typings";
@@ -67,8 +69,10 @@ export interface ICompany {
67
69
  company_rfqs?: null | INestedRFQ[];
68
70
  company_quotes?: null | INestedQuote[];
69
71
  entity_approval_chain_entries?: null | INestedApprovalChainEntry[];
72
+ company_negotiations?: null | INestedNegotiation[];
73
+ company_pos?: null | INestedPo[];
70
74
  }
71
- export interface INestedCompany extends Omit<ICompany, "associated_purchase_locations" | "associated_vendors" | "associated_permissions" | "associated_roles" | "approval_configs" | "subdepartments" | "subcategories" | "categories" | "items" | "offices" | "stores" | "employees" | "departments" | "vendor_groups" | "company_indents" | "indent_items" | "company_mis" | "mi_items" | "company_prs" | "pr_items" | "company_rfqs" | "company_quotes" | "entity_approval_chain_entries"> {
75
+ export interface INestedCompany extends Omit<ICompany, "associated_purchase_locations" | "associated_vendors" | "associated_permissions" | "associated_roles" | "approval_configs" | "subdepartments" | "subcategories" | "categories" | "items" | "offices" | "stores" | "employees" | "departments" | "vendor_groups" | "company_indents" | "indent_items" | "company_mis" | "mi_items" | "company_prs" | "pr_items" | "company_rfqs" | "company_quotes" | "entity_approval_chain_entries" | "company_negotiations" | "company_pos"> {
72
76
  }
73
77
  export declare enum COMPANY_INCLUDE {
74
78
  associated_purchase_locations = "associated_purchase_locations",
@@ -93,5 +97,7 @@ export declare enum COMPANY_INCLUDE {
93
97
  pr_items = "pr_items",
94
98
  company_rfqs = "company_rfqs",
95
99
  company_quotes = "company_quotes",
96
- entity_approval_chain_entries = "entity_approval_chain_entries"
100
+ entity_approval_chain_entries = "entity_approval_chain_entries",
101
+ company_negotiations = "company_negotiations",
102
+ company_pos = "company_pos"
97
103
  }
@@ -26,4 +26,6 @@ var COMPANY_INCLUDE;
26
26
  COMPANY_INCLUDE["company_rfqs"] = "company_rfqs";
27
27
  COMPANY_INCLUDE["company_quotes"] = "company_quotes";
28
28
  COMPANY_INCLUDE["entity_approval_chain_entries"] = "entity_approval_chain_entries";
29
+ COMPANY_INCLUDE["company_negotiations"] = "company_negotiations";
30
+ COMPANY_INCLUDE["company_pos"] = "company_pos";
29
31
  })(COMPANY_INCLUDE = exports.COMPANY_INCLUDE || (exports.COMPANY_INCLUDE = {}));
@@ -4,6 +4,7 @@ import { INestedDepartment } from "./department.typings";
4
4
  import { INestedIndent } from "./indent.typings";
5
5
  import { INestedMI } from "./mi.typings";
6
6
  import { INestedOffice } from "./offices.typings";
7
+ import { INestedPo } from "./po.typings";
7
8
  import { INestedPurchaseLocation } from "./purchaseLocation.typings";
8
9
  import { INestedRFQ } from "./rfq.typings";
9
10
  import { INestedRole } from "./roles.typings";
@@ -38,14 +39,21 @@ export interface IStoreLocation {
38
39
  as_shipping_location_for_rfqs?: null | INestedRFQ[];
39
40
  target_offices?: null | INestedOffice[];
40
41
  served_by_purchase_locations?: null | INestedPurchaseLocation[];
42
+ as_shipping_location_for_pos?: null | INestedPo[];
41
43
  }
42
- export interface INestedStoreLocation extends Omit<IStoreLocation, "company" | "store_incharge" | "approval_configs" | "inventory_entries" | "departments" | "roles" | "indents" | "mis" | "as_shipping_location_for_rfqs" | "target_offices" | "served_by_purchase_locations"> {
44
+ export interface INestedStoreLocation extends Omit<IStoreLocation, "company" | "store_incharge" | "approval_configs" | "inventory_entries" | "departments" | "roles" | "indents" | "mis" | "as_shipping_location_for_rfqs" | "target_offices" | "served_by_purchase_locations" | "as_shipping_location_for_pos"> {
43
45
  }
44
46
  export declare enum StoreLocationInclude {
47
+ company = "company",
48
+ store_incharge = "store_incharge",
45
49
  approval_configs = "approval_configs",
46
50
  inventory_entries = "inventory_entries",
47
51
  departments = "departments",
48
52
  roles = "roles",
53
+ indents = "indents",
54
+ mis = "mis",
55
+ as_shipping_location_for_rfqs = "as_shipping_location_for_rfqs",
49
56
  target_offices = "target_offices",
50
- served_by_purchase_locations = "served_by_purchase_locations"
57
+ served_by_purchase_locations = "served_by_purchase_locations",
58
+ as_shipping_location_for_pos = "as_shipping_location_for_pos"
51
59
  }
@@ -3,10 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StoreLocationInclude = void 0;
4
4
  var StoreLocationInclude;
5
5
  (function (StoreLocationInclude) {
6
+ StoreLocationInclude["company"] = "company";
7
+ StoreLocationInclude["store_incharge"] = "store_incharge";
6
8
  StoreLocationInclude["approval_configs"] = "approval_configs";
7
9
  StoreLocationInclude["inventory_entries"] = "inventory_entries";
8
10
  StoreLocationInclude["departments"] = "departments";
9
11
  StoreLocationInclude["roles"] = "roles";
12
+ StoreLocationInclude["indents"] = "indents";
13
+ StoreLocationInclude["mis"] = "mis";
14
+ StoreLocationInclude["as_shipping_location_for_rfqs"] = "as_shipping_location_for_rfqs";
10
15
  StoreLocationInclude["target_offices"] = "target_offices";
11
16
  StoreLocationInclude["served_by_purchase_locations"] = "served_by_purchase_locations";
17
+ StoreLocationInclude["as_shipping_location_for_pos"] = "as_shipping_location_for_pos";
12
18
  })(StoreLocationInclude = exports.StoreLocationInclude || (exports.StoreLocationInclude = {}));
@@ -5,11 +5,13 @@ import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typi
5
5
  import { INestedIndent } from "./indent.typings";
6
6
  import { INestedItem } from "./item.typings";
7
7
  import { INestedMI } from "./mi.typings";
8
+ import { INestedNegotiation } from "./negotiation.typings";
8
9
  import { INestedOffice } from "./offices.typings";
10
+ import { INestedPo } from "./po.typings";
9
11
  import { INestedPR } from "./pr.typings";
10
12
  import { INestedPurchaseLocation } from "./purchaseLocation.typings";
11
13
  import { INestedRFQ } from "./rfq.typings";
12
- import { INestedRole, IRoles } from "./roles.typings";
14
+ import { INestedRole } from "./roles.typings";
13
15
  import { INestedStoreLocation } from "./storeLocation.typings";
14
16
  export interface IUser {
15
17
  id: string;
@@ -53,9 +55,14 @@ export interface IUser {
53
55
  rfqs_sent_for_approval?: null | INestedRFQ[];
54
56
  rfqs_sent_to_vendors?: null | INestedRFQ[];
55
57
  created_rfq_items?: null | INestedRFQ[];
56
- assigned_roles?: null | IRoles[];
58
+ assigned_roles?: null | INestedRole[];
59
+ negotiations?: null | INestedNegotiation[];
60
+ created_pos?: null | INestedPo[];
61
+ as_contact_person_for_pos?: null | INestedPo[];
62
+ pos_sent_for_approval?: null | INestedPo[];
63
+ pos_sent_to_vendors?: null | INestedPo[];
57
64
  }
58
- 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_contact_person_companies" | "as_contact_person_offices" | "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"> {
65
+ 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_contact_person_companies" | "as_contact_person_offices" | "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"> {
59
66
  }
60
67
  export declare enum UserInclude {
61
68
  as_incharge_in_purchase_locations = "as_incharge_in_purchase_locations",
@@ -67,5 +74,10 @@ export declare enum UserInclude {
67
74
  head_for_departments = "head_for_departments",
68
75
  approved_items = "approved_items",
69
76
  approval_chains = "approval_chains",
70
- assigned_roles = "assigned_roles"
77
+ assigned_roles = "assigned_roles",
78
+ negotiations = "negotiations",
79
+ created_pos = "created_pos",
80
+ as_contact_person_for_pos = "as_contact_person_for_pos",
81
+ pos_sent_for_approval = "pos_sent_for_approval",
82
+ pos_sent_to_vendors = "pos_sent_to_vendors"
71
83
  }
@@ -14,4 +14,9 @@ var UserInclude;
14
14
  UserInclude["approved_items"] = "approved_items";
15
15
  UserInclude["approval_chains"] = "approval_chains";
16
16
  UserInclude["assigned_roles"] = "assigned_roles";
17
+ UserInclude["negotiations"] = "negotiations";
18
+ UserInclude["created_pos"] = "created_pos";
19
+ UserInclude["as_contact_person_for_pos"] = "as_contact_person_for_pos";
20
+ UserInclude["pos_sent_for_approval"] = "pos_sent_for_approval";
21
+ UserInclude["pos_sent_to_vendors"] = "pos_sent_to_vendors";
17
22
  })(UserInclude = exports.UserInclude || (exports.UserInclude = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.2.6",
3
+ "version": "5.2.8",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",