adp-web-components 0.0.65 → 0.0.66
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/cjs/app-globals-4aa8f46f.js +46 -0
- package/dist/cjs/cn-f559f9e5.js +2588 -0
- package/dist/cjs/contact-us-form.cjs.entry.js +209 -0
- package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +445 -0
- package/dist/cjs/dynamic-claim_6.cjs.entry.js +1179 -0
- package/dist/cjs/dynamic-redeem.cjs.entry.js +156 -0
- package/dist/cjs/form-dialog_8.cjs.entry.js +503 -0
- package/dist/cjs/get-local-language-1bd9662d.js +2381 -0
- package/dist/cjs/index-603d8f32.js +1610 -0
- package/dist/cjs/index.cjs.js +6 -0
- package/dist/cjs/loader-baf2418b.js +9 -0
- package/dist/cjs/loader.cjs.js +19 -0
- package/dist/cjs/loading-spinner.cjs.entry.js +27 -0
- package/dist/cjs/part-lookup.cjs.entry.js +129 -0
- package/dist/cjs/service-booking-form.cjs.entry.js +209 -0
- package/dist/cjs/shift-components.cjs.js +29 -0
- package/dist/cjs/urls-9077b31c.js +4874 -0
- package/dist/cjs/vehicle-lookup.cjs.entry.js +202 -0
- package/dist/collection/collection-manifest.json +35 -0
- package/dist/collection/components/components/loading-spinner.css +1 -0
- package/dist/collection/components/components/loading-spinner.js +47 -0
- package/dist/collection/components/form-elements/form-dialog.css +1 -0
- package/dist/collection/components/form-elements/form-dialog.js +137 -0
- package/dist/collection/components/form-elements/form-input.css +1 -0
- package/dist/collection/components/form-elements/form-input.js +323 -0
- package/dist/collection/components/form-elements/form-select.css +1 -0
- package/dist/collection/components/form-elements/form-select.js +400 -0
- package/dist/collection/components/form-elements/form-shadow-input.css +1 -0
- package/dist/collection/components/form-elements/form-shadow-input.js +100 -0
- package/dist/collection/components/form-elements/form-structure-error.css +1 -0
- package/dist/collection/components/form-elements/form-structure-error.js +72 -0
- package/dist/collection/components/form-elements/form-structure.css +1 -0
- package/dist/collection/components/form-elements/form-structure.js +269 -0
- package/dist/collection/components/form-elements/form-submit.css +1 -0
- package/dist/collection/components/form-elements/form-submit.js +140 -0
- package/dist/collection/components/form-elements/form-text-area.css +1 -0
- package/dist/collection/components/form-elements/form-text-area.js +264 -0
- package/dist/collection/components/forms/contact-us/element-mapper.js +87 -0
- package/dist/collection/components/forms/contact-us/form.css +1 -0
- package/dist/collection/components/forms/contact-us/validations.js +19 -0
- package/dist/collection/components/forms/contact-us-form.js +280 -0
- package/dist/collection/components/forms/service-booking/element-mapper.js +87 -0
- package/dist/collection/components/forms/service-booking/form.css +1 -0
- package/dist/collection/components/forms/service-booking/validations.js +19 -0
- package/dist/collection/components/forms/service-booking-form.js +280 -0
- package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -0
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +405 -0
- package/dist/collection/components/part-lookup/distributor-lookup.css +1 -0
- package/dist/collection/components/part-lookup/distributor-lookup.js +470 -0
- package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -0
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +468 -0
- package/dist/collection/components/part-lookup/part-lookup.css +1 -0
- package/dist/collection/components/part-lookup/part-lookup.js +376 -0
- package/dist/collection/components/vehicle-lookup/assets/cancelled.svg +8 -0
- package/dist/collection/components/vehicle-lookup/assets/check.svg +4 -0
- package/dist/collection/components/vehicle-lookup/assets/expired.svg +9 -0
- package/dist/collection/components/vehicle-lookup/assets/loader.svg +11 -0
- package/dist/collection/components/vehicle-lookup/assets/pending.svg +9 -0
- package/dist/collection/components/vehicle-lookup/assets/processed.svg +9 -0
- package/dist/collection/components/vehicle-lookup/assets/x-mark.svg +4 -0
- package/dist/collection/components/vehicle-lookup/components/CardsContainer.js +13 -0
- package/dist/collection/components/vehicle-lookup/components/Loading.js +10 -0
- package/dist/collection/components/vehicle-lookup/components/SSCTable.js +16 -0
- package/dist/collection/components/vehicle-lookup/components/StatusCard.js +11 -0
- package/dist/collection/components/vehicle-lookup/dynamic-claim.css +1 -0
- package/dist/collection/components/vehicle-lookup/dynamic-claim.js +625 -0
- package/dist/collection/components/vehicle-lookup/dynamic-redeem.css +1 -0
- package/dist/collection/components/vehicle-lookup/dynamic-redeem.js +373 -0
- package/dist/collection/components/vehicle-lookup/paint-thickness.css +1 -0
- package/dist/collection/components/vehicle-lookup/paint-thickness.js +410 -0
- package/dist/collection/components/vehicle-lookup/service-history.css +1 -0
- package/dist/collection/components/vehicle-lookup/service-history.js +393 -0
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +1 -0
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +414 -0
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -0
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +405 -0
- package/dist/collection/components/vehicle-lookup/vehicle-specification.css +1 -0
- package/dist/collection/components/vehicle-lookup/vehicle-specification.js +405 -0
- package/dist/collection/components/vehicle-lookup/warranty-details.css +1 -0
- package/dist/collection/components/vehicle-lookup/warranty-details.js +780 -0
- package/dist/collection/global/api/partInformation.js +32 -0
- package/dist/collection/global/api/urls.js +6 -0
- package/dist/collection/global/api/vehicleInformation.js +48 -0
- package/dist/collection/global/assets/eye.svg +5 -0
- package/dist/collection/global/assets/loader.svg +11 -0
- package/dist/collection/global/assets/white-loader.svg +11 -0
- package/dist/collection/global/lib/cn.js +9 -0
- package/dist/collection/global/lib/form-hook.js +162 -0
- package/dist/collection/global/lib/general.js +9 -0
- package/dist/collection/global/lib/get-local-language.js +20 -0
- package/dist/collection/global/lib/image-expansion.js +69 -0
- package/dist/collection/global/lib/middleware.js +39 -0
- package/dist/collection/global/lib/recaptcha.js +25 -0
- package/dist/collection/global/lib/utils.js +7 -0
- package/dist/collection/global/lib/validate-form-structure.js +47 -0
- package/dist/collection/global/lib/validate-vin.js +62 -0
- package/dist/collection/global/types/components.js +1 -0
- package/dist/collection/global/types/forms.js +1 -0
- package/dist/collection/global/types/general.js +1 -0
- package/dist/collection/global/types/locales/error-schema.js +17 -0
- package/dist/collection/global/types/locales/forms/contact-us-schema.js +24 -0
- package/dist/collection/global/types/locales/forms/index.js +11 -0
- package/dist/collection/global/types/locales/general.js +11 -0
- package/dist/collection/global/types/locales/index.js +33 -0
- package/dist/collection/global/types/locales/inquiryTypes.js +15 -0
- package/dist/collection/global/types/locales/part-lookup/dead-stock-schema.js +10 -0
- package/dist/collection/global/types/locales/part-lookup/distributor-schema.js +21 -0
- package/dist/collection/global/types/locales/part-lookup/index.js +13 -0
- package/dist/collection/global/types/locales/part-lookup/manufacturer-schema.js +22 -0
- package/dist/collection/global/types/locales/vehicle-lookup/accessories-schema.js +13 -0
- package/dist/collection/global/types/locales/vehicle-lookup/dynamic-claim-schema.js +21 -0
- package/dist/collection/global/types/locales/vehicle-lookup/dynamic-redeem-schema.js +19 -0
- package/dist/collection/global/types/locales/vehicle-lookup/index.js +21 -0
- package/dist/collection/global/types/locales/vehicle-lookup/paint-thickness-schema.js +14 -0
- package/dist/collection/global/types/locales/vehicle-lookup/service-history-schema.js +15 -0
- package/dist/collection/global/types/locales/vehicle-lookup/specification-schema.js +15 -0
- package/dist/collection/global/types/locales/vehicle-lookup/warranty-schema.js +23 -0
- package/dist/collection/global/types/part-information.js +1 -0
- package/dist/collection/global/types/vehicle-information.js +5 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/templates/part-lookup/mock-data.js +199 -0
- package/dist/collection/templates/vehicle-lookup/mock-data.js +4165 -0
- package/dist/collection/templates/vehicle-lookup/vehicle-lookup.js +285 -0
- package/dist/collection/templates/vehicle-lookup/warranty-mock-data.js +3064 -0
- package/dist/components/contact-us-form.d.ts +11 -0
- package/dist/components/contact-us-form.js +5 -0
- package/dist/components/dead-stock-lookup.d.ts +11 -0
- package/dist/components/dead-stock-lookup.js +5 -0
- package/dist/components/distributor-lookup.d.ts +11 -0
- package/dist/components/distributor-lookup.js +5 -0
- package/dist/components/dynamic-claim.d.ts +11 -0
- package/dist/components/dynamic-claim.js +5 -0
- package/dist/components/dynamic-redeem.d.ts +11 -0
- package/dist/components/dynamic-redeem.js +5 -0
- package/dist/components/form-dialog.d.ts +11 -0
- package/dist/components/form-dialog.js +5 -0
- package/dist/components/form-input.d.ts +11 -0
- package/dist/components/form-input.js +5 -0
- package/dist/components/form-select.d.ts +11 -0
- package/dist/components/form-select.js +5 -0
- package/dist/components/form-shadow-input.d.ts +11 -0
- package/dist/components/form-shadow-input.js +5 -0
- package/dist/components/form-structure-error.d.ts +11 -0
- package/dist/components/form-structure-error.js +5 -0
- package/dist/components/form-structure.d.ts +11 -0
- package/dist/components/form-structure.js +5 -0
- package/dist/components/form-submit.d.ts +11 -0
- package/dist/components/form-submit.js +5 -0
- package/dist/components/form-text-area.d.ts +11 -0
- package/dist/components/form-text-area.js +5 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +5 -0
- package/dist/components/loading-spinner.d.ts +11 -0
- package/dist/components/loading-spinner.js +5 -0
- package/dist/components/manufacturer-lookup.d.ts +11 -0
- package/dist/components/manufacturer-lookup.js +5 -0
- package/dist/components/p-052096ca.js +5 -0
- package/dist/components/p-1e0220d8.js +5 -0
- package/dist/components/p-276072d6.js +5 -0
- package/dist/components/p-2ecc6382.js +5 -0
- package/dist/components/p-2f40bc45.js +5 -0
- package/dist/components/p-3115916e.js +5 -0
- package/dist/components/p-687e3edf.js +5 -0
- package/dist/components/p-68905104.js +5 -0
- package/dist/components/p-696dc6e8.js +5 -0
- package/dist/components/p-6d9d89d2.js +5 -0
- package/dist/components/p-6e258875.js +5 -0
- package/dist/components/p-75476014.js +5 -0
- package/dist/components/p-8175feb0.js +5 -0
- package/dist/components/p-853de183.js +5 -0
- package/dist/components/p-8b1d90d7.js +5 -0
- package/dist/components/p-8f9c80ed.js +5 -0
- package/dist/components/p-927296bb.js +5 -0
- package/dist/components/p-932ff922.js +5 -0
- package/dist/components/p-96455129.js +5 -0
- package/dist/components/p-980e2b72.js +5 -0
- package/dist/components/p-98d9e7ab.js +5 -0
- package/dist/components/p-a21e2e2e.js +5 -0
- package/dist/components/p-a3455344.js +5 -0
- package/dist/components/p-b0e5a9a2.js +5 -0
- package/dist/components/p-b173a699.js +5 -0
- package/dist/components/p-d5ff7544.js +5 -0
- package/dist/components/p-fab97ac7.js +5 -0
- package/dist/components/paint-thickness.d.ts +11 -0
- package/dist/components/paint-thickness.js +5 -0
- package/dist/components/part-lookup.d.ts +11 -0
- package/dist/components/part-lookup.js +5 -0
- package/dist/components/service-booking-form.d.ts +11 -0
- package/dist/components/service-booking-form.js +5 -0
- package/dist/components/service-history.d.ts +11 -0
- package/dist/components/service-history.js +5 -0
- package/dist/components/vehicle-accessories.d.ts +11 -0
- package/dist/components/vehicle-accessories.js +5 -0
- package/dist/components/vehicle-lookup.d.ts +11 -0
- package/dist/components/vehicle-lookup.js +5 -0
- package/dist/components/vehicle-specification.d.ts +11 -0
- package/dist/components/vehicle-specification.js +5 -0
- package/dist/components/warranty-details.d.ts +11 -0
- package/dist/components/warranty-details.js +5 -0
- package/dist/esm/app-globals-68faa233.js +44 -0
- package/dist/esm/cn-cc419b94.js +2586 -0
- package/dist/esm/contact-us-form.entry.js +205 -0
- package/dist/esm/dead-stock-lookup_3.entry.js +439 -0
- package/dist/esm/dynamic-claim_6.entry.js +1170 -0
- package/dist/esm/dynamic-redeem.entry.js +152 -0
- package/dist/esm/form-dialog_8.entry.js +492 -0
- package/dist/esm/get-local-language-b7774134.js +2376 -0
- package/dist/esm/index-cac905b0.js +1581 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/loader-027b88af.js +7 -0
- package/dist/esm/loader.js +15 -0
- package/dist/esm/loading-spinner.entry.js +23 -0
- package/dist/esm/part-lookup.entry.js +125 -0
- package/dist/esm/service-booking-form.entry.js +205 -0
- package/dist/esm/shift-components.js +24 -0
- package/dist/esm/urls-e22234f9.js +4870 -0
- package/dist/esm/vehicle-lookup.entry.js +198 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/locales/ar.json +185 -0
- package/dist/locales/en.json +185 -0
- package/dist/locales/ku.json +185 -0
- package/dist/locales/ru.json +185 -0
- package/dist/shift-components/index.esm.js +4 -0
- package/dist/shift-components/p-3601fde1.entry.js +5 -0
- package/dist/shift-components/p-446d908d.js +5 -0
- package/dist/shift-components/p-65102e7a.js +6 -0
- package/dist/shift-components/p-6b5de2b4.entry.js +5 -0
- package/dist/shift-components/p-7a95ce0a.entry.js +5 -0
- package/dist/shift-components/p-932ff922.js +5 -0
- package/dist/shift-components/p-98d9e7ab.js +5 -0
- package/dist/shift-components/p-9b664248.entry.js +5 -0
- package/dist/shift-components/p-a21e2e2e.js +5 -0
- package/dist/shift-components/p-ade77e74.entry.js +5 -0
- package/dist/shift-components/p-b43b884e.entry.js +5 -0
- package/dist/shift-components/p-c451136b.entry.js +5 -0
- package/dist/shift-components/p-d2a71388.entry.js +5 -0
- package/dist/shift-components/p-d5a81c37.entry.js +5 -0
- package/dist/shift-components/p-f0d94591.js +5 -0
- package/dist/shift-components/shift-components.esm.js +5 -0
- package/dist/types/components/components/loading-spinner.d.ts +4 -0
- package/dist/types/components/form-elements/form-dialog.d.ts +13 -0
- package/dist/types/components/form-elements/form-input.d.ts +28 -0
- package/dist/types/components/form-elements/form-select.d.ts +39 -0
- package/dist/types/components/form-elements/form-shadow-input.d.ts +9 -0
- package/dist/types/components/form-elements/form-structure-error.d.ts +8 -0
- package/dist/types/components/form-elements/form-structure.d.ts +23 -0
- package/dist/types/components/form-elements/form-submit.d.ts +12 -0
- package/dist/types/components/form-elements/form-text-area.d.ts +24 -0
- package/dist/types/components/forms/contact-us/element-mapper.d.ts +3 -0
- package/dist/types/components/forms/contact-us/validations.d.ts +26 -0
- package/dist/types/components/forms/contact-us-form.d.ts +32 -0
- package/dist/types/components/forms/service-booking/element-mapper.d.ts +3 -0
- package/dist/types/components/forms/service-booking/validations.d.ts +26 -0
- package/dist/types/components/forms/service-booking-form.d.ts +32 -0
- package/dist/types/components/part-lookup/dead-stock-lookup.d.ts +31 -0
- package/dist/types/components/part-lookup/distributor-lookup.d.ts +32 -0
- package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +33 -0
- package/dist/types/components/part-lookup/part-lookup.d.ts +43 -0
- package/dist/types/components/vehicle-lookup/components/CardsContainer.d.ts +10 -0
- package/dist/types/components/vehicle-lookup/components/Loading.d.ts +5 -0
- package/dist/types/components/vehicle-lookup/components/SSCTable.d.ts +8 -0
- package/dist/types/components/vehicle-lookup/components/StatusCard.d.ts +12 -0
- package/dist/types/components/vehicle-lookup/dynamic-claim.d.ts +55 -0
- package/dist/types/components/vehicle-lookup/dynamic-redeem.d.ts +39 -0
- package/dist/types/components/vehicle-lookup/paint-thickness.d.ts +35 -0
- package/dist/types/components/vehicle-lookup/service-history.d.ts +30 -0
- package/dist/types/components/vehicle-lookup/vehicle-accessories.d.ts +35 -0
- package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +53 -0
- package/dist/types/components/vehicle-lookup/vehicle-specification.d.ts +29 -0
- package/dist/types/components/vehicle-lookup/warranty-details.d.ts +57 -0
- package/dist/types/components.d.ts +760 -0
- package/dist/types/global/api/partInformation.d.ts +19 -0
- package/dist/types/global/api/urls.d.ts +2 -0
- package/dist/types/global/api/vehicleInformation.d.ts +33 -0
- package/dist/types/global/lib/cn.d.ts +2 -0
- package/dist/types/global/lib/form-hook.d.ts +47 -0
- package/dist/types/global/lib/general.d.ts +1 -0
- package/dist/types/global/lib/get-local-language.d.ts +2 -0
- package/dist/types/global/lib/image-expansion.d.ts +9 -0
- package/dist/types/global/lib/middleware.d.ts +0 -0
- package/dist/types/global/lib/recaptcha.d.ts +16 -0
- package/dist/types/global/lib/utils.d.ts +1 -0
- package/dist/types/global/lib/validate-form-structure.d.ts +3 -0
- package/dist/types/global/lib/validate-vin.d.ts +1 -0
- package/dist/types/global/types/components.d.ts +7 -0
- package/dist/types/global/types/forms.d.ts +63 -0
- package/dist/types/global/types/general.d.ts +23 -0
- package/dist/types/global/types/locales/error-schema.d.ts +23 -0
- package/dist/types/global/types/locales/forms/contact-us-schema.d.ts +37 -0
- package/dist/types/global/types/locales/forms/index.d.ts +45 -0
- package/dist/types/global/types/locales/general.d.ts +11 -0
- package/dist/types/global/types/locales/index.d.ts +382 -0
- package/dist/types/global/types/locales/inquiryTypes.d.ts +19 -0
- package/dist/types/global/types/locales/part-lookup/dead-stock-schema.d.ts +9 -0
- package/dist/types/global/types/locales/part-lookup/distributor-schema.d.ts +31 -0
- package/dist/types/global/types/locales/part-lookup/index.d.ts +79 -0
- package/dist/types/global/types/locales/part-lookup/manufacturer-schema.d.ts +33 -0
- package/dist/types/global/types/locales/vehicle-lookup/accessories-schema.d.ts +15 -0
- package/dist/types/global/types/locales/vehicle-lookup/dynamic-claim-schema.d.ts +31 -0
- package/dist/types/global/types/locales/vehicle-lookup/dynamic-redeem-schema.d.ts +27 -0
- package/dist/types/global/types/locales/vehicle-lookup/index.d.ts +173 -0
- package/dist/types/global/types/locales/vehicle-lookup/paint-thickness-schema.d.ts +17 -0
- package/dist/types/global/types/locales/vehicle-lookup/service-history-schema.d.ts +19 -0
- package/dist/types/global/types/locales/vehicle-lookup/specification-schema.d.ts +19 -0
- package/dist/types/global/types/locales/vehicle-lookup/warranty-schema.d.ts +35 -0
- package/dist/types/global/types/part-information.d.ts +53 -0
- package/dist/types/global/types/vehicle-information.d.ts +172 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/stencil-public-runtime.d.ts +1680 -0
- package/loader/cdn.js +5 -0
- package/loader/index.cjs.js +5 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +5 -0
- package/loader/index.js +6 -0
- package/loader/package.json +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import { object, string } from "yup";
|
|
6
|
+
import { FormsSchema } from "./forms";
|
|
7
|
+
import { generalSchema } from "./general";
|
|
8
|
+
import { errorsSchema } from "./error-schema";
|
|
9
|
+
import { partLookupSchema } from "./part-lookup";
|
|
10
|
+
import { vehicleLookupSchema } from "./vehicle-lookup";
|
|
11
|
+
import { generalTicketTypesSchema } from "./inquiryTypes";
|
|
12
|
+
export const ARABIC_JSON_FILE = 'ar.json';
|
|
13
|
+
export const ENGLISH_JSON_FILE = 'en.json';
|
|
14
|
+
export const KURDISH_JSON_FILE = 'ku.json';
|
|
15
|
+
export const RUSSIAN_JSON_FILE = 'ru.json';
|
|
16
|
+
export const languageMapper = {
|
|
17
|
+
ar: ARABIC_JSON_FILE,
|
|
18
|
+
en: ENGLISH_JSON_FILE,
|
|
19
|
+
ku: KURDISH_JSON_FILE,
|
|
20
|
+
ru: RUSSIAN_JSON_FILE,
|
|
21
|
+
};
|
|
22
|
+
export const localeSchema = object({
|
|
23
|
+
forms: FormsSchema,
|
|
24
|
+
errors: errorsSchema,
|
|
25
|
+
general: generalSchema,
|
|
26
|
+
lang: string().required(),
|
|
27
|
+
noData: string().required(),
|
|
28
|
+
partLookup: partLookupSchema,
|
|
29
|
+
language: string().required(),
|
|
30
|
+
direction: string().required(),
|
|
31
|
+
vehicleLookup: vehicleLookupSchema,
|
|
32
|
+
generalTicketTypes: generalTicketTypesSchema,
|
|
33
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import { object, string } from "yup";
|
|
6
|
+
export const generalTicketTypesSchema = object({
|
|
7
|
+
TLP: string().required(),
|
|
8
|
+
Complaint: string().required(),
|
|
9
|
+
PartInquiry: string().required(),
|
|
10
|
+
SalesCampaign: string().required(),
|
|
11
|
+
GeneralInquiry: string().required(),
|
|
12
|
+
ServiceCampaign: string().required(),
|
|
13
|
+
InstallmentPayment: string().required(),
|
|
14
|
+
ServicePriceInquiry: string().required(),
|
|
15
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import { object, string } from "yup";
|
|
6
|
+
export const distributorSchema = object({
|
|
7
|
+
info: string().required(),
|
|
8
|
+
distributorStock: string().required(),
|
|
9
|
+
availability: string().required(),
|
|
10
|
+
notAvailable: string().required(),
|
|
11
|
+
partiallyAvailable: string().required(),
|
|
12
|
+
available: string().required(),
|
|
13
|
+
location: string().required(),
|
|
14
|
+
description: string().required(),
|
|
15
|
+
productGroup: string().required(),
|
|
16
|
+
localDescription: string().required(),
|
|
17
|
+
dealerPurchasePrice: string().required(),
|
|
18
|
+
recommendedRetailPrice: string().required(),
|
|
19
|
+
supersededFrom: string().required(),
|
|
20
|
+
supersessions: string().required(),
|
|
21
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import { object } from "yup";
|
|
6
|
+
import { deadStockSchema } from "./dead-stock-schema";
|
|
7
|
+
import { distributorSchema } from "./distributor-schema";
|
|
8
|
+
import { manufacturerSchema } from "./manufacturer-schema";
|
|
9
|
+
export const partLookupSchema = object({
|
|
10
|
+
deadStock: deadStockSchema,
|
|
11
|
+
distributor: distributorSchema,
|
|
12
|
+
manufacturer: manufacturerSchema,
|
|
13
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import { object, string } from "yup";
|
|
6
|
+
export const manufacturerSchema = object({
|
|
7
|
+
origin: string().required(),
|
|
8
|
+
warrantyPrice: string().required(),
|
|
9
|
+
specialPrice: string().required(),
|
|
10
|
+
wholesalesPrice: string().required(),
|
|
11
|
+
pnc: string().required(),
|
|
12
|
+
pncName: string().required(),
|
|
13
|
+
binCode: string().required(),
|
|
14
|
+
dimension1: string().required(),
|
|
15
|
+
dimension2: string().required(),
|
|
16
|
+
dimension3: string().required(),
|
|
17
|
+
netWeight: string().required(),
|
|
18
|
+
grossWeight: string().required(),
|
|
19
|
+
cubicMeasure: string().required(),
|
|
20
|
+
hsCode: string().required(),
|
|
21
|
+
uzHsCode: string().required(),
|
|
22
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import { object, string } from "yup";
|
|
6
|
+
export const accessoriesSchema = object({
|
|
7
|
+
vehicleAccessories: string().required(),
|
|
8
|
+
noData: string().required(),
|
|
9
|
+
partNumber: string().required(),
|
|
10
|
+
description: string().required(),
|
|
11
|
+
image: string().required(),
|
|
12
|
+
expand: string().required(),
|
|
13
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import { object, string } from "yup";
|
|
6
|
+
export const dynamicClaimSchema = object({
|
|
7
|
+
serviceType: string().required(),
|
|
8
|
+
activationDate: string().required(),
|
|
9
|
+
expireDate: string().required(),
|
|
10
|
+
claimAt: string().required(),
|
|
11
|
+
redeemingDealer: string().required(),
|
|
12
|
+
invoiceNumber: string().required(),
|
|
13
|
+
wip: string().required(),
|
|
14
|
+
menuCode: string().required(),
|
|
15
|
+
claim: string().required(),
|
|
16
|
+
processed: string().required(),
|
|
17
|
+
expired: string().required(),
|
|
18
|
+
cancelled: string().required(),
|
|
19
|
+
pending: string().required(),
|
|
20
|
+
warning: string().required(),
|
|
21
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import { object, string } from "yup";
|
|
6
|
+
export const dynamicRedeemSchema = object({
|
|
7
|
+
serviceType: string().required(),
|
|
8
|
+
name: string().required(),
|
|
9
|
+
activationDate: string().required(),
|
|
10
|
+
expireDate: string().required(),
|
|
11
|
+
menuCode: string().required(),
|
|
12
|
+
scanTheInvoice: string().required(),
|
|
13
|
+
processing: string().required(),
|
|
14
|
+
warning: string().required(),
|
|
15
|
+
skipServicesWarning: string().required(),
|
|
16
|
+
confirmSkipServices: string().required(),
|
|
17
|
+
notInvoiced: string().required(),
|
|
18
|
+
confirmNotInvoiced: string().required(),
|
|
19
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import { object } from "yup";
|
|
6
|
+
import { warrantySchema } from "./warranty-schema";
|
|
7
|
+
import { accessoriesSchema } from "./accessories-schema";
|
|
8
|
+
import { dynamicClaimSchema } from "./dynamic-claim-schema";
|
|
9
|
+
import { specificationSchema } from "./specification-schema";
|
|
10
|
+
import { dynamicRedeemSchema } from "./dynamic-redeem-schema";
|
|
11
|
+
import { ServiceHistorySchema } from "./service-history-schema";
|
|
12
|
+
import { paintThicknessSchema } from "./paint-thickness-schema";
|
|
13
|
+
export const vehicleLookupSchema = object({
|
|
14
|
+
warranty: warrantySchema,
|
|
15
|
+
accessories: accessoriesSchema,
|
|
16
|
+
dynamicClaim: dynamicClaimSchema,
|
|
17
|
+
dynamicRedeem: dynamicRedeemSchema,
|
|
18
|
+
specification: specificationSchema,
|
|
19
|
+
serviceHistory: ServiceHistorySchema,
|
|
20
|
+
paintThickness: paintThicknessSchema,
|
|
21
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import { object, string } from "yup";
|
|
6
|
+
export const paintThicknessSchema = object({
|
|
7
|
+
paintThickness: string().required(),
|
|
8
|
+
noData: string().required(),
|
|
9
|
+
part: string().required(),
|
|
10
|
+
left: string().required(),
|
|
11
|
+
right: string().required(),
|
|
12
|
+
noImageGroups: string().required(),
|
|
13
|
+
expand: string().required(),
|
|
14
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import { object, string } from "yup";
|
|
6
|
+
export const ServiceHistorySchema = object({
|
|
7
|
+
serviceHistory: string().required(),
|
|
8
|
+
noData: string().required(),
|
|
9
|
+
branch: string().required(),
|
|
10
|
+
dealer: string().required(),
|
|
11
|
+
invoiceNumber: string().required(),
|
|
12
|
+
date: string().required(),
|
|
13
|
+
serviceType: string().required(),
|
|
14
|
+
odometer: string().required(),
|
|
15
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import { object, string } from "yup";
|
|
6
|
+
export const specificationSchema = object({
|
|
7
|
+
vehicleSpecification: string().required(),
|
|
8
|
+
noData: string().required(),
|
|
9
|
+
model: string().required(),
|
|
10
|
+
variant: string().required(),
|
|
11
|
+
katashiki: string().required(),
|
|
12
|
+
modelYear: string().required(),
|
|
13
|
+
sfx: string().required(),
|
|
14
|
+
productionDate: string().required(),
|
|
15
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import { object, string } from "yup";
|
|
6
|
+
export const warrantySchema = object({
|
|
7
|
+
authorized: string().required(),
|
|
8
|
+
unauthorized: string().required(),
|
|
9
|
+
activeWarranty: string().required(),
|
|
10
|
+
notActiveWarranty: string().required(),
|
|
11
|
+
notInvoiced: string().required(),
|
|
12
|
+
from: string().required(),
|
|
13
|
+
to: string().required(),
|
|
14
|
+
pendingSSC: string().required(),
|
|
15
|
+
noPendingSSC: string().required(),
|
|
16
|
+
checkingTMC: string().required(),
|
|
17
|
+
sscCampings: string().required(),
|
|
18
|
+
sscTableCode: string().required(),
|
|
19
|
+
sscTableDescription: string().required(),
|
|
20
|
+
sscTableRepairStatus: string().required(),
|
|
21
|
+
sscTableOPCode: string().required(),
|
|
22
|
+
sscTablePartNumber: string().required(),
|
|
23
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
const mockData = {
|
|
2
|
+
'SU00302474': {
|
|
3
|
+
partNumber: 'SU00302474',
|
|
4
|
+
partDescription: 'CLAMP',
|
|
5
|
+
localDescription: 'Неприменимо',
|
|
6
|
+
group: 'F',
|
|
7
|
+
pnc: '',
|
|
8
|
+
pncLocalName: '',
|
|
9
|
+
binCode: null,
|
|
10
|
+
dimension1: 80,
|
|
11
|
+
dimension2: 50,
|
|
12
|
+
dimension3: 15,
|
|
13
|
+
netWeight: 250,
|
|
14
|
+
grossWeight: null,
|
|
15
|
+
cubicMeasure: 600,
|
|
16
|
+
hsCode: null,
|
|
17
|
+
uzhsCode: null,
|
|
18
|
+
origin: 'JP',
|
|
19
|
+
supersededTo: ['1110109263', '137410PH00', '138010PH00', '139350PH00'],
|
|
20
|
+
stockParts: [],
|
|
21
|
+
prices: [
|
|
22
|
+
{
|
|
23
|
+
countryIntegrationID: 'TM',
|
|
24
|
+
countryName: 'Turkmenistan ',
|
|
25
|
+
regionIntegrationID: 'TK',
|
|
26
|
+
regionName: 'Turkmenistan ',
|
|
27
|
+
warrantyPrice: {
|
|
28
|
+
value: 2.4875,
|
|
29
|
+
currecntySymbol: '$',
|
|
30
|
+
cultureName: 'en-US',
|
|
31
|
+
formattedValue: '$12.49',
|
|
32
|
+
},
|
|
33
|
+
purchasePrice: {
|
|
34
|
+
value: 2.4875,
|
|
35
|
+
currecntySymbol: '$',
|
|
36
|
+
cultureName: 'en-US',
|
|
37
|
+
formattedValue: '$22.49',
|
|
38
|
+
},
|
|
39
|
+
retailPrice: {
|
|
40
|
+
value: 2.4875,
|
|
41
|
+
currecntySymbol: '$',
|
|
42
|
+
cultureName: 'en-US',
|
|
43
|
+
formattedValue: '$21.49',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
countryIntegrationID: 'TJ',
|
|
48
|
+
countryName: 'Tajikistan',
|
|
49
|
+
regionIntegrationID: 'TJ',
|
|
50
|
+
regionName: 'Tajikistan',
|
|
51
|
+
warrantyPrice: {
|
|
52
|
+
value: 2.4875,
|
|
53
|
+
currecntySymbol: '$',
|
|
54
|
+
cultureName: 'en-US',
|
|
55
|
+
formattedValue: null,
|
|
56
|
+
},
|
|
57
|
+
purchasePrice: {
|
|
58
|
+
value: 2.4875,
|
|
59
|
+
currecntySymbol: '$',
|
|
60
|
+
cultureName: 'en-US',
|
|
61
|
+
formattedValue: '$23.49',
|
|
62
|
+
},
|
|
63
|
+
retailPrice: {
|
|
64
|
+
value: 2.4875,
|
|
65
|
+
currecntySymbol: '$',
|
|
66
|
+
cultureName: 'en-US',
|
|
67
|
+
formattedValue: '$22.49',
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
countryIntegrationID: 'UZ',
|
|
72
|
+
countryName: 'Uzbekistan',
|
|
73
|
+
regionIntegrationID: 'UZ',
|
|
74
|
+
regionName: 'Uzbekistan',
|
|
75
|
+
warrantyPrice: {
|
|
76
|
+
value: 2.4875,
|
|
77
|
+
currecntySymbol: '$',
|
|
78
|
+
cultureName: 'en-US',
|
|
79
|
+
formattedValue: '$23.49',
|
|
80
|
+
},
|
|
81
|
+
purchasePrice: {
|
|
82
|
+
value: 2.4875,
|
|
83
|
+
currecntySymbol: '$',
|
|
84
|
+
cultureName: 'en-US',
|
|
85
|
+
formattedValue: '$42.49',
|
|
86
|
+
},
|
|
87
|
+
retailPrice: {
|
|
88
|
+
value: 2.4875,
|
|
89
|
+
currecntySymbol: '$',
|
|
90
|
+
cultureName: 'en-US',
|
|
91
|
+
formattedValue: null,
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
deadStock: null,
|
|
96
|
+
},
|
|
97
|
+
'0400007660/1': {
|
|
98
|
+
partNumber: '0400007660',
|
|
99
|
+
partDescription: 'REPLACEMENT KIT,',
|
|
100
|
+
localDescription: 'Неприменимо',
|
|
101
|
+
group: 'J',
|
|
102
|
+
pnc: '',
|
|
103
|
+
pncLocalName: '',
|
|
104
|
+
binCode: null,
|
|
105
|
+
dimension1: 75,
|
|
106
|
+
dimension2: 60,
|
|
107
|
+
dimension3: 10,
|
|
108
|
+
netWeight: 226,
|
|
109
|
+
grossWeight: null,
|
|
110
|
+
cubicMeasure: 450,
|
|
111
|
+
hsCode: null,
|
|
112
|
+
uzhsCode: null,
|
|
113
|
+
origin: 'JP',
|
|
114
|
+
supersededTo: ['1110109263', '137410PH00', '138010PH00', '139350PH00'],
|
|
115
|
+
stockParts: [
|
|
116
|
+
{
|
|
117
|
+
quantityLookUpResult: 'Available',
|
|
118
|
+
locationID: 'UZ-UZ-BS',
|
|
119
|
+
locationName: 'Besten Stock',
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
prices: [
|
|
123
|
+
{
|
|
124
|
+
countryIntegrationID: 'TM',
|
|
125
|
+
countryName: 'Turkmenistan ',
|
|
126
|
+
regionIntegrationID: 'TK',
|
|
127
|
+
regionName: 'Turkmenistan ',
|
|
128
|
+
warrantyPrice: {
|
|
129
|
+
value: 2.4875,
|
|
130
|
+
currecntySymbol: '$',
|
|
131
|
+
cultureName: 'en-US',
|
|
132
|
+
formattedValue: '$24.49',
|
|
133
|
+
},
|
|
134
|
+
purchasePrice: {
|
|
135
|
+
value: 2.4875,
|
|
136
|
+
currecntySymbol: '$',
|
|
137
|
+
cultureName: 'en-US',
|
|
138
|
+
formattedValue: '$25.49',
|
|
139
|
+
},
|
|
140
|
+
retailPrice: {
|
|
141
|
+
value: 2.4875,
|
|
142
|
+
currecntySymbol: '$',
|
|
143
|
+
cultureName: 'en-US',
|
|
144
|
+
formattedValue: '$23.49',
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
countryIntegrationID: 'TJ',
|
|
149
|
+
countryName: 'Tajikistan',
|
|
150
|
+
regionIntegrationID: 'TJ',
|
|
151
|
+
regionName: 'Tajikistan',
|
|
152
|
+
warrantyPrice: {
|
|
153
|
+
value: 2.4875,
|
|
154
|
+
currecntySymbol: '$',
|
|
155
|
+
cultureName: 'en-US',
|
|
156
|
+
formattedValue: '$25.49',
|
|
157
|
+
},
|
|
158
|
+
purchasePrice: {
|
|
159
|
+
value: 2.4875,
|
|
160
|
+
currecntySymbol: '$',
|
|
161
|
+
cultureName: 'en-US',
|
|
162
|
+
formattedValue: '$26.49',
|
|
163
|
+
},
|
|
164
|
+
retailPrice: {
|
|
165
|
+
value: 2.4875,
|
|
166
|
+
currecntySymbol: '$',
|
|
167
|
+
cultureName: 'en-US',
|
|
168
|
+
formattedValue: '$22.49',
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
countryIntegrationID: 'UZ',
|
|
173
|
+
countryName: 'Uzbekistan',
|
|
174
|
+
regionIntegrationID: 'UZ',
|
|
175
|
+
regionName: 'Uzbekistan',
|
|
176
|
+
warrantyPrice: {
|
|
177
|
+
value: 2.4875,
|
|
178
|
+
currecntySymbol: '$',
|
|
179
|
+
cultureName: 'en-US',
|
|
180
|
+
formattedValue: '$26.49',
|
|
181
|
+
},
|
|
182
|
+
purchasePrice: {
|
|
183
|
+
value: 2.4875,
|
|
184
|
+
currecntySymbol: '$',
|
|
185
|
+
cultureName: 'en-US',
|
|
186
|
+
formattedValue: '$21.49',
|
|
187
|
+
},
|
|
188
|
+
retailPrice: {
|
|
189
|
+
value: 2.4875,
|
|
190
|
+
currecntySymbol: '$',
|
|
191
|
+
cultureName: 'en-US',
|
|
192
|
+
formattedValue: '$21.49',
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
],
|
|
196
|
+
deadStock: null,
|
|
197
|
+
logId: 'd864e3b6-4b6b-4d22-be99-7d64063446eb',
|
|
198
|
+
},
|
|
199
|
+
};
|