@studyportals/domain-client 3.10.0 → 3.11.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/index.d.ts +3 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/src/models/programme-card/i-programme-card.d.ts +8 -0
- package/src/models/sitemap-cities-info/i-sitemap-city-info.d.ts +14 -0
- package/src/models/sitemap-cities-info/i-sitemap-city-info.js +3 -0
- package/src/models/sitemap-cities-info/i-sitemap-city-info.js.map +1 -0
- package/src/models/sitemap-cities-info/sitemap-cities-info-client.d.ts +7 -0
- package/src/models/sitemap-cities-info/sitemap-cities-info-client.js +17 -0
- package/src/models/sitemap-cities-info/sitemap-cities-info-client.js.map +1 -0
- package/src/types/portal-map.d.ts +1 -1
- package/src/types.d.ts +4 -4
package/index.d.ts
CHANGED
|
@@ -52,7 +52,9 @@ import { ISitemapRankingsInfo } from "./src/models/sitemap-rankings-info/i-sitem
|
|
|
52
52
|
import { SitemapRankingsInfoClient } from "./src/models/sitemap-rankings-info/sitemap-rankings-info-client";
|
|
53
53
|
import { ISitemapArticleInfo } from "./src/models/sitemap-articles-info/i-sitemap-article-info";
|
|
54
54
|
import { SitemapArticlesInfoClient } from "./src/models/sitemap-articles-info/sitemap-articles-info-client";
|
|
55
|
+
import { ISitemapCityInfo } from "./src/models/sitemap-cities-info/i-sitemap-city-info";
|
|
56
|
+
import { SitemapCitiesInfoClient } from "./src/models/sitemap-cities-info/sitemap-cities-info-client";
|
|
55
57
|
import { PortalType } from "./src/types/portal-type";
|
|
56
58
|
import { PortalMap } from "./src/types/portal-map";
|
|
57
59
|
import { ModelClient } from "./src/model-client";
|
|
58
|
-
export { BadRequestException, ClientException, InternalServerException, NotFoundException, PropertyNotAvailableException, ICover, ILink, IOptionalLink, ILocation, IClickTrackingData, ITracking, IDuration, IDeadline, IStartDate, ITiming, ITrackedLink, IProgrammeCard, ProgrammeCardClient, ITuitionValues, IPremiumValues, IOrganisationValues, IGeoTargetingConfiguration, IGeoTargetingValues, ISearchProjection, SearchProjectionClient, ILivingCost, IGPARequirement, IBestFitProgramme, BestfitProgrammeClient, ILogo, ITuitionFee, IEnglishRequirements, IInternalLink, IDotDigitalProgramme, DotdigitalProgrammeClient, ISearchCountryFaq, PublicSearchCountryFaqClient, ISitemapCountryInfo, SitemapCountriesInfoClient, ISearchDiscipline, PublicSearchDisciplineClient, ISitemapDisciplineInfo, SitemapDisciplinesInfoClient, ICountry, ICity, IReview, IDotDigitalOrganisation, DotdigitalOrganisationClient, ISitemapOrganisationInfo, SitemapOrganisationsInfoClient, ISitemapRankingsInfo, SitemapRankingsInfoClient, ISitemapArticleInfo, SitemapArticlesInfoClient, PortalType, PortalMap, ModelClient };
|
|
60
|
+
export { BadRequestException, ClientException, InternalServerException, NotFoundException, PropertyNotAvailableException, ICover, ILink, IOptionalLink, ILocation, IClickTrackingData, ITracking, IDuration, IDeadline, IStartDate, ITiming, ITrackedLink, IProgrammeCard, ProgrammeCardClient, ITuitionValues, IPremiumValues, IOrganisationValues, IGeoTargetingConfiguration, IGeoTargetingValues, ISearchProjection, SearchProjectionClient, ILivingCost, IGPARequirement, IBestFitProgramme, BestfitProgrammeClient, ILogo, ITuitionFee, IEnglishRequirements, IInternalLink, IDotDigitalProgramme, DotdigitalProgrammeClient, ISearchCountryFaq, PublicSearchCountryFaqClient, ISitemapCountryInfo, SitemapCountriesInfoClient, ISearchDiscipline, PublicSearchDisciplineClient, ISitemapDisciplineInfo, SitemapDisciplinesInfoClient, ICountry, ICity, IReview, IDotDigitalOrganisation, DotdigitalOrganisationClient, ISitemapOrganisationInfo, SitemapOrganisationsInfoClient, ISitemapRankingsInfo, SitemapRankingsInfoClient, ISitemapArticleInfo, SitemapArticlesInfoClient, ISitemapCityInfo, SitemapCitiesInfoClient, PortalType, PortalMap, ModelClient };
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ModelClient = exports.PortalType = exports.SitemapArticlesInfoClient = exports.SitemapRankingsInfoClient = exports.SitemapOrganisationsInfoClient = exports.DotdigitalOrganisationClient = exports.SitemapDisciplinesInfoClient = exports.PublicSearchDisciplineClient = exports.SitemapCountriesInfoClient = exports.PublicSearchCountryFaqClient = exports.DotdigitalProgrammeClient = exports.BestfitProgrammeClient = exports.SearchProjectionClient = exports.ProgrammeCardClient = exports.PropertyNotAvailableException = exports.NotFoundException = exports.InternalServerException = exports.ClientException = exports.BadRequestException = void 0;
|
|
3
|
+
exports.ModelClient = exports.PortalType = exports.SitemapCitiesInfoClient = exports.SitemapArticlesInfoClient = exports.SitemapRankingsInfoClient = exports.SitemapOrganisationsInfoClient = exports.DotdigitalOrganisationClient = exports.SitemapDisciplinesInfoClient = exports.PublicSearchDisciplineClient = exports.SitemapCountriesInfoClient = exports.PublicSearchCountryFaqClient = exports.DotdigitalProgrammeClient = exports.BestfitProgrammeClient = exports.SearchProjectionClient = exports.ProgrammeCardClient = exports.PropertyNotAvailableException = exports.NotFoundException = exports.InternalServerException = exports.ClientException = exports.BadRequestException = void 0;
|
|
4
4
|
const bad_request_exception_1 = require("./src/exceptions/bad-request-exception");
|
|
5
5
|
Object.defineProperty(exports, "BadRequestException", { enumerable: true, get: function () { return bad_request_exception_1.BadRequestException; } });
|
|
6
6
|
const client_exception_1 = require("./src/exceptions/client-exception");
|
|
@@ -35,6 +35,8 @@ const sitemap_rankings_info_client_1 = require("./src/models/sitemap-rankings-in
|
|
|
35
35
|
Object.defineProperty(exports, "SitemapRankingsInfoClient", { enumerable: true, get: function () { return sitemap_rankings_info_client_1.SitemapRankingsInfoClient; } });
|
|
36
36
|
const sitemap_articles_info_client_1 = require("./src/models/sitemap-articles-info/sitemap-articles-info-client");
|
|
37
37
|
Object.defineProperty(exports, "SitemapArticlesInfoClient", { enumerable: true, get: function () { return sitemap_articles_info_client_1.SitemapArticlesInfoClient; } });
|
|
38
|
+
const sitemap_cities_info_client_1 = require("./src/models/sitemap-cities-info/sitemap-cities-info-client");
|
|
39
|
+
Object.defineProperty(exports, "SitemapCitiesInfoClient", { enumerable: true, get: function () { return sitemap_cities_info_client_1.SitemapCitiesInfoClient; } });
|
|
38
40
|
const portal_type_1 = require("./src/types/portal-type");
|
|
39
41
|
Object.defineProperty(exports, "PortalType", { enumerable: true, get: function () { return portal_type_1.PortalType; } });
|
|
40
42
|
const model_client_1 = require("./src/model-client");
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,kFAA4E;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,kFAA4E;AA6D3E,oGA7DQ,2CAAmB,OA6DR;AA5DpB,wEAAmE;AA6DlE,gGA7DQ,kCAAe,OA6DR;AA5DhB,0FAAoF;AA6DnF,wGA7DQ,mDAAuB,OA6DR;AA5DxB,8EAAwE;AA6DvE,kGA7DQ,uCAAiB,OA6DR;AA5DlB,wGAAiG;AA6DhG,8GA7DQ,gEAA6B,OA6DR;AA7C9B,6FAAwF;AA0DvF,oGA1DQ,2CAAmB,OA0DR;AAnDpB,sGAAiG;AA0DhG,uGA1DQ,iDAAsB,OA0DR;AApDvB,sGAAiG;AAwDhG,uGAxDQ,iDAAsB,OAwDR;AArDvB,+GAA0G;AA2DzG,0GA3DQ,uDAAyB,OA2DR;AAzD1B,uHAAgH;AA2D/G,6GA3DQ,+DAA4B,OA2DR;AAzD7B,qHAA+G;AA2D9G,2GA3DQ,0DAA0B,OA2DR;AAzD3B,oHAA8G;AA2D7G,6GA3DQ,8DAA4B,OA2DR;AAzD7B,2HAAqH;AA2DpH,6GA3DQ,8DAA4B,OA2DR;AAxD7B,wHAAmH;AA6DlH,6GA7DQ,6DAA4B,OA6DR;AA3D7B,iIAA2H;AA6D1H,+GA7DQ,kEAA8B,OA6DR;AA3D/B,kHAA4G;AA6D3G,0GA7DQ,wDAAyB,OA6DR;AA3D1B,kHAA4G;AA6D3G,0GA7DQ,wDAAyB,OA6DR;AA3D1B,4GAAsG;AA6DrG,wGA7DQ,oDAAuB,OA6DR;AA5DxB,yDAAqD;AA6DpD,2FA7DQ,wBAAU,OA6DR;AA3DX,qDAAiD;AA6DhD,4FA7DQ,0BAAW,OA6DR"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { ICover, IDuration, IInternalLink, ILink, ILocation, ILogo, ITiming, ITrackedLink, ITracking, ITuitionFee } from "../../..";
|
|
2
2
|
export interface IProgrammeCard {
|
|
3
|
+
/**
|
|
4
|
+
* ISO code of the country the programme is taught.
|
|
5
|
+
* Formatted in UPPERCASE
|
|
6
|
+
*
|
|
7
|
+
* @return string | null
|
|
8
|
+
*/
|
|
9
|
+
getCountryIsoCode(): string | null;
|
|
3
10
|
/**
|
|
4
11
|
* Get the Cover of the programme if available.
|
|
5
12
|
*
|
|
@@ -40,6 +47,7 @@ export interface IProgrammeCard {
|
|
|
40
47
|
* @return ILocation
|
|
41
48
|
*/
|
|
42
49
|
getLocation(): ILocation;
|
|
50
|
+
canShowLocation(): boolean;
|
|
43
51
|
/**
|
|
44
52
|
* Get the location text the programme is located in
|
|
45
53
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-sitemap-city-info.js","sourceRoot":"","sources":["../../../../src/models/sitemap-cities-info/i-sitemap-city-info.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ISitemapCityInfo } from "../../..";
|
|
2
|
+
import { ModelClient } from "../../model-client";
|
|
3
|
+
export declare class SitemapCitiesInfoClient extends ModelClient<ISitemapCityInfo> {
|
|
4
|
+
protected getModelName(): string;
|
|
5
|
+
protected getVersion(): string;
|
|
6
|
+
isPublic(): boolean;
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SitemapCitiesInfoClient = void 0;
|
|
4
|
+
const model_client_1 = require("../../model-client");
|
|
5
|
+
class SitemapCitiesInfoClient extends model_client_1.ModelClient {
|
|
6
|
+
getModelName() {
|
|
7
|
+
return 'sitemap-cities-info';
|
|
8
|
+
}
|
|
9
|
+
getVersion() {
|
|
10
|
+
return 'v1';
|
|
11
|
+
}
|
|
12
|
+
isPublic() {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.SitemapCitiesInfoClient = SitemapCitiesInfoClient;
|
|
17
|
+
//# sourceMappingURL=sitemap-cities-info-client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sitemap-cities-info-client.js","sourceRoot":"","sources":["../../../../src/models/sitemap-cities-info/sitemap-cities-info-client.ts"],"names":[],"mappings":";;;AACA,qDAAiD;AAEjD,MAAa,uBAAwB,SAAQ,0BAA6B;IAC/D,YAAY;QACrB,OAAO,qBAAqB,CAAC;IAC9B,CAAC;IAES,UAAU;QACnB,OAAO,IAAI,CAAC;IACb,CAAC;IAEM,QAAQ;QACd,OAAO,KAAK,CAAC;IACd,CAAC;CACD;AAZD,0DAYC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PortalType } from "./portal-type";
|
|
2
|
-
export
|
|
2
|
+
export type PortalMap = Map<PortalType, string>;
|
package/src/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
1
|
+
export type Model = Record<string, Callable>;
|
|
2
|
+
export type Callable = () => CallableReturnType | CallableReturnType[];
|
|
3
|
+
export type CallableReturnType = AcceptedType | Model;
|
|
4
|
+
export type AcceptedType = string | string[] | number | number[] | boolean | null | Date;
|