kcommons 9.2.12 → 9.2.13

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.
@@ -11,8 +11,6 @@ export declare enum DOCUMENTS {
11
11
  MRN = "MRN",
12
12
  PR = "PR",
13
13
  RFQ = "RFQ",
14
- RFI = "RFI",
15
- RFP = "RFP",
16
14
  PO = "PO",
17
15
  GRN = "GRN",
18
16
  COMPARATIVE = "COMPARATIVE",
@@ -29,8 +27,6 @@ export declare const PERMISSION_CONFIG: {
29
27
  MRN: PERMISSION_ACTIONS[];
30
28
  PR: PERMISSION_ACTIONS[];
31
29
  RFQ: PERMISSION_ACTIONS[];
32
- RFI: PERMISSION_ACTIONS[];
33
- RFP: PERMISSION_ACTIONS[];
34
30
  PO: PERMISSION_ACTIONS[];
35
31
  GRN: PERMISSION_ACTIONS[];
36
32
  COMPARATIVE: PERMISSION_ACTIONS[];
@@ -18,8 +18,8 @@ var DOCUMENTS;
18
18
  DOCUMENTS["MRN"] = "MRN";
19
19
  DOCUMENTS["PR"] = "PR";
20
20
  DOCUMENTS["RFQ"] = "RFQ";
21
- DOCUMENTS["RFI"] = "RFI";
22
- DOCUMENTS["RFP"] = "RFP";
21
+ // RFI = "RFI",
22
+ // RFP = "RFP",
23
23
  DOCUMENTS["PO"] = "PO";
24
24
  DOCUMENTS["GRN"] = "GRN";
25
25
  DOCUMENTS["COMPARATIVE"] = "COMPARATIVE";
@@ -61,18 +61,18 @@ exports.PERMISSION_CONFIG = {
61
61
  PERMISSION_ACTIONS.READ_ONLY,
62
62
  PERMISSION_ACTIONS.CRUDSAC,
63
63
  ],
64
- [DOCUMENTS.RFI]: [
65
- PERMISSION_ACTIONS.STV,
66
- PERMISSION_ACTIONS.APPROVALS,
67
- PERMISSION_ACTIONS.READ_ONLY,
68
- PERMISSION_ACTIONS.CRUDSAC,
69
- ],
70
- [DOCUMENTS.RFP]: [
71
- PERMISSION_ACTIONS.STV,
72
- PERMISSION_ACTIONS.APPROVALS,
73
- PERMISSION_ACTIONS.READ_ONLY,
74
- PERMISSION_ACTIONS.CRUDSAC,
75
- ],
64
+ // [DOCUMENTS.RFI]: [
65
+ // PERMISSION_ACTIONS.STV,
66
+ // PERMISSION_ACTIONS.APPROVALS,
67
+ // PERMISSION_ACTIONS.READ_ONLY,
68
+ // PERMISSION_ACTIONS.CRUDSAC,
69
+ // ],
70
+ // [DOCUMENTS.RFP]: [
71
+ // PERMISSION_ACTIONS.STV,
72
+ // PERMISSION_ACTIONS.APPROVALS,
73
+ // PERMISSION_ACTIONS.READ_ONLY,
74
+ // PERMISSION_ACTIONS.CRUDSAC,
75
+ // ],
76
76
  [DOCUMENTS.PO]: [
77
77
  PERMISSION_ACTIONS.STV,
78
78
  PERMISSION_ACTIONS.APPROVALS,
@@ -108,8 +108,8 @@ exports.EntitySpecificDocuments = {
108
108
  ],
109
109
  [entityTypes_constants_1.EntityTypes.PURCHASE_LOCATION]: [
110
110
  DOCUMENTS.RFQ,
111
- DOCUMENTS.RFP,
112
- DOCUMENTS.RFI,
111
+ // DOCUMENTS.RFP,
112
+ // DOCUMENTS.RFI,
113
113
  DOCUMENTS.PO,
114
114
  DOCUMENTS.INDENT,
115
115
  DOCUMENTS.COMPARATIVE,
@@ -36,7 +36,8 @@ export declare enum ISTD_INCLUDE {
36
36
  items = "items",
37
37
  sent_to_dest_store_by = "sent_to_dest_store_by",
38
38
  marked_as_processed_by = "marked_as_processed_by",
39
- approval_chain = "approval_chain"
39
+ source_approval_chain = "source_approval_chain",
40
+ dest_approval_chain = "dest_approval_chain"
40
41
  }
41
42
  export interface IISTD {
42
43
  id: string;
@@ -79,9 +80,10 @@ export interface IISTD {
79
80
  source_store_location: INestedStoreLocation | null;
80
81
  dest_store_location: INestedStoreLocation | null;
81
82
  terminated_by: INestedUser | null;
82
- approval_chain: INestedEntityApprovalChainEntry[] | null;
83
+ source_approval_chain: INestedEntityApprovalChainEntry[] | null;
84
+ dest_approval_chain: INestedEntityApprovalChainEntry[] | null;
83
85
  }
84
- export interface INestedISTD extends Omit<IISTD, "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" | "approval_chain"> {
86
+ export interface INestedISTD extends Omit<IISTD, "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" | "source_approval_chain" | "dest_approval_chain"> {
85
87
  }
86
88
  export interface IISTDFilter {
87
89
  source_contact_person_id?: string | null;
@@ -37,5 +37,6 @@ var ISTD_INCLUDE;
37
37
  ISTD_INCLUDE["items"] = "items";
38
38
  ISTD_INCLUDE["sent_to_dest_store_by"] = "sent_to_dest_store_by";
39
39
  ISTD_INCLUDE["marked_as_processed_by"] = "marked_as_processed_by";
40
- ISTD_INCLUDE["approval_chain"] = "approval_chain";
40
+ ISTD_INCLUDE["source_approval_chain"] = "source_approval_chain";
41
+ ISTD_INCLUDE["dest_approval_chain"] = "dest_approval_chain";
41
42
  })(ISTD_INCLUDE || (exports.ISTD_INCLUDE = ISTD_INCLUDE = {}));
@@ -22,7 +22,8 @@ export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES {
22
22
  po = "po",
23
23
  grn = "grn",
24
24
  mrn = "mrn",
25
- istd = "istd"
25
+ source_istd = "source_istd",
26
+ dest_istd = "dest_istd"
26
27
  }
27
28
  export interface IEntityApprovalChainEntry {
28
29
  id: string;
@@ -39,7 +40,8 @@ export interface IEntityApprovalChainEntry {
39
40
  po_id?: string;
40
41
  mrn_id?: string;
41
42
  grn_id?: string;
42
- istd_id?: string;
43
+ source_istd_id?: string;
44
+ dest_istd_id?: string;
43
45
  deleted_at: string | null;
44
46
  is_deleted: boolean | null;
45
47
  created_at: string | null;
@@ -55,7 +57,8 @@ export interface IEntityApprovalChainEntry {
55
57
  po?: INestedPo | null;
56
58
  grn?: INestedGRN | null;
57
59
  mrn?: INestedMRN | null;
58
- istd?: INestedISTD | null;
60
+ source_istd?: INestedISTD | null;
61
+ dest_istd?: INestedISTD | null;
59
62
  }
60
- export interface INestedEntityApprovalChainEntry extends Omit<IEntityApprovalChainEntry, "company" | "user" | "role" | "indent" | "mi" | "pr" | "rfq" | "comparative" | "po" | "grn" | "mrn" | "istd"> {
63
+ export interface INestedEntityApprovalChainEntry extends Omit<IEntityApprovalChainEntry, "company" | "user" | "role" | "indent" | "mi" | "pr" | "rfq" | "comparative" | "po" | "grn" | "mrn" | "source_istd" | "dest_istd"> {
61
64
  }
@@ -14,5 +14,6 @@ var ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES;
14
14
  ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["po"] = "po";
15
15
  ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["grn"] = "grn";
16
16
  ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["mrn"] = "mrn";
17
- ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["istd"] = "istd";
17
+ ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["source_istd"] = "source_istd";
18
+ ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["dest_istd"] = "dest_istd";
18
19
  })(ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES || (exports.ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES = ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "9.2.12",
3
+ "version": "9.2.13",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",