kcommons 8.1.2 → 9.0.0

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.
@@ -18,5 +18,7 @@ export declare enum STATUSES {
18
18
  DELIVERED = "DELIVERED",
19
19
  REJECTED_BY_VENDOR = "REJECTED_BY_VENDOR",
20
20
  PROCESSING = "PROCESSING",
21
- PROCESSED = "PROCESSED"
21
+ PROCESSED = "PROCESSED",
22
+ REQUESTED = "REQUESTED",
23
+ TERMINATED = "TERMINATED"
22
24
  }
@@ -23,4 +23,6 @@ var STATUSES;
23
23
  STATUSES["REJECTED_BY_VENDOR"] = "REJECTED_BY_VENDOR";
24
24
  STATUSES["PROCESSING"] = "PROCESSING";
25
25
  STATUSES["PROCESSED"] = "PROCESSED";
26
+ STATUSES["REQUESTED"] = "REQUESTED";
27
+ STATUSES["TERMINATED"] = "TERMINATED";
26
28
  })(STATUSES || (exports.STATUSES = STATUSES = {}));
package/build/index.d.ts CHANGED
@@ -44,6 +44,8 @@ export * from "./typings/companySepcificVendorItems.typings";
44
44
  export * from "./typings/poAsnJunctionItems.typings";
45
45
  export * from "./typings/contactPeople.typings";
46
46
  export * from "./typings/companyItemVendorVersion.typings";
47
+ export * from "./typings/company/istd/istd.typings";
48
+ export * from "./typings/company/istd/istdItems.typings";
47
49
  export * from "./constants/permission.constants";
48
50
  export * from "./constants/entityTypes.constants";
49
51
  export * from "./constants/statuses.constants";
package/build/index.js CHANGED
@@ -61,6 +61,8 @@ __exportStar(require("./typings/companySepcificVendorItems.typings"), exports);
61
61
  __exportStar(require("./typings/poAsnJunctionItems.typings"), exports);
62
62
  __exportStar(require("./typings/contactPeople.typings"), exports);
63
63
  __exportStar(require("./typings/companyItemVendorVersion.typings"), exports);
64
+ __exportStar(require("./typings/company/istd/istd.typings"), exports);
65
+ __exportStar(require("./typings/company/istd/istdItems.typings"), exports);
64
66
  // Constants
65
67
  __exportStar(require("./constants/permission.constants"), exports);
66
68
  __exportStar(require("./constants/entityTypes.constants"), exports);
