kcommons 16.5.1 → 16.5.3

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.
@@ -24,6 +24,12 @@ export declare enum IAD_INCLUDE {
24
24
  last_updated_by_user = "last_updated_by_user",
25
25
  inventory_logs = "inventory_logs"
26
26
  }
27
+ export declare enum IAD_METAFIELDS_INCLUDE {
28
+ items_data = "items_data"
29
+ }
30
+ export interface IIADMetafields {
31
+ items_data: INestedItem[] | null;
32
+ }
27
33
  export interface IIAD {
28
34
  id: string;
29
35
  iad_no: string;
@@ -59,8 +65,9 @@ export interface IIAD {
59
65
  finalised_by_user: INestedUser | null;
60
66
  terminated_by: INestedUser | null;
61
67
  inventory_logs: INestedInventoryLog[] | null;
68
+ metafields: IIADMetafields | null;
62
69
  }
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"> {
70
+ 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" | "metafields"> {
64
71
  }
65
72
  export declare enum IAD_LIST_TYPES {
66
73
  ALL = "ALL",
@@ -71,6 +78,7 @@ export interface IIADFilters extends Partial<Pick<IIAD, "store_location_id" | "i
71
78
  list_type?: IAD_LIST_TYPES;
72
79
  user_approvals?: boolean | null;
73
80
  include?: IAD_INCLUDE[] | null;
81
+ metafields_include?: IAD_METAFIELDS_INCLUDE[] | null;
74
82
  }
