@nerdjs/sales-kit 2.4.32 → 2.4.34

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 (166) hide show
  1. package/dist/entities/accessorialV1/accessorialV1.d.ts +11 -0
  2. package/dist/entities/accessorialV1/accessorialV1.js +40 -0
  3. package/dist/entities/accessorialV1/accessorialV1.js.map +1 -0
  4. package/dist/entities/accessorialV1/helper.d.ts +5 -0
  5. package/dist/entities/accessorialV1/helper.js +16 -0
  6. package/dist/entities/accessorialV1/helper.js.map +1 -0
  7. package/dist/entities/accessorialV1/index.d.ts +2 -0
  8. package/dist/entities/accessorialV1/index.js +3 -0
  9. package/dist/entities/accessorialV1/index.js.map +1 -0
  10. package/dist/entities/attributeField/attributeField.d.ts +9 -0
  11. package/dist/entities/attributeField/attributeField.js +35 -0
  12. package/dist/entities/attributeField/attributeField.js.map +1 -0
  13. package/dist/entities/attributeField/helper.d.ts +5 -0
  14. package/dist/entities/attributeField/helper.js +16 -0
  15. package/dist/entities/attributeField/helper.js.map +1 -0
  16. package/dist/entities/attributeField/index.d.ts +2 -0
  17. package/dist/entities/attributeField/index.js +3 -0
  18. package/dist/entities/attributeField/index.js.map +1 -0
  19. package/dist/entities/defaultSetting/defaultSetting.d.ts +9 -0
  20. package/dist/entities/defaultSetting/defaultSetting.js +35 -0
  21. package/dist/entities/defaultSetting/defaultSetting.js.map +1 -0
  22. package/dist/entities/defaultSetting/helper.d.ts +5 -0
  23. package/dist/entities/defaultSetting/helper.js +16 -0
  24. package/dist/entities/defaultSetting/helper.js.map +1 -0
  25. package/dist/entities/defaultSetting/index.d.ts +2 -0
  26. package/dist/entities/defaultSetting/index.js +3 -0
  27. package/dist/entities/defaultSetting/index.js.map +1 -0
  28. package/dist/entities/index.d.ts +110 -107
  29. package/dist/entities/index.js +110 -107
  30. package/dist/entities/index.js.map +1 -1
  31. package/dist/hooks/lep/lepAccessorials.js +4 -2
  32. package/dist/hooks/lep/lepAccessorials.js.map +1 -1
  33. package/dist/hooks/lep/lepCustomersAccessorials.js +5 -4
  34. package/dist/hooks/lep/lepCustomersAccessorials.js.map +1 -1
  35. package/dist/hooks/locationsForm/locationFormSales/locationAccessorialsList.js +10 -7
  36. package/dist/hooks/locationsForm/locationFormSales/locationAccessorialsList.js.map +1 -1
  37. package/dist/hooks/locationsForm/locationFormSales/locationFormSales.js +1 -0
  38. package/dist/hooks/locationsForm/locationFormSales/locationFormSales.js.map +1 -1
  39. package/dist/redux/accessorialV1/accessorialV1Endpoints.d.ts +37 -0
  40. package/dist/redux/accessorialV1/accessorialV1Endpoints.js +64 -0
  41. package/dist/redux/accessorialV1/accessorialV1Endpoints.js.map +1 -0
  42. package/dist/redux/accessorialV1/index.d.ts +2 -0
  43. package/dist/redux/accessorialV1/index.js +3 -0
  44. package/dist/redux/accessorialV1/index.js.map +1 -0
  45. package/dist/redux/api/salesApi.d.ts +1 -1
  46. package/dist/redux/api/salesApi.js +12 -8
  47. package/dist/redux/api/salesApi.js.map +1 -1
  48. package/dist/redux/apiTender/apiTenderEndpoints.d.ts +10 -10
  49. package/dist/redux/appointmentArrival/appointmentArrivalEndpoints.d.ts +12 -12
  50. package/dist/redux/appointmentIssue/appointmentIssueEndpoints.d.ts +10 -10
  51. package/dist/redux/appointmentIssueCategory/appointmentIssueCategoryEndpoints.d.ts +11 -11
  52. package/dist/redux/appointmentIssueSubcategory/appointmentIssueSubcategoryEndpoints.d.ts +10 -10
  53. package/dist/redux/appointmentNote/appointmentNoteEndpoints.d.ts +10 -10
  54. package/dist/redux/appointmentNoteType/appointmentNoteTypeEndpoints.d.ts +10 -10
  55. package/dist/redux/appointmentTrip/appointmentTripEndpoints.d.ts +10 -10
  56. package/dist/redux/archerFile/archerFileEndpoints.d.ts +15 -15
  57. package/dist/redux/area/areaEndpoints.d.ts +9 -9
  58. package/dist/redux/asset/assetEndpoints.d.ts +12 -12
  59. package/dist/redux/assetType/assetTypeEndpoints.d.ts +9 -9
  60. package/dist/redux/attributeField/attributeFieldEndpoints.d.ts +29 -0
  61. package/dist/redux/attributeField/attributeFieldEndpoints.js +64 -0
  62. package/dist/redux/attributeField/attributeFieldEndpoints.js.map +1 -0
  63. package/dist/redux/attributeField/index.d.ts +2 -0
  64. package/dist/redux/attributeField/index.js +3 -0
  65. package/dist/redux/attributeField/index.js.map +1 -0
  66. package/dist/redux/billingKickback/billingKickbackEndpoints.d.ts +11 -11
  67. package/dist/redux/billingKickbackResponse/billingKickbackResponseEndpoints.d.ts +10 -10
  68. package/dist/redux/billingKickbackResponseAccessorial/billingKickbackResponseAccessorialEndpoints.d.ts +10 -10
  69. package/dist/redux/billingMessage/billingMessageEndpoints.d.ts +9 -9
  70. package/dist/redux/billingNote/billingNoteEndpoints.d.ts +10 -10
  71. package/dist/redux/cargoConsolidation/cargoConsolidationEndpoints.d.ts +19 -19
  72. package/dist/redux/cargoConsolidationCommodityPiece/cargoConsolidationCommodityPieceEndpoints.d.ts +10 -10
  73. package/dist/redux/carrier/carrierEndpoints.d.ts +21 -21
  74. package/dist/redux/carrierInsurance/carrierInsuranceEndpoints.d.ts +10 -10
  75. package/dist/redux/carrierName/carrierNameEndpoints.d.ts +12 -12
  76. package/dist/redux/carrierPayContract/carrierPayContractEndpoints.d.ts +11 -11
  77. package/dist/redux/carrierTender/carrierTenderEndpoints.d.ts +10 -10
  78. package/dist/redux/carrierTenderAccessorial/carrierTenderAccessorialEndpoints.d.ts +10 -10
  79. package/dist/redux/carrierTenderDeduction/carrierTenderDeductionEndpoints.d.ts +10 -10
  80. package/dist/redux/carrierTenderEdge/carrierTenderEdgeEndpoints.d.ts +9 -9
  81. package/dist/redux/carrierTenderV1/carrierTenderV1Endpoints.d.ts +20 -20
  82. package/dist/redux/claim/claimEndpoints.d.ts +16 -16
  83. package/dist/redux/claimStatus/claimStatusEndpoints.d.ts +9 -9
  84. package/dist/redux/commodity/commodityEndpoints.d.ts +10 -10
  85. package/dist/redux/commodityV1/commodityV1Endpoints.d.ts +11 -11
  86. package/dist/redux/companyLocation/companyLocationEndpoints.d.ts +10 -10
  87. package/dist/redux/contact/contactEndpoints.d.ts +10 -10
  88. package/dist/redux/contract/contractEndpoints.d.ts +10 -10
  89. package/dist/redux/contractsRecord/contractsRecordEndpoints.d.ts +12 -12
  90. package/dist/redux/creditTerm/creditTermEndpoints.d.ts +9 -9
  91. package/dist/redux/customer/customerEndpoints.d.ts +24 -23
  92. package/dist/redux/customer/customerEndpoints.js +8 -1
  93. package/dist/redux/customer/customerEndpoints.js.map +1 -1
  94. package/dist/redux/customerContract/customerContractEndpoints.d.ts +10 -10
  95. package/dist/redux/customerTrailer/customerTrailerEndpoints.d.ts +10 -10
  96. package/dist/redux/customersAccessorial/customersAccessorialEndpoints.d.ts +9 -9
  97. package/dist/redux/customersAccessorial/customersAccessorialEndpoints.js +9 -2
  98. package/dist/redux/customersAccessorial/customersAccessorialEndpoints.js.map +1 -1
  99. package/dist/redux/customersPerson/customersPersonEndpoints.d.ts +10 -10
  100. package/dist/redux/deduction/deductionEndpoints.d.ts +9 -9
  101. package/dist/redux/defaultSetting/defaultSettingEndpoints.d.ts +37 -0
  102. package/dist/redux/defaultSetting/defaultSettingEndpoints.js +64 -0
  103. package/dist/redux/defaultSetting/defaultSettingEndpoints.js.map +1 -0
  104. package/dist/redux/defaultSetting/index.d.ts +2 -0
  105. package/dist/redux/defaultSetting/index.js +3 -0
  106. package/dist/redux/defaultSetting/index.js.map +1 -0
  107. package/dist/redux/departmentPhone/departmentPhoneEndpoints.d.ts +10 -10
  108. package/dist/redux/dispatch/dispatchEndpoints.d.ts +10 -10
  109. package/dist/redux/driver/driverEndpoints.d.ts +10 -10
  110. package/dist/redux/driverName/driverNameEndpoints.d.ts +9 -9
  111. package/dist/redux/driverV1/driverV1Endpoints.d.ts +9 -9
  112. package/dist/redux/ediAccount/ediAccountEndpoints.d.ts +10 -10
  113. package/dist/redux/ediLoadTender/ediLoadTenderEndpoints.d.ts +10 -10
  114. package/dist/redux/employeeName/employeeNameEndpoints.d.ts +9 -9
  115. package/dist/redux/flag/flagEndpoints.d.ts +9 -9
  116. package/dist/redux/generalLedgerAccount/generalLedgerAccountEndpoints.d.ts +10 -10
  117. package/dist/redux/genericTender/genericTenderEndpoints.d.ts +12 -12
  118. package/dist/redux/holiday/holidayEndpoints.d.ts +10 -10
  119. package/dist/redux/index.d.ts +79 -76
  120. package/dist/redux/index.js +79 -76
  121. package/dist/redux/index.js.map +1 -1
  122. package/dist/redux/invoice/invoiceEndpoints.d.ts +10 -10
  123. package/dist/redux/invoiceAdjustment/invoiceAdjustmentEndpoints.d.ts +10 -10
  124. package/dist/redux/invoiceV1/invoiceV1Endpoints.d.ts +19 -19
  125. package/dist/redux/load/loadEndpoints.d.ts +12 -12
  126. package/dist/redux/loadAdjustment/loadAdjustmentEndpoints.d.ts +10 -10
  127. package/dist/redux/loadAdjustmentV1/loadAdjustmentV1Endpoints.d.ts +10 -10
  128. package/dist/redux/loadTender/loadTenderEndpoints.d.ts +12 -12
  129. package/dist/redux/loadTenderView/loadTenderViewEndpoints.d.ts +10 -10
  130. package/dist/redux/loadV1/loadV1Endpoints.d.ts +58 -58
  131. package/dist/redux/location/locationEndpoints.d.ts +16 -16
  132. package/dist/redux/locationV1/locationV1Endpoints.d.ts +18 -19
  133. package/dist/redux/locationV1/locationV1Endpoints.js +1 -10
  134. package/dist/redux/locationV1/locationV1Endpoints.js.map +1 -1
  135. package/dist/redux/manualCheckCall/manualCheckCallEndpoints.d.ts +10 -10
  136. package/dist/redux/mapUpdate/mapUpdateEndpoints.d.ts +3 -3
  137. package/dist/redux/nmfcClass/nmfcClassEndpoints.d.ts +9 -9
  138. package/dist/redux/node/nodeEndpoints.d.ts +8 -8
  139. package/dist/redux/nodeName/nodeNameEndpoints.d.ts +10 -10
  140. package/dist/redux/nodeType/nodeTypeEndpoints.d.ts +8 -8
  141. package/dist/redux/nodeTypeNode/nodeTypeNodeEndpoints.d.ts +8 -8
  142. package/dist/redux/notification/notificationEndpoints.d.ts +13 -13
  143. package/dist/redux/otrDispatch/otrDispatchEndpoints.d.ts +23 -23
  144. package/dist/redux/person/personEndpoints.d.ts +12 -12
  145. package/dist/redux/personName/personNameEndpoints.d.ts +10 -10
  146. package/dist/redux/position/positionEndpoints.d.ts +10 -10
  147. package/dist/redux/possibleIssueItem/possibleIssueItemEndpoints.d.ts +10 -10
  148. package/dist/redux/quote/quoteCustomerPortalEndpoints.d.ts +15 -15
  149. package/dist/redux/quote/quoteHooks.d.ts +2 -2
  150. package/dist/redux/quote/quoteSalesEndpoints.d.ts +16 -16
  151. package/dist/redux/quoteAccessorial/quoteAccessorialEndpoints.d.ts +9 -9
  152. package/dist/redux/quoteAccessorialV1/quoteAccessorialV1Endpoints.d.ts +10 -10
  153. package/dist/redux/rateReview/rateReviewEndpoints.d.ts +10 -10
  154. package/dist/redux/rejectionReason/rejectionReasonEndpoints.d.ts +9 -9
  155. package/dist/redux/relayCode/relayCodeEndpoints.d.ts +11 -11
  156. package/dist/redux/shipConDispatch/shipConDispatchEndpoints.d.ts +11 -11
  157. package/dist/redux/shipConETA/shipConETAEndpoints.d.ts +10 -10
  158. package/dist/redux/shipcon/shipconEndpoints.d.ts +11 -11
  159. package/dist/redux/shipconV1/shipconV1Endpoints.d.ts +18 -18
  160. package/dist/redux/tender/tenderEndpoints.d.ts +9 -9
  161. package/dist/redux/trailerAvailability/customerEndpoints.d.ts +4 -4
  162. package/dist/redux/trailerCode/trailerCodeEndpoints.d.ts +9 -9
  163. package/dist/redux/uninvoicedLoadV1/uninvoicedLoadV1Endpoints.d.ts +12 -12
  164. package/dist/redux/unitV1/unitV1Endpoints.d.ts +9 -9
  165. package/dist/redux/userNoteV1/userNoteV1Endpoints.d.ts +12 -12
  166. package/package.json +1 -1
