@nerdjs/sales-kit 2.4.32 → 2.4.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/accessorialV1/accessorialV1.d.ts +11 -0
- package/dist/entities/accessorialV1/accessorialV1.js +40 -0
- package/dist/entities/accessorialV1/accessorialV1.js.map +1 -0
- package/dist/entities/accessorialV1/helper.d.ts +5 -0
- package/dist/entities/accessorialV1/helper.js +16 -0
- package/dist/entities/accessorialV1/helper.js.map +1 -0
- package/dist/entities/accessorialV1/index.d.ts +2 -0
- package/dist/entities/accessorialV1/index.js +3 -0
- package/dist/entities/accessorialV1/index.js.map +1 -0
- package/dist/entities/attributeField/attributeField.d.ts +9 -0
- package/dist/entities/attributeField/attributeField.js +35 -0
- package/dist/entities/attributeField/attributeField.js.map +1 -0
- package/dist/entities/attributeField/helper.d.ts +5 -0
- package/dist/entities/attributeField/helper.js +16 -0
- package/dist/entities/attributeField/helper.js.map +1 -0
- package/dist/entities/attributeField/index.d.ts +2 -0
- package/dist/entities/attributeField/index.js +3 -0
- package/dist/entities/attributeField/index.js.map +1 -0
- package/dist/entities/defaultSetting/defaultSetting.d.ts +9 -0
- package/dist/entities/defaultSetting/defaultSetting.js +35 -0
- package/dist/entities/defaultSetting/defaultSetting.js.map +1 -0
- package/dist/entities/defaultSetting/helper.d.ts +5 -0
- package/dist/entities/defaultSetting/helper.js +16 -0
- package/dist/entities/defaultSetting/helper.js.map +1 -0
- package/dist/entities/defaultSetting/index.d.ts +2 -0
- package/dist/entities/defaultSetting/index.js +3 -0
- package/dist/entities/defaultSetting/index.js.map +1 -0
- package/dist/entities/index.d.ts +110 -107
- package/dist/entities/index.js +110 -107
- package/dist/entities/index.js.map +1 -1
- package/dist/hooks/lep/lepAccessorials.js +4 -2
- package/dist/hooks/lep/lepAccessorials.js.map +1 -1
- package/dist/hooks/lep/lepCustomersAccessorials.js +5 -4
- package/dist/hooks/lep/lepCustomersAccessorials.js.map +1 -1
- package/dist/hooks/locationsForm/locationFormSales/locationAccessorialsList.js +10 -7
- package/dist/hooks/locationsForm/locationFormSales/locationAccessorialsList.js.map +1 -1
- package/dist/redux/accessorialV1/accessorialV1Endpoints.d.ts +37 -0
- package/dist/redux/accessorialV1/accessorialV1Endpoints.js +64 -0
- package/dist/redux/accessorialV1/accessorialV1Endpoints.js.map +1 -0
- package/dist/redux/accessorialV1/index.d.ts +2 -0
- package/dist/redux/accessorialV1/index.js +3 -0
- package/dist/redux/accessorialV1/index.js.map +1 -0
- package/dist/redux/api/salesApi.d.ts +1 -1
- package/dist/redux/api/salesApi.js +12 -8
- package/dist/redux/api/salesApi.js.map +1 -1
- package/dist/redux/apiTender/apiTenderEndpoints.d.ts +10 -10
- package/dist/redux/appointmentArrival/appointmentArrivalEndpoints.d.ts +12 -12
- package/dist/redux/appointmentIssue/appointmentIssueEndpoints.d.ts +10 -10
- package/dist/redux/appointmentIssueCategory/appointmentIssueCategoryEndpoints.d.ts +11 -11
- package/dist/redux/appointmentIssueSubcategory/appointmentIssueSubcategoryEndpoints.d.ts +10 -10
- package/dist/redux/appointmentNote/appointmentNoteEndpoints.d.ts +10 -10
- package/dist/redux/appointmentNoteType/appointmentNoteTypeEndpoints.d.ts +10 -10
- package/dist/redux/appointmentTrip/appointmentTripEndpoints.d.ts +10 -10
- package/dist/redux/archerFile/archerFileEndpoints.d.ts +15 -15
- package/dist/redux/area/areaEndpoints.d.ts +9 -9
- package/dist/redux/asset/assetEndpoints.d.ts +12 -12
- package/dist/redux/assetType/assetTypeEndpoints.d.ts +9 -9
- package/dist/redux/attributeField/attributeFieldEndpoints.d.ts +29 -0
- package/dist/redux/attributeField/attributeFieldEndpoints.js +64 -0
- package/dist/redux/attributeField/attributeFieldEndpoints.js.map +1 -0
- package/dist/redux/attributeField/index.d.ts +2 -0
- package/dist/redux/attributeField/index.js +3 -0
- package/dist/redux/attributeField/index.js.map +1 -0
- package/dist/redux/billingKickback/billingKickbackEndpoints.d.ts +11 -11
- package/dist/redux/billingKickbackResponse/billingKickbackResponseEndpoints.d.ts +10 -10
- package/dist/redux/billingKickbackResponseAccessorial/billingKickbackResponseAccessorialEndpoints.d.ts +10 -10
- package/dist/redux/billingMessage/billingMessageEndpoints.d.ts +9 -9
- package/dist/redux/billingNote/billingNoteEndpoints.d.ts +10 -10
- package/dist/redux/cargoConsolidation/cargoConsolidationEndpoints.d.ts +19 -19
- package/dist/redux/cargoConsolidationCommodityPiece/cargoConsolidationCommodityPieceEndpoints.d.ts +10 -10
- package/dist/redux/carrier/carrierEndpoints.d.ts +21 -21
- package/dist/redux/carrierInsurance/carrierInsuranceEndpoints.d.ts +10 -10
- package/dist/redux/carrierName/carrierNameEndpoints.d.ts +12 -12
- package/dist/redux/carrierPayContract/carrierPayContractEndpoints.d.ts +11 -11
- package/dist/redux/carrierTender/carrierTenderEndpoints.d.ts +10 -10
- package/dist/redux/carrierTenderAccessorial/carrierTenderAccessorialEndpoints.d.ts +10 -10
- package/dist/redux/carrierTenderDeduction/carrierTenderDeductionEndpoints.d.ts +10 -10
- package/dist/redux/carrierTenderEdge/carrierTenderEdgeEndpoints.d.ts +9 -9
- package/dist/redux/carrierTenderV1/carrierTenderV1Endpoints.d.ts +20 -20
- package/dist/redux/claim/claimEndpoints.d.ts +16 -16
- package/dist/redux/claimStatus/claimStatusEndpoints.d.ts +9 -9
- package/dist/redux/commodity/commodityEndpoints.d.ts +10 -10
- package/dist/redux/commodityV1/commodityV1Endpoints.d.ts +11 -11
- package/dist/redux/companyLocation/companyLocationEndpoints.d.ts +10 -10
- package/dist/redux/contact/contactEndpoints.d.ts +10 -10
- package/dist/redux/contract/contractEndpoints.d.ts +10 -10
- package/dist/redux/contractsRecord/contractsRecordEndpoints.d.ts +12 -12
- package/dist/redux/creditTerm/creditTermEndpoints.d.ts +9 -9
- package/dist/redux/customer/customerEndpoints.d.ts +24 -23
- package/dist/redux/customer/customerEndpoints.js +8 -1
- package/dist/redux/customer/customerEndpoints.js.map +1 -1
- package/dist/redux/customerContract/customerContractEndpoints.d.ts +10 -10
- package/dist/redux/customerTrailer/customerTrailerEndpoints.d.ts +10 -10
- package/dist/redux/customersAccessorial/customersAccessorialEndpoints.d.ts +9 -9
- package/dist/redux/customersAccessorial/customersAccessorialEndpoints.js +9 -2
- package/dist/redux/customersAccessorial/customersAccessorialEndpoints.js.map +1 -1
- package/dist/redux/customersPerson/customersPersonEndpoints.d.ts +10 -10
- package/dist/redux/deduction/deductionEndpoints.d.ts +9 -9
- package/dist/redux/defaultSetting/defaultSettingEndpoints.d.ts +37 -0
- package/dist/redux/defaultSetting/defaultSettingEndpoints.js +64 -0
- package/dist/redux/defaultSetting/defaultSettingEndpoints.js.map +1 -0
- package/dist/redux/defaultSetting/index.d.ts +2 -0
- package/dist/redux/defaultSetting/index.js +3 -0
- package/dist/redux/defaultSetting/index.js.map +1 -0
- package/dist/redux/departmentPhone/departmentPhoneEndpoints.d.ts +10 -10
- package/dist/redux/dispatch/dispatchEndpoints.d.ts +10 -10
- package/dist/redux/driver/driverEndpoints.d.ts +10 -10
- package/dist/redux/driverName/driverNameEndpoints.d.ts +9 -9
- package/dist/redux/driverV1/driverV1Endpoints.d.ts +9 -9
- package/dist/redux/ediAccount/ediAccountEndpoints.d.ts +10 -10
- package/dist/redux/ediLoadTender/ediLoadTenderEndpoints.d.ts +10 -10
- package/dist/redux/employeeName/employeeNameEndpoints.d.ts +9 -9
- package/dist/redux/flag/flagEndpoints.d.ts +9 -9
- package/dist/redux/generalLedgerAccount/generalLedgerAccountEndpoints.d.ts +10 -10
- package/dist/redux/genericTender/genericTenderEndpoints.d.ts +12 -12
- package/dist/redux/holiday/holidayEndpoints.d.ts +10 -10
- package/dist/redux/index.d.ts +79 -76
- package/dist/redux/index.js +79 -76
- package/dist/redux/index.js.map +1 -1
- package/dist/redux/invoice/invoiceEndpoints.d.ts +10 -10
- package/dist/redux/invoiceAdjustment/invoiceAdjustmentEndpoints.d.ts +10 -10
- package/dist/redux/invoiceV1/invoiceV1Endpoints.d.ts +19 -19
- package/dist/redux/load/loadEndpoints.d.ts +12 -12
- package/dist/redux/loadAdjustment/loadAdjustmentEndpoints.d.ts +10 -10
- package/dist/redux/loadAdjustmentV1/loadAdjustmentV1Endpoints.d.ts +10 -10
- package/dist/redux/loadTender/loadTenderEndpoints.d.ts +12 -12
- package/dist/redux/loadTenderView/loadTenderViewEndpoints.d.ts +10 -10
- package/dist/redux/loadV1/loadV1Endpoints.d.ts +58 -58
- package/dist/redux/location/locationEndpoints.d.ts +16 -16
- package/dist/redux/locationV1/locationV1Endpoints.d.ts +18 -19
- package/dist/redux/locationV1/locationV1Endpoints.js +1 -10
- package/dist/redux/locationV1/locationV1Endpoints.js.map +1 -1
- package/dist/redux/manualCheckCall/manualCheckCallEndpoints.d.ts +10 -10
- package/dist/redux/mapUpdate/mapUpdateEndpoints.d.ts +3 -3
- package/dist/redux/nmfcClass/nmfcClassEndpoints.d.ts +9 -9
- package/dist/redux/node/nodeEndpoints.d.ts +8 -8
- package/dist/redux/nodeName/nodeNameEndpoints.d.ts +10 -10
- package/dist/redux/nodeType/nodeTypeEndpoints.d.ts +8 -8
- package/dist/redux/nodeTypeNode/nodeTypeNodeEndpoints.d.ts +8 -8
- package/dist/redux/notification/notificationEndpoints.d.ts +13 -13
- package/dist/redux/otrDispatch/otrDispatchEndpoints.d.ts +23 -23
- package/dist/redux/person/personEndpoints.d.ts +12 -12
- package/dist/redux/personName/personNameEndpoints.d.ts +10 -10
- package/dist/redux/position/positionEndpoints.d.ts +10 -10
- package/dist/redux/possibleIssueItem/possibleIssueItemEndpoints.d.ts +10 -10
- package/dist/redux/quote/quoteCustomerPortalEndpoints.d.ts +15 -15
- package/dist/redux/quote/quoteHooks.d.ts +2 -2
- package/dist/redux/quote/quoteSalesEndpoints.d.ts +16 -16
- package/dist/redux/quoteAccessorial/quoteAccessorialEndpoints.d.ts +9 -9
- package/dist/redux/quoteAccessorialV1/quoteAccessorialV1Endpoints.d.ts +10 -10
- package/dist/redux/rateReview/rateReviewEndpoints.d.ts +10 -10
- package/dist/redux/rejectionReason/rejectionReasonEndpoints.d.ts +9 -9
- package/dist/redux/relayCode/relayCodeEndpoints.d.ts +11 -11
- package/dist/redux/shipConDispatch/shipConDispatchEndpoints.d.ts +11 -11
- package/dist/redux/shipConETA/shipConETAEndpoints.d.ts +10 -10
- package/dist/redux/shipcon/shipconEndpoints.d.ts +11 -11
- package/dist/redux/shipconV1/shipconV1Endpoints.d.ts +18 -18
- package/dist/redux/tender/tenderEndpoints.d.ts +9 -9
- package/dist/redux/trailerAvailability/customerEndpoints.d.ts +4 -4
- package/dist/redux/trailerCode/trailerCodeEndpoints.d.ts +9 -9
- package/dist/redux/uninvoicedLoadV1/uninvoicedLoadV1Endpoints.d.ts +12 -12
- package/dist/redux/unitV1/unitV1Endpoints.d.ts +9 -9
- package/dist/redux/userNoteV1/userNoteV1Endpoints.d.ts +12 -12
- 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,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 @@
|
|
|
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,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,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 @@
|
|
|
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,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,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 @@
|
|
|
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"}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,129 +1,132 @@
|
|
|
1
1
|
export * from "./accessorial";
|
|
2
2
|
export * from "./accessorials";
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
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 "./
|
|
25
|
-
export * from "./
|
|
26
|
-
export * from "./
|
|
27
|
-
export * from "./
|
|
28
|
-
export * from "./
|
|
29
|
-
export * from "./
|
|
30
|
-
export * from "./
|
|
31
|
-
export * from "./
|
|
32
|
-
export * from "./
|
|
33
|
-
export * from "./
|
|
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 "./
|
|
72
|
-
export * from "./
|
|
73
|
-
export * from "./
|
|
74
|
-
export * from "./
|
|
75
|
-
export * from "./
|
|
76
|
-
export * from "./
|
|
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 "./
|
|
31
|
+
export * from "./carrierTender";
|
|
89
32
|
export * from "./carrierTenderAccessorial";
|
|
90
|
-
export * from "./
|
|
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 "./
|
|
95
|
-
export * from "./
|
|
96
|
-
export * from "./
|
|
97
|
-
export * from "./
|
|
98
|
-
export * from "./
|
|
99
|
-
export * from "./
|
|
100
|
-
export * from "./
|
|
101
|
-
export * from "./
|
|
102
|
-
export * from "./
|
|
103
|
-
export * from "./
|
|
104
|
-
export * from "./
|
|
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 "./
|
|
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 "./
|
|
115
|
-
export * from "./
|
|
116
|
-
export * from "./
|
|
117
|
-
export * from "./
|
|
118
|
-
export * from "./
|
|
119
|
-
export * from "./
|
|
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 "./
|
|
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 "./
|
|
128
|
-
export * from "./
|
|
129
|
-
export * from "./
|
|
129
|
+
export * from "./unitV1";
|
|
130
|
+
export * from "./userNoteV1";
|
|
131
|
+
export * from "./userNotification";
|
|
132
|
+
export * from "./workflowEvent";
|