@jagota/interfaces 1.2.9 → 1.2.11

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.9",
3
+ "version": "1.2.11",
4
4
  "type": "module",
5
5
  "description": "Interfaces for the Jagota Brothers project",
6
6
  "main": "src/index.ts",
@@ -42,6 +42,7 @@ export interface IProspect extends IProspectMini {
42
42
 
43
43
  contacts: IContact[];
44
44
  miniContacts: IContactMini[];
45
+ deliveryAddress: IDeliveryAddress[];
45
46
  }
46
47
 
47
48
  export interface ISpecialRequirements {
@@ -83,6 +84,22 @@ export interface IAddress {
83
84
  longitude: string;
84
85
  }
85
86
 
87
+ export interface IDeliveryAddress extends IAddress {
88
+ seq: string;
89
+ branchName: string;
90
+ defaultBranch: boolean;
91
+ ediBranchCode: string;
92
+ mon: boolean;
93
+ tue: boolean;
94
+ web: boolean;
95
+ thu: boolean;
96
+ fri: boolean;
97
+ sat: boolean;
98
+ sun: boolean;
99
+ timeFrom: string;
100
+ timeTo: string;
101
+ }
102
+
86
103
  export const defaultAddress: IAddress = {
87
104
  custCode: '',
88
105
  country: '',
@@ -101,4 +118,58 @@ export const defaultAddress: IAddress = {
101
118
  fax: '',
102
119
  latitude: '',
103
120
  longitude: ''
121
+ };
122
+
123
+ export const defaultDeliveryAddress: IDeliveryAddress = {
124
+ custCode: '',
125
+ country: '',
126
+ province: '',
127
+ amphur: '',
128
+ tumbol: '',
129
+ postalCode: '',
130
+ region: '',
131
+ buildingNo: '',
132
+ buildingName: '',
133
+ soi: '',
134
+ road: '',
135
+ contactPerson: '',
136
+ mobile: '',
137
+ tel: '',
138
+ fax: '',
139
+ latitude: '',
140
+ longitude: '',
141
+ seq: '',
142
+ branchName: '',
143
+ defaultBranch: false,
144
+ ediBranchCode: '',
145
+ mon: false,
146
+ tue: false,
147
+ web: false,
148
+ thu: false,
149
+ fri: false,
150
+ sat: false,
151
+ sun: false,
152
+ timeFrom: '',
153
+ timeTo: ''
154
+ };
155
+
156
+ export const defaultContact: IContact = {
157
+ custCode: '',
158
+ contact: '',
159
+ email: '',
160
+ mobile: '',
161
+ imgPath: '',
162
+ primary: false,
163
+ position: '',
164
+ positionDesc: '',
165
+ tel: '',
166
+ fax: '',
167
+ remark: '',
168
+ address: '',
169
+ timeContact: '',
170
+ website: '',
171
+ foreigner: false,
172
+ smsCashStatus: false,
173
+ dob: '',
174
+ systemUser: false,
104
175
  };