kcommons 13.15.0 → 13.15.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.
@@ -0,0 +1,80 @@
1
+ export declare const Base_File_Name: string;
2
+ export declare const companyDocumentUplodPath: {
3
+ grn: {
4
+ parent_doc: (company_id: string) => string;
5
+ item_doc: (company_id: string) => string;
6
+ };
7
+ indent: {
8
+ parent_doc: (company_id: string) => string;
9
+ item_doc: (company_id: string) => string;
10
+ };
11
+ po: {
12
+ parent_doc: (company_id: string) => string;
13
+ item_doc: (company_id: string) => string;
14
+ };
15
+ rfq: {
16
+ parent_doc: (company_id: string) => string;
17
+ item_doc: (company_id: string) => string;
18
+ };
19
+ iad_doc: {
20
+ filepath: (company_id: string) => string;
21
+ };
22
+ istd: {
23
+ parent_doc: (company_id: string) => string;
24
+ item_doc: (company_id: string) => string;
25
+ };
26
+ mi: {
27
+ parent_doc: (company_id: string) => string;
28
+ item_doc: (company_id: string) => string;
29
+ };
30
+ mrn_doc: {
31
+ filepath: (company_id: string) => string;
32
+ };
33
+ pr: {
34
+ parent_doc: (company_id: string) => string;
35
+ item_doc: (company_id: string) => string;
36
+ };
37
+ item: {
38
+ parent_doc: (company_id: string) => string;
39
+ images: (company_id: string) => string;
40
+ };
41
+ user: {
42
+ user_profile: (company_id: string) => string;
43
+ user_signature: (company_id: string) => string;
44
+ };
45
+ company: {
46
+ logo: (company_id: string) => string;
47
+ };
48
+ file: {
49
+ filename: string;
50
+ filepath: string;
51
+ };
52
+ };
53
+ export declare const vendorDocumentUplodPath: {
54
+ item: {
55
+ parent_doc: (vendor_id: string) => string;
56
+ item_image: (vendor_id: string) => string;
57
+ };
58
+ asn: {
59
+ parent_doc: (vendor_id: string) => string;
60
+ asn_eway_bill: (vendor_id: string) => string;
61
+ };
62
+ extra_que_doc: (company_id: string) => string;
63
+ po_invoices: (vendor_id: string) => string;
64
+ quote: {
65
+ parent_doc: (vendor_id: string) => string;
66
+ item_doc: (vendor_id: string) => string;
67
+ };
68
+ vendor_logo: (vendor_id: string) => string;
69
+ };
70
+ export declare const commonDocumentUploadPath: {
71
+ vendor: {
72
+ gst_doc: string;
73
+ cin_doc: string;
74
+ pan_doc: string;
75
+ udyam_doc: string;
76
+ iso_doc: string;
77
+ cancelled_cheque_doc: string;
78
+ company_vendor_additional_info_doc: (company_id: string) => string;
79
+ };
80
+ };
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.commonDocumentUploadPath = exports.vendorDocumentUplodPath = exports.companyDocumentUplodPath = exports.Base_File_Name = void 0;
4
+ exports.Base_File_Name = `attachment_${Date.now()}`;
5
+ exports.companyDocumentUplodPath = {
6
+ grn: {
7
+ parent_doc: (company_id) => `company/${company_id}/grn`,
8
+ item_doc: (company_id) => `company/${company_id}/grn/item`,
9
+ },
10
+ indent: {
11
+ parent_doc: (company_id) => `company/${company_id}/indent`,
12
+ item_doc: (company_id) => `company/${company_id}/indent/item`,
13
+ },
14
+ po: {
15
+ parent_doc: (company_id) => `company/${company_id}/po`,
16
+ item_doc: (company_id) => `company/${company_id}/po/item`,
17
+ },
18
+ rfq: {
19
+ parent_doc: (company_id) => `company/${company_id}/rfq`,
20
+ item_doc: (company_id) => `company/${company_id}/rfq/item`,
21
+ },
22
+ iad_doc: {
23
+ filepath: (company_id) => `company/${company_id}/iad`,
24
+ },
25
+ istd: {
26
+ parent_doc: (company_id) => `company/${company_id}/istd`,
27
+ item_doc: (company_id) => `company/${company_id}/istd/item`,
28
+ },
29
+ mi: {
30
+ parent_doc: (company_id) => `company/${company_id}/mi`,
31
+ item_doc: (company_id) => `company/${company_id}/mi/item`,
32
+ },
33
+ mrn_doc: {
34
+ filepath: (company_id) => `company/${company_id}/mrn`,
35
+ },
36
+ pr: {
37
+ parent_doc: (company_id) => `company/${company_id}/pr`,
38
+ item_doc: (company_id) => `company/${company_id}/pr/item`,
39
+ },
40
+ item: {
41
+ parent_doc: (company_id) => `company/${company_id}/item`,
42
+ images: (company_id) => `company/${company_id}/item/images`,
43
+ },
44
+ user: {
45
+ user_profile: (company_id) => `company/${company_id}/users`,
46
+ user_signature: (company_id) => `company/${company_id}/users`,
47
+ },
48
+ company: {
49
+ logo: (company_id) => `company/${company_id}/assets`,
50
+ },
51
+ file: {
52
+ filename: `errors`,
53
+ filepath: `item_errors_${Date.now()}.xlsx`,
54
+ },
55
+ };
56
+ exports.vendorDocumentUplodPath = {
57
+ item: {
58
+ parent_doc: (vendor_id) => `vendor/${vendor_id}/item`,
59
+ item_image: (vendor_id) => `vendor/${vendor_id}/item/image`,
60
+ },
61
+ asn: {
62
+ parent_doc: (vendor_id) => `vendor/${vendor_id}/asn`,
63
+ asn_eway_bill: (vendor_id) => `vendor/${vendor_id}/asn/eway`,
64
+ },
65
+ extra_que_doc: (company_id) => `company/${company_id}/extra-form`,
66
+ po_invoices: (vendor_id) => `vendor/${vendor_id}/po-invoices`,
67
+ quote: {
68
+ parent_doc: (vendor_id) => `vendor/${vendor_id}/quote`,
69
+ item_doc: (vendor_id) => `vendor/${vendor_id}/quote/item`,
70
+ },
71
+ vendor_logo: (vendor_id) => `vendor/${vendor_id}/assets`,
72
+ };
73
+ exports.commonDocumentUploadPath = {
74
+ vendor: {
75
+ gst_doc: `vendor/gst`,
76
+ cin_doc: `vendor/cin`,
77
+ pan_doc: `vendor/pan`,
78
+ udyam_doc: `vendor/udyam`,
79
+ iso_doc: `vendor/iso`,
80
+ cancelled_cheque_doc: `vendor/cancelled_cheque`,
81
+ company_vendor_additional_info_doc: (company_id) => `company/${company_id}/extra-form`,
82
+ },
83
+ };
@@ -1,6 +1,6 @@
1
- import { INestedApprovalChainEntry } from "./approvalChain.typings";
2
1
  import { IPaginationFilters } from "./common/paginationFilters.typings";
3
2
  import { INestedCompany } from "./company.typings";
3
+ import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
4
4
  import { INestedGRN, INestedGRNItem } from "./grn.typings";
5
5
  import { INestedItem } from "./item.typings";
6
6
  import { INestedPo } from "./po.typings";
@@ -76,7 +76,7 @@ export interface IASN {
76
76
  items: INestedASNItem[] | null;
77
77
  associated_grns: INestedGRN[] | null;
78
78
  cancelled_by_user: INestedUser | null;
79
- approval_chain: INestedApprovalChainEntry | null;
79
+ approval_chain: INestedEntityApprovalChainEntry[] | null;
80
80
  asns_sent_to_vendor_by_user: INestedUser | null;
81
81
  }
82
82
  export interface INestedASN extends Omit<IASN, "created_by_vendor" | "for_company" | "parent_po" | "shipping_store_location" | "items" | "associated_grns" | "cancelled_by_user" | "send_to_vendor_by_user_id" | "send_to_vendor_by_user_at"> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "13.15.0",
3
+ "version": "13.15.2",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",