@salesforce/ui-bundle-template-app-vue-sample-b2x 0.0.0-stage → 13.4.0
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/LICENSE.txt +82 -0
- package/README.md +51 -2
- package/dist/.forceignore +15 -0
- package/dist/.husky/pre-commit +4 -0
- package/dist/.prettierignore +11 -0
- package/dist/.prettierrc +17 -0
- package/dist/CHANGELOG.md +5454 -0
- package/dist/README.md +587 -0
- package/dist/config/project-scratch-def.json +13 -0
- package/dist/eslint.config.js +7 -0
- package/dist/force-app/main/default/applications/PropertyManagement.app-meta.xml +33 -0
- package/dist/force-app/main/default/classes/MaintenanceRequestTriggerHandler.cls +69 -0
- package/dist/force-app/main/default/classes/MaintenanceRequestTriggerHandler.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/MaintenanceRequestTriggerHandler_Test.cls +308 -0
- package/dist/force-app/main/default/classes/MaintenanceRequestTriggerHandler_Test.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/TenantTriggerHandler.cls +77 -0
- package/dist/force-app/main/default/classes/TenantTriggerHandler.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/TenantTriggerHandler_Test.cls +100 -0
- package/dist/force-app/main/default/classes/TenantTriggerHandler_Test.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleAuthUtils.cls +68 -0
- package/dist/force-app/main/default/classes/UIBundleAuthUtils.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleAuthUtils_Test.cls +141 -0
- package/dist/force-app/main/default/classes/UIBundleAuthUtils_Test.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleChangePassword.cls +77 -0
- package/dist/force-app/main/default/classes/UIBundleChangePassword.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleForgotPassword.cls +71 -0
- package/dist/force-app/main/default/classes/UIBundleForgotPassword.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleLogin.cls +105 -0
- package/dist/force-app/main/default/classes/UIBundleLogin.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleRegistration.cls +162 -0
- package/dist/force-app/main/default/classes/UIBundleRegistration.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleSocialLoginConfig.cls +145 -0
- package/dist/force-app/main/default/classes/UIBundleSocialLoginConfig.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleSocialLoginConfig_Test.cls +181 -0
- package/dist/force-app/main/default/classes/UIBundleSocialLoginConfig_Test.cls-meta.xml +5 -0
- package/dist/force-app/main/default/cspTrustedSites/GitHub_Avatars.cspTrustedSite-meta.xml +15 -0
- package/dist/force-app/main/default/cspTrustedSites/Google_Fonts.cspTrustedSite-meta.xml +15 -0
- package/dist/force-app/main/default/cspTrustedSites/Google_Fonts_Static.cspTrustedSite-meta.xml +15 -0
- package/dist/force-app/main/default/cspTrustedSites/OpenStreetMap_Nominatim.cspTrustedSite-meta.xml +15 -0
- package/dist/force-app/main/default/cspTrustedSites/OpenStreetMap_Tiles.cspTrustedSite-meta.xml +15 -0
- package/dist/force-app/main/default/cspTrustedSites/Open_Meteo_API.cspTrustedSite-meta.xml +15 -0
- package/dist/force-app/main/default/cspTrustedSites/Pexels_Images.cspTrustedSite-meta.xml +15 -0
- package/dist/force-app/main/default/cspTrustedSites/Pexels_Videos.cspTrustedSite-meta.xml +15 -0
- package/dist/force-app/main/default/cspTrustedSites/Unsplash_Images.cspTrustedSite-meta.xml +15 -0
- package/dist/force-app/main/default/data/Agent__c.json +79 -0
- package/dist/force-app/main/default/data/Application__c.json +124 -0
- package/dist/force-app/main/default/data/Contact.json +44 -0
- package/dist/force-app/main/default/data/KPI_Snapshot__c.json +160 -0
- package/dist/force-app/main/default/data/Lease__c.json +9442 -0
- package/dist/force-app/main/default/data/Maintenance_Request__c.json +514 -0
- package/dist/force-app/main/default/data/Maintenance_Worker__c.json +304 -0
- package/dist/force-app/main/default/data/Notification__c.json +214 -0
- package/dist/force-app/main/default/data/Payment__c.json +1024 -0
- package/dist/force-app/main/default/data/Property_Cost__c.json +484 -0
- package/dist/force-app/main/default/data/Property_Feature__c.json +169 -0
- package/dist/force-app/main/default/data/Property_Image__c.json +148 -0
- package/dist/force-app/main/default/data/Property_Listing__c.json +130 -0
- package/dist/force-app/main/default/data/Property_Management_Company__c.json +70 -0
- package/dist/force-app/main/default/data/Property_Owner__c.json +184 -0
- package/dist/force-app/main/default/data/Property_Sale__c.json +246 -0
- package/dist/force-app/main/default/data/Property__c.json +704 -0
- package/dist/force-app/main/default/data/Tenant__c.json +184 -0
- package/dist/force-app/main/default/data/data-plan.json +110 -0
- package/dist/force-app/main/default/data/prepare-import-unique-fields.js +156 -0
- package/dist/force-app/main/default/digitalExperienceConfigs/vuepropertyrentalapp1.digitalExperienceConfig-meta.xml +8 -0
- package/dist/force-app/main/default/digitalExperiences/site/vuepropertyrentalapp1/sfdc_cms__site/vuepropertyrentalapp1/_meta.json +5 -0
- package/dist/force-app/main/default/digitalExperiences/site/vuepropertyrentalapp1/sfdc_cms__site/vuepropertyrentalapp1/content.json +10 -0
- package/dist/force-app/main/default/digitalExperiences/site/vuepropertyrentalapp1/vuepropertyrentalapp1.digitalExperience-meta.xml +11 -0
- package/dist/force-app/main/default/layouts/Application__c-Application Layout.layout-meta.xml +58 -0
- package/dist/force-app/main/default/layouts/KPI_Snapshot__c-KPI Snapshot Layout.layout-meta.xml +87 -0
- package/dist/force-app/main/default/layouts/Lease__c-Lease Layout.layout-meta.xml +83 -0
- package/dist/force-app/main/default/layouts/Maintenance_Request__c-Maintenance Request Layout.layout-meta.xml +89 -0
- package/dist/force-app/main/default/layouts/Maintenance_Worker__c-Maintenance Worker Layout.layout-meta.xml +66 -0
- package/dist/force-app/main/default/layouts/Payment__c-Payment Layout.layout-meta.xml +88 -0
- package/dist/force-app/main/default/layouts/Property_Cost__c-Property Cost Layout.layout-meta.xml +88 -0
- package/dist/force-app/main/default/layouts/Property_Feature__c-Property Feature Layout.layout-meta.xml +80 -0
- package/dist/force-app/main/default/layouts/Property_Image__c-Property Image Layout.layout-meta.xml +75 -0
- package/dist/force-app/main/default/layouts/Property_Listing__c-Property Listing Layout.layout-meta.xml +92 -0
- package/dist/force-app/main/default/layouts/Property_Management_Company__c-Property Management Company Layout.layout-meta.xml +75 -0
- package/dist/force-app/main/default/layouts/Property_Owner__c-Property Owner Layout.layout-meta.xml +67 -0
- package/dist/force-app/main/default/layouts/Property_Sale__c-Property Sale Layout.layout-meta.xml +87 -0
- package/dist/force-app/main/default/layouts/Property__c-Property Layout.layout-meta.xml +130 -0
- package/dist/force-app/main/default/layouts/Tenant__c-Tenant Layout.layout-meta.xml +58 -0
- package/dist/force-app/main/default/networks/vuepropertyrentalapp.network-meta.xml +60 -0
- package/dist/force-app/main/default/objects/Agent__c/Agent__c.object-meta.xml +66 -0
- package/dist/force-app/main/default/objects/Agent__c/fields/Agent_Type__c.field-meta.xml +37 -0
- package/dist/force-app/main/default/objects/Agent__c/fields/Availability__c.field-meta.xml +37 -0
- package/dist/force-app/main/default/objects/Agent__c/fields/Emergency_Alt__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Agent__c/fields/Language__c.field-meta.xml +42 -0
- package/dist/force-app/main/default/objects/Agent__c/fields/License_Expiry__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Agent__c/fields/License_Number__c.field-meta.xml +14 -0
- package/dist/force-app/main/default/objects/Agent__c/fields/Office_Location__c.field-meta.xml +42 -0
- package/dist/force-app/main/default/objects/Agent__c/fields/Territory__c.field-meta.xml +42 -0
- package/dist/force-app/main/default/objects/Application__c/Application__c.object-meta.xml +67 -0
- package/dist/force-app/main/default/objects/Application__c/fields/Employment__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Application__c/fields/Property__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Application__c/fields/References__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Application__c/fields/Start_Date__c.field-meta.xml +9 -0
- package/dist/force-app/main/default/objects/Application__c/fields/Status__c.field-meta.xml +47 -0
- package/dist/force-app/main/default/objects/Application__c/fields/User__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/KPI_Snapshot__c/KPI_Snapshot__c.object-meta.xml +65 -0
- package/dist/force-app/main/default/objects/KPI_Snapshot__c/fields/Previous_Month_Sales__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/KPI_Snapshot__c/fields/Sales_MoM_Change__c.field-meta.xml +18 -0
- package/dist/force-app/main/default/objects/KPI_Snapshot__c/fields/Snapshot_Date__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/KPI_Snapshot__c/fields/Total_Properties__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/KPI_Snapshot__c/fields/Total_Sales_Amount__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/KPI_Snapshot__c/fields/Total_Sales_Count__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/KPI_Snapshot__c/fields/Units_Available__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/KPI_Snapshot__c/fields/Units_Occupied__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Lease__c/Lease__c.object-meta.xml +67 -0
- package/dist/force-app/main/default/objects/Lease__c/fields/End_Date__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Lease__c/fields/Lease_Status__c.field-meta.xml +36 -0
- package/dist/force-app/main/default/objects/Lease__c/fields/Monthly_Rent__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Lease__c/fields/Property__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Lease__c/fields/Security_Deposit__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Lease__c/fields/Start_Date__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Lease__c/fields/Tenant__c.field-meta.xml +14 -0
- package/dist/force-app/main/default/objects/Lease__c/validationRules/End_Date_After_Start_Date.validationRule-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/Maintenance_Request__c.object-meta.xml +73 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/Actual_Cost__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/Assigned_Worker__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/Completed__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/Description__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/Est_Cost__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/Priority__c.field-meta.xml +32 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/Property__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/Scheduled__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/Status__c.field-meta.xml +42 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/Tenant_Home__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/Type__c.field-meta.xml +62 -0
- package/dist/force-app/main/default/objects/Maintenance_Request__c/fields/User__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Maintenance_Worker__c/Maintenance_Worker__c.object-meta.xml +71 -0
- package/dist/force-app/main/default/objects/Maintenance_Worker__c/fields/Certifications__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Maintenance_Worker__c/fields/Employment_Type__c.field-meta.xml +32 -0
- package/dist/force-app/main/default/objects/Maintenance_Worker__c/fields/Hourly_Rate__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Maintenance_Worker__c/fields/IsActive__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Maintenance_Worker__c/fields/Location__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Maintenance_Worker__c/fields/Phone__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Maintenance_Worker__c/fields/Rating__c.field-meta.xml +14 -0
- package/dist/force-app/main/default/objects/Maintenance_Worker__c/fields/Type__c.field-meta.xml +57 -0
- package/dist/force-app/main/default/objects/Notification__c/Notification__c.object-meta.xml +67 -0
- package/dist/force-app/main/default/objects/Notification__c/fields/Is_Read__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Notification__c/fields/Message__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Notification__c/fields/Priority__c.field-meta.xml +36 -0
- package/dist/force-app/main/default/objects/Notification__c/fields/Related_Object_Type__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Notification__c/fields/Related_Record_Id__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Notification__c/fields/Title__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Notification__c/fields/Type__c.field-meta.xml +36 -0
- package/dist/force-app/main/default/objects/Notification__c/fields/User__c.field-meta.xml +14 -0
- package/dist/force-app/main/default/objects/Payment__c/Payment__c.object-meta.xml +67 -0
- package/dist/force-app/main/default/objects/Payment__c/fields/Amount__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Payment__c/fields/Lease__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Payment__c/fields/Notes__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Payment__c/fields/Payment_Date__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Payment__c/fields/Payment_Method__c.field-meta.xml +41 -0
- package/dist/force-app/main/default/objects/Payment__c/fields/Payment_Status__c.field-meta.xml +36 -0
- package/dist/force-app/main/default/objects/Property_Cost__c/Property_Cost__c.object-meta.xml +67 -0
- package/dist/force-app/main/default/objects/Property_Cost__c/fields/Cost_Amount__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Property_Cost__c/fields/Cost_Category__c.field-meta.xml +56 -0
- package/dist/force-app/main/default/objects/Property_Cost__c/fields/Cost_Date__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Property_Cost__c/fields/Description__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Property_Cost__c/fields/Property__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Property_Cost__c/fields/Vendor__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Property_Cost__c/validationRules/Cost_Amount_Limit.validationRule-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Property_Feature__c/Property_Feature__c.object-meta.xml +65 -0
- package/dist/force-app/main/default/objects/Property_Feature__c/fields/Description__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Property_Feature__c/fields/Display_on_Listing__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Property_Feature__c/fields/Feature_Category__c.field-meta.xml +51 -0
- package/dist/force-app/main/default/objects/Property_Feature__c/fields/Property__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Property_Image__c/Property_Image__c.object-meta.xml +65 -0
- package/dist/force-app/main/default/objects/Property_Image__c/fields/Alt_Text__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Property_Image__c/fields/Display_Order__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Property_Image__c/fields/Image_Type__c.field-meta.xml +41 -0
- package/dist/force-app/main/default/objects/Property_Image__c/fields/Image_URL__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Property_Image__c/fields/Property__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Property_Listing__c/Property_Listing__c.object-meta.xml +65 -0
- package/dist/force-app/main/default/objects/Property_Listing__c/fields/Display_Order__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Property_Listing__c/fields/Featured__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Property_Listing__c/fields/Listing_Price__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Property_Listing__c/fields/Listing_Status__c.field-meta.xml +41 -0
- package/dist/force-app/main/default/objects/Property_Listing__c/fields/Marketing_Description__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Property_Listing__c/fields/Property__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Property_Listing__c/fields/Short_Description__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Property_Management_Company__c/Property_Management_Company__c.object-meta.xml +65 -0
- package/dist/force-app/main/default/objects/Property_Management_Company__c/fields/Active__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Property_Management_Company__c/fields/Company_Code__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Property_Management_Company__c/fields/Email__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Property_Management_Company__c/fields/Phone__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Property_Management_Company__c/fields/Primary_Contact__c.field-meta.xml +14 -0
- package/dist/force-app/main/default/objects/Property_Owner__c/Property_Owner__c.object-meta.xml +65 -0
- package/dist/force-app/main/default/objects/Property_Owner__c/fields/Address__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Property_Owner__c/fields/Email__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Property_Owner__c/fields/Phone__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Property_Sale__c/Property_Sale__c.object-meta.xml +67 -0
- package/dist/force-app/main/default/objects/Property_Sale__c/fields/Buyer_Tenant__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Property_Sale__c/fields/Payment_Method__c.field-meta.xml +41 -0
- package/dist/force-app/main/default/objects/Property_Sale__c/fields/Property__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Property_Sale__c/fields/Reference_Number__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Property_Sale__c/fields/Sale_Amount__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Property_Sale__c/fields/Sale_Date__c.field-meta.xml +10 -0
- package/dist/force-app/main/default/objects/Property_Sale__c/fields/Sale_Status__c.field-meta.xml +36 -0
- package/dist/force-app/main/default/objects/Property_Sale__c/fields/Sale_Type__c.field-meta.xml +51 -0
- package/dist/force-app/main/default/objects/Property__c/Property__c.object-meta.xml +71 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Address__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Agent__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Available_Date__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Bathrooms__c.field-meta.xml +14 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Bedrooms__c.field-meta.xml +14 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Coordinates__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Deposit__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Description__c.field-meta.xml +12 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Features__c.field-meta.xml +38 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Hero_Image__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Lease_Term__c.field-meta.xml +14 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Monthly_Rent__c.field-meta.xml +13 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Parking__c.field-meta.xml +14 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Pet_Friendly__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Sq_Ft__c.field-meta.xml +14 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Status__c.field-meta.xml +37 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Tour_URL__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Type__c.field-meta.xml +37 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Utilities__c.field-meta.xml +38 -0
- package/dist/force-app/main/default/objects/Property__c/fields/Year_Built__c.field-meta.xml +14 -0
- package/dist/force-app/main/default/objects/Tenant__c/Tenant__c.object-meta.xml +67 -0
- package/dist/force-app/main/default/objects/Tenant__c/fields/End_Date__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Tenant__c/fields/Property__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/objects/Tenant__c/fields/Start_Date__c.field-meta.xml +11 -0
- package/dist/force-app/main/default/objects/Tenant__c/fields/Status__c.field-meta.xml +37 -0
- package/dist/force-app/main/default/objects/Tenant__c/fields/User_Status__c.field-meta.xml +42 -0
- package/dist/force-app/main/default/objects/Tenant__c/fields/User__c.field-meta.xml +15 -0
- package/dist/force-app/main/default/package.xml +24 -0
- package/dist/force-app/main/default/permissionsets/Property_Management_Access.permissionset-meta.xml +713 -0
- package/dist/force-app/main/default/permissionsets/Property_Rental_Guest_User_Access.permissionset-meta.xml +221 -0
- package/dist/force-app/main/default/permissionsets/Tenant_Maintenance_Access.permissionset-meta.xml +141 -0
- package/dist/force-app/main/default/permissionsets/vuepropertyrentalapp_Guest_User_Api_Access.permissionset-meta.xml +25 -0
- package/dist/force-app/main/default/profiles/Property Rental Prospect Profile.profile-meta.xml +299 -0
- package/dist/force-app/main/default/roles/Admin.role-meta.xml +9 -0
- package/dist/force-app/main/default/sharingrules/Property__c.sharingRules-meta.xml +17 -0
- package/dist/force-app/main/default/sites/vuepropertyrentalapp.site-meta.xml +31 -0
- package/dist/force-app/main/default/tabs/Agent__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Application__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/KPI_Snapshot__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Lease__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Maintenance_Request__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Maintenance_Worker__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Notification__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Payment__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Property_Cost__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Property_Feature__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Property_Image__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Property_Listing__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Property_Management_Company__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Property_Owner__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Property_Sale__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Property__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/tabs/Tenant__c.tab-meta.xml +5 -0
- package/dist/force-app/main/default/triggers/MaintenanceRequestTrigger.trigger +5 -0
- package/dist/force-app/main/default/triggers/MaintenanceRequestTrigger.trigger-meta.xml +5 -0
- package/dist/force-app/main/default/triggers/TenantTrigger.trigger +8 -0
- package/dist/force-app/main/default/triggers/TenantTrigger.trigger-meta.xml +5 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/.forceignore +15 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/.graphqlrc.yml +2 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/.prettierignore +9 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/.prettierrc +11 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/README.md +35 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/codegen.yml +95 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/components.json +19 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/e2e/app.spec.ts +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/eslint.config.js +124 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/index.html +18 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/package.json +76 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/playwright.config.ts +24 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/scripts/get-graphql-schema.mjs +71 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/scripts/rewrite-e2e-assets.mjs +23 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/App.vue +20 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/applications/applicationApi.ts +58 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/applications/query/getUserDetails.graphql +16 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/graphql-operations-types.ts +27823 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/graphqlClient.ts +44 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/leads/leadApi.ts +83 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/maintenanceRequests/maintenanceRequestApi.ts +80 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/maintenanceRequests/query/maintenanceRequests.graphql +60 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/objectSearchService.ts +63 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/properties/propertyDetailGraphQL.ts +80 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/properties/propertyNodeUtils.ts +34 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/properties/propertySearchService.ts +61 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/properties/query/distinctPropertyStatus.graphql +19 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/properties/query/distinctPropertyType.graphql +19 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/properties/query/listingById.graphql +29 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/properties/query/propertyAddressesByIds.graphql +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/properties/query/propertyDetailById.graphql +124 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/properties/query/searchProperties.graphql +85 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/query/tenantProperties.graphql +24 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/api/tenants/tenantApi.ts +28 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/appLayout.vue +104 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/assets/icons/appliances.svg +13 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/assets/icons/electrical.svg +39 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/assets/icons/hvac.svg +78 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/assets/icons/pest.svg +5 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/assets/icons/plumbing.svg +7 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/assets/icons/zen-logo.svg +5 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ErrorBoundary.vue +31 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/alerts/status-alert.vue +59 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/dashboard/WeatherWidget.vue +267 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/layout/TopBar.vue +90 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/layout/VerticalNav.vue +154 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/layouts/card-layout.vue +30 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/maintenanceRequests/MaintenanceRequestIcon.vue +41 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/maintenanceRequests/MaintenanceRequestList.vue +57 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/maintenanceRequests/MaintenanceRequestListItem.vue +95 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/maintenanceRequests/MaintenanceSummaryDetailsModal.vue +131 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/maintenanceRequests/StatusBadge.vue +41 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/properties/PropertyListingCard.vue +150 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/properties/PropertyListingCardSkeleton.vue +31 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/properties/PropertyMap.vue +233 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/properties/PropertySearchFilters.vue +331 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/properties/mapTypes.ts +22 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/properties/propertySearchFilterTypes.ts +11 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/skeletons/SkeletonField.vue +21 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/skeletons/SkeletonListRows.vue +25 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/alert/Alert.vue +21 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/alert/AlertAction.vue +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/alert/AlertDescription.vue +22 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/alert/AlertTitle.vue +22 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/alert/index.ts +25 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/avatar/Avatar.vue +23 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/avatar/AvatarFallback.vue +31 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/avatar/AvatarImage.vue +16 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/avatar/index.ts +3 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/button/Button.vue +33 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/button/index.ts +43 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/card/Card.vue +29 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/card/CardAction.vue +22 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/card/CardContent.vue +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/card/CardDescription.vue +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/card/CardFooter.vue +22 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/card/CardHeader.vue +22 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/card/CardTitle.vue +22 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/card/index.ts +7 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/checkbox/Checkbox.vue +43 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/checkbox/index.ts +1 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/collapsible/Collapsible.vue +19 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/collapsible/CollapsibleContent.vue +12 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/collapsible/CollapsibleTrigger.vue +12 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/collapsible/index.ts +3 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dialog/Dialog.vue +15 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dialog/DialogClose.vue +12 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dialog/DialogContent.vue +59 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dialog/DialogDescription.vue +31 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dialog/DialogFooter.vue +33 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dialog/DialogHeader.vue +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dialog/DialogOverlay.vue +31 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dialog/DialogPortal.vue +12 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dialog/DialogTitle.vue +26 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dialog/DialogTrigger.vue +12 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dialog/index.ts +10 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenu.vue +19 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +51 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuContent.vue +47 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuGroup.vue +12 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuItem.vue +44 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuLabel.vue +30 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuPortal.vue +12 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +21 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +52 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue +26 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue +19 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuSub.vue +19 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue +37 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +38 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/dropdown-menu/index.ts +15 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/field/Field.vue +27 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/field/FieldContent.vue +22 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/field/FieldDescription.vue +24 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/field/FieldError.vue +48 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/field/FieldGroup.vue +22 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/field/FieldLabel.vue +24 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/field/FieldLegend.vue +29 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/field/FieldSeparator.vue +31 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/field/FieldSet.vue +22 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/field/FieldTitle.vue +22 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/field/index.ts +33 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/index.ts +115 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/input/Input.vue +30 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/input/index.ts +1 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/label/Label.vue +29 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/label/index.ts +1 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/pagination/Pagination.vue +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/pagination/PaginationContent.vue +15 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/pagination/PaginationEllipsis.vue +23 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/pagination/PaginationItem.vue +7 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/pagination/PaginationLink.vue +31 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/pagination/PaginationNext.vue +29 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/pagination/PaginationPrevious.vue +29 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/pagination/index.ts +7 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/popover/Popover.vue +15 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/popover/PopoverAnchor.vue +12 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/popover/PopoverContent.vue +44 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/popover/PopoverDescription.vue +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/popover/PopoverHeader.vue +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/popover/PopoverTitle.vue +14 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/popover/PopoverTrigger.vue +12 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/popover/index.ts +7 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/Select.vue +15 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/SelectContent.vue +65 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/SelectGroup.vue +26 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/SelectItem.vue +41 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/SelectLabel.vue +26 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/SelectScrollDownButton.vue +32 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/SelectScrollUpButton.vue +32 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/SelectSeparator.vue +24 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/SelectTrigger.vue +45 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/SelectValue.vue +12 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/select/index.ts +10 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/separator/Separator.vue +33 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/separator/index.ts +1 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/skeleton/Skeleton.vue +15 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/skeleton/index.ts +1 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/sonner/Sonner.vue +29 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/sonner/index.ts +3 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/spinner/Spinner.vue +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/components/ui/spinner/index.ts +1 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/composables/propertyMapMarkerUtils.ts +156 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/composables/useAsyncData.ts +69 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/composables/useGeocode.ts +35 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/composables/useMaintenanceRequests.ts +36 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/composables/useObjectSearchParams.ts +263 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/composables/usePropertyDetail.ts +46 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/composables/usePropertyMapMarkers.ts +90 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/composables/useReanchorReadingCursor.ts +66 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/composables/useTenantAccess.ts +99 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/composables/useWeather.ts +133 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/api/userProfileApi.ts +107 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/authHelpers.ts +78 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/authenticationConfig.ts +66 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/components/SocialLogin.vue +150 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/composables/useCountdownTimer.ts +246 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/composables/useRetryWithBackoff.ts +112 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/composables/useSessionTimeout.ts +244 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/context/authContext.ts +115 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/footers/FooterLink.vue +47 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/forms/AuthForm.vue +141 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/forms/SubmitButton.vue +57 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/hooks/EmailField.vue +46 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/hooks/PasswordField.vue +48 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/hooks/TextField.vue +106 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/hooks/form.ts +90 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/hooks/formContexts.ts +61 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/layout/CenteredPageLayout.vue +65 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/layouts/AuthAppLayout.vue +24 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/layouts/PrivateRouteLayout.vue +50 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/layouts/TenantRouteLayout.vue +67 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/menu/AuthMenu.vue +143 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/pages/ChangePassword.vue +122 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/pages/ForgotPassword.vue +90 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/pages/Login.vue +106 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/pages/Profile.vue +180 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/pages/Register.vue +135 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/pages/ResetPassword.vue +114 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/sessionTimeout/SessionExpiredAlert.vue +50 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/sessionTimeout/SessionTimeoutValidator.vue +136 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/sessionTimeout/SessionWarningModal.vue +151 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/sessionTimeout/sessionTimeService.ts +142 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/sessionTimeout/sessionTimeoutConfig.ts +82 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/utils/helpers.ts +90 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/authentication/utils/queryToSearchParams.ts +33 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/api/apiUtils.ts +56 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/api/orgApiVersionService.ts +37 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/api/searchableContentTypesService.ts +119 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/channelResolver.ts +40 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/cmsQueryFragment.ts +108 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/composables/useSearchableContentTypes.ts +132 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/contentTypeSessionCache.ts +134 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/contentTypeUtils.ts +40 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/index.ts +55 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/parseResponse.ts +65 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/searchChannel.ts +31 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/cms/types.ts +66 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/registry.ts +38 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/sobject/index.ts +19 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/sobject/parseResponse.ts +55 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/sobject/queryFragment.ts +141 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/adapters/types.ts +103 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/api/distinctValuesService.ts +81 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/api/searchService.ts +136 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/GlobalSearchBox.types.ts +18 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/GlobalSearchBox.vue +73 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/MergedSearchResults.types.ts +24 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/MergedSearchResults.vue +263 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/Search.vue +200 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/SearchResults.vue +99 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/SourceSection.vue +204 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/controls/PaginationControls.vue +180 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/controls/ScopeSelector.vue +91 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/controls/SearchBar.vue +56 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/controls/SortControl.vue +55 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/ActiveFilters.vue +59 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/DefaultFilterField.vue +63 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/DefaultFilterPanel.vue +31 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/FilterContext.ts +45 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/FilterProvider.vue +23 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/FilterResetButton.vue +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/PicklistField.vue +35 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/inputs/BooleanFilter.vue +47 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/inputs/DateRangeFilter.vue +144 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/inputs/FilterFieldWrapper.vue +23 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/inputs/MultiSelectFilter.vue +95 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/inputs/NumericRangeFilter.vue +117 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/inputs/SelectFilter.vue +44 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/filters/inputs/TextFilter.vue +49 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/results/CmsResultRow.vue +160 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/results/DefaultResultRow.vue +102 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/results/RenderVNode.ts +10 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/components/results/resolveResultRenderer.ts +41 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/composables/useAsyncData.ts +66 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/composables/useDistinctValues.ts +67 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/composables/useSearch.ts +906 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/config.json +88 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/constants.ts +8 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/index.ts +115 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/loadConfig.ts +14 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/queryBuilder.ts +100 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/types.ts +375 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/utils/debounce.ts +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/utils/fieldUtils.ts +14 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/utils/filterUtils.ts +304 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/features/search/utils/sortUtils.ts +34 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/lib/utils.ts +6 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/main.ts +6 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/pages/Application.vue +331 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/pages/Contact.vue +277 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/pages/Dashboard.vue +47 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/pages/Home.vue +535 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/pages/Maintenance.vue +345 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/pages/NotFound.vue +19 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/pages/PropertyDetails.vue +392 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/pages/PropertySearch.vue +452 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/pages/PropertySearchPlaceholder.vue +53 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/pages/SearchPage.vue +17 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-01.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-02.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-03.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-04.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-05.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-06.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-07.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-08.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-09.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-10.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-11.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-12.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-13.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-14.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-15.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-16.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-17.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-18.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-19.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-20.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-21.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-22.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-23.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-24.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/public/property-25.jpg +0 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/router-utils.ts +32 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/router.ts +153 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/styles/global.css +228 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/test/setup.ts +1 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/utils/geocode.ts +95 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/src/utils/weather.ts +262 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/tsconfig.json +45 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/tsconfig.node.json +13 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/tsconfig.tsbuildinfo +1 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/ui-bundle.json +7 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/vite-env.d.ts +14 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/vite.config.ts +106 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/vitest-env.d.ts +2 -0
- package/dist/force-app/main/default/uiBundles/vuepropertyrentalapp/vuepropertyrentalapp.uibundle-meta.xml +8 -0
- package/dist/jest.config.js +6 -0
- package/dist/package-lock.json +12554 -0
- package/dist/package.json +46 -0
- package/dist/scripts/apex/hello.apex +10 -0
- package/dist/scripts/gitignore-templates.json +4 -0
- package/dist/scripts/graphql-search.sh +191 -0
- package/dist/scripts/network-senders.mjs +84 -0
- package/dist/scripts/org-setup-config-schema.mjs +132 -0
- package/dist/scripts/org-setup-dev.mjs +114 -0
- package/dist/scripts/org-setup-url.mjs +108 -0
- package/dist/scripts/org-setup-utils.mjs +569 -0
- package/dist/scripts/org-setup-xml.mjs +283 -0
- package/dist/scripts/org-setup.config.json +27 -0
- package/dist/scripts/org-setup.mjs +2545 -0
- package/dist/scripts/sf-project-setup.mjs +103 -0
- package/dist/scripts/soql/account.soql +6 -0
- package/dist/scripts/validate-org-setup-config.mjs +38 -0
- package/dist/sfdx-project.json +12 -0
- package/package.json +49 -4
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@salesforce/ui-bundle-template-base-sfdx-project",
|
|
3
|
+
"version": "13.4.0",
|
|
4
|
+
"description": "Base SFDX project template",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"sf-project-setup": "node scripts/sf-project-setup.mjs",
|
|
11
|
+
"build": "echo 'No build required for base-sfdx-project'",
|
|
12
|
+
"clean": "echo 'No clean required for base-sfdx-project'",
|
|
13
|
+
"lint": "eslint --no-error-on-unmatched-pattern **/{aura,lwc}/**/*.js",
|
|
14
|
+
"validate:org-setup-config": "node scripts/validate-org-setup-config.mjs",
|
|
15
|
+
"test": "npm run test:unit",
|
|
16
|
+
"test:coverage": "npm run test",
|
|
17
|
+
"test:unit": "sfdx-lwc-jest -- --passWithNoTests",
|
|
18
|
+
"test:unit:watch": "sfdx-lwc-jest --watch",
|
|
19
|
+
"test:unit:debug": "sfdx-lwc-jest --debug",
|
|
20
|
+
"test:unit:coverage": "sfdx-lwc-jest --coverage",
|
|
21
|
+
"prettier": "prettier --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
|
|
22
|
+
"prettier:verify": "prettier --check \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
|
|
23
|
+
"precommit": "lint-staged",
|
|
24
|
+
"setup": "node scripts/org-setup.mjs",
|
|
25
|
+
"dev:preview": "node scripts/org-setup-dev.mjs"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"fast-xml-parser": "^5.9.3",
|
|
29
|
+
"zod": "^3.24.1"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@lwc/eslint-plugin-lwc": "^3.3.0",
|
|
33
|
+
"@prettier/plugin-xml": "^3.2.2",
|
|
34
|
+
"@salesforce/eslint-config-lwc": "^4.1.0",
|
|
35
|
+
"@salesforce/eslint-plugin-aura": "^3.0.0",
|
|
36
|
+
"@salesforce/eslint-plugin-lightning": "^2.0.0",
|
|
37
|
+
"@salesforce/sfdx-lwc-jest": "^7.0.1",
|
|
38
|
+
"eslint": "^9.39.0",
|
|
39
|
+
"eslint-plugin-import": "^2.25.4",
|
|
40
|
+
"eslint-plugin-jest": "^28.8.1",
|
|
41
|
+
"husky": "^9.1.5",
|
|
42
|
+
"lint-staged": "^15.1.0",
|
|
43
|
+
"prettier": "^3.1.0",
|
|
44
|
+
"prettier-plugin-apex": "^2.0.1"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Use .apex files to store anonymous Apex.
|
|
2
|
+
// You can execute anonymous Apex in VS Code by selecting the
|
|
3
|
+
// apex text and running the command:
|
|
4
|
+
// SFDX: Execute Anonymous Apex with Currently Selected Text
|
|
5
|
+
// You can also execute the entire file by running the command:
|
|
6
|
+
// SFDX: Execute Anonymous Apex with Editor Contents
|
|
7
|
+
|
|
8
|
+
string tempvar = 'Enter_your_name_here';
|
|
9
|
+
System.debug('Hello World!');
|
|
10
|
+
System.debug('My name is ' + tempvar);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sfdx": "# This file is used for Git repositories to specify intentionally untracked files that Git should ignore. \n# If you are not using git, you can delete this file. For more information see: https://git-scm.com/docs/gitignore\n# For useful gitignore templates see: https://github.com/github/gitignore\n\n# Salesforce cache\n.sf/\n.sfdx/\n.localdevserver/\ndeploy-options.json\n\n# LWC VSCode autocomplete\n**/lwc/jsconfig.json\n\n# LWC Jest coverage reports\ncoverage/\n\n# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\n\n# Dependency directories\nnode_modules/\n\n# Eslint cache\n.eslintcache\n\n# MacOS system files\n.DS_Store\n\n# Windows system files\nThumbs.db\nehthumbs.db\n[Dd]esktop.ini\n$RECYCLE.BIN/\n\n# Local environment variables\n.env\n\n# Python Salesforce Functions\n**/__pycache__/\n**/.venv/\n**/venv/\n",
|
|
3
|
+
"webapp": "# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\npnpm-debug.log*\nlerna-debug.log*\n\nnode_modules\ndist\ndist-ssr\nbuild\npackage-lock.json\n*.local\n\n# Playwright\n/test-results/\n/playwright-report/\n/blob-report/\n/playwright/.cache/\n\n# Editor directories and files\n.vscode/*\n!.vscode/extensions.json\n.idea\n.DS_Store\n*.suo\n*.ntvs*\n*.njsproj\n*.sln\n*.sw?\n\n# Un-exclude Cursor AI rules for this SFDX project\n!.a4drules/\n!.cursor/\n"
|
|
4
|
+
}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail # exit on error (-e), undefined vars (-u), and propagate pipeline failures (-o pipefail)
|
|
3
|
+
# graphql-search.sh — Look up one or more Salesforce entities in schema.graphql.
|
|
4
|
+
#
|
|
5
|
+
# Run from the SFDX project root (where schema.graphql lives):
|
|
6
|
+
# bash scripts/graphql-search.sh Account
|
|
7
|
+
# bash scripts/graphql-search.sh Account Contact Opportunity
|
|
8
|
+
#
|
|
9
|
+
# Pass a custom schema path with -s / --schema:
|
|
10
|
+
# bash scripts/graphql-search.sh -s /path/to/schema.graphql Account
|
|
11
|
+
# bash scripts/graphql-search.sh --schema ./other/schema.graphql Account Contact
|
|
12
|
+
#
|
|
13
|
+
# Output sections per entity:
|
|
14
|
+
# 1. Type definition — all fields and relationships
|
|
15
|
+
# 2. Filter options — <Entity>_Filter input (for `where:`)
|
|
16
|
+
# 3. Sort options — <Entity>_OrderBy input (for `orderBy:`)
|
|
17
|
+
# 4. Create mutation wrapper — <Entity>CreateInput
|
|
18
|
+
# 5. Create mutation fields — <Entity>CreateRepresentation (for create mutations)
|
|
19
|
+
# 6. Update mutation wrapper — <Entity>UpdateInput
|
|
20
|
+
# 7. Update mutation fields — <Entity>UpdateRepresentation (for update mutations)
|
|
21
|
+
|
|
22
|
+
SCHEMA="./schema.graphql"
|
|
23
|
+
|
|
24
|
+
# ── Argument parsing ─────────────────────────────────────────────────────────
|
|
25
|
+
|
|
26
|
+
while [[ $# -gt 0 ]]; do
|
|
27
|
+
case "$1" in
|
|
28
|
+
-s|--schema)
|
|
29
|
+
if [[ -z "${2-}" || "$2" == -* ]]; then
|
|
30
|
+
echo "ERROR: --schema requires a file path argument"
|
|
31
|
+
exit 1
|
|
32
|
+
fi
|
|
33
|
+
SCHEMA="$2"
|
|
34
|
+
shift 2
|
|
35
|
+
;;
|
|
36
|
+
--)
|
|
37
|
+
shift
|
|
38
|
+
break
|
|
39
|
+
;;
|
|
40
|
+
-*)
|
|
41
|
+
echo "ERROR: Unknown option: $1"
|
|
42
|
+
echo "Usage: bash $0 [-s <schema-path>] <EntityName> [EntityName2 ...]"
|
|
43
|
+
exit 1
|
|
44
|
+
;;
|
|
45
|
+
*)
|
|
46
|
+
break
|
|
47
|
+
;;
|
|
48
|
+
esac
|
|
49
|
+
done
|
|
50
|
+
|
|
51
|
+
if [ $# -eq 0 ]; then
|
|
52
|
+
echo "Usage: bash $0 [-s <schema-path>] <EntityName> [EntityName2 ...]"
|
|
53
|
+
echo "Example: bash $0 Account"
|
|
54
|
+
echo "Example: bash $0 Account Contact Opportunity"
|
|
55
|
+
echo "Example: bash $0 --schema /path/to/schema.graphql Account"
|
|
56
|
+
exit 1
|
|
57
|
+
fi
|
|
58
|
+
|
|
59
|
+
if [ ! -f "$SCHEMA" ]; then
|
|
60
|
+
echo "ERROR: schema.graphql not found at $SCHEMA"
|
|
61
|
+
echo " Make sure you are running from the SFDX project root, or pass the path explicitly:"
|
|
62
|
+
echo " bash $0 --schema <path/to/schema.graphql> <EntityName>"
|
|
63
|
+
echo " If the file is missing entirely, generate it from the ui-bundle dir:"
|
|
64
|
+
echo " cd force-app/main/default/uiBundles/<app-name> && npm run graphql:schema"
|
|
65
|
+
exit 1
|
|
66
|
+
fi
|
|
67
|
+
|
|
68
|
+
if [ ! -r "$SCHEMA" ]; then
|
|
69
|
+
echo "ERROR: schema.graphql is not readable at $SCHEMA"
|
|
70
|
+
echo " Check file permissions: ls -la $SCHEMA"
|
|
71
|
+
exit 1
|
|
72
|
+
fi
|
|
73
|
+
|
|
74
|
+
if [ ! -s "$SCHEMA" ]; then
|
|
75
|
+
echo "ERROR: schema.graphql is empty at $SCHEMA"
|
|
76
|
+
echo " Regenerate it from the ui-bundle dir:"
|
|
77
|
+
echo " cd force-app/main/default/uiBundles/<app-name> && npm run graphql:schema"
|
|
78
|
+
exit 1
|
|
79
|
+
fi
|
|
80
|
+
|
|
81
|
+
# ── Helper: extract lines from a grep match through the closing brace ────────
|
|
82
|
+
# Prints up to MAX_LINES lines after (and including) the first match of PATTERN.
|
|
83
|
+
# Uses a generous line count — blocks are always closed by a "}" line.
|
|
84
|
+
|
|
85
|
+
extract_block() {
|
|
86
|
+
local label="$1"
|
|
87
|
+
local pattern="$2"
|
|
88
|
+
local max_lines="$3"
|
|
89
|
+
|
|
90
|
+
local match
|
|
91
|
+
local grep_exit=0
|
|
92
|
+
match=$(grep -nE "$pattern" "$SCHEMA" | head -1) || grep_exit=$?
|
|
93
|
+
|
|
94
|
+
if [ "$grep_exit" -eq 2 ]; then
|
|
95
|
+
echo " ERROR: grep failed on pattern: $pattern" >&2
|
|
96
|
+
return 1
|
|
97
|
+
fi
|
|
98
|
+
|
|
99
|
+
if [ -z "$match" ]; then
|
|
100
|
+
echo " (not found: $pattern)"
|
|
101
|
+
return 3
|
|
102
|
+
fi
|
|
103
|
+
|
|
104
|
+
echo "### $label"
|
|
105
|
+
grep -E "$pattern" "$SCHEMA" -A "$max_lines" | \
|
|
106
|
+
awk '/^\}$/{print; exit} {print}' | \
|
|
107
|
+
head -n "$max_lines" || true
|
|
108
|
+
echo ""
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
# ── Main loop ────────────────────────────────────────────────────────────────
|
|
112
|
+
|
|
113
|
+
for ENTITY in "$@"; do
|
|
114
|
+
# Validate entity name: must be a valid PascalCase identifier (letters, digits, underscores)
|
|
115
|
+
if [[ ! "$ENTITY" =~ ^[A-Za-z_][A-Za-z0-9_]*$ ]]; then
|
|
116
|
+
echo "ERROR: Invalid entity name: '$ENTITY'"
|
|
117
|
+
echo " Entity names must start with a letter or underscore, followed by letters, digits, or underscores."
|
|
118
|
+
echo " Examples: Account, My_Custom_Object__c"
|
|
119
|
+
continue
|
|
120
|
+
fi
|
|
121
|
+
|
|
122
|
+
echo ""
|
|
123
|
+
echo "======================================================================"
|
|
124
|
+
echo " SCHEMA LOOKUP: $ENTITY"
|
|
125
|
+
echo "======================================================================"
|
|
126
|
+
echo ""
|
|
127
|
+
|
|
128
|
+
found=0
|
|
129
|
+
|
|
130
|
+
# Helper: call extract_block, track matches, surface errors
|
|
131
|
+
try_extract() {
|
|
132
|
+
local rc=0
|
|
133
|
+
extract_block "$@" || rc=$?
|
|
134
|
+
if [ "$rc" -eq 0 ]; then
|
|
135
|
+
found=$((found + 1))
|
|
136
|
+
elif [ "$rc" -eq 1 ]; then
|
|
137
|
+
echo " Aborting lookup for '$ENTITY' due to grep error" >&2
|
|
138
|
+
fi
|
|
139
|
+
# rc=3 is not-found — continue silently (already printed by extract_block)
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
# 1. Type definition — all fields and relationships
|
|
143
|
+
try_extract \
|
|
144
|
+
"Type definition — fields and relationships" \
|
|
145
|
+
"^type ${ENTITY} implements Record" \
|
|
146
|
+
200
|
|
147
|
+
|
|
148
|
+
# 2. Filter input — used in `where:` arguments
|
|
149
|
+
try_extract \
|
|
150
|
+
"Filter options — use in where: { ... }" \
|
|
151
|
+
"^input ${ENTITY}_Filter" \
|
|
152
|
+
100
|
|
153
|
+
|
|
154
|
+
# 3. OrderBy input — used in `orderBy:` arguments
|
|
155
|
+
try_extract \
|
|
156
|
+
"Sort options — use in orderBy: { ... }" \
|
|
157
|
+
"^input ${ENTITY}_OrderBy" \
|
|
158
|
+
60
|
|
159
|
+
|
|
160
|
+
# 4. Create mutation wrapper
|
|
161
|
+
try_extract \
|
|
162
|
+
"Create mutation wrapper — ${ENTITY}CreateInput" \
|
|
163
|
+
"^input ${ENTITY}CreateInput" \
|
|
164
|
+
10
|
|
165
|
+
|
|
166
|
+
# 5. Create mutation fields
|
|
167
|
+
try_extract \
|
|
168
|
+
"Create mutation fields — ${ENTITY}CreateRepresentation" \
|
|
169
|
+
"^input ${ENTITY}CreateRepresentation" \
|
|
170
|
+
100
|
|
171
|
+
|
|
172
|
+
# 6. Update mutation wrapper
|
|
173
|
+
try_extract \
|
|
174
|
+
"Update mutation wrapper — ${ENTITY}UpdateInput" \
|
|
175
|
+
"^input ${ENTITY}UpdateInput" \
|
|
176
|
+
10
|
|
177
|
+
|
|
178
|
+
# 7. Update mutation fields
|
|
179
|
+
try_extract \
|
|
180
|
+
"Update mutation fields — ${ENTITY}UpdateRepresentation" \
|
|
181
|
+
"^input ${ENTITY}UpdateRepresentation" \
|
|
182
|
+
100
|
|
183
|
+
|
|
184
|
+
if [ "$found" -eq 0 ]; then
|
|
185
|
+
echo "WARNING: No schema entries found for '$ENTITY'."
|
|
186
|
+
echo " - Names are PascalCase (e.g., 'Account' not 'account')"
|
|
187
|
+
echo " - Custom objects may need deployment first"
|
|
188
|
+
fi
|
|
189
|
+
|
|
190
|
+
echo ""
|
|
191
|
+
done
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { execFileSync } from 'node:child_process';
|
|
2
|
+
import { existsSync, readdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
3
|
+
import { join, resolve, dirname } from 'node:path';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
import { XMLBuilder } from 'fast-xml-parser';
|
|
6
|
+
import { parseNetworkDocument, NetworkXmlError } from './org-setup-xml.mjs';
|
|
7
|
+
import { escapeSoqlString } from './org-setup-utils.mjs';
|
|
8
|
+
|
|
9
|
+
const builder = new XMLBuilder({
|
|
10
|
+
ignoreAttributes: false,
|
|
11
|
+
commentPropName: '#comment',
|
|
12
|
+
format: true,
|
|
13
|
+
indentBy: ' ',
|
|
14
|
+
suppressEmptyNode: true,
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export function preserveNetworkSenders(projectDir, targetOrg, run = execFileSync) {
|
|
18
|
+
const project = JSON.parse(readFileSync(join(projectDir, 'sfdx-project.json'), 'utf8'));
|
|
19
|
+
const files = (project.packageDirectories ?? []).flatMap(({ path }) => {
|
|
20
|
+
const dir = join(projectDir, path, 'main/default/networks');
|
|
21
|
+
if (!existsSync(dir)) return [];
|
|
22
|
+
return readdirSync(dir)
|
|
23
|
+
.filter((name) => name.endsWith('.network-meta.xml'))
|
|
24
|
+
.map((name) => ({ name: name.slice(0, -'.network-meta.xml'.length), path: join(dir, name) }));
|
|
25
|
+
});
|
|
26
|
+
if (!files.length) return;
|
|
27
|
+
|
|
28
|
+
const names = [...new Set(files.map(({ name }) => `'${escapeSoqlString(name)}'`))];
|
|
29
|
+
const response = JSON.parse(run('sf', [
|
|
30
|
+
'data', 'query', '--target-org', targetOrg,
|
|
31
|
+
'--query', `SELECT Name, EmailSenderAddress FROM Network WHERE Name IN (${names.join(',')})`,
|
|
32
|
+
'--json',
|
|
33
|
+
], { cwd: projectDir, encoding: 'utf8', stdio: ['ignore', 'pipe', 'pipe'], timeout: 60000 }));
|
|
34
|
+
if (response.status !== 0 || !Array.isArray(response.result?.records) || !response.result.done) {
|
|
35
|
+
throw new Error('Could not read all target Network sender addresses; deployment stopped.');
|
|
36
|
+
}
|
|
37
|
+
const senders = new Map(response.result.records.map((record) => [record.Name, record.EmailSenderAddress]));
|
|
38
|
+
|
|
39
|
+
const updates = files.map((file) => {
|
|
40
|
+
const original = readFileSync(file.path, 'utf8');
|
|
41
|
+
const document = parseNetworkDocument(original);
|
|
42
|
+
const network = document.Network;
|
|
43
|
+
let changed = false;
|
|
44
|
+
if (senders.has(file.name)) {
|
|
45
|
+
const sender = senders.get(file.name);
|
|
46
|
+
if (typeof sender !== 'string' || !sender.trim()) {
|
|
47
|
+
throw new Error(`The target Network "${file.name}" has no sender address; deployment stopped.`);
|
|
48
|
+
}
|
|
49
|
+
if (typeof network.emailSenderAddress !== 'string') {
|
|
50
|
+
throw new NetworkXmlError(`Expected one emailSenderAddress in ${file.name}.network-meta.xml`);
|
|
51
|
+
}
|
|
52
|
+
if (network.emailSenderAddress !== sender) {
|
|
53
|
+
network.emailSenderAddress = sender;
|
|
54
|
+
changed = true;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
// Sender changes belong to the site's Administration workspace.
|
|
58
|
+
if ('newSenderAddress' in network) {
|
|
59
|
+
delete network.newSenderAddress;
|
|
60
|
+
changed = true;
|
|
61
|
+
}
|
|
62
|
+
return { ...file, xml: changed ? builder.build(document) : original, changed };
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
for (const file of updates) {
|
|
66
|
+
if (file.changed) writeFileSync(file.path, file.xml);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {
|
|
71
|
+
const args = process.argv.slice(2);
|
|
72
|
+
if (args.length !== 2 || args[0] !== '--target-org' || !args[1].trim()) {
|
|
73
|
+
console.error('Usage: node scripts/network-senders.mjs --target-org <alias>');
|
|
74
|
+
process.exitCode = 1;
|
|
75
|
+
} else {
|
|
76
|
+
try {
|
|
77
|
+
preserveNetworkSenders(resolve(dirname(fileURLToPath(import.meta.url)), '..'), args[1]);
|
|
78
|
+
console.log('Network metadata prepared with the target org sender addresses.');
|
|
79
|
+
} catch (error) {
|
|
80
|
+
console.error(`Network metadata preparation failed: ${error.message}`);
|
|
81
|
+
process.exitCode = 1;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared schema + validator for org-setup.config.json (W-23043729).
|
|
3
|
+
*
|
|
4
|
+
* Authored ONCE, used at TWO moments:
|
|
5
|
+
* (a) build / CI time — `scripts/validate-org-setup-config.mjs` validates every
|
|
6
|
+
* org-setup.config.json this repo ships, failing the build on any violation.
|
|
7
|
+
* (b) setup runtime — `org-setup.mjs` calls `validateConfig` once in main(),
|
|
8
|
+
* before any step runs, to catch the developer's local post-scaffold edits.
|
|
9
|
+
*
|
|
10
|
+
* `validateConfig` is pure: it parses + validates and RETURNS a result. Each call
|
|
11
|
+
* site owns its own print/exit, so the build gate can report every bad file and
|
|
12
|
+
* the runtime can exit immediately — and the validator stays unit-testable.
|
|
13
|
+
*
|
|
14
|
+
* The zod schema uses `.strict()` at every level so unknown keys (e.g. the
|
|
15
|
+
* `permsetAssignment` singular typo) are rejected rather than silently ignored.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
import { z } from 'zod';
|
|
19
|
+
|
|
20
|
+
/** Closed set of assignee values — no arbitrary usernames. */
|
|
21
|
+
const Assignee = z.enum(['currentUser', 'guestUser', 'skip']);
|
|
22
|
+
|
|
23
|
+
// No siteName: for guestUser the site is derived from the single
|
|
24
|
+
// networks/<siteName>.network-meta.xml the app ships (see spec §5.2).
|
|
25
|
+
const Assignment = z
|
|
26
|
+
.object({
|
|
27
|
+
assignee: Assignee,
|
|
28
|
+
})
|
|
29
|
+
.strict();
|
|
30
|
+
|
|
31
|
+
export const ConfigSchema = z
|
|
32
|
+
.object({
|
|
33
|
+
permsetAssignments: z
|
|
34
|
+
.object({
|
|
35
|
+
// guestUser is valid here — siteName is derived, not per-assignment.
|
|
36
|
+
defaultAssignee: Assignee.default('skip'),
|
|
37
|
+
assignments: z.record(z.string(), Assignment).default({}),
|
|
38
|
+
})
|
|
39
|
+
.strict()
|
|
40
|
+
.optional(),
|
|
41
|
+
role: z
|
|
42
|
+
.object({
|
|
43
|
+
assignee: z.literal('currentUser'), // only value the role code honors
|
|
44
|
+
roleName: z.string().min(1),
|
|
45
|
+
})
|
|
46
|
+
.strict()
|
|
47
|
+
.optional(),
|
|
48
|
+
selfRegistration: z
|
|
49
|
+
.object({
|
|
50
|
+
// No siteName: the site is derived from the single
|
|
51
|
+
// networks/<siteName>.network-meta.xml the app ships (see spec §5.2),
|
|
52
|
+
// exactly like the guestUser permset path.
|
|
53
|
+
//
|
|
54
|
+
// selfRegProfile also drives the M1 license pre-check (W-23043735):
|
|
55
|
+
// setup derives the required UserLicense from this profile
|
|
56
|
+
// (Profile.UserLicense, matched on the stable LicenseDefinitionKey) and
|
|
57
|
+
// warns + skips self-registration when the org lacks it or has no seats.
|
|
58
|
+
// No separate license field is declared — the requirement can't drift
|
|
59
|
+
// from the profile the flow actually assigns.
|
|
60
|
+
selfRegProfile: z.string().min(1),
|
|
61
|
+
accountName: z.string().min(1),
|
|
62
|
+
})
|
|
63
|
+
.strict()
|
|
64
|
+
.optional(),
|
|
65
|
+
socialLogin: z
|
|
66
|
+
.object({
|
|
67
|
+
// Profile to add to NetworkMemberGroup so SSO-registered users can access
|
|
68
|
+
// the community (e.g. "Customer Community User"). Also enables the
|
|
69
|
+
// "Allow standard external profiles" org setting.
|
|
70
|
+
communityMemberProfile: z.string().min(1),
|
|
71
|
+
// DeveloperName of AuthProvider (OAuth) or SamlSsoConfig (SAML) records to link to the site's AuthConfig.
|
|
72
|
+
// Required because React (Site Container) sites hide SSO config in Admin UI.
|
|
73
|
+
authProviderNames: z.array(z.string().min(1)).min(1),
|
|
74
|
+
// Permission set to assign to community users created via SSO.
|
|
75
|
+
// Required because getCurrentUser() calls UI API GraphQL (uiapi.currentUser)
|
|
76
|
+
// which needs API access (PermissionsApiEnabled) that the community profile lacks.
|
|
77
|
+
// Typically the app's "*_Guest_User_Api_Access" permset.
|
|
78
|
+
communityUserPermset: z.string().min(1).optional(),
|
|
79
|
+
})
|
|
80
|
+
.strict()
|
|
81
|
+
.optional(),
|
|
82
|
+
// URL members are redirected to after logging out, written to the site's
|
|
83
|
+
// <logoutUrl> network metadata (a post-deploy step). Steers logout back to THIS
|
|
84
|
+
// site so members aren't dropped on the org default-site login (which, in an
|
|
85
|
+
// org hosting multiple sites, can be a different community). Prefer a
|
|
86
|
+
// site-relative path (e.g. "/myapp/"): it is domain-independent, so the same
|
|
87
|
+
// shipped value is valid on every org. The platform REQUIRES an absolute logout
|
|
88
|
+
// URL, so org-setup resolves a relative path against the site's Experience Cloud
|
|
89
|
+
// origin (discovered from the org at deploy time) before writing it; an
|
|
90
|
+
// already-absolute value is used as-is. Kept a permissive non-empty string (not
|
|
91
|
+
// z.string().url()) so relative paths are valid; character-safety for raw XML
|
|
92
|
+
// interpolation is enforced at write time.
|
|
93
|
+
logoutUrl: z.string().min(1).optional(),
|
|
94
|
+
})
|
|
95
|
+
.strict();
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Render a single zod issue as a "path: message" line. Empty path (a root-level
|
|
99
|
+
* problem) renders as "<root>: message".
|
|
100
|
+
*/
|
|
101
|
+
function formatIssue(issue) {
|
|
102
|
+
const path = issue.path.length > 0 ? issue.path.join('.') : '<root>';
|
|
103
|
+
return `${path}: ${issue.message}`;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Parse + validate a raw org-setup.config.json string.
|
|
108
|
+
*
|
|
109
|
+
* @param {string} rawText raw file contents (not yet JSON-parsed)
|
|
110
|
+
* @param {string} [configPath] path used only for error messages
|
|
111
|
+
* @returns {{ ok: true, data: object } | { ok: false, errors: string[] }}
|
|
112
|
+
* On success, `data` is the parsed + defaulted config. On failure, `errors`
|
|
113
|
+
* is a non-empty list of human-readable messages (JSON parse error or zod
|
|
114
|
+
* issues). The caller decides whether to print/exit.
|
|
115
|
+
*/
|
|
116
|
+
export function validateConfig(rawText, configPath) {
|
|
117
|
+
const where = configPath ? ` (${configPath})` : '';
|
|
118
|
+
|
|
119
|
+
let parsed;
|
|
120
|
+
try {
|
|
121
|
+
parsed = JSON.parse(rawText);
|
|
122
|
+
} catch (err) {
|
|
123
|
+
return { ok: false, errors: [`malformed JSON${where}: ${err.message}`] };
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
const result = ConfigSchema.safeParse(parsed);
|
|
127
|
+
if (!result.success) {
|
|
128
|
+
return { ok: false, errors: result.error.issues.map(formatIssue) };
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return { ok: true, data: result.data };
|
|
132
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Dev preview: refresh the GraphQL schema/types against a target org, then launch
|
|
4
|
+
* the Vite dev server (spec §5.5, M4). This is the step that used to be the final
|
|
5
|
+
* `dev` stage of org-setup.mjs — extracted here so `npm run setup` terminates
|
|
6
|
+
* cleanly after graphql, and the long-lived dev server is an explicit, separate
|
|
7
|
+
* `npm run dev:preview`.
|
|
8
|
+
*
|
|
9
|
+
* Unlike setup, this does NOT log in or deploy — it assumes the org is already
|
|
10
|
+
* set up. It shares org/bundle resolution and the process runner with org-setup
|
|
11
|
+
* via org-setup-utils.mjs.
|
|
12
|
+
*
|
|
13
|
+
* Usage:
|
|
14
|
+
* npm run dev:preview # prompt to pick an org + bundle
|
|
15
|
+
* npm run dev:preview -- --target-org myorg
|
|
16
|
+
* npm run dev:preview -- --target-org myorg --ui-bundle-name my-app
|
|
17
|
+
*
|
|
18
|
+
* Flow (in order):
|
|
19
|
+
* 1. resolve target org (explicit --target-org, else prompt / default org)
|
|
20
|
+
* 2. resolve UI bundle (explicit --ui-bundle-name, else picker / warning)
|
|
21
|
+
* 3. npm install (in the UI bundle)
|
|
22
|
+
* 4. npm run graphql:schema (SF_TARGET_ORG=<org>) — introspect the live schema
|
|
23
|
+
* 5. npm run graphql:codegen — regenerate typed operations
|
|
24
|
+
* 6. npm run dev (blocking, Ctrl+C to stop)
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
import { resolve, dirname } from 'node:path';
|
|
28
|
+
import { fileURLToPath } from 'node:url';
|
|
29
|
+
|
|
30
|
+
import { run, resolveSfdxSource, discoverUIBundleDir, resolveTargetOrg } from './org-setup-utils.mjs';
|
|
31
|
+
|
|
32
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
33
|
+
const ROOT = resolve(__dirname, '..');
|
|
34
|
+
|
|
35
|
+
function parseArgs() {
|
|
36
|
+
const args = process.argv.slice(2);
|
|
37
|
+
let targetOrg = null;
|
|
38
|
+
let uiBundleName = null;
|
|
39
|
+
for (let i = 0; i < args.length; i++) {
|
|
40
|
+
if (args[i] === '--target-org' && args[i + 1]) {
|
|
41
|
+
targetOrg = args[++i];
|
|
42
|
+
} else if (args[i] === '--ui-bundle-name' && args[i + 1]) {
|
|
43
|
+
uiBundleName = args[++i];
|
|
44
|
+
} else if (args[i] === '--help' || args[i] === '-h') {
|
|
45
|
+
console.log(`
|
|
46
|
+
Dev preview — refresh GraphQL types then launch the Vite dev server
|
|
47
|
+
|
|
48
|
+
Usage:
|
|
49
|
+
npm run dev:preview -- [--target-org <alias>] [--ui-bundle-name <name>]
|
|
50
|
+
|
|
51
|
+
Options:
|
|
52
|
+
--target-org <alias> Target Salesforce org alias. If omitted, you are prompted
|
|
53
|
+
to pick from authenticated orgs (or the default org is used).
|
|
54
|
+
--ui-bundle-name <name> UI bundle folder under uiBundles/ (default: auto-detect / prompt)
|
|
55
|
+
-h, --help Show this help
|
|
56
|
+
`);
|
|
57
|
+
process.exit(0);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return { targetOrg, uiBundleName };
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Print a heads-up about auth surfaces that only work on the deployed Experience
|
|
65
|
+
* site. In local preview, `sdk.fetch` is proxied to the org outside the site's
|
|
66
|
+
* guest/community context, so social login and password/MFA login cannot be
|
|
67
|
+
* exercised on localhost. This mirrors the "Local preview limitations" sections
|
|
68
|
+
* in the feature-react-authentication / feature-react-mfa READMEs — surfaced here
|
|
69
|
+
* so it is seen even when the READMEs are not.
|
|
70
|
+
*/
|
|
71
|
+
function printLocalPreviewWarning() {
|
|
72
|
+
console.log(
|
|
73
|
+
[
|
|
74
|
+
'',
|
|
75
|
+
'⚠️ Local preview limitation — some auth surfaces only work on the DEPLOYED site',
|
|
76
|
+
' Local preview proxies sdk.fetch to the org outside the Experience site guest',
|
|
77
|
+
' context (Site.getBaseUrl() is blank, no site session), so on localhost:',
|
|
78
|
+
' • Social Login buttons do not render (/auth/social-login-config returns no providers)',
|
|
79
|
+
' • Password / MFA login fails with "Your login attempt has failed…" (Site.login() cannot',
|
|
80
|
+
' establish the site session)',
|
|
81
|
+
' This is expected, not a misconfiguration. Test social login and MFA on the published',
|
|
82
|
+
' site login page: https://<domain>.site.com/<site-path>/login',
|
|
83
|
+
'',
|
|
84
|
+
].join('\n'),
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
async function main() {
|
|
89
|
+
const parsed = parseArgs();
|
|
90
|
+
|
|
91
|
+
const targetOrg = await resolveTargetOrg(parsed);
|
|
92
|
+
const uiBundlesDir = resolve(resolveSfdxSource(ROOT), 'uiBundles');
|
|
93
|
+
const uiBundleDir = await discoverUIBundleDir(uiBundlesDir, parsed.uiBundleName);
|
|
94
|
+
|
|
95
|
+
console.log('Dev preview — target org:', targetOrg, '| UI bundle:', uiBundleDir);
|
|
96
|
+
|
|
97
|
+
run('UI Bundle npm install', 'npm', ['install'], { cwd: uiBundleDir });
|
|
98
|
+
run('GraphQL schema (introspect)', 'npm', ['run', 'graphql:schema'], {
|
|
99
|
+
cwd: uiBundleDir,
|
|
100
|
+
env: { ...process.env, SF_TARGET_ORG: targetOrg },
|
|
101
|
+
});
|
|
102
|
+
run('GraphQL codegen', 'npm', ['run', 'graphql:codegen'], { cwd: uiBundleDir });
|
|
103
|
+
|
|
104
|
+
printLocalPreviewWarning();
|
|
105
|
+
|
|
106
|
+
console.log('\n--- Launching dev server (Ctrl+C to stop) ---\n');
|
|
107
|
+
const devResult = run('Dev server', 'npm', ['run', 'dev'], { cwd: uiBundleDir, optional: true });
|
|
108
|
+
process.exit(devResult.status ?? 0);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
main().catch((err) => {
|
|
112
|
+
console.error(err);
|
|
113
|
+
process.exit(1);
|
|
114
|
+
});
|