@@ -0,0 +1,91 @@
1
+ import { IPaginationFilters } from "../../common/paginationFilters.typings";
2
+ import { INestedCompany } from "../../company.typings";
3
+ import { INestedStoreLocation } from "../../storeLocation.typings";
4
+ import { INestedUser } from "../../user.typings";
5
+ import { INestedISTDItem } from "./istdItems.typings";
6
+ export declare enum ISTD_STATUS_FOR_SOURCE {
7
+ DRAFT = "DRAFT",
8
+ PENDING_APPROVAL = "PENDING APPROVAL",
9
+ APPROVED = "APPROVED",
10
+ REQUESTED = "REQUESTED",
11
+ PROCESSED = "PROCESSED",
12
+ TERMINATED = "TERMINATED"
13
+ }
14
+ export declare enum ISTD_STATUS_FOR_DEST {
15
+ REQUESTED = "REQUESTED",
16
+ PENDING_APPROVAL = "PENDING APPROVAL",
17
+ APPROVED = "APPROVED",
18
+ PROCESSED = "PROCESSED"
19
+ }
20
+ export declare enum ISTD_INCLUDE {
21
+ company = "company",
22
+ created_by = "created_by",
23
+ last_updated_by = "last_updated_by",
24
+ source_contact_person = "source_contact_person",
25
+ dest_contact_person = "dest_contact_person",
26
+ sent_for_source_approval_by = "sent_for_source_approval_by",
27
+ sent_for_dest_approval_by = "sent_for_dest_approval_by",
28
+ source_store_location = "source_store_location",
29
+ dest_store_location = "dest_store_location",
30
+ terminated_by = "terminated_by",
31
+ items = "items",
32
+ sent_to_dest_store_by = "sent_to_dest_store_by",
33
+ marked_as_processed_by = "marked_as_processed_by"
34
+ }
35
+ export interface ISTD {
36
+ id: string;
37
+ istd_code: string;
38
+ company_id: string;
39
+ source_contact_person_id: string | null;
40
+ dest_contact_person_id: string | null;
41
+ created_by_id: string;
42
+ last_updated_by_id: string;
43
+ required_by_date: string | null;
44
+ status_at_source: ISTD_STATUS_FOR_SOURCE;
45
+ status_at_dest: ISTD_STATUS_FOR_DEST | null;
46
+ source_store_location_id: string;
47
+ dest_store_location_id: string;
48
+ note: string | null;
49
+ attachment_link: string | null;
50
+ marked_as_processed_by_id: string | null;
51
+ marked_as_processed_by_at: Date | null;
52
+ termination_remark: string | null;
53
+ terminated_by_id: string | null;
54
+ terminated_at: string | null;
55
+ sent_for_source_approval_at: string | null;
56
+ sent_for_source_approval_by_id: string | null;
57
+ sent_for_dest_approval_at: string | null;
58
+ sent_for_dest_approval_by_id: string | null;
59
+ sent_to_dest_store_by_id: string | null;
60
+ sent_to_dest_store_at: string | null;
61
+ is_deleted: boolean;
62
+ deleted_at: string | null;
63
+ created_at: string;
64
+ updated_at: string;
65
+ items: INestedISTDItem[] | null;
66
+ company: INestedCompany | null;
67
+ created_by: INestedUser | null;
68
+ last_updated_by: INestedUser | null;
69
+ source_contact_person: INestedUser | null;
70
+ dest_contact_person: INestedUser | null;
71
+ sent_for_source_approval_by: INestedUser | null;
72
+ sent_for_dest_approval_by: INestedUser | null;
73
+ source_store_location: INestedStoreLocation | null;
74
+ dest_store_location: INestedStoreLocation | null;
75
+ terminated_by: INestedUser | null;
76
+ }
77
+ export interface INestedISTD extends Omit<ISTD, "items" | "company" | "created_by" | "last_updated_by" | "source_contact_person" | "dest_contact_person" | "sent_for_source_approval_by" | "sent_for_dest_approval_by" | "source_store_location" | "dest_store_location" | "terminated_by" | "sent_to_dest_store_by" | "marked_as_processed_by"> {
78
+ }
79
+ export interface IISTDFilter {
80
+ company_id?: string | null;
81
+ source_contact_person_id?: string | null;
82
+ dest_contact_person_id?: string | null;
83
+ created_by_id?: string | null;
84
+ last_updated_by_id?: string | null;
85
+ terminated_by_id?: string | null;
86
+ sent_to_dest_store_by?: string | null;
87
+ marked_as_processed_by?: string | null;
88
+ is_deleted?: boolean | null;
89
+ }
90
+ export interface IISTDFiltersWithPagination extends IISTDFilter, IPaginationFilters {
91
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ISTD_INCLUDE = exports.ISTD_STATUS_FOR_DEST = exports.ISTD_STATUS_FOR_SOURCE = void 0;
4
+ var ISTD_STATUS_FOR_SOURCE;
5
+ (function (ISTD_STATUS_FOR_SOURCE) {
6
+ ISTD_STATUS_FOR_SOURCE["DRAFT"] = "DRAFT";
7
+ ISTD_STATUS_FOR_SOURCE["PENDING_APPROVAL"] = "PENDING APPROVAL";
8
+ ISTD_STATUS_FOR_SOURCE["APPROVED"] = "APPROVED";
9
+ ISTD_STATUS_FOR_SOURCE["REQUESTED"] = "REQUESTED";
10
+ ISTD_STATUS_FOR_SOURCE["PROCESSED"] = "PROCESSED";
11
+ ISTD_STATUS_FOR_SOURCE["TERMINATED"] = "TERMINATED";
12
+ })(ISTD_STATUS_FOR_SOURCE || (exports.ISTD_STATUS_FOR_SOURCE = ISTD_STATUS_FOR_SOURCE = {}));
13
+ var ISTD_STATUS_FOR_DEST;
14
+ (function (ISTD_STATUS_FOR_DEST) {
15
+ ISTD_STATUS_FOR_DEST["REQUESTED"] = "REQUESTED";
16
+ ISTD_STATUS_FOR_DEST["PENDING_APPROVAL"] = "PENDING APPROVAL";
17
+ ISTD_STATUS_FOR_DEST["APPROVED"] = "APPROVED";
18
+ ISTD_STATUS_FOR_DEST["PROCESSED"] = "PROCESSED";
19
+ })(ISTD_STATUS_FOR_DEST || (exports.ISTD_STATUS_FOR_DEST = ISTD_STATUS_FOR_DEST = {}));
20
+ var ISTD_INCLUDE;
21
+ (function (ISTD_INCLUDE) {
22
+ ISTD_INCLUDE["company"] = "company";
23
+ ISTD_INCLUDE["created_by"] = "created_by";
24
+ ISTD_INCLUDE["last_updated_by"] = "last_updated_by";
25
+ ISTD_INCLUDE["source_contact_person"] = "source_contact_person";
26
+ ISTD_INCLUDE["dest_contact_person"] = "dest_contact_person";
27
+ ISTD_INCLUDE["sent_for_source_approval_by"] = "sent_for_source_approval_by";
28
+ ISTD_INCLUDE["sent_for_dest_approval_by"] = "sent_for_dest_approval_by";
29
+ ISTD_INCLUDE["source_store_location"] = "source_store_location";
30
+ ISTD_INCLUDE["dest_store_location"] = "dest_store_location";
31
+ ISTD_INCLUDE["terminated_by"] = "terminated_by";
32
+ ISTD_INCLUDE["items"] = "items";
33
+ ISTD_INCLUDE["sent_to_dest_store_by"] = "sent_to_dest_store_by";
34
+ ISTD_INCLUDE["marked_as_processed_by"] = "marked_as_processed_by";
35
+ })(ISTD_INCLUDE || (exports.ISTD_INCLUDE = ISTD_INCLUDE = {}));
@@ -0,0 +1,38 @@
1
+ import { IPaginationFilters } from "../../common/paginationFilters.typings";
2
+ import { INestedCompany } from "../../company.typings";
3
+ import { INestedItem } from "../../item.typings";
4
+ import { INestedISTD } from "./istd.typings";
5
+ export declare enum ISTD_ITEM_INCLUDE {
6
+ company = "company",
7
+ parent_istd = "parent_istd",
8
+ item = "item"
9
+ }
10
+ export interface IISTDItem {
11
+ id: string;
12
+ company_id: string;
13
+ parent_istd_id: string;
14
+ item_id: string;
15
+ item_name: string;
16
+ code_sku: string;
17
+ uom: string;
18
+ requested_quantity: number;
19
+ accepted_quantity: number | null;
20
+ item_description: string | null;
21
+ is_deleted: boolean;
22
+ deleted_at: string | null;
23
+ created_at: string;
24
+ updated_at: string;
25
+ company: INestedCompany | null;
26
+ parent_istd: INestedISTD | null;
27
+ item: INestedItem | null;
28
+ }
29
+ export interface INestedISTDItem extends Omit<IISTDItem, "company" | "parent_istd" | "item"> {
30
+ }
31
+ export interface IISTDItemFilters {
32
+ company_id?: string | null;
33
+ item_id?: string | null;
34
+ parent_istd_id?: string | null;
35
+ is_deleted?: boolean | null;
36
+ }
37
+ export interface IISTDItemFiltersWIthPagination extends IISTDItemFilters, IPaginationFilters {
38
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ISTD_ITEM_INCLUDE = void 0;
4
+ var ISTD_ITEM_INCLUDE;
5
+ (function (ISTD_ITEM_INCLUDE) {
6
+ ISTD_ITEM_INCLUDE["company"] = "company";
7
+ ISTD_ITEM_INCLUDE["parent_istd"] = "parent_istd";
8
+ ISTD_ITEM_INCLUDE["item"] = "item";
9
+ })(ISTD_ITEM_INCLUDE || (exports.ISTD_ITEM_INCLUDE = ISTD_ITEM_INCLUDE = {}));
@@ -1,3 +1,4 @@
1
+ import { IPaginationFilters } from "./common/paginationFilters.typings";
1
2
  import { INestedItem } from "./item.typings";
2
3
  import { INestedStoreLocation } from "./storeLocation.typings";
3
4
  export interface IInventoryItem {
@@ -22,3 +23,10 @@ export declare enum STORE_INVENTORY_INCLUDE {
22
23
  store = "store",
23
24
  item = "item"
24
25
  }
26
+ export interface IStoreInventoryFilters {
27
+ store_location_id?: string;
28
+ item_id?: string;
29
+ include?: STORE_INVENTORY_INCLUDE[];
30
+ }
31
+ export interface IStoreInventoryFiltersWithPagination extends IStoreInventoryFilters, IPaginationFilters {
32
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "8.1.2",
3
+ "version": "9.0.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",