kcommons 5.3.10 → 5.3.12

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.
package/build/index.d.ts CHANGED
@@ -33,3 +33,4 @@ export * from "./constants/form.constants";
33
33
  export * from "./typings/quote.typings";
34
34
  export * from "./typings/common/paginationFilters.typings";
35
35
  export * from "./classes/asnWrapper.class";
36
+ export * from "./typings/utils/address.typings";
package/build/index.js CHANGED
@@ -54,3 +54,5 @@ __exportStar(require("./typings/quote.typings"), exports);
54
54
  __exportStar(require("./typings/common/paginationFilters.typings"), exports);
55
55
  // Classe
56
56
  __exportStar(require("./classes/asnWrapper.class"), exports);
57
+ // Utils
58
+ __exportStar(require("./typings/utils/address.typings"), exports);
@@ -5,7 +5,8 @@ import { INestedPurchaseLocation } from "./purchaseLocation.typings";
5
5
  import { INestedRole } from "./roles.typings";
6
6
  import { INestedStoreLocation } from "./storeLocation.typings";
7
7
  import { INestedUser } from "./user.typings";
8
- export interface IOffice {
8
+ import { IAddress } from "./utils/address.typings";
9
+ export interface IOffice extends IAddress {
9
10
  id: string;
10
11
  office_name: string;
11
12
  office_code: string;
@@ -14,12 +15,6 @@ export interface IOffice {
14
15
  is_deleted: boolean;
15
16
  is_enabled: boolean;
16
17
  primary_contact_person_id?: string;
17
- pincode?: string;
18
- area?: string;
19
- state?: string;
20
- city?: string;
21
- country?: string;
22
- address?: string;
23
18
  deleted_at?: string;
24
19
  created_at: string;
25
20
  updated_at: string;
@@ -5,6 +5,8 @@ import { INestedItem } from "./item.typings";
5
5
  import { INestedNegotiation } from "./negotiation.typings";
6
6
  import { INestedPo } from "./po.typings";
7
7
  import { INestedRFQ, INestedRFQItem } from "./rfq.typings";
8
+ import { INestedStoreLocation } from "./storeLocation.typings";
9
+ import { INestedUser } from "./user.typings";
8
10
  import { INestedVendor } from "./vendor.typings";
9
11
  export declare enum QUOTE_TYPE {
10
12
  RFQ_ASCENDANT = "RFQ_ASCENDANT",
@@ -16,6 +18,8 @@ export declare enum QUOTE_STATUS {
16
18
  }
17
19
  export declare enum QUOTE_INCLUDES {
18
20
  parent_rfq = "parent_rfq",
21
+ contact_person = "contact_person",
22
+ shipping_store_location = "shipping_store_location",
19
23
  vendor = "vendor",
20
24
  company = "company",
21
25
  taxes = "taxes",
@@ -31,6 +35,8 @@ export interface IQuote {
31
35
  id: string;
32
36
  quote_type: QUOTE_TYPE;
33
37
  rfq_id?: string | null;
38
+ shipping_store_location_id?: string | null;
39
+ contact_person_id?: string | null;
34
40
  vendor_id: string;
35
41
  company_id: string;
36
42
  quote_no: string;
@@ -47,6 +53,8 @@ export interface IQuote {
47
53
  created_at?: string | null;
48
54
  updated_at?: string | null;
49
55
  parent_rfq: INestedRFQ | null;
56
+ contact_person: INestedUser | null;
57
+ shipping_store_location: INestedStoreLocation | null;
50
58
  vendor: INestedVendor | null;
51
59
  company: INestedCompany | null;
52
60
  items: INestedQuoteItems[] | null;
@@ -54,7 +62,7 @@ export interface IQuote {
54
62
  child_pos: INestedPo[] | null;
55
63
  negotiations: INestedNegotiation[] | null;
56
64
  }
57
- export interface INestedQuote extends Omit<IQuote, "parent_rfq" | "vendor" | "company" | "items" | "taxes" | "child_pos" | "negotiaitons"> {
65
+ export interface INestedQuote extends Omit<IQuote, "parent_rfq" | "vendor" | "shipping_store_location" | "contact_person" | "company" | "items" | "taxes" | "child_pos" | "negotiaitons"> {
58
66
  }
59
67
  export interface IQuoteItems extends ITaxRelatedItemInputs {
60
68
  quote_id: string;
@@ -14,6 +14,8 @@ var QUOTE_STATUS;
14
14
  var QUOTE_INCLUDES;
15
15
  (function (QUOTE_INCLUDES) {
16
16
  QUOTE_INCLUDES["parent_rfq"] = "parent_rfq";
17
+ QUOTE_INCLUDES["contact_person"] = "contact_person";
18
+ QUOTE_INCLUDES["shipping_store_location"] = "shipping_store_location";
17
19
  QUOTE_INCLUDES["vendor"] = "vendor";
18
20
  QUOTE_INCLUDES["company"] = "company";
19
21
  QUOTE_INCLUDES["taxes"] = "taxes";
@@ -11,6 +11,7 @@ export declare enum RFQ_INCLUDES {
11
11
  company = "company",
12
12
  parent_purchase_location = "parent_purchase_location",
13
13
  created_by_user = "created_by_user",
14
+ contact_person = "contact_person",
14
15
  shipping_store_location = "shipping_store_location",
15
16
  sent_for_approval_by = "sent_for_approval_by",
16
17
  sent_to_vendors_by = "sent_to_vendors_by",
@@ -49,6 +50,7 @@ export interface IRFQ {
49
50
  validity_date: string;
50
51
  bidding_type: string;
51
52
  shipping_store_location_id: string;
53
+ contact_person_id: string;
52
54
  status: string;
53
55
  sent_for_approval_at?: string | null;
54
56
  sent_to_vendors_at?: string | null;
@@ -67,6 +69,7 @@ export interface IRFQ {
67
69
  parent_purchase_location?: INestedPurchaseLocation | null;
68
70
  created_by_user?: INestedUser | null;
69
71
  shipping_store_location?: INestedStoreLocation | null;
72
+ contact_person: INestedUser | null;
70
73
  sent_for_approval_by: INestedUser | null;
71
74
  sent_to_vendors_by: INestedVendor | null;
72
75
  quotes: INestedQuote[] | null;
@@ -76,7 +79,7 @@ export interface IRFQ {
76
79
  rfq_vendors?: INestedCompanyVendors[] | null;
77
80
  additional_vendors?: INestedVendor[] | null;
78
81
  }
79
- export interface INestedRFQ extends Omit<IRFQ, "company" | "parent_purchase_location" | "created_by_user" | "shipping_store_location" | "sent_for_approval_by" | "sent_to_vendors_by" | "quotes" | "items" | "approval_chain" | "rfq_vendor_groups" | "rfq_vendors" | "additional_vendors"> {
82
+ export interface INestedRFQ extends Omit<IRFQ, "company" | "parent_purchase_location" | "created_by_user" | "shipping_store_location" | "contact_person" | "sent_for_approval_by" | "sent_to_vendors_by" | "quotes" | "items" | "approval_chain" | "rfq_vendor_groups" | "rfq_vendors" | "additional_vendors"> {
80
83
  }
81
84
  export interface IRFQItem {
82
85
  id: string;
@@ -6,6 +6,7 @@ var RFQ_INCLUDES;
6
6
  RFQ_INCLUDES["company"] = "company";
7
7
  RFQ_INCLUDES["parent_purchase_location"] = "parent_purchase_location";
8
8
  RFQ_INCLUDES["created_by_user"] = "created_by_user";
9
+ RFQ_INCLUDES["contact_person"] = "contact_person";
9
10
  RFQ_INCLUDES["shipping_store_location"] = "shipping_store_location";
10
11
  RFQ_INCLUDES["sent_for_approval_by"] = "sent_for_approval_by";
11
12
  RFQ_INCLUDES["sent_to_vendors_by"] = "sent_to_vendors_by";
@@ -6,6 +6,7 @@ import { INestedMI } from "./mi.typings";
6
6
  import { INestedOffice } from "./offices.typings";
7
7
  import { INestedPo } from "./po.typings";
8
8
  import { INestedPurchaseLocation } from "./purchaseLocation.typings";
9
+ import { INestedQuote } from "./quote.typings";
9
10
  import { INestedRFQ } from "./rfq.typings";
10
11
  import { INestedRole } from "./roles.typings";
11
12
  import { INestedInventoryItem } from "./storeInventory.typings";
@@ -37,11 +38,12 @@ export interface IStoreLocation {
37
38
  indents?: null | INestedIndent[];
38
39
  mis?: null | INestedMI[];
39
40
  as_shipping_location_for_rfqs?: null | INestedRFQ[];
41
+ as_shipping_location_for_quotes?: null | INestedQuote[];
40
42
  target_offices?: null | INestedOffice[];
41
43
  served_by_purchase_locations?: null | INestedPurchaseLocation[];
42
44
  as_shipping_location_for_pos?: null | INestedPo[];
43
45
  }
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"> {
46
+ 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"> {
45
47
  }
46
48
  export declare enum StoreLocationInclude {
47
49
  company = "company",
@@ -53,6 +55,7 @@ export declare enum StoreLocationInclude {
53
55
  indents = "indents",
54
56
  mis = "mis",
55
57
  as_shipping_location_for_rfqs = "as_shipping_location_for_rfqs",
58
+ as_shipping_location_for_quotes = "as_shipping_location_for_quotes",
56
59
  target_offices = "target_offices",
57
60
  served_by_purchase_locations = "served_by_purchase_locations",
58
61
  as_shipping_location_for_pos = "as_shipping_location_for_pos"
@@ -12,6 +12,7 @@ var StoreLocationInclude;
12
12
  StoreLocationInclude["indents"] = "indents";
13
13
  StoreLocationInclude["mis"] = "mis";
14
14
  StoreLocationInclude["as_shipping_location_for_rfqs"] = "as_shipping_location_for_rfqs";
15
+ StoreLocationInclude["as_shipping_location_for_quotes"] = "as_shipping_location_for_quotes";
15
16
  StoreLocationInclude["target_offices"] = "target_offices";
16
17
  StoreLocationInclude["served_by_purchase_locations"] = "served_by_purchase_locations";
17
18
  StoreLocationInclude["as_shipping_location_for_pos"] = "as_shipping_location_for_pos";
@@ -0,0 +1,8 @@
1
+ export interface IAddress {
2
+ pincode?: string;
3
+ area?: string;
4
+ state?: string;
5
+ city?: string;
6
+ country?: string;
7
+ address?: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.3.10",
3
+ "version": "5.3.12",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",