kcommons 18.25.4 → 18.25.6

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.
@@ -16,6 +16,7 @@ import { INestedEwaybill } from "./common/ulip/ewaybill.typings";
16
16
  import { INestedEwaybillVehicleDetails } from "./common/ulip/ewaybillVehicle.typings";
17
17
  import { INestedEntityApprovalChainEntryLog } from "./entityApprovalChainEntryLog.typings";
18
18
  import { INestedEntityApprovalChainStageNames } from "./entityApprovalChainStageNames.typings";
19
+ import { INestedSupplierInvoice } from "./supplierInvoice.typings";
19
20
  export declare enum ASN_CANCELLED_BY_ENTITY {
20
21
  COMPANY = "COMPANY",
21
22
  VENDOR = "VENDOR"
@@ -99,7 +100,8 @@ export declare enum ASN_INCLUDE {
99
100
  created_by_vendor_user = "created_by_vendor_user",
100
101
  last_updated_by_vendor_user = "last_updated_by_vendor_user",
101
102
  cancelled_by_vendor_user = "cancelled_by_vendor_user",
102
- ewaybill = "ewaybill"
103
+ ewaybill = "ewaybill",
104
+ supplier_invoice = "supplier_invoice"
103
105
  }
104
106
  export interface IASN {
105
107
  id: string;
@@ -205,6 +207,7 @@ export interface IASN {
205
207
  child_ves: INestedVES[] | null;
206
208
  send_by_user: INestedUser | null;
207
209
  ewaybill: INestedEwaybill[] | null;
210
+ supplier_invoice: INestedSupplierInvoice | null;
208
211
  metafields: IASNMetafields | null;
209
212
  }
210
213
  export declare enum ASN_MODE_OF_TRANSPORT_FIELDS {
@@ -260,7 +263,7 @@ export declare const ASN_SEA_TRANSPORT_FIELD_PREFIX = "sea";
260
263
  export declare const ASN_AIR_TRANSPORT_FIELD_PREFIX = "air";
261
264
  export declare const ASN_COURIER_TRANSPORT_FIELD_PREFIX = "courier";
262
265
  export declare const ASN_HAND_DELIVERY_TRANSPORT_FIELD_PREFIX = "hand_delivery";
263
- export interface INestedASN extends Omit<IASN, "created_by_vendor" | "for_company" | "department" | "parent_po" | "parent_pos" | "shipping_store_location" | "items" | "associated_grns" | "cancelled_by_user" | "send_to_vendor_by_user_id" | "send_to_vendor_by_user_at" | "child_ves" | "approval_chain" | "send_by_user" | "asns_sent_to_vendor_by_user" | "created_by_vendor_user" | "last_updated_by_vendor_user" | "cancelled_by_vendor_user" | "metafields"> {
266
+ export interface INestedASN extends Omit<IASN, "created_by_vendor" | "for_company" | "department" | "parent_po" | "parent_pos" | "shipping_store_location" | "items" | "associated_grns" | "cancelled_by_user" | "send_to_vendor_by_user_id" | "send_to_vendor_by_user_at" | "child_ves" | "approval_chain" | "send_by_user" | "asns_sent_to_vendor_by_user" | "created_by_vendor_user" | "last_updated_by_vendor_user" | "cancelled_by_vendor_user" | "supplier_invoice" | "metafields"> {
264
267
  }
265
268
  export interface IASNBaseFilters {
266
269
  po_id?: string;
@@ -275,6 +278,7 @@ export interface IASNBaseFilters {
275
278
  export interface IASNFilters extends IASNBaseFilters {
276
279
  vendor_id?: string;
277
280
  for_ves?: boolean | null;
281
+ for_supplier_invoice?: boolean | null;
278
282
  }
279
283
  export interface IASNFiltersWIthPagination extends IPaginationFilters, IASNFilters {
280
284
  }
@@ -97,6 +97,7 @@ var ASN_INCLUDE;
97
97
  ASN_INCLUDE["last_updated_by_vendor_user"] = "last_updated_by_vendor_user";
98
98
  ASN_INCLUDE["cancelled_by_vendor_user"] = "cancelled_by_vendor_user";
99
99
  ASN_INCLUDE["ewaybill"] = "ewaybill";
100
+ ASN_INCLUDE["supplier_invoice"] = "supplier_invoice";
100
101
  })(ASN_INCLUDE || (exports.ASN_INCLUDE = ASN_INCLUDE = {}));
101
102
  var ASN_MODE_OF_TRANSPORT_FIELDS;
102
103
  (function (ASN_MODE_OF_TRANSPORT_FIELDS) {
@@ -1,4 +1,4 @@
1
- import { VEHICLE_TYPE } from "./asn.typings";
1
+ import { INestedASN, VEHICLE_TYPE } from "./asn.typings";
2
2
  import { IPaginationFilters } from "./common/paginationFilters.typings";
3
3
  import { INestedCompany } from "./company.typings";
4
4
  import { INestedInvoiceItemRecordItem, INestedInvoiceMatchingRecord } from "./company/masters/imr.typings";
@@ -18,7 +18,7 @@ interface ISupplierInvoiceFiltersBase {
18
18
  parent_po_id?: string;
19
19
  include?: SUPPLIER_INVOICE_INCLUDE[] | null;
20
20
  status_array?: SUPPLIER_INVOICE_STATUS[] | null;
21
- metafields_include?: SUPPLIER_INVOICE_METFIELD_INCLUDE[];
21
+ metafields_include?: SUPPLIER_INVOICE_METAFIELD_INCLUDE[];
22
22
  }
23
23
  export interface ISupplierInvoiceFiltersForVendor extends Partial<Pick<ISupplierInvoice, "company_id">>, ISupplierInvoiceFiltersBase {
24
24
  }
@@ -75,6 +75,7 @@ export interface ISupplierInvoice {
75
75
  marked_as_verified_by_user_id: string | null;
76
76
  created_by_vendor_user_id: string | null;
77
77
  created_by_user_id: string | null;
78
+ associated_asn_id: string | null;
78
79
  last_updated_by_user_id: string | null;
79
80
  verified_at: string | null;
80
81
  cancelled_at: string | null;
@@ -91,6 +92,7 @@ export interface ISupplierInvoice {
91
92
  created_by_user: INestedUser | null;
92
93
  last_updated_by_user: INestedUser | null;
93
94
  associated_imr: INestedInvoiceMatchingRecord | null;
95
+ associated_asn: INestedASN | null;
94
96
  target_store_location: INestedStoreLocation | null;
95
97
  invoice_items: ISupplierInvoiceItem[] | null;
96
98
  parent_pos: INestedPo[] | null;
@@ -99,7 +101,7 @@ export interface ISupplierInvoice {
99
101
  associated_ves: INestedVES[] | null;
100
102
  metafields?: ISupplierInvoiceMetafields | null;
101
103
  }
102
- export interface INestedSupplierInvoice extends Omit<ISupplierInvoice, "company" | "vendor" | "company_vendor" | "marked_as_cancelled_by_user" | "marked_as_verified_by_user" | "created_by_vendor_user" | "created_by_user" | "last_updated_by_user" | "invoice_items" | "parent_pos" | "associated_grn" | "associated_mrn" | "associated_imr" | "target_store_location" | "metafields"> {
104
+ export interface INestedSupplierInvoice extends Omit<ISupplierInvoice, "company" | "vendor" | "company_vendor" | "marked_as_cancelled_by_user" | "marked_as_verified_by_user" | "created_by_vendor_user" | "created_by_user" | "last_updated_by_user" | "invoice_items" | "parent_pos" | "associated_grn" | "associated_mrn" | "associated_imr" | "associated_asn" | "target_store_location" | "metafields"> {
103
105
  }
104
106
  export declare enum SUPPLIER_INVOICE_STATUS {
105
107
  RAISED = "RAISED",
@@ -123,6 +125,7 @@ export declare enum SUPPLIER_INVOICE_INCLUDE {
123
125
  associated_ves = "associated_ves",
124
126
  associated_mrn = "associated_mrn",
125
127
  associated_imr = "associated_imr",
128
+ associated_asn = "associated_asn",
126
129
  target_store_location = "target_store_location"
127
130
  }
128
131
  export declare enum SUPPLIER_INVOICE_ITEM_INCLUDE {
@@ -172,7 +175,7 @@ export interface ISupplierInvoiceMetafields {
172
175
  custom_uom_calculations: ICustomUomCalculations[] | null;
173
176
  associated_po_grn_item_junctions: INestedPOGRNItemJunction[] | null;
174
177
  }
175
- export declare enum SUPPLIER_INVOICE_METFIELD_INCLUDE {
178
+ export declare enum SUPPLIER_INVOICE_METAFIELD_INCLUDE {
176
179
  parent_gi_created_by_user = "parent_gi_created_by_user",
177
180
  vendor_contact_info = "vendor_contact_info",
178
181
  associated_po_items = "associated_po_items",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SUPPLIER_INVOICE_METFIELD_INCLUDE = exports.SUPPLIER_INVOICE_MARKED_AS_INVALID_REASONS = exports.SUPPLIER_INVOICE_ITEM_INCLUDE = exports.SUPPLIER_INVOICE_INCLUDE = exports.SUPPLIER_INVOICE_STATUS = void 0;
3
+ exports.SUPPLIER_INVOICE_METAFIELD_INCLUDE = exports.SUPPLIER_INVOICE_MARKED_AS_INVALID_REASONS = exports.SUPPLIER_INVOICE_ITEM_INCLUDE = exports.SUPPLIER_INVOICE_INCLUDE = exports.SUPPLIER_INVOICE_STATUS = void 0;
4
4
  var SUPPLIER_INVOICE_STATUS;
5
5
  (function (SUPPLIER_INVOICE_STATUS) {
6
6
  SUPPLIER_INVOICE_STATUS["RAISED"] = "RAISED";
@@ -25,6 +25,7 @@ var SUPPLIER_INVOICE_INCLUDE;
25
25
  SUPPLIER_INVOICE_INCLUDE["associated_ves"] = "associated_ves";
26
26
  SUPPLIER_INVOICE_INCLUDE["associated_mrn"] = "associated_mrn";
27
27
  SUPPLIER_INVOICE_INCLUDE["associated_imr"] = "associated_imr";
28
+ SUPPLIER_INVOICE_INCLUDE["associated_asn"] = "associated_asn";
28
29
  SUPPLIER_INVOICE_INCLUDE["target_store_location"] = "target_store_location";
29
30
  })(SUPPLIER_INVOICE_INCLUDE || (exports.SUPPLIER_INVOICE_INCLUDE = SUPPLIER_INVOICE_INCLUDE = {}));
30
31
  var SUPPLIER_INVOICE_ITEM_INCLUDE;
@@ -43,12 +44,12 @@ var SUPPLIER_INVOICE_MARKED_AS_INVALID_REASONS;
43
44
  SUPPLIER_INVOICE_MARKED_AS_INVALID_REASONS["STORE_LOCATION_MISMATCH"] = "STORE_LOCATION_MISMATCH";
44
45
  // VENDOR_GSTIN_NOT_RECEIVED = 'VENDOR_GSTIN_NOT_RECEIVED',
45
46
  })(SUPPLIER_INVOICE_MARKED_AS_INVALID_REASONS || (exports.SUPPLIER_INVOICE_MARKED_AS_INVALID_REASONS = SUPPLIER_INVOICE_MARKED_AS_INVALID_REASONS = {}));
46
- var SUPPLIER_INVOICE_METFIELD_INCLUDE;
47
- (function (SUPPLIER_INVOICE_METFIELD_INCLUDE) {
48
- SUPPLIER_INVOICE_METFIELD_INCLUDE["parent_gi_created_by_user"] = "parent_gi_created_by_user";
49
- SUPPLIER_INVOICE_METFIELD_INCLUDE["vendor_contact_info"] = "vendor_contact_info";
50
- SUPPLIER_INVOICE_METFIELD_INCLUDE["associated_po_items"] = "associated_po_items";
51
- SUPPLIER_INVOICE_METFIELD_INCLUDE["custom_uoms"] = "custom_uoms";
52
- SUPPLIER_INVOICE_METFIELD_INCLUDE["custom_uom_calculations"] = "custom_uom_calculations";
53
- SUPPLIER_INVOICE_METFIELD_INCLUDE["associated_po_grn_item_junctions"] = "associated_po_grn_item_junctions";
54
- })(SUPPLIER_INVOICE_METFIELD_INCLUDE || (exports.SUPPLIER_INVOICE_METFIELD_INCLUDE = SUPPLIER_INVOICE_METFIELD_INCLUDE = {}));
47
+ var SUPPLIER_INVOICE_METAFIELD_INCLUDE;
48
+ (function (SUPPLIER_INVOICE_METAFIELD_INCLUDE) {
49
+ SUPPLIER_INVOICE_METAFIELD_INCLUDE["parent_gi_created_by_user"] = "parent_gi_created_by_user";
50
+ SUPPLIER_INVOICE_METAFIELD_INCLUDE["vendor_contact_info"] = "vendor_contact_info";
51
+ SUPPLIER_INVOICE_METAFIELD_INCLUDE["associated_po_items"] = "associated_po_items";
52
+ SUPPLIER_INVOICE_METAFIELD_INCLUDE["custom_uoms"] = "custom_uoms";
53
+ SUPPLIER_INVOICE_METAFIELD_INCLUDE["custom_uom_calculations"] = "custom_uom_calculations";
54
+ SUPPLIER_INVOICE_METAFIELD_INCLUDE["associated_po_grn_item_junctions"] = "associated_po_grn_item_junctions";
55
+ })(SUPPLIER_INVOICE_METAFIELD_INCLUDE || (exports.SUPPLIER_INVOICE_METAFIELD_INCLUDE = SUPPLIER_INVOICE_METAFIELD_INCLUDE = {}));
@@ -2,10 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VALID_CODE_CHARACTERS = void 0;
4
4
  exports.generateID = generateID;
5
- exports.VALID_CODE_CHARACTERS = [
6
- ..."ABCDEFGHIJKLMNOPQRSTUVWXYZ",
7
- ..."1234567890",
8
- ];
5
+ // Excludes visually ambiguous characters (0/O/D/Q, 1/I/L, 2/Z, 5/S, 8/B, 6/G, U/V, etc.)
6
+ exports.VALID_CODE_CHARACTERS = [..."ACEFHJKMNPRTWXY34769"];
9
7
  /**
10
8
  * Generates a secure random code of a given length
11
9
  * using the provided character set.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "18.25.4",
3
+ "version": "18.25.6",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",