@jagota/interfaces 1.2.6 → 1.2.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jagota/interfaces",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "type": "module",
5
5
  "description": "Interfaces for the Jagota Brothers project",
6
6
  "main": "src/index.ts",
@@ -1,23 +1,23 @@
1
1
  export interface IContactMini {
2
- customer_code: string;
2
+ custCode: string;
3
3
  contact: string;
4
4
  email: string;
5
5
  mobile: string;
6
6
  seq: number;
7
- img_path: string;
7
+ imgPath: string;
8
8
  primary: boolean;
9
9
  }
10
10
  export interface IContact extends IContactMini {
11
11
  position: string;
12
- position_desc: string;
12
+ positionDesc: string;
13
13
  tel: string;
14
14
  fax: string;
15
15
  remark: string;
16
16
  address: string;
17
- time_contact: string;
17
+ timeContact: string;
18
18
  website: string;
19
19
  foreigner: boolean;
20
- sms_cash_status: boolean;
20
+ smsCashStatus: boolean;
21
21
  dob: string;
22
- system_user: boolean;
22
+ systemUser: boolean;
23
23
  }
@@ -17,7 +17,7 @@ export interface IProspectListItem extends IProspectMini {
17
17
  }
18
18
 
19
19
  export interface IProspect extends IProspectMini {
20
- reg_number: string;
20
+ regNumber: string;
21
21
  shopTypeCode: string;
22
22
  socialMediaType: string;
23
23
  facebook: string;
@@ -27,51 +27,55 @@ export interface IProspect extends IProspectMini {
27
27
  custGroupCode: string;
28
28
  custGroupName: string;
29
29
  favourite: boolean;
30
- entity_type_code: string;
31
- entity_type_name: string;
32
- head_office: string;
33
- branch_no: number;
34
- payment_type_id: string;
35
- credit_day: number;
36
- credit_limit: number;
30
+ entityTypeCode: string;
31
+ entityTypeName: string;
32
+ headOffice: string;
33
+ branchNo: number;
34
+ paymentTypeId: string;
35
+ creditDay: number;
36
+ creditLimit: number;
37
37
 
38
- require_po: boolean;
39
- not_over_po_status: boolean;
40
- po_for_acct_dept: boolean;
41
- inform_before_delivery: boolean;
42
- accept_merge_vat: boolean;
43
- accept_cn: boolean;
44
- vat_free_zone: boolean;
45
- transport_to_charge: boolean;
46
- cust_stamp: boolean;
47
- require_3rd: boolean;
48
- by_air: boolean;
49
- by_ground: boolean;
50
- call_before_delivery: boolean;
51
- haccp: boolean;
52
- require_coa: boolean;
53
-
54
- registration_addess: IAddress;
55
- billing_addess: IAddress;
56
- payment_addess: IAddress;
38
+ specialRequirements: ISpecialRequirements;
39
+ registrationAddess: IAddress;
40
+ billingAddess: IAddress;
41
+ paymentAddess: IAddress;
57
42
 
58
43
  contacts: IContact[];
59
44
  miniContacts: IContactMini[];
60
45
  }
61
46
 
47
+ export interface ISpecialRequirements {
48
+ custCode: string;
49
+ requirePo: boolean;
50
+ notOverPoStatus: boolean;
51
+ poForAcctDept: boolean;
52
+ informBeforeDelivery: boolean;
53
+ acceptMergeVat: boolean;
54
+ acceptCN: boolean;
55
+ vatFreeZone: boolean;
56
+ transportToCharge: boolean;
57
+ custStamp: boolean;
58
+ require3rd: boolean;
59
+ byAir: boolean;
60
+ byGround: boolean;
61
+ callBeforeDelivery: boolean;
62
+ haccp: boolean;
63
+ requireCoa: boolean;
64
+ }
65
+
62
66
  export interface IAddress {
63
67
  custCode: string;
64
68
  country: string;
65
69
  province: string;
66
70
  amphur: string;
67
71
  tumbol: string;
68
- postal_code: string;
72
+ postalCode: string;
69
73
  region: string;
70
- building_no: string;
71
- building_name: string;
74
+ buildingNo: string;
75
+ buildingName: string;
72
76
  soi: string;
73
77
  road: string;
74
- contact_person: string;
78
+ contactPerson: string;
75
79
  mobile: string;
76
80
  tel: string;
77
81
  fax: string;
@@ -85,13 +89,13 @@ export const defaultAddress: IAddress = {
85
89
  province: '',
86
90
  amphur: '',
87
91
  tumbol: '',
88
- postal_code: '',
92
+ postalCode: '',
89
93
  region: '',
90
- building_no: '',
91
- building_name: '',
94
+ buildingNo: '',
95
+ buildingName: '',
92
96
  soi: '',
93
97
  road: '',
94
- contact_person: '',
98
+ contactPerson: '',
95
99
  mobile: '',
96
100
  tel: '',
97
101
  fax: '',