kcommons 5.25.30 → 5.25.33

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
@@ -40,6 +40,7 @@ export * from "./typings/settings/form/extraFormQues.typings";
40
40
  export * from "./typings/settings/form/extraFormAns.typings";
41
41
  export * from "./typings/extraCoreRelatedQuestions.typings";
42
42
  export * from "./typings/extraCoreRelatedQuestionsForCompany.typings";
43
+ export * from "./typings/companySepcificVendorItems.typings";
43
44
  export * from "./constants/permission.constants";
44
45
  export * from "./constants/entityTypes.constants";
45
46
  export * from "./constants/documentStatus.typings";
package/build/index.js CHANGED
@@ -57,6 +57,7 @@ __exportStar(require("./typings/settings/form/extraFormQues.typings"), exports);
57
57
  __exportStar(require("./typings/settings/form/extraFormAns.typings"), exports);
58
58
  __exportStar(require("./typings/extraCoreRelatedQuestions.typings"), exports);
59
59
  __exportStar(require("./typings/extraCoreRelatedQuestionsForCompany.typings"), exports);
60
+ __exportStar(require("./typings/companySepcificVendorItems.typings"), exports);
60
61
  // Constants
61
62
  __exportStar(require("./constants/permission.constants"), exports);
62
63
  __exportStar(require("./constants/entityTypes.constants"), exports);
@@ -28,6 +28,7 @@ import { INestedCompanyProxy } from "./companyProxy.typings";
28
28
  import { INestedExtraFormQuestions } from "./settings/form/extraFormQues.typings";
29
29
  import { INestedExtraFormAnswerEntitys } from "./settings/form/extraFormAns.typings";
30
30
  import { INestedExtraCoreRelatedQuestionsForCompanyEntiy } from "./extraCoreRelatedQuestionsForCompany.typings";
31
+ import { INestedCompanySpecificVendorItemVersion } from "./companySepcificVendorItems.typings";
31
32
  export declare enum COMPANY_INCLUDE {
32
33
  associated_purchase_locations = "associated_purchase_locations",
33
34
  associated_vendors = "associated_vendors",
@@ -66,7 +67,8 @@ export declare enum COMPANY_INCLUDE {
66
67
  company_proxy = "company_proxy",
67
68
  extra_questions = "extra_questions",
68
69
  extra_question_ans = "extra_question_ans",
69
- extra_core_related_questions = "extra_core_related_questions"
70
+ extra_core_related_questions = "extra_core_related_questions",
71
+ company_specific_vendor_items = "company_specific_vendor_items"
70
72
  }
71
73
  export interface ICompany extends IAddress {
72
74
  id: string;
@@ -128,6 +130,7 @@ export interface ICompany extends IAddress {
128
130
  extra_questions: INestedExtraFormQuestions[] | null;
129
131
  extra_question_ans: INestedExtraFormAnswerEntitys[] | null;
130
132
  extra_core_related_questions: INestedExtraCoreRelatedQuestionsForCompanyEntiy[] | null;
133
+ company_specific_vendor_items: INestedCompanySpecificVendorItemVersion[] | null;
131
134
  }
132
- 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" | "company_grns" | "company_grns_items" | "company_mrns" | "company_mrns_items" | "company_boms" | "company_bom_items" | "company_comparatives" | "company_comparative_items" | "company_notifications" | "company_proxy" | "extra_questions" | "extra_question_ans" | "extra_core_related_questions"> {
135
+ 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" | "company_grns" | "company_grns_items" | "company_mrns" | "company_mrns_items" | "company_boms" | "company_bom_items" | "company_comparatives" | "company_comparative_items" | "company_notifications" | "company_proxy" | "extra_questions" | "extra_question_ans" | "extra_core_related_questions" | "company_specific_vendor_items"> {
133
136
  }
@@ -42,4 +42,5 @@ var COMPANY_INCLUDE;
42
42
  // extra_questions_options = "extra_questions_options",
43
43
  COMPANY_INCLUDE["extra_question_ans"] = "extra_question_ans";
44
44
  COMPANY_INCLUDE["extra_core_related_questions"] = "extra_core_related_questions";
45
+ COMPANY_INCLUDE["company_specific_vendor_items"] = "company_specific_vendor_items";
45
46
  })(COMPANY_INCLUDE || (exports.COMPANY_INCLUDE = COMPANY_INCLUDE = {}));
