kcommons 14.13.1 → 14.13.2

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.
@@ -1,7 +1,7 @@
1
1
  import { IPaginationFilters } from "./common/paginationFilters.typings";
2
2
  import { INestedCompany } from "./company.typings";
3
3
  import { INestedVES } from "./company/masters/ves.typings";
4
- import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
4
+ import { IEntityApprovalChainEntry, INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
5
5
  import { INestedGRN, INestedGRNItem } from "./grn.typings";
6
6
  import { INestedItem } from "./item.typings";
7
7
  import { INestedPo } from "./company/masters/po.typings";
@@ -9,6 +9,7 @@ import { INestedStoreLocation } from "./storeLocation.typings";
9
9
  import { INestedUser } from "./user.typings";
10
10
  import { INestedVendor } from "./vendor.typings";
11
11
  import { INestedPOASNItemJunction } from "./company/masters/poAsnJunctionItems.typings";
12
+ import { IOpenApprovalsBase } from "./common/openApprovals.typings";
12
13
  export declare enum ASN_CANCELLED_BY_ENTITY {
13
14
  COMPANY = "COMPANY",
14
15
  VENDOR = "VENDOR"
@@ -281,3 +282,15 @@ export declare enum ASNPageLocation {
281
282
  GATE = "GATE",
282
283
  PO = "PO"
283
284
  }
285
+ export interface IASNApprovalByTokenPayload extends IOpenApprovalsBase {
286
+ asn_id: string;
287
+ }
288
+ export interface IOpenASNApprovalData {
289
+ asnData: IASN;
290
+ entityApprovalChainEntry: IEntityApprovalChainEntry;
291
+ }
292
+ export interface IASN_TOKEN_PAYLOAD {
293
+ user_id: string;
294
+ role_id: string;
295
+ asn_id: string;
296
+ }
@@ -78,7 +78,7 @@ export interface IPOFilters {
78
78
  }
79
79
  export interface IPOFiltersWithPagination extends IPOFilters, IPaginationFilters {
80
80
  }
81
- export interface IPOFiltersForGRN extends Pick<IPOFilters, "name" | "include"> {
81
+ export interface IPOFiltersForGRN extends Pick<IPOFilters, "name" | "include" | "metafields_include"> {
82
82
  }
83
83
  export interface IPOFiltersForGRNWithPagination extends IPOFiltersForGRN, IPaginationFilters {
84
84
  }
@@ -28,6 +28,7 @@ export interface IIndentFilters extends Partial<Pick<IIndent, "on_behalf_of_non_
28
28
  status?: IndentStatus;
29
29
  include?: IndentInclude[];
30
30
  list_type?: INDENT_LIST_TYPE;
31
+ metafields_include?: INDENT_METAFIELDS_INCLUDE[];
31
32
  }
32
33
  export interface IIndentFiltersWithPagiantion extends IPaginationFilters, IIndentFilters {
33
34
  }
@@ -36,6 +37,12 @@ export declare enum INDENT_TABS {
36
37
  APPROVALS = "APPROVALS",
37
38
  LOGS = "LOGS"
38
39
  }
40
+ export interface IINDENTMetafields {
41
+ items_data: INestedItem[] | null;
42
+ }
43
+ export declare enum INDENT_METAFIELDS_INCLUDE {
44
+ items_data = "items_data"
45
+ }
39
46
  export interface IIndent {
40
47
  id: string;
41
48
  company_id: string;
@@ -75,8 +82,9 @@ export interface IIndent {
75
82
  corresponding_mis: INestedMI[] | null;
76
83
  prs: INestedPR[] | null;
77
84
  approval_chain: INestedEntityApprovalChainEntry[] | null;
85
+ metafields: IINDENTMetafields | null;
78
86
  }
79
- export interface INestedIndent extends Omit<IIndent, "department" | "company" | "budget_code" | "created_by_user" | "target_store_location" | "items" | "approval_chain" | "corresponding_mis" | "prs" | "on_behalf_of_onboarded_user" | "on_behalf_of_non_onboarded_user"> {
87
+ export interface INestedIndent extends Omit<IIndent, "department" | "company" | "budget_code" | "created_by_user" | "target_store_location" | "items" | "approval_chain" | "corresponding_mis" | "prs" | "on_behalf_of_onboarded_user" | "on_behalf_of_non_onboarded_user" | "metafields"> {
80
88
  }
81
89
  export declare enum IndentStatus {
82
90
  DRAFT = "DRAFT",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.INDENT_ITEM_INCLUDE = exports.IndentInclude = exports.INDENT_PRIORITY_TYPES = exports.IndentStatus = exports.INDENT_TABS = exports.INDENT_LIST_TYPE = exports.INDENT_ON_BEHALF_OF_USER_TYPE = void 0;
3
+ exports.INDENT_ITEM_INCLUDE = exports.IndentInclude = exports.INDENT_PRIORITY_TYPES = exports.IndentStatus = exports.INDENT_METAFIELDS_INCLUDE = exports.INDENT_TABS = exports.INDENT_LIST_TYPE = exports.INDENT_ON_BEHALF_OF_USER_TYPE = void 0;
4
4
  var INDENT_ON_BEHALF_OF_USER_TYPE;
5
5
  (function (INDENT_ON_BEHALF_OF_USER_TYPE) {
6
6
  INDENT_ON_BEHALF_OF_USER_TYPE["ONBOARDED_USER"] = "ONBOARDED_USER";
@@ -18,6 +18,10 @@ var INDENT_TABS;
18
18
  INDENT_TABS["APPROVALS"] = "APPROVALS";
19
19
  INDENT_TABS["LOGS"] = "LOGS";
20
20
  })(INDENT_TABS || (exports.INDENT_TABS = INDENT_TABS = {}));
21
+ var INDENT_METAFIELDS_INCLUDE;
22
+ (function (INDENT_METAFIELDS_INCLUDE) {
23
+ INDENT_METAFIELDS_INCLUDE["items_data"] = "items_data";
24
+ })(INDENT_METAFIELDS_INCLUDE || (exports.INDENT_METAFIELDS_INCLUDE = INDENT_METAFIELDS_INCLUDE = {}));
21
25
  var IndentStatus;
22
26
  (function (IndentStatus) {
23
27
  IndentStatus["DRAFT"] = "DRAFT";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "14.13.1",
3
+ "version": "14.13.2",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",