@nerdjs/sales-kit 2.0.38 → 2.0.39

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 (201) hide show
  1. package/dist/entities/company/company.d.ts +17 -0
  2. package/dist/entities/company/company.js +51 -0
  3. package/dist/entities/company/company.js.map +1 -0
  4. package/dist/entities/company/helper.d.ts +5 -0
  5. package/dist/entities/company/helper.js +16 -0
  6. package/dist/entities/company/helper.js.map +1 -0
  7. package/dist/entities/company/index.d.ts +2 -0
  8. package/dist/entities/company/index.js +3 -0
  9. package/dist/entities/company/index.js.map +1 -0
  10. package/dist/entities/contact/contact.d.ts +19 -0
  11. package/dist/entities/contact/contact.js +55 -0
  12. package/dist/entities/contact/contact.js.map +1 -0
  13. package/dist/entities/contact/helper.d.ts +5 -0
  14. package/dist/entities/contact/helper.js +16 -0
  15. package/dist/entities/contact/helper.js.map +1 -0
  16. package/dist/entities/contact/index.d.ts +2 -0
  17. package/dist/entities/contact/index.js +3 -0
  18. package/dist/entities/contact/index.js.map +1 -0
  19. package/dist/entities/customerV1/customerV1.d.ts +138 -0
  20. package/dist/entities/customerV1/customerV1.js +278 -0
  21. package/dist/entities/customerV1/customerV1.js.map +1 -0
  22. package/dist/entities/customerV1/helper.d.ts +5 -0
  23. package/dist/entities/customerV1/helper.js +16 -0
  24. package/dist/entities/customerV1/helper.js.map +1 -0
  25. package/dist/entities/customerV1/index.d.ts +2 -0
  26. package/dist/entities/customerV1/index.js +3 -0
  27. package/dist/entities/customerV1/index.js.map +1 -0
  28. package/dist/entities/customersAccessorial/customersAccessorial.d.ts +20 -0
  29. package/dist/entities/customersAccessorial/customersAccessorial.js +58 -0
  30. package/dist/entities/customersAccessorial/customersAccessorial.js.map +1 -0
  31. package/dist/entities/customersAccessorial/helper.d.ts +5 -0
  32. package/dist/entities/customersAccessorial/helper.js +16 -0
  33. package/dist/entities/customersAccessorial/helper.js.map +1 -0
  34. package/dist/entities/customersAccessorial/index.d.ts +2 -0
  35. package/dist/entities/customersAccessorial/index.js +3 -0
  36. package/dist/entities/customersAccessorial/index.js.map +1 -0
  37. package/dist/entities/flag/flag.d.ts +9 -0
  38. package/dist/entities/flag/flag.js +35 -0
  39. package/dist/entities/flag/flag.js.map +1 -0
  40. package/dist/entities/flag/helper.d.ts +5 -0
  41. package/dist/entities/flag/helper.js +16 -0
  42. package/dist/entities/flag/helper.js.map +1 -0
  43. package/dist/entities/flag/index.d.ts +2 -0
  44. package/dist/entities/flag/index.js +3 -0
  45. package/dist/entities/flag/index.js.map +1 -0
  46. package/dist/entities/index.d.ts +11 -0
  47. package/dist/entities/index.js +11 -0
  48. package/dist/entities/index.js.map +1 -1
  49. package/dist/entities/notification/helper.d.ts +5 -0
  50. package/dist/entities/notification/helper.js +16 -0
  51. package/dist/entities/notification/helper.js.map +1 -0
  52. package/dist/entities/notification/index.d.ts +2 -0
  53. package/dist/entities/notification/index.js +3 -0
  54. package/dist/entities/notification/index.js.map +1 -0
  55. package/dist/entities/notification/notification.d.ts +14 -0
  56. package/dist/entities/notification/notification.js +45 -0
  57. package/dist/entities/notification/notification.js.map +1 -0
  58. package/dist/entities/notificationSubscription/helper.d.ts +5 -0
  59. package/dist/entities/notificationSubscription/helper.js +16 -0
  60. package/dist/entities/notificationSubscription/helper.js.map +1 -0
  61. package/dist/entities/notificationSubscription/index.d.ts +2 -0
  62. package/dist/entities/notificationSubscription/index.js +3 -0
  63. package/dist/entities/notificationSubscription/index.js.map +1 -0
  64. package/dist/entities/notificationSubscription/notificationSubscription.d.ts +14 -0
  65. package/dist/entities/notificationSubscription/notificationSubscription.js +46 -0
  66. package/dist/entities/notificationSubscription/notificationSubscription.js.map +1 -0
  67. package/dist/entities/notificationUserSubscription/helper.d.ts +5 -0
  68. package/dist/entities/notificationUserSubscription/helper.js +16 -0
  69. package/dist/entities/notificationUserSubscription/helper.js.map +1 -0
  70. package/dist/entities/notificationUserSubscription/index.d.ts +2 -0
  71. package/dist/entities/notificationUserSubscription/index.js +3 -0
  72. package/dist/entities/notificationUserSubscription/index.js.map +1 -0
  73. package/dist/entities/notificationUserSubscription/notificationUserSubscription.d.ts +15 -0
  74. package/dist/entities/notificationUserSubscription/notificationUserSubscription.js +47 -0
  75. package/dist/entities/notificationUserSubscription/notificationUserSubscription.js.map +1 -0
  76. package/dist/entities/person/helper.d.ts +5 -0
  77. package/dist/entities/person/helper.js +16 -0
  78. package/dist/entities/person/helper.js.map +1 -0
  79. package/dist/entities/person/index.d.ts +2 -0
  80. package/dist/entities/person/index.js +3 -0
  81. package/dist/entities/person/index.js.map +1 -0
  82. package/dist/entities/person/person.d.ts +46 -0
  83. package/dist/entities/person/person.js +108 -0
  84. package/dist/entities/person/person.js.map +1 -0
  85. package/dist/entities/rateReview/helper.d.ts +5 -0
  86. package/dist/entities/rateReview/helper.js +16 -0
  87. package/dist/entities/rateReview/helper.js.map +1 -0
  88. package/dist/entities/rateReview/index.d.ts +2 -0
  89. package/dist/entities/rateReview/index.js +3 -0
  90. package/dist/entities/rateReview/index.js.map +1 -0
  91. package/dist/entities/rateReview/rateReview.d.ts +49 -0
  92. package/dist/entities/rateReview/rateReview.js +116 -0
  93. package/dist/entities/rateReview/rateReview.js.map +1 -0
  94. package/dist/entities/unitV1/helper.d.ts +5 -0
  95. package/dist/entities/unitV1/helper.js +16 -0
  96. package/dist/entities/unitV1/helper.js.map +1 -0
  97. package/dist/entities/unitV1/index.d.ts +2 -0
  98. package/dist/entities/unitV1/index.js +3 -0
  99. package/dist/entities/unitV1/index.js.map +1 -0
  100. package/dist/entities/unitV1/unit.d.ts +11 -0
  101. package/dist/entities/unitV1/unit.js +39 -0
  102. package/dist/entities/unitV1/unit.js.map +1 -0
  103. package/dist/hooks/customer/customerAutocomplete.d.ts +7 -7
  104. package/dist/hooks/customer/customerAutocomplete.js +12 -13
  105. package/dist/hooks/customer/customerAutocomplete.js.map +1 -1
  106. package/dist/hooks/locationsForm/locationsFormSales.js +12 -6
  107. package/dist/hooks/locationsForm/locationsFormSales.js.map +1 -1
  108. package/dist/hooks/quote/form.js +11 -0
  109. package/dist/hooks/quote/form.js.map +1 -1
  110. package/dist/hooks/quote/helpers.d.ts +9 -0
  111. package/dist/hooks/quote/helpers.js +19 -2
  112. package/dist/hooks/quote/helpers.js.map +1 -1
  113. package/dist/hooks/quote/result.js +1 -0
  114. package/dist/hooks/quote/result.js.map +1 -1
  115. package/dist/hooks/tender/form.js +1 -6
  116. package/dist/hooks/tender/form.js.map +1 -1
  117. package/dist/redux/api/salesApi.d.ts +1 -1
  118. package/dist/redux/api/salesApi.js +9 -0
  119. package/dist/redux/api/salesApi.js.map +1 -1
  120. package/dist/redux/appointmentIssue/appointmentIssueEndpoints.d.ts +10 -10
  121. package/dist/redux/appointmentIssueCategory/appointmentIssueCategoryEndpoints.d.ts +11 -11
  122. package/dist/redux/appointmentIssueSubcategory/appointmentIssueSubcategoryEndpoints.d.ts +10 -10
  123. package/dist/redux/appointmentNote/appointmentNoteEndpoints.d.ts +10 -10
  124. package/dist/redux/appointmentNoteType/appointmentNoteTypeEndpoints.d.ts +10 -10
  125. package/dist/redux/archerFile/archerFileEndpoints.d.ts +20 -8
  126. package/dist/redux/archerFile/archerFileEndpoints.js +18 -3
  127. package/dist/redux/archerFile/archerFileEndpoints.js.map +1 -1
  128. package/dist/redux/carrierName/carrierNameEndpoints.d.ts +10 -10
  129. package/dist/redux/commodityV1/commodityV1Endpoints.d.ts +11 -11
  130. package/dist/redux/contact/contactEndpoints.d.ts +26 -0
  131. package/dist/redux/contact/contactEndpoints.js +54 -0
  132. package/dist/redux/contact/contactEndpoints.js.map +1 -0
  133. package/dist/redux/contact/index.d.ts +2 -0
  134. package/dist/redux/contact/index.js +3 -0
  135. package/dist/redux/contact/index.js.map +1 -0
  136. package/dist/redux/customer/customerEndpoints.d.ts +27 -19
  137. package/dist/redux/customer/customerEndpoints.js +7 -7
  138. package/dist/redux/customer/customerEndpoints.js.map +1 -1
  139. package/dist/redux/customersAccessorial/customersAccessorialEndpoints.d.ts +24 -0
  140. package/dist/redux/customersAccessorial/customersAccessorialEndpoints.js +56 -0
  141. package/dist/redux/customersAccessorial/customersAccessorialEndpoints.js.map +1 -0
  142. package/dist/redux/customersAccessorial/index.d.ts +2 -0
  143. package/dist/redux/customersAccessorial/index.js +3 -0
  144. package/dist/redux/customersAccessorial/index.js.map +1 -0
  145. package/dist/redux/driverName/driverNameEndpoints.d.ts +9 -9
  146. package/dist/redux/flag/flagEndpoints.d.ts +24 -0
  147. package/dist/redux/flag/flagEndpoints.js +64 -0
  148. package/dist/redux/flag/flagEndpoints.js.map +1 -0
  149. package/dist/redux/flag/index.d.ts +2 -0
  150. package/dist/redux/flag/index.js +3 -0
  151. package/dist/redux/flag/index.js.map +1 -0
  152. package/dist/redux/holiday/holidayEndpoints.d.ts +10 -10
  153. package/dist/redux/index.d.ts +8 -0
  154. package/dist/redux/index.js +8 -0
  155. package/dist/redux/index.js.map +1 -1
  156. package/dist/redux/load/loadEndpoints.d.ts +10 -10
  157. package/dist/redux/loadAdjustment/loadAdjustmentEndpoints.d.ts +10 -10
  158. package/dist/redux/loadAdjustmentV1/loadAdjustmentV1Endpoints.d.ts +10 -10
  159. package/dist/redux/loadV1/loadV1Endpoints.d.ts +19 -18
  160. package/dist/redux/loadV1/loadV1Endpoints.js +10 -1
  161. package/dist/redux/loadV1/loadV1Endpoints.js.map +1 -1
  162. package/dist/redux/location/locationEndpoints.d.ts +14 -14
  163. package/dist/redux/locationV1/locationV1Endpoints.d.ts +19 -19
  164. package/dist/redux/nmfcClass/nmfcClassEndpoints.d.ts +9 -9
  165. package/dist/redux/nodeName/nodeNameEndpoints.d.ts +10 -10
  166. package/dist/redux/notification/index.d.ts +2 -0
  167. package/dist/redux/notification/index.js +3 -0
  168. package/dist/redux/notification/index.js.map +1 -0
  169. package/dist/redux/notification/notificationEndpoints.d.ts +36 -0
  170. package/dist/redux/notification/notificationEndpoints.js +81 -0
  171. package/dist/redux/notification/notificationEndpoints.js.map +1 -0
  172. package/dist/redux/person/index.d.ts +2 -0
  173. package/dist/redux/person/index.js +3 -0
  174. package/dist/redux/person/index.js.map +1 -0
  175. package/dist/redux/person/personEndpoints.d.ts +34 -0
  176. package/dist/redux/person/personEndpoints.js +67 -0
  177. package/dist/redux/person/personEndpoints.js.map +1 -0
  178. package/dist/redux/personName/personNameEndpoints.d.ts +10 -10
  179. package/dist/redux/quote/quoteEndpoints.d.ts +19 -19
  180. package/dist/redux/quote/quoteHooks.d.ts +2 -2
  181. package/dist/redux/quoteAccessorial/quoteAccessorialEndpoints.d.ts +9 -9
  182. package/dist/redux/quoteAccessorialV1/quoteAccessorialV1Endpoints.d.ts +10 -10
  183. package/dist/redux/rateReview/index.d.ts +2 -0
  184. package/dist/redux/rateReview/index.js +3 -0
  185. package/dist/redux/rateReview/index.js.map +1 -0
  186. package/dist/redux/rateReview/rateReviewEndpoints.d.ts +32 -0
  187. package/dist/redux/rateReview/rateReviewEndpoints.js +65 -0
  188. package/dist/redux/rateReview/rateReviewEndpoints.js.map +1 -0
  189. package/dist/redux/shipcon/shipconEndpoints.d.ts +10 -10
  190. package/dist/redux/shipconV1/shipconV1Endpoints.d.ts +14 -14
  191. package/dist/redux/tender/tenderEndpoints.d.ts +9 -9
  192. package/dist/redux/trailerAvailability/customerEndpoints.d.ts +4 -4
  193. package/dist/redux/types.d.ts +2 -2
  194. package/dist/redux/unitV1/index.d.ts +2 -0
  195. package/dist/redux/unitV1/index.js +3 -0
  196. package/dist/redux/unitV1/index.js.map +1 -0
  197. package/dist/redux/unitV1/unitV1Endpoints.d.ts +24 -0
  198. package/dist/redux/unitV1/unitV1Endpoints.js +64 -0
  199. package/dist/redux/unitV1/unitV1Endpoints.js.map +1 -0
  200. package/dist/redux/userNoteV1/userNoteV1Endpoints.d.ts +10 -10
  201. package/package.json +1 -1
