@qssolutions/ssas-registration-form 1.0.6 → 1.0.7

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/index.js CHANGED
@@ -21303,7 +21303,7 @@ const API_ENDPOINTS = {
21303
21303
  GET_ORG_SIZES: '/common/orgsizing-list',
21304
21304
  GET_INDUSTRIES: '/common/industry-list',
21305
21305
  GET_PARTNER: '/partner/get',
21306
- GET_PARTNER_BY_NAME: '/partner/get-by-name',
21306
+ GET_PARTNER_BY_GUID: '/partner/get-by-guid',
21307
21307
  GET_LOCALIZATION: '/localization/get',
21308
21308
  };
21309
21309
 
@@ -21497,10 +21497,10 @@ class ApiService {
21497
21497
  * Get partner by name
21498
21498
  * Extracts name from the baseUrl automatically and cleans it
21499
21499
  */
21500
- async getPartnerByName(partnerName) {
21500
+ async getPartnerByGuid(partnerGuid) {
21501
21501
  try {
21502
- const response = await axios$1.get(this.getUrl(API_ENDPOINTS.GET_PARTNER_BY_NAME), {
21503
- params: { name: partnerName },
21502
+ const response = await axios$1.get(this.getUrl(API_ENDPOINTS.GET_PARTNER_BY_GUID), {
21503
+ params: { guid: partnerGuid },
21504
21504
  });
21505
21505
  if (response.data.isSuccess) {
21506
21506
  return response.data.data;
@@ -22487,7 +22487,7 @@ const SSASRegistrationForm = ({ config, }) => {
22487
22487
  React.useEffect(() => {
22488
22488
  setIsLoadingPartner(true);
22489
22489
  partnerApiService
22490
- .getPartnerByName(mergedConfig.partnerName)
22490
+ .getPartnerByGuid(mergedConfig.partnerGuid)
22491
22491
  .then((partner) => {
22492
22492
  partner ? setPartnerData(partner) : setPartnerLoadFailed(true);
22493
22493
  })
@@ -22498,7 +22498,7 @@ const SSASRegistrationForm = ({ config, }) => {
22498
22498
  .finally(() => {
22499
22499
  setIsLoadingPartner(false);
22500
22500
  });
22501
- }, [mergedConfig.partnerName]);
22501
+ }, [mergedConfig.partnerGuid, partnerApiService]);
22502
22502
  // Step 2: Load remaining data once partnerData is available
22503
22503
  React.useEffect(() => {
22504
22504
  if (!partnerData)