@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/README.md +8 -7
- package/dist/index.esm.js +6 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/models/config.d.ts +1 -1
- package/dist/services/ApiService.d.ts +1 -1
- package/dist/utils/constants.d.ts +1 -1
- package/dist/web-component.js +6 -6
- package/dist/web-component.js.map +1 -1
- package/dist/web-component.min.js +1 -1
- package/dist/web-component.min.js.map +1 -1
- package/package.json +1 -1
package/dist/models/config.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
export type SupportedLanguage = 'en' | 'fr' | 'de' | 'it' | 'ja' | 'ko' | 'pt' | 'es' | 'nl' | 'ar' | 'he' | 'pt-br' | 'tr' | 'id' | 'th' | 'vi' | 'pl';
|
|
3
3
|
export interface FormLibraryConfig {
|
|
4
|
-
|
|
4
|
+
partnerGuid: string;
|
|
5
5
|
apiBaseUrl?: string;
|
|
6
6
|
languageCode?: SupportedLanguage;
|
|
7
7
|
theme?: {
|
|
@@ -36,7 +36,7 @@ export declare class ApiService {
|
|
|
36
36
|
* Get partner by name
|
|
37
37
|
* Extracts name from the baseUrl automatically and cleans it
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
getPartnerByGuid(partnerGuid: string): Promise<IPartnerModel>;
|
|
40
40
|
/**
|
|
41
41
|
* Get localization data for FormScreen by language code and partner ID
|
|
42
42
|
*/
|
|
@@ -67,7 +67,7 @@ export declare const API_ENDPOINTS: {
|
|
|
67
67
|
readonly GET_ORG_SIZES: "/common/orgsizing-list";
|
|
68
68
|
readonly GET_INDUSTRIES: "/common/industry-list";
|
|
69
69
|
readonly GET_PARTNER: "/partner/get";
|
|
70
|
-
readonly
|
|
70
|
+
readonly GET_PARTNER_BY_GUID: "/partner/get-by-guid";
|
|
71
71
|
readonly GET_LOCALIZATION: "/localization/get";
|
|
72
72
|
};
|
|
73
73
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/web-component.js
CHANGED
|
@@ -24114,7 +24114,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
24114
24114
|
GET_ORG_SIZES: '/common/orgsizing-list',
|
|
24115
24115
|
GET_INDUSTRIES: '/common/industry-list',
|
|
24116
24116
|
GET_PARTNER: '/partner/get',
|
|
24117
|
-
|
|
24117
|
+
GET_PARTNER_BY_GUID: '/partner/get-by-guid',
|
|
24118
24118
|
GET_LOCALIZATION: '/localization/get',
|
|
24119
24119
|
};
|
|
24120
24120
|
|
|
@@ -24308,10 +24308,10 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
24308
24308
|
* Get partner by name
|
|
24309
24309
|
* Extracts name from the baseUrl automatically and cleans it
|
|
24310
24310
|
*/
|
|
24311
|
-
async
|
|
24311
|
+
async getPartnerByGuid(partnerGuid) {
|
|
24312
24312
|
try {
|
|
24313
|
-
const response = await axios$1.get(this.getUrl(API_ENDPOINTS.
|
|
24314
|
-
params: {
|
|
24313
|
+
const response = await axios$1.get(this.getUrl(API_ENDPOINTS.GET_PARTNER_BY_GUID), {
|
|
24314
|
+
params: { guid: partnerGuid },
|
|
24315
24315
|
});
|
|
24316
24316
|
if (response.data.isSuccess) {
|
|
24317
24317
|
return response.data.data;
|
|
@@ -49753,7 +49753,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
49753
49753
|
reactExports.useEffect(() => {
|
|
49754
49754
|
setIsLoadingPartner(true);
|
|
49755
49755
|
partnerApiService
|
|
49756
|
-
.
|
|
49756
|
+
.getPartnerByGuid(mergedConfig.partnerGuid)
|
|
49757
49757
|
.then((partner) => {
|
|
49758
49758
|
partner ? setPartnerData(partner) : setPartnerLoadFailed(true);
|
|
49759
49759
|
})
|
|
@@ -49764,7 +49764,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
49764
49764
|
.finally(() => {
|
|
49765
49765
|
setIsLoadingPartner(false);
|
|
49766
49766
|
});
|
|
49767
|
-
}, [mergedConfig.
|
|
49767
|
+
}, [mergedConfig.partnerGuid, partnerApiService]);
|
|
49768
49768
|
// Step 2: Load remaining data once partnerData is available
|
|
49769
49769
|
reactExports.useEffect(() => {
|
|
49770
49770
|
if (!partnerData)
|