@@ -0,0 +1,18 @@
1
+ import { INestedCompany } from "./company.typings";
2
+ import { INestedVendorItem } from "./vendorItem.typings";
3
+ export declare enum COMPANY_SPECIFIC_VENDOR_ITEM_VERSION_INCLUDE {
4
+ company = "company",
5
+ vendorItem = "vendorItem"
6
+ }
7
+ export interface ICompanySpecificVendorItemVersion {
8
+ id: string;
9
+ company_id: string;
10
+ vendor_item_id: string;
11
+ is_enabled: boolean;
12
+ created_at: string;
13
+ udpated_at: string;
14
+ company: INestedCompany | null;
15
+ vendorItem: INestedVendorItem | null;
16
+ }
17
+ export interface INestedCompanySpecificVendorItemVersion extends Omit<ICompanySpecificVendorItemVersion, "company" | "vendorItem"> {
18
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.COMPANY_SPECIFIC_VENDOR_ITEM_VERSION_INCLUDE = void 0;
4
+ var COMPANY_SPECIFIC_VENDOR_ITEM_VERSION_INCLUDE;
5
+ (function (COMPANY_SPECIFIC_VENDOR_ITEM_VERSION_INCLUDE) {
6
+ COMPANY_SPECIFIC_VENDOR_ITEM_VERSION_INCLUDE["company"] = "company";
7
+ COMPANY_SPECIFIC_VENDOR_ITEM_VERSION_INCLUDE["vendorItem"] = "vendorItem";
8
+ })(COMPANY_SPECIFIC_VENDOR_ITEM_VERSION_INCLUDE || (exports.COMPANY_SPECIFIC_VENDOR_ITEM_VERSION_INCLUDE = COMPANY_SPECIFIC_VENDOR_ITEM_VERSION_INCLUDE = {}));
@@ -15,6 +15,7 @@ export interface IIndent {
15
15
  status: string;
16
16
  created_by_user_id: string;
17
17
  target_store_location_id: string;
18
+ sent_to_store_location: boolean;
18
19
  location?: string | null;
19
20
  application_reason?: string | null;
20
21
  custom_fields?: string | null;
@@ -22,11 +23,13 @@ export interface IIndent {
22
23
  priority_date?: string | null;
23
24
  attachment_link?: string | null;
24
25
  remarks?: string | null;
25
- deleted_at?: Date | null;
26
+ deleted_at?: string | null;
27
+ sent_to_store_location_at: string | null;
28
+ approved_at: string | null;
26
29
  is_enabled: boolean;
27
30
  is_deleted: boolean;
28
- created_at: Date;
29
- updated_at: Date;
31
+ created_at: string;
32
+ updated_at: string;
30
33
  items?: INestedIndentItem[] | null;
31
34
  department?: INestedDepartment | null;
32
35
  company?: INestedCompany | null;
@@ -1,9 +1,11 @@
1
1
  import { IPaginationFilters } from "./common/paginationFilters.typings";
2
+ import { INestedCompanySpecificVendorItemVersion } from "./companySepcificVendorItems.typings";
2
3
  import { INestedVendor } from "./vendor.typings";
3
4
  import { INestedVendorItemCategory } from "./vendorItemCategories.typings";
4
5
  export declare enum VENDOR_ITEM_INCLUDE {
5
6
  vendor = "vendor",
6
- vendor_item_categories = "vendor_item_categories"
7
+ vendor_item_categories = "vendor_item_categories",
8
+ company_specific_versions = "company_specific_versions"
7
9
  }
8
10
  export interface IVendorItemFilters {
9
11
  vendor_proxy_id: string;
@@ -37,6 +39,7 @@ export interface IVendorItem {
37
39
  keywords: string[];
38
40
  vendor: INestedVendor | null;
39
41
  vendor_item_categories: INestedVendorItemCategory[] | null;
42
+ company_specific_versions: INestedCompanySpecificVendorItemVersion[] | null;
40
43
  }
41
- export interface INestedVendorItem extends Omit<IVendorItem, "vendor" | "vendor_item_categories"> {
44
+ export interface INestedVendorItem extends Omit<IVendorItem, "vendor" | "vendor_item_categories" | "company_specific_versions"> {
42
45
  }
@@ -5,4 +5,5 @@ var VENDOR_ITEM_INCLUDE;
5
5
  (function (VENDOR_ITEM_INCLUDE) {
6
6
  VENDOR_ITEM_INCLUDE["vendor"] = "vendor";
7
7
  VENDOR_ITEM_INCLUDE["vendor_item_categories"] = "vendor_item_categories";
8
+ VENDOR_ITEM_INCLUDE["company_specific_versions"] = "company_specific_versions";
8
9
  })(VENDOR_ITEM_INCLUDE || (exports.VENDOR_ITEM_INCLUDE = VENDOR_ITEM_INCLUDE = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.25.30",
3
+ "version": "5.25.33",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",