@@ -0,0 +1,11 @@
1
+ export default class AccessorialV1_Entity {
2
+ static requiredFields: string[];
3
+ constructor(accessorialV1Json: unknown);
4
+ cost_amount?: number;
5
+ email_view?: string;
6
+ general_ledger_account_id?: number;
7
+ id: number;
8
+ name?: string;
9
+ quote_visible?: boolean;
10
+ subscription_id?: number;
11
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * AccessorialV1_Entity type guard.
3
+ *
4
+ * @param {any} accessorialV1Json AccessorialV1 object from API
5
+ * @returns {boolean} Return true if type is AccessorialV1_Entity
6
+ */
7
+ function validator(accessorialV1Json) {
8
+ if (typeof accessorialV1Json === "object" && accessorialV1Json != null) {
9
+ AccessorialV1_Entity.requiredFields.forEach((element) => {
10
+ if (!Object.keys(accessorialV1Json).includes(element))
11
+ throw new Error(`Field ${element} is null or undefined`);
12
+ });
13
+ }
14
+ return true;
15
+ }
16
+ export default class AccessorialV1_Entity {
17
+ static requiredFields = ["id"];
18
+ constructor(accessorialV1Json) {
19
+ if (validator(accessorialV1Json)) {
20
+ this.id = accessorialV1Json.id;
21
+ this.cost_amount = accessorialV1Json.cost_amount;
22
+ this.email_view = accessorialV1Json.email_view;
23
+ this.general_ledger_account_id =
24
+ accessorialV1Json.general_ledger_account_id;
25
+ this.name = accessorialV1Json.name;
26
+ this.quote_visible = accessorialV1Json.quote_visible;
27
+ this.subscription_id = accessorialV1Json.subscription_id;
28
+ }
29
+ else
30
+ throw new Error(`Failed to create new instance of ${AccessorialV1_Entity.name}`);
31
+ }
32
+ cost_amount;
33
+ email_view;
34
+ general_ledger_account_id;
35
+ id;
36
+ name;
37
+ quote_visible;
38
+ subscription_id;
39
+ }
40
+ //# sourceMappingURL=accessorialV1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accessorialV1.js","sourceRoot":"","sources":["../../../src/entities/accessorialV1/accessorialV1.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,SAAS,SAAS,CAChB,iBAA0B;IAE1B,IAAI,OAAO,iBAAiB,KAAK,QAAQ,IAAI,iBAAiB,IAAI,IAAI,EAAE;QACtE,oBAAoB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACtD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;gBACnD,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,oBAAoB;IACvC,MAAM,CAAC,cAAc,GAAG,CAAC,IAAI,CAAC,CAAC;IAE/B,YAAY,iBAA0B;QACpC,IAAI,SAAS,CAAC,iBAAiB,CAAC,EAAE;YAChC,IAAI,CAAC,EAAE,GAAG,iBAAiB,CAAC,EAAE,CAAC;YAC/B,IAAI,CAAC,WAAW,GAAG,iBAAiB,CAAC,WAAW,CAAC;YACjD,IAAI,CAAC,UAAU,GAAG,iBAAiB,CAAC,UAAU,CAAC;YAC/C,IAAI,CAAC,yBAAyB;gBAC5B,iBAAiB,CAAC,yBAAyB,CAAC;YAC9C,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC,IAAI,CAAC;YACnC,IAAI,CAAC,aAAa,GAAG,iBAAiB,CAAC,aAAa,CAAC;YACrD,IAAI,CAAC,eAAe,GAAG,iBAAiB,CAAC,eAAe,CAAC;SAC1D;;YACC,MAAM,IAAI,KAAK,CACb,oCAAoC,oBAAoB,CAAC,IAAI,EAAE,CAChE,CAAC;IACN,CAAC;IAED,WAAW,CAAU;IACrB,UAAU,CAAU;IACpB,yBAAyB,CAAU;IACnC,EAAE,CAAS;IACX,IAAI,CAAU;IACd,aAAa,CAAW;IACxB,eAAe,CAAU"}
@@ -0,0 +1,5 @@
1
+ import AccessorialV1_Entity from "./accessorialV1";
2
+ export default class AccessorialV1 extends AccessorialV1_Entity {
3
+ static fromList(accessorialV1sJSON: unknown): Array<AccessorialV1>;
4
+ toJson(): string;
5
+ }
@@ -0,0 +1,16 @@
1
+ import AccessorialV1_Entity from "./accessorialV1";
2
+ export default class AccessorialV1 extends AccessorialV1_Entity {
3
+ static fromList(accessorialV1sJSON) {
4
+ const accessorialV1s = [];
5
+ if (accessorialV1sJSON)
6
+ Array.isArray(accessorialV1sJSON) &&
7
+ accessorialV1sJSON.forEach((accessorialV1JSON) => {
8
+ accessorialV1s.push(new AccessorialV1(accessorialV1JSON));
9
+ });
10
+ return accessorialV1s;
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/accessorialV1/helper.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,iBAAiB,CAAC;AACnD,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,oBAAoB;IAC7D,MAAM,CAAC,QAAQ,CAAC,kBAA2B;QACzC,MAAM,cAAc,GAAoB,EAAE,CAAC;QAC3C,IAAI,kBAAkB;YACpB,KAAK,CAAC,OAAO,CAAC,kBAAkB,CAAC;gBAC/B,kBAAkB,CAAC,OAAO,CAAC,CAAC,iBAAiB,EAAE,EAAE;oBAC/C,cAAc,CAAC,IAAI,CAAC,IAAI,aAAa,CAAC,iBAAiB,CAAC,CAAC,CAAC;gBAC5D,CAAC,CAAC,CAAC;QACP,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export { default as AccessorialV1 } from "./helper";
2
+ export { default as AccessorialV1_Entity } from "./accessorialV1";
@@ -0,0 +1,3 @@
1
+ export { default as AccessorialV1 } from "./helper";
2
+ export { default as AccessorialV1_Entity } from "./accessorialV1";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/accessorialV1/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,9 @@
1
+ export default class AttributeField_Entity {
2
+ static requiredFields: string[];
3
+ constructor(attributeFieldJson: unknown);
4
+ id: number;
5
+ createdAt: string;
6
+ updatedAt: string;
7
+ name?: string;
8
+ field_name?: string;
9
+ }
@@ -0,0 +1,35 @@
1
+ /**
2
+ * AttributeField_Entity type guard.
3
+ *
4
+ * @param {any} attributeFieldJson AttributeField object from API
5
+ * @returns {boolean} Return true if type is AttributeField_Entity
6
+ */
7
+ function validator(attributeFieldJson) {
8
+ if (typeof attributeFieldJson === "object" && attributeFieldJson != null) {
9
+ AttributeField_Entity.requiredFields.forEach((element) => {
10
+ if (!Object.keys(attributeFieldJson).includes(element))
11
+ throw new Error(`Field ${element} is null or undefined`);
12
+ });
13
+ }
14
+ return true;
15
+ }
16
+ export default class AttributeField_Entity {
17
+ static requiredFields = ["id"];
18
+ constructor(attributeFieldJson) {
19
+ if (validator(attributeFieldJson)) {
20
+ this.id = attributeFieldJson.id;
21
+ this.createdAt = attributeFieldJson.createdAt;
22
+ this.updatedAt = attributeFieldJson.updatedAt;
23
+ this.name = attributeFieldJson.name;
24
+ this.field_name = attributeFieldJson.field_name;
25
+ }
26
+ else
27
+ throw new Error(`Failed to create new instance of ${AttributeField_Entity.name}`);
28
+ }
29
+ id;
30
+ createdAt;
31
+ updatedAt;
32
+ name;
33
+ field_name;
34
+ }
35
+ //# sourceMappingURL=attributeField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attributeField.js","sourceRoot":"","sources":["../../../src/entities/attributeField/attributeField.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,SAAS,SAAS,CAChB,kBAA2B;IAE3B,IAAI,OAAO,kBAAkB,KAAK,QAAQ,IAAI,kBAAkB,IAAI,IAAI,EAAE;QACxE,qBAAqB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACvD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;gBACpD,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,qBAAqB;IACxC,MAAM,CAAC,cAAc,GAAG,CAAC,IAAI,CAAC,CAAC;IAE/B,YAAY,kBAA2B;QACrC,IAAI,SAAS,CAAC,kBAAkB,CAAC,EAAE;YACjC,IAAI,CAAC,EAAE,GAAG,kBAAkB,CAAC,EAAE,CAAC;YAChC,IAAI,CAAC,SAAS,GAAG,kBAAkB,CAAC,SAAS,CAAC;YAC9C,IAAI,CAAC,SAAS,GAAG,kBAAkB,CAAC,SAAS,CAAC;YAC9C,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC,IAAI,CAAC;YACpC,IAAI,CAAC,UAAU,GAAG,kBAAkB,CAAC,UAAU,CAAC;SACjD;;YACC,MAAM,IAAI,KAAK,CACb,oCAAoC,qBAAqB,CAAC,IAAI,EAAE,CACjE,CAAC;IACN,CAAC;IAED,EAAE,CAAS;IACX,SAAS,CAAS;IAClB,SAAS,CAAS;IAClB,IAAI,CAAU;IACd,UAAU,CAAU"}
@@ -0,0 +1,5 @@
1
+ import AttributeField_Entity from "./attributeField";
2
+ export default class AttributeField extends AttributeField_Entity {
3
+ static fromList(attributeFieldsJSON: unknown): Array<AttributeField>;
4
+ toJson(): string;
5
+ }
@@ -0,0 +1,16 @@
1
+ import AttributeField_Entity from "./attributeField";
2
+ export default class AttributeField extends AttributeField_Entity {
3
+ static fromList(attributeFieldsJSON) {
4
+ const attributeFields = [];
5
+ if (attributeFieldsJSON)
6
+ Array.isArray(attributeFieldsJSON) &&
7
+ attributeFieldsJSON.forEach((attributeFieldJSON) => {
8
+ attributeFields.push(new AttributeField(attributeFieldJSON));
9
+ });
10
+ return attributeFields;
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/attributeField/helper.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,MAAM,kBAAkB,CAAC;AACrD,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,qBAAqB;IAC/D,MAAM,CAAC,QAAQ,CAAC,mBAA4B;QAC1C,MAAM,eAAe,GAAqB,EAAE,CAAC;QAC7C,IAAI,mBAAmB;YACrB,KAAK,CAAC,OAAO,CAAC,mBAAmB,CAAC;gBAChC,mBAAmB,CAAC,OAAO,CAAC,CAAC,kBAAkB,EAAE,EAAE;oBACjD,eAAe,CAAC,IAAI,CAAC,IAAI,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC;gBAC/D,CAAC,CAAC,CAAC;QACP,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export { default as AttributeField } from "./helper";
2
+ export { default as AttributeField_Entity } from "./attributeField";
@@ -0,0 +1,3 @@
1
+ export { default as AttributeField } from "./helper";
2
+ export { default as AttributeField_Entity } from "./attributeField";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/attributeField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,9 @@
1
+ export default class DefaultSetting_Entity {
2
+ static requiredFields: string[];
3
+ constructor(defaultSettingJson: unknown);
4
+ id: number;
5
+ model_type?: string;
6
+ model_id?: number;
7
+ attribute_field_id?: number;
8
+ value?: string;
9
+ }
@@ -0,0 +1,35 @@
1
+ /**
2
+ * DefaultSetting_Entity type guard.
3
+ *
4
+ * @param {any} defaultSettingJson DefaultSetting object from API
5
+ * @returns {boolean} Return true if type is DefaultSetting_Entity
6
+ */
7
+ function validator(defaultSettingJson) {
8
+ if (typeof defaultSettingJson === "object" && defaultSettingJson != null) {
9
+ DefaultSetting_Entity.requiredFields.forEach((element) => {
10
+ if (!Object.keys(defaultSettingJson).includes(element))
11
+ throw new Error(`Field ${element} is null or undefined`);
12
+ });
13
+ }
14
+ return true;
15
+ }
16
+ export default class DefaultSetting_Entity {
17
+ static requiredFields = ["id"];
18
+ constructor(defaultSettingJson) {
19
+ if (validator(defaultSettingJson)) {
20
+ this.id = defaultSettingJson.id;
21
+ this.model_id = defaultSettingJson.model_id;
22
+ this.model_type = defaultSettingJson.model_type;
23
+ this.attribute_field_id = defaultSettingJson.attribute_field_id;
24
+ this.value = defaultSettingJson.value;
25
+ }
26
+ else
27
+ throw new Error(`Failed to create new instance of ${DefaultSetting_Entity.name}`);
28
+ }
29
+ id;
30
+ model_type;
31
+ model_id;
32
+ attribute_field_id;
33
+ value;
34
+ }
35
+ //# sourceMappingURL=defaultSetting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultSetting.js","sourceRoot":"","sources":["../../../src/entities/defaultSetting/defaultSetting.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,SAAS,SAAS,CAChB,kBAA2B;IAE3B,IAAI,OAAO,kBAAkB,KAAK,QAAQ,IAAI,kBAAkB,IAAI,IAAI,EAAE;QACxE,qBAAqB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACvD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;gBACpD,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,qBAAqB;IACxC,MAAM,CAAC,cAAc,GAAG,CAAC,IAAI,CAAC,CAAC;IAE/B,YAAY,kBAA2B;QACrC,IAAI,SAAS,CAAC,kBAAkB,CAAC,EAAE;YACjC,IAAI,CAAC,EAAE,GAAG,kBAAkB,CAAC,EAAE,CAAC;YAChC,IAAI,CAAC,QAAQ,GAAG,kBAAkB,CAAC,QAAQ,CAAC;YAC5C,IAAI,CAAC,UAAU,GAAG,kBAAkB,CAAC,UAAU,CAAC;YAChD,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC,kBAAkB,CAAC;YAChE,IAAI,CAAC,KAAK,GAAG,kBAAkB,CAAC,KAAK,CAAC;SACvC;;YACC,MAAM,IAAI,KAAK,CACb,oCAAoC,qBAAqB,CAAC,IAAI,EAAE,CACjE,CAAC;IACN,CAAC;IAED,EAAE,CAAS;IACX,UAAU,CAAU;IACpB,QAAQ,CAAU;IAClB,kBAAkB,CAAU;IAC5B,KAAK,CAAU"}
@@ -0,0 +1,5 @@
1
+ import DefaultSetting_Entity from "./defaultSetting";
2
+ export default class DefaultSetting extends DefaultSetting_Entity {
3
+ static fromList(defaultSettingsJSON: unknown): Array<DefaultSetting>;
4
+ toJson(): string;
5
+ }
@@ -0,0 +1,16 @@
1
+ import DefaultSetting_Entity from "./defaultSetting";
2
+ export default class DefaultSetting extends DefaultSetting_Entity {
3
+ static fromList(defaultSettingsJSON) {
4
+ const defaultSettings = [];
5
+ if (defaultSettingsJSON)
6
+ Array.isArray(defaultSettingsJSON) &&
7
+ defaultSettingsJSON.forEach((defaultSettingJSON) => {
8
+ defaultSettings.push(new DefaultSetting(defaultSettingJSON));
9
+ });
10
+ return defaultSettings;
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/defaultSetting/helper.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,MAAM,kBAAkB,CAAC;AACrD,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,qBAAqB;IAC/D,MAAM,CAAC,QAAQ,CAAC,mBAA4B;QAC1C,MAAM,eAAe,GAAqB,EAAE,CAAC;QAC7C,IAAI,mBAAmB;YACrB,KAAK,CAAC,OAAO,CAAC,mBAAmB,CAAC;gBAChC,mBAAmB,CAAC,OAAO,CAAC,CAAC,kBAAkB,EAAE,EAAE;oBACjD,eAAe,CAAC,IAAI,CAAC,IAAI,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC;gBAC/D,CAAC,CAAC,CAAC;QACP,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export { default as DefaultSetting } from "./helper";
2
+ export { default as DefaultSetting_Entity } from "./defaultSetting";
@@ -0,0 +1,3 @@
1
+ export { default as DefaultSetting } from "./helper";
2
+ export { default as DefaultSetting_Entity } from "./defaultSetting";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/defaultSetting/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,129 +1,132 @@
1
1
  export * from "./accessorial";
2
2
  export * from "./accessorials";
3
- export * from "./customer";
4
- export * from "./holiday";
5
- export * from "./load";
6
- export * from "./loadAdjustment";
7
- export * from "./location";
8
- export * from "./locationV1";
9
- export * from "./marketCosts";
10
- export * from "./quote";
11
- export * from "./quoteAccessorial";
12
- export * from "./quoteResponse";
13
- export * from "./shipcon";
14
- export * from "./path";
15
- export * from "./tenderResponse";
16
- export * from "./archerFile";
17
- export * from "./locationAccessorial";
18
- export * from "./archerFileV1";
19
- export * from "./appointmentNote";
20
- export * from "./appointmentNoteType";
21
- export * from "./shipconV1";
3
+ export * from "./accessorialV1";
4
+ export * from "./apiTender";
5
+ export * from "./appointmentArrival";
6
+ export * from "./appointmentIssue";
22
7
  export * from "./appointmentIssueCategory";
23
8
  export * from "./appointmentIssueSubcategory";
24
- export * from "./personName";
25
- export * from "./nodeName";
26
- export * from "./driverName";
27
- export * from "./carrierName";
28
- export * from "./appointmentIssue";
29
- export * from "./loadV1";
30
- export * from "./nmfcClass";
31
- export * from "./commodityV1";
32
- export * from "./quoteAccessorialV1";
33
- export * from "./loadAdjustmentV1";
34
- export * from "./userNoteV1";
35
- export * from "./customerV1";
36
- export * from "./customersAccessorial";
37
- export * from "./unitV1";
38
- export * from "./notification";
39
- export * from "./notificationSubscription";
40
- export * from "./notificationUserSubscription";
41
- export * from "./person";
42
- export * from "./company";
43
- export * from "./contact";
44
- export * from "./flag";
45
- export * from "./rateReview";
46
- export * from "./carrierTenderV1";
47
- export * from "./carrierTender";
48
- export * from "./hosLog";
49
- export * from "./workflowEvent";
50
- export * from "./appointmentArrival";
51
- export * from "./quoteRateRecord";
52
- export * from "./loadChange";
53
- export * from "./genericTender";
54
- export * from "./customerCredit";
55
- export * from "./dispatch";
56
- export * from "./cargoConsolidation";
57
- export * from "./ediTransaction";
58
- export * from "./userNotification";
59
- export * from "./claim";
60
- export * from "./claimResponse";
61
- export * from "./claimStatus";
9
+ export * from "./appointmentNote";
10
+ export * from "./appointmentNoteType";
11
+ export * from "./appointmentTrip";
12
+ export * from "./archerFile";
13
+ export * from "./archerFileV1";
14
+ export * from "./area";
15
+ export * from "./asset";
16
+ export * from "./assetName";
17
+ export * from "./assetType";
18
+ export * from "./attributeField";
62
19
  export * from "./billingKickback";
63
20
  export * from "./billingKickbackResponse";
64
21
  export * from "./billingKickbackResponseAccessorial";
65
22
  export * from "./billingMessage";
66
- export * from "./invoiceV1";
67
- export * from "./invoiceLineItem";
68
- export * from "./invoice";
69
- export * from "./transaction";
70
23
  export * from "./billingNote";
71
- export * from "./generalLedgerAccount";
72
- export * from "./invoiceAdjustment";
73
- export * from "./commodity";
74
- export * from "./lastLocation";
75
- export * from "./apiTender";
76
- export * from "./companyLocation";
77
- export * from "./departmentPhone";
78
- export * from "./driverV1";
79
- export * from "./driver";
80
- export * from "./appointmentTrip";
81
- export * from "./otrDispatch";
82
- export * from "./relayCode";
83
- export * from "./deduction";
84
- export * from "./asset";
85
- export * from "./assetName";
86
- export * from "./trailerCode";
24
+ export * from "./cargoConsolidation";
25
+ export * from "./cargoConsolidationCommodityPiece";
26
+ export * from "./carrier";
27
+ export * from "./carrierInsurance";
28
+ export * from "./carrierName";
29
+ export * from "./carrierPacketNote";
87
30
  export * from "./carrierPayContract";
88
- export * from "./position";
31
+ export * from "./carrierTender";
89
32
  export * from "./carrierTenderAccessorial";
90
- export * from "./carrierTenderEdge";
91
- export * from "./cargoConsolidationCommodityPiece";
33
+ export * from "./carrierTenderChange";
92
34
  export * from "./carrierTenderDeduction";
35
+ export * from "./carrierTenderEdge";
93
36
  export * from "./carrierTenderRateRecord";
94
- export * from "./employeeName";
95
- export * from "./possibleIssueItem";
96
- export * from "./manualCheckCall";
97
- export * from "./otrDispatchV1";
98
- export * from "./shipConDispatch";
99
- export * from "./personV1";
100
- export * from "./mapUpdateV1";
101
- export * from "./etaInformation";
102
- export * from "./shipConETA";
103
- export * from "./liteLoad";
104
- export * from "./record";
37
+ export * from "./carrierTenderV1";
38
+ export * from "./carrierV1";
39
+ export * from "./claim";
40
+ export * from "./claimResponse";
41
+ export * from "./claimStatus";
42
+ export * from "./commodity";
43
+ export * from "./commodityPiece";
44
+ export * from "./commodityV1";
45
+ export * from "./company";
46
+ export * from "./companyLocation";
47
+ export * from "./contact";
105
48
  export * from "./contract";
49
+ export * from "./creditTerm";
50
+ export * from "./customer";
106
51
  export * from "./customerContract";
107
- export * from "./mapUpdate";
108
- export * from "./quoteV1";
109
- export * from "./rejectionReason";
110
- export * from "./carrierV1";
111
- export * from "./carrierPacketNote";
112
- export * from "./carrierInsurance";
52
+ export * from "./customerCredit";
113
53
  export * from "./customerName";
114
- export * from "./ediLoadTender";
115
- export * from "./ediAccount";
116
- export * from "./carrier";
117
- export * from "./area";
118
- export * from "./carrierTenderChange";
119
- export * from "./commodityPiece";
54
+ export * from "./customersAccessorial";
55
+ export * from "./customersPerson";
56
+ export * from "./customerTrailer";
57
+ export * from "./customerV1";
58
+ export * from "./deduction";
59
+ export * from "./defaultSetting";
60
+ export * from "./departmentPhone";
61
+ export * from "./dispatch";
120
62
  export * from "./dispatchPath";
121
63
  export * from "./dispatchPathEdge";
64
+ export * from "./driver";
65
+ export * from "./driverName";
66
+ export * from "./driverV1";
67
+ export * from "./ediAccount";
68
+ export * from "./ediLoadTender";
69
+ export * from "./ediTransaction";
70
+ export * from "./employeeName";
71
+ export * from "./etaInformation";
72
+ export * from "./flag";
73
+ export * from "./generalLedgerAccount";
74
+ export * from "./genericTender";
75
+ export * from "./holiday";
76
+ export * from "./hosLog";
77
+ export * from "./invoice";
78
+ export * from "./invoiceAdjustment";
79
+ export * from "./invoiceLineItem";
80
+ export * from "./invoiceV1";
81
+ export * from "./lastLocation";
82
+ export * from "./liteLoad";
83
+ export * from "./load";
84
+ export * from "./loadAdjustment";
85
+ export * from "./loadAdjustmentV1";
86
+ export * from "./loadChange";
87
+ export * from "./loadV1";
88
+ export * from "./location";
89
+ export * from "./locationAccessorial";
90
+ export * from "./locationV1";
91
+ export * from "./manualCheckCall";
92
+ export * from "./mapUpdate";
93
+ export * from "./mapUpdateV1";
94
+ export * from "./marketCosts";
95
+ export * from "./nmfcClass";
122
96
  export * from "./node";
97
+ export * from "./nodeName";
123
98
  export * from "./nodeType";
124
- export * from "./creditTerm";
99
+ export * from "./notification";
100
+ export * from "./notificationSubscription";
101
+ export * from "./notificationUserSubscription";
102
+ export * from "./otrDispatch";
103
+ export * from "./otrDispatchV1";
104
+ export * from "./path";
125
105
  export * from "./paymentV1";
106
+ export * from "./person";
107
+ export * from "./personName";
108
+ export * from "./personV1";
109
+ export * from "./position";
110
+ export * from "./possibleIssueItem";
111
+ export * from "./quote";
112
+ export * from "./quoteAccessorial";
113
+ export * from "./quoteAccessorialV1";
114
+ export * from "./quoteRateRecord";
115
+ export * from "./quoteResponse";
116
+ export * from "./quoteV1";
117
+ export * from "./rateReview";
118
+ export * from "./record";
119
+ export * from "./rejectionReason";
120
+ export * from "./relayCode";
121
+ export * from "./shipcon";
122
+ export * from "./shipConDispatch";
123
+ export * from "./shipConETA";
124
+ export * from "./shipconV1";
125
+ export * from "./tenderResponse";
126
+ export * from "./trailerCode";
127
+ export * from "./transaction";
126
128
  export * from "./uninvoicedLoadV1";
127
- export * from "./customersPerson";
128
- export * from "./customerTrailer";
129
- export * from "./assetType";
129
+ export * from "./unitV1";
130
+ export * from "./userNoteV1";
131
+ export * from "./userNotification";
132
+ export * from "./workflowEvent";