@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.
- package/dist/entities/company/company.d.ts +17 -0
- package/dist/entities/company/company.js +51 -0
- package/dist/entities/company/company.js.map +1 -0
- package/dist/entities/company/helper.d.ts +5 -0
- package/dist/entities/company/helper.js +16 -0
- package/dist/entities/company/helper.js.map +1 -0
- package/dist/entities/company/index.d.ts +2 -0
- package/dist/entities/company/index.js +3 -0
- package/dist/entities/company/index.js.map +1 -0
- package/dist/entities/contact/contact.d.ts +19 -0
- package/dist/entities/contact/contact.js +55 -0
- package/dist/entities/contact/contact.js.map +1 -0
- package/dist/entities/contact/helper.d.ts +5 -0
- package/dist/entities/contact/helper.js +16 -0
- package/dist/entities/contact/helper.js.map +1 -0
- package/dist/entities/contact/index.d.ts +2 -0
- package/dist/entities/contact/index.js +3 -0
- package/dist/entities/contact/index.js.map +1 -0
- package/dist/entities/customerV1/customerV1.d.ts +138 -0
- package/dist/entities/customerV1/customerV1.js +278 -0
- package/dist/entities/customerV1/customerV1.js.map +1 -0
- package/dist/entities/customerV1/helper.d.ts +5 -0
- package/dist/entities/customerV1/helper.js +16 -0
- package/dist/entities/customerV1/helper.js.map +1 -0
- package/dist/entities/customerV1/index.d.ts +2 -0
- package/dist/entities/customerV1/index.js +3 -0
- package/dist/entities/customerV1/index.js.map +1 -0
- package/dist/entities/customersAccessorial/customersAccessorial.d.ts +20 -0
- package/dist/entities/customersAccessorial/customersAccessorial.js +58 -0
- package/dist/entities/customersAccessorial/customersAccessorial.js.map +1 -0
- package/dist/entities/customersAccessorial/helper.d.ts +5 -0
- package/dist/entities/customersAccessorial/helper.js +16 -0
- package/dist/entities/customersAccessorial/helper.js.map +1 -0
- package/dist/entities/customersAccessorial/index.d.ts +2 -0
- package/dist/entities/customersAccessorial/index.js +3 -0
- package/dist/entities/customersAccessorial/index.js.map +1 -0
- package/dist/entities/flag/flag.d.ts +9 -0
- package/dist/entities/flag/flag.js +35 -0
- package/dist/entities/flag/flag.js.map +1 -0
- package/dist/entities/flag/helper.d.ts +5 -0
- package/dist/entities/flag/helper.js +16 -0
- package/dist/entities/flag/helper.js.map +1 -0
- package/dist/entities/flag/index.d.ts +2 -0
- package/dist/entities/flag/index.js +3 -0
- package/dist/entities/flag/index.js.map +1 -0
- package/dist/entities/index.d.ts +11 -0
- package/dist/entities/index.js +11 -0
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/notification/helper.d.ts +5 -0
- package/dist/entities/notification/helper.js +16 -0
- package/dist/entities/notification/helper.js.map +1 -0
- package/dist/entities/notification/index.d.ts +2 -0
- package/dist/entities/notification/index.js +3 -0
- package/dist/entities/notification/index.js.map +1 -0
- package/dist/entities/notification/notification.d.ts +14 -0
- package/dist/entities/notification/notification.js +45 -0
- package/dist/entities/notification/notification.js.map +1 -0
- package/dist/entities/notificationSubscription/helper.d.ts +5 -0
- package/dist/entities/notificationSubscription/helper.js +16 -0
- package/dist/entities/notificationSubscription/helper.js.map +1 -0
- package/dist/entities/notificationSubscription/index.d.ts +2 -0
- package/dist/entities/notificationSubscription/index.js +3 -0
- package/dist/entities/notificationSubscription/index.js.map +1 -0
- package/dist/entities/notificationSubscription/notificationSubscription.d.ts +14 -0
- package/dist/entities/notificationSubscription/notificationSubscription.js +46 -0
- package/dist/entities/notificationSubscription/notificationSubscription.js.map +1 -0
- package/dist/entities/notificationUserSubscription/helper.d.ts +5 -0
- package/dist/entities/notificationUserSubscription/helper.js +16 -0
- package/dist/entities/notificationUserSubscription/helper.js.map +1 -0
- package/dist/entities/notificationUserSubscription/index.d.ts +2 -0
- package/dist/entities/notificationUserSubscription/index.js +3 -0
- package/dist/entities/notificationUserSubscription/index.js.map +1 -0
- package/dist/entities/notificationUserSubscription/notificationUserSubscription.d.ts +15 -0
- package/dist/entities/notificationUserSubscription/notificationUserSubscription.js +47 -0
- package/dist/entities/notificationUserSubscription/notificationUserSubscription.js.map +1 -0
- package/dist/entities/person/helper.d.ts +5 -0
- package/dist/entities/person/helper.js +16 -0
- package/dist/entities/person/helper.js.map +1 -0
- package/dist/entities/person/index.d.ts +2 -0
- package/dist/entities/person/index.js +3 -0
- package/dist/entities/person/index.js.map +1 -0
- package/dist/entities/person/person.d.ts +46 -0
- package/dist/entities/person/person.js +108 -0
- package/dist/entities/person/person.js.map +1 -0
- package/dist/entities/rateReview/helper.d.ts +5 -0
- package/dist/entities/rateReview/helper.js +16 -0
- package/dist/entities/rateReview/helper.js.map +1 -0
- package/dist/entities/rateReview/index.d.ts +2 -0
- package/dist/entities/rateReview/index.js +3 -0
- package/dist/entities/rateReview/index.js.map +1 -0
- package/dist/entities/rateReview/rateReview.d.ts +49 -0
- package/dist/entities/rateReview/rateReview.js +116 -0
- package/dist/entities/rateReview/rateReview.js.map +1 -0
- package/dist/entities/unitV1/helper.d.ts +5 -0
- package/dist/entities/unitV1/helper.js +16 -0
- package/dist/entities/unitV1/helper.js.map +1 -0
- package/dist/entities/unitV1/index.d.ts +2 -0
- package/dist/entities/unitV1/index.js +3 -0
- package/dist/entities/unitV1/index.js.map +1 -0
- package/dist/entities/unitV1/unit.d.ts +11 -0
- package/dist/entities/unitV1/unit.js +39 -0
- package/dist/entities/unitV1/unit.js.map +1 -0
- package/dist/hooks/customer/customerAutocomplete.d.ts +7 -7
- package/dist/hooks/customer/customerAutocomplete.js +12 -13
- package/dist/hooks/customer/customerAutocomplete.js.map +1 -1
- package/dist/hooks/locationsForm/locationsFormSales.js +12 -6
- package/dist/hooks/locationsForm/locationsFormSales.js.map +1 -1
- package/dist/hooks/quote/form.js +11 -0
- package/dist/hooks/quote/form.js.map +1 -1
- package/dist/hooks/quote/helpers.d.ts +9 -0
- package/dist/hooks/quote/helpers.js +19 -2
- package/dist/hooks/quote/helpers.js.map +1 -1
- package/dist/hooks/quote/result.js +1 -0
- package/dist/hooks/quote/result.js.map +1 -1
- package/dist/hooks/tender/form.js +1 -6
- package/dist/hooks/tender/form.js.map +1 -1
- package/dist/redux/api/salesApi.d.ts +1 -1
- package/dist/redux/api/salesApi.js +9 -0
- package/dist/redux/api/salesApi.js.map +1 -1
- 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/archerFile/archerFileEndpoints.d.ts +20 -8
- package/dist/redux/archerFile/archerFileEndpoints.js +18 -3
- package/dist/redux/archerFile/archerFileEndpoints.js.map +1 -1
- package/dist/redux/carrierName/carrierNameEndpoints.d.ts +10 -10
- package/dist/redux/commodityV1/commodityV1Endpoints.d.ts +11 -11
- package/dist/redux/contact/contactEndpoints.d.ts +26 -0
- package/dist/redux/contact/contactEndpoints.js +54 -0
- package/dist/redux/contact/contactEndpoints.js.map +1 -0
- package/dist/redux/contact/index.d.ts +2 -0
- package/dist/redux/contact/index.js +3 -0
- package/dist/redux/contact/index.js.map +1 -0
- package/dist/redux/customer/customerEndpoints.d.ts +27 -19
- package/dist/redux/customer/customerEndpoints.js +7 -7
- package/dist/redux/customer/customerEndpoints.js.map +1 -1
- package/dist/redux/customersAccessorial/customersAccessorialEndpoints.d.ts +24 -0
- package/dist/redux/customersAccessorial/customersAccessorialEndpoints.js +56 -0
- package/dist/redux/customersAccessorial/customersAccessorialEndpoints.js.map +1 -0
- package/dist/redux/customersAccessorial/index.d.ts +2 -0
- package/dist/redux/customersAccessorial/index.js +3 -0
- package/dist/redux/customersAccessorial/index.js.map +1 -0
- package/dist/redux/driverName/driverNameEndpoints.d.ts +9 -9
- package/dist/redux/flag/flagEndpoints.d.ts +24 -0
- package/dist/redux/flag/flagEndpoints.js +64 -0
- package/dist/redux/flag/flagEndpoints.js.map +1 -0
- package/dist/redux/flag/index.d.ts +2 -0
- package/dist/redux/flag/index.js +3 -0
- package/dist/redux/flag/index.js.map +1 -0
- package/dist/redux/holiday/holidayEndpoints.d.ts +10 -10
- package/dist/redux/index.d.ts +8 -0
- package/dist/redux/index.js +8 -0
- package/dist/redux/index.js.map +1 -1
- package/dist/redux/load/loadEndpoints.d.ts +10 -10
- package/dist/redux/loadAdjustment/loadAdjustmentEndpoints.d.ts +10 -10
- package/dist/redux/loadAdjustmentV1/loadAdjustmentV1Endpoints.d.ts +10 -10
- package/dist/redux/loadV1/loadV1Endpoints.d.ts +19 -18
- package/dist/redux/loadV1/loadV1Endpoints.js +10 -1
- package/dist/redux/loadV1/loadV1Endpoints.js.map +1 -1
- package/dist/redux/location/locationEndpoints.d.ts +14 -14
- package/dist/redux/locationV1/locationV1Endpoints.d.ts +19 -19
- package/dist/redux/nmfcClass/nmfcClassEndpoints.d.ts +9 -9
- package/dist/redux/nodeName/nodeNameEndpoints.d.ts +10 -10
- package/dist/redux/notification/index.d.ts +2 -0
- package/dist/redux/notification/index.js +3 -0
- package/dist/redux/notification/index.js.map +1 -0
- package/dist/redux/notification/notificationEndpoints.d.ts +36 -0
- package/dist/redux/notification/notificationEndpoints.js +81 -0
- package/dist/redux/notification/notificationEndpoints.js.map +1 -0
- package/dist/redux/person/index.d.ts +2 -0
- package/dist/redux/person/index.js +3 -0
- package/dist/redux/person/index.js.map +1 -0
- package/dist/redux/person/personEndpoints.d.ts +34 -0
- package/dist/redux/person/personEndpoints.js +67 -0
- package/dist/redux/person/personEndpoints.js.map +1 -0
- package/dist/redux/personName/personNameEndpoints.d.ts +10 -10
- package/dist/redux/quote/quoteEndpoints.d.ts +19 -19
- package/dist/redux/quote/quoteHooks.d.ts +2 -2
- package/dist/redux/quoteAccessorial/quoteAccessorialEndpoints.d.ts +9 -9
- package/dist/redux/quoteAccessorialV1/quoteAccessorialV1Endpoints.d.ts +10 -10
- package/dist/redux/rateReview/index.d.ts +2 -0
- package/dist/redux/rateReview/index.js +3 -0
- package/dist/redux/rateReview/index.js.map +1 -0
- package/dist/redux/rateReview/rateReviewEndpoints.d.ts +32 -0
- package/dist/redux/rateReview/rateReviewEndpoints.js +65 -0
- package/dist/redux/rateReview/rateReviewEndpoints.js.map +1 -0
- package/dist/redux/shipcon/shipconEndpoints.d.ts +10 -10
- package/dist/redux/shipconV1/shipconV1Endpoints.d.ts +14 -14
- package/dist/redux/tender/tenderEndpoints.d.ts +9 -9
- package/dist/redux/trailerAvailability/customerEndpoints.d.ts +4 -4
- package/dist/redux/types.d.ts +2 -2
- package/dist/redux/unitV1/index.d.ts +2 -0
- package/dist/redux/unitV1/index.js +3 -0
- package/dist/redux/unitV1/index.js.map +1 -0
- package/dist/redux/unitV1/unitV1Endpoints.d.ts +24 -0
- package/dist/redux/unitV1/unitV1Endpoints.js +64 -0
- package/dist/redux/unitV1/unitV1Endpoints.js.map +1 -0
- package/dist/redux/userNoteV1/userNoteV1Endpoints.d.ts +10 -10
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notificationUserSubscription.js","sourceRoot":"","sources":["../../../src/entities/notificationUserSubscription/notificationUserSubscription.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,SAAS,SAAS,CAChB,gCAAyC;IAEzC,IACE,OAAO,gCAAgC,KAAK,QAAQ;QACpD,gCAAgC,IAAI,IAAI,EACxC;QACA,mCAAmC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACrE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;gBAClE,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,mCAAmC;IACtD,MAAM,CAAC,cAAc,GAAG,CAAC,IAAI,CAAC,CAAC;IAE/B,YAAY,gCAA0C;QACpD,IAAI,SAAS,CAAC,gCAAgC,CAAC,EAAE;YAC/C,IAAI,CAAC,EAAE,GAAG,gCAAgC,CAAC,EAAE,CAAC;YAC9C,IAAI,CAAC,eAAe,GAAG,gCAAgC,CAAC,eAAe,CAAC;YACxE,IAAI,CAAC,SAAS,GAAG,gCAAgC,CAAC,SAAS,CAAC;YAC5D,IAAI,CAAC,IAAI,GAAG,gCAAgC,CAAC,IAAI,CAAC;YAClD,IAAI,CAAC,KAAK,GAAG,gCAAgC,CAAC,KAAK,CAAC;YACpD,IAAI,CAAC,MAAM,GAAG,gCAAgC,CAAC,MAAM,CAAC;YACtD,IAAI,CAAC,gBAAgB,GAAG,gCAAgC,CAAC,gBAAgB,CAAC;YAC1E,IAAI,CAAC,QAAQ,GAAG,gCAAgC,CAAC,QAAQ,CAAC;YAC1D,IAAI,CAAC,iBAAiB;gBACpB,gCAAgC,CAAC,iBAAiB,CAAC;YACrD,IAAI,CAAC,YAAY,GAAG,gCAAgC,CAAC,YAAY,CAAC;SACnE;;YACC,MAAM,IAAI,KAAK,CACb,oCAAoC,mCAAmC,CAAC,IAAI,EAAE,CAC/E,CAAC;IACN,CAAC;IAED,EAAE,CAAS;IACX,eAAe,CAAU;IACzB,SAAS,CAAU;IACnB,IAAI,CAAW;IACf,KAAK,CAAW;IAChB,MAAM,CAAW;IACjB,gBAAgB,CAAU;IAC1B,QAAQ,CAAW;IACnB,iBAAiB,CAAU;IAC3B,YAAY,CAAmC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Person_Entity from "./person";
|
|
2
|
+
export default class Person extends Person_Entity {
|
|
3
|
+
static fromList(personsJSON) {
|
|
4
|
+
const persons = [];
|
|
5
|
+
if (personsJSON)
|
|
6
|
+
Array.isArray(personsJSON) &&
|
|
7
|
+
personsJSON.forEach((personJSON) => {
|
|
8
|
+
persons.push(new Person(personJSON));
|
|
9
|
+
});
|
|
10
|
+
return persons;
|
|
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/person/helper.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,UAAU,CAAC;AACrC,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,aAAa;IAC/C,MAAM,CAAC,QAAQ,CAAC,WAAoB;QAClC,MAAM,OAAO,GAAa,EAAE,CAAC;QAC7B,IAAI,WAAW;YACb,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC;gBACxB,WAAW,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;oBACjC,OAAO,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;gBACvC,CAAC,CAAC,CAAC;QACP,OAAO,OAAO,CAAC;IACjB,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/person/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Company_Entity } from "../company";
|
|
2
|
+
export default class Person_Entity {
|
|
3
|
+
static requiredFields: string[];
|
|
4
|
+
constructor(personJson?: unknown);
|
|
5
|
+
active?: boolean;
|
|
6
|
+
api_key?: string;
|
|
7
|
+
company_id?: number;
|
|
8
|
+
created_at?: string;
|
|
9
|
+
email?: string;
|
|
10
|
+
first_name?: string;
|
|
11
|
+
id: number;
|
|
12
|
+
last_name?: string;
|
|
13
|
+
node_id?: number;
|
|
14
|
+
phone_number?: string;
|
|
15
|
+
reference_code?: number;
|
|
16
|
+
reset_password_sent_at?: string;
|
|
17
|
+
reset_password_token?: string;
|
|
18
|
+
updated_at?: string;
|
|
19
|
+
uuid?: string;
|
|
20
|
+
company?: Company_Entity;
|
|
21
|
+
name?: string;
|
|
22
|
+
password?: string;
|
|
23
|
+
password_confirmation?: string;
|
|
24
|
+
employee_id?: number;
|
|
25
|
+
role_names?: string[];
|
|
26
|
+
last_rated?: string;
|
|
27
|
+
days_between_votes?: number;
|
|
28
|
+
days_since_last_vote?: number;
|
|
29
|
+
reason_for_vote?: string;
|
|
30
|
+
supervisor_id?: number;
|
|
31
|
+
customer_id?: number;
|
|
32
|
+
role_ids?: number[];
|
|
33
|
+
model_right_ids?: number[];
|
|
34
|
+
driver_id?: number;
|
|
35
|
+
flags_object_ids?: number[];
|
|
36
|
+
flag_ids?: number[];
|
|
37
|
+
people_rating_ids?: number[];
|
|
38
|
+
dashboard_ids?: number[];
|
|
39
|
+
summary_panel_ids?: number[];
|
|
40
|
+
node_ids?: number[];
|
|
41
|
+
area_ids?: number[];
|
|
42
|
+
appointment_issue_category_ids?: number[];
|
|
43
|
+
address_ids?: number[];
|
|
44
|
+
annotation_ids?: number[];
|
|
45
|
+
version_ids?: number[];
|
|
46
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Person_Entity type guard.
|
|
3
|
+
*
|
|
4
|
+
* @param {any} personJson Person object from API
|
|
5
|
+
* @returns {boolean} Return true if type is Person_Entity
|
|
6
|
+
*/
|
|
7
|
+
function validator(personJson) {
|
|
8
|
+
if (typeof personJson === "object" && personJson != null) {
|
|
9
|
+
Person_Entity.requiredFields.forEach((element) => {
|
|
10
|
+
if (!Object.keys(personJson).includes(element))
|
|
11
|
+
throw new Error(`Field ${element} is null or undefined`);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return true;
|
|
15
|
+
}
|
|
16
|
+
export default class Person_Entity {
|
|
17
|
+
static requiredFields = ["id"];
|
|
18
|
+
constructor(personJson) {
|
|
19
|
+
if (validator(personJson)) {
|
|
20
|
+
this.active = personJson.active;
|
|
21
|
+
this.api_key = personJson.api_key;
|
|
22
|
+
this.company_id = personJson.company_id;
|
|
23
|
+
this.created_at = personJson.created_at;
|
|
24
|
+
this.email = personJson.email;
|
|
25
|
+
this.first_name = personJson.first_name;
|
|
26
|
+
this.id = personJson.id;
|
|
27
|
+
this.last_name = personJson.last_name;
|
|
28
|
+
this.node_id = personJson.node_id;
|
|
29
|
+
this.phone_number = personJson.phone_number;
|
|
30
|
+
this.reference_code = personJson.reference_code;
|
|
31
|
+
this.reset_password_sent_at = personJson.reset_password_sent_at;
|
|
32
|
+
this.reset_password_token = personJson.reset_password_token;
|
|
33
|
+
this.updated_at = personJson.updated_at;
|
|
34
|
+
this.uuid = personJson.uuid;
|
|
35
|
+
this.company = personJson.company;
|
|
36
|
+
this.name = personJson.name;
|
|
37
|
+
this.password = personJson.password;
|
|
38
|
+
this.password_confirmation = personJson.password_confirmation;
|
|
39
|
+
this.employee_id = personJson.employee_id;
|
|
40
|
+
this.role_names = personJson.role_names;
|
|
41
|
+
this.last_rated = personJson.last_rated;
|
|
42
|
+
this.days_between_votes = personJson.days_between_votes;
|
|
43
|
+
this.days_since_last_vote = personJson.days_since_last_vote;
|
|
44
|
+
this.reason_for_vote = personJson.reason_for_vote;
|
|
45
|
+
this.supervisor_id = personJson.supervisor_id;
|
|
46
|
+
this.customer_id = personJson.customer_id;
|
|
47
|
+
this.role_ids = personJson.role_ids;
|
|
48
|
+
this.model_right_ids = personJson.model_right_ids;
|
|
49
|
+
this.driver_id = personJson.driver_id;
|
|
50
|
+
this.flags_object_ids = personJson.flags_object_ids;
|
|
51
|
+
this.flag_ids = personJson.flag_ids;
|
|
52
|
+
this.people_rating_ids = personJson.people_rating_ids;
|
|
53
|
+
this.dashboard_ids = personJson.dashboard_ids;
|
|
54
|
+
this.summary_panel_ids = personJson.summary_panel_ids;
|
|
55
|
+
this.node_ids = personJson.node_ids;
|
|
56
|
+
this.area_ids = personJson.area_ids;
|
|
57
|
+
this.appointment_issue_category_ids =
|
|
58
|
+
personJson.appointment_issue_category_ids;
|
|
59
|
+
this.address_ids = personJson.address_ids;
|
|
60
|
+
this.annotation_ids = personJson.annotation_ids;
|
|
61
|
+
this.version_ids = personJson.version_ids;
|
|
62
|
+
}
|
|
63
|
+
else
|
|
64
|
+
throw new Error(`Failed to create new instance of ${Person_Entity.name}`);
|
|
65
|
+
}
|
|
66
|
+
active;
|
|
67
|
+
api_key;
|
|
68
|
+
company_id;
|
|
69
|
+
created_at;
|
|
70
|
+
email;
|
|
71
|
+
first_name;
|
|
72
|
+
id;
|
|
73
|
+
last_name;
|
|
74
|
+
node_id;
|
|
75
|
+
phone_number;
|
|
76
|
+
reference_code;
|
|
77
|
+
reset_password_sent_at;
|
|
78
|
+
reset_password_token;
|
|
79
|
+
updated_at;
|
|
80
|
+
uuid;
|
|
81
|
+
company;
|
|
82
|
+
name;
|
|
83
|
+
password;
|
|
84
|
+
password_confirmation;
|
|
85
|
+
employee_id;
|
|
86
|
+
role_names;
|
|
87
|
+
last_rated;
|
|
88
|
+
days_between_votes;
|
|
89
|
+
days_since_last_vote;
|
|
90
|
+
reason_for_vote;
|
|
91
|
+
supervisor_id;
|
|
92
|
+
customer_id;
|
|
93
|
+
role_ids;
|
|
94
|
+
model_right_ids;
|
|
95
|
+
driver_id;
|
|
96
|
+
flags_object_ids;
|
|
97
|
+
flag_ids;
|
|
98
|
+
people_rating_ids;
|
|
99
|
+
dashboard_ids;
|
|
100
|
+
summary_panel_ids;
|
|
101
|
+
node_ids;
|
|
102
|
+
area_ids;
|
|
103
|
+
appointment_issue_category_ids;
|
|
104
|
+
address_ids;
|
|
105
|
+
annotation_ids;
|
|
106
|
+
version_ids;
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL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B,CAAY;IAC7B,QAAQ,CAAY;IACpB,QAAQ,CAAY;IACpB,8BAA8B,CAAY;IAC1C,WAAW,CAAY;IACvB,cAAc,CAAY;IAC1B,WAAW,CAAY"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import RateReview_Entity from "./rateReview";
|
|
2
|
+
export default class RateReview extends RateReview_Entity {
|
|
3
|
+
static fromList(rateReviewsJSON) {
|
|
4
|
+
const rateReviews = [];
|
|
5
|
+
if (rateReviewsJSON)
|
|
6
|
+
Array.isArray(rateReviewsJSON) &&
|
|
7
|
+
rateReviewsJSON.forEach((rateReviewJSON) => {
|
|
8
|
+
rateReviews.push(new RateReview(rateReviewJSON));
|
|
9
|
+
});
|
|
10
|
+
return rateReviews;
|
|
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/rateReview/helper.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,cAAc,CAAC;AAC7C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,iBAAiB;IACvD,MAAM,CAAC,QAAQ,CAAC,eAAwB;QACtC,MAAM,WAAW,GAAiB,EAAE,CAAC;QACrC,IAAI,eAAe;YACjB,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC;gBAC5B,eAAe,CAAC,OAAO,CAAC,CAAC,cAAc,EAAE,EAAE;oBACzC,WAAW,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC;gBACnD,CAAC,CAAC,CAAC;QACP,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/rateReview/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export default class RateReview_Entity {
|
|
2
|
+
static requiredFields: string[];
|
|
3
|
+
constructor(rateReviewJson?: unknown);
|
|
4
|
+
acc_w_o?: number;
|
|
5
|
+
amount_difference?: number;
|
|
6
|
+
archer_file_id?: number;
|
|
7
|
+
assigned_rep_id?: number;
|
|
8
|
+
booked_by_id?: number;
|
|
9
|
+
contract_rate_record_id?: number;
|
|
10
|
+
created_at?: string;
|
|
11
|
+
customer_emails?: string;
|
|
12
|
+
customer_id?: number;
|
|
13
|
+
customer_name?: string;
|
|
14
|
+
customer_type?: string;
|
|
15
|
+
day_count?: number;
|
|
16
|
+
delivery_date?: string;
|
|
17
|
+
downtime_amount?: number;
|
|
18
|
+
email_counter?: number;
|
|
19
|
+
has_pod?: number;
|
|
20
|
+
id?: number;
|
|
21
|
+
last_kickback_name?: string;
|
|
22
|
+
last_kickback_notes?: string;
|
|
23
|
+
last_note_text?: string;
|
|
24
|
+
late_redelivery_amount?: number;
|
|
25
|
+
linehaul_amount?: number;
|
|
26
|
+
load_id?: number;
|
|
27
|
+
load_tender_rate?: number;
|
|
28
|
+
lumper_amount?: number;
|
|
29
|
+
needs_review?: false;
|
|
30
|
+
next_rate_review_id?: number;
|
|
31
|
+
notes?: string;
|
|
32
|
+
other_amount?: number;
|
|
33
|
+
person_id?: number;
|
|
34
|
+
pod_approved?: number;
|
|
35
|
+
pod_count?: number;
|
|
36
|
+
quote_total_cache?: number;
|
|
37
|
+
reference_number?: string;
|
|
38
|
+
resolved_accessorials?: string;
|
|
39
|
+
respond_date?: string;
|
|
40
|
+
review_date?: string;
|
|
41
|
+
status?: string;
|
|
42
|
+
tender_downtime_amount?: number;
|
|
43
|
+
tender_late_redelivery_amount?: number;
|
|
44
|
+
tender_linehaul_amount?: number;
|
|
45
|
+
tender_lumper_amount?: number;
|
|
46
|
+
tender_other_amount?: number;
|
|
47
|
+
tms_acc?: number;
|
|
48
|
+
updated_at?: string;
|
|
49
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RateReview_Entity type guard.
|
|
3
|
+
*
|
|
4
|
+
* @param {any} rateReviewJson RateReview object from API
|
|
5
|
+
* @returns {boolean} Return true if type is RateReview_Entity
|
|
6
|
+
*/
|
|
7
|
+
function validator(rateReviewJson) {
|
|
8
|
+
if (typeof rateReviewJson === "object" && rateReviewJson != null) {
|
|
9
|
+
RateReview_Entity.requiredFields.forEach((element) => {
|
|
10
|
+
if (!Object.keys(rateReviewJson).includes(element))
|
|
11
|
+
throw new Error(`Field ${element} is null or undefined`);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return true;
|
|
15
|
+
}
|
|
16
|
+
export default class RateReview_Entity {
|
|
17
|
+
static requiredFields = ["id"];
|
|
18
|
+
constructor(rateReviewJson) {
|
|
19
|
+
if (validator(rateReviewJson)) {
|
|
20
|
+
this.acc_w_o = rateReviewJson.acc_w_o;
|
|
21
|
+
this.amount_difference = rateReviewJson.amount_difference;
|
|
22
|
+
this.archer_file_id = rateReviewJson.archer_file_id;
|
|
23
|
+
this.assigned_rep_id = rateReviewJson.assigned_rep_id;
|
|
24
|
+
this.booked_by_id = rateReviewJson.booked_by_id;
|
|
25
|
+
this.contract_rate_record_id = rateReviewJson.contract_rate_record_id;
|
|
26
|
+
this.created_at = rateReviewJson.created_at;
|
|
27
|
+
this.customer_emails = rateReviewJson.customer_emails;
|
|
28
|
+
this.customer_id = rateReviewJson.customer_id;
|
|
29
|
+
this.customer_name = rateReviewJson.customer_name;
|
|
30
|
+
this.customer_type = rateReviewJson.customer_type;
|
|
31
|
+
this.day_count = rateReviewJson.day_count;
|
|
32
|
+
this.delivery_date = rateReviewJson.delivery_date;
|
|
33
|
+
this.downtime_amount = rateReviewJson.downtime_amount;
|
|
34
|
+
this.email_counter = rateReviewJson.email_counter;
|
|
35
|
+
this.has_pod = rateReviewJson.has_pod;
|
|
36
|
+
this.id = rateReviewJson.id;
|
|
37
|
+
this.last_kickback_name = rateReviewJson.last_kickback_name;
|
|
38
|
+
this.last_kickback_notes = rateReviewJson.last_kickback_notes;
|
|
39
|
+
this.last_note_text = rateReviewJson.last_note_text;
|
|
40
|
+
this.late_redelivery_amount = rateReviewJson.late_redelivery_amount;
|
|
41
|
+
this.linehaul_amount = rateReviewJson.linehaul_amount;
|
|
42
|
+
this.load_id = rateReviewJson.load_id;
|
|
43
|
+
this.load_tender_rate = rateReviewJson.load_tender_rate;
|
|
44
|
+
this.lumper_amount = rateReviewJson.lumper_amount;
|
|
45
|
+
this.needs_review = rateReviewJson.needs_review;
|
|
46
|
+
this.next_rate_review_id = rateReviewJson.next_rate_review_id;
|
|
47
|
+
this.notes = rateReviewJson.notes;
|
|
48
|
+
this.other_amount = rateReviewJson.other_amount;
|
|
49
|
+
this.person_id = rateReviewJson.person_id;
|
|
50
|
+
this.pod_approved = rateReviewJson.pod_approved;
|
|
51
|
+
this.pod_count = rateReviewJson.pod_count;
|
|
52
|
+
this.quote_total_cache = rateReviewJson.quote_total_cache;
|
|
53
|
+
this.reference_number = rateReviewJson.reference_number;
|
|
54
|
+
this.resolved_accessorials = rateReviewJson.resolved_accessorials;
|
|
55
|
+
this.respond_date = rateReviewJson.respond_date;
|
|
56
|
+
this.review_date = rateReviewJson.review_date;
|
|
57
|
+
this.status = rateReviewJson.status;
|
|
58
|
+
this.tender_downtime_amount = rateReviewJson.tender_downtime_amount;
|
|
59
|
+
this.tender_late_redelivery_amount =
|
|
60
|
+
rateReviewJson.tender_late_redelivery_amount;
|
|
61
|
+
this.tender_linehaul_amount = rateReviewJson.tender_linehaul_amount;
|
|
62
|
+
this.tender_lumper_amount = rateReviewJson.tender_lumper_amount;
|
|
63
|
+
this.tender_other_amount = rateReviewJson.tender_other_amount;
|
|
64
|
+
this.tms_acc = rateReviewJson.tms_acc;
|
|
65
|
+
this.updated_at = rateReviewJson.updated_at;
|
|
66
|
+
}
|
|
67
|
+
else
|
|
68
|
+
throw new Error(`Failed to create new instance of ${RateReview_Entity.name}`);
|
|
69
|
+
}
|
|
70
|
+
acc_w_o;
|
|
71
|
+
amount_difference;
|
|
72
|
+
archer_file_id;
|
|
73
|
+
assigned_rep_id;
|
|
74
|
+
booked_by_id;
|
|
75
|
+
contract_rate_record_id;
|
|
76
|
+
created_at;
|
|
77
|
+
customer_emails;
|
|
78
|
+
customer_id;
|
|
79
|
+
customer_name;
|
|
80
|
+
customer_type;
|
|
81
|
+
day_count;
|
|
82
|
+
delivery_date;
|
|
83
|
+
downtime_amount;
|
|
84
|
+
email_counter;
|
|
85
|
+
has_pod;
|
|
86
|
+
id;
|
|
87
|
+
last_kickback_name;
|
|
88
|
+
last_kickback_notes;
|
|
89
|
+
last_note_text;
|
|
90
|
+
late_redelivery_amount;
|
|
91
|
+
linehaul_amount;
|
|
92
|
+
load_id;
|
|
93
|
+
load_tender_rate;
|
|
94
|
+
lumper_amount;
|
|
95
|
+
needs_review;
|
|
96
|
+
next_rate_review_id;
|
|
97
|
+
notes;
|
|
98
|
+
other_amount;
|
|
99
|
+
person_id;
|
|
100
|
+
pod_approved;
|
|
101
|
+
pod_count;
|
|
102
|
+
quote_total_cache;
|
|
103
|
+
reference_number;
|
|
104
|
+
resolved_accessorials;
|
|
105
|
+
respond_date;
|
|
106
|
+
review_date;
|
|
107
|
+
status;
|
|
108
|
+
tender_downtime_amount;
|
|
109
|
+
tender_late_redelivery_amount;
|
|
110
|
+
tender_linehaul_amount;
|
|
111
|
+
tender_lumper_amount;
|
|
112
|
+
tender_other_amount;
|
|
113
|
+
tms_acc;
|
|
114
|
+
updated_at;
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=rateReview.js.map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AU;IACzB,OAAO,CAAU;IACjB,gBAAgB,CAAU;IAC1B,aAAa,CAAU;IACvB,YAAY,CAAS;IACrB,mBAAmB,CAAU;IAC7B,KAAK,CAAU;IACf,YAAY,CAAU;IACtB,SAAS,CAAU;IACnB,YAAY,CAAU;IACtB,SAAS,CAAU;IACnB,iBAAiB,CAAU;IAC3B,gBAAgB,CAAU;IAC1B,qBAAqB,CAAU;IAC/B,YAAY,CAAU;IACtB,WAAW,CAAU;IACrB,MAAM,CAAU;IAChB,sBAAsB,CAAU;IAChC,6BAA6B,CAAU;IACvC,sBAAsB,CAAU;IAChC,oBAAoB,CAAU;IAC9B,mBAAmB,CAAU;IAC7B,OAAO,CAAU;IACjB,UAAU,CAAU"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import UnitV1_Entity from "./unit";
|
|
2
|
+
export default class UnitV1 extends UnitV1_Entity {
|
|
3
|
+
static fromList(unitsV1JSON) {
|
|
4
|
+
const unitsV1 = [];
|
|
5
|
+
if (unitsV1JSON)
|
|
6
|
+
Array.isArray(unitsV1JSON) &&
|
|
7
|
+
unitsV1JSON.forEach((unitJSON) => {
|
|
8
|
+
unitsV1.push(new UnitV1(unitJSON));
|
|
9
|
+
});
|
|
10
|
+
return unitsV1;
|
|
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/unitV1/helper.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,QAAQ,CAAC;AACnC,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,aAAa;IAC/C,MAAM,CAAC,QAAQ,CAAC,WAAoB;QAClC,MAAM,OAAO,GAAa,EAAE,CAAC;QAC7B,IAAI,WAAW;YACb,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC;gBACxB,WAAW,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;oBAC/B,OAAO,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;gBACrC,CAAC,CAAC,CAAC;QACP,OAAO,OAAO,CAAC;IACjB,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/unitV1/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default class UnitV1_Entity {
|
|
2
|
+
static requiredFields: string[];
|
|
3
|
+
constructor(unitJson: unknown);
|
|
4
|
+
id: number;
|
|
5
|
+
leg_types_leg_ids: number[];
|
|
6
|
+
name: string;
|
|
7
|
+
node_types_node_ids: number[];
|
|
8
|
+
unit_type: string;
|
|
9
|
+
units_leg_types_leg_ids: number[];
|
|
10
|
+
units_node_types_node_ids: number[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UnitV1_Entity type guard.
|
|
3
|
+
*
|
|
4
|
+
* @param {any} unitJson Unit object from API
|
|
5
|
+
* @returns {boolean} Return true if type is UnitV1_Entity
|
|
6
|
+
*/
|
|
7
|
+
function validator(unitJson) {
|
|
8
|
+
if (typeof unitJson === "object" && unitJson != null) {
|
|
9
|
+
UnitV1_Entity.requiredFields.forEach((element) => {
|
|
10
|
+
if (!Object.keys(unitJson).includes(element))
|
|
11
|
+
throw new Error(`Field ${element} is null or undefined`);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return true;
|
|
15
|
+
}
|
|
16
|
+
export default class UnitV1_Entity {
|
|
17
|
+
static requiredFields = ["id"];
|
|
18
|
+
constructor(unitJson) {
|
|
19
|
+
if (validator(unitJson)) {
|
|
20
|
+
this.id = unitJson.id;
|
|
21
|
+
this.leg_types_leg_ids = unitJson.leg_types_leg_ids;
|
|
22
|
+
this.name = unitJson.name;
|
|
23
|
+
this.node_types_node_ids = unitJson.node_types_node_ids;
|
|
24
|
+
this.unit_type = unitJson.unit_type;
|
|
25
|
+
this.units_leg_types_leg_ids = unitJson.units_leg_types_leg_ids;
|
|
26
|
+
this.units_node_types_node_ids = unitJson.units_node_types_node_ids;
|
|
27
|
+
}
|
|
28
|
+
else
|
|
29
|
+
throw new Error(`Failed to create new instance of ${UnitV1_Entity.name}`);
|
|
30
|
+
}
|
|
31
|
+
id;
|
|
32
|
+
leg_types_leg_ids;
|
|
33
|
+
name;
|
|
34
|
+
node_types_node_ids;
|
|
35
|
+
unit_type;
|
|
36
|
+
units_leg_types_leg_ids;
|
|
37
|
+
units_node_types_node_ids;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=unit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unit.js","sourceRoot":"","sources":["../../../src/entities/unitV1/unit.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,SAAS,SAAS,CAAC,QAAiB;IAClC,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,IAAI,IAAI,EAAE;QACpD,aAAa,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC/C,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;gBAC1C,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,aAAa;IAChC,MAAM,CAAC,cAAc,GAAG,CAAC,IAAI,CAAC,CAAC;IAE/B,YAAY,QAAiB;QAC3B,IAAI,SAAS,CAAC,QAAQ,CAAC,EAAE;YACvB,IAAI,CAAC,EAAE,GAAG,QAAQ,CAAC,EAAE,CAAC;YACtB,IAAI,CAAC,iBAAiB,GAAG,QAAQ,CAAC,iBAAiB,CAAC;YACpD,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;YAC1B,IAAI,CAAC,mBAAmB,GAAG,QAAQ,CAAC,mBAAmB,CAAC;YACxD,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAC;YACpC,IAAI,CAAC,uBAAuB,GAAG,QAAQ,CAAC,uBAAuB,CAAC;YAChE,IAAI,CAAC,yBAAyB,GAAG,QAAQ,CAAC,yBAAyB,CAAC;SACrE;;YACC,MAAM,IAAI,KAAK,CAAC,oCAAoC,aAAa,CAAC,IAAI,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED,EAAE,CAAS;IACX,iBAAiB,CAAW;IAC5B,IAAI,CAAS;IACb,mBAAmB,CAAW;IAC9B,SAAS,CAAS;IAClB,uBAAuB,CAAW;IAClC,yBAAyB,CAAW"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AutocompleteProps } from "@mui/joy";
|
|
2
2
|
import { ReactElement } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { CustomerV1_Entity } from "../../entities";
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
6
6
|
* @param {object} props props
|
|
7
|
-
* @param {
|
|
7
|
+
* @param {CustomerV1_Entity | null} props.value value
|
|
8
8
|
* @param {Function} props.onChange onChange
|
|
9
|
-
* @param {
|
|
9
|
+
* @param {Partial<AutocompleteProps<CustomerV1_Entity, false, false, false>> | undefined} props.autocompleteProps Input props
|
|
10
10
|
* @param {boolean | undefined} props.isLoading is loading
|
|
11
11
|
* @returns {ReactElement} CustomerAutocomplete
|
|
12
12
|
*/
|
|
13
13
|
export declare function CustomerAutocomplete(props: {
|
|
14
|
-
value:
|
|
15
|
-
onChange: (newValue:
|
|
16
|
-
|
|
14
|
+
value: CustomerV1_Entity | null;
|
|
15
|
+
onChange: (newValue: CustomerV1_Entity | null) => void;
|
|
16
|
+
autocompleteProps?: Partial<AutocompleteProps<CustomerV1_Entity, false, false, false>>;
|
|
17
17
|
isLoading?: boolean;
|
|
18
18
|
}): ReactElement;
|
|
@@ -1,36 +1,35 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { createElement as _createElement } from "react";
|
|
3
|
-
import { Chip } from "@mui/joy";
|
|
4
|
-
import {
|
|
3
|
+
import { Autocomplete, AutocompleteOption, Chip, ListItemContent, Typography, } from "@mui/joy";
|
|
4
|
+
import { Box } from "@mui/material";
|
|
5
5
|
import { useState } from "react";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
7
|
import { useLazySearchCustomerQuery } from "../../redux";
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
10
10
|
* @param {object} props props
|
|
11
|
-
* @param {
|
|
11
|
+
* @param {CustomerV1_Entity | null} props.value value
|
|
12
12
|
* @param {Function} props.onChange onChange
|
|
13
|
-
* @param {
|
|
13
|
+
* @param {Partial<AutocompleteProps<CustomerV1_Entity, false, false, false>> | undefined} props.autocompleteProps Input props
|
|
14
14
|
* @param {boolean | undefined} props.isLoading is loading
|
|
15
15
|
* @returns {ReactElement} CustomerAutocomplete
|
|
16
16
|
*/
|
|
17
17
|
export function CustomerAutocomplete(props) {
|
|
18
|
-
const { onChange, value,
|
|
18
|
+
const { onChange, value, isLoading, autocompleteProps } = props;
|
|
19
19
|
const [open, setOpen] = useState(false);
|
|
20
20
|
const [customerInputValue, setCustomerInputValue] = useState("");
|
|
21
21
|
const [searchCustomer, { data: customersSuggestions, isFetching }] = useLazySearchCustomerQuery();
|
|
22
22
|
const { t } = useTranslation("salesKit");
|
|
23
|
-
return (_jsx(Autocomplete, { loading: isFetching, open: open, onOpen: () => {
|
|
23
|
+
return (_jsx(Autocomplete, { ...autocompleteProps, loading: isFetching, placeholder: "Select a customer", open: open, onOpen: () => {
|
|
24
24
|
setOpen(true);
|
|
25
25
|
}, onClose: () => {
|
|
26
26
|
setOpen(false);
|
|
27
27
|
}, value: value, onChange: (_e, v) => {
|
|
28
28
|
onChange(v);
|
|
29
|
-
}, disabled: isLoading, inputValue: customerInputValue, onInputChange: (_e, v) =>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
} })) }));
|
|
29
|
+
}, disabled: isLoading, inputValue: customerInputValue, onInputChange: (_e, v) => {
|
|
30
|
+
setCustomerInputValue(v);
|
|
31
|
+
searchCustomer(encodeURIComponent(v), true);
|
|
32
|
+
}, isOptionEqualToValue: (option, value) => option.name === value.name, getOptionLabel: (option) => option.name || "", options: customersSuggestions || [], renderOption: (props, c) => (_createElement(AutocompleteOption, { ...props, key: c.id },
|
|
33
|
+
_jsxs(ListItemContent, { children: [_jsx(Typography, { children: c.name }), _jsxs(Box, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [_jsx(Typography, { level: "body-sm", children: `${c.city}, ${c.state} ${c.zip}` }), !c.is_active ? (_jsx(Chip, { size: "sm", variant: "soft", color: "danger", children: t("Inactive") })) : ([]), c.inactivity_hold ? (_jsx(Chip, { size: "sm", variant: "soft", color: "warning", children: t("Inactivity Hold") })) : ([]), c.credit_on_hold ? (_jsx(Chip, { size: "sm", variant: "soft", color: "warning", children: t("Credit on Hold") })) : ([])] })] }))) }));
|
|
35
34
|
}
|
|
36
35
|
//# sourceMappingURL=customerAutocomplete.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customerAutocomplete.js","sourceRoot":"","sources":["../../../src/hooks/customer/customerAutocomplete.tsx"],"names":[],"mappings":";;AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"customerAut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