kcommons 4.0.1 → 4.2.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.
@@ -0,0 +1,4 @@
1
+ export declare enum FormTypes {
2
+ CREATE = "CREATE",
3
+ EDIT = "EDIT"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FormTypes = void 0;
4
+ var FormTypes;
5
+ (function (FormTypes) {
6
+ FormTypes["CREATE"] = "CREATE";
7
+ FormTypes["EDIT"] = "EDIT";
8
+ })(FormTypes = exports.FormTypes || (exports.FormTypes = {}));
package/build/index.d.ts CHANGED
@@ -19,4 +19,5 @@ export * from "./typings/item.typings";
19
19
  export * from "./constants/permission.constants";
20
20
  export * from "./constants/entityTypes.constants";
21
21
  export * from "./constants/documentStatus.typings";
22
+ export * from "./constants/form.constants";
22
23
  export * from "./typings/quote.typings";
package/build/index.js CHANGED
@@ -33,5 +33,6 @@ __exportStar(require("./typings/item.typings"), exports);
33
33
  __exportStar(require("./constants/permission.constants"), exports);
34
34
  __exportStar(require("./constants/entityTypes.constants"), exports);
35
35
  __exportStar(require("./constants/documentStatus.typings"), exports);
36
+ __exportStar(require("./constants/form.constants"), exports);
36
37
  //Vendor
37
38
  __exportStar(require("./typings/quote.typings"), exports);
@@ -1,46 +1,9 @@
1
1
  import { ICompany } from "./company.typings";
2
+ import { IVendor } from "./vendor.typings";
2
3
  export declare enum CompanyVendorsInclude {
3
4
  COMPANY = "company",
4
5
  VENDOR = "vendor"
5
6
  }
6
- export interface IVendor {
7
- id: string;
8
- gst_no?: string;
9
- nature_of_business: string;
10
- vendor_business_categories: string[];
11
- vendor_trade_name: string;
12
- vendor_legal_name?: string;
13
- constitution_of_business: string;
14
- pincode?: string;
15
- area?: string;
16
- city?: string;
17
- state?: string;
18
- address?: string;
19
- country?: string;
20
- firstname?: string;
21
- middlename?: string;
22
- lastname?: string;
23
- email: string;
24
- contact: string;
25
- designation?: string;
26
- pan_no?: string;
27
- cin?: string;
28
- udyam_aadhar?: string;
29
- bank_account_number?: string;
30
- bank_ifsc_code?: string;
31
- vkraya_id: string;
32
- password: string;
33
- is_profile_complete: boolean;
34
- is_profile_verified: boolean;
35
- is_self_verified: boolean;
36
- profile_img?: string;
37
- tags: string[];
38
- is_enabled: boolean;
39
- is_deleted?: boolean;
40
- deleted_at?: string | null;
41
- created_at?: string | null;
42
- updated_at?: string | null;
43
- }
44
7
  export interface ICompanyVendor {
45
8
  id: string;
46
9
  company_id: string;
@@ -0,0 +1,2 @@
1
+ export interface IDocumentTaxes {
2
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,6 @@
1
+ import { ICompany } from "./company.typings";
2
+ import { INestedRFQ } from "./rfq.typings";
3
+ import { IVendor } from "./vendor.typings";
1
4
  export declare enum QUOTE_STATUS {
2
5
  PENDING = "PENDING",
3
6
  QUOTED = "QUOTED"
@@ -14,3 +17,28 @@ export declare enum QUOTE_ITEM_INCLUDES {
14
17
  item = "item",
15
18
  parent_rfq_item = "parent_rfq_item"
16
19
  }
20
+ export interface IQuote {
21
+ id: string;
22
+ rfq_id: string;
23
+ vendor_id: string;
24
+ company_id: string;
25
+ quote_no: string;
26
+ is_quoted: true;
27
+ delivery_schedule?: string | null;
28
+ payment_terms?: string | null;
29
+ remarks?: string | null;
30
+ terms_and_conditions?: string | null;
31
+ quoted_at?: string | null;
32
+ is_deleted?: boolean | null;
33
+ deleted_at?: string | null;
34
+ created_at?: string | null;
35
+ updated_at?: string | null;
36
+ parent_rfq?: INestedRFQ[] | null;
37
+ vendor?: IVendor | null;
38
+ company?: ICompany | null;
39
+ quote_items?: IQuoteItems[] | null;
40
+ }
41
+ export interface IQuoteInputs extends Omit<IQuote, "id" | "quoted_at" | "is_deleted" | "deleted_at" | "created_at" | "updated_at"> {
42
+ }
43
+ export interface IQuoteItems {
44
+ }
@@ -1,3 +1,49 @@
1
+ import { FormTypes } from "../constants/form.constants";
2
+ import { ICompanyVendor } from "./companyVendors.typings";
3
+ export interface IVendor {
4
+ id: string;
5
+ gst_no?: string;
6
+ nature_of_business: string;
7
+ vendor_business_categories: string[];
8
+ vendor_trade_name: string;
9
+ vendor_legal_name?: string;
10
+ constitution_of_business: string;
11
+ pincode?: string;
12
+ area?: string;
13
+ city?: string;
14
+ state?: string;
15
+ address?: string;
16
+ country?: string;
17
+ firstname?: string;
18
+ middlename?: string;
19
+ lastname?: string;
20
+ email: string;
21
+ contact: string;
22
+ designation?: string;
23
+ pan_no?: string;
24
+ cin?: string;
25
+ udyam_aadhar?: string;
26
+ bank_account_number?: string;
27
+ bank_ifsc_code?: string;
28
+ vkraya_id: string;
29
+ password: string;
30
+ is_profile_complete: boolean;
31
+ is_profile_verified: boolean;
32
+ is_self_verified: boolean;
33
+ profile_img?: string;
34
+ tags: string[];
35
+ is_enabled: boolean;
36
+ is_deleted?: boolean;
37
+ deleted_at?: string | null;
38
+ created_at?: string | null;
39
+ updated_at?: string | null;
40
+ }
41
+ export interface IAddVendorInputs extends Omit<IVendor, "id" | "created_at" | "updated_at" | "is_profile_complete" | "is_profile_verified" | "is_self_verified" | "deleted_at" | "is_deleted" | "vendor" | "vkraya_id" | "password">, Pick<ICompanyVendor, "vendor_code" | "company_id"> {
42
+ type: FormTypes.CREATE;
43
+ }
44
+ export interface IUpdateVendorInputs extends Partial<Omit<IVendor, "type">> {
45
+ type: FormTypes.EDIT;
46
+ }
1
47
  export declare enum VENDOR_INCLUDE {
2
48
  quotes = "quotes",
3
49
  vendor_groups = "vendor_groups",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "4.0.1",
3
+ "version": "4.2.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",