@@ -0,0 +1,17 @@
1
+ export default class Company_Entity {
2
+ static requiredFields: string[];
3
+ constructor(companyJson: unknown);
4
+ created_at?: string;
5
+ id: number;
6
+ name?: string;
7
+ reference_code?: 25;
8
+ updated_at?: string;
9
+ person_ids?: number[];
10
+ subsidiary_ids?: number[];
11
+ customer_id?: number;
12
+ flags_object_ids?: number[];
13
+ flag_ids?: number[];
14
+ version_ids?: number[];
15
+ address_ids?: number[];
16
+ annotation_ids?: number[];
17
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Company_Entity type guard.
3
+ *
4
+ * @param {any} companyJson Company object from API
5
+ * @returns {boolean} Return true if type is Company_Entity
6
+ */
7
+ function validator(companyJson) {
8
+ if (typeof companyJson === "object" && companyJson != null) {
9
+ Company_Entity.requiredFields.forEach((element) => {
10
+ if (!Object.keys(companyJson).includes(element))
11
+ throw new Error(`Field ${element} is null or undefined`);
12
+ });
13
+ }
14
+ return true;
15
+ }
16
+ export default class Company_Entity {
17
+ static requiredFields = ["id"];
18
+ constructor(companyJson) {
19
+ if (validator(companyJson)) {
20
+ this.created_at = companyJson.created_at;
21
+ this.id = companyJson.id;
22
+ this.name = companyJson.name;
23
+ this.reference_code = companyJson.reference_code;
24
+ this.updated_at = companyJson.updated_at;
25
+ this.person_ids = companyJson.person_ids;
26
+ this.subsidiary_ids = companyJson.subsidiary_ids;
27
+ this.customer_id = companyJson.customer_id;
28
+ this.flags_object_ids = companyJson.flags_object_ids;
29
+ this.flag_ids = companyJson.flag_ids;
30
+ this.version_ids = companyJson.version_ids;
31
+ this.address_ids = companyJson.address_ids;
32
+ this.annotation_ids = companyJson.annotation_ids;
33
+ }
34
+ else
35
+ throw new Error(`Failed to create new instance of ${Company_Entity.name}`);
36
+ }
37
+ created_at;
38
+ id;
39
+ name;
40
+ reference_code;
41
+ updated_at;
42
+ person_ids;
43
+ subsidiary_ids;
44
+ customer_id;
45
+ flags_object_ids;
46
+ flag_ids;
47
+ version_ids;
48
+ address_ids;
49
+ annotation_ids;
50
+ }
51
+ //# sourceMappingURL=company.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"company.js","sourceRoot":"","sources":["../../../src/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CAAC;YAC3C,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC,cAAc,CAAC;SAClD;;YACC,MAAM,IAAI,KAAK,CACb,oCAAoC,cAAc,CAAC,IAAI,EAAE,CAC1D,CAAC;IACN,CAAC;IAED,UAAU,CAAU;IACpB,EAAE,CAAS;IACX,IAAI,CAAU;IACd,cAAc,CAAM;IACpB,UAAU,CAAU;IACpB,UAAU,CAAY;IACtB,cAAc,CAAY;IAC1B,WAAW,CAAU;IACrB,gBAAgB,CAAY;IAC5B,QAAQ,CAAY;IACpB,WAAW,CAAY;IACvB,WAAW,CAAY;IACvB,cAAc,CAAY"}
@@ -0,0 +1,5 @@
1
+ import Company_Entity from "./company";
2
+ export default class Company extends Company_Entity {
3
+ static fromList(companysJSON: unknown): Array<Company>;
4
+ toJson(): string;
5
+ }
@@ -0,0 +1,16 @@
1
+ import Company_Entity from "./company";
2
+ export default class Company extends Company_Entity {
3
+ static fromList(companysJSON) {
4
+ const companys = [];
5
+ if (companysJSON)
6
+ Array.isArray(companysJSON) &&
7
+ companysJSON.forEach((companyJSON) => {
8
+ companys.push(new Company(companyJSON));
9
+ });
10
+ return companys;
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/company/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 Company } from "./helper";
2
+ export { default as Company_Entity } from "./company";
@@ -0,0 +1,3 @@
1
+ export { default as Company } from "./helper";
2
+ export { default as Company_Entity } from "./company";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/company/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,19 @@
1
+ export default class Contact_Entity {
2
+ static requiredFields: string[];
3
+ constructor(contactJson: unknown);
4
+ contact_name?: string;
5
+ contactable_id?: number;
6
+ contactable_type?: string;
7
+ created_at?: string;
8
+ department?: string;
9
+ email?: string;
10
+ fax_number?: string;
11
+ id?: number;
12
+ mobile_number?: string;
13
+ notes?: string;
14
+ person_id?: number;
15
+ phone_number?: string;
16
+ phone_number_800?: string;
17
+ updated_at?: string;
18
+ web_site?: string;
19
+ }
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Contact_Entity type guard.
3
+ *
4
+ * @param {any} contactJson Contact object from API
5
+ * @returns {boolean} Return true if type is Contact_Entity
6
+ */
7
+ function validator(contactJson) {
8
+ if (typeof contactJson === "object" && contactJson != null) {
9
+ Contact_Entity.requiredFields.forEach((element) => {
10
+ if (!Object.keys(contactJson).includes(element))
11
+ throw new Error(`Field ${element} is null or undefined`);
12
+ });
13
+ }
14
+ return true;
15
+ }
16
+ export default class Contact_Entity {
17
+ static requiredFields = ["id"];
18
+ constructor(contactJson) {
19
+ if (validator(contactJson)) {
20
+ this.contact_name = contactJson.contact_name;
21
+ this.contactable_id = contactJson.contactable_id;
22
+ this.contactable_type = contactJson.contactable_type;
23
+ this.created_at = contactJson.created_at;
24
+ this.department = contactJson.department;
25
+ this.email = contactJson.email;
26
+ this.fax_number = contactJson.fax_number;
27
+ this.id = contactJson.id;
28
+ this.mobile_number = contactJson.mobile_number;
29
+ this.notes = contactJson.notes;
30
+ this.person_id = contactJson.person_id;
31
+ this.phone_number = contactJson.phone_number;
32
+ this.phone_number_800 = contactJson.phone_number_800;
33
+ this.updated_at = contactJson.updated_at;
34
+ this.web_site = contactJson.web_site;
35
+ }
36
+ else
37
+ throw new Error(`Failed to create new instance of ${Contact_Entity.name}`);
38
+ }
39
+ contact_name;
40
+ contactable_id;
41
+ contactable_type;
42
+ created_at;
43
+ department;
44
+ email;
45
+ fax_number;
46
+ id;
47
+ mobile_number;
48
+ notes;
49
+ person_id;
50
+ phone_number;
51
+ phone_number_800;
52
+ updated_at;
53
+ web_site;
54
+ }
55
+ //# sourceMappingURL=contact.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact.js","sourceRoot":"","sources":["../../../src/entities/contact/contact.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,SAAS,SAAS,CAAC,WAAoB;IACrC,IAAI,OAAO,WAAW,KAAK,QAAQ,IAAI,WAAW,IAAI,IAAI,EAAE;QAC1D,cAAc,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAChD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;gBAC7C,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,cAAc;IACjC,MAAM,CAAC,cAAc,GAAG,CAAC,IAAI,CAAC,CAAC;IAE/B,YAAY,WAAoB;QAC9B,IAAI,SAAS,CA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+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,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