kcommons 6.2.13 → 6.2.15

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,10 +1,12 @@
1
1
  import { IPaginationFilters } from "./common/paginationFilters.typings";
2
2
  import { INestedCompany } from "./company.typings";
3
+ import { INestedPo } from "./po.typings";
3
4
  import { INestedUser } from "./user.typings";
4
5
  export declare enum CONTACT_PEOPLE_INCLUDE {
5
6
  created_by_user = "created_by_user",
6
7
  updated_by_user = "updated_by_user",
7
- company = "company"
8
+ company = "company",
9
+ referred_pos = "referred_pos"
8
10
  }
9
11
  export interface IContactPeople {
10
12
  id: string;
@@ -23,8 +25,9 @@ export interface IContactPeople {
23
25
  created_by_user: INestedUser | null;
24
26
  updated_by_user: INestedUser | null;
25
27
  company: INestedCompany | null;
28
+ referred_pos: INestedPo[] | null;
26
29
  }
27
- export interface INestedContactPeople extends Omit<IContactPeople, "created_by_user" | "updated_by_user" | "company"> {
30
+ export interface INestedContactPeople extends Omit<IContactPeople, "created_by_user" | "updated_by_user" | "company" | "referred_pos"> {
28
31
  }
29
32
  export interface IContactPeopleFilters extends Partial<Pick<IContactPeople, "is_enabled">> {
30
33
  name?: string;
@@ -32,3 +35,7 @@ export interface IContactPeopleFilters extends Partial<Pick<IContactPeople, "is_
32
35
  }
33
36
  export interface IContactPeopleFiltersWithPagination extends IContactPeopleFilters, IPaginationFilters {
34
37
  }
38
+ export declare enum CONTACT_PERSON_TYPE {
39
+ COMPANY_USER = "COMPANY_USER",
40
+ EXTERNAL_USER = "EXTERNAL_USER"
41
+ }
@@ -1,9 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CONTACT_PEOPLE_INCLUDE = void 0;
3
+ exports.CONTACT_PERSON_TYPE = exports.CONTACT_PEOPLE_INCLUDE = void 0;
4
4
  var CONTACT_PEOPLE_INCLUDE;
5
5
  (function (CONTACT_PEOPLE_INCLUDE) {
6
6
  CONTACT_PEOPLE_INCLUDE["created_by_user"] = "created_by_user";
7
7
  CONTACT_PEOPLE_INCLUDE["updated_by_user"] = "updated_by_user";
8
8
  CONTACT_PEOPLE_INCLUDE["company"] = "company";
9
+ CONTACT_PEOPLE_INCLUDE["referred_pos"] = "referred_pos";
9
10
  })(CONTACT_PEOPLE_INCLUDE || (exports.CONTACT_PEOPLE_INCLUDE = CONTACT_PEOPLE_INCLUDE = {}));
11
+ var CONTACT_PERSON_TYPE;
12
+ (function (CONTACT_PERSON_TYPE) {
13
+ CONTACT_PERSON_TYPE["COMPANY_USER"] = "COMPANY_USER";
14
+ CONTACT_PERSON_TYPE["EXTERNAL_USER"] = "EXTERNAL_USER";
15
+ })(CONTACT_PERSON_TYPE || (exports.CONTACT_PERSON_TYPE = CONTACT_PERSON_TYPE = {}));
@@ -3,6 +3,7 @@ import { IPaginationFilters } from "./common/paginationFilters.typings";
3
3
  import { INestedCompany } from "./company.typings";
4
4
  import { INestedCompanyVendors } from "./companyVendors.typings";
5
5
  import { INestedComparative, INestedComparativeItem } from "./comparative.typings";
6
+ import { CONTACT_PERSON_TYPE, INestedContactPeople } from "./contactPeople.typings";
6
7
  import { ITaxRelatedItemInputs } from "./docItems.typings";
7
8
  import { INestedDocumentTaxes } from "./documentTaxes.typings";
8
9
  import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
@@ -56,7 +57,9 @@ export interface IPurchaseOrder {
56
57
  created_by_user_id: string;
57
58
  company_vendor_id: string;
58
59
  vendor_id: string | null;
59
- contact_person_id: string;
60
+ contact_person_type: CONTACT_PERSON_TYPE;
61
+ contact_person_id: string | null;
62
+ external_contact_person_id: string | null;
60
63
  status: string;
61
64
  sent_for_approval_by_id: string | null;
62
65
  sent_to_vendor_by_id: string | null;
@@ -81,6 +84,7 @@ export interface IPurchaseOrder {
81
84
  created_by_user: INestedUser | null;
82
85
  company_vendor: INestedCompanyVendors | null;
83
86
  contact_person: INestedUser | null;
87
+ external_contact_person: INestedContactPeople | null;
84
88
  sent_for_approval_by: INestedUser | null;
85
89
  sent_to_vendor_by: INestedUser | null;
86
90
  parent_quote: INestedQuote | null;
@@ -92,7 +96,7 @@ export interface IPurchaseOrder {
92
96
  vendor: INestedVendor | null;
93
97
  po_asn_items_junctions: INestedPOASNItemJunction[] | null;
94
98
  }
95
- export interface INestedPo extends Omit<IPurchaseOrder, "company" | "purchase_location" | "shipping_store_location" | "created_by_user" | "company_vendor" | "contact_person" | "sent_for_approval_by" | "sent_to_vendor_by" | "parent_quote" | "comparative" | "items" | "boms" | "approval_chain" | "taxes" | "vendor" | "po_asn_items_junctions"> {
99
+ export interface INestedPo extends Omit<IPurchaseOrder, "company" | "purchase_location" | "shipping_store_location" | "created_by_user" | "company_vendor" | "contact_person" | "external_contact_person" | "sent_for_approval_by" | "sent_to_vendor_by" | "parent_quote" | "comparative" | "items" | "boms" | "approval_chain" | "taxes" | "vendor" | "po_asn_items_junctions"> {
96
100
  }
97
101
  export declare enum PO_INCLUDE {
98
102
  company = "company",
@@ -100,6 +104,7 @@ export declare enum PO_INCLUDE {
100
104
  created_by_user = "created_by_user",
101
105
  company_vendor = "company_vendor",
102
106
  contact_person = "contact_person",
107
+ external_contact_person = "external_contact_person",
103
108
  sent_for_approval_by = "sent_for_approval_by",
104
109
  sent_to_vendor_by = "sent_to_vendor_by",
105
110
  parent_quote = "parent_quote",
@@ -32,6 +32,7 @@ var PO_INCLUDE;
32
32
  PO_INCLUDE["company_vendor"] = "company_vendor";
33
33
  // vendor = "vendor",
34
34
  PO_INCLUDE["contact_person"] = "contact_person";
35
+ PO_INCLUDE["external_contact_person"] = "external_contact_person";
35
36
  PO_INCLUDE["sent_for_approval_by"] = "sent_for_approval_by";
36
37
  PO_INCLUDE["sent_to_vendor_by"] = "sent_to_vendor_by";
37
38
  PO_INCLUDE["parent_quote"] = "parent_quote";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "6.2.13",
3
+ "version": "6.2.15",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",