@@ -84,7 +84,7 @@ export class PersonalizationAdapter<T> extends AdapterHelper<T, HttpClient> impl
8484 log . debug ( `Creating project: ${ project . name } ` , this . exportConfig ?. context ) ;
8585 const data = await this . apiClient . post < ProjectStruct > ( '/projects' , project ) ;
8686 const result = ( await this . handleVariantAPIRes ( data ) ) as ProjectStruct ;
87- log . debug ( `Project created successfully: ${ result . uid } ` , this . exportConfig ?. context ) ;
87+ log . info ( `Project created successfully: ${ result ? .uid } ` , this . exportConfig ?. context ) ;
8888 return result ;
8989 }
9090
@@ -101,7 +101,7 @@ export class PersonalizationAdapter<T> extends AdapterHelper<T, HttpClient> impl
101101 log . debug ( `Creating attribute: ${ attribute . name } ` , this . exportConfig ?. context ) ;
102102 const data = await this . apiClient . post < AttributeStruct > ( '/attributes' , attribute ) ;
103103 const result = ( await this . handleVariantAPIRes ( data ) ) as AttributeStruct ;
104- log . debug ( `Attribute created successfully: ${ result . uid } ` , this . exportConfig ?. context ) ;
104+ log . info ( `Attribute created successfully: ${ result ? .uid } ` , this . exportConfig ?. context ) ;
105105 return result ;
106106 }
107107
@@ -110,7 +110,7 @@ export class PersonalizationAdapter<T> extends AdapterHelper<T, HttpClient> impl
110110 const getExperiencesEndPoint = `/experiences` ;
111111 const data = await this . apiClient . get ( getExperiencesEndPoint ) ;
112112 const result = ( await this . handleVariantAPIRes ( data ) ) as ExperienceStruct [ ] ;
113- log . debug ( `Fetched ${ result ?. length || 0 } experiences` , this . exportConfig ?. context ) ;
113+ log . info ( `Fetched ${ result ?. length || 0 } experiences` , this . exportConfig ?. context ) ;
114114 return result ;
115115 }
116116
@@ -122,7 +122,7 @@ export class PersonalizationAdapter<T> extends AdapterHelper<T, HttpClient> impl
122122 }
123123 const data = await this . apiClient . get ( getExperiencesEndPoint ) ;
124124 const result = ( await this . handleVariantAPIRes ( data ) ) as ExperienceStruct ;
125- log . debug ( `Experience fetched successfully: ${ result ?. uid } ` , this . exportConfig ?. context ) ;
125+ log . info ( `Experience fetched successfully: ${ result ?. uid } ` , this . exportConfig ?. context ) ;
126126 return result ;
127127 }
128128
@@ -134,7 +134,7 @@ export class PersonalizationAdapter<T> extends AdapterHelper<T, HttpClient> impl
134134 }
135135 const data = await this . apiClient . get ( getExperiencesVersionsEndPoint ) ;
136136 const result = ( await this . handleVariantAPIRes ( data ) ) as ExperienceStruct ;
137- log . debug ( `Experience versions fetched successfully for: ${ experienceUid } ` , this . exportConfig ?. context ) ;
137+ log . info ( `Experience versions fetched successfully for: ${ experienceUid } ` , this . exportConfig ?. context ) ;
138138 return result ;
139139 }
140140
@@ -146,7 +146,7 @@ export class PersonalizationAdapter<T> extends AdapterHelper<T, HttpClient> impl
146146 const createExperiencesVersionsEndPoint = `/experiences/${ experienceUid } /versions` ;
147147 const data = await this . apiClient . post ( createExperiencesVersionsEndPoint , input ) ;
148148 const result = ( await this . handleVariantAPIRes ( data ) ) as ExperienceStruct ;
149- log . debug ( `Experience version created successfully for: ${ experienceUid } ` , this . exportConfig ?. context ) ;
149+ log . info ( `Experience version created successfully for: ${ experienceUid } ` , this . exportConfig ?. context ) ;
150150 return result ;
151151 }
152152
@@ -176,7 +176,7 @@ export class PersonalizationAdapter<T> extends AdapterHelper<T, HttpClient> impl
176176 . queryParams ( { experience_uid : input . experienceUid } )
177177 . get ( getVariantGroupEndPoint ) ;
178178 const result = ( await this . handleVariantAPIRes ( data ) ) as VariantGroupStruct ;
179- log . debug ( `Variant group fetched successfully for experience: ${ input . experienceUid } ` , this . exportConfig ?. context ) ;
179+ log . debug ( `Variant group fetched successfully for experience: ${ input ? .experienceUid } ` , this . exportConfig ?. context ) ;
180180 return result ;
181181 } else {
182182 log . debug ( 'CMA API client not available for variant group fetch' , this . exportConfig ?. context ) ;
@@ -208,23 +208,23 @@ export class PersonalizationAdapter<T> extends AdapterHelper<T, HttpClient> impl
208208 log . debug ( `Creating event: ${ event . key } ` , this . exportConfig ?. context ) ;
209209 const data = await this . apiClient . post < EventStruct > ( '/events' , event ) ;
210210 const result = ( await this . handleVariantAPIRes ( data ) ) as EventStruct ;
211- log . debug ( `Event created successfully: ${ result . uid } ` , this . exportConfig ?. context ) ;
211+ log . info ( `Event created successfully: ${ result ? .uid } ` , this . exportConfig ?. context ) ;
212212 return result ;
213213 }
214214
215215 async getAudiences ( ) : Promise < AudienceStruct [ ] | void > {
216216 log . debug ( 'Fetching audiences from personalization API' , this . exportConfig ?. context ) ;
217217 const data = await this . apiClient . get < AudienceStruct > ( '/audiences' ) ;
218218 const result = ( await this . handleVariantAPIRes ( data ) ) as AudienceStruct [ ] ;
219- log . debug ( `Fetched ${ result ?. length || 0 } audiences` , this . exportConfig ?. context ) ;
219+ log . info ( `Fetched ${ result ?. length || 0 } audiences` , this . exportConfig ?. context ) ;
220220 return result ;
221221 }
222222
223223 async getAttributes ( ) : Promise < AttributeStruct [ ] | void > {
224224 log . debug ( 'Fetching attributes from personalization API' , this . exportConfig ?. context ) ;
225225 const data = await this . apiClient . get < AttributeStruct > ( '/attributes' ) ;
226226 const result = ( await this . handleVariantAPIRes ( data ) ) as AttributeStruct [ ] ;
227- log . debug ( `Fetched ${ result ?. length || 0 } attributes` , this . exportConfig ?. context ) ;
227+ log . info ( `Fetched ${ result ?. length || 0 } attributes` , this . exportConfig ?. context ) ;
228228 return result ;
229229 }
230230
@@ -240,7 +240,7 @@ export class PersonalizationAdapter<T> extends AdapterHelper<T, HttpClient> impl
240240 log . debug ( `Creating audience: ${ audience . name } ` , this . exportConfig ?. context ) ;
241241 const data = await this . apiClient . post < AudienceStruct > ( '/audiences' , audience ) ;
242242 const result = ( await this . handleVariantAPIRes ( data ) ) as AudienceStruct ;
243- log . debug ( `Audience created successfully: ${ result . uid } ` , this . exportConfig ?. context ) ;
243+ log . info ( `Audience created successfully: ${ result ? .uid } ` , this . exportConfig ?. context ) ;
244244 return result ;
245245 }
246246
@@ -256,7 +256,7 @@ export class PersonalizationAdapter<T> extends AdapterHelper<T, HttpClient> impl
256256 log . debug ( `Creating experience: ${ experience . name } ` , this . exportConfig ?. context ) ;
257257 const data = await this . apiClient . post < ExperienceStruct > ( '/experiences' , experience ) ;
258258 const result = ( await this . handleVariantAPIRes ( data ) ) as ExperienceStruct ;
259- log . debug ( `Experience created successfully: ${ result . uid } ` , this . exportConfig ?. context ) ;
259+ log . info ( `Experience created successfully: ${ result ? .uid } ` , this . exportConfig ?. context ) ;
260260 return result ;
261261 }
262262
@@ -273,7 +273,7 @@ export class PersonalizationAdapter<T> extends AdapterHelper<T, HttpClient> impl
273273 const updateCTInExpEndPoint = `/experiences/${ experienceUid } /cms-integration/variant-group` ;
274274 const data = await this . apiClient . post < CMSExperienceStruct > ( updateCTInExpEndPoint , experience ) ;
275275 const result = ( await this . handleVariantAPIRes ( data ) ) as CMSExperienceStruct ;
276- log . debug ( `Content types updated successfully in experience: ${ experienceUid } ` , this . exportConfig ?. context ) ;
276+ log . info ( `Content types updated successfully in experience: ${ experienceUid } ` , this . exportConfig ?. context ) ;
277277 return result ;
278278 }
279279
@@ -287,7 +287,7 @@ export class PersonalizationAdapter<T> extends AdapterHelper<T, HttpClient> impl
287287 const getCTFromExpEndPoint = `/experiences/${ experienceUid } /cms-integration/variant-group` ;
288288 const data = await this . apiClient . get < CMSExperienceStruct > ( getCTFromExpEndPoint ) ;
289289 const result = ( await this . handleVariantAPIRes ( data ) ) as CMSExperienceStruct ;
290- log . debug ( `Content types fetched successfully from experience: ${ experienceUid } ` , this . exportConfig ?. context ) ;
290+ log . info ( `Content types fetched successfully from experience: ${ experienceUid } ` , this . exportConfig ?. context ) ;
291291 return result ;
292292 }
293293
0 commit comments