75
83
  export interface IIADFiltersWithPagiantion extends IIADFilters, IPaginationFilters {
76
84
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IAD_LIST_TYPES = exports.IAD_INCLUDE = exports.IAD_STATUS = exports.IAD_TYPE = void 0;
3
+ exports.IAD_LIST_TYPES = exports.IAD_METAFIELDS_INCLUDE = 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,6 +24,10 @@ 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_METAFIELDS_INCLUDE;
28
+ (function (IAD_METAFIELDS_INCLUDE) {
29
+ IAD_METAFIELDS_INCLUDE["items_data"] = "items_data";
30
+ })(IAD_METAFIELDS_INCLUDE || (exports.IAD_METAFIELDS_INCLUDE = IAD_METAFIELDS_INCLUDE = {}));
27
31
  var IAD_LIST_TYPES;
28
32
  (function (IAD_LIST_TYPES) {
29
33
  IAD_LIST_TYPES["ALL"] = "ALL";
@@ -11,12 +11,14 @@ export declare enum VENDOR_ONBOARDING_REQUEST_CATEGORY_INCLUDE {
11
11
  company_vendors = "company_vendors"
12
12
  }
13
13
  export declare enum VENDOR_ONBOARDING_REQUEST_CATEGORY_METAFIELDS_INCLUDE {
14
- vendor_count = "vendor_count",
15
- vendor_onboarding_request_category_count = "vendor_onboarding_request_category_count"
14
+ company_vendor_count = "company_vendor_count",
15
+ vendor_onboarding_request_count = "vendor_onboarding_request_count",
16
+ accepted_pos_count = "accepted_pos_count"
16
17
  }
17
18
  export interface IVendorOnboardingRequestCategoryMetafields {
18
- vendor_count: number | null;
19
- vendor_onboarding_request_category_count: number | null;
19
+ company_vendor_count: number | null;
20
+ vendor_onboarding_request_count: number | null;
21
+ accepted_pos_count: number | null;
20
22
  }
21
23
  export interface IVendorOnboardingRequestCategoryFilters {
22
24
  include?: VENDOR_ONBOARDING_REQUEST_CATEGORY_INCLUDE[];
@@ -11,6 +11,7 @@ var VENDOR_ONBOARDING_REQUEST_CATEGORY_INCLUDE;
11
11
  })(VENDOR_ONBOARDING_REQUEST_CATEGORY_INCLUDE || (exports.VENDOR_ONBOARDING_REQUEST_CATEGORY_INCLUDE = VENDOR_ONBOARDING_REQUEST_CATEGORY_INCLUDE = {}));
12
12
  var VENDOR_ONBOARDING_REQUEST_CATEGORY_METAFIELDS_INCLUDE;
13
13
  (function (VENDOR_ONBOARDING_REQUEST_CATEGORY_METAFIELDS_INCLUDE) {
14
- VENDOR_ONBOARDING_REQUEST_CATEGORY_METAFIELDS_INCLUDE["vendor_count"] = "vendor_count";
15
- VENDOR_ONBOARDING_REQUEST_CATEGORY_METAFIELDS_INCLUDE["vendor_onboarding_request_category_count"] = "vendor_onboarding_request_category_count";
14
+ VENDOR_ONBOARDING_REQUEST_CATEGORY_METAFIELDS_INCLUDE["company_vendor_count"] = "company_vendor_count";
15
+ VENDOR_ONBOARDING_REQUEST_CATEGORY_METAFIELDS_INCLUDE["vendor_onboarding_request_count"] = "vendor_onboarding_request_count";
16
+ VENDOR_ONBOARDING_REQUEST_CATEGORY_METAFIELDS_INCLUDE["accepted_pos_count"] = "accepted_pos_count";
16
17
  })(VENDOR_ONBOARDING_REQUEST_CATEGORY_METAFIELDS_INCLUDE || (exports.VENDOR_ONBOARDING_REQUEST_CATEGORY_METAFIELDS_INCLUDE = VENDOR_ONBOARDING_REQUEST_CATEGORY_METAFIELDS_INCLUDE = {}));
@@ -163,6 +163,8 @@ export interface ICompany extends IAddress {
163
163
  disputed_mrn_resolution_method: COMPANY_CONFIG_MRN_DISPUTE_RESOLUTION_METHODS;
164
164
  plugin_ids: string[];
165
165
  company_vendor_additonal_info_fields_mapping_config: string;
166
+ allow_custom_whatsapp: boolean;
167
+ allow_custom_mailer: boolean;
166
168
  company_config: INestedCompanyConfig | null;
167
169
  vendor_onboarding_request_categories: INestedVendorOnboardingRequestCategory[] | null;
168
170
  associated_purchase_locations?: null | INestedPurchaseLocation[];
@@ -30,7 +30,8 @@ export declare enum SUB_PO_INCLUDES {
30
30
  export declare enum SUB_PO_METAFIELDS_INCLUDE {
31
31
  items_data = "items_data",
32
32
  vendor_data = "vendor_data",
33
- shipping_location_data = "shipping_location_data"
33
+ shipping_location_data = "shipping_location_data",
34
+ reference_po_items = "reference_po_items"
34
35
  }
35
36
  interface ISubPOFiltersBase {
36
37
  name?: string;
@@ -51,6 +52,7 @@ export interface ISubPOMetafields {
51
52
  items_data: INestedItem[] | null;
52
53
  vendor_data: INestedVendor | null;
53
54
  shipping_location_data: INestedStoreLocation | null;
55
+ reference_po_items: INestedSubPOItem[] | null;
54
56
  }
55
57
  export interface ISubPO {
56
58
  id: string;
@@ -26,4 +26,5 @@ var SUB_PO_METAFIELDS_INCLUDE;
26
26
  SUB_PO_METAFIELDS_INCLUDE["items_data"] = "items_data";
27
27
  SUB_PO_METAFIELDS_INCLUDE["vendor_data"] = "vendor_data";
28
28
  SUB_PO_METAFIELDS_INCLUDE["shipping_location_data"] = "shipping_location_data";
29
+ SUB_PO_METAFIELDS_INCLUDE["reference_po_items"] = "reference_po_items";
29
30
  })(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.5.1",
3
+ "version": "16.5.3",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",