@nerdjs/sales-kit 2.0.38 → 2.0.40

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.
Files changed (262) hide show
  1. package/dist/entities/appointmentArrival/appointmentArrival.d.ts +36 -0
  2. package/dist/entities/appointmentArrival/appointmentArrival.js +90 -0
  3. package/dist/entities/appointmentArrival/appointmentArrival.js.map +1 -0
  4. package/dist/entities/appointmentArrival/helper.d.ts +5 -0
  5. package/dist/entities/appointmentArrival/helper.js +16 -0
  6. package/dist/entities/appointmentArrival/helper.js.map +1 -0
  7. package/dist/entities/appointmentArrival/index.d.ts +2 -0
  8. package/dist/entities/appointmentArrival/index.js +3 -0
  9. package/dist/entities/appointmentArrival/index.js.map +1 -0
  10. package/dist/entities/carrierTender/carrierTender.d.ts +69 -0
  11. package/dist/entities/carrierTender/carrierTender.js +160 -0
  12. package/dist/entities/carrierTender/carrierTender.js.map +1 -0
  13. package/dist/entities/carrierTender/helper.d.ts +5 -0
  14. package/dist/entities/carrierTender/helper.js +16 -0
  15. package/dist/entities/carrierTender/helper.js.map +1 -0
  16. package/dist/entities/carrierTender/index.d.ts +2 -0
  17. package/dist/entities/carrierTender/index.js +3 -0
  18. package/dist/entities/carrierTender/index.js.map +1 -0
  19. package/dist/entities/company/company.d.ts +17 -0
  20. package/dist/entities/company/company.js +51 -0
  21. package/dist/entities/company/company.js.map +1 -0
  22. package/dist/entities/company/helper.d.ts +5 -0
  23. package/dist/entities/company/helper.js +16 -0
  24. package/dist/entities/company/helper.js.map +1 -0
  25. package/dist/entities/company/index.d.ts +2 -0
  26. package/dist/entities/company/index.js +3 -0
  27. package/dist/entities/company/index.js.map +1 -0
  28. package/dist/entities/contact/contact.d.ts +19 -0
  29. package/dist/entities/contact/contact.js +55 -0
  30. package/dist/entities/contact/contact.js.map +1 -0
  31. package/dist/entities/contact/helper.d.ts +5 -0
  32. package/dist/entities/contact/helper.js +16 -0
  33. package/dist/entities/contact/helper.js.map +1 -0
  34. package/dist/entities/contact/index.d.ts +2 -0
  35. package/dist/entities/contact/index.js +3 -0
  36. package/dist/entities/contact/index.js.map +1 -0
  37. package/dist/entities/customerV1/customerV1.d.ts +138 -0
  38. package/dist/entities/customerV1/customerV1.js +278 -0
  39. package/dist/entities/customerV1/customerV1.js.map +1 -0
  40. package/dist/entities/customerV1/helper.d.ts +5 -0
  41. package/dist/entities/customerV1/helper.js +16 -0
  42. package/dist/entities/customerV1/helper.js.map +1 -0
  43. package/dist/entities/customerV1/index.d.ts +2 -0
  44. package/dist/entities/customerV1/index.js +3 -0
  45. package/dist/entities/customerV1/index.js.map +1 -0
  46. package/dist/entities/customersAccessorial/customersAccessorial.d.ts +20 -0
  47. package/dist/entities/customersAccessorial/customersAccessorial.js +58 -0
  48. package/dist/entities/customersAccessorial/customersAccessorial.js.map +1 -0
  49. package/dist/entities/customersAccessorial/helper.d.ts +5 -0
  50. package/dist/entities/customersAccessorial/helper.js +16 -0
  51. package/dist/entities/customersAccessorial/helper.js.map +1 -0
  52. package/dist/entities/customersAccessorial/index.d.ts +2 -0
  53. package/dist/entities/customersAccessorial/index.js +3 -0
  54. package/dist/entities/customersAccessorial/index.js.map +1 -0
  55. package/dist/entities/flag/flag.d.ts +9 -0
  56. package/dist/entities/flag/flag.js +35 -0
  57. package/dist/entities/flag/flag.js.map +1 -0
  58. package/dist/entities/flag/helper.d.ts +5 -0
  59. package/dist/entities/flag/helper.js +16 -0
  60. package/dist/entities/flag/helper.js.map +1 -0
  61. package/dist/entities/flag/index.d.ts +2 -0
  62. package/dist/entities/flag/index.js +3 -0
  63. package/dist/entities/flag/index.js.map +1 -0
  64. package/dist/entities/hosLog/helper.d.ts +5 -0
  65. package/dist/entities/hosLog/helper.js +16 -0
  66. package/dist/entities/hosLog/helper.js.map +1 -0
  67. package/dist/entities/hosLog/hosLog.d.ts +38 -0
  68. package/dist/entities/hosLog/hosLog.js +93 -0
  69. package/dist/entities/hosLog/hosLog.js.map +1 -0
  70. package/dist/entities/hosLog/index.d.ts +2 -0
  71. package/dist/entities/hosLog/index.js +3 -0
  72. package/dist/entities/hosLog/index.js.map +1 -0
  73. package/dist/entities/index.d.ts +17 -0
  74. package/dist/entities/index.js +17 -0
  75. package/dist/entities/index.js.map +1 -1
  76. package/dist/entities/loadChange/helper.d.ts +5 -0
  77. package/dist/entities/loadChange/helper.js +16 -0
  78. package/dist/entities/loadChange/helper.js.map +1 -0
  79. package/dist/entities/loadChange/index.d.ts +2 -0
  80. package/dist/entities/loadChange/index.js +3 -0
  81. package/dist/entities/loadChange/index.js.map +1 -0
  82. package/dist/entities/loadChange/loadChange.d.ts +11 -0
  83. package/dist/entities/loadChange/loadChange.js +39 -0
  84. package/dist/entities/loadChange/loadChange.js.map +1 -0
  85. package/dist/entities/location/location.js +2 -2
  86. package/dist/entities/location/location.js.map +1 -1
  87. package/dist/entities/notification/helper.d.ts +5 -0
  88. package/dist/entities/notification/helper.js +16 -0
  89. package/dist/entities/notification/helper.js.map +1 -0
  90. package/dist/entities/notification/index.d.ts +2 -0
  91. package/dist/entities/notification/index.js +3 -0
  92. package/dist/entities/notification/index.js.map +1 -0
  93. package/dist/entities/notification/notification.d.ts +14 -0
  94. package/dist/entities/notification/notification.js +45 -0
  95. package/dist/entities/notification/notification.js.map +1 -0
  96. package/dist/entities/notificationSubscription/helper.d.ts +5 -0
  97. package/dist/entities/notificationSubscription/helper.js +16 -0
  98. package/dist/entities/notificationSubscription/helper.js.map +1 -0
  99. package/dist/entities/notificationSubscription/index.d.ts +2 -0
  100. package/dist/entities/notificationSubscription/index.js +3 -0
  101. package/dist/entities/notificationSubscription/index.js.map +1 -0
  102. package/dist/entities/notificationSubscription/notificationSubscription.d.ts +14 -0
  103. package/dist/entities/notificationSubscription/notificationSubscription.js +46 -0
  104. package/dist/entities/notificationSubscription/notificationSubscription.js.map +1 -0
  105. package/dist/entities/notificationUserSubscription/helper.d.ts +5 -0
  106. package/dist/entities/notificationUserSubscription/helper.js +16 -0
  107. package/dist/entities/notificationUserSubscription/helper.js.map +1 -0
  108. package/dist/entities/notificationUserSubscription/index.d.ts +2 -0
  109. package/dist/entities/notificationUserSubscription/index.js +3 -0
  110. package/dist/entities/notificationUserSubscription/index.js.map +1 -0
  111. package/dist/entities/notificationUserSubscription/notificationUserSubscription.d.ts +15 -0
  112. package/dist/entities/notificationUserSubscription/notificationUserSubscription.js +47 -0
  113. package/dist/entities/notificationUserSubscription/notificationUserSubscription.js.map +1 -0
  114. package/dist/entities/person/helper.d.ts +5 -0
  115. package/dist/entities/person/helper.js +16 -0
  116. package/dist/entities/person/helper.js.map +1 -0
  117. package/dist/entities/person/index.d.ts +2 -0
  118. package/dist/entities/person/index.js +3 -0
  119. package/dist/entities/person/index.js.map +1 -0
  120. package/dist/entities/person/person.d.ts +46 -0
  121. package/dist/entities/person/person.js +108 -0
  122. package/dist/entities/person/person.js.map +1 -0
  123. package/dist/entities/quoteRateRecord/helper.d.ts +5 -0
  124. package/dist/entities/quoteRateRecord/helper.js +16 -0
  125. package/dist/entities/quoteRateRecord/helper.js.map +1 -0
  126. package/dist/entities/quoteRateRecord/index.d.ts +2 -0
  127. package/dist/entities/quoteRateRecord/index.js +3 -0
  128. package/dist/entities/quoteRateRecord/index.js.map +1 -0
  129. package/dist/entities/quoteRateRecord/quoteRateRecord.d.ts +50 -0
  130. package/dist/entities/quoteRateRecord/quoteRateRecord.js +121 -0
  131. package/dist/entities/quoteRateRecord/quoteRateRecord.js.map +1 -0
  132. package/dist/entities/rateReview/helper.d.ts +5 -0
  133. package/dist/entities/rateReview/helper.js +16 -0
  134. package/dist/entities/rateReview/helper.js.map +1 -0
  135. package/dist/entities/rateReview/index.d.ts +2 -0
  136. package/dist/entities/rateReview/index.js +3 -0
  137. package/dist/entities/rateReview/index.js.map +1 -0
  138. package/dist/entities/rateReview/rateReview.d.ts +49 -0
  139. package/dist/entities/rateReview/rateReview.js +116 -0
  140. package/dist/entities/rateReview/rateReview.js.map +1 -0
  141. package/dist/entities/unitV1/helper.d.ts +5 -0
  142. package/dist/entities/unitV1/helper.js +16 -0
  143. package/dist/entities/unitV1/helper.js.map +1 -0
  144. package/dist/entities/unitV1/index.d.ts +2 -0
  145. package/dist/entities/unitV1/index.js +3 -0
  146. package/dist/entities/unitV1/index.js.map +1 -0
  147. package/dist/entities/unitV1/unit.d.ts +11 -0
  148. package/dist/entities/unitV1/unit.js +39 -0
  149. package/dist/entities/unitV1/unit.js.map +1 -0
  150. package/dist/entities/workflowEvent/helper.d.ts +5 -0
  151. package/dist/entities/workflowEvent/helper.js +16 -0
  152. package/dist/entities/workflowEvent/helper.js.map +1 -0
  153. package/dist/entities/workflowEvent/index.d.ts +2 -0
  154. package/dist/entities/workflowEvent/index.js +3 -0
  155. package/dist/entities/workflowEvent/index.js.map +1 -0
  156. package/dist/entities/workflowEvent/workflowEvent.d.ts +34 -0
  157. package/dist/entities/workflowEvent/workflowEvent.js +87 -0
  158. package/dist/entities/workflowEvent/workflowEvent.js.map +1 -0
  159. package/dist/hooks/customer/customerAutocomplete.d.ts +7 -7
  160. package/dist/hooks/customer/customerAutocomplete.js +12 -13
  161. package/dist/hooks/customer/customerAutocomplete.js.map +1 -1
  162. package/dist/hooks/locationsForm/locationsForm.js +11 -6
  163. package/dist/hooks/locationsForm/locationsForm.js.map +1 -1
  164. package/dist/hooks/locationsForm/locationsFormSales.js +17 -13
  165. package/dist/hooks/locationsForm/locationsFormSales.js.map +1 -1
  166. package/dist/hooks/quote/form.js +21 -8
  167. package/dist/hooks/quote/form.js.map +1 -1
  168. package/dist/hooks/quote/helpers.d.ts +21 -10
  169. package/dist/hooks/quote/helpers.js +29 -10
  170. package/dist/hooks/quote/helpers.js.map +1 -1
  171. package/dist/hooks/quote/result.js +1 -0
  172. package/dist/hooks/quote/result.js.map +1 -1
  173. package/dist/hooks/tender/form.js +11 -16
  174. package/dist/hooks/tender/form.js.map +1 -1
  175. package/dist/hooks/tender/helpers.d.ts +4 -4
  176. package/dist/hooks/tender/helpers.js +1 -1
  177. package/dist/hooks/tender/helpers.js.map +1 -1
  178. package/dist/redux/api/salesApi.d.ts +1 -1
  179. package/dist/redux/api/salesApi.js +9 -0
  180. package/dist/redux/api/salesApi.js.map +1 -1
  181. package/dist/redux/appointmentIssue/appointmentIssueEndpoints.d.ts +10 -10
  182. package/dist/redux/appointmentIssueCategory/appointmentIssueCategoryEndpoints.d.ts +11 -11
  183. package/dist/redux/appointmentIssueSubcategory/appointmentIssueSubcategoryEndpoints.d.ts +10 -10
  184. package/dist/redux/appointmentNote/appointmentNoteEndpoints.d.ts +10 -10
  185. package/dist/redux/appointmentNoteType/appointmentNoteTypeEndpoints.d.ts +10 -10
  186. package/dist/redux/archerFile/archerFileEndpoints.d.ts +20 -8
  187. package/dist/redux/archerFile/archerFileEndpoints.js +18 -3
  188. package/dist/redux/archerFile/archerFileEndpoints.js.map +1 -1
  189. package/dist/redux/carrierName/carrierNameEndpoints.d.ts +10 -10
  190. package/dist/redux/commodityV1/commodityV1Endpoints.d.ts +11 -11
  191. package/dist/redux/contact/contactEndpoints.d.ts +26 -0
  192. package/dist/redux/contact/contactEndpoints.js +54 -0
  193. package/dist/redux/contact/contactEndpoints.js.map +1 -0
  194. package/dist/redux/contact/index.d.ts +2 -0
  195. package/dist/redux/contact/index.js +3 -0
  196. package/dist/redux/contact/index.js.map +1 -0
  197. package/dist/redux/customer/customerEndpoints.d.ts +27 -19
  198. package/dist/redux/customer/customerEndpoints.js +7 -7
  199. package/dist/redux/customer/customerEndpoints.js.map +1 -1
  200. package/dist/redux/customersAccessorial/customersAccessorialEndpoints.d.ts +24 -0
  201. package/dist/redux/customersAccessorial/customersAccessorialEndpoints.js +56 -0
  202. package/dist/redux/customersAccessorial/customersAccessorialEndpoints.js.map +1 -0
  203. package/dist/redux/customersAccessorial/index.d.ts +2 -0
  204. package/dist/redux/customersAccessorial/index.js +3 -0
  205. package/dist/redux/customersAccessorial/index.js.map +1 -0
  206. package/dist/redux/driverName/driverNameEndpoints.d.ts +9 -9
  207. package/dist/redux/flag/flagEndpoints.d.ts +24 -0
  208. package/dist/redux/flag/flagEndpoints.js +64 -0
  209. package/dist/redux/flag/flagEndpoints.js.map +1 -0
  210. package/dist/redux/flag/index.d.ts +2 -0
  211. package/dist/redux/flag/index.js +3 -0
  212. package/dist/redux/flag/index.js.map +1 -0
  213. package/dist/redux/holiday/holidayEndpoints.d.ts +10 -10
  214. package/dist/redux/index.d.ts +8 -0
  215. package/dist/redux/index.js +8 -0
  216. package/dist/redux/index.js.map +1 -1
  217. package/dist/redux/load/loadEndpoints.d.ts +10 -10
  218. package/dist/redux/loadAdjustment/loadAdjustmentEndpoints.d.ts +10 -10
  219. package/dist/redux/loadAdjustmentV1/loadAdjustmentV1Endpoints.d.ts +10 -10
  220. package/dist/redux/loadV1/loadV1Endpoints.d.ts +79 -18
  221. package/dist/redux/loadV1/loadV1Endpoints.js +64 -1
  222. package/dist/redux/loadV1/loadV1Endpoints.js.map +1 -1
  223. package/dist/redux/location/locationEndpoints.d.ts +14 -14
  224. package/dist/redux/locationV1/locationV1Endpoints.d.ts +19 -19
  225. package/dist/redux/nmfcClass/nmfcClassEndpoints.d.ts +9 -9
  226. package/dist/redux/nodeName/nodeNameEndpoints.d.ts +10 -10
  227. package/dist/redux/notification/index.d.ts +2 -0
  228. package/dist/redux/notification/index.js +3 -0
  229. package/dist/redux/notification/index.js.map +1 -0
  230. package/dist/redux/notification/notificationEndpoints.d.ts +36 -0
  231. package/dist/redux/notification/notificationEndpoints.js +81 -0
  232. package/dist/redux/notification/notificationEndpoints.js.map +1 -0
  233. package/dist/redux/person/index.d.ts +2 -0
  234. package/dist/redux/person/index.js +3 -0
  235. package/dist/redux/person/index.js.map +1 -0
  236. package/dist/redux/person/personEndpoints.d.ts +34 -0
  237. package/dist/redux/person/personEndpoints.js +67 -0
  238. package/dist/redux/person/personEndpoints.js.map +1 -0
  239. package/dist/redux/personName/personNameEndpoints.d.ts +10 -10
  240. package/dist/redux/quote/quoteEndpoints.d.ts +19 -19
  241. package/dist/redux/quote/quoteHooks.d.ts +2 -2
  242. package/dist/redux/quoteAccessorial/quoteAccessorialEndpoints.d.ts +9 -9
  243. package/dist/redux/quoteAccessorialV1/quoteAccessorialV1Endpoints.d.ts +10 -10
  244. package/dist/redux/rateReview/index.d.ts +2 -0
  245. package/dist/redux/rateReview/index.js +3 -0
  246. package/dist/redux/rateReview/index.js.map +1 -0
  247. package/dist/redux/rateReview/rateReviewEndpoints.d.ts +32 -0
  248. package/dist/redux/rateReview/rateReviewEndpoints.js +65 -0
  249. package/dist/redux/rateReview/rateReviewEndpoints.js.map +1 -0
  250. package/dist/redux/shipcon/shipconEndpoints.d.ts +10 -10
  251. package/dist/redux/shipconV1/shipconV1Endpoints.d.ts +14 -14
  252. package/dist/redux/tender/tenderEndpoints.d.ts +9 -9
  253. package/dist/redux/trailerAvailability/customerEndpoints.d.ts +4 -4
  254. package/dist/redux/types.d.ts +2 -2
  255. package/dist/redux/unitV1/index.d.ts +2 -0
  256. package/dist/redux/unitV1/index.js +3 -0
  257. package/dist/redux/unitV1/index.js.map +1 -0
  258. package/dist/redux/unitV1/unitV1Endpoints.d.ts +24 -0
  259. package/dist/redux/unitV1/unitV1Endpoints.js +64 -0
  260. package/dist/redux/unitV1/unitV1Endpoints.js.map +1 -0
  261. package/dist/redux/userNoteV1/userNoteV1Endpoints.d.ts +10 -10
  262. package/package.json +2 -1
