@snugdesk/core 0.2.29 → 0.2.30

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.
@@ -1254,6 +1254,7 @@ class CommonService {
1254
1254
  async getAllCountries() {
1255
1255
  if (!this.countriesData) {
1256
1256
  this.countriesData = await lastValueFrom(this.httpClient.get(CommonService.COUNTRY_ENDPOINT));
1257
+ this.countriesData.sort((a, b) => (a.nameEn ?? '').localeCompare(b.nameEn ?? ''));
1257
1258
  }
1258
1259
  return this.countriesData;
1259
1260
  }
@@ -1268,6 +1269,7 @@ class CommonService {
1268
1269
  async getAllLanguages() {
1269
1270
  if (!this.languagesData) {
1270
1271
  this.languagesData = await lastValueFrom(this.httpClient.get(CommonService.LANGUAGE_ENDPOINT));
1272
+ this.languagesData.sort((a, b) => (a.nameEn ?? '').localeCompare(b.nameEn ?? ''));
1271
1273
  }
1272
1274
  return this.languagesData;
1273
1275
  }
@@ -1654,7 +1656,7 @@ class EntityService {
1654
1656
  OnEntityByIdListener(id) {
1655
1657
  const statement = `subscription OnEntityById($id: ID!) {
1656
1658
  OnEntityById(id: $id) {
1657
- ${FIELDS_ENTITY_EXPANDED}
1659
+ ${FIELDS_ENTITY}
1658
1660
  }
1659
1661
  }`;
1660
1662
  const gqlAPIServiceArguments = {
@@ -2527,7 +2529,7 @@ const FIELDS_INTERACTION_ATTENDEE_EXPANDED = `
2527
2529
  interactionId
2528
2530
  entityId
2529
2531
  entity {
2530
- ${FIELDS_ENTITY_EXPANDED}
2532
+ ${FIELDS_ENTITY}
2531
2533
  }
2532
2534
  interactionWidgetSessionId
2533
2535
  teamId