@@ -0,0 +1,5 @@
1
+ import Contact_Entity from "./contact";
2
+ export default class Contact extends Contact_Entity {
3
+ static fromList(contactsJSON: unknown): Array<Contact>;
4
+ toJson(): string;
5
+ }
@@ -0,0 +1,16 @@
1
+ import Contact_Entity from "./contact";
2
+ export default class Contact extends Contact_Entity {
3
+ static fromList(contactsJSON) {
4
+ const contacts = [];
5
+ if (contactsJSON)
6
+ Array.isArray(contactsJSON) &&
7
+ contactsJSON.forEach((contactJSON) => {
8
+ contacts.push(new Contact(contactJSON));
9
+ });
10
+ return contacts;
11
+ }
12
+ toJson() {
13
+ return JSON.stringify(this);
14
+ }
15
+ }
16
+ //# sourceMappingURL=helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/entities/contact/helper.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,WAAW,CAAC;AACvC,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,cAAc;IACjD,MAAM,CAAC,QAAQ,CAAC,YAAqB;QACnC,MAAM,QAAQ,GAAc,EAAE,CAAC;QAC/B,IAAI,YAAY;YACd,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC;gBACzB,YAAY,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE;oBACnC,QAAQ,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;gBAC1C,CAAC,CAAC,CAAC;QACP,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export { default as Contact } from "./helper";
2
+ export { default as Contact_Entity } from "./contact";
@@ -0,0 +1,3 @@
1
+ export { default as Contact } from "./helper";
2
+ export { default as Contact_Entity } from "./contact";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/contact/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,138 @@
1
+ export default class CustomerV1_Entity {
2
+ static requiredFields: string[];
3
+ constructor(customerV1Json?: unknown);
4
+ id: number;
5
+ company_id?: number;
6
+ discount?: string;
7
+ cwa_code?: string;
8
+ telephone?: string;
9
+ email?: string;
10
+ reference_code?: string;
11
+ deleted?: boolean;
12
+ telephone800?: string;
13
+ fax?: string;
14
+ disp_contact?: string;
15
+ ap_contact?: string;
16
+ ar_contact?: string;
17
+ other_contact?: string;
18
+ federal_id?: string;
19
+ mcid?: string;
20
+ scac?: string;
21
+ credit_on_hold?: boolean;
22
+ credit_limit?: number;
23
+ credit_term_id?: number;
24
+ termination_date?: string;
25
+ date_entered?: string;
26
+ contract_and_spot?: boolean;
27
+ fuel_pricing_interval?: number;
28
+ fuel_pricing_interval_type?: string;
29
+ fuel_pricing_basis_type?: string;
30
+ fuel_update_type?: string;
31
+ use_fuel_data_date?: boolean;
32
+ block_negative_adjustments?: boolean;
33
+ preferred_carrier_type?: string;
34
+ customer_status_id?: number;
35
+ logistics_service?: string;
36
+ bill_to_company_id?: number;
37
+ receive_invoice_edi?: boolean;
38
+ receive_invoice_email?: boolean;
39
+ receive_invoice_mail?: boolean;
40
+ invoice_email?: string;
41
+ drop_customer?: boolean;
42
+ skip_credit_check?: boolean;
43
+ aging_import_date?: string;
44
+ account_number?: string;
45
+ accounting_managing_system?: string;
46
+ sales_managing_system?: string;
47
+ inactive_date?: string;
48
+ billing_notes?: string;
49
+ receive_invoice_upload?: boolean;
50
+ pod_email?: string;
51
+ billing_line1?: string;
52
+ billing_line2?: string;
53
+ billing_city?: string;
54
+ billing_state?: string;
55
+ billing_zip?: string;
56
+ approved_by_person_id?: number;
57
+ approved_date?: string;
58
+ notify_accounting?: boolean;
59
+ customer_type?: string;
60
+ sms_login_id?: string;
61
+ sms_password?: string;
62
+ ams_login_id?: string;
63
+ ams_password?: string;
64
+ czarlite_discount?: number;
65
+ rate_ware_xl_active_tariff_id?: number;
66
+ receive_statement_email?: boolean;
67
+ statement_email?: string;
68
+ do_not_contact?: boolean;
69
+ no_accessorials?: boolean;
70
+ has_contract?: boolean;
71
+ last_contract_date?: string;
72
+ accessorial_on_file?: boolean;
73
+ coi_sent_date?: string;
74
+ credit_notes?: string;
75
+ require_preschedule?: boolean;
76
+ inactivity_hold?: boolean;
77
+ pcmiler_version?: string;
78
+ pcmiler_routing?: string;
79
+ pcmiler_class?: string;
80
+ pcmiler_borders?: string;
81
+ credit_hold_message?: string;
82
+ csr_notes?: string;
83
+ last_credit_hold_email?: string;
84
+ last_inactivity_hold_email?: string;
85
+ customer_rank?: string;
86
+ customer_rank_based_on?: string;
87
+ tms_psr?: boolean;
88
+ no_mileage_round?: boolean;
89
+ pcmiler_highway_only?: string;
90
+ credit_watch?: boolean;
91
+ ignore_kpi?: boolean;
92
+ ach_payment?: boolean;
93
+ mileage_round?: string;
94
+ multi_invoice?: boolean;
95
+ os_d_email_check?: boolean;
96
+ os_d_email?: string;
97
+ os_d_call_check?: boolean;
98
+ os_d_phone?: string;
99
+ os_d_tms?: string;
100
+ os_d_login?: string;
101
+ os_d_password?: string;
102
+ os_d_notes?: string;
103
+ czarlite_min?: number;
104
+ combine_invoice_files?: boolean;
105
+ city_to_city?: boolean;
106
+ tms_acc?: boolean;
107
+ acc_w_o?: boolean;
108
+ invoice_first_last_stops?: boolean;
109
+ first_shipment_date?: string;
110
+ last_shipment_date?: string;
111
+ product_type?: string;
112
+ ar_tms?: boolean;
113
+ name?: string;
114
+ line1?: string;
115
+ city?: string;
116
+ state?: string;
117
+ zip?: string;
118
+ notes?: string;
119
+ credit_term_name?: string;
120
+ total_debits?: number;
121
+ total_credits?: number;
122
+ westbound_tier?: number;
123
+ eastbound_tier?: number;
124
+ billing_name?: string;
125
+ get_customer_credit?: number;
126
+ is_active?: boolean;
127
+ status?: string;
128
+ }
129
+ export type CustomerPeople_Entity = {
130
+ active?: boolean;
131
+ company_id?: number;
132
+ email?: string;
133
+ first_name?: string;
134
+ id: number;
135
+ last_name?: string;
136
+ name?: string;
137
+ phone_number?: string;
138
+ };
@@ -0,0 +1,278 @@
1
+ /**
2
+ * CustomerV1_Entity type guard.
3
+ *
4
+ * @param {any} customerV1Json CustomerV1 object from API
5
+ * @returns {boolean} Return true if type is CustomerV1_Entity
6
+ */
7
+ function validator(customerV1Json) {
8
+ if (typeof customerV1Json === "object" && customerV1Json != null) {
9
+ CustomerV1_Entity.requiredFields.forEach((element) => {
10
+ if (!Object.keys(customerV1Json).includes(element))
11
+ throw new Error(`Field ${element} is null or undefined`);
12
+ });
13
+ }
14
+ return true;
15
+ }
16
+ export default class CustomerV1_Entity {
17
+ static requiredFields = ["id"];
18
+ constructor(customerV1Json) {
19
+ if (validator(customerV1Json)) {
20
+ this.id = customerV1Json.id;
21
+ this.company_id = customerV1Json.company_id;
22
+ this.discount = customerV1Json.discount;
23
+ this.cwa_code = customerV1Json.cwa_code;
24
+ this.telephone = customerV1Json.telephone;
25
+ this.email = customerV1Json.email;
26
+ this.reference_code = customerV1Json.reference_code;
27
+ this.deleted = customerV1Json.deleted;
28
+ this.telephone800 = customerV1Json.telephone800;
29
+ this.fax = customerV1Json.fax;
30
+ this.disp_contact = customerV1Json.disp_contact;
31
+ this.ap_contact = customerV1Json.ap_contact;
32
+ this.ar_contact = customerV1Json.ar_contact;
33
+ this.other_contact = customerV1Json.other_contact;
34
+ this.federal_id = customerV1Json.federal_id;
35
+ this.mcid = customerV1Json.mcid;
36
+ this.scac = customerV1Json.scac;
37
+ this.credit_on_hold = customerV1Json.credit_on_hold;
38
+ this.credit_limit = customerV1Json.credit_limit;
39
+ this.credit_term_id = customerV1Json.credit_term_id;
40
+ this.termination_date = customerV1Json.termination_date;
41
+ this.date_entered = customerV1Json.date_entered;
42
+ this.contract_and_spot = customerV1Json.contract_and_spot;
43
+ this.fuel_pricing_interval = customerV1Json.fuel_pricing_interval;
44
+ this.fuel_pricing_interval_type =
45
+ customerV1Json.fuel_pricing_interval_type;
46
+ this.fuel_pricing_basis_type = customerV1Json.fuel_pricing_basis_type;
47
+ this.fuel_update_type = customerV1Json.fuel_update_type;
48
+ this.use_fuel_data_date = customerV1Json.use_fuel_data_date;
49
+ this.block_negative_adjustments =
50
+ customerV1Json.block_negative_adjustments;
51
+ this.preferred_carrier_type = customerV1Json.preferred_carrier_type;
52
+ this.customer_status_id = customerV1Json.customer_status_id;
53
+ this.logistics_service = customerV1Json.logistics_service;
54
+ this.bill_to_company_id = customerV1Json.bill_to_company_id;
55
+ this.receive_invoice_edi = customerV1Json.receive_invoice_edi;
56
+ this.receive_invoice_email = customerV1Json.receive_invoice_email;
57
+ this.receive_invoice_mail = customerV1Json.receive_invoice_mail;
58
+ this.invoice_email = customerV1Json.invoice_email;
59
+ this.drop_customer = customerV1Json.drop_customer;
60
+ this.skip_credit_check = customerV1Json.skip_credit_check;
61
+ this.aging_import_date = customerV1Json.aging_import_date;
62
+ this.account_number = customerV1Json.account_number;
63
+ this.accounting_managing_system =
64
+ customerV1Json.accounting_managing_system;
65
+ this.sales_managing_system = customerV1Json.sales_managing_system;
66
+ this.inactive_date = customerV1Json.inactive_date;
67
+ this.billing_notes = customerV1Json.billing_notes;
68
+ this.receive_invoice_upload = customerV1Json.receive_invoice_upload;
69
+ this.pod_email = customerV1Json.pod_email;
70
+ this.billing_line1 = customerV1Json.billing_line1;
71
+ this.billing_line2 = customerV1Json.billing_line2;
72
+ this.billing_city = customerV1Json.billing_city;
73
+ this.billing_state = customerV1Json.billing_state;
74
+ this.billing_zip = customerV1Json.billing_zip;
75
+ this.approved_by_person_id = customerV1Json.approved_by_person_id;
76
+ this.approved_date = customerV1Json.approved_date;
77
+ this.notify_accounting = customerV1Json.notify_accounting;
78
+ this.customer_type = customerV1Json.customer_type;
79
+ this.sms_login_id = customerV1Json.sms_login_id;
80
+ this.sms_password = customerV1Json.sms_password;
81
+ this.ams_login_id = customerV1Json.ams_login_id;
82
+ this.ams_password = customerV1Json.ams_password;
83
+ this.czarlite_discount = customerV1Json.czarlite_discount;
84
+ this.rate_ware_xl_active_tariff_id =
85
+ customerV1Json.rate_ware_xl_active_tariff_id;
86
+ this.receive_statement_email = customerV1Json.receive_statement_email;
87
+ this.statement_email = customerV1Json.statement_email;
88
+ this.do_not_contact = customerV1Json.do_not_contact;
89
+ this.no_accessorials = customerV1Json.no_accessorials;
90
+ this.has_contract = customerV1Json.has_contract;
91
+ this.last_contract_date = customerV1Json.last_contract_date;
92
+ this.accessorial_on_file = customerV1Json.accessorial_on_file;
93
+ this.coi_sent_date = customerV1Json.coi_sent_date;
94
+ this.credit_notes = customerV1Json.credit_notes;
95
+ this.require_preschedule = customerV1Json.require_preschedule;
96
+ this.inactivity_hold = customerV1Json.inactivity_hold;
97
+ this.pcmiler_version = customerV1Json.pcmiler_version;
98
+ this.pcmiler_routing = customerV1Json.pcmiler_routing;
99
+ this.pcmiler_class = customerV1Json.pcmiler_class;
100
+ this.pcmiler_borders = customerV1Json.pcmiler_borders;
101
+ this.credit_hold_message = customerV1Json.credit_hold_message;
102
+ this.csr_notes = customerV1Json.csr_notes;
103
+ this.last_credit_hold_email = customerV1Json.last_credit_hold_email;
104
+ this.last_inactivity_hold_email =
105
+ customerV1Json.last_inactivity_hold_email;
106
+ this.customer_rank = customerV1Json.customer_rank;
107
+ this.customer_rank_based_on = customerV1Json.customer_rank_based_on;
108
+ this.tms_psr = customerV1Json.tms_psr;
109
+ this.no_mileage_round = customerV1Json.no_mileage_round;
110
+ this.pcmiler_highway_only = customerV1Json.pcmiler_highway_only;
111
+ this.credit_watch = customerV1Json.credit_watch;
112
+ this.ignore_kpi = customerV1Json.ignore_kpi;
113
+ this.ach_payment = customerV1Json.ach_payment;
114
+ this.mileage_round = customerV1Json.mileage_round;
115
+ this.multi_invoice = customerV1Json.multi_invoice;
116
+ this.os_d_email_check = customerV1Json.os_d_email_check;
117
+ this.os_d_email = customerV1Json.os_d_email;
118
+ this.os_d_call_check = customerV1Json.os_d_call_check;
119
+ this.os_d_phone = customerV1Json.os_d_phone;
120
+ this.os_d_tms = customerV1Json.os_d_tms;
121
+ this.os_d_login = customerV1Json.os_d_login;
122
+ this.os_d_password = customerV1Json.os_d_password;
123
+ this.os_d_notes = customerV1Json.os_d_notes;
124
+ this.czarlite_min = customerV1Json.czarlite_min;
125
+ this.combine_invoice_files = customerV1Json.combine_invoice_files;
126
+ this.city_to_city = customerV1Json.city_to_city;
127
+ this.tms_acc = customerV1Json.tms_acc;
128
+ this.acc_w_o = customerV1Json.acc_w_o;
129
+ this.invoice_first_last_stops = customerV1Json.invoice_first_last_stops;
130
+ this.first_shipment_date = customerV1Json.first_shipment_date;
131
+ this.last_shipment_date = customerV1Json.last_shipment_date;
132
+ this.product_type = customerV1Json.product_type;
133
+ this.ar_tms = customerV1Json.ar_tms;
134
+ this.name = customerV1Json.name;
135
+ this.line1 = customerV1Json.line1;
136
+ this.city = customerV1Json.city;
137
+ this.state = customerV1Json.state;
138
+ this.zip = customerV1Json.zip;
139
+ this.notes = customerV1Json.notes;
140
+ this.credit_term_name = customerV1Json.credit_term_name;
141
+ this.total_debits = customerV1Json.total_debits;
142
+ this.total_credits = customerV1Json.total_credits;
143
+ this.westbound_tier = customerV1Json.westbound_tier;
144
+ this.eastbound_tier = customerV1Json.eastbound_tier;
145
+ this.billing_name = customerV1Json.billing_name;
146
+ this.get_customer_credit = customerV1Json.get_customer_credit;
147
+ this.is_active = customerV1Json.is_active;
148
+ this.status = customerV1Json.status;
149
+ }
150
+ else
151
+ throw new Error(`Failed to create new instance of ${CustomerV1_Entity.name}`);
152
+ }
153
+ id;
154
+ company_id;
155
+ discount;
156
+ cwa_code;
157
+ telephone;
158
+ email;
159
+ reference_code;
160
+ deleted;
161
+ telephone800;
162
+ fax;
163
+ disp_contact;
164
+ ap_contact;
165
+ ar_contact;
166
+ other_contact;
167
+ federal_id;
168
+ mcid;
169
+ scac;
170
+ credit_on_hold;
171
+ credit_limit;
172
+ credit_term_id;
173
+ termination_date;
174
+ date_entered;
175
+ contract_and_spot;
176
+ fuel_pricing_interval;
177
+ fuel_pricing_interval_type;
178
+ fuel_pricing_basis_type;
179
+ fuel_update_type;
180
+ use_fuel_data_date;
181
+ block_negative_adjustments;
182
+ preferred_carrier_type;
183
+ customer_status_id;
184
+ logistics_service;
185
+ bill_to_company_id;
186
+ receive_invoice_edi;
187
+ receive_invoice_email;
188
+ receive_invoice_mail;
189
+ invoice_email;
190
+ drop_customer;
191
+ skip_credit_check;
192
+ aging_import_date;
193
+ account_number;
194
+ accounting_managing_system;
195
+ sales_managing_system;
196
+ inactive_date;
197
+ billing_notes;
198
+ receive_invoice_upload;
199
+ pod_email;
200
+ billing_line1;
201
+ billing_line2;
202
+ billing_city;
203
+ billing_state;
204
+ billing_zip;
205
+ approved_by_person_id;
206
+ approved_date;
207
+ notify_accounting;
208
+ customer_type;
209
+ sms_login_id;
210
+ sms_password;
211
+ ams_login_id;
212
+ ams_password;
213
+ czarlite_discount;
214
+ rate_ware_xl_active_tariff_id;
215
+ receive_statement_email;
216
+ statement_email;
217
+ do_not_contact;
218
+ no_accessorials;
219
+ has_contract;
220
+ last_contract_date;
221
+ accessorial_on_file;
222
+ coi_sent_date;
223
+ credit_notes;
224
+ require_preschedule;
225
+ inactivity_hold;
226
+ pcmiler_version;
227
+ pcmiler_routing;
228
+ pcmiler_class;
229
+ pcmiler_borders;
230
+ credit_hold_message;
231
+ csr_notes;
232
+ last_credit_hold_email;
233
+ last_inactivity_hold_email;
234
+ customer_rank;
235
+ customer_rank_based_on;
236
+ tms_psr;
237
+ no_mileage_round;
238
+ pcmiler_highway_only;
239
+ credit_watch;
240
+ ignore_kpi;
241
+ ach_payment;
242
+ mileage_round;
243
+ multi_invoice;
244
+ os_d_email_check;
245
+ os_d_email;
246
+ os_d_call_check;
247
+ os_d_phone;
248
+ os_d_tms;
249
+ os_d_login;
250
+ os_d_password;
251
+ os_d_notes;
252
+ czarlite_min;
253
+ combine_invoice_files;
254
+ city_to_city;
255
+ tms_acc;
256
+ acc_w_o;
257
+ invoice_first_last_stops;
258
+ first_shipment_date;
259
+ last_shipment_date;
260
+ product_type;
261
+ ar_tms;
262
+ name;
263
+ line1;
264
+ city;
265
+ state;
266
+ zip;
267
+ notes;
268
+ credit_term_name;
269
+ total_debits;
270
+ total_credits;
271
+ westbound_tier;
272
+ eastbound_tier;
273
+ billing_name;
274
+ get_customer_credit;
275
+ is_active;
276
+ status;
277
+ }
278
+ //# sourceMappingURL=customerV1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customerV1.js","sourceRoot":"","sources":["../../../src/entities/customerV1/customerV1.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,SAAS,SAAS,CAChB,cAAuB;IAEvB,IAAI,OAAO,cAAc,KAAK,QAAQ,IAAI,cAAc,IAAI,IAAI,EAAE;QAChE,iBAAiB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACnD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;gBAChD,MAAM,IAAI,KAAK,CAAC,SAAS,OAAO,uBAAuB,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;KACJ;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,CAAC,OAAO,OAAO,iBAAiB;IACpC,MAAM,CAAC,cAAc,GAAG,CAAC,IAAI,CAAC,CAAC;IAE/B,YAAY,cAAwB;QAClC,IAAI,SAAS,CAAC,cAAc,CAAC,EAAE;YAC7B,IAAI,CAAC,EAAE,GAAG,cAAc,CAAC,EAAE,CAAC;YAC5B,IAAI,CAAC,UAAU,GAAG,cAAc,CAAC,UAAU,CAAC;YAC5C,IAAI,CAAC,QAAQ,GAAG,cAAc,CAAC,QAAQ,CAAC;YACxC,IAAI,CAAC,QAAQ,GAAG,cAAc,CAAC,QAAQ,CAAC;YACxC,IAAI,CAAC,SAAS,GAAG,cAAc,CAAC,SAAS,CAAC;YAC1C,IAAI,CAAC,KAAK,GAAG,cAAc,CAAC,KAAK,CAAC;YAClC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC,cAAc,CAAC;YACpD,IAAI,CAAC,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC;YACtC,IAAI,CAAC,YAAY,GAAG,cAAc,CAAC,YAAY,CAAC;YAChD,IAAI,CAAC,GAAG,GAAG,cAAc,C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AAW;IACjB,IAAI,CAAU;IACd,KAAK,CAAU;IACf,IAAI,CAAU;IACd,KAAK,CAAU;IACf,GAAG,CAAU;IACb,KAAK,CAAU;IACf,gBAAgB,CAAU;IAC1B,YAAY,CAAU;IACtB,aAAa,CAAU;IACvB,cAAc,CAAU;IACxB,cAAc,CAAU;IACxB,YAAY,CAAU;IACtB,mBAAmB,CAAU;IAC7B,SAAS,CAAW;IACpB,MAAM,CAAU"}
@@ -0,0 +1,5 @@
1
+ import CustomerV1_Entity from "./customerV1";
2
+ export default class CustomerV1 extends CustomerV1_Entity {
3
+ static fromList(customerV1sJSON: unknown): Array<CustomerV1>;
4
+ toJson(): string;
5
+ }
@@ -0,0 +1,16 @@
1
+ import CustomerV1_Entity from "./customerV1";
2
+ export default class CustomerV1 extends CustomerV1_Entity {
3
+ static fromList(customerV1sJSON) {
4
+ const customerV1s = [];
5
+ if (customerV1sJSON)
6
+ Array.isArray(customerV1sJSON) &&
7
+ customerV1sJSON.forEach((customerV1JSON) => {
8
+ customerV1s.push(new CustomerV1(customerV1JSON));
9
+ });
10
+ return customerV1s;
11
+ }
12
+ toJson() {
13
+ return JSON.stringify(this);
14
+ }
15
+ }
16
+ //# sourceMappingURL=helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/entities/customerV1/helper.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,cAAc,CAAC;AAC7C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,iBAAiB;IACvD,MAAM,CAAC,QAAQ,CAAC,eAAwB;QACtC,MAAM,WAAW,GAAiB,EAAE,CAAC;QACrC,IAAI,eAAe;YACjB,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC;gBAC5B,eAAe,CAAC,OAAO,CAAC,CAAC,cAAc,EAAE,EAAE;oBACzC,WAAW,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC;gBACnD,CAAC,CAAC,CAAC;QACP,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export { default as CustomerV1 } from "./helper";
2
+ export { default as CustomerV1_Entity } from "./customerV1";
@@ -0,0 +1,3 @@
1
+ export { default as CustomerV1 } from "./helper";
2
+ export { default as CustomerV1_Entity } from "./customerV1";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/customerV1/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,20 @@
1
+ export default class CustomersAccessorial_Entity {
2
+ static requiredFields: string[];
3
+ constructor(customersAccessorialJson?: unknown);
4
+ id: number;
5
+ customer_id?: number;
6
+ accessorial_id?: number;
7
+ cost_amount?: number;
8
+ condition_a?: number;
9
+ condition_b?: number;
10
+ load_type?: string;
11
+ unit_id?: number;
12
+ direct_payment?: boolean;
13
+ grace_time?: number;
14
+ grace_amount?: number;
15
+ default_contract?: boolean;
16
+ pre_minute_warning?: number;
17
+ edi_code?: string;
18
+ invoice_name?: string;
19
+ name?: string;
20
+ }
@@ -0,0 +1,58 @@
1
+ /**
2
+ * CustomersAccessorial_Entity type guard.
3
+ *
4
+ * @param {any} customersAccessorialJson CustomersAccessorial object from API
5
+ * @returns {boolean} Return true if type is CustomersAccessorial_Entity
6
+ */
7
+ function validator(customersAccessorialJson) {
8
+ if (typeof customersAccessorialJson === "object" &&
9
+ customersAccessorialJson != null) {
10
+ CustomersAccessorial_Entity.requiredFields.forEach((element) => {
11
+ if (!Object.keys(customersAccessorialJson).includes(element))
12
+ throw new Error(`Field ${element} is null or undefined`);
13
+ });
14
+ }
15
+ return true;
16
+ }
17
+ export default class CustomersAccessorial_Entity {
18
+ static requiredFields = ["id"];
19
+ constructor(customersAccessorialJson) {
20
+ if (validator(customersAccessorialJson)) {
21
+ this.id = customersAccessorialJson.id;
22
+ this.customer_id = customersAccessorialJson.customer_id;
23
+ this.accessorial_id = customersAccessorialJson.accessorial_id;
24
+ this.cost_amount = customersAccessorialJson.cost_amount;
25
+ this.condition_a = customersAccessorialJson.condition_a;
26
+ this.condition_b = customersAccessorialJson.condition_b;
27
+ this.load_type = customersAccessorialJson.load_type;
28
+ this.unit_id = customersAccessorialJson.unit_id;
29
+ this.direct_payment = customersAccessorialJson.direct_payment;
30
+ this.grace_time = customersAccessorialJson.grace_time;
31
+ this.grace_amount = customersAccessorialJson.grace_amount;
32
+ this.default_contract = customersAccessorialJson.default_contract;
33
+ this.pre_minute_warning = customersAccessorialJson.pre_minute_warning;
34
+ this.edi_code = customersAccessorialJson.edi_code;
35
+ this.invoice_name = customersAccessorialJson.invoice_name;
36
+ this.name = customersAccessorialJson.name;
37
+ }
38
+ else
39
+ throw new Error(`Failed to create new instance of ${CustomersAccessorial_Entity.name}`);
40
+ }
41
+ id;
42
+ customer_id;
43
+ accessorial_id;
44
+ cost_amount;
45
+ condition_a;
46
+ condition_b;
47
+ load_type;
48
+ unit_id;
49
+ direct_payment;
50
+ grace_time;
51
+ grace_amount;
52
+ default_contract;
53
+ pre_minute_warning;
54
+ edi_code;
55
+ invoice_name;
56
+ name;
57
+ }
58
+ //# sourceMappingURL=customersAccessorial.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customersAccessorial.js","sourceRoot":"","sources":["../../../src/entities/customersAccessorial/customersAccessorial.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,SAAS,SAAS,CAChB,wBAAiC;IAEjC,IACE,OAAO,wBAAwB,KAAK,QAAQ;QAC5C,wBAAwB,IAAI,IAAI,EAChC;QACA,2BAA2B,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,EA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B,CAAC,YAAY,CAAC;YAC1D,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAC,IAAI,CAAC;SAC3C;;YACC,MAAM,IAAI,KAAK,CACb,oCAAoC,2BAA2B,CAAC,IAAI,EAAE,CACvE,CAAC;IACN,CAAC;IAED,EAAE,CAAS;IACX,WAAW,CAAU;IACrB,cAAc,CAAU;IACxB,WAAW,CAAU;IACrB,WAAW,CAAU;IACrB,WAAW,CAAU;IACrB,SAAS,CAAU;IACnB,OAAO,CAAU;IACjB,cAAc,CAAW;IACzB,UAAU,CAAU;IACpB,YAAY,CAAU;IACtB,gBAAgB,CAAW;IAC3B,kBAAkB,CAAU;IAC5B,QAAQ,CAAU;IAClB,YAAY,CAAU;IACtB,IAAI,CAAU"}
@@ -0,0 +1,5 @@
1
+ import CustomersAccessorial_Entity from "./customersAccessorial";
2
+ export default class CustomersAccessorial extends CustomersAccessorial_Entity {
3
+ static fromList(customersAccessorialsJSON: unknown): Array<CustomersAccessorial>;
4
+ toJson(): string;
5
+ }
@@ -0,0 +1,16 @@
1
+ import CustomersAccessorial_Entity from "./customersAccessorial";
2
+ export default class CustomersAccessorial extends CustomersAccessorial_Entity {
3
+ static fromList(customersAccessorialsJSON) {
4
+ const customersAccessorials = [];
5
+ if (customersAccessorialsJSON)
6
+ Array.isArray(customersAccessorialsJSON) &&
7
+ customersAccessorialsJSON.forEach((customersAccessorialJSON) => {
8
+ customersAccessorials.push(new CustomersAccessorial(customersAccessorialJSON));
9
+ });
10
+ return customersAccessorials;
11
+ }
12
+ toJson() {
13
+ return JSON.stringify(this);
14
+ }
15
+ }
16
+ //# sourceMappingURL=helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/entities/customersAccessorial/helper.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,MAAM,wBAAwB,CAAC;AACjE,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,2BAA2B;IAC3E,MAAM,CAAC,QAAQ,CACb,yBAAkC;QAElC,MAAM,qBAAqB,GAA2B,EAAE,CAAC;QACzD,IAAI,yBAAyB;YAC3B,KAAK,CAAC,OAAO,CAAC,yBAAyB,CAAC;gBACtC,yBAAyB,CAAC,OAAO,CAAC,CAAC,wBAAwB,EAAE,EAAE;oBAC7D,qBAAqB,CAAC,IAAI,CACxB,IAAI,oBAAoB,CAAC,wBAAwB,CAAC,CACnD,CAAC;gBACJ,CAAC,CAAC,CAAC;QACP,OAAO,qBAAqB,CAAC;IAC/B,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export { default as CustomersAccessorial } from "./helper";
2
+ export { default as CustomersAccessorial_Entity } from "./customersAccessorial";
@@ -0,0 +1,3 @@
1
+ export { default as CustomersAccessorial } from "./helper";
2
+ export { default as CustomersAccessorial_Entity } from "./customersAccessorial";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/customersAccessorial/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,9 @@
1
+ export default class Flag_Entity {
2
+ static requiredFields: string[];
3
+ constructor(flagJson: unknown);
4
+ flag_area_ids?: number[];
5
+ id: number;
6
+ is_area_flag?: boolean;
7
+ name?: string;
8
+ network?: boolean;